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
Print the page title.
function title() { print($this->_title); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function printTitle() {\n\t\techo $this->title;\n\t}", "protected function renderPageTitle() {}", "public function title(){\r\n\r\n echo ISSET($this->pageSettings->page_title)?$this->pageSettings->page_title:'';\r\n\r\n }", "function printPageTitle($title)\r\n {\r\n return \"<div class='pageTitle'>\".$title.\"</div>\";\r\n }", "public function get_page_title() {\n\n\t\tob_start();\n\n\t\t$this->output_page_title();\n\t\t$this->output_vendor_info();\n\n\t\treturn ob_get_clean();\n\t}", "public function getTitle()\n {\n return 'Print';\n }", "protected function view_getPageTitle() {\n return 'HalloPizza';\n }", "function title(){\n\t\t\techo $mytitle= \"Profile. Car Parking Website\";\n\t\t\t\n\t\t}", "public static function title($page_title = false)\r\n\t{\r\n\t\t$title = '';\r\n\t\tif($page_title)\r\n\t\t{\r\n\t\t\t$title = $page_title . ' | ';\r\n\t\t}\r\n\t\treturn $title . Kohana::$config->load('site')->get('name');\r\n\t}", "public static function title($page_title = false)\r\n\t{\r\n\t\t$title = '';\r\n\t\tif($page_title)\r\n\t\t{\r\n\t\t\t$title = $page_title . ' | ';\r\n\t\t}\r\n\t\treturn $title . Kohana::$config->load('site')->get('name');\r\n\t}", "protected function getPageTitle() {\r\n\t\treturn $this->pageTitle;\r\n\t}", "public function getPageTitle()\n {\n return $this->page_title;\n }", "static public function getTitle() {\n\t\treturn self::$page_title;\n\t}", "public function getPageTitle()\n {\n return 'Links to Scanned Page - ' . $this->page->uri;\n }", "private function getPageTitle() {\n return $this->pageTitle;\n }", "function page_title(): string {\r\n\t\treturn sprintf('%s — %s: Scheduler', $this->module->space()->name(),\r\n\t\t\t$this->module->name());\r\n\t}", "public function loadPageTitle()\n \t\t{\n echo \"<title>Add Item</title>\";\n }", "public function get_page_title() {\n return $this->get_string('page_title');\n }", "public function getTitle() {\n return (isset($this->titlePage)) ? $this->titlePage.' - '.Params::param('metainfo-titlePage') : Params::param('metainfo-titlePage');\n }", "public function getPageTitle() {\n return $this->configuration['page_title'];\n }", "public function getPageTitle() {\n\t\treturn $this->pageTitle;\n\t}", "function setTitle() {\n global $pageTitle;\n\n $pageTitle = isset($pageTitle) ? $pageTitle : 'Default' ;\n echo $pageTitle;\n }", "function pageTitle(){\n\t\tglobal $pageTitle;\n\t\techo isset($pageTitle) ? $pageTitle : \"Default\";\n\t}", "protected function output_page_title( $page_title = '' ) {\n?>\n\t\t<h2>\n\t\t\t<?php echo $this->browser_args['page_title']; ?>\n\n\t\t\t<?php if ( ! empty( $this->browser_args['header_buttons'] ) && is_array( $this->browser_args['header_buttons'] ) ) foreach( $this->browser_args['header_buttons'] as $tab ): ?>\n\t\t\t\t<a href=\"<?php echo esc_url( $tab['url'] ); ?>\" class=\"add-new-h2\" target=\"_blank\" rel=\"nofollow\"><?php echo $tab['title']; ?></a>\n\t\t\t<?php endforeach; ?>\n\t\t</h2>\n<?php\n\t}", "public function getPageTitle()\n {\n return 'Edit UNL 5.3 Self Reported Progress';\n }", "public function pageTitle($title = '') {\n $page_title = '';\n if (empty($title)) {\n $page_title .='Ticketchai | Home ';\n } else {\n $page_title .=$title;\n }\n\n return \"<title>\" . $page_title . \"</title>\";\n }", "protected function page_title() {\n?>\n\t\t<h2>\n\t\t\t<?php echo __( 'Marketplace Add-ons', APP_TD ); ?>\n\t\t\t<a href=\"https://marketplace.appthemes.com/\" class=\"add-new-h2\"><?php _e( 'Browse Marketplace', APP_TD ); ?></a>\n\t\t\t<a href=\"https://www.appthemes.com/themes/\" class=\"add-new-h2\"><?php _e( 'Browse Themes', APP_TD ); ?></a>\n\t\t</h2>\n<?php\n\t}", "function get_page_title()\n {\n return $this->object->name;\n }", "function GetTitle() {\r\n global $PageTitle;\r\n if (isset($PageTitle)){echo $PageTitle;}else{echo 'BHM Accessories';}\r\n }", "function set_title() {\n \tglobal $pageTitle;\n \tif (isset($pageTitle))\n \t\techo 'Tanqeeb | ' . $pageTitle;\n \telse\n \t\techo 'Tanqeeb';\n}", "function page_title($title = ''){\r\n\tglobal $eqdkp, $user;\r\n\t$pt_prefix\t\t= (defined('IN_ADMIN')) ? $user->lang['admin_title_prefix'] : $user->lang['title_prefix'];\r\n\t$main_title\t\t= sprintf($pt_prefix, $eqdkp->config['guildtag'], $eqdkp->config['dkp_name']);\r\n\treturn sanitize((( $title != '' ) ? $title.' - ' : '').$main_title, TAG);\r\n}", "private static final function getPageTitle () {\r\n // Execute the <title tag> .tp file;\r\n $webHeaderString = new FileContent (FORM_TP_DIR . _S . 'frm_web_header_title.tp');\r\n return $webHeaderString->doToken ('[%TITLE_REPLACE_STRING%]',\r\n implode (_DCSP, ((self::$objPageTitleBackward->toInt () == 1) ? (self::$objPageTitle->arrayReverse ()->toArray ()) :\r\n self::$objPageTitle->toArray ())));\r\n }", "function getPageTitle() {\n return $this->title;\n }", "function print_title()\n{\n echo get_title();\n}", "public static function title();", "public function getPageTitle(): string;", "function getTitle(){\r\n\r\n \tglobal $pageTitle;\r\n \r\n if(isset($pageTitle)){\r\n\r\n \techo $pageTitle;\r\n\r\n }else{\r\n\r\n \techo 'Default';\r\n }\r\n\r\n }", "public function getPageTitle() {\r\n\t\t$config = $this->getConfig();\r\n return $config[\"title\"];\r\n }", "public function page_title( $format = '%s' ) {\n\n\t\t\t$object = get_queried_object();\n\n\t\t\tif ( isset( $object->post_title ) ) {\n\t\t\t\tprintf( $format, $object->post_title );\n\t\t\t} elseif ( isset( $object->name ) ) {\n\t\t\t\tprintf( $format, $object->name );\n\t\t\t}\n\n\t\t}", "function printPageHeader($title) {\n echo \"<html>\n <head>\n \n </head>\n <body>\n <h1>{$title}</h1>\";\n}", "public function get_page_title() {\n\t\t\treturn __( 'Relations', 'jet-engine' );\n\t\t}", "function getPageTitle() {\n\t\tglobal $current_page_title;\n\t\t\n\t\treturn $current_page_title;\n\t}", "public function get_page_title() {\n\t\treturn __( 'Events Import', 'the-events-calendar' );\n\t}", "function page_title()\n {\n $page = isset($_GET['page']) ? htmlspecialchars($_GET['page']) : 'Home';\n\n return ucwords(str_replace('-', ' ', $page));\n }", "private function renderTitle()\n\t{\n\t\treturn '<h1 class=\"block-new-title\">' . $this->title . '</h1>';\n\t}", "function od_set_page_title($orig_title) {\n\t\treturn \"Map | \"; // set the page title (could be improved, eg based on filters. Might be something the user wants to set\n\t}", "public function setPageTitle($title);", "public function getPageTitle()\n {\n $element = $this->query('title')->first();\n if ($element) {\n return $element->text();\n }\n\n return '';\n }", "protected function setPageTitle() {\r\n\t\t$pageTitleText = (empty($this->settings['news']['semantic']['general']['pageTitle']['useAlternate'])) ? $this->newsItem->getTitle() : $this->newsItem->getAlternativeTitle();\r\n\t\t$pageTitleAction = $this->settings['news']['semantic']['general']['pageTitle']['action'];\r\n\r\n\t\tif (!empty($pageTitleAction)) {\r\n\t\t\tswitch ($pageTitleAction) {\r\n\t\t\t\tcase 'prepend':\r\n\t\t\t\t\t$pageTitleText .= ': ' . $GLOBALS['TSFE']->page['title'];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'append':\r\n\t\t\t\t\t$pageTitleText = $GLOBALS['TSFE']->page['title'] . ': ' . $pageTitleText;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t}\r\n\t\t\t$this->pageTitle = html_entity_decode($pageTitleText, ENT_QUOTES, \"UTF-8\");\r\n\t\t\t$GLOBALS['TSFE']->page['title'] = $this->pageTitle;\r\n\t\t\t$GLOBALS['TSFE']->indexedDocTitle = $this->pageTitle;\r\n\t\t}\r\n\t}", "public function showPageHeader() {\n\n\t\techo $this->getPageHeader();\n\t}", "public function _GetPageTitle() {\n\t\t$page_title = 'Shirtswithstamps: T-Shirts with stamps for every ocassion';\n\t\t\n\t\tif (isset($_GET['DepartmentId']) && isset($_GET['CategoryId'])) {\n\t\t\t$page_title = Catalog::GetDepartmentName($_GET['DepartmentId']).' &raquo; '.Catalog::GetCategoryName($_GET['CategoryId']).' - Shirts With Stamps';\n\t\t\t\n\t\tif (isset($_GET['Page']) && ((int)$_GET['Page']) > 1)\n\t\t\t$page_title = Catalog::GetDepartmentName($_GET['DepartmentId']).' &raquo; '.Catalog::GetCategoryName($_GET['CategoryId']).' - Page '.((int)$_GET['Page']).' - Shirtswithstamps';\t\n\t\t}\n\t\t\n\t\telseif (isset($_GET['DepartmentId'])) {\n\t\t\t$page_title = Catalog::GetDepartmentName($_GET['DepartmentId']).' - Shirts With Stamps';\n\t\t\t\n\t\t\tif (isset($_GET['Page']) && ((int)$_GET['Page']) > 1)\n\t\t\t\t$page_title = Catalog::GetDepartmentName($_GET['DepartmentId']).' - Page '.((int)$_GET['Page']).' - Shirts With Stamps';\n\t\t}\n\t\t\n\t\telseif (isset($_GET['ProductId'])) {\n\t\t\t$page_title = Catalog::GetProductName($_GET['ProductId']).' - Shirts With Stamps';\n\t\t}\n\t\t\n\t\telseif (isset($_GET['SearchResults'])) {\n\t\t\t$page_title = '';\n\t\t\t\n\t\t\t// Display the search string\n\t\t\t$page_title = trim(str_replace('-', ' ', $_GET['SearchString'])).' (';\n\t\t\t\n\t\t\t// Display 'all-words' search or 'any-words' search\n\t\t\t$all_words = isset($_GET['AllWords']) ? $_GET['AllWords'] : 'off';\n\t\t\t\n\t\t\t$page_title .= (($all_words == 'on') ? 'all' : 'any').'-words search';\n\t\t\t\n\t\t\t// Display the page number\n\t\t\tif (isset($_GET['Page']) && ((int)$_GET['Page'] < 1))\n\t\t\t\t$page_title .= ', page '.((int)$_GET['Page']);\n\t\t\t\t\n\t\t\t$page_title .= ')';\n\t\t}\n\t\t\n\t\telse {\n\t\t\tif (isset($_GET['Page']) && ((int)$_GET['Page']) > 1)\n\t\t\t\t$page_title .= ' - Page '.((int)$_GET['Page']);\n\t\t}\n\t\t\n\t\treturn $page_title;\n\t}", "public static function mainPageTitle()\n {\n return 'Australia\\'s Industry Priority Qualifications Reporting Tool';\n }", "public function display_page_header() {\n\t\tglobal $title;\n\n\t\tprintf( '<h1>%s</h1>', esc_html( $title ) );\n\n\t\tsettings_errors( self::POST_ACTION_ID );\n\n\t\tprintf(\n\t\t\t'<p>%s</p>',\n\t\t\tesc_html(\n\t\t\t\tsprintf(\n\t\t\t\t\t/* translators: 1 is the name of the DB table, 2 is a version number, 3 is an option name. */\n\t\t\t\t\t__( 'Your custom table \"%1$s\" is ready and its current version is %2$d. This version number is stored in the (network?) option \"%3$s\".', 'autowpdb-example-plugin' ),\n\t\t\t\t\t$this->table->get_table_definition()->get_table_name(),\n\t\t\t\t\t$this->upgrader->get_db_version(),\n\t\t\t\t\t$this->upgrader->get_db_version_option_name()\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t}", "abstract protected function getPageTitle(): string;", "protected function page_title() {\n return get_string('topicoutline');\n }", "public function getTitle(): string\n {\n return I18N_PAGES;\n }", "public function getTitle()\n {\n $list = $this->getPages();\n\n return isset($list[$this->page])\n ? $list[$this->page]\n : '';\n }", "public function setPageTitle($page_name);", "public function setPageTitle($page_name);", "public function get_title () {\r\n\t\treturn $this->get_info()['title'];\r\n\t}", "public function getTitle() {\n\t\treturn '';\n\t}", "function get_page_heading()\n {\n return $this->object->get_page_title();\n }", "public function get_title()\n {\n }", "public function get_title()\n {\n }", "public static function header($title)\n\t{\n\t\tstatic::stdout(' '.$title.PHP_EOL);\n\t\tstatic::stdout(' '.\\str_repeat('-', static::$screenwidth-1).PHP_EOL.PHP_EOL);\n\t}", "public function get_title() {\n\t\treturn esc_html__( 'Processes', 'tr-framework' );\n\t}", "public function title();", "public function title();", "function shoestrap_empty_page_title() {}", "public function title()\n\t{\n\t\treturn $this->CLI->stringQuery($this->SqueezePlyrID.\" title ?\");\n\t}", "public function currentPageTitle()\n {\n return $this->pageGuide->getTitle($this->currentPage);\n }", "function get_admin_page_title()\n {\n }", "function get_title()\n {\n }", "function fullPageTitle() {\n\t\t$title = htmlspecialchars($this->getTitlePage(), ENT_COMPAT, \"UTF-8\");\n\t\t$separator = ' | ';\n\t\t$parents = $this->parents();\n\t\tfor ($i=0; $i<sizeof($parents)-1; $i++) {\n\t\t\t$oneParent = $parents[$i];\n\t\t\t$title .= $separator;\n\t\t\t$title .= htmlspecialchars($oneParent->getTitlePage(), ENT_COMPAT, \"UTF-8\");\n\t\t}\n\t\treturn $title;\n\t}", "public function get_title() {\n\t\treturn __( 'Hello World', 'elementor-hello-world' );\n\t}", "public function getPageTitle()\n {\n return parent::getPageTitle() ?:\n (\n isset($this->get['pages']) ? $this->tableAdmin->translate('Pages') :\n (\n isset($this->get['products']) ? $this->tableAdmin->translate('Products') :\n (\n isset($this->get['urls']) ? $this->tableAdmin->translate('URL') :\n ''\n )\n )\n );\n }", "private function getTitle() {\n\t\tif ($_GET['doc'] == 'index') {\n\t\t\treturn $this->config['title'];\n\t\t}\n\t\treturn $this->texy->headingModule->title . ' - ' . $this->config['title'];\n\t}", "function title(Printer $printer, $text)\n\t{\n\t $printer -> selectPrintMode(Printer::MODE_EMPHASIZED);\n\t $printer -> text(\"\\n-------- \" . $text.\" --------\\n\");\n\t $printer -> selectPrintMode(); // Reset\n\t}", "function pageTitle()\n{\n\techo \"TSTV :: Admin\";\n\t\n}", "public function getTitle()\n {\n return P4Cms_Navigation::expandMacros(parent::getTitle(), $this);\n }", "public function get_title() {\n return __( 'APR Heading', 'apr-core' );\n }", "function PageTitle ($set = false) {\n \tif (!$set) {\n \t\treturn $this->pagetitle;\n \t}\n \telse {\n \t\t$this->pagetitle = $set . ' | ' . $this->config->item('server_name');\n \t\treturn $this->pagetitle;\n \t}\n }", "protected function regeneratePageTitle() {}", "public function showTestHeadline($title)\n {\n print \"*** \" . $title . \"\\n\";\n }", "protected function title() {\n\t\t$title = Text::get('login_title');\n\n\t\treturn \"$title &mdash; Automad\";\n\t}", "public function title() {\n return \"{$this->venuename} ({$this->id})\";\n }", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();" ]
[ "0.8685286", "0.8297929", "0.82351977", "0.81676614", "0.79909784", "0.78761894", "0.77594525", "0.7706649", "0.76746875", "0.76746875", "0.7671304", "0.76472837", "0.7639976", "0.762389", "0.7617759", "0.7616746", "0.7610176", "0.75980204", "0.7595578", "0.7583058", "0.75735164", "0.7559246", "0.753431", "0.7496983", "0.7496583", "0.749639", "0.7494192", "0.7477347", "0.74721116", "0.7463358", "0.742611", "0.7422253", "0.74211586", "0.7413733", "0.7308143", "0.7293976", "0.72772485", "0.7272929", "0.727038", "0.7245936", "0.723031", "0.7228686", "0.72235215", "0.720395", "0.7189682", "0.71636796", "0.7160602", "0.71566564", "0.7155364", "0.71546423", "0.71514636", "0.7147447", "0.7132477", "0.7127897", "0.712641", "0.71242875", "0.7122416", "0.711811", "0.711811", "0.71124816", "0.710828", "0.7107763", "0.71001303", "0.7098202", "0.7096809", "0.7088462", "0.7088277", "0.7088277", "0.7079311", "0.70750904", "0.70750237", "0.70635265", "0.70474535", "0.7044733", "0.70417076", "0.7038258", "0.703807", "0.70272493", "0.7018094", "0.7017133", "0.7002076", "0.69944954", "0.6994089", "0.6990368", "0.698577", "0.69773746", "0.69735396", "0.69735396", "0.69735396", "0.69735396", "0.69735396", "0.69735396", "0.69735396", "0.69735396", "0.69735396", "0.69735396", "0.69735396", "0.69735396", "0.69735396", "0.69735396" ]
0.8084115
4
Print the remainder of the head contents, after the title is removed.
function head() { print($this->_head); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function printHead()\n\t{\n\t\t$out = '<?xml version=\"1.0\" encoding=\"utf-8\"?>' . \"\\n\";\n\t\t$out .= $this->head . PHP_EOL;;\t\t\t\n\t\techo $out;\n\t}", "public function show_head() {\n \n $output = '<head>';\n \n if( empty( $this->title ) ) {\n $this->title = \"No Title Available\";\n } \n\n $output .= '<title>' . $this->title . '</title>';\n $output .= $this->get_header_elements();\n $output .= \"\\n</head>\";\n\n echo $output;\n }", "public function printTitle() {\n\t\techo $this->title;\n\t}", "public function head() {\n\t\treturn '';\n\t}", "public function head() {\r\n return '';\r\n }", "protected function printHead($prefix='')\n {\n echo $prefix.'<HEAD>';\n if($this->getBrowserName() === 'IE')\n {\n $this->printIeCompatability($prefix.$prefix);\n }\n echo $prefix.$prefix.'<TITLE>'.$this->title.'</TITLE>';\n echo $prefix.$prefix.'<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">';\n foreach($this->head_tags as $tag)\n {\n echo $prefix.$prefix.$tag.\"\\n\";\n }\n echo $prefix.'</HEAD>';\n }", "function print_head_scripts()\n {\n }", "public function display($head)\n {\n $start = $head;\n while ($start) {\n echo $start->data,' ';\n $start = $start->next;\n }\n }", "public function renderHeadSection()\n\t{\n\t\treturn \"\";\n\t}", "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 _print_html_head()\n\t{\n\t\t$output = \"<head>\\n\";\n\t\t$output .= \"<title>{$this->title}</title>\\n\";\n\t\t$output .= $this->_print_html_head_metatags();\n\t\t$output .= $this->_print_html_head_javascript();\n\t\t$output .= $this->_print_html_head_css();\n\t\t$output .= \"</head>\\n<body>\\n\";\n\t\t\n\t\treturn $output;\n\t}", "public function showPageHeader() {\n\n\t\techo $this->getPageHeader();\n\t}", "public function showTestHeadline($title)\n {\n print \"*** \" . $title . \"\\n\";\n }", "function shoestrap_empty_page_title() {}", "function printHeader($title) {\n\tprint <<<ENDOLA\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \n \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n\t<meta http-equiv=\"Content-type\" content=\"text/html;charset=UTF-8\" />\n\t<title>${title}</title>\nENDOLA;\n\n\tprintJQuery();\n\n\techo '</head><body>';\n}", "private function printHeader()\n {\n $this->printer->println('Test-Flight %s', Constants::VERSION);\n }", "function printHtmlHeader($title)\n{\n $htmlTitle = filter_var($title, FILTER_SANITIZE_SPECIAL_CHARS);\n print '<!DOCTYPE html>';\n print '<html>';\n print \"<head><title>$htmlTitle</title></head>\";\n print '<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\" />';\n print '<body>';\n}", "private function cleanHead()\n {\n remove_action('wp_head', 'print_emoji_detection_script', 7);\n remove_action('wp_print_styles', 'print_emoji_styles');\n remove_action('wp_head', 'rsd_link'); //removes EditURI/RSD (Really Simple Discovery) link.\n remove_action('wp_head', 'wlwmanifest_link'); //removes wlwmanifest (Windows Live Writer) link.\n remove_action('wp_head', 'wp_generator'); //removes meta name generator.\n remove_action('wp_head', 'wp_shortlink_wp_head'); //removes shortlink.\n remove_action('wp_head', 'feed_links', 2); //removes feed links.\n remove_action('wp_head', 'feed_links_extra', 3); //removes comments feed.\n }", "public function header()\n {\n echo \"<!doctype html>\\n<html lang='pt'>\\n<head>\\n\";\n echo \"\\t<meta charset='UTF-8'>\\n\";\n echo \"\\t<title>{$this->controller->getTitle()}</title>\\n\";\n $this->links();\n echo \"</head>\\n<body>\\n\";\n }", "function head($title) {\r\n print(\r\n '<!DOCTYPE html>\r\n <html lang=\"en-GB\">\r\n <head>\r\n <meta charset=\"UTF-8\">\r\n <title>'.$title.'</title>\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"../css/theme.css\">\r\n <link rel=\"icon\" href=\"../img/icon.png\">\r\n </head>\r\n <body>');\r\n }", "function MidHead($title)\n {\n // Arial bold 15\n $this->SetFont('Arial','B',15);\n // Calculate width of title and position\n $w = $this->GetStringWidth($title)+6;\n $this->SetX((210-$w)/2);\n // Colors of frame, background and text\n $this->SetDrawColor(0,80,180);\n $this->SetFillColor(230,230,0);\n //$this->SetTextColor(220,50,50);\n // Thickness of frame (1 mm)\n $this->SetLineWidth(1);\n // Title\n $this->Cell($w,9,$title,1,1,'C',true);\n // Line break\n $this->Ln(10);\n }", "public function printAll(){\n $temp = $this->head;\n while($temp != NULL){\n echo $temp->data . \" \";\n $temp = $temp->next;\n }\n }", "function headOptimization()\r\n\t{\r\n\t\t\r\n\t\techo \"<meta name='description' content='\".$this->PageDescription().\"' />\";\r\n\t\techo \"<meta name='keywords' content='\".$this->PageKeywords().\"' />\";\r\n\t\techo \"<title>\".$this->PageTitle().\"</title>\";\r\n\t\r\n\t}", "function PrintHtmlHead () {\n\tGlobal $ISM, $str_font;\n\tGlobal $arr_win_dir, $arr_pozip, $arr_alm;\n\tGlobal $cDb;\n\t\n\tif (isset($cDb)) {\n\t\t$sWindowTitle = GetSetting ($cDb, 'windowtitle', '');\n\t} else {\n\t\t$sWindowTitle = '';\n\t}\n\t\n\theader(\"Content-Type: text/html; charset=UTF-8\");\n\theader(\"Pragma: no-cache\");\n\theader(\"Expires: 0\");\n\theader(\"Cache-Control: must-revalidate, post-check=0,pre-check=0\");\n\t\nprint <<<EOF\n<!DOCTYPE html>\n<html>\n<head>\n<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=UTF-8'>\n<meta name='viewport' content='user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, width=device-width, height=device-height'>\n<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>\n<title>$sWindowTitle</title>\n\n<style type='text/css'>\n\nhtml, body { height: 100%; margin: 0; padding: 0; }\n\nBODY,TD,P,DIV,INPUT,SELECT,TEXTAREA {\n\tfont-family:$str_font;\n\tfont-size:12px;\n\twhite-space:nowrap;\n}\nA {\n\tcolor:#4444FF;\n\tcursor:pointer;\n\ttext-decoration:none;\n}\nA:hover {\n\ttext-decoration:underline;\n}\nINPUT,SELECT,TEXTAREA {\n\tcolor:#000000;\n\tbackground:#FFFFFF;\n\tpadding:2px;\n\tborder:1px solid #BBBBBB;\n}\nINPUT:-moz-read-only {\n\tbackground:#DDDDDD;\n\tborder:1px solid #DDDDDD;\n}\nINPUT:read-only {\n\tbackground:#DDDDDD;\n\tborder:1px solid #DDDDDD;\n}\n.TopCurtain {\n\nEOF;\n\techo (\"\tposition:fixed; top:\".($ISM?50:0).\"px; left:0; right:0; height:16px;\\n\");\nprint <<<EOF\n\tbackground:linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0));\n\tpointer-events: none;\n}\n.ReadBorder {\n\tborder-width:3px;\n\tborder-style:solid;\n\tpadding:5px;\n\tborder-color:#FF8888;\n\tbackground:#FFEEEE;\n}\n.OrangeBorder {\n\tborder-width:3px;\n\tborder-style:solid;\n\tpadding:5px;\n\tborder-color:#FFBB88;\n\tbackground:#FFFFFF;\n}\n.OrangeFont {\n\tcolor:#EE6633;\n\tfont-weight:bold;\n}\n.TitleFont {\n\tcolor:#666666;\n\tfont-weight:bold;\n}\n.SubMenu {\n\tcolor:#444444;\n\tfont-weight:bold;\n\tcursor:pointer;\n\tborder-radius:7px;\n}\n.SubMenu:hover {\n\tbackground:#DDDDDD;\n}\n.SubMenuSel {\n\tcolor:#444444;\n\tbackground:#FFFFFF;\n\tfont-weight:bold;\n\tcursor:pointer;\n\tborder-radius:7px;\n}\n\n.msgPopupBox {\n\tz-index:3;\n\tdisplay: none;\n\tposition:fixed;\n\tmargin:0;\n\ttop:0;\n\tleft:0;\n\tright:0;\n\tbottom:0;\n\theight:100%;\n\twidth:100%;\n\tbackground-color:rgba(0,0,0,0.7);\n}\n.msgPopupInn {\n\tdisplay: table-cell;\n\tvertical-align: middle;\n\ttext-align:center;\n}\n.msgPopupTxt {\n\tdisplay:inline-block;\n\tcolor:#FFFFFF;\n\tborder:1px solid rgba(0,0,0,0.5);\n\tbox-shadow: 0 2px 10px 5px rgba(0,0,0,0.2);\n\tpadding:15px;\n\tborder-radius:10px;\n\ttext-align:center;\n\t\n\tbackground-color: #008800;\n\tbackground-image: linear-gradient(-45deg,\n\t\trgba(255, 255, 255, 0) 22.9%,\n\t\trgba(255, 255, 255, 0.1) 23%,\n\t\trgba(255, 255, 255, 0.1) 50%,\n\t\trgba(255, 255, 255, 0) 50.1%,\n\t\trgba(255, 255, 255, 0) 72.9%,\n\t\trgba(255, 255, 255, 0.1) 73%);\n\tbackground-size: 20px 20px;\n\t-webkit-background-size:20px 20px;\n\tbackground-repeat: repeat;\n}\n\n.mMenuLogin {\n\tpadding-left:6px;\n\tpadding-right:6px;\n\tpadding-top:4px;\n\tpadding-bottom:4px;\n\tmargin-right:10px;\n\tmargin-left:10px;\n\tfont-weight:bold;\n\tcolor:#FFFFFF;\n\tborder-radius:20px;\n\tborder:2px solid #FFFFFF;\n}\n.mMenuItem {\n\tcursor:pointer;\n\tpadding-top:12px;\n\tpadding-bottom:12px;\n\tpadding-left:16px;\n\tpadding-right:32px;\n\tfont-weight:bold;\n\tbackground:#FFFFFF;\n}\n.mMoveLast {\n\tbackground:rgba(255,255,255,0.7);\n\tborder-radius:10px;\n\tborder:1px solid rgba(0,0,0,0.5);\n\tcolor:rgba(0,0,0,0.5);\n}\n\n.windImg {\n\twidth:16px;\n\theight:16px;\n\tvertical-align:middle;\n}\n\n</style>\n\n<script type='text/javascript'>\n\nEOF;\necho (\"\tvar ism = \".($ISM?1:0).\";\\n\");\nprint <<<EOF\n\nvar gEcBusy=false;\n/*\nwindow.addEventListener('error', function(e) {\n\tif (gEcBusy) return;\n\tgEcBusy = true;\n\tif ((document.getElementById('map') != null) && (map.innerHTML == '')) {\n\t\t// MAP loading error\n\t\tmap.innerHTML = \"<table width='100%' height='100%'><tr><td align='center'><h3>Wait...</h3></td></tr></table>\";\n\t\tsetTimeout ('location.reload()',3000);\n\t} else\n\tif (document.getElementById('msgPopupTxt') != null) {\n\t\tvar msg = 'EC#'+e.lineno+':'+e.colno+'<p>'+e.message+'</p>';\n\t\tmsg += \"<input type='button' value='Close' onclick='MsgPopupHideGo()' class='pure-button'> <input type='button' value='Reload' onclick='location.reload()' class='pure-button'>\";\n\t\tMsgPopupError (msg, 0);\n\t} else {\n\t\talert ('EC#'+e.lineno+':'+e.colno+'\\\\n'+e.message);\n\t}\n\tPrintAll(e.target);\n}, true);\n*/\nwindow.onerror = function(emsg, url, eline, ecol, eerror) {\n\tif (gEcBusy) return true;\n\tgEcBusy = true;\n\tif ((document.getElementById('map') != null) && (map.innerHTML == '')) {\n\t\t// MAP loading error\n\t\tmap.innerHTML = \"<table width='100%' height='100%'><tr><td align='center'><h3>Wait...</h3></td></tr></table>\";\n\t\tsetTimeout ('location.reload()',3000);\n\t} else\n\tif (document.getElementById('msgPopupTxt') != null) {\n\t\tvar msg = '<p>EC#';\n\t\tmsg += eline ? eline : 'unknown';\n\t\tif (ecol) msg += ':' + ecol;\n\t\tmsg += '</p>';\n\t\tif (emsg) msg += '<p>'+emsg+'</p>';\n\t\tif ((emsg) && (eerror) && (emsg.indexOf(eerror) < 0)) msg += '<p>'+eerror+'</p>';\n\t\tif (url) msg += '<p>'+url+'</p>';\n\t\tmsg += \"<input type='button' value='Close' onclick='MsgPopupHideGo()' class='pure-button'> <input type='button' value='Reload' onclick='location.reload()' class='pure-button'>\";\n\t\tMsgPopupError (msg, 0);\n\t} else {\n\t\tvar msg = 'EC#';\n\t\tmsg += eline ? eline : 'unknown';\n\t\tif (ecol) msg += ':' + ecol;\n\t\tif (emsg) msg += '\\\\n'+emsg;\n\t\tif ((emsg) && (eerror) && (emsg.indexOf(eerror) < 0)) msg += '\\\\n'+eerror;\n\t\tif (url) msg += '\\\\n'+url;\n\t\talert (msg);\n\t}\n\treturn true;\n};\n\n// Prohibited area selection.\nfunction ReturnFalse () {\n\treturn false;\n}\nwindow.document.onselectstart = ReturnFalse;\nwindow.document.ondragstart = ReturnFalse;\nif (navigator.userAgent.indexOf('Firefox') >= 0) {\n\tvar eventNames = [\"mousedown\",\"mouseover\",\"mouseout\",\"mousemove\",\"mousedrag\",\"click\",\"dblclick\",\"keydown\",\"keypress\",\"keyup\"];\n\tfor(var i=0; i<eventNames.length; i++) {\n\t\twindow.addEventListener( eventNames[i], function(e) { window.event = e; }, true );\n\t}\n}\n\nfunction pwKeyCursor (npobj) {\n\tvar nplen = npobj.value.length;\n\tnpobj.setSelectionRange(nplen, nplen);\n}\nfunction pwKeyDown () {\n\tvar e = event || window.event;\n\tvar keycode = e.keyCode || e.charCode;\n\tif ((33 <= keycode) && (keycode <= 40)) {\n\t\tif (e.preventDefault) e.preventDefault(); else e.stop();\n\t}\n}\nfunction pwKeyPress (obj) {\n\tvar e = event || window.event;\n\tvar keycode = e.keyCode || e.charCode;\n\tif (keycode == 13) return;\n\tif (keycode == 8) return;\n\t\n\tvar npobj = obj;\n\tvar opobj = eval(obj.form.name+'.'+obj.name.slice(0, -1));\n\tnpobj.value += '*';\n\topobj.value += String.fromCharCode(keycode);\n\tif (e.preventDefault) e.preventDefault(); else e.stop();\n\tobj.blur();\n\tobj.focus();\n}\nfunction pwKeyUp (obj) {\n\tvar npobj = obj;\n\tvar opobj = eval(obj.form.name+'.'+obj.name.slice(0, -1));\n\tvar nplen = npobj.value.length;\n\tvar oplen = opobj.value.length;\n\tif (nplen < oplen) opobj.value = opobj.value.substr(0, nplen);\n\telse if (oplen < nplen) opobj.value += npobj.value.substr(oplen);\n\telse return;\n\tnpobj.value = '';\n\tfor (var i=0; i<nplen; i++) npobj.value += '*';\n\tobj.blur();\n\tobj.focus();\n}\n\nfunction PrintAll (obj) {\n\tvar msg = ''\n\tfor (propName in obj) try { msg += propName+'='+obj[propName]+'\\\\n'; } catch (err) { }\n\talert(msg);\n}\n\nfunction SetCookie(cKey, cValue) {\n\tdocument.cookie = cKey + '=' + escape(cValue);\n}\nfunction SetCookie(cKey, cValue, iValid) {\n\tvar date = new Date();\n\tdate.setDate(date.getDate() + iValid);\n\tdocument.cookie = cKey + '=' + escape(cValue) + ';expires=' + date.toGMTString();\n}\nfunction DelCookie(cKey) {\n\tvar date = new Date();\n\tdate.setDate(date.getDate() - 1);\n\tdocument.cookie = cKey + '=;expires=' + date.toGMTString();\n}\nfunction GetCookie(cKey, cDef) {\n\tvar cookies = document.cookie.split(\"; \");\n\tfor (var i = 0; i < cookies.length; i++) {\n\t\tvar keyValues = cookies[i].split(\"=\");\n\t\tif ((0 < keyValues.length) && (keyValues[0] == cKey)) return unescape(keyValues[1]);\n\t}\n\treturn cDef;\n}\n\nvar hMsgTimeout = null;\nfunction MsgPopupColor (msg, c, ms, ani) {\n\tif (hMsgTimeout != null) {\n\t\tclearTimeout(hMsgTimeout);\n\t\thMsgTimeout = null;\n\t}\n\t$('#msgPopupTxt').html(msg);\n\t$('#msgPopupTxt').css('background-color',c);\n\t$('#msgPopupBox').css('display','table');\n\tif (0 < ms) hMsgTimeout = setTimeout (MsgPopupHideGo,ms);\n\tif (ani) $('#msgPopupTxt').animate({zoom:'110%'},100).animate({zoom:'95%'},100).animate({zoom:'100%'},100);\n}\nfunction MsgPopupOnly (msg, ms) {\t// no animation\n\tMsgPopupColor (msg, '#008800', ms, false);\n}\nfunction MsgPopupShow (msg, ms) {\t// normal dialog box + popup animation\n\tMsgPopupColor (msg, '#008800', ms, true);\n}\nfunction MsgPopupError (msg, ms) {\t// error dialog box + popup animation\n\tMsgPopupColor ('<img src=\"img/attention.png\" style=\"vertical-align:top\"> '+msg, '#B81900', ms, true);\n}\nfunction MsgPopupHideGo () {\n\thMsgTimeout = null;\n\t$('#msgPopupBox').fadeOut();\n}\nfunction MsgPopupHide () {\n\tif (hMsgTimeout != null) {\n\t\tclearTimeout(hMsgTimeout);\n\t\tMsgPopupHideGo ();\n\t}\n}\n\nfunction js_number_format (num, decimals, zero) {\n\tif (typeof num != 'number') return '';\n\tnum = num.toFixed(decimals);\n\tvar reg = /(^[+-]?\\d+)(\\d{3})/;\n\tvar tmp = num.split('.');\n\tvar n = tmp[0];\n\tvar d = tmp[1];\n\tif (d) {\n\t\tvar l = d.length;\n\t\tif (zero === 0) {\n\t\t\twhile (0 < l) {\n\t\t\t\tif (d.charAt(l-1) != '0') break;\n\t\t\t\td = d.substring (0, --l);\n\t\t\t}\n\t\t}\n\t\td = (0<l) ? ('.' + d) : '';\n\t} else {\n\t\td = '';\n\t}\n\t\n\twhile(reg.test(n)) n = n.replace(reg, \"$1,$2\");\n\treturn n + d;\n}\n\nEOF;\n\techo (\"var arr_win_dir = [\");\n\tfor ($i=0; $i<sizeof($arr_win_dir); $i++) {\n\t\tif (0 < $i) echo (\",\");\n\t\techo (\"'$arr_win_dir[$i]'\");\n\t}\n\techo (\"];\\n\");\n\techo (\"var arr_pozip = [\");\n\tfor ($i=0; $i<sizeof($arr_pozip); $i++) {\n\t\tif (0 < $i) echo (\",\");\n\t\techo (\"'$arr_pozip[$i]'\");\n\t}\n\techo (\"];\\n\");\n\techo (\"var arr_alm = [\");\n\tfor ($i=0; $i<sizeof($arr_alm); $i++) {\n\t\tif(0 < $i) echo (\",\");\n\t\techo (\"'$arr_alm[$i]'\");\n\t}\n\techo (\"];\\n\");\nprint <<<EOF\n\nfunction js_item_format\t(val, dec, zero) {\n\tif ((0 <= dec) && (dec <= 9)) {\n\t\treturn js_number_format (val, dec, zero);\n\t}\n\tif (10 == dec) {\t// Special code: wind_direction\n\t\tif (typeof val != 'number') val = parseInt(val);\n\t\telse val = Math.round(val);\n\t\tif ((isNaN(val)) || (val < 1) || (16 < val)) val = 1;\n\t\treturn arr_win_dir[val-1] + \" <img src='img/windd\"+val+\".png' class='windImg'>\";\n\t}\n\tif (11 == dec) {\t// Special code: pozip\n\t\tif (typeof val != 'number') val = parseInt(val);\n\t\telse val = Math.round(val);\n\t\tif ((isNaN(val)) || (val < 0) || (1 < val)) val = 0;\n\t\treturn arr_pozip[val];\n\t}\n\tif (12 == dec) {\t// Special code: alm\n\t\tif (typeof val != 'number') val = parseInt(val);\n\t\telse val = Math.round(val);\n\t\tif ((isNaN(val)) || (val < 0) || (3 < val)) val = 0;\n\t\treturn arr_alm[val];\n\t}\n\treturn val;\n}\n\nEOF;\n\tif ($ISM) {\nprint <<<EOF\n\nvar menuStatus = false;\nfunction mfc(action) {\n\tMenuClose(1);\n\tdocument.location = action;\n}\nfunction MenuClose (opt) {\n\tif (opt != 1) {\n\t\tmenuStatus = false;\n\t\t$('body,html').css({'overflow':'visible'});\n\t\t$('body').unbind('touchmove');\n\t\t$('#menuBack').fadeOut();\n\t}\n\tvar obj = $('#menuMenu');\n\tvar w = obj.width()+10;\n\tobj.animate({left:-w});\n}\nfunction MenuClick () {\n\tmenuStatus = true;\n\t$('body,html').css({'overflow':'hidden'});\n\t$('body').bind('touchmove', function(e){if(e.preventDefault)e.preventDefault();else e.stop()});\n\t$('#menuBack').fadeIn();\n\t\n\tvar obj = $('#menuMenu');\n\tvar w = obj.width()+10;\n\tobj.css({left:-w});\n\tobj.animate({left:0});\n}\nfunction MoveLastUp() {\n\t$('body').scrollTop(0);\n}\nfunction MoveLastDn() {\n\t$('body').scrollTop($(document).height());\n}\n\n// Call from Android APP.\nvar mMyLat = 0, mMyLng = 0;\nfunction SetLocation (lat, lng) {\n\tmMyLat = lat;\n\tmMyLng = lng;\n\tif (typeof OnMyLocation == 'function') OnMyLocation (false);\n}\n\nEOF;\n\t} else {\n\t\tif ($sWindowTitle != '') echo (\"try{parent.document.title='$sWindowTitle';}catch(err){}\\n\");\n\t}\n\techo (\"</script>\\n\");\n}", "function getHead() {\n return '';\n // return $this->document->getHead();\n }", "function heading() {\n\t?>\n\t\t<!DOCTYPE html>\n\t\t<html>\n\t\t\t<head>\n\t\t\t\t<meta charset=\"utf-8\" />\n\t\t\t\t<title>Remember the Cow</title>\n\t\t\t\t<link href=\"https://webster.cs.washington.edu/css/cow-provided.css\" \n\t\t\t\t type=\"text/css\" rel=\"stylesheet\" />\n\t\t\t\t<link href=\"cow.css\" type=\"text/css\" rel=\"stylesheet\" />\n\t\t\t\t<link href=\"https://webster.cs.washington.edu/images/todolist/favicon.ico\" \n\t\t\t\t type=\"image/ico\" rel=\"shortcut icon\" />\n\t\t\t</head>\n\n\t\t\t<body>\n\t\t\t\t<div class=\"headfoot\">\n\t\t\t\t\t<h1>\n\t\t\t\t\t\t<img src=\"https://webster.cs.washington.edu/images/todolist/logo.gif\" alt=\"logo\" />\n\t\t\t\t\t\tRemember<br />the Cow\n\t\t\t\t\t</h1>\n\t\t\t\t</div>\n\t<?php\n\t}", "public static function showHeader() {\r\n\t\t$title = (array_key_exists('headertitle', $_SESSION))?\r\n\t\t\t$_SESSION['headertitle']:\"\";\r\n\t\t\r\n\t\techo \"<!DOCTYPE html>\\n\";\r\n\t\techo \"<html>\\n\";\r\n\t\techo \"<head>\\n\";\r\n\t\techo \"<title>$title</title>\\n\";\r\n\t\techo \"</head>\\n\\t<body>\\n\";\r\n }", "function print_head_scripts() {\n\tglobal $asc_scripts, $concatenate_scripts;\n\n\tif ( ! did_action('asc_print_scripts') ) {\n\t\t/** This action is documented in functions.asc-scripts.php */\n\t\tdo_action( 'asc_print_scripts' );\n\t}\n\n\tif ( !is_a($asc_scripts, 'ASC_Scripts') )\n\t\t$asc_scripts = new ASC_Scripts();\n\n\tscript_concat_settings();\n\t$asc_scripts->do_concat = $concatenate_scripts;\n\t$asc_scripts->do_head_items();\n\n\t/**\n\t * Filter whether to print the head scripts.\n\t *\n\t * @since 2.8.0\n\t *\n\t * @param bool $print Whether to print the head scripts. Default true.\n\t */\n\tif ( apply_filters( 'print_head_scripts', true ) ) {\n\t\t_print_scripts();\n\t}\n\n\t$asc_scripts->reset();\n\treturn $asc_scripts->done;\n}", "function title()\n {\n print($this->_title);\n }", "function showHTMLHeaderWithTitle($title = '') {\r\n\techo '<!DOCTYPE html>'; // započinje ispravan HTML blok koda\r\n\r\n\techo '<html lang=\"hr\">'; // postavlja jezik stranice na hrvatski\r\n\r\n\techo '<head>'; // započinje HEAD dio HTML stranice\r\n\r\n\techo '<meta charset=\"utf-8\">'; // postavlja kodiranje stranice na UTF-8\r\n\r\n\techo '<title>'; // započinje postavljanje naslova stranice koji se prikazuje u pregledniku kod bookmarka i u nazivu prozora ili taba\r\n\techo (isset($title) && !empty($title) ? $title.' :: ' : ''); // prikazuje naslov putem inline if-a, ako je postavljen\r\n\techo 'Bankomati'; // na kraju naslova uvijek doda naziv aplikacije Bankomati\r\n\techo '</title>';// završava postavljanje naslova stranice\r\n\r\n\techo '</head>'; // završava HEAD dio HTML stranice\r\n\r\n\techo '<body>'; // započinje BODY dio HTML stranice\r\n\t// prikazuje naslov kao heading (poglavlje stranice) putem običnog if-a, ako je postavljen\r\n\tif (\r\n\t\tisset($title) \r\n\t\t&& \r\n\t\t!empty($title)\r\n\t) {\r\n\t\techo '<h1>'; // započinje postavljanje headinga (poglavlja) stranice nivoa 1\r\n\t\techo $title;\r\n\t\techo '</h1>'; // završava postavljanje headinga (poglavlja) stranice nivoa 1\r\n\t}\r\n\techo '<hr/>'; // ispisuje horizontalku\r\n}", "public function printHeaders() {\n\t}", "protected function renderPageTitle() {}", "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}", "function displayHeader()\n\t{\n\t\t// output locator\n\t\t$this->displayLocator();\n\n\t\t// output message\n\t\tif($this->message)\n\t\t{\n\t\t\tilUtil::sendInfo($this->message);\n\t\t}\n\t\tilUtil::infoPanel();\n\n//\t\t$this->tpl->setTitleIcon(ilUtil::getImagePath(\"icon_pd_b.gif\"),\n//\t\t\t\"\");\n\t\t$this->tpl->setTitle($this->lng->txt(\"bookmarks\"));\n\t}", "function BasicHead()\n{\n print LoadTemplate(\"basic_head\");\n\n $_SESSION[\"head_printed\"] = true;\n}", "public static function header($title)\n\t{\n\t\tstatic::stdout(' '.$title.PHP_EOL);\n\t\tstatic::stdout(' '.\\str_repeat('-', static::$screenwidth-1).PHP_EOL.PHP_EOL);\n\t}", "function PageNoHeadRider($h) {\n\n print \"<header class=\\\"$h\\\">\\n\";\n IF (is_null($_SESSION['RiderHonors'])) {\n printf(\"<H2>%s</H2>\\n\", $_SESSION['RiderName']);\n } ELSE {\n printf(\"<H2>%s %s</H2>\\n\", $_SESSION['RiderHonors'], $_SESSION['RiderName']);\n }\n print \"</header>\\n\";\n}", "function msdlab_pre_header(){\n print '<div class=\"pre-header\">\n <div class=\"wrap\">';\n do_action('msdlab_pre_header');\n print '\n </div>\n </div>';\n }", "function title(Printer $printer, $text)\n\t{\n\t $printer -> selectPrintMode(Printer::MODE_EMPHASIZED);\n\t $printer -> text(\"\\n-------- \" . $text.\" --------\\n\");\n\t $printer -> selectPrintMode(); // Reset\n\t}", "public function restoration_title($title) {\n\t\techo '<h2>'.$title.'</h2>';\n\t}", "protected function dumpHeader() {\n\t\treturn trim('\n# TYPO3 Extension Manager dump 1.1\n#\n#--------------------------------------------------------\n');\n\t}", "function removeHeadLinks() {\n remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds\n remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feed\n remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link\n remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file.\n remove_action( 'wp_head', 'index_rel_link' ); // index link\n remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // prev link\n remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); // start link\n remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 ); // Display relational links for the posts adjacent to the current post.\n remove_action( 'wp_head', 'wp_generator' ); // Display the XHTML generator that is generated on the wp_head hook, WP version\n}", "function head() {\n\n\techo '<h1>ATOM.CMS</h1>';\n\t\n}", "function showHead( $appctx )\n\t\t{\n\t\t}", "function OutputHead($title) { \n\n echo <<<comma\n\n\n<!DOCTYPE html>\n <html>\n <head>\n \n <!-- Linking the css files with the actual php files so that everything displayed have the proper properties -->\n\n <link rel=\"stylesheet\" type=\"text/css\" href=\"CSS\\Style.css\">\n <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"\\Coursework1PaulLucianCosareanu\\CSS\\IndexVideo.css\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"\\Coursework1PaulLucianCosareanu\\CSS\\Menu.css\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"\\Coursework1PaulLucianCosareanu\\CSS\\Logo.css\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"\\Coursework1PaulLucianCosareanu\\CSS\\SocialMediaIcons.css\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"\\Coursework1PaulLucianCosareanu\\CSS\\ListOfContact.css\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"\\Coursework1PaulLucianCosareanu\\CSS\\StyleSlide.css\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"\\Coursework1PaulLucianCosareanu\\CSS\\Controls.css\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"\\Coursework1PaulLucianCosareanu\\CSS\\LoginRegister.css\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"\\Coursework1PaulLucianCosareanu\\CSS\\ContactPage.css\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"\\Coursework1PaulLucianCosareanu\\CSS\\RankingContent.css\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"\\Coursework1PaulLucianCosareanu\\CSS\\GameCanvas.css\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"\\Coursework1PaulLucianCosareanu\\CSS\\cssDescriptionPagetext.css\">\n\n <!-- End of the css linking -->\n \n <!-- the <title> elemet displays the $ title parsed from any mainpage.php -->\n\n <title> . $title . </title> \n\n <!-- the meta name forces the browser to function at the actual screen width-->\n \n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> \n \n </head>\n <body onload=\"displayranking()\">\n \ncomma;\n}", "function Header() {\r\n // print the title\r\n $this->SetTitleFont();\r\n $this->Cell(100, 8, $this->title, 0, 0, \"L\");\r\n\r\n // print the author\r\n $this->SetAuthorFont();\r\n $this->Cell(0, 8, $this->author, 0, 0, \"R\");\r\n\r\n // header line\r\n $this->SetFillColor(0, 0, 0);\r\n $this->Rect(10, 17, 190, 0.2, \"F\");\r\n $this->Rect(10, 17.5, 190, 0.2, \"F\");\r\n $this->Ln(14);\r\n }", "function of_head() { do_action( 'of_head' ); }", "function printTop() {\n \n\tprint \n\t \n \"\t<!DOCTYPE html>\".\n \"\t<html lang='en'>\".\n \"\t<head>\".\n \" <meta charset='utf-8'>\".\n \"<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'> \".\n \" <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js'></script> \".\n \" <script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script> \".\n \" <meta http-equiv='X-UA-Compatible' content='IE=edge'>\".\n \"<meta name='viewport' content='width=device-width, initial-scale=1'>\".\n \"<meta name='description' content=''>\".\n \" <meta name='author' content=''>\".\n \" <meta charset='UTF-8'>\".\n \"\t<title> Sitter Profile </title>\".\n \"</head>\".\n \n \"<body>\".\n \"<h1> Sitter Information : </h1>\".\t\n\t\n\t \"</body> \\n\".\n \"</html> \\n\";\n\t}", "function display_header() {}", "function printPageHeader($title) {\n echo \"<html>\n <head>\n \n </head>\n <body>\n <h1>{$title}</h1>\";\n}", "private function BuildHeadText( $profile ){\n\t\tprint( \"<h5>Solarpower SprayLoader P.O.C</h5>\" );\n\t\tprint( '<div class=\"row\"><div class=\"col s9\">');\n\t\tprint( \"<p> Welcome back, \" . $profile['personaname'] . \". Nullam sit amet lacus vel neque placerat aliquet et ac purus. Donec ac semper mi. Vestibulum imperdiet risus eget justo mollis, consequat consequat nunc ullamcorper. Proin lectus urna, faucibus sit amet egestas ut, fringilla non nisi. Sed ut iaculis neque, ullamcorper tincidunt justo. Donec at tincidunt risus. Duis vel velit porta ante ornare condimentum. Suspendisse fermentum hendrerit rutrum. Phasellus dignissim suscipit magna nec mattis. Aliquam hendrerit nisi turpis, sed pulvinar justo aliquet nec. Aliquam velit odio, congue sit amet ornare eu, auctor vitae dolor. In nisi magna, interdum sed lacus nec, cursus viverra est. Fusce quis bibendum neque. Nam vehicula rhoncus nibh, in facilisis dolor maximus ut. Sed pellentesque, augue ut sodales pulvinar, arcu est sagittis risus, sit amet pharetra sem lorem ac felis.</p>\");\n\t\tprint( '</div><div class=\"col s3\">');\n\t\tprint( '<img src=\"'.$profile['avatarfull'].'\" title=\"\" alt=\"\" />');\n\t\tprint( '</div></div>');\n\t}", "function remove_h1_from_heading($args) {\n$args['block_formats'] = 'Paragraph=p;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Pre=pre';\nreturn $args;\n}", "function Header()\n{\n\tglobal $title;\n\t$this->Ln(5);\n}", "function display_header_text()\n {\n }", "public function head_cleanup() {\n\t\tremove_action('wp_head', 'feed_links_extra', 3);\n\t\tadd_action('wp_head', 'ob_start', 1, 0);\n\t\tadd_action('wp_head', function () {\n\t\t\t$pattern = '/.*' . preg_quote(esc_url(get_feed_link('comments_' . get_default_feed())), '/') . '.*[\\r\\n]+/';\n\t\t\techo preg_replace($pattern, '', ob_get_clean());\n\t\t}, 3, 0);\n\n\t\tremove_action('wp_head', 'rsd_link');\n\t\tremove_action('wp_head', 'wlwmanifest_link');\n\t\tremove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);\n\t\tremove_action('wp_head', 'wp_generator');\n\t\tremove_action('wp_head', 'wp_shortlink_wp_head', 10, 0);\n\t\tremove_action('wp_head', 'print_emoji_detection_script', 7);\n\t\tremove_action('admin_print_scripts', 'print_emoji_detection_script');\n\t\tremove_action('wp_print_styles', 'print_emoji_styles');\n\t\tremove_action('admin_print_styles', 'print_emoji_styles');\n\t\tremove_action('wp_head', 'wp_oembed_add_discovery_links');\n\t\tremove_action('wp_head', 'wp_oembed_add_host_js');\n\t\tremove_action('wp_head', 'rest_output_link_wp_head', 10, 0);\n\t\tremove_filter('the_content_feed', 'wp_staticize_emoji');\n\t\tremove_filter('comment_text_rss', 'wp_staticize_emoji');\n\t\tremove_filter('wp_mail', 'wp_staticize_emoji_for_email');\n\t\tadd_filter('use_default_gallery_style', '__return_false');\n\n\t\tglobal $wp_widget_factory;\n\n\t\tif (isset($wp_widget_factory->widgets['WP_Widget_Recent_Comments'])) {\n\t\t\tremove_action('wp_head', [$wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style']);\n\t\t}\n\n\t\tif (!class_exists('WPSEO_Frontend')) {\n\t\t\tremove_action('wp_head', 'rel_canonical');\n\t\t\tadd_action('wp_head', [$this, 'rel_canonical']);\n\t\t}\n\n\t\tif (class_exists('SitePress')) {\n\t\t\tdefine('ICL_DONT_LOAD_NAVIGATION_CSS', true);\n\t\t\tdefine('ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS', true);\n\t\t\tdefine('ICL_DONT_LOAD_LANGUAGES_JS', true);\n\t\t\tremove_action( 'wp_head', [ $GLOBALS['sitepress'], 'meta_generator_tag', 20 ] );\n\t\t}\n\n\t\tif ( class_exists( 'woocommerce' ) ) {\n\t\t\tadd_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );\n\t\t}\n\t}", "private function renderHead() {\n\t\t\n\t\t\t$this->outputLine('<head>');\n\t\t\t\n\t\t\tif ($this->_title != '') {\n\t\t\t\t$this->outputLine('\t<title>' . $this->_title . '</title>');\n\t\t\t}\n\t\t\t\n\t\t\t$this->outputLine('\t<base href=\"' . $this->_base . '\" />');\n\t\t\t\n\t\t\t$this->outputLine('\t<meta http-equiv=\"content-type\" content=\"' . $this->_contentType . '\" />');\n\t\t\t\n\t\t\t//Meta\n\t\t\tforeach ($this->_meta as $meta) {\n\t\t\t\t$this->outputLine('\t<meta name=\"' . $meta->name . '\" content=\"' . $meta->content . '\" />');\n\t\t\t}\n\t\t\t\n\t\t\t//CSS\n\t\t\tforeach ($this->_css as $css) {\n\t\t\t\t$this->outputLine(\"\t\" . $css);\n\t\t\t}\n\t\t\t\n\t\t\t//JS\n\t\t\tforeach ($this->_js as $js) {\n\t\t\t\t$this->outputLine(\"\t\" . $js);\n\t\t\t}\n\t\t\t\n\t\t\t$this->outputLine('</head>');\n\t\t\n\t\t}", "function bpfit_walk_subtab_function_to_show_title() {\n\t\t\techo 'Walk Desc.';\n\t\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 print_html_header($title) {\n\tif ($title != \"Login\")\n\t\t$menu = make_menu_bs($title);\n\n\techo '\n<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t <meta charset=\"utf-8\">\n\t <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n\t <title>'.$title.'</title>\n\t\t<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css\">\n\t\t<link rel=\"stylesheet\" href=\"css/style.css\">\n\t</head>\n\t<body>\n\t\t<div class=\"container\">\n\t\t\t'.$menu.'\n\t\t\t<div class=\"content\">\n\t';\n\tif ($title != \"Login\")\n\t\techo '<h1>'.$title.'</h1>';\n}", "function showHead($title='') {\n\tglobal $template, $config;\n?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html><head>\n<title><?=$title?></title>\n<link href=\"<?=joinPath($config['site_absolute_url'],'/')?>css/style.css\" rel=\"stylesheet\" type=\"text/css\" />\n<script src=\"<?=joinPath($config['site_absolute_url'],'/')?>js/JSL.js\" type=\"text/javascript\"></script>\n<script src=\"<?=joinPath($config['site_absolute_url'],'/')?>js/application.js\" type=\"text/javascript\"></script>\n<?=implode($template->includes,\"\\n\");?>\n<?php\n}", "function _renderSectionHeader($title)\n {\n if (!empty($title)) {\n echo \"\\n\".'<legend>';\n echo $this->_encodeTitle ? htmlspecialchars($title) : $title;\n echo '</legend>'.\"\\n\";\n }\n }", "function Header() {\n if(empty($this->title) || $this->PageNo() == 1) return;\n $oldColor = $this->TextColor;\n $this->SetTextColor(PDF_HEADER_COLOR['red'],\n PDF_HEADER_COLOR['green'],\n PDF_HEADER_COLOR['blue']);\n $x = $this->GetX();\n $y = $this->GetY();\n $this->SetY(10, false);\n $this->SetFont('', 'B');\n $this->Cell(0, 10, $this->title);\n $this->SetFont('', '');\n $this->SetXY($x, $y);\n $this->TextColor = $oldColor;\n }", "function print_html_head($now)\n{\n echo '<!DOCTYPE html>\n <html lang=\"de\">\n <head>\n <meta charset=\"UTF-8\"/>\n <title> Freifunk</title>\n <link rel=stylesheet type=\"text/css\" href=\"css/style.css\">\n </head>\n <body>';\n $datum = date(\"d.m.y\", $now);\n $uhrzeit = date(\"G:i\", $now);\n echo \"<h1>Status Nodes $datum um $uhrzeit Uhr</h1> <br />\";\n}", "function quasar_after_header_title_hook(){\n\t//Do Nothing\n}", "function displayHeader($title = '',\n $subtitle = '',\n $status = ''){\n global $DOPBSP;\n \n $complete_title = ($title != '' ? '<span class=\"dopbsp-phone-hidden\">'.$title:'').\n ($subtitle != '' ? ' - </span>'.$subtitle:'</span>').\n ($status != '' ? '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$status:'');\n?>\n <h2></h2>\n <div class=\"dopbsp-header\">\n <h3><?php echo $complete_title?></h3>\n<?php\n echo $this->getLanguages();\n \n if (DOPBSP_CONFIG_VIEW_DOCUMENTATION){\n?>\n <a href=\"<?php echo DOPBSP_CONFIG_HELP_DOCUMENTATION_URL; ?>\" target=\"_blank\" class=\"dopbsp-tablet-hidden dopbsp-phone-hidden\"><?php echo $DOPBSP->text('HELP_DOCUMENTATION'); ?></a>\n<?php\n }\n?>\n <br class=\"dopbsp-clear\" />\n </div>\n <?php $this->displayBoxes(); ?>\n<?php \n }", "function print_header($title, $keywords, $description )\n{\n\tif (strlen($description < 40))\n\t\tthrow new Exception('A reasonable description length is required<br>');\n\n\tprint (\"<html><head>\");\n\tprint (\"<title>$title</title>\");\n\tprint (\"<meta name=\\\"Keywords\\\" content=\\\"$keywords\\\">\");\n\tprint (\"<meta name=\\\"Description\\\" content=\\\"$description\\\">\");\n\tprint (\"</head><body>\");\n}", "function printHeader()\n\t{\n\t\t$_SESSION['last_page'] = $_SERVER['QUERY_STRING'];\n\t\tif( isset($_SESSION['admin']) && $_SESSION['admin'])\n\t\t{\n\t\t\t$this->admin_nav = \"<a class=\\\"button\\\" href=\\\"?section=project_management\\\" title=\\\"Go to project management\\\">Project Management</a>\\n\n\t\t\t\t\\t\\t<a class=\\\"button\\\" href=\\\"?section=reference_value_management\\\" title=\\\"Go to reference value management\\\">Reference Value Management</a>\\n\n\t\t\t\t\\t\\t<a class=\\\"button\\\" href=\\\"?section=user_management\\\" title=\\\"Go to user management\\\">User Management</a>\\n\";\n\t\t}\n\t\t$this->initSessionVariables();\n\t\tinclude 'View/Header.html';\n\t}", "function header($title=false) {\n\t\tif(!$title) {\n\t\t\t$title = 'Beerlogger';\n\t\t}\n\t\tob_start();\n\t\tinclude('templates/header.php');\n\t\t$output = ob_get_clean();\n\t\treturn $output;\n\t}", "public function loadPageTitle()\n \t\t{\n echo \"<title>Add Item</title>\";\n }", "public function WPHead() {\n\t\t// Just tag the page for fun.\n\t\techo \"\\n\\t\" . '<!-- This site uses Good Old Gallery, get it from http://wp.unwi.se/good-old-gallery -->' . \"\\n\\n\";\n\t}", "function program_head($show_new = false){\n\techo'\n\t<div class=\"wrap\">\n\t\t<h1>Programm';\n\n\tif($show_new) {\n\t\techo '\n\t\t\t<a class=\"page-title-action\" href=\"' . menu_page_url( 'program', false ) . '&action=new\">Neu erstellen</a>\t\t\n\t\t</h1>';\n\t}else{\n\t\techo \"</h1>\";\n\t}\n}", "function remove_additional_information_heading() {\n\treturn '';\n}", "public function display()\n {\n $current = $this->head;\n while ($current != null) \n {\n echo $current->data->name.\" \";\n echo $current->data->share.\" \";\n echo $current->data->price;\n echo \"\\n\";\n $current = $current->next;\n }\n }", "function sloodle_print_header()\n {\n global $CFG;\n\n // Offer the user an 'update' button if they are allowed to edit the module\n $editbuttons = '';\n if ($this->canedit) {\n $editbuttons = update_module_button($this->cm->id, $this->course->id, get_string('modulename', 'sloodle'));\n }\n // Display the header\n $navigation = \"<a href=\\\"index.php?id={$this->course->id}\\\">\".get_string('modulenameplural','sloodle').\"</a> ->\";\n sloodle_print_header_simple(format_string($this->sloodle->name), \"&nbsp;\", \"{$navigation} \".format_string($this->sloodle->name), \"\", \"\", true, $editbuttons, navmenu($this->course, $this->cm));\n\n // Display the module name\n $img = '<img src=\"'.$CFG->wwwroot.'/mod/sloodle/icon.gif\" width=\"16\" height=\"16\" alt=\"\"/> ';\n sloodle_print_heading($img.$this->sloodle->name, 'center');\n \n // Display the module type and description\n $fulltypename = get_string(\"moduletype:{$this->sloodle->type}\", 'sloodle');\n echo '<h4 style=\"text-align:center;\">'.get_string('moduletype', 'sloodle').': '.$fulltypename;\n echo sloodle_helpbutton(\"moduletype_{$this->sloodle->type}\", $fulltypename, 'sloodle', true, false, '', true).'</h4>';\n // We'll apply a general introduction to all Controllers, since they seem to confuse lots of people!\n $intro = $this->sloodle->intro;\n if ($this->sloodle->type == SLOODLE_TYPE_CTRL) $intro = '<p style=\"font-style:italic;\">'.get_string('controllerinfo','sloodle').'</p>' . $this->sloodle->intro;\n\t\t// Display the intro in a box, if we have an intro\n\t\tif (!empty($intro)) sloodle_print_box($intro, 'generalbox', 'intro');\n \n }", "function close_head()\n{\n close_tag('head', Tab(1), true) ;\n}", "public static function remove_head_meta() {\r\n if (!is_admin()):\r\n remove_action('wp_head', 'rsd_link');\r\n remove_action('wp_head', 'wp_generator');\r\n //remove_action('wp_head', 'feed_links', 2);\r\n remove_action('wp_head', 'index_rel_link');\r\n remove_action('wp_head', 'wlwmanifest_link');\r\n remove_action('wp_head', 'feed_links_extra', 3);\r\n remove_action('wp_head', 'start_post_rel_link', 10, 0);\r\n remove_action('wp_head', 'parent_post_rel_link', 10, 0);\r\n remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0);\r\n endif;\r\n }", "protected function updateHead()\n\t{\n\t}", "public function remove_screen_reader_content()\n {\n }", "public function getMainHeading() : string\n {\n return <<< 'MAINHEADING'\nCookies, Sessions, and File Upload\nMAINHEADING;\n }", "public static function stop()\n\n {\n\n $html = ob_get_contents();\n\n ob_end_clean();\n\n // remove the headline\n\n $headline = __( IS_PROFILE_PAGE ? 'About Yourself' : 'About the user' );\n\n $html = str_replace( '<h3>' . $headline . '</h3>', '', $html );\n\n // remove the table row\n\n $html = preg_replace( '~<tr>\\s*<th><label for=\"description\".*</tr>~imsUu', '', $html );\n\n print $html;\n\n }", "function do_header_found(){\n\techo\"\n\t\t<html>\n\t\t<title> Race Search </title>\n\t\t<h1> Search Results: </h1>\n\t\";\n}", "public function head()\n {\n return $this->people->getName().'做了个头';\n }", "public function head_cleanup() {\n\t\t// RSS links.\n\t\t$this->remove_action( 'wp_head', 'feed_links_extra', 3 );\n\t\t$this->remove_action( 'wp_head', 'rsd_link' );\n\n\t\t// Manifest link.\n\t\t$this->remove_action( 'wp_head', 'wlwmanifest_link' );\n\n\t\t// Prev / next post links.\n\t\t$this->remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );\n\n\t\t// Generator tag.\n\t\t$this->remove_action( 'wp_head', 'wp_generator' );\n\t\t$this->add_filter( 'the_generator', '__return_false' );\n\n\t\t// Shortlink.\n\t\t$this->remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );\n\n\t\t// Emoji scripts & styles.\n\t\t$this->remove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n\t\t$this->remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\n\t\t$this->remove_action( 'wp_print_styles', 'print_emoji_styles' );\n\t\t$this->remove_action( 'admin_print_styles', 'print_emoji_styles' );\n\t\t$this->remove_filter( 'the_content_feed', 'wp_staticize_emoji' );\n\t\t$this->remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );\n\t\t$this->remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );\n\n\t\t// Inline gallery styles.\n\t\t$this->add_filter( 'use_default_gallery_style', '__return_false' );\n\t}", "public function getHeadline() {\n\t\t$headline = $this->wire('processHeadline'); \n\t\tif(!$headline) $headline = $this->wire('page')->get('title|name'); \n\t\t$headline = $this->_($headline); \n\t\treturn $headline;\n\t}", "function _goTop () {\n\t\t$this->_roof[\"dtd\"] =$this->_dtd[$this->_doctype];\n\t\t$this->_roof[\"dtd\"].=\"<html xmlns=\\\"http://www.w3.org/1999/xhtml\\\" lang=\\\"\".$this->_lang.\"\\\" xml:lang=\\\"\".$this->_lang.\"\\\">\\n<head>\\n<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=\".$this->_enc[$this->_lang].\"\\\" />\\n\";\n\t\t$this->_roof[\"dtd\"].=\"<title>\".$this->_title.\"</title>\\n\";\n\t\t@ob_end_flush();\n\t}", "public static function printHead() {\n header('Content-Type: text/html; charset='.CHARSET);\n // Checking Bootsprap is enabled\n if(BOOTSTRAP_ON === TRUE){\n //Bootstrap include\n echo BS_DOCTYPE5;\n echo '<html lang=\"'.LANG.'\">';\n echo '<head>';\n echo '<meta charset=\"'.CHARSET.'\">';\n echo '<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">';\n echo '<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">';\n \n // HTML Title\n echo '<title>'.HTML_TITLE.'</title>';\n // Bootstrapping via CDN\n echo '<link rel=\"stylesheet\" href=\"'.BOOTSTRAP_CSS_CDN.'\">';\n echo '<link rel=\"stylesheet\" href=\"'.BOOTSTRAP_CSSTHEME_CDN.'\">';\n echo '<link rel=\"stylesheet\" href=\"'.MY_CSS.'\">';\n\n }\n elseif(BOOTSTRAP_ON === 5){\n echo BS_DOCTYPE5;\n echo '<html>';\n echo '<html lang=\"'.LANG.'\">';\n echo '<title>'.HTML_TITLE.'</title>';\n echo '<meta charset=\"'.CHARSET.'\">';\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"'\n .PROJECT_HTTP_ROOT.'/inc/css/default.css\">';\n echo '<script src=\"'.PROJECT_HTTP_ROOT.'/js/default.js\" '\n .'type=\"text/javascript\"></script>';\n } \n else {\n echo BS_DOCTYPE401;\n echo '<html>';\n echo '<head>';\n echo '<title>'.HTML_TITLE.'</title>';\n echo '<meta http-equiv=\"content-type\" content=\"text/html; '\n .'charset='.CHARSET.'\">'.\"\\n\";\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"'\n .PROJECT_HTTP_ROOT.'/inc/css/default.css.php\">';\n echo '<script src=\"'.PROJECT_HTTP_ROOT.'/js/default.js\" '\n .'type=\"text/javascript\"></script>';\n }\n \n echo '<meta name=\"description\" content=\"'.META_DESCRIPTION.'\">';\n echo '<meta name=\"author\" content=\"'.META_AUTHOR.'\">';\n echo '<meta name=\"keywords\" content=\"'.META_KEYWORDS.'\">';\n echo '<meta name=\"date\" content=\"'.META_DATE.'\">';\n echo '</head>';\n }", "function getTitle() ;", "public function get_head()\n\t{\n\t\treturn $this->its_all_in_your_head;\n\t}", "public static function subheader($title)\n\t{\n\t\tstatic::stdout\n\t\t\t(\n\t\t\t\t' === '.$title.' '.\\str_repeat('=', \n\t\t\t\tstatic::$screenwidth-6-\\strlen($title)).PHP_EOL.PHP_EOL\n\t\t\t);\n\t}", "function headClean() {\n\tremove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n\tremove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\n\tremove_action( 'wp_print_styles', 'print_emoji_styles' );\n\tremove_action( 'admin_print_styles', 'print_emoji_styles' );\n\tremove_action( 'wp_head', 'wp_generator' );\n\tremove_action( 'wp_head', 'wp_wlwmanifest' );\n\tremove_action( 'wp_head', 'rsd_link' );\n\tremove_action( 'wp_head', 'wlwmanifest_link' );\n}", "abstract protected function RenderHead();", "private function renderContentHeading() {\n\t\t$this->setMarker('content_id', $this->getContentUid());\n\t\t$this->setMarker(\n\t\t\t'content_heading',\n\t\t\thtmlspecialchars($this->cObj->data['subheader'])\n\t\t);\n\t}", "function udesign_page_title_top() {\r\n do_action('udesign_page_title_top');\r\n}", "function sloodle_print_header()\r\n {\r\n global $CFG;\r\n $navigation = \"<a href=\\\"{$CFG->wwwroot}/mod/sloodle/view.php?_type=course&id={$this->course->id}\\\">\".get_string('courseconfig', 'sloodle').\"</a>\";\r\n\r\n\r\n sloodle_print_header_simple(get_string('courseconfig','sloodle'), \"&nbsp;\", $navigation, \"\", \"\", true, '', navmenu($this->course));\r\n }", "public function do_head_items()\n {\n }", "public function head_cleanup() {\n\n\t\tremove_action( 'wp_head', 'rsd_link' );\n\t\tremove_action( 'wp_head', 'wlwmanifest_link' );\n\t\tremove_action( 'wp_head', 'wp_generator' );\n\t}", "public function printHeader() {\n\t\t$template = self::$templates[$this->templateName];\n\t\trequire_once $template['path'] . $template['file-header'];\n\t}", "public function getTitle() {\n\t\treturn '';\n\t}", "public function print_header() {\n return $this->header();\n }", "function print_html_top() {\r\n\t\techo '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">' .\r\n\t\t\t\"\\n<html>\";\r\n\t}" ]
[ "0.702319", "0.69506586", "0.66625535", "0.64830303", "0.6461335", "0.6445953", "0.64183426", "0.63166505", "0.6307648", "0.63072115", "0.6306825", "0.63003266", "0.6283586", "0.6280708", "0.62274814", "0.62072176", "0.61740875", "0.6163192", "0.6140546", "0.6122661", "0.6117897", "0.6090949", "0.60900533", "0.6087269", "0.603413", "0.60202634", "0.60097957", "0.5993285", "0.5986141", "0.59850806", "0.5980832", "0.5980593", "0.5979851", "0.5978652", "0.59781003", "0.5971395", "0.5956624", "0.5950905", "0.59418464", "0.5930628", "0.5926609", "0.592625", "0.59122765", "0.59104884", "0.59091485", "0.5906706", "0.59032524", "0.5871133", "0.5868863", "0.5859336", "0.58560115", "0.5849092", "0.5841972", "0.5840769", "0.58396715", "0.58293736", "0.58231825", "0.58228725", "0.58211046", "0.581162", "0.5805985", "0.5802492", "0.5792639", "0.5790966", "0.5781159", "0.5780317", "0.57767016", "0.57726586", "0.5768382", "0.57595134", "0.5755585", "0.5732748", "0.57268846", "0.5722029", "0.5712263", "0.5701743", "0.5700179", "0.5699242", "0.56821704", "0.5681155", "0.56778306", "0.5671421", "0.5671295", "0.5670508", "0.566024", "0.56594586", "0.56573045", "0.5650496", "0.56481165", "0.5647593", "0.56455916", "0.5643276", "0.5638294", "0.563506", "0.5632368", "0.5631158", "0.56296724", "0.5628909", "0.56223977", "0.5616909" ]
0.7106884
0
Gets the URL of the page which is being viewed.
function get_url() { return $_SERVER['REQUEST_URI']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function url()\n\t{\n\t\t$id\t\t= $this->attribute('id');\n\t\t$page\t= $this->pyrocache->model('pages_m', 'get', array($id));\n\n\t\treturn site_url($page ? $page->uri : '');\n\t}", "public function getCurrentPageURL() {\n\t\t\t$pageURL = 'http';\n\t\t\tif (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == \"on\") {\n\t\t\t\t$pageURL .= \"s\";\n\t\t\t}\n\t\t\t$pageURL .= \"://\";\n\t\t\tif ($_SERVER['SERVER_PORT'] != 80) {\n\t\t\t\t$pageURL .= $_SERVER['SERVER_NAME'] . \":\" . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$pageURL .= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];\n\t\t\t}\n\t\t\treturn $pageURL;\n\t\t}", "public function getUserPageUrl()\n {\n return $this->getUserAttribute(static::ATTRIBUTE_PAGE_URL);\n }", "public function getUrl()\n\t{\n\t\tif ($this->uri !== null)\n\t\t{\n\t\t\treturn UrlHelper::getSiteUrl($this->uri);\n\t\t}\n\t}", "public static function getURL() {\n $url = self::getHost() . $_SERVER['REQUEST_URI'];\n return $url;\n }", "public function getFrontPageUrl();", "public function url() {\n\t\tif ( ! isset( $this->url ) ) {\n\t\t\t$url = add_query_arg( 'page', $this->page_slug, 'sites.php' );\n\t\t\t$this->url = network_admin_url( $url );\n\t\t}\n\n\t\treturn $this->url;\n\t}", "public function getURL()\n {\n return $this->page->getURL() . 'links-to-this/';\n }", "public static function getUrl() {\n\t\tif(!isset(self::$url)) {\n\t\t\tself::$url = self::getUrlBase();\n\t\t\tif(isset($_SERVER['REQUEST_URI'])) {\n\t\t\t\tself::$url .= $_SERVER['REQUEST_URI'];\n\t\t\t}\n\t\t}\n\t\treturn self::$url;\n\t}", "function cherry_get_page_URL(){\n\t\tif(!isset($_SERVER['REQUEST_URI'])){\n\t\t\t$site_uri = $_SERVER['PHP_SELF'];\n\t\t} else {\n\t\t\t$site_uri = $_SERVER['REQUEST_URI'];\n\t\t\t$https = empty($_SERVER[\"HTTPS\"]) ? '' : (($_SERVER[\"HTTPS\"] == \"on\") ? \"s\" : \"\");\n\t\t\t$site_protocol = strtolower($_SERVER[\"SERVER_PROTOCOL\"]);\n\t\t\t$site_protocol = substr($site_protocol,0,strpos($site_protocol,\"/\")).$https;\n\t\t\t$site_port = ($_SERVER[\"SERVER_PORT\"] == \"80\") ? \"\" : (\":\".$_SERVER[\"SERVER_PORT\"]);\n\t\t}\n\t\treturn $site_protocol.\"://\".$_SERVER['SERVER_NAME'].$site_port.$site_uri;\n\t}", "private function get_current_page_url() {\n $url = (isset($_SERVER[\"HTTPS\"]) && $_SERVER[\"HTTPS\"] == 'on') ? 'https://' : 'http://';\n $url .= $_SERVER['SERVER_NAME'];\n $url .= $_SERVER['SERVER_PORT'] == 80 ? $_SERVER['REQUEST_URI'] : ':' . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'];\n\n return $url;\n }", "private function curPageURL() {\r\n $pageURL = 'http';\r\n if ($_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\r\n $pageURL .= \"://\";\r\n if ($_SERVER[\"SERVER_PORT\"] != \"80\") {\r\n $pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\r\n } else {\r\n $pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\r\n }\r\n return $pageURL;\r\n }", "public static function current_page_url() {\n\t\t$pageURL = 'http';\n\t\tif (!empty($_SERVER[\"HTTPS\"]) && $_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\n\t\t$pageURL .= \"://\";\n\t\tif ($_SERVER[\"SERVER_PORT\"] != \"80\" && $_SERVER[\"SERVER_PORT\"] != \"443\" ) {\n\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\n\t\t} else {\n\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\n\t\t}\n\t\treturn $pageURL;\t\t\n\t}", "public function URL()\n\t{\n\t\treturn $this->isHomePage() ? \\URL::to('/') : \\URL::to($this->uri);\n\t}", "public function getUrl() {\r\n\r\n // removing GET parameters from URL.\r\n return strtolower(rtrim(explode('?', $_SERVER['REQUEST_URI'], 2)[0], '/'));\r\n \r\n }", "public static function _url() {\n\t\treturn self::pw('pages')->get('pw_template=mpm')->url;\n\t}", "protected function pageURI(): string\n {\n $ssl = (@$_SERVER['HTTPS'] == 'on');\n $link = ($ssl? 'https://' : 'http://') .$_SERVER['HTTP_HOST'];\n if ($_SERVER['SERVER_PORT'] != ($ssl? '443' : '80')) {\n $link .= ':' .$_SERVER[\"SERVER_PORT\"];\n }\n return $link .urldecode($_SERVER['REQUEST_URI']);\n }", "public function get_url () {\r\n\t\treturn $this->url;\r\n\t}", "public static function getCurrentPage()\n {\n $page = '';\n\n if (isset($_SERVER['REQUEST_URI']) === TRUE && isset($_SERVER['HTTP_HOST']) === TRUE) {\n $protocol = 'http';\n $page = $protocol.'//'.$_SERVER['HTTP_HOST'].'/'.$_SERVER['REQUEST_URI'];\n $page = substr($page, strlen(url::getUrl()));\n $page = trim($page, '/');\n }\n\n return $page;\n }", "public function getPageUrl()\n {\n if ($this->hasData(static::REGISTRATION_URL)) {\n return $this->getData(static::REGISTRATION_URL);\n } elseif ($this->hasData(static::CONFIGURATION_URI)) {\n return $this->getData(static::CONFIGURATION_URI);\n } elseif ($this->hasData(static::REGISTRATION_URI)) {\n return $this->getData(static::REGISTRATION_URI);\n }\n\n return '';\n }", "protected function getUrl(){\n\n\t\t//retornando a url aonde o usuario está\n\t\treturn parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);\n\n\t}", "protected function getUrl()\n {\n if (!empty($this->info['url'])) {\n return $this->info['url'];\n }\n }", "public function get_url() {\n\t\treturn $this->url;\n\t}", "public function get_url() {\n\t\treturn $this->url;\n\t}", "public function get_url(): string\n {\n return $this->get_url_internal();\n }", "public function get_post_page_url() {\n\t\tif ( 'page' == get_option( 'show_on_front' ) ) {\n\t\t\treturn get_permalink( get_option( 'page_for_posts' ) );\n\t\t}\n\n\t\treturn home_url();\n\t}", "public static function getRequestedURL()\n {\n return self::getInstance()->requestedUrl;\n }", "public static function CurrentURL() {\n\n // Create link to current page\n $refToThisPage = \"http\";\n $refToThisPage .= (@$_SERVER[\"HTTPS\"] == \"on\") ? 's' : '';\n $refToThisPage .= \"://\";\n $serverPort = ($_SERVER[\"SERVER_PORT\"] == \"80\") ? '' : \":{$_SERVER['SERVER_PORT']}\";\n $refToThisPage .= $serverPort . $_SERVER[\"SERVER_NAME\"] . $_SERVER[\"REQUEST_URI\"];\n\n return $refToThisPage;\n }", "public function getUrl() {\n\t\treturn $this->siteURL;\n\t}", "public static function getCurrentUrl() : string {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__);\n\n\t\t$current_page_url = 'http';\n\n\t\tif (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') {\n\t\t\t$current_page_url .= 's';\n\t\t}\n\n\t\t$current_page_url .= '://';\n\n\t\tif ($_SERVER['SERVER_PORT'] != '80') {\n\t\t\t$current_page_url .= $_SERVER['HTTP_HOST'] . ':' . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'];\n\t\t} else {\n\t\t\t$current_page_url .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\t\t}\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $current_page_url);\n\t\t$current_page_url = self::_applyFilter(get_class(), __FUNCTION__, $current_page_url, array('event' => 'return'));\n\n\t\treturn $current_page_url;\n\t}", "public static function url(): string\n\t{\n\t\treturn static::$url;\n\t}", "private function getURL(){\n if(!empty($_SERVER['REQUEST_URI'])){\n return trim($_SERVER['REQUEST_URI'],'/');\n }\n }", "protected function getUrl() {\n\t\treturn $this->getQueryParam ( self::URL_PARAM );\n\t}", "public function getUrl(): ?string\n {\n if ($this->page_id || $this->page) {\n $oPage = $this->page();\n }\n\n return $oPage->published->url ?? $this->url;\n }", "protected function getPageURL()\n {\n global $post_id;\n try {\n if (defined('TOPIC_ID')) {\n // this is a TOPICS page\n $SQL = \"SELECT `link` FROM `\".TABLE_PREFIX.\"mod_topics` WHERE `topic_id`='\".TOPIC_ID.\"'\";\n $link = $this->app['db']->fetchColumn($SQL);\n // include TOPICS settings\n global $topics_directory;\n include_once WB_PATH . '/modules/topics/module_settings.php';\n return WB_URL . $topics_directory . $link . PAGE_EXTENSION;\n }\n elseif (!is_null($post_id) || defined('POST_ID')) {\n // this is a NEWS page\n $id = (defined('POST_ID')) ? POST_ID : $post_id;\n $SQL = \"SELECT `link` FROM `\".TABLE_PREFIX.\"mod_news_posts` WHERE `post_id`='$id'\";\n $link = $this->app['db']->fetchColumn($SQL);\n return WB_URL.PAGES_DIRECTORY.$link.PAGE_EXTENSION;\n }\n else {\n $SQL = \"SELECT `link` FROM `\".TABLE_PREFIX.\"pages` WHERE `page_id`='\".PAGE_ID.\"'\";\n $link = $this->app['db']->fetchColumn($SQL);\n return WB_URL.PAGES_DIRECTORY.$link.PAGE_EXTENSION;\n }\n } catch (\\Doctrine\\DBAL\\DBALException $e) {\n throw new \\Exception($e);\n }\n }", "function get_current_page_url() {\n if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') \n $url = \"https://\"; \n else \n $url = \"http://\"; \n // Append the host(domain name, ip) to the URL. \n $url.= $_SERVER['HTTP_HOST']; \n \n // Append the requested resource location to the URL \n $url.= $_SERVER['REQUEST_URI'];\n return $url; \n }", "function curPageURL() {\n $pageURL = 'http';\n if (isset($_SERVER[\"HTTPS\"]) && $_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\n $pageURL .= \"://\";\n \n if ($_SERVER[\"SERVER_PORT\"] != \"80\") {\n $pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\n } else {\n $pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\n }\n return $pageURL;\n }", "public function GetURL()\n\t\t{\n\t\t\treturn $this->_url;\n\t\t}", "protected function _url()\n {\n if (!empty($_SERVER['PATH_INFO'])) {\n return $_SERVER['PATH_INFO'];\n }else if (!empty($_SERVER['REQUEST_URI'])) {\n return $_SERVER['REQUEST_URI'];\n }elseif (isset($_SERVER['PHP_SELF']) && isset($_SERVER['SCRIPT_NAME'])) {\n $uri = str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['PHP_SELF']);\n } elseif (isset($_SERVER['HTTP_X_REWRITE_URL'])) {\n $uri = $_SERVER['HTTP_X_REWRITE_URL'];\n } elseif ($var = env('argv')) {\n $uri = $var[0];\n }\n return $uri;\n }", "protected function getUrl()\n {\n return str_replace('?' . $_SERVER['QUERY_STRING'], '', $_SERVER['REQUEST_URI']);\n }", "function CurrPageURL() {\n $pageURL = 'http';\n if ($_SERVER[\"HTTPS\"] == \"on\") {\n $pageURL .= \"s\";\n }\n $pageURL .= \"://\";\n if ($_SERVER[\"SERVER_PORT\"] != \"80\") {\n $pageURL .= $_SERVER[\"SERVER_NAME\"] . \":\" . $_SERVER[\"SERVER_PORT\"] . $_SERVER[\"REQUEST_URI\"];\n } else {\n $pageURL .= $_SERVER[\"SERVER_NAME\"] . $_SERVER[\"REQUEST_URI\"];\n }\n return $pageURL;\n }", "public function getURL()\n\t{\n $url = $this->_internal_request->get_normalized_http_url();\n \n if ( $this->getMethod() == KHttpRequest::GET ) \n {\n $url = $this->_internal_request->to_url();\n }\n \n\t\treturn $url;\n\t}", "function current_page_url() {\n\t$pageURL = 'http';\n\tif( isset($_SERVER[\"HTTPS\"]) ) {\n\t\tif ($_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\n\t}\n\t$pageURL .= \"://\";\n\tif ($_SERVER[\"SERVER_PORT\"] != \"80\") {\n\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\n\t} else {\n\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\n\t}\n\treturn $pageURL;\n}", "public static function current_url()\r\n\t{\r\n\t\t$url = Request::factory()->uri();\r\n\t\tif($_GET)\r\n\t\t{\r\n\t\t\t$url .= '/?' . $_SERVER['QUERY_STRING'];\r\n\t\t}\r\n\t\t$url = URL::site( $url, TRUE);\r\n\t\treturn $url;\r\n\t}", "public static function current_url()\r\n\t{\r\n\t\t$url = Request::factory()->uri();\r\n\t\tif($_GET)\r\n\t\t{\r\n\t\t\t$url .= '/?' . $_SERVER['QUERY_STRING'];\r\n\t\t}\r\n\t\t$url = URL::site( $url, TRUE);\r\n\t\treturn $url;\r\n\t}", "public function get_url()\n {\n return $this->url;\n }", "public function getUrl()\n {\n if ($this->_url === null) {\n $this->_url = $this->resolveRequestUri();\n }\n\n return $this->_url;\n }", "static function curPageURL() \n\t\t{\n\t\t\t$pageURL = 'http';\n\t\t\tif ($_SERVER[\"HTTPS\"] == \"on\")\n\t\t\t{\n\t\t\t\t$pageURL .= \"s\";\n\t\t\t}\n\t\t\t$pageURL .= \"://\";\n\t\t\tif ($_SERVER[\"SERVER_PORT\"] != \"80\") \n\t\t\t{\n\t\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\n\t\t\t}\n\t\t\treturn $pageURL;\n\t\t}", "public function getCurrentPage() {\n\t\t\t$parts = parse_url($this->getCurrentPageURL());\n\t\t\treturn substr($parts['path'], strrpos($parts['path'], '/') + 1);\n\t\t}", "function curPageURL()\n{\n\t$pageURL = 'http';\n\n\t$pageURL .= \"://\";\n\n\tif ($_SERVER[\"SERVER_PORT\"] != \"80\")\n\t{\n\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\n\t}\n\telse\n\t{\n\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\n\t}\n\n\treturn $pageURL;\n}", "static function get_current_page_url() {\n\t\tif ( isset($_SERVER['REQUEST_URI']) ) {\n\t\t\t$_SERVER['REQUEST_URI'] = preg_replace('/&?offset=[0-9]*/', '', $_SERVER['REQUEST_URI']);\n\t\t}\n\t\treturn wp_kses($_SERVER['REQUEST_URI'], '');\n\t}", "static public function getURL() {\n\t\treturn self::$url;\n\t}", "public function GetURL() {\n\n return $this->URL;\n }", "public function url(){\n $protocol = \"http://\";\n if ( !empty( $_SERVER['HTTPS'] ) ) {\n $protocol = \"https://\";\n }\n $url = $protocol . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];\n return $url;\n }", "public function startPageUrl()\n {\n return $this->structure->getUrl(\n $this->currentPage,\n $this->structure->getStartPage()\n );\n }", "function curPageURL() {\n\t$pageURL = 'http';\n\tif ($_SERVER[\"HTTPS\"] == \"on\") {\n\t\t$pageURL .= \"s\";\n\t}\n\t$pageURL .= \"://\";\n\tif ($_SERVER[\"SERVER_PORT\"] != \"80\") {\n\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\n\t} else {\n\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\n\t}\n\treturn $pageURL;\n}", "public function ___httpUrl() {\n\t\t$page = $this->pagefiles->getPage();\n\t\t$url = substr($page->httpUrl(), 0, -1 * strlen($page->url())); \n\t\treturn $url . $this->url(); \n\t}", "public function getCurrentURL()\n {\n return $this->getBaseUrl() . $this->getURI();\n }", "function CurrentPageURL() \n{\n\t$pageURL = \"https://\";\n\tif(strpos(strtolower($_SERVER['SERVER_PROTOCOL']),\"https\") === false) $pageURL = \"http://\";\n\t$pageURL .= $_SERVER['SERVER_PORT'] != '80' ? $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"] : $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];\n\treturn $pageURL;\n}", "public function url() \n\t{\n\t\treturn static::protocol().'://'.static::host().$this->server('REQUEST_URI', '/' );\n\t}", "protected function getUrl() {\r\n\t\treturn $this->url;\r\n\t}", "public function GetUrl() {\n return $this->url;\n }", "public function get_url()\n {\n return $this->_url;\n }", "public function get_url()\n {\n return $this->_url;\n }", "public function url()\n\t{\n\t\treturn $this->url;\n\t}", "function url()\n {\n return $this->peopletag->homeUrl();\n }", "public static function curURL() {\n\t\t\t$pageURL = 'http';\n\t\t\tif ($_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\n\t\t\t\t$pageURL .= \"://\";\n\t\t\tif ($_SERVER[\"SERVER_PORT\"] != \"80\") {\n\t\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER['PHP_SELF'];\n\t\t\t} else {\n\t\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\"/\";\n\t\t\t}\n\t\t\treturn $pageURL;\n\t\t}", "public function getCurrentUrl()\n {\n return $this->_currentUrl;\n }", "function curPageURL() {\n\t $pageURL = 'http';\n\t if ($_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\n\t $pageURL .= \"://\";\n\t if ($_SERVER[\"SERVER_PORT\"] != \"80\") {\n\t $pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\n\t } else {\n\t $pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\n\t }\n\t return $pageURL;\n}", "protected function getURL()\r\n\t{\r\n\t\tglobal $NEED_PHP_SELF;\r\n\t\treturn ($NEED_PHP_SELF)?$_SERVER['PHP_SELF']:\"\";\r\n\t}", "public function getURL() {\n\t\treturn $this->url;\n\t}", "function current_page_url() {\n\tglobal $CONFIG;\n\n\t$url = parse_url($CONFIG->wwwroot);\n\n\t$page = $url['scheme'] . \"://\";\n\n\t// user/pass\n\tif ((isset($url['user'])) && ($url['user'])) {\n\t\t$page .= $url['user'];\n\t}\n\tif ((isset($url['pass'])) && ($url['pass'])) {\n\t\t$page .= \":\".$url['pass'];\n\t}\n\tif ((isset($url['user']) && $url['user']) ||\n\t\t(isset($url['pass']) && $url['pass'])) {\n\t\t$page .=\"@\";\n\t}\n\n\t$page .= $url['host'];\n\n\tif ((isset($url['port'])) && ($url['port'])) {\n\t\t$page .= \":\" . $url['port'];\n\t}\n\n\t//$page.=\"/\";\n\t$page = trim($page, \"/\");\n\n\t$page .= $_SERVER['REQUEST_URI'];\n\n\treturn $page;\n}", "public function getURL(): string\n {\n return $this->http->getURL();\n }", "protected function _getUrl()\n {\n return Router::url([\n '_name' => 'wikiPages',\n 'id' => $this->id,\n 'slug' => Inflector::slug($this->title)\n ]);\n }", "function realanswers_current_page_url() {\r\n $pageURL = (@$_SERVER[\"HTTPS\"] == \"on\") ? \"https://\" : \"http://\";\r\n if ($_SERVER[\"SERVER_PORT\"] != \"80\") {\r\n $pageURL .= $_SERVER[\"SERVER_NAME\"] . \":\" . $_SERVER[\"SERVER_PORT\"] . $_SERVER[\"REQUEST_URI\"];\r\n }\r\n else\r\n {\r\n $pageURL .= $_SERVER[\"SERVER_NAME\"] . $_SERVER[\"REQUEST_URI\"];\r\n }\r\n return $pageURL;\r\n}", "public function getUrlString() {\n $urlRequest = Mage::app()->getFrontController()->getRequest();\n $requestUri = $urlRequest->getServer('REQUEST_URI');\n if (strpos($requestUri, 'index.php') !== FALSE) {\n if (is_null($urlRequest->getServer('ORIG_PATH_INFO'))) {\n return ltrim($urlRequest->getServer('PATH_INFO'), '/');\n } else {\n return ltrim($urlRequest->getServer('ORIG_PATH_INFO'), '/');\n }\n } else {\n return ltrim($requestUri, '/');\n }\n }", "public function getCurrentUrl();", "function curPageURL() \n\t{\n\t\t$pageURL = 'http';\n\t\tif ($_SERVER[\"HTTPS\"] == \"on\") \n\t\t{\n\t\t\t$pageURL .= \"s\";\n\t\t}\n\t\t$pageURL .= \"://\";\n\t\tif ($_SERVER[\"SERVER_PORT\"] != \"80\") \n\t\t{\n\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\n\t\t} \n\t\telse \n\t\t{\n\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\n\t\t}\n\t\treturn $pageURL;\n\t}", "public static function curlPageURL() {\n\t\t$pageURL = 'http';\n\t\tif (isset ( $_SERVER [\"HTTPS\"] )) {\n\t\t\tif ($_SERVER [\"HTTPS\"] == \"on\") {\n\t\t\t\t$pageURL .= \"s\";\n\t\t\t}\n\t\t}\n\t\t$pageURL .= \"://\";\n\t\tif ($_SERVER [\"SERVER_PORT\"] != \"80\") {\n\t\t\t$pageURL .= $_SERVER [\"SERVER_NAME\"] . \":\" . $_SERVER [\"SERVER_PORT\"] . $_SERVER [\"REQUEST_URI\"];\n\t\t} else {\n\t\t\t$pageURL .= $_SERVER [\"SERVER_NAME\"] . $_SERVER [\"REQUEST_URI\"];\n\t\t}\n\t\treturn $pageURL;\n\t}", "public function getUrl()\r\n\t{\r\n\t\treturn $this->url;\r\n\t}", "public function getURL() {\n\t\treturn $this->_url;\n\t}", "public function getUrl() {\n return $this->get(self::URL);\n }", "public function getURL()\n {\n return $this->_url;\n }", "public function getUrl()\n {\n return $this->_urlBuilder->getUrl();\n }", "public function getFrontPageUrl()\n {\n return $this->_frontPageUrl;\n }", "public function getUrl()\n\t{\n\t\treturn $this->url;\n\t}", "public function getUrl()\n\t{\n\t\treturn $this->url;\n\t}", "public function getUrl()\n\t{\n\t\treturn $this->url;\n\t}", "public function getUrl()\n\t{\n\t\treturn $this->url;\n\t}", "public function getUrl()\n\t{\n\t\treturn $this->url;\n\t}", "public function getUrl() {\n $Url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']), array('off', 'no'))) ? 'https' : 'http';\n // Get domain portion\n $Url .= '://' . $_SERVER['HTTP_HOST'];\n // Get path to script\n $Url .= $_SERVER['REQUEST_URI'];\n // Add path info, if any\n if (!empty($_SERVER['PATH_INFO']))\n $Url .= $_SERVER['PATH_INFO'];\n // Add query string, if any \n if (!empty($_SERVER['QUERY_STRING']))\n $Url .= '?' . ltrim($_SERVER['REQUEST_URI'], '?');\n\n return $Url;\n }", "public function url() {\n if ($this->no_results)\n return false;\n\n $config = Config::current();\n\n return url(\"view/\".$this->url, ExtendController::current());\n }", "function curPageURL()\n{\n\t$pageURL = 'http';\n\tif ($_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\n\t$pageURL .= \"://\";\n\tif ($_SERVER[\"SERVER_PORT\"] != \"80\") \n\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\n\telse\n\t$pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\n\treturn $pageURL;\n}", "function currentPageURL()\n{\n $pageURL = 'http';\n if (array_key_exists('HTTPS', $_SERVER) && $_SERVER['HTTPS'] == 'on') {\n $pageURL .= 's';\n }\n $pageURL .= '://';\n if ($_SERVER['SERVER_PORT'] != '80') {\n $pageURL .= $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'];\n } else {\n $pageURL .= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];\n }\n return $pageURL;\n}", "public function getUrl()\n\t{\n\t\treturn $this->_url;\n\t}", "public function getLandingPageUrl(): string\n {\n return $this->landingPageUrl;\n }", "public function url()\n {\n return explode('?' ,$this->uri)[0];\n }", "function getCurrentPageURL() {\n $pageURL = 'http';\n// if ($_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\n// $pageURL .= \"://\";\n// if ($_SERVER[\"SERVER_PORT\"] != \"80\") {\n// $pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\n// } else {\n $pageURL .= $_SERVER[\"SERVER_NAME\"] . $_SERVER[\"REQUEST_URI\"];\n// }\n return $pageURL;\n}", "public function url() {\n\n if(isset($this->cache['url'])) return $this->cache['url'];\n\n // Kirby is trying to remove the home folder name from the url\n if($this->isHomePage()) {\n // return the base url\n return $this->cache['url'] = $this->site->url();\n } else if($this->parent->isHomePage()) {\n return $this->cache['url'] = $this->site->url() . '/' . $this->parent->uid . '/' . $this->uid;\n } else {\n $purl = $this->parent->url();\n return $this->cache['url'] = $purl == '/' ? '/' . $this->uid : $this->parent->url() . '/' . $this->uid;\n }\n\n }", "protected function ___url() {\n\t\treturn $this->pagefiles->url . $this->basename;\n\t}" ]
[ "0.7789694", "0.7711193", "0.7643896", "0.76110876", "0.7602654", "0.7562293", "0.75571966", "0.7538025", "0.75284165", "0.7528208", "0.74613637", "0.7438967", "0.74220216", "0.7385303", "0.73793983", "0.73296744", "0.7295834", "0.7291566", "0.72776365", "0.7262276", "0.7247699", "0.7241602", "0.7238949", "0.7238949", "0.7225842", "0.7220683", "0.72004724", "0.719329", "0.71907794", "0.7187852", "0.7182259", "0.71808004", "0.7161525", "0.7140711", "0.71364737", "0.7129952", "0.7123305", "0.712091", "0.7100487", "0.7089071", "0.7088025", "0.7079438", "0.7075672", "0.70750445", "0.70750445", "0.70721906", "0.70648897", "0.70444566", "0.7041504", "0.70400304", "0.70396054", "0.7038722", "0.70312995", "0.70296866", "0.7026981", "0.7025559", "0.7023201", "0.7022006", "0.70217144", "0.70159006", "0.7009319", "0.7007514", "0.70030165", "0.70030165", "0.6997658", "0.6997031", "0.6992304", "0.69909334", "0.6980989", "0.6976102", "0.6972289", "0.69701916", "0.6955148", "0.6953106", "0.69445103", "0.69441205", "0.69421524", "0.69391066", "0.6934322", "0.69279313", "0.6917074", "0.6916967", "0.691381", "0.6910237", "0.69032866", "0.6900531", "0.6900531", "0.6900531", "0.6900531", "0.6900531", "0.68999743", "0.68947345", "0.6888491", "0.6883885", "0.68832135", "0.68756986", "0.6873619", "0.68674415", "0.6866794", "0.6865894" ]
0.705882
47
Get a single property.
function get_property($property_name, $default = NULL) { $property_value = $this->_properties[$property_name]; if ($property_value == NULL) { $property_value = $default; } return $property_value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProperty($property = null);", "public function get($property);", "public function getp($property){\n if(property_exists($this, $property)){\n return $this->$property;\n }\n }", "public function getProperty();", "public function getProperty($property)\n {\n if (property_exists($this, $property)) {\n return $this->$property;\n }\n }", "public function __get($property) {\n\n if (property_exists($this, $property)){\n return $this->$property;\n }\n\n }", "public function __get($property) {\n if (property_exists($this, $property)) {\n return $this->$property;\n }\n }", "public function __get($property) {\n if (property_exists($this, $property)) {\n return $this->$property;\n }\n }", "public function __get($property) {\n if (property_exists($this, $property)) {\n return $this->$property;\n }\n }", "public function __get($property) {\n if (property_exists($this, $property)) {\n return $this->$property;\n }\n }", "public function __get( $property )\n {\n return $this->$property;\n }", "public function __get($property) \n\t{\n\t if (property_exists($this, $property)) {\n\t \treturn $this->$property;\n\t }\n }", "public function __get($property) {\n\t\tswitch($property) {\n\t\t\tcase 'num':\n\t\t\t\treturn $this->num;\n\n\t\t\tcase 'view':\n\t\t\t\treturn $this->view;\n\n\t\t\tcase 'rubric':\n\t\t\t\treturn $this->rubric;\n\n\t\t\tcase 'parts':\n\t\t\t\treturn $this->parts;\n\n\t\t\tdefault:\n\t\t\t\t$trace = debug_backtrace();\n\t\t\t\ttrigger_error(\n\t\t\t\t\t'Undefined property ' . $property .\n\t\t\t\t\t' in ' . $trace[0]['file'] .\n\t\t\t\t\t' on line ' . $trace[0]['line'],\n\t\t\t\t\tE_USER_NOTICE);\n\t\t\t\treturn null;\n\t\t}\n\t}", "public function __get($property){\n\n if(property_exists($this, $property)){\n return $this->$property;\n }\n }", "public function __get($property)\n {\n return property_exists($this, $property) ? $this->{$property} : null;\n }", "public function __get($property)\n {\n if(property_exists($this, $property)) {\n return $this->$property;\n }\n }", "public function __get($property) {\n\t\t\tif (property_exists($this, $property)) {\n\t\t\t\treturn $this->$property;\n\t\t\t}\n\t\t}", "public function __get($property){\n\t\tif (property_exists($this, $property)) {\n\t \treturn $this->$property;\n\t }\n\t}", "public function __get($property) {\n\t\tif(property_exists($this, $property))\n\t\t\treturn $this->$property;\n\t}", "public function __get($property)\n {\n return property_exists($this, $property)\n ? $this->$property : null;\n }", "public function getProperty() {\n return $this->property;\n }", "public function __get($property)\n\t{\n\t\tif (property_exists($this, $property))\n\t\t{\n\t\t\treturn $this->$property;\n\t\t}\n\t}", "public function __get($property) {\r\n $param = '_' . $property;\r\n return $this->$param;\r\n }", "protected function _get($property): mixed {\n $property[0] = strtolower($property[0]);\n if (property_exists($this, $property)) {\n return $this->$property;\n } elseif(array_key_exists($property, $this->_properties)) {\n return $this->_properties[$property];\n } else {\n trigger_error('Method \"get' . ucfirst($property) . '()\" does not exist in \"' . get_class( $this ) . '\" class.');\n }\n }", "public function __get($property)\n {\n try {\n return $this->part->{$property};\n } catch (\\Exception $ex) {\n return;\n }\n }", "public function __get($property)\r\n\t{\r\n\t\treturn $this->$property;\r\n\t}", "public function __get($property) {}", "public function __get($property)\n {\n return $this->$property;\n }", "public function __get($property)\n {\n return $this->$property;\n }", "public function __get($property)\n {\n return $this->$property;\n }", "public function __get($property)\n {\n return $this->$property;\n }", "public function __get($property)\n {\n return $this->$property;\n }", "public function __get($property)\n {\n return $this->$property;\n }", "public function __get($property) {\n\n\t\tif (property_exists($this, $property)) {\n\t\t\treturn $this->$property;\n\t\t}\n\t}", "public function __get ( $property ) {\n return isset( $this->{$property} ) ? $this->{$property} : NULL;\n }", "public function __get($property)\n\t{\n\t\treturn $this->$property;\n\t}", "public function __get($property) \n {\n return $this->$property;\n }", "public function __get($property) \n {\n return $this->$property;\n }", "public function __get($property) \n {\n return $this->$property;\n }", "public function __get($property) \n {\n return $this->$property;\n }", "public function __get($property) \n {\n return $this->$property;\n }", "public function __get($property)\n {\n switch ($property) {\n case 'name':\n return $this->name;\n break;\n \n case 'status':\n return $this->status;\n break;\n case 'id':\n return $this->id;\n break;\n }\n }", "public function property($name) {\n return $this->properties[$name];\n }", "public function getProperty(): string;", "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($key)\n {\n if (isset($this->_properties[$key])) {\n return $this->_properties[$key];\n }\n }", "public function __get($property) {\t\tif (array_key_exists($property, $this->data)) \n\t\t\treturn $this->data[$property]['value'];\n\t\t// is it related?\n\t\tif (array_key_exists($property, $this->relatedObjects))\n\t\t\treturn $this->relatedObjects[$property];\n\n\t\tthrow new InvalidArgumentException(\"Unknown property: $property\");\n\t}", "public function __get($property)\n\t{\n\t\tif(isset($this->$property))\n\t\t{\n\t\t\treturn $this->$property;\n\t\t}\n\t\telse return null;\n\t}", "public function __get( $property ) {\n\t\tif (!isset($this->$property) || $this->$property==\"\") {\n\t\t\treturn NULL;\n\t\t}\n\t\treturn $this->$property;\n\t}", "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 getProperty($name) {\n $value = null;\n if ($this->properties->offsetExists($name)) {\n $value = $this->properties->offsetGet($name);\n }\n return $value;\n }", "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($property){\n /*if(method_exists($this,'get'.ucfirst($property))){\n\n }*/\n return $this->$property;\n }", "public function __get($property) {\n\t\tif (property_exists($this, $property)) {\n\t\t\treturn $this->$property.\"<br>\";\n\t\t} else {\n\t\t\treturn $property.\" does not exist<br>\";\n\t\t}\n\t}", "function __get($property)\n {\n return $this->$property;\n }", "public function get($property) {\r\n return $this->orm->get($property);\r\n }", "function get($property, $default = null) {\n\t\tif (isset ( $this->$property )) {\n\t\t\treturn $this->$property;\n\t\t}\n\t\treturn $default;\n\t}", "public function getProperty($key);", "public function __get($prop)\r\n {\r\n return $this->$prop;\r\n }", "public function getProperty($propertyName);", "public function __get($property) {\n\n if (array_key_exists($property, $this->_data)) {\n return $this->_data[$property];\n }\n\n return null;\n\n }", "public function __get($property)\n {\n if (property_exists($this, $property)) {\n return $this->$property;\n }\n\n return null;\n }", "function get($property) {\n if (!empty($this->{$property})) {\n return $this->{$property};\n }\n else {\n return false;\n }\n }", "public function __get($property)\n {\n if (array_key_exists($property, $this->getData())) {\n return $this->getData()[$property];\n }\n\n return null;\n }", "public function getProperty($property)\n {\n return $this->_events->getProperty($property);\n }", "public function getProperty($name)\n {\n return $this->__get($name);\n }", "function __get($property)\n {\n return $this->value;\n }", "public function getProp($prop){\n\t\tif($this->props)\n\t\t\treturn $this->props[$prop];\n\t}", "function prop($prop)\n {\n \treturn $this->get_property($prop);\n }", "public function getProperty(string $property) {\r\n return $this->config->get($property);\r\n }", "public function getProperty($key)\n {\n return isset($this->properties[$key]) ? $this->properties[$key] : null;\n }", "public function getProperty(): ?string;", "public function getProperty()\n {\n return \\tabs\\api\\property\\Property::getProperty(\n $this->getPropertyRef(),\n $this->getBrandCode()\n );\n }", "public function getProperty()\n {\n return \\tabs\\api\\property\\Property::getProperty(\n $this->getPropertyRef(),\n $this->getBrandCode()\n );\n }", "public function __get($property) {\n\t\tif (strpos($property, 'source') === 0) {\n\t\t\t$property = lcfirst(substr($property, 6));\n\t\t\tif ($property === '') {\n\t\t\t\treturn $this->getSourceInstance();\n\t\t\t} else {\n\t\t\t\t$sourceInstance = $this->getSourceInstance();\n\t\t\t\t$sourceServer = $this->getSourceServer();\n\t\t\t\tif ($sourceInstance !== null && isset($sourceInstance->$property)) {\n\t\t\t\t\treturn $sourceInstance->$property;\n\t\t\t\t} elseif ($sourceServer !== null && isset($sourceServer->$property)) {\n\t\t\t\t\treturn $sourceServer->$property;\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t} elseif (strpos($property, 'remote') === 0) {\n\t\t\t$property = lcfirst(substr($property, 6));\n\t\t\tif ($property === '') {\n\t\t\t\treturn $this->getTargetInstance();\n\t\t\t} else {\n\t\t\t\t$targetInstance = $this->getTargetInstance();\n\t\t\t\t$targetServer = $this->getTargetServer();\n\t\t\t\tif ($targetInstance !== null && isset($targetInstance->$property)) {\n\t\t\t\t\treturn $targetInstance->$property;\n\t\t\t\t} elseif ($targetServer !== null && isset($targetServer->$property)) {\n\t\t\t\t\treturn $targetServer->$property;\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Temporary properties are kept in the object, and not written to the database.\n\t\t} elseif (strpos($property, 'temp') === 0) {\n\t\t\t$property = lcfirst(substr($property, 4));\n\t\t\tif (isset($this->tempProperties[$property])) {\n\t\t\t\treturn $this->tempProperties[$property];\n\t\t\t}\n\t\t} elseif (isset($this->bean->$property)) {\n\t\t\treturn $this->bean->$property;\n\t\t} else{\n\t\t\tif ($this->loadedProperties === false) {\n\t\t\t\t$this->loadProperties();\n\t\t\t}\n\t\t\tif (isset($this->properties[$property])) {\n\t\t\t\treturn $this->properties[$property];\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "public function &get(string $property)\n {\n $result = null;\n\n $method = static::accessor($property, 'get');\n\n if (isset($this->_properties[$property])) {\n $result = &$this->_properties[$property];\n }\n if ($method) {\n $result = $this->$method($result);\n }\n\n return $result;\n }", "public function __get($property) {\n\t\tif ($this->is_property_cached($property)) {\n\t\t\treturn $this->get_cached_property($property);\n\t\t}\n\t\t\n\t\t$object = $this->get_base_object();\n\t\t\n\t\tif (!property_exists($object, $property))\n\t\t\tthrow new zek_get_exception(\"Property '\" . $property . \"' does not exist in base object\");\n\n\t\t$this->set_cached_property($property, $object->$property);\n\t\treturn $object->$property;\n\t}", "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 get(string $property, $default = null);", "public function __get($prop)\r\n {\r\n return $this->wrappedObj->$prop;\r\n }", "public function __get($prop){\n\t\treturn $this->$prop;\n\t}", "function __get($property)\n {\n if($property == \"id\")\n {\n return $this->id;\n }\n else\n {\n return call_user_func_array(array($this, \"getAttribute\"), array($property));\n }\n }", "abstract protected function propertyGet($name);", "public function __get( $property ) {\n\t\t\tif ( property_exists( $this, $property ) ) {\n\t\t\t\treturn $this->$property;\n\t\t\t}\n\t\t\tif (\n\t\t\t\t$this->slplus->database->has_extended_data() &&\n\t\t\t\tisset( $this->exdata[ $property ] )\n\t\t\t) {\n\t\t\t\treturn $this->exdata[ $property ];\n\t\t\t}\n\n\t\t\tif ( ! empty( $this->temporary[ $property ] ) ) {\n\t\t\t\treturn $this->temporary[ $property ];\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}", "public function &__get( $property ) {\n\t\tif ( property_exists( $this, $property ) ) {\n\t\t\treturn $this->$property;\n\t\t}\n\t}", "public function getProperty($id)\n {\n $id = strtoupper($id);\n\n if (!isset($this->properties[$id])) {\n return;\n }\n\n return $this->properties[$id];\n }", "public function __get($property)\n {\n $functionGet = 'get' + ucfirst($property);\n\n if (method_exists($this, $function)) {\n return $this->$functionGet();\n }\n\n return $this->property;\n }", "public function &__get(string $property)\n {\n return $this->get($property);\n }", "public function &__get(string $property)\n {\n return $this->get($property);\n }", "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 }", "public function readProperty($property) {\n if (isset($this->json->{$property})) {\n return $this->json->{$property};\n }\n\n return NULL;\n }", "public function __get($property)\n {\n return $this->container[$property];\n }", "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( $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 function __get($prop) {}", "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 get($index)\n {\n return (isset($this->_properties[$index])) ? $this->_properties[$index] : null;\n }", "public function __get($property) {\n if(!isset($this->$property))\n trigger_error('Undefined route property `'.$property.'`', E_USER_ERROR);\n\n return $this->$property;\n }", "public static function getProperty($property)\n {\n return array_value(static::$properties, $property);\n }", "public function findPropertyByIdentifier($identifier):Property\n {\n return $this->propertyModel()->whereIdentifier($identifier)->first();\n }", "public function getProperty($property = null)\n {\n if (is_null($property)) {\n return $this->record;\n }\n\n return $this->hasProperty($property) ? $this->record[$property] : null;\n }" ]
[ "0.81342554", "0.8052716", "0.798323", "0.79283583", "0.7705402", "0.7600875", "0.7570151", "0.7570151", "0.7570151", "0.7570151", "0.7563234", "0.75250655", "0.7520978", "0.7515914", "0.7511822", "0.75090766", "0.7492735", "0.7492254", "0.7487719", "0.74780005", "0.7469257", "0.7463947", "0.74546915", "0.7451329", "0.7441193", "0.7427962", "0.7427383", "0.74273384", "0.74273384", "0.74273384", "0.74273384", "0.74273384", "0.74273384", "0.7427186", "0.74169683", "0.74113274", "0.7400416", "0.7400416", "0.7400416", "0.7400416", "0.7400416", "0.7398833", "0.7359449", "0.7352738", "0.73481566", "0.73390675", "0.7336419", "0.727631", "0.72693974", "0.72656274", "0.72619456", "0.72576106", "0.72362006", "0.7232052", "0.72247994", "0.72221375", "0.72218573", "0.721836", "0.7196745", "0.7163148", "0.716137", "0.7146877", "0.713632", "0.7135422", "0.7131821", "0.71266496", "0.71184605", "0.71050096", "0.70878303", "0.7078888", "0.707652", "0.70734686", "0.706891", "0.706891", "0.7062812", "0.7057295", "0.70562196", "0.7048086", "0.7033771", "0.7029238", "0.7023018", "0.70128846", "0.7008536", "0.70030737", "0.6996332", "0.699573", "0.6991911", "0.69642556", "0.69642556", "0.69633657", "0.6961312", "0.696079", "0.6955479", "0.6955134", "0.69544226", "0.69540805", "0.69456655", "0.6944721", "0.6925154", "0.69201946", "0.6909788" ]
0.0
-1
Print a single property. Properties found in tags are named meta.[propertyName]. Properties found on the tag as attributes are named body.[propertyName].
function property($property_name, $default = NULL, $formatted = false) { $property_value = $this->get_property($property_name, $default); if ($property_value != NULL) { if ($formatted) { if (preg_match("/^(body|meta).(.*)$/", $property_name, $match)) { $property_prefix = $match[1]; $property_name_cut = $match[2]; } else { die("Invalid property name: $property_name.\n"); } if ($property_prefix == "meta") { $meta_type = $this->_meta_property_types[$property_name]; $before = "<meta $meta_type=\"$property_name_cut\" content=\""; $after = "\" />"; } else if ($property_prefix == "body") { $before = " $property_name_cut=\""; $after = "\""; } else { die("Impossible branch: $property_name => $property_prefix $property_name_cut"); } } else { $before = ""; $after = ""; } print "$before$property_value$after"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "public function tag( $property, $content ) {\n\t\tif ( empty( $content ) || ! is_scalar( $content ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$tag = 'facebook' === $this->network ? 'property' : 'name';\n\t\tprintf(\n\t\t\t'<meta %1$s=\"%2$s\" content=\"%3$s\">' . \"\\n\",\n\t\t\tesc_attr( $tag ),\n\t\t\tesc_attr( $property ),\n\t\t\tesc_attr( $content )\n\t\t);\n\t}", "public function toString()\n {\n return sprintf('<meta property=\"%s\" content=\"%s\"/>', $this->porperty, $this->content);\n }", "function displayProperties ()\n {\n foreach ($this as $key => $property)\n {\n echo $key . ':' . $property . '<br>';\n }\n }", "private function get_context_meta_value( $property_name )\n\t{\n\t\t$output = '';\n\t\t$context = $this->context();\n\n\t\tif ( method_exists( $context, $property_name ) ) {\n\t\t\t$output = $context->{ $property_name }();\n\t\t}\n\n\t\tif ( empty( $output ) ) {\n\t\t\treturn $this->get_config_meta_value( $property_name );\n\t\t}\n\n\t\treturn htmlspecialchars( strip_tags( $output ), ENT_QUOTES );\n\t}", "public function getProperty();", "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}", "function print_meta_tag() : void {\n\n\t$payment_pointer_id = get_payment_pointer();\n\t$payment_pointer_url = $payment_pointer_id;\n\n\t// check if url starts with $\n\tif ( $payment_pointer_url[0] === '$' ) {\n\t\t// replace $ with https://\n\t\t$payment_pointer_url = str_replace( '$', 'https://', $payment_pointer_url );\n\t\t// remove trailing slash\n\t\t$payment_pointer_url = rtrim( $payment_pointer_url, '/' );\n\t\t// check if url path exists\n\t\t$parsed_url = wp_parse_url( $payment_pointer_url, PHP_URL_PATH );\n\n\t\t// if no url path, append /.well-known/pay\n\t\tif ( empty( $parsed_url ) ) {\n\t\t\t$payment_pointer_url = $payment_pointer_url . '/.well-known/pay';\n\t\t}\n\t}\n\n\tif ( ! empty( $payment_pointer_id ) ) {\n\t\techo '<meta name=\"monetization\" content=\"' . esc_attr( $payment_pointer_id ) . '\" />' . PHP_EOL;\n\t\techo '<link rel=\"monetization\" href=\"' . esc_url( $payment_pointer_url ) . '\" />' . PHP_EOL;\n\t}\n}", "public function property($propertyIdent);", "public function show(Property $property)\n {\n //\n }", "public function show(Property $property)\n {\n //\n }", "private function get_config_meta_value( $property_name )\n\t{\n\t\t$output = '';\n\t\t$config = $this->cfg();\n\n\t\tif ( method_exists( $config, $property_name ) ) {\n\t\t\t$output = $this->cfg()->{ $property_name }();\n\t\t}\n\t\telse {\n\t\t\t$prop = $this->cfg()->p( $property_name );\n\n\t\t\tif ( $prop ) {\n\t\t\t\t$output = $prop->text();\n\t\t\t}\n\t\t}\n\n\t\treturn htmlspecialchars( strip_tags( $output ), ENT_QUOTES );\n\t}", "function prop($prop)\n {\n \treturn $this->get_property($prop);\n }", "public static function property(string $property, string $content): MetaTag {\n return new MetaTag(['property' => $property, 'content' => $content]);\n }", "public function __get($property) {\n\t\tif (property_exists($this, $property)) {\n\t\t\treturn $this->$property.\"<br>\";\n\t\t} else {\n\t\t\treturn $property.\" does not exist<br>\";\n\t\t}\n\t}", "public function propertyFast($property, $content, $addTagAttributes = NULL) {\n // start tag\n $code = '<div property=\"' . $property . '\" content=\"' . $content . '\"';\n // additional tag attributes string (starts with whitespace)\n // if (isset) \n if ($addTagAttributes != '')\n $code .= ' ' . $addTagAttributes;\n // end tag\n $code .= '></div>' . \"\\n\";\n return $code;\n }", "public function getProperty($property = null);", "public function getProperty(): string;", "abstract public function property($propertyIdent);", "abstract public function getPropertyShort();", "public function test_output() {\n\t\tpapi_render_property( $this->property );\n\t\t$this->expectOutputRegex( '/name=\\\"' . papi_get_property_type_key( $this->property->slug ) . '\\\"' );\n\t\t$this->expectOutputRegex( '/value=\\\"string\\\"/' );\n\t}", "private function print_field($post, $field, $title) {\n $value = get_post_meta($post->ID, $field, true);\n echo '<p>';\n echo '<label for=\"' . $field . '\">' . $title . '</label>';\n echo '<input type=\"text\" id=\"makigas-metabox-' . $field . '\" placeholder=\"' . $title . '\" name=\"' . $field . '\" value=\"' . $value . '\" class=\"widefat\" />';\n echo '</p>';\n }", "function bf_echo_post_meta( $key = null, $post_id = null, $force_default = null ) {\n\n\t\techo bf_get_post_meta( $key, $post_id, $force_default ); // escaped before\n\t}", "public function show(Property $property)\n {\n return $property;\n }", "protected function attr($variable)\n {\n echo \"{$variable}=\\\"{$this->variables[$variable]}\\\"\";\n }", "private function generateMetaDescription(Property $property)\n {\n $metaDescription = \"Imóvel Penhorado nº $this->code\";\n\n if (isset($this->attributes['land_registry_id'])) {\n $metaDescription .= \". Prédio {$property->landRegistry()->pluck('name')}\";\n\n if (isset($this->attributes['typology'])) {\n $metaDescription .= \", tipologia T{$this->attributes['typology']}\";\n }\n }\n\n // Add location\n $municipality = $property->item->municipality()->pluck('name');\n $district = $property->item->district()->pluck('name');\n\n if (Text::removeAccents($municipality) == Text::removeAccents($district)) {\n $metaDescription .= \". Localizado em $municipality.\";\n } else {\n $metaDescription .= \". Localizado em $municipality, $district.\";\n }\n\n return $metaDescription;\n }", "function fb_output_og_protocol( $property, $content ) {\n\tif ( empty( $property ) || empty( $content ) )\n\t\treturn;\n\n\t// array of property values or structured property\n\tif ( is_array( $content ) ) {\n\t\tforeach( $content as $structured_property => $content_value ) {\n\t\t\t// handle numeric keys from regular arrays\n\t\t\t// account for the special structured property of url which is equivalent to the root tag and sets up the structure\n\t\t\tif ( ! is_string( $structured_property ) || $structured_property === 'url' )\n\t\t\t\tfb_output_og_protocol( $property, $content_value );\n\t\t\telse\n\t\t\t\tfb_output_og_protocol( $property . ':' . $structured_property, $content_value );\n\t\t}\n\t}\n\telse {\n\t\techo \"<meta property=\\\"$property\\\" content=\\\"\" . esc_attr( $content ) . \"\\\" />\\n\";\n\t}\n}", "public function __get($property)\n {\n if (property_exists($this, $property)) {\n return html_entity_decode($this->$property);\n }\n }", "public function __get($prop) {}", "public function getProperty()\n\t{\n\t\treturn empty($this->property) ? strtolower($this->getName()) : $this->property;\n\t}", "public function __isset($property){\n echo isset($this->$property);\n }", "public function print_tags() {\n\t\tforeach ($this->photo_tags as $tag) {\n\t\t\techo '\n\t\t\t\t<div class=\"caption-tag\">\n\t\t\t\t\t<span class=\"crosshair\">&#127919;</span>';\n\t\t\t// Handle the different levels of completeness for an\n\t\t\techo\n\t\t\t (isset($tag['article']) ? \n\t\t\t '<a href=\"#\" class=\"item\">' . $tag['article'] . '</a>' : '');\n\t\t\techo \n\t\t\t\t(isset($tag['gender']) ?\n\t\t\t\t '<span class=\"seperator\"> - </span>\n\t\t\t\t\t<a href=\"#\" class=\"item\">' . $tag['gender'] . '</a>' : '');\n\t\t\techo\n\t\t\t (isset($tag['brand']) ?\n\t\t\t\t '<span class=\"seperator\"> - </span>\n\t\t\t\t\t<a href=\"#\" class=\"item\">' . $tag['brand'] . '</a>' : '');\n\t\t\techo '</div>';\n\t\t}\n\t}", "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 getPropertyDetails(){\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n return $objectManager->get ( 'Apptha\\Airhotels\\Model\\Attributes' );\n }", "public function toString()\n {\n $this->assertEquals(\"net::stubbles::reflection::stubReflectionProperty[stubTestProperty1::property] {\\n}\\n\", (string) $this->stubRefProperty);\n }", "public function print_output() {\r\n foreach($this->customFields as $customField){\r\n if(get_post_meta( get_the_ID(), $customField['name'] , true )): ?>\r\n <li class=\"details-item\">\r\n <strong><?php echo __($customField['title'] , 'ex-list'); ?></strong> <?php echo get_post_meta( get_the_ID(), $customField['name'] , true ); ?>\r\n\t\t\t\t</li>\r\n <?php\r\n endif;\r\n }\r\n }", "public function __toString(){\n\t\t$ref = new ReflectionObject($this);\n\t\t$r = \"[\".$ref->getName().\"]\\n\";\n\t\tforeach($ref->getProperties() as $prop){\n\t\t\t$r .= \"\\t - \".$prop->getName().\"=\".$prop->getValue().\"\\n\";\n\t\t}\n\t\treturn $r;\n\t}", "public function property_title() {\n\n\t\t\t$this->add_package = $this->getAddPackage();\n\n\t\t\t$headline_select = get_field( 'headline_select' );\n\t\t\t$standard_section = get_field( 'practice_type' ) . ' ' . get_field( 'building_type' );\n\t\t\t$custom_section = ( $headline_select == 'Custom Headline' )\n\t\t\t\t? get_field( 'custom_headline' )\n\t\t\t\t: $standard_section;\n\n\t\t\t$location = get_field( 'address_city' ) . ', ' . get_field( 'address_state' );\n\t\t\t$headline = get_field( 'practice_is_for' ) . ' - ' . $custom_section . ' - ' . $location;\n\n\t\t\t$out = '<h3>' . $headline . '</h3>';\n\t\t\t$out .= '<div class=\"hr hr-default\"><span class=\"hr-inner \"><span class=\"hr-inner-style\"></span></span></div>';\n\n\n\t\t\treturn $out;\n\t\t}", "function display() {\n\t\tforeach($this as $prop => $val) {\n\t\t\techo $val;\n\t\t}\n\t}", "public function __get($property)\n\t{\n\t\tif (isset($this->_fields[$property]))\n\t\t{\n\t\t\treturn '';\n\t\t}\n\t}", "public function nodeProperties()\n {\n return\n 'Base URI: ' . $this->baseURI . PHP_EOL\n . 'Namespace URI: ' . $this->namespaceURI . PHP_EOL\n . 'Name: ' . $this->name . PHP_EOL\n . 'Local Name: ' . $this->localName . PHP_EOL\n . 'Prefix: ' . $this->prefix . PHP_EOL\n . 'XML Language: ' . $this->xmlLang . PHP_EOL\n \n . 'Node Type: ' . $this->nodeType() . PHP_EOL\n . 'Depth: ' . $this->depth . PHP_EOL\n . 'Value: ' . $this->value . PHP_EOL\n . 'Is Empty Element: ' . ($this->isEmptyElement ? 'Yes' : 'No') . PHP_EOL\n \n . 'Attributes: ' . $this->attributeCount . PHP_EOL\n . 'Is attribute defaulted from DTD: ' . ($this->isDefault ? 'Yes' : 'No') . PHP_EOL\n ;\n }", "public function getp($property){\n if(property_exists($this, $property)){\n return $this->$property;\n }\n }", "public function get($property);", "function showDetailsPair($tag, $value) {\n\t/**\n\t* 2016-03-16 INFO: AHH\n\t* Don't use <p> to space because the style sheet changes the color on a p\n\t*/\n\techo \"<div style=\\\"padding-top:20px;\\\">$tag<br />$value</div>\";\n}", "function printPropertyTable($PropertyInformation)\r\n\t\t{\r\n\r\n\t\t\twhile ($row = $PropertyInformation->fetch(PDO::FETCH_ASSOC)) {\r\n\t\t\t\techo \"<tr>\";\r\n\t\t\t\techo \"<td>\" . $row['propertyref'] . \"</td>\";\r\n\t\t\t\techo \"<td>\" . $row['county'] . \"</td>\";\r\n\t\t\t\techo \"<td>\" . $row['postcode'] . \"</td>\";\r\n\t\t\t\techo \"</tr>\";\r\n\t\t\t}\r\n\r\n\t\t}", "function output($p) { //final step ($p=changesAppliedToP)\r\n /** output must tag input potential - it must be fed continuously updated meta data regarding its condition (e.g. direction, value, etc) **/\r\n //releases prop (property) to post-prop via SV (i.e. findProps must succeed SV for output to occur)\r\n }", "public function p() {\n $args = func_get_args();\n print htmlspecialchars(call_user_func_array(array($this, 'get'), $args));\n }", "function __get($property)\n {\n if($property == \"id\")\n {\n return $this->id;\n }\n else\n {\n return call_user_func_array(array($this, \"getAttribute\"), array($property));\n }\n }", "private function addProperties( $options ){\n\n // loop over properties\n for( $i = 0; $i < count( $this->elementProperties ); $i++ ){\n // property exists\n if( isset( $options[$this->elementProperties[$i]] ) ){\n \n // get property value\n $propertyValue = $options[$this->elementProperties[$i]];\n \n // is src\n if( $this->elementProperties[$i] == 'src' ){\n // add image url to source\n $propertyValue = $this->imageUrl . $propertyValue;\n }\n // is src\n \n // add property id and value\n echo ' ' .$this->elementProperties[$i] . '=\"' . $propertyValue . '\" ';\n }\n // property exists\n }\n // loop over properties\n }", "public function property_snapshot() {\n\n\t\t\t$practice_type = get_field( 'practice_type' );\n\t\t\t$practice_type_label = ( $practice_type != 'other' )\n\t\t\t\t? $practice_type\n\t\t\t\t: get_field( 'other_type' );\n\n\t\t\t$out = '<ul>';\n\t\t\t$out .= '<li><em>Practice Type:</em> ' . $practice_type_label . '</li>';\n\t\t\t$out .= '<li><em>Building Type:</em> ' . get_field( 'building_type' ) . '</li>';\n\t\t\t$out .= '<li><em>Business:</em> ' . get_field( 'practice_is_for' ) . '</li>';\n\t\t\t$out .= '<li><em>Building:</em> ' . get_field( 'realestate_is_for' ) . '</li>';\n\n\t\t\t$valuvet_valuation = ( get_field( 'valuvet_valuation' ) ) ? 'Yes' : 'No';\n\t\t\t$out .= '<li><em>ValuVet Valuation:</em> ' . $valuvet_valuation . ' </li>';\n\n\t\t\t$valuvet_practice_report = ( get_field( 'valuvet_practice_report' ) ) ? 'Yes' : 'No';\n\t\t\t$out .= '<li><em>ValuVet Report:</em> ' . $valuvet_practice_report . ' </li>';\n\n\t\t\t$out .= '</ul>';\n\n\t\t\treturn $out;\n\t\t}", "public function show(Property $property_id)\n {\n }", "public function getProperty1Name() {}", "function dump() {\n\t\t$vars = get_object_vars( $this );\n\t\techo '<pre style=\"text-align:left\">';\n\t\tforeach( $vars as $name => $value ) {\n\t\t\techo $name.': '.$value.\"\\n\";\n\t\t}\n\t\techo '</pre>';\n\t}", "public function property($property, $content, $datatype = NULL, $xmllang = NULL) {\n // start tag\n $code = '<div property=\"' . $property . '\" content=\"' . $content . '\"';\n // conditions\n if (isset($datatype))\n $code .= ' datatype=\"' . $datatype . '\"';\n if (isset($xmllang))\n $code .= ' xml:lang=\"' . $xmllang . '\"';\n // end tag\n $code .= '></div>' . \"\\n\";\n return $code;\n }", "function rps_print_portfolio_meta() {\n\tglobal $post;\n\t$url = get_post_meta($post->ID, '_url', true);\n\t$img = get_post_meta($post->ID, '_tagline', true);\n\t?>\n\t<input class=\"rps-url\" type=\"url\" name=\"rps-url\" value=\"<?php echo $url; ?>\" placeholder=\"site url\">\n\t<input class=\"rps-tagline\" type=\"text\" name=\"rps-tagline\" value=\"<?php echo $img; ?>\" placeholder=\"tagline\">\n\t<?php\n}", "public function meta($property = NULL)\n\t{\n\t\t// Cache the meta object\n\t\tif (!$this->_meta)\n\t\t{\n\t\t\t$this->_meta = Jelly_Meta::get($this);\n\t\t}\n\t\t\n\t\tif ($property)\n\t\t{\n\t\t\tif (isset($this->_meta->$property))\n\t\t\t{\n\t\t\t\treturn $this->_meta->$property;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn NULL;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this->_meta;\n\t}", "public function render(){\n\t\t$out = \"<img\".($this->getID() ? \" id=\\\"\".$this->getID().\"\\\"\" : \"\");\n\t\t\n\t\t$out .= \" src=\\\"\".$this->link.\"\\\"\";\n\t\t\n\t\tforeach( $this->getProperties() as $key => $value ) {\n\t\t\t$out .= \" \".$key.\"=\\\"\".$value.\"\\\"\"; //example: _width=\"100px\"\n\t\t}\n\t\t$out .= \" />\"; //end of opening html tag and html properties\n\t\t\n\t\treturn $out;\n\t}", "protected function getMetaTitleExample()\n {\n return '<p><b>' . __('Example') . '</b><p><p>[name][from||by {manufacturer|brand}][ ({color} color)][ for||for special {price}][ in {categories}] <p>'. __('will be transformed into') .\n '<br><p>HTC Touch Diamond by HTC (Black color) for € 517.50 in Cell Phones - Electronics';\n }", "public function getIptcProperty(string $propertyName): string\n {\n return $this->getIptcProperties()[$propertyName] ?? '';\n }", "abstract protected function propertyGet($name);", "function getPropertiesTemplate() {\n return ' public ${{PROPERTY_NAME}};\n';\n}", "public function property_address() {\n\n\t\t\t$out = '<h6>Business Name:</strong></h6>';\n\t\t\t$out .= '<p>' . get_field( 'practice_name' ) . '</p>';\n\t\t\t$out .= '<h6>Address:</h6>';\n\t\t\t$out .= '<p>' . get_field( 'address_street' ) . '<br/>';\n\t\t\t$out .= get_field( 'address_city' ) . ', ' . get_field( 'address_state' ) . ' ' . get_field( 'address_postcode' ) . '</p>';\n\n\t\t\treturn $out;\n\t\t}", "public function details() {\n return \"My name is {$this->name} and I am {$this->age} years old.\";\n }", "public function propertyGet($variable)\n {\n $this->run(\"property_get -i {id} -n $variable\");\n }", "private function generateTitle(Property $property)\n {\n if (isset($this->attributes['land_registry_id'])) {\n $title = 'Prédio '.$property->landRegistry()->pluck('name');\n\n if (isset($this->attributes['typology'])) {\n $title .= ' - T'.$this->attributes['typology'];\n }\n\n return \"$title ({$this->code})\";\n }\n\n return $this->code;\n }", "protected function getPropertyValue() {}", "public function getProperty() {\n return $this->property;\n }", "abstract protected function properties();", "public function getProperty($propertyName);", "public function getMeta()\n {\n return $this->getValue('meta');\n }", "public function getMeta()\n {\n return $this->getValue('meta');\n }", "function uds_pricing_render_product_options_property($name, $type, $product)\n{\n\t$out = \"<div>\";\n\t$out .= \"<label>$name</label>\";\n\t$html_name = sanitize_title_with_dashes($name);\n\tswitch($type) {\n\t\tcase 'checkbox':\n\t\t\t$checked = $product['properties'][$name] == 'on' ? \"checked='checked'\" : \"\" ;\n\t\t\t$out .= \"<input type='checkbox' name='{$html_name}[]' $checked />\";\n\t\t\tbreak;\n\t\tcase 'text':\n\t\tdefault:\n\t\t\t$out .= \"<input type='text' name='{$html_name}[]' value='{$product['properties'][$name]}' class='text' />\";\n\t}\n\t$out .= \"<div class='clear'></div>\";\n\t$out .= \"</div>\";\n\t\n\treturn $out;\n}", "public function open() { \n echo \"<{$this->name}\";\n if ($this->properties) {\n // recorre las propiedades\n foreach ($this->properties as $name => $value) {\n echo \"{$name}=\\\"{$value}\\\"\";\n }\n \n }\n echo '>';\n }", "public function itemToString(\\stdClass $item)\n {\n $modifiersString = '';\n foreach ($item->modifiers as $key => $value) {\n $modifiersString .= $key . '=\"' . $this->_escape($value) . '\" ';\n }\n \n if ($this->view instanceof Zend_View_Abstract) {\n if ($this->view->doctype()->isHtml5()) {\n $tpl = ($this->view->doctype()->isXhtml())\n ? '<meta property=\"%s\" content=\"%s\"/>'\n : '<meta property=\"%s\" content=\"%s\">';\n } elseif ($this->view->doctype()->isXhtml()) {\n $tpl = '<meta property=\"%s\" content=\"%s\" %s/>';\n } else {\n $tpl = '<meta property=\"%s\" content=\"%s\" %s>';\n }\n } else {\n $tpl = '<meta property=\"%s\" content=\"%s\" %s/>';\n }\n \n $meta = sprintf(\n $tpl,\n $this->_escape($item->typeValue),\n $this->_escape($item->content),\n $modifiersString\n );\n return $meta;\n }", "protected function renderTrustedPropertiesField() {}", "public function property($key) { }", "function my_custom_checkout_field_display_admin_order_meta($order){\n echo '<p><strong>'.__('Phone 2').':</strong> <br/>' . get_post_meta( $order->get_id(), 'billing_phone_new', true ) . '</p>';\n}", "public function __get($prop){\n\t\treturn $this->$prop;\n\t}", "function getPropName() {\n return $this->propName;\n }", "function facebook_meta($meta)\n{\n\tif(isset($meta))\n\t{\n\t\t$return = \"\";\n\t\t\n\t\tforeach($meta as $property => $content)\n\t\t{\n\t\t\t$return .= \"<meta property='\".$property.\"' content='\".$content.\"' />\\n\";\n\t\t}\n\t\t\n\t\treturn $return;\n\t}\n\telse\n\t{\n\t\treturn FALSE;\n\t}\n}", "public function propertyObject($propertyIdent);", "function print_author_tag() {\n\t\t\n\t\techo \"<meta name='author' content='{$this->options->site_author}' />\\r\\n\";\n\t}", "abstract protected function get_properties();", "public function __get($property){\n /*if(method_exists($this,'get'.ucfirst($property))){\n\n }*/\n return $this->$property;\n }", "public function __get($property) {}", "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 getProperty2Name() {}", "function nestedbox_core_entity_property_info() {\n $info = array();\n $properties = &$info['nestedbox']['properties'];\n $properties['nestedbox_id'] = array(\n 'type' => 'integer',\n 'schema field' => 'nestedbox_id',\n 'label' => t('The primary identifier.'),\n /* @see entity_property_verbatim_set() */\n 'setter callback' => 'entity_property_verbatim_set',\n );\n $properties['admin_title'] = array(\n 'type' => 'text',\n 'schema_field' => 'admin_title',\n 'required' => FALSE,\n 'label' => t('Administrative title'),\n /* @see entity_property_verbatim_set() */\n 'setter callback' => 'entity_property_verbatim_set',\n );\n $properties['type'] = array(\n 'type' => 'text',\n 'schema field' => 'type',\n 'required' => TRUE,\n 'label' => t('Nested Box type (bundle)'),\n /* @see entity_property_verbatim_set() */\n 'setter callback' => 'entity_property_verbatim_set',\n );\n return $info;\n}", "public static function DisplayInfo($attr)\n {\n return '<?php MyForms::info(\"'.$attr['name'].'\"); ?>';\n }", "public function echo_json_ld( $att ) {\r\n\t\t\techo ( $this->insert_json_ld( $att ) );\r\n\t\t}", "public function toString()\n {\n return 'Attribute was found in Advanced Search Page.';\n }", "function printUserInfo() {\n return $this->Name.' '.$this->Surname;\n }", "public function propertyIdent()\n {\n return $this->propertyIdent;\n }", "public function getProperty($key);", "public function meta (\\stdClass $param);", "public function getProperty($field);", "public function __get($prop)\r\n {\r\n return $this->$prop;\r\n }", "public function textPropertyIdent()\n {\n return $this->textProperty()->ident();\n }", "private function _property(EntityProperty $property) {\n static $marks = [\n Flags::IS_STATIC => \"ZEND_ACC_STATIC\",\n Flags::IS_PUBLIC => \"ZEND_ACC_PUBLIC\",\n Flags::IS_PROTECTED => \"ZEND_ACC_PROTECTED\",\n Flags::IS_PRIVATE => \"ZEND_ACC_PRIVATE\"\n ];\n $flags = [];\n foreach($marks as $mark => $flag) {\n if($property->flags & $mark) {\n $flags[] = $flag;\n }\n }\n $flags = implode(\" | \", $flags);\n switch($property->type) {\n case Types::INT:\n return \"REGISTER_CLASS_LONG_PROPERTY(ce_{$property->class->cname}, \\\"{$property->name}\\\", {$property->value}, {$flags});\";\n case Types::STRING:\n return \"REGISTER_CLASS_STRING_PROPERTY(ce_{$property->class->cname}, \\\"{$property->name}\\\", \\\"\".addslashes($property->value).\"\\\", {$flags});\";\n case Types::BOOLEAN:\n return \"REGISTER_CLASS_BOOL_PROPERTY(ce_{$property->class->cname}, \\\"{$property->name}\\\", \".intval($property->value).\", {$flags});\";\n case Types::NIL:\n return \"REGISTER_CLASS_NULL_PROPERTY(ce_{$property->class->cname}, \\\"{$property->name}\\\", {$flags});\";\n case Types::DOUBLE:\n return \"REGISTER_CLASS_DOUBLE_PROPERTY(ce_{$property->class->cname}, \\\"{$property->name}\\\", {$property->value}, {$flags});\";\n default:\n throw new \\LogicException(\"Unknown type $property\");\n }\n }", "function print_a($object, $html_format=true)\n{\n print(get_a($object, $html_format));\n}" ]
[ "0.61537725", "0.6032493", "0.59532857", "0.59488595", "0.5947236", "0.57271165", "0.5694532", "0.5619322", "0.5613906", "0.55825514", "0.55825514", "0.5578231", "0.54482704", "0.54340315", "0.5393423", "0.5389288", "0.5374525", "0.53594244", "0.535807", "0.53430307", "0.5342348", "0.52877164", "0.52833325", "0.525509", "0.52323455", "0.52060646", "0.51983213", "0.5151232", "0.5119025", "0.5113027", "0.5109514", "0.5103815", "0.51012456", "0.509023", "0.5079618", "0.507501", "0.506823", "0.50597805", "0.50535965", "0.503674", "0.5011", "0.50103325", "0.50093347", "0.5008276", "0.5004558", "0.49913362", "0.49859443", "0.4983053", "0.49803445", "0.4971343", "0.49650505", "0.4949459", "0.49467328", "0.49457115", "0.49386963", "0.49373955", "0.4937152", "0.4928365", "0.4917943", "0.49096495", "0.49079293", "0.4903512", "0.49020815", "0.4889196", "0.4886114", "0.48836857", "0.4880923", "0.48712233", "0.48711404", "0.48702526", "0.48702526", "0.48687807", "0.48581955", "0.4855206", "0.4842053", "0.48351142", "0.4826896", "0.48250178", "0.48210135", "0.48155177", "0.48145062", "0.48140702", "0.47905582", "0.47863206", "0.4782606", "0.4778915", "0.47781062", "0.47742423", "0.47680703", "0.47653562", "0.47647017", "0.47618386", "0.47601676", "0.47580457", "0.47545666", "0.47531423", "0.47491968", "0.47406983", "0.47398236", "0.4739375" ]
0.654449
0
Print the page body.
function body() { print($this->_body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function printPage()\n {\n $this->printDoctype();\n $this->printOpenHtml();\n $this->printHead(' ');\n $this->printBody(' ');\n $this->printCloseHtml();\n }", "public function printContent() {\r\n $this->content .= $this->doc->endPage();\r\n echo $this->content;\r\n }", "function printContent()\t{\n\n\t\t\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\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$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "function printContent()\t{\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "function 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 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 displayPage()\n {\n return $this->sBody;\n }", "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}", "protected function printBody($prefix='')\n {\n echo $prefix.'<BODY '.$this->body_tags.'>';\n echo $prefix.$prefix.$this->body.\"\\n\";\n echo $prefix.'</BODY>';\n }", "public function outputBody()\r\n\t{\r\n\t\t$this->header();\r\n\t\tparent::outputBody();\r\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() {}", "function printBottom() {\n\n print\n \n \"\\n</body> \\n\".\n \"</html> \\n\";\n}", "function IniciarBody(){\r\n echo \"<body>\";\r\n }", "protected function bodyHeader() {\n echo str_repeat(\"\\t\",1) . \"<body>\\n\";\n echo str_repeat(\"\\t\",2) . \"<div id=\\\"page\\\">\\n\";\n echo str_repeat(\"\\t\",3) . \"<header>\\n\";\n echo str_repeat(\"\\t\",4) . \"<h1>Евиденција волонтера</h1>\\n\";\n echo str_repeat(\"\\t\",3) . \"</header>\\n\";\n }", "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 pagePrint()\r\n\t{\r\n\t\t// Donnees\r\n\t\t$eventId = Bn::getValue('event_id');\r\n\t\t$oEvent = new Oevent($eventId);\r\n\t\t$oEventmeta = new Oeventmeta($eventId);\r\n\r\n\t\t// Controle de l'autorisation\r\n\t\tif ( $oEvent->getVal('ownerid') != Bn::getValue('user_id') && !Oaccount::isLoginAdmin() ) return false;\r\n\r\n\t\t// Preparer les champs de saisie\r\n\t\t$body = new Body();\r\n\r\n\t\t// Titres\r\n\t\t$t = $body->addP('', '', 'bn-title-2');\r\n\t\t$t->addBalise('span', '', LOC_ITEM_PRINT);\r\n\r\n\t\t// Infos generales\r\n\t\t$form = $body->addForm('frmPrint', BPREF_UPDATE_PRINT, 'divPreferences_content');\r\n\t\t//$form->getForm()->addMetadata('success', \"updated\");\r\n\t\t//$form->getForm()->addMetadata('dataType', \"'json'\");\r\n\r\n\t\t$div = $form->addDiv('', 'bn-div-left');\r\n\t\t// Liste des fonts\r\n\t\t$fonts=array(\r\n\t\t 'courier' => 'courier',\r\n\t\t 'helvetica' => 'helvetica',\r\n\t\t 'times' => 'times'\r\n\t\t );\r\n\r\n\t\t /*\r\n\t\t $handle=@opendir(\"fpdf/font\");\r\n\t\t if ($handle)\r\n\t\t {\r\n\t\t $masque = \"|(.*).z|\";\r\n\t\t while ($file = readdir($handle))\r\n\t\t {\r\n\t\t if (preg_match($masque, $file, $match)) $fonts[$match[1]] = $match[1];\r\n\t\t }\r\n\t\t closedir($handle);\r\n\t\t }\r\n\t\t */\r\n\t\t $d = $div->addDiv('', 'bn-div-line');\r\n\t\t $cbo = $d->addSelect('titlefont', LOC_LABEL_EVENT_FONT);\r\n\t\t $cbo->addOptions($fonts, $oEventmeta->getVal('titlefont'));\r\n\t\t $edt = $d->addEdit('titlesize', LOC_LABEL_EVENT_SIZE, $oEventmeta->getVal('titlesize'));\r\n\r\n\t\t $d = $div->addDiv('', 'bn-div-clear');\r\n\t\t $edt = $d->addP('', LOC_LABEL_EVENT_POSITION, 'bn-p-info');\r\n\r\n\t\t $dl = $div->addDiv('', 'bn-div-left');\r\n\t\t $edt = $dl->addEditFile('logo', LOC_LABEL_EVENT_LOGO, '');\r\n\t\t $edt->noMandatory();\r\n\t\t $logo = $oEventmeta->getVal('logo');\r\n\t\t if (!empty($logo) )\r\n\t\t {\r\n\t\t \t$logo = '../img/poster/'.$logo;\r\n\t\t \t$div->addImage('logo', $logo, 'logo', array('height'=>70, 'width'=>155));\r\n\t\t }\r\n\r\n\t\t $d = $div->addDiv('', 'bn-div-line bn-div-clear');\r\n\t\t $edt = $d->addEdit('top', LOC_LABEL_EVENT_TOP, $oEventmeta->getVal('top'));\r\n\t\t $edt = $d->addEdit('left', LOC_LABEL_EVENT_LEFT, $oEventmeta->getVal('left'));\r\n\t\t $d = $div->addDiv('', 'bn-div-line bn-div-clear');\r\n\t\t $edt = $d->addEdit('width', LOC_LABEL_EVENT_WIDTH, $oEventmeta->getVal('width'));\r\n\t\t $edt = $d->addEdit('height', LOC_LABEL_EVENT_HEIGHT, $oEventmeta->getVal('height'));\r\n\t\t $d->addBreak();\r\n\r\n\t\t $d = $form->addDiv('', 'bn-div-btn');\r\n\t\t if (!empty($logo) )\r\n\t\t {\r\n\t\t \t$d->addButton('btnDellogo', LOC_BTN_DELETE_LOGO, BPREF_DELETE_LOGO, 'trash', 'divPreferences_content');\r\n\t\t }\r\n\t\t $btn = $d->addButton('btnVisu', LOC_BTN_VISU, BPREF_VISU_PRINT, 'document');\r\n\t\t $btn->completeAttribute('class', 'bn-popup');\r\n\t\t $d->addButtonValid('btnValid', LOC_BTN_UPDATE);\r\n\r\n\t\t // Envoi au navigateur\r\n\t\t $body->addJqready('pagePrint();');\r\n\t\t $body->display();\r\n\t\t return false;\r\n\t}", "public function outputBody()\r\n\t{\r\n\t\tif (is_object($this->_body)) {\r\n\t\t\t$this->_body->outputBody();\r\n\t\t} elseif (!is_null($this->_body)) {\r\n\t\t\techo $this->_body;\r\n\t\t}\r\n\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 }", "public function printContent()\n {\n echo $this->content;\n }", "private function printStartPage() {\n\t\treadfile ( 'html/start.html' );\n\t}", "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 getPageBody()\n\t{\n\t\treturn $this->_pageBody;\n\t}", "public function printContent()\n {\n GeneralUtility::logDeprecatedFunction();\n $this->content .= $this->doc->endPage();\n $this->content = $this->doc->insertStylesAndJS($this->content);\n echo $this->content;\n }", "public function render()\n\t{\n\t\t$this->printer->render();\n\t}", "public function printAlignmentPage ()\r\n {\r\n $row_count = $this->number_of_rows;\r\n $col_count = $this->number_of_columns;\r\n $return = '';\r\n $test_block = '\r\n <div class=\"testpage\">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas diam purus, fermentum vitae, tempus id, placerat at, dui. Ut vel orci et enim pellentesque pretium. Duis aliquam nulla vel orci. Sed sit amet ante a sem sodales bibendum. Curabitur faucibus bibendum erat. Suspendisse dolor est, mollis sit amet, lobortis in, blandit ultricies, urna. Nulla mollis nunc ac quam. Duis id orci non turpis elementum iaculis. Sed porttitor tincidunt pede. Nulla non justo id augue pretium porttitor. Suspendisse potenti. Suspendisse blandit, elit sit amet consectetuer accumsan, turpis ante facilisis enim, nec pellentesque magna purus id orci.<br>\r\n Praesent tortor mauris, mollis non, tempor vitae, aliquet vitae, augue. Nullam diam. Vestibulum et urna. Nunc in sapien. In elementum est et diam. Vivamus nulla tellus, porta eget, tempus eget, fringilla sed, lacus. Suspendisse purus libero, consequat eu, lobortis non, luctus in, sapien. Aenean quam eros, rhoncus vel, iaculis et, scelerisque in, magna. Aenean hendrerit, odio id mollis varius, urna pede vulputate massa, ac blandit arcu justo laoreet purus. Integer et felis at lectus commodo consequat. Vestibulum a arcu. Donec est ligula, viverra ac, tempor sit amet, ultrices quis, pede.</div>';\r\n $return .= '<style>'.$this->getLabelCSS().'\r\n </style>';\r\n $return .= $this->beginLabelSheet();\r\n while (--$row_count > 0)\r\n {\r\n $return .= $test_block;\r\n $return .= $this->advanceLabelRow();\r\n }\r\n while (--$col_count > 0)\r\n {\r\n $return .= $test_block;\r\n $return .= $this->advanceLabel();\r\n }\r\n $return .= $test_block;\r\n $return .= $this->finishLabelSheet();\r\n return $return;\r\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 }", "protected function dumpPage() {\n\t\tif ($this->_debugCatcher !== null) {\n\t\t\t$this->_debugCatcher->flush();\n\t\t}\n\n\t\t$this->_dumped = true;\n\t\tparent::dumpPage();\n\t}", "function printContent()\t{\n\t\techo $this->content;\n\t}", "function printContent()\t{\n\t\techo $this->content;\n\t}", "public function finish_display ()\n {\n $this->_finish_body ();\n?>\n </body>\n</html>\n<?php\n }", "private function printTaskPage() {\n\t\treadfile ( 'html/task.html' );\n\t}", "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 }", "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 outputBody()\n {\n $body = implode('', $this->_body);\n echo $body;\n }", "function printFooter() {\n\tprint <<<ENDOLA\n</body>\n</html>\nENDOLA;\n}", "public function createPage()\n {\n echo $this->output;\n }", "public function renderPage()\r\n {\r\n $this->setMasterContent();\r\n // Echo the page immediately.\r\n $this->_htmlpage->renderPage();\r\n }", "public function renderPage()\r\n {\r\n $this->setMasterContent();\r\n // Echo the page immediately.\r\n $this->_htmlpage->renderPage();\r\n }", "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 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 }", "public function drawPage()\n\t\t{\n\t\t}", "function pied()\n\t{\n\t\techo \"\\t\".'</body>'.\"\\n\".'</html>';\n\t}", "public function renderBody()\n\t{\n\t\t$this->setBody($this->forTemplate());\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->fixHTML5();\n $output .= $this->registerCustomResources();\n $output .= '</head><body>';\n echo $output;\n }", "private function printFooter()\n {\n // Nothing to do at the moment\n }", "private function printContent()\n {\n $deserialized = $this->getContent();\n var_dump($deserialized);\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}", "function MainBodyContent()\n\t{\n\t\t$this->VarDump($this->cat->details);\n\t}", "public function main(){\n $pdf = new PDF();\n $pdf->AliasNbPages();\n $pdf->AddPage();\n $pdf->SetFont('Times','',12);\n for($i=1;$i<=40;$i++){\n $pdf->Cell(0,10,'Printing line number '.$i,0,1);\n }\n\n // First page\n $html = 'You can now<np> easily print text mixing different styles: <b>bold</b>, <i>italic</i>,\n <u>underlined</u>, or <b><i><u>all at once</u></i></b>!<br><br>You can also insert links on\n text, such as <a href=\"http://www.fpdf.org\">www.fpdf.org</a>, or on an image: click on the logo.';\n\n $pdf->AddPage();\n $pdf->SetFont('Arial','',20);\n // $pdf->Write(5,\"To find out what's new in this tutorial, click \");\n // $pdf->SetFont('','U');\n // $link = $pdf->AddLink();\n // $pdf->Write(5,'here',$link);\n // $pdf->SetFont('');\n // // Second page\n // $pdf->AddPage();\n // $pdf->SetLink($link);\n // $pdf->Image('logo.png',10,12,30,0,'','http://www.fpdf.org');\n $pdf->SetLeftMargin(15);\n $pdf->SetFontSize(14);\n $pdf->WriteHTML($html);\n\n $pdf->Output();\n\n }", "public function printOut() {\n $this->_controller->getResponse()->printOut();\n }", "public function render_page() {\n\t\t$this->render_template();\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 }", "private function _print_html_close()\n\t{\n\t\techo \"</body>\\n</html>\";\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 }", "protected function generatePageFooter() \n {\n\t\t\n\t\techo \"</body>\\n\";\n\t\techo \"</html>\\n\";\n // to do: output common end of HTML code\n }", "function printTop() {\n \n\tprint \n\t \n \"\t<!DOCTYPE html>\".\n \"\t<html lang='en'>\".\n \"\t<head>\".\n \" <meta charset='utf-8'>\".\n \"<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'> \".\n \" <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js'></script> \".\n \" <script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script> \".\n \" <meta http-equiv='X-UA-Compatible' content='IE=edge'>\".\n \"<meta name='viewport' content='width=device-width, initial-scale=1'>\".\n \"<meta name='description' content=''>\".\n \" <meta name='author' content=''>\".\n \" <meta charset='UTF-8'>\".\n \"\t<title> Sitter Profile </title>\".\n \"</head>\".\n \n \"<body>\".\n \"<h1> Sitter Information : </h1>\".\t\n\t\n\t \"</body> \\n\".\n \"</html> \\n\";\n\t}", "public function displayPage()\n\t{\n\t\t$this->assign('rightMenu', $this->rightMenu);\n\t\t$this->assign('content', $this->content);\n\t\t$this->display(\"main.tpl\");\n\t}", "public function sendBody()\n {\n echo $this->body;\n }", "public function sendBody()\n {\n echo $this->body;\n }", "public function display()\n {\n return $this->page->output();\n }", "public function print_footer() {\n // Do nothing.\n }", "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 render() {\n\t\techo $this->header->toString();\n\t\techo $this->panel->toString();\n\t\techo $this->page->toString();\n\t\tif( $this->getMessages() != null ) {\n\t\t\techo $this->messages->toString();\n\t\t}\n\t\techo $this->footer->toString();\n\t}", "public function 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 printAdminPage() {\n require ('adminPage.php');\n adminPage($this);\n }", "protected function generatePageBody() {\necho <<< HTML\n<div class=\"customerPage\">\n <h1>Kunde</h1>\n <section class=\"customer\" id=\"cust\">\n \n </section>\\n\nHTML;\n\necho <<< HTML\n <section class=\"newOrderButton\">\n <div>\n <!--Input-Field of type submit to redirect the user to Bestellung.php-->\n <form action=\"http://localhost/Bestellung.php\">\n <input type=\"submit\" class=\"actualNewOrderButton\" value=\"Neue Bestellung\">\n </form>\n </div>\n </section>\n</div>\nHTML;\n }", "public function show() {\n $this->buildPage();\n echo $this->_page;\n }", "public function printToTerminal()\n {\n echo \"Report title: {$this->getTitle()}\\n\";\n echo \"Report generated at: {$this->getGenerationTimeStamp()}\\n\";\n echo \"Report description: {$this->getReportDescription()}\\n\";\n echo \"Report parameters:\\n{$this->getParameterString()}\\n\\n\";\n echo \"Report result:\\n{$this->getReportResultString()}\\n\";\n }", "private function _print_html()\n\t{\n\t\tswitch($this->xhtml)\n\t\t{\n\t\t\tcase 'strict':\n\t\t\t\t$this->output = \"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Strict//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\\\">\\n\";\n\t\t\t\tbreak;\n\t\t\tcase 'transitional':\n\t\t\t\t$this->output = \"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Transitional//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\\">\\n\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}//switch\n\t\t\n\t\t$this->output .= \"<html xmlns=\\\"http://www.w3.org/1999/xhtml\\\">\\n\";\n\t\t$this->output .= $this->_print_html_head();\n\t\t\n\t\techo $this->output;\n\t}", "public function render() {\n\t\t$this->render_page_content();\n\t}", "static private function flushWebPrintBuffer() {\n if (!count(WebMode::$printBuffer)) { return; }\n\n $zIndex = 99998; // one less than error page\n\n echo \"<style>\\n\";\n echo \".tht-print { white-space: pre; border: 0; border-left: solid 16px #787fff; padding: 4px 32px; margin: 4px 0 0; font-family: \" . u_Css::u_monospace_font() .\"; }\\n\";\n echo \".tht-print-panel { position: fixed; top: 0; left: 0; z-index: $zIndex; width: 100%; padding: 24px 32px 24px; font-size: 18px; background-color: rgba(255,255,255,0.98); -webkit-font-smoothing: antialiased; color: #222; box-shadow: 0 4px 4px rgba(0,0,0,0.15); max-height: 400px; overflow: auto; }\\n\";\n echo \"</style>\\n\";\n\n echo \"<div class='tht-print-panel'>\\n\";\n foreach (WebMode::$printBuffer as $b) {\n echo \"<div class='tht-print'>\" . $b . \"</div>\\n\";\n }\n echo \"</div>\";\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 }", "abstract function render_page();", "private function __print_receipt()\n {\n\t//Assuming range\n\t$ret = $this->__view_receipt();\n\t$receipthead = $this->__receipt_head_html();\n\t$receiptfoot = $this->__receipt_foot_html();\n\t\n\t$receipts = $receipthead. sprintf(\"\n\t<div id=\\\"receiptrow1\\\" class = \\\"receiptcolumn1\\\">%s</div><div id=\\\"receiptrow1\\\" class = \\\"receiptcolumn2\\\">%s</div>\n\t<div id=\\\"receiptrow2\\\" class = \\\"receiptcolumn1\\\">%s</div><div id=\\\"receiptrow2\\\" class = \\\"receiptcolumn2\\\">%s</div>\n\t<div id=\\\"receiptrow3\\\" class = \\\"receiptcolumn1\\\">%s</div><div id=\\\"receiptrow3\\\" class = \\\"receiptcolumn2\\\">%s</div>\n\t\n\t\", $ret, $ret, $ret, $ret, $ret, $ret).$receiptfoot;\n\t\n\techo $receipts;\n }", "public function print();" ]
[ "0.8182446", "0.7376723", "0.7212335", "0.7184767", "0.71688557", "0.71688557", "0.71688557", "0.71419954", "0.71362054", "0.7063102", "0.6974742", "0.6866685", "0.6770787", "0.66232985", "0.66109693", "0.6604975", "0.6604975", "0.6604975", "0.6604975", "0.6604975", "0.6604651", "0.6604651", "0.6604651", "0.660421", "0.660421", "0.660421", "0.660421", "0.660421", "0.660421", "0.660421", "0.660421", "0.660421", "0.660421", "0.660421", "0.660421", "0.660421", "0.65910274", "0.65863425", "0.6495009", "0.64926475", "0.6449184", "0.6441214", "0.642258", "0.6381841", "0.6379604", "0.63779765", "0.6331503", "0.6317027", "0.6303594", "0.62631935", "0.62358254", "0.62247163", "0.6218717", "0.6218717", "0.6192382", "0.617812", "0.61214054", "0.6112338", "0.6082615", "0.6082578", "0.60449183", "0.60323405", "0.60323405", "0.6016898", "0.601512", "0.60130167", "0.5996898", "0.59893316", "0.5979798", "0.59702146", "0.5955407", "0.5943762", "0.59364885", "0.59138966", "0.5892787", "0.5878787", "0.5857875", "0.5855215", "0.5853543", "0.5800219", "0.5792188", "0.5784792", "0.57650405", "0.57650405", "0.5763165", "0.5760542", "0.5759013", "0.57530946", "0.5751463", "0.5751345", "0.5746138", "0.57453686", "0.5742701", "0.57419086", "0.5738606", "0.5738414", "0.5734079", "0.57267135", "0.57218295", "0.5720962" ]
0.7450329
1
Mod by rsk 8/7/2010
function getBody() { return $this->_body; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _i() {\n }", "function fix() ;", "public function helper()\n\t{\n\t\n\t}", "final function velcom(){\n }", "private function __() {\n }", "public function extra_voor_verp()\n\t{\n\t}", "abstract function fromexp();", "private function j() {\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function inOriginal();", "private function __clone()\n\t{\n\t}", "private function __clone()\n\t{\n\t}", "public function magic1() { return $this->_m_magic1; }", "protected function fixSelf() {}", "protected function fixSelf() {}", "function yy_r97(){ \n $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor; $this->yystack[$this->yyidx + -3]->minor->values($this->yystack[$this->yyidx + -1]->minor); \n if ($this->yystack[$this->yyidx + 0]->minor) $this->_retvalue->onDuplicate($this->yystack[$this->yyidx + 0]->minor);\n }", "final private function __clone(){\n\t\t\n\t}", "function modified() { $this->_modified=1; }", "function modified() { $this->_modified=1; }", "private function __clone(){\n\t\t\n\t}", "function init()\r\n \t{\r\n \t}", "private function __clone()\n\t{\n\n\t}", "private function __clone()\n\t{\n\n\t}", "function upgrade_340()\n {\n }", "private function __clone() \r\n { \r\n }", "protected function init()\n\t{\n\t\t\n\t}", "function upgrade_290()\n {\n }", "function upgrade_350()\n {\n }", "private function __construct()\t{}", "protected function _refine() {\n\n\t}", "function lcs()\n {\n }", "public static function Parse837()\n\t{\n\n\t}", "function init() {\n\t\t\n\t}", "function __construct()\r\n\t{\t\t//Yeah bro! Freaking PhP yo..\r\n\t}", "public function init() {\t\t\n\n }", "protected function _init()\r\n\t{\r\n\t}", "function specialop() {\n\n\n\t}", "function yy_r95(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; $this->yystack[$this->yyidx + -1]->minor->values($this->yystack[$this->yyidx + 0]->minor); }", "function init()\n\t{\n\t\t\n\t}", "function getOffset() ;", "private function __clone() {\r\n \r\n }", "public function hapus_toko(){\n\t}", "abstract protected function _init( );", "protected function _getNextCode() {}", "abstract protected function _preProcess();", "private function __clone() { \n\n\t}", "function j_jj($h1) {\r\n if ($h1 === 'o') {\r\n $duplo1 = 'j';\r\n return $duplo1;\r\n }\r\n }", "public function findSpareBox() {\r\n\t\t\r\n\t}", "function xh_finalModules()\r\n\t{\r\n\t}", "function yy_r116(){ \n $this->_retvalue[implode(\" \", $this->yystack[$this->yyidx + -2]->minor)] = $this->yystack[$this->yyidx + 0]->minor->getMember(0); \n }", "private function __clone ()\n\t{}", "private function __clone(){\n\t}", "function verReg() {\n \n }", "public function f02()\n {\n }", "final private function __construct(){\r\r\n\t}", "function upgrade_280()\n {\n }", "private function __clone() \n {\n }", "function bitpfriemler() // $arr = 0;\n {\n /*if (gettype($arr) == \"array\")\n\treturn $this->import_array($arr);*/\n unset($this->arr);\n return 1;\n }", "private function __clone() {\r\n\t}", "private function __clone()\r\n {\r\n }", "public function serch()\n {\n }", "function DWT() { \n }", "function getFinal()\n {\n }", "private function _optimize() {}", "function upgrade_372()\n {\n }", "public function temporality();", "private function init()\n\t{\n\t\treturn;\n\t}", "public function init()\n { \t\n }", "function _pre() {\n\n\t}", "public function nadar()\n {\n }", "private function Benchmark()\r\n\t{\t\t\r\n\t}", "function upgrade_510()\n {\n }", "public function + aire()\n {\n // section -64--88--103-1-2c9bd139:16deeff2ef5:-8000:00000000000009A4 begin\n // section -64--88--103-1-2c9bd139:16deeff2ef5:-8000:00000000000009A4 end\n }", "function hitungDenda(){\n\n return 0;\n }", "public function init()\n {\t\t\t\n }", "public function init()\n {\t\t\t\n }", "private function __clone() {\n\t}", "private function __clone() {\n\t}", "private function __clone() {\n\t}", "private function __clone() {\n\t}", "private function __clone() {\n\t}", "public function masodik()\n {\n }", "function zerificabinario( $rel )\n {\n $caratteriBin = strlen( $rel );\n $diff = 8 - $caratteriBin;\n if ( $diff > 0 ) {\n for ( $c = 1; $c <= $diff; $c++ ) {\n $rel = \"0\" . $rel;\n };\n };\n return ( $rel );\n }", "function upgrade_260()\n {\n }", "function yy_r81(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); }", "public function getABdata($key) {\n $ans=\"\";\n #$table = \"{$this->getParms->dict}ab\";\n $table = $this->dal_ab->tabname;\n $result = $this->dal_ab->getgeneral($key,$table);\n $dbg=false;\n dbgprint($dbg,\"getABdata: length of result=\" . count($result) . \"\\n\");\n if (count($result) == 1) {\n list($key1,$data) = $result[0];\n if (preg_match('/<disp>(.*?)<\\/disp>/',$data,$matches)) {\n $ans = $matches[1];\n /* This taken from mw code; but is probably obsolete.\n It permitted <s>X</s> coding within the abbreviation expansion\n and conversion to the user's choice of 'filter'\n global $dispfilter;\n $temp = strtolower($dispfilter);\n $filterflag = (preg_match('/deva/',$temp) || preg_match('/roman/',$temp));\n if ($filterflag) {\n\t$ans = preg_replace('/<s>/','<SA>',$ans);\n\t$ans = preg_replace('/<\\/s>/','</SA>',$ans);\n }\n */\n }\n }\n return $ans;\n}", "public function init() {\n\t\t\n\t}", "function upgrade_590()\n {\n }", "function cl_rhempenhofolharubrica() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"rhempenhofolharubrica\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "function initialize() ;", "function yy_r154(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }", "public function ogs()\r\n {\r\n }", "function process() ;", "function upgrade_210()\n {\n }", "private static function lowPass()\n {\n }", "public function perimetre()\n {\n // section -64--88--103-1-2c9bd139:16deeff2ef5:-8000:000000000000099C begin\n // section -64--88--103-1-2c9bd139:16deeff2ef5:-8000:000000000000099C end\n }", "function yy_r1(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; }", "public function swim()\n {\n }", "function upgrade_430()\n {\n }", "protected function init() {return;}" ]
[ "0.54886115", "0.5247304", "0.5222733", "0.52005756", "0.5145839", "0.5026891", "0.49951398", "0.495083", "0.49484852", "0.49438474", "0.49419427", "0.48833212", "0.48833212", "0.48808685", "0.4879044", "0.4879044", "0.48754293", "0.4875116", "0.48749214", "0.48749214", "0.4873627", "0.48659652", "0.48638707", "0.48638707", "0.48475578", "0.48356602", "0.48115596", "0.48110518", "0.47935796", "0.4779461", "0.47771373", "0.47680473", "0.4766209", "0.4765959", "0.47599176", "0.47562897", "0.47534093", "0.4752811", "0.47457284", "0.4733247", "0.47302347", "0.47280398", "0.47274634", "0.47263753", "0.47252697", "0.47234416", "0.47158754", "0.4709695", "0.470803", "0.46919435", "0.46900418", "0.46889", "0.4686924", "0.46785477", "0.46765518", "0.46747518", "0.46643794", "0.46572483", "0.46557057", "0.46517047", "0.4650945", "0.46472138", "0.4643478", "0.46383092", "0.4636653", "0.46247473", "0.46240687", "0.46180448", "0.46153575", "0.46134973", "0.46055314", "0.460539", "0.46051177", "0.46047455", "0.45957735", "0.4595754", "0.4595754", "0.45952418", "0.45952418", "0.45952418", "0.45952418", "0.45952418", "0.45934188", "0.4593081", "0.45918247", "0.4590096", "0.45878002", "0.45848256", "0.4577423", "0.45772874", "0.45756602", "0.45657447", "0.4564661", "0.45630863", "0.45628405", "0.4560386", "0.45585138", "0.45557198", "0.45553762", "0.45553428", "0.45552278" ]
0.0
-1
Includes the specified page as decorated content.
function apply_decorator($page_location, $decorator_name) { global $decorator_selector; global $_GET; global $_POST; // Store the original GET and POST variables. $OLD_GET = $_GET; $OLD_POST = $_POST; // Does the page location have a query string? If it does, we need to parse it! $_GET = array(); $_POST = array(); $parsed_location = parse_url($page_location); if (isset($parsed_location['query'])) { parse_str($parsed_location['query'], $_GET); } // Capture the output from requiring the page. ob_start(); require($decorator_selector->get_path($parsed_location['path'])); $page_contents = ob_get_clean(); // Restore the original GET and POST variables. $_GET = $OLD_GET; $_POST = $OLD_POST; // Create the page object. This guy does all the parsing work. $page = new Page($page_contents); // Create the decorator. $decorator = $decorator_selector->get_decorator($decorator_name); // Perform the decoration. $decorator->decorate($page); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function render_page_content(): void;", "public function prePageContent();", "function honeycomb_page_content() {\n\t\t?>\n\t\t<div class=\"entry-content\">\n\t\t\t<?php the_content(); ?>\n\t\t\t<?php\n\t\t\t\twp_link_pages( array(\n\t\t\t\t\t'before' => '<div class=\"page-links\">' . __( 'Pages:', 'honeycomb' ),\n\t\t\t\t\t'after' => '</div>',\n\t\t\t\t) );\n\t\t\t?>\n\t\t</div><!-- .entry-content -->\n\t\t<?php\n\t}", "function page_content()\n {\n //This needs to deliver page data that is requested by the ROUTE.\n }", "public function onPageContentProcessed(Event $event)\n {\n $page = $event['page'];\n $config = $this->mergeConfig($page);\n\n // get current rendered content\n $content = $page->getRawContent();\n // replace marker(s) with Google map object(s)\n $page->setRawContent($this->processMarkdownContent($content, $config));\n\n // set this page's assets that where dynamically generated\n $this->setAssetsFromData();\n }", "public function realPageCacheContent() {}", "function vodi_page_content() {\n ?>\n <div class=\"page__content\">\n <?php the_content(); ?>\n <?php\n wp_link_pages( array(\n 'before' => '<div class=\"page-links\">' . esc_html__( 'Pages:', 'vodi' ) . '<div class=\"page-links-inner\">',\n 'after' => '</div></div>',\n 'link_before' => '<span class=\"page-link\">',\n 'link_after' => '</span>'\n ) );\n ?>\n </div><!-- .entry-content -->\n <?php\n }", "public function cachePageContent(): void\n {\n $value = [\n 'checksum' => $this->getCacheChecksum(),\n 'content' => $this->_content,\n 'content_meta' => $this->_content_meta\n ];\n\n $cache = $this->getCache('render');\n $key = md5($this->getCacheKey() . '-content');\n\n $cache->set($key, $value);\n }", "public function addPage() {\r\n\t\t// add a page (required with recent versions of tcpdf)\r\n\t\t$this->tcpdf->AddPage();\r\n\t\treturn $this;\r\n\t}", "private function content($page = 1)\n {\n return file_get_contents($this->endpoint() . '&Pagina=' . $page);\n }", "function renderHtmlAdd($page = null)\n {\n $themeConfig = $this->getTheme()->getConfig($this->config('loader.base_dir'));\n if (!$page) {\n $page = new Contener_Node();\n }\n \n if ($template = $page->template) {\n if (isset($themeConfig['templates']) && isset($themeConfig['templates'][$template]) && isset($themeConfig['templates'][$template]['slots'])) {\n $slots = $themeConfig['templates'][$template]['slots'];\n if (isset($themeConfig['templates'][$template]['is_open']) && $themeConfig['templates'][$template]['is_open']) {\n $page->getSlotManager()->addSlots($slots);\n } else {\n $page->getSlotManager()->setSlots($slots);\n }\n }\n }\n \n $theme = $this->getTheme();\n \n $this->context->area('right')->addModule('', $this->getService('view')->render(\n 'page_edit_publish', \n array('context' => $page, 'theme' => $theme, 'show_template' => false))\n );\n \n return $this->getService('view')->render(\n 'page_add',\n array('context' => $this, 'page' => $page, 'list' => $this->repository->listAll('flat'), 'theme' => $theme)\n );\n }", "public function page () {\n\t\tinclude _APP_ . '/views/pages/' . $this->_reg->controller . '/' . $this->_page . '.phtml';\n\t}", "public static function render($page) {\n\t if(isset(self::$state)) {\n\t extract(self::$state,EXTR_SKIP);\n\t }\n\t include(self::getPagePath($page));\n\t}", "abstract protected function view_generatePageContent();", "abstract function render_page();", "function addContent($content)\n {\n $this->page .= $content;\n }", "private function _render($page)\r\n\t{\r\n\t\tif ($page->getLoginNeeded() == Model_Page_Front::LOGIN_REQUIRED)\r\n\t\t{\r\n\t\t\tAuthUser::load();\r\n\r\n\t\t\tif (!AuthUser::isLoggedIn())\r\n\t\t\t{\r\n\t\t\t\tFlash::set('redirect', $page->url());\r\n\r\n\t\t\t\t$this->go_backend();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tObserver::notify('frontpage_found', array($page));\r\n\r\n\t\t$html = (string) $page->render_layout();\r\n\t\t\r\n\r\n\t\tif ( AuthUser::isLoggedIn())\r\n\t\t{\r\n\t\t\t$inject_html = (string) View::factory( 'system/blocks/toolbar' );\r\n\t\t\t\r\n\t\t\tif(Setting::get( 'profiling' ) == 'yes')\r\n\t\t\t{\r\n\t\t\t\t$inject_html .= (string) View::factory( 'profiler/stats' );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Insert system HTML before closed tag body\r\n\t\t\t$matches = preg_split('/(<\\/body>)/i', $html, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); \r\n\t\t\t/* assemble the HTML output back with the iframe code in it */\r\n\t\t\t$html = $matches[0] . $inject_html . $matches[1] . $matches[2];\r\n\t\t}\r\n\t\t\r\n\t\techo Response::factory()\r\n\t\t\t->body($html);\r\n\t}", "protected function renderPageWrapper( $args = array() )\n {\n return $this->render($this->findTemplatePath('page.html') , $args);\n }", "function sh_page_content() {\n\tglobal $post, $wp_query;\n\t\n\t// if there's a specific page template, then redirect to this\n\t$action = get_query_var ( 'sh_action' );\n\t$type = get_query_var ( 'sh_post_type' );\n\t\n\tif ($action == 'new') {\n\t\t$template = locate_template (array('edit/'.$type.'.php') );\n\t\tif ($template != '') {\n\t\t\tinclude ($template);\n\t\t}\n\t\treturn;\n\t} \n\telse if ($action == 'edit') {\n\t\t$template = locate_template ( array (\n\t\t\t\t'edit/' . $post->post_type . '-' . get_query_var ( 'sh_part' ) . '.php',\n\t\t\t\t'edit/' . $post->post_type . '.php' \n\t\t) );\n\t\tif ($template != '') {\n\t\t\tinclude ($template);\n\t\t}\n\t\treturn;\n\t} \n\telse if ($post) {\n\t\t$template = locate_template ( array (\n\t\t\t\t'content/page-' . $post->post_name . '.php',\n\t\t\t\t'content/' . $post->post_type . '.php' \n\t\t) );\n\t\t\n\t\tif ($template != '') {\n\t\t\tinclude ($template);\n\t\t\treturn;\n\t\t}\n\t}\n\t\n\t// otherwise, show the new post form and feed\n\tsh_post_form ();\n\tsh_topic_loop ();\n}", "public function render() {\n $vars = array('page' => &$this);\n // Page complete.\n $this->env->hook('page_render', $vars);\n return $this->html;\n }", "function render($content) {\n /* @todo: If this is a full page, we should parse out the meta fields and \n * Maybe this is only done if the document is empty?\n * Specifically necessary for the front end OTO's\n */\n \n $this->runEvent('beforeDoShortcode', array($this->document, &$content));\n // Apply shortcode filter\n $content = do_shortcode($content); \n\n $this->runEvent('beforeDocumentRender', array($this->document, &$content));\n\n // Set the code in the document, and render\n $this->document->setContent($content);\n $page = $this->document->renderDocument();\n $this->runEvent('afterDocumentRender', array($page));\n return $page; \n }", "function pageContent($page)\n{\n $path = config('content_path').'/'.$page.'.php';\n if (file_exists(filter_var($path, FILTER_SANITIZE_URL))) {\n include $path;\n } else {\n include config('content_path').'/404.php';\n }\n}", "public function render() {\n\t\t$this->render_page_content();\n\t}", "public function page($page)\n {\n \n $content = Content::where('page', $page)->get()->first();\n \n return new ContentResource($content);\n\n }", "public function additionalInfo(Page $page)\n {\n if (false === $page instanceof Page) {\n return false;\n }\n \n $layoutResponse = $this->layoutService->getLayout($page->getLayout());\n \n if (BaseResponse::SUCCESS === $layoutResponse->isSuccess()) {\n $page->setLayout($layoutResponse->getData());\n }\n\n $this->blockService->setComponents($page);\n\n /** @var Area $area */\n foreach ($page->getLayout()->getAreas() as $area) {\n /** @var Block $block */\n foreach ($area->getBlocks() as $block) {\n $this->blockService->setInfo($block);\n }\n }\n \n return $page;\n }", "function &renderPage( $page=0 )\r\n {\r\n $generator =& $this->generator();\r\n// print( \"Using renderer: \" . $this->RendererClass . \"<br>\");\r\n \r\n return $generator->renderPage( $page );\r\n }", "function get(){\n\t$temp = $this->page;\n\t$this->addFooter();\n\t//restore the page for next call for\n\t$page= $this->page;\n\t$this->page = $temp;\n\n return $this->page;\n}", "function thumbwhere_contentcollection_add_page() {\n $controller = entity_ui_controller('thumbwhere_contentcollection');\n return $controller->addPage();\n}", "public function loadContent($page_name)\n\t{\n\t\tinclude(\"resource/view/\".$page_name.\".php\");\n\t}", "function addPage()\n {\n // Reuse the atkAddHandler for the addPage.\n $handler = atknew(\"atk.handlers.atkaddhandler\");\n $handler->setNode($this->m_node);\n return $handler->invoke(\"addPage\");\n }", "function content($f) {\n\t\tif (isset($f)) {\n\t\t\t$this -> $f();\n\t\t} else {\n\t\t\t$this -> mainPage();\n\t\t}\n\t}", "private function renderPage()\n {\n $content = <<<EOD\n<div id=\"layout-block\">\n{$this->searchForm->render()}\n{$this->renderLegend()}\n{$this->renderPools()}\n</div>\nEOD;\n return $this->renderBaseTemplate($content);\n }", "public function renderContent() {}", "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 buildContent(Context $context, Page $page) {\n\t\tif ($context->ui->setting('content/pageContent/enabled', false)) {\n\t\t\t$this->processTargets($context, $page);\n\t\t} else {\n\t\t\t$contentData = get_field(\"content\", $page->id) ?: [];\n\t\t\t$this->content = new ContentBlockContainer($context, $contentData, null, $page);\n\t\t}\n\t}", "public function update_page_content() {\n\t\tglobal $post;\n\t\tif ( empty( $post->post_content_filtered ) ) {\n\t\t\t$post->post_content_filtered = $post->post_content;\n\t\t\twp_update_post( $post, false );\n\t\t}\n\t}", "public function __invoke(Page $page)\n {\n return view('page', compact('page'));\n }", "public static function renderContent() {}", "public function renderPage()\r\n {\r\n $this->setMasterContent();\r\n // Echo the page immediately.\r\n $this->_htmlpage->renderPage();\r\n }", "public function renderPage()\r\n {\r\n $this->setMasterContent();\r\n // Echo the page immediately.\r\n $this->_htmlpage->renderPage();\r\n }", "function addPageContent(& $page, & $parentElement) {\n\t\t$element = $parentElement->appendChild(\n\t\t\t$this->_document->createElement('pageContent'));\n\t\t\n\t\t$this->addCommonProporties($page, $element);\n\t\t\n\t\t$textElement = $element->appendChild($this->_document->createElement('text'));\n\t\t$textElement->appendChild(\n\t\t\t$this->_document->createCDATASection(urldecode($page->getField('text'))));\n\t\t\n\t\tif ($page->getField('location') == 'right')\n\t\t\t$element->setAttribute('location', 'right');\n\t\telse\n\t\t\t$element->setAttribute('location', 'left');\n\t}", "public function render() {\n\t\treturn $this->template( 'page' );\n\t}", "public function render_page() {\n\t\t$this->render_template();\n\t}", "public function view($page)\n {\n $this->validated();\n $Data['Headers'] = get_page_headers();\n $this->load->view('layouts/main', $Data);\n }", "public function page_content() {\n\t\t$tab = empty( $_REQUEST['tab'] ) ? 'new' : wp_strip_all_tags( wp_unslash( $_REQUEST['tab'] ) ); // Input var okay.\n\t\t$paged = ! empty( $_REQUEST['paged'] ) ? (int) $_REQUEST['paged'] : 1; // Input var okay.\n\n\t\t$tab = esc_attr( $tab );\n\t\t$paged = esc_attr( $paged );\n\n\t\t$filters = _appthemes_get_addons_mp_page_args( $this->args['page_slug'], 'filters' );\n\t\t$defaults = _appthemes_get_addons_mp_page_args( $this->args['page_slug'], 'defaults' );\n\n\t\t$args = array(\n\t\t\t'tab' => $tab,\n\t\t\t'page' => $paged,\n\t\t\t'filters' => $filters,\n\t\t\t'defaults' => $defaults,\n\t\t);\n\n\t\t$table = $this->create_list_table( $this->args['page_slug'], $this->args['parent'], $args );\n\n\t\t// Outputs the tabs, filters and search bar.\n\t\t$table->views();\n\n\t\t/**\n\t\t * Fires on the Add-ons browser tab after the top navigation bar.\n\t\t *\n\t\t * The dynamic part of the hook name refers to the tab slug (i.e. new or popular)\n\t\t *\n\t\t * @param APP_Addons_List_Table $table The content generator instance.\n\t\t */\n\t\tdo_action( \"appthemes_addons_mp_{$tab}\", $table );\n\t}", "public function pagesOnly() {}", "function Page($page_content)\n {\n // Match the <head/> element.\n if (preg_match(\"#<head.*?>(.*?)</head>#si\", $page_content, $match))\n {\n $this->_head = $match[1];\n\n // Match the <title/> element.\n if (preg_match(\"#<title.*?>(.*?)</title>#si\", $this->_head, $match))\n {\n // Store away the title.\n $this->_title = trim($match[1]);\n\n // Match <meta/> tags.\n if (preg_match_all(\"#<meta.*?>#si\", $this->_head, $matches, PREG_SET_ORDER))\n {\n foreach ($matches as $match)\n {\n $meta_tag = $match[0];\n\n // Match the key. (name and http-equiv are treated equally.)\n if (preg_match(\"#\\b(name)\\s*=\\s*\\\"(.*?)\\\"#si\", $meta_tag, $match) ||\n preg_match(\"#\\b(http-equiv)\\s*=\\s*\\\"(.*?)\\\"#si\", $meta_tag, $match))\n {\n $meta_type = $match[1];\n $meta_name = $match[2];\n }\n\n // Match the value.\n if (preg_match(\"#\\bcontent\\s*=\\s*\\\"(.*?)\\\"#si\", $meta_tag, $match))\n {\n $meta_value = $match[1];\n }\n\n // Store away the meta key and value.\n $this->_properties['meta.' . $meta_name] = $meta_value;\n $this->_meta_property_types['meta.' . $meta_name] = $meta_type;\n }\n }\n\n // Store away the header with the title removed.\n $this->_head = preg_replace(\"#<title.*?>.*?</title>#si\", \"\", $this->_head); \n $this->_head = trim($this->_head);\n }\n }\n\n // Match the <body/> element.\n if (preg_match(\"#(<body.*?>)(.*?)</body>#si\", $page_content, $match))\n {\n // Store away the body.\n $this->_body = trim($match[2]) . \"\\n\";\n\n // Match the attributes in the body tag.\n $body_start_tag = $match[1];\n if (preg_match_all(\"#\\b(\\S+)\\s*=\\s*\\\"(.*?)\\\"#s\", $body_start_tag, $matches, PREG_SET_ORDER))\n {\n foreach ($matches as $match)\n {\n // Store away the body attribute key and value.\n $this->_properties['body.' . $match[1]] = $match[2];\n }\n }\n }\n }", "function enable_full_meta_for_pages() {\n add_post_type_support( 'page', 'excerpt' );\n register_taxonomy_for_object_type( 'post_tag', 'page' );\n register_taxonomy_for_object_type( 'category', 'page' );\n}", "public function prepend($pages) {}", "function honeycomb_homepage_content() {\n\t\twhile ( have_posts() ) {\n\t\t\tthe_post();\n\n\t\t\tget_template_part( 'content', 'page' );\n\n\t\t} // end of the loop.\n\t}", "protected abstract function renderContent();", "public function output(Event $event)\n {\n $page = $event['page'];\n $uri = $this->grav['uri'];\n $uri = $uri->base().$page->rawRoute();\n $twig = $this->grav['twig'];\n $config = (array) $this->config->get('plugins');\n $config = $config['imgcaptions'];\n $content = $page->getRawContent();\n if ($config['mode'] == 'markdown') {\n preg_match_all(\n $this::REGEX_IMG_WRAPPING_LINK,\n $content,\n $wrappers,\n PREG_SET_ORDER\n );\n if (count($wrappers) != 0) {\n foreach ($wrappers as $wrap) {\n $content = str_replace($wrap[0], $wrap['image'] . '___' . $wrap['url'], $content);\n }\n }\n preg_match_all(\n $this::REGEX_MARKDOWN_LINK,\n $content,\n $matches,\n PREG_SET_ORDER\n );\n foreach ($matches as $match) {\n $attrs = array();\n $attrs['src'] = $uri.DS.$match['file'].$match['ext'];\n $attrs['alt'] = (isset($match['alt']) ? $match['alt'] : '');\n $attrs['title'] = (isset($match['title']) ? $match['title'] : '');\n if (isset($match['type'])) {\n if ($match['type'] == 'id') {\n $id = substr($match['grav'], strpos($match['grav'], \"=\") + 1);\n $attrs['id'] = $id;\n } elseif ($match['type'] == 'classes') {\n $classes = substr($match['grav'], strpos($match['grav'], \"=\") + 1);\n $attrs['class'] = str_replace(',', ' ', $classes);\n }\n }\n if (isset($match['extra']) && !empty($match['extra'])) {\n $extra = trim($match['extra'], '{}');\n $extras = explode(' ', $extra);\n $id = $classes = $attributes = array();\n foreach ($extras as $extra) {\n if (Utils::startsWith($extra, '#')) {\n $id[] = substr($extra, 1);\n } elseif (Utils::startsWith($extra, '.')) {\n $classes[] = substr($extra, 1);\n } else {\n $attributes[] = $extra;\n }\n }\n if (!empty($id)) {\n $attrs['id'] = implode(' ', $id);\n if (!isset($match['type']) && $match['type'] == 'id') {\n $attrs['id'] = $attrs['id'] . ' ' . implode(' ', $id);\n } else {\n $attrs['id'] = implode(' ', $id);\n }\n }\n if (!empty($classes)) {\n if (!isset($match['type']) && $match['type'] == 'classes') {\n $attrs['class'] = $attrs['class'] . ' ' . implode(' ', $classes);\n } else {\n $attrs['class'] = implode(' ', $classes);\n }\n }\n if (!empty($attributes)) {\n foreach ($attributes as $attribute) {\n if (Utils::contains($attribute, '=')) {\n $attribute = explode('=', $attribute);\n $attrs[$attribute[0]] = $attribute[1];\n }\n }\n }\n }\n if (isset($match['url']) && !empty($match['url'])) {\n $replace = $twig->processTemplate(\n 'partials/figure.html.twig', \n [\n 'attrs' => $attrs,\n 'url' => trim($match['url'], '_')\n ]\n );\n } else {\n $replace = $twig->processTemplate(\n 'partials/figure.html.twig', \n [\n 'attrs' => $attrs\n ]\n );\n }\n $content = str_replace($match[0], $replace, $content);\n }\n } elseif ($config['mode'] == 'html') {\n $content = $page->content();\n\n $unwrap = $this::REGEX_IMG_P;\n $content = preg_replace($unwrap, \"$1\", $content);\n\n $wrap = $this::REGEX_IMG;\n $content = preg_replace($wrap, '<figure role=\"group\" $2>$1</figure>', $content);\n\n $title = $this::REGEX_IMG_TITLE;\n $content = preg_replace($title, \"$0<figcaption>$1</figcaption>\", $content);\n }\n $page->setRawContent($content);\n }", "public function tempPageCacheContent() {}", "public function Cacher($page){\n\t\t\n\t\t//Include the pager\n\t\tinclude_once(\"core/view/Page.php\");\n\t\t\n\t\t//The Title of the website\n\t\t$siteTitle = $this->openFile(\"data/config/site_title.dat\");\n\t\t\n\t\t//Create the pager\n\t\t$pager = new Pager($siteTitle);\n\t\t\n\t\t//Get the page content\n\t\t$data = $this->getPageData($page);\n\t\t\n\t\t//Set the page title\n\t\t$pager->setContentTitle($data[0]);\n\t\t\n\t\t//If Not on default template set the alternate one\n\t\tif($data[1]!=\"Default\"){\n\t\t\t$pager->setTemplate($data[1]);\n\t\t}\n\t\t\n\t\t//Set the page content\n\t\t$pager->setContent($data[2]);\n\t\t\n\t\t//Generate the page\n\t\t$toCache = $pager->softDisplayPage();\n\t\t\n\t\t//Save to the cache\n\t\t$this->saveFile(\"cache/\".$page.\".html\", $toCache);\n\t}", "public function getPageContent($page, $tab, $showAnchors = true) {\n $this->loadTemplatePart('content', array(\n 'page' => $page,\n 'tab' => $tab,\n 'showAnchors' => $showAnchors\n ));\n }", "protected function getPage() {}", "protected function getPage() {}", "public function add_page_excerpts() {\n add_post_type_support( 'page', 'excerpt' );\n }", "public function add(WebPage $page);", "public function prePageHeader();", "function load_page(string $page_name) {\n get_template_part( \"partials/$page_name\" );\n }", "private function loadPageLayout($page, $content=[]){\n\n $this->load->view(\"header.php\");\n $this->load->view($page, $content);\n $this->load->view(\"footer.php\");\n\n }", "public function render($page, $data = []) {\n \n $data['isDashboard'] = TRUE;\n \n $data['breadcrumbs'] = $this->breadcrumbs->get();\n $this->load->view('components/header', $data);\n $page = 'pages/reports/' . $page;\n $this->load->view($page, $data);\n \n $this->load->view('components/footer');\n }", "function thumbwhere_contentcollectionitem_add_page() {\n $controller = entity_ui_controller('thumbwhere_contentcollectionitem');\n return $controller->addPage();\n}", "abstract protected function RenderContent();", "protected function _prepare_page($page)\n {\n }", "public function prePageGeneration(OutputObjectInterface $page);", "public function getPageHandler();", "function render($page){\n if(file_exists(FOLDER_VIEWS.S.$page.\".php\")){\n extract($this->vars);\n require_once FOLDER_VIEWS.S.$page.\".php\";\n }else{\n header(\"location: \".REDIRECT_ERROR003);\n }\n }", "public function page() {\n\t\t$key = md5( __CLASS__ . $this->post->ID );\n\t\tif ( false == ( $page = wp_cache_get( $key ) ) ) {\n\t\t\t$page[] = $this->post_content();\n\t\t\tif ( $this->coming_soon || $this->cf || true === $this->free ) {\n\n\t\t\t}else{\n\t\t\t\t$page[] = $this->feature_section();\n\t\t\t}\n\t\t\t\n\t\t\t$page[] = $this->testimonials_section();\n\t\t\tif ( false === $this->free ) {\n\t\t\t\t$page[] = $this->price_table();\n\t\t\t}\n\n\t\t\t$page[] = $this->contact_section();\n\t\t\tif ( ! $this->coming_soon ) {\n\t\t\t\t$page[] = $this->docs();\n\t\t\t}\n\t\t\t$page = implode( '', $page );\n\t\t\twp_cache_set( $key, $page, '', 399 );\n\t\t}\n\n\t\treturn $page;\n\n\t}", "function get_page($page, $args = array()) {\n\textract($args);\n\t$config = $GLOBALS['config'];\n\t\n\t$basePath = basePath();\n\t\n\t$style = \"default\";\n\t$stylePath = $basePath . \"/style/$style\";\n\t$style_page_include = \"$stylePath/page/$page.php\";\n\t$page_include = $basePath . \"/page/$page.php\";\n\t\n\tif(file_exists(\"$stylePath/header.php\")) {\n\t\tinclude(\"$stylePath/header.php\");\n\t}\n\t\n\tif(file_exists($style_page_include)) {\n\t\tinclude($style_page_include);\n\t} else {\n\t\tinclude($page_include);\n\t}\n\t\n\tif(file_exists(\"$stylePath/footer.php\")) {\n\t\tinclude(\"$stylePath/footer.php\");\n\t}\n}", "function pantomime_links_page_content(){\n\t\tif (is_page_template( 'temp-links.php' )){\n\t\t\t\t$bookmarks_args = array(\n\t\t\t\t\t\t'title_before' => '<h3>',\n\t\t\t\t\t\t'title_after' => '</h3>',\n\t\t\t\t\t\t'category_before' => '',\n\t\t\t\t\t\t'category_after' => ''\n\t\t\t\t);\n\t\t\t\techo '<div id=\"bookmarks\">';\n\t\t\t\twp_list_bookmarks($bookmarks_args);\n\t\t\t\techo '</div><!-- bookmarks -->';\n\t\t}\n}", "public function addPage()\n {\n $placements = array(\n array('id' => 'ads.leftbar.banner', 'name' => $this->translate->translate('Left Side')),\n array('id' => 'ads.rightbar.banner', 'name' => $this->translate->translate('Right Side'))\n );\n $this->putitem(\"placements\", $placements);\n\n $view_types = array(\n array('id' => 'serial', 'name' => 'Serial'),\n array('id' => 'carrousel', 'name' => 'Carroussel')\n );\n $this->putitem(\"view_types\", $view_types);\n\n parent::addPage();\n }", "public function get_page();", "function renderPage() {\n $parameters = explode(\"/\", $this->getCurrentPage());\n $folder = $parameters[1];\n if (!in_array($folder, $this->folders) && $folder !== \"api\") {\n $name = $this->getCurrentPage();\n require_once $this->getBlueprintPath();\n }\n }", "protected function applyPageLayout()\n {\n $this->content = \"\n @extends('generated/layout')\n \";\n }", "public function other()\n {\n if (class_exists('tracer_class')) {\n tracer_class::marker(array(\n 'render css or js content in template',\n debug_backtrace(),\n '#006400'\n ));\n }\n\n $content = '';\n if ($this->_get->pageType() === 'css') {\n header('content-type: text/css');\n } elseif ($this->_get->pageType() === 'js') {\n header(\"content-type: text/javascript\");\n }\n \n foreach ($this->_get as $mod => $param) {\n if (is_array($param)) {\n\n foreach ($param as $val) {\n $content .= $this->_read($mod, $val, $this->_get->pageType());\n }\n } else {\n $content .= $this->_read($mod, $param, $this->_get->pageType());\n }\n }\n \n $this->generate('css_js', $content);\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 addFooter(){\n\n$this->page .= <<<EOD\n<pre>\n$this->title\n</pre>\n</body>\n</html>\nEOD;\n}", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "public function loadContent($page = 'home')\n {\n \t$navbar_intelix_class = 'white z-depth-4 animated fadeIn';\n \t$button_class = 'grey-text';\n \t$navbar_position_class = 'fixed-navbar-home';\n $menu_option = $page;\n $services = null;\n $data = ContentSection::OfModule($page);\n $company = Company::first();\n \tswitch ($page) {\n \t\tcase 'nosotros':\n case 'empleos':\n case 'servicios':\n \t\t\tbreak;\n case 'contacto':\n $services = Service::all();\n break;\n \t\t//home\n \t\tdefault:\n \t\t\t$navbar_intelix_class = 'transparent z-depth-0';\n \t\t\t$navbar_position_class = 'navbar-home-bottom';\n \t\t\t$button_class = 'nav-menu';\n $menu_option = 'home';\n \t\t\tbreak;\n \t}\n\n return view($page, compact('navbar_position_class','navbar_intelix_class','button_class','menu_option', 'services','data','company'));\n\n }", "public function getByPage(SiteTree $page, $showEmbargoed = false);", "public function addPage() {\n $colors = Colors::find();\n $this->putItem(\"colors\", $colors->toArray());\n return parent::addPage();\n }", "protected function setupPage() {}", "public function myContents( $pagePath, $contentsType, $timeRestrict, $restrictToThis, $timeScale, $timeDuration, $offset = 0, $limit = 10 ){ return $this->APICall( array('myContents' => $pagePath, 'contentsType' => $contentsType, 'resultRestrict' => $timeRestrict, 'restrictToThis' => $restrictToThis, 'timeScale' => $timeScale, 'timeDuration' => $timeDuration, 'offset' => $offset, 'limit' => $limit), \"Could not get contents analytics\" ); }", "public function theme_page_output() {\n require get_theme_file_path( '/templates/theme-page.php' );\n\t}", "public static function renderContent($page_data) {\n\t\techo '<h1>'.$page_data[\"texts\"][\"links_headline\"].'</h1>'.PHP_EOL;\n\t\techo '<p>'.PHP_EOL;\n\t\t\techo $page_data[\"texts\"][\"links_info\"].PHP_EOL;\n\t\techo '</p>'.PHP_EOL;\n\t\t//\n\t\tif (!empty($page_data[\"link_cats\"])) {\n\t\t\tforeach($page_data[\"link_cats\"] as $cat) {\n\t\t\t\techo '<table class=\"links\">'.PHP_EOL;\n\t\t\t\t\techo '<tr>'.PHP_EOL;\n\t\t\t\t\t\techo '<td colspan=\"2\"><h2>'.$cat[\"name\"].'</h2></td>'.PHP_EOL;\n\t\t\t\t\techo '</tr>'.PHP_EOL;\n\t\t\t\t\tif (!empty($page_data[\"links\"][$cat[\"name\"]])) {\n\t\t\t\t\t\tforeach($page_data[\"links\"][$cat[\"name\"]] as $link) {\n\t\t\t\t\t\t\techo '<tr>'.PHP_EOL;\n\t\t\t\t\t\t\t\techo '<td>'.PHP_EOL;\n\t\t\t\t\t\t\t\t\techo '<a href=\"'.$link[\"link\"].'\" title=\"'.$link[\"name\"].'\"><img src=\"'.$link[\"thumb\"].'\" alt=\"'.$link[\"name\"].'\" width=\"100\" height=\"75\" /></a>'.PHP_EOL;\n\t\t\t\t\t\t\t\techo '</td>'.PHP_EOL;\n\t\t\t\t\t\t\t\techo '<td class=\"justify\">'.PHP_EOL;\n\t\t\t\t\t\t\t\t\techo '<strong><a href=\"'.$link[\"link\"].'\" title=\"'.$link[\"name\"].'\">'.$link[\"name\"]. '</a></strong><br />'.$link[\"dscr\"].PHP_EOL;\n\t\t\t\t\t\t\t\techo '</td>'.PHP_EOL;\n\t\t\t\t\t\t\techo '</tr>'.PHP_EOL;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\techo '</table>'.PHP_EOL;\n\t\t\t}\n\t\t}\n\t}", "public function render_view(\\renderable $page) {\n $data = $page->export_for_template($this);\n\n if (has_capability('mod/cfp:evaluate', $page->context)) {\n return parent::render_from_template('mod_cfp/view_admin', $data);\n }\n\n return parent::render_from_template('mod_cfp/view', $data);\n\n }", "function page_content( $path )\n\t{\n\t\tif($this->not_authorized($path))\n\t\t\treturn $this->page_content('403');\n\n\t\t// page exists\n\t\t$page = $this->page($path);\n\t\tif( $page )\n\t\t{\n\t\t\t// in memory\n\t\t\tif( $page['content'] ) return $page['content'];\n\n\t\t\t// or parse & memorize\n\t\t\t$content = $this->parse($page['raw_content'], true, true, 'page \"' . $path . '\"');\n\t\t\t$this->pages[$path]['content'] = $content;\n\t\t\treturn $content;\n\t\t}\n\n\t\t// 403\n\t\tif( $path == '403' ) {\n\t\t\theader('HTTP/1.0 403 Forbidden');\n\t\t\treturn '<h1>403</h1>';\n\t\t}\n\t\t// 404\n\t\tif( $path != '404' ) {\n\t\t\treturn $this->page_content('404');\n\t\t}\n\t\t// 404 of 404\n\t\theader('HTTP/1.0 404 Not Found');\n\t\treturn '<h1>404</h1>';\n\t}", "function get_page($page, $output = \\OBJECT, $filter = 'raw')\n {\n }", "function ts_get_main_page_builder_content($content)\r\n{\r\n\tglobal $post;\r\n\t\r\n\tif ($post -> post_type != 'page')\r\n\t{\r\n\t\treturn $content;\r\n\t}\r\n\t$page_builder = get_post_meta($post -> ID,'page_builder_content',true);\r\n\treturn $content. do_shortcode($page_builder);\r\n}", "public function render_content() {\n\t}", "public function __invoke() {\n\t\t// Register hooks for the group if part of group\n\t\tif ( null !== $this->group ) {\n\t\t\t$this->group->load( $this->group, $this->page );\n\t\t}\n\n\t\t$this->page->load( $this->page );\n\t}", "function wpcodex_add_excerpt_support_for_pages() {\n\tadd_post_type_support( 'page', 'excerpt' );\n}", "public function render_page_list( $atts ) {\n $id = $atts['id'];\n $meta = get_post_meta( $id );\n $context = $this->fetch_base_config( $id, get_post( $id ) );\n $context = $this->fetch_btn_config( $context, $id, $meta );\n\n // Pages to be included\n $page_list = array();\n $all_pages = get_post_meta( $id, 'cb_pages_list_repeat_group', true );\n\n if ( $all_pages ) {\n \n foreach ( $all_pages as $page ) {\n // Get page ID from meta select dropdown\n $page_id = $page['yali_select_page'];\n\n // Get page data\n $listed_page = get_page( $page_id );\n\n // Get page imgage and add as prop to page object\n $page_img = get_the_post_thumbnail_url( $page_id, 'full' );\n if( !empty( $page_img ) ) {\n $listed_page->page_img = $page_img;\n }\n\n // Get page link and add as prop to page object\n $page_link = get_permalink( $page_id );\n $listed_page->page_link = $this->filter_link( $page_link );\n\n // Get related link and text add as prop to page object\n $related_link = $page['yali_related_link']['link'];\n $listed_page->related_link = $this->filter_link( $related_link );\n\n $related_link_text = $page['yali_related_link']['label'];\n $listed_page->related_link_text = $related_link_text;\n\n $context['links'] = get_post_meta( $id, 'yali_button_links_repeat_group', true );\n\n array_push( $page_list, $listed_page );\n }\n }\n\n $context['page_list'] = $page_list;\n $context['page_list_layout'] = get_post_meta( $id, 'yali_cdp_page_list_layout', true );\n $context['selector'] = 'cb-' . get_the_ID();\n $context['num_pages'] = count( $page_list );\n\n return Twig::render( 'content_blocks/page-list.twig', $context );\n }", "public function render_wizard() {\n\t\tinclude Plugin::instance()->get_view( 'common/page' );\n\t}", "function wlms_manage_requested_books_page_content()\n{\n wlms_manage_requested_books_page_content_html();\n}" ]
[ "0.644496", "0.6397758", "0.63345134", "0.5957173", "0.57094026", "0.5673658", "0.5673504", "0.56591785", "0.5651059", "0.5646003", "0.5615955", "0.5611832", "0.55842716", "0.55839837", "0.55820394", "0.5547798", "0.5525981", "0.5453372", "0.5436326", "0.5434511", "0.541059", "0.5366468", "0.53571177", "0.53474456", "0.5328665", "0.5300767", "0.52942055", "0.5278077", "0.5241146", "0.5237054", "0.5235075", "0.5234711", "0.522974", "0.5217056", "0.5210444", "0.5209379", "0.51853764", "0.5181591", "0.5160306", "0.5160306", "0.5155938", "0.51461136", "0.51307917", "0.5121876", "0.51158285", "0.5113839", "0.51028687", "0.50930834", "0.5081243", "0.50711644", "0.5067305", "0.50649077", "0.5059159", "0.50536674", "0.5052631", "0.5039571", "0.5039107", "0.50327", "0.50300294", "0.5019708", "0.50097823", "0.49980554", "0.49947336", "0.4993895", "0.49877527", "0.49853766", "0.49830458", "0.4978689", "0.49758556", "0.4972946", "0.4968556", "0.49644697", "0.49606702", "0.49367642", "0.49291497", "0.49047673", "0.4902056", "0.48991594", "0.489458", "0.48858622", "0.48858622", "0.48858622", "0.4885095", "0.48842928", "0.48819092", "0.48801497", "0.48785973", "0.48784623", "0.4876611", "0.4873663", "0.4873417", "0.48596656", "0.48596254", "0.48548555", "0.48511124", "0.48404285", "0.48403087", "0.48401156", "0.48382625", "0.48337376" ]
0.5800724
4
Import and then analyze a file from maltego
public function import($file) { $this->_findings['websites'] = []; $this->_findings['profiles'] = []; $this->_findings['emails'] = []; $this->_findings['locations'] = []; $fileContent = file_get_contents($file); $fileContent = str_replace( [ 'version="1.1"', // Change Version to 1.0 ' xmlns:mtg="http://maltego.paterva.com/xml/mtgx"', // Remove Schema 'mtg:' // Remove Namespace ], [ 'version="1.0"', '', '' ], $fileContent ); $this->_importedFile = Parser::xml($fileContent); $this->analyze(); return $this->_findings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function import();", "protected function analyze()\n {\n foreach($this->_importedFile['graph']['node'] as $node) {\n $entity = $node['data'][0]['MaltegoEntity'];\n\n switch($entity['@attributes']['type']) {\n case \"maltego.DNSName\":\n $this->_findings['websites'][] = $entity['Properties']['Property']['Value'];\n break;\n case \"maltego.Website\":\n $this->_findings['websites'][] = $entity['Properties']['Property'][0]['Value'];\n break;\n case \"maltego.Domain\":\n $this->_findings['websites'][] = $entity['Properties']['Property'][0]['Value'];\n break;\n case \"maltego.EmailAddress\":\n $email = $entity['Properties']['Property'][0]['Value'];\n if (filter_var($email, FILTER_VALIDATE_EMAIL)) {\n $this->_findings['emails'][] = $email;\n }\n break;\n }\n }\n }", "public function import(string $filePath);", "public function import(): void;", "public function import()\n {\n \n }", "function tidy_parse_file($filename, $config = null, $encoding = null, $use_include_path = false) {}", "public function parse($file);", "public function parse($file);", "public function import_from_file($filename)\n {\n }", "function import_file($contents) {\n\t\ttrigger_error('Importer::import_file needs to be implemented', E_USER_ERROR);\n\t\t\n\t}", "public function analyze(): void;", "public function run()\n {\n $this->loadTextFile($this->text_file);\n }", "function runkit_import($filename, $flags = RUNKIT_IMPORT_CLASS_METHODS)\n{\n}", "public function loadFromFile($file)\n {\n \n }", "public static function import_process() {}", "public function parseFile(string $filename);", "public function load($file);", "public function load($file);", "public function load($file);", "public function parseFile($filename, $config = null, $encoding = null, $use_include_path = false) {}", "public function scan($filename){ }", "function runkit_lint_file($filename)\n{\n}", "abstract public function import(): bool;", "private function ParseFile() {\r\n\t\t$this->ini_array = parse_ini_file($this->$results_file, true); //Load the results into a array //\r\n\t}", "function import_STE()\n{\n}", "protected function initializeImport() {}", "private function processFile() {\n if ($this->isFileAllowed()) {\n $path_parts = pathinfo($this->filepath);\n $extention = $path_parts['extension'];\n\n $classes = get_declared_classes();\n\n foreach($classes as $class) {\n $reflect = new \\ReflectionClass($class);\n if($reflect->implementsInterface('App\\\\Classes\\\\IFileFormat')) {\n if ($extention === $class::getFileExtension()) {\n $fileFormat = new $class($this->filepath);\n $this->charsCount = $fileFormat->getCharactersCount();\n $this->wordsCount = $fileFormat->getWordsCount();\n }\n }\n }\n }\n }", "function Import() {\n // Fichier sql\n $filename = 'http://localhost/alumnus/alumnus.sql';\n\n // Connexion\n $bdd = new PDO('mysql:host=localhost; dbname=alumnus', 'root', '');\n // Variable temporaire stockant la requête (ligne par ligne)\n $templine = '';\n // Lecture entière du fichier\n $lines = file($filename);\n // Boucle à travers chaque ligne\n foreach ($lines as $line){\n // Passage à la ligne suivante si c'est un commentaire ('--' et '/* */') ou si la ligne est vide\n if (substr($line, 0, 2) == '--' || substr($line, 0, 2) == '/*' || $line == '')\n continue;\n\n // Ajout ou concaténation de la ligne au segment actuel\n $templine .= $line;\n // Détection de fin de ligne avec le point-virgule\n if (substr(trim($line), -1, 1) == ';') {\n // Exécution de la requête\n $bdd->exec($templine);\n // Réinitialisation de la variable temporaire\n $templine = '';\n }\n }\n\n // Déconnexion\n $bdd = null;\n}", "public function doAnalyze()\n {\n $backdropFinder = new Finder();\n $backdropFinder->in($this->sourceDir.'/backdrop');\n foreach ($backdropFinder->files() as $row ) {\n /* @var $row SplFileInfo*/\n if (in_array($row->getExtension(), $this->filter)) {\n $this->doAnalyzingBackdrop($row, 'backdrop');\n }\n }\n $this->dumpLibraryJson('backdrop');\n\n }", "public function import()\n {\n // Reorder importers\n usort($this->entityImporterMappings, function ($a, $b) {\n return $a[ORDER] <=> $b[ORDER];\n });\n\n // Import each entity type in turn\n foreach ($this->entityImporterMappings as $entityImporterMapping) {\n $files = $this->directoryReader->getFileNameMappings($entityImporterMapping[self::DIRECTORY]);\n foreach ($files as $filename => $slug) {\n $fileContents = file_get_contents($filename);\n $entityData = json_decode($fileContents, true);\n $entityImporterMapping[self::IMPORTER]->importEntity($slug, $entityData);\n }\n }\n }", "public function testSimple()\n {\n //$tokenizer->tokenize(__FILE__);\n }", "function import($file , $load_time = 0, $on_init = false)\r\n\t{\r\n\t\treturn parent::import($file, $load_time);\r\n\t}", "public function prepareImport();", "function run_endo_importer() {\n\t$plugin = new Endo_Importer();\n\t$plugin->run();\n}", "abstract protected function _loadMappingFile($file);", "abstract protected function _loadMappingFile($file);", "public function load(): void;", "public function load(): void;", "abstract public function load($filename);", "public function testGetFile() {\n\t\t$filename = 'test.json';\r\n\t textus_get_file($filename);\n\t \r\n\t}", "public function convert(): void\n {\n // go through files\n foreach ($this->getInFiles() as $file) {\n $bookmarks = $this->parse($file);\n // go through bookmarks\n foreach ($bookmarks as $name => $url) {\n // go through formats\n foreach ($this->formats as $format) {\n switch ($format) {\n case 'url':\n $contents = $this->urlContents($url);\n break;\n case 'webloc':\n $contents = $this->weblocContents($url);\n break;\n case 'desktop':\n $contents = $this->desktopContents($name, $url);\n break;\n default:\n // shouldn't be a case because of constructor validation\n break;\n }\n $this->writeFile($name, $format, $contents);\n }\n }\n }\n }", "function ch_qti2_import_file($array_file)\n{\n $unzip = 0;\n $process = process_uploaded_file($array_file, false);\n\n if (preg_match('/\\.zip$/i', $array_file['name'])) {\n // if it's a zip, allow zip upload\n $unzip = 1;\n }\n\n if ($process && $unzip == 1) {\n $main_path = api_get_path(SYS_CODE_PATH);\n require_once $main_path.'exercise/export/exercise_import.inc.php';\n require_once $main_path.'exercise/export/qti2/qti2_classes.php';\n\n return import_exercise($array_file['name']);\n }\n\n return 'langFileError';\n}", "private function readTypes() {\n $files = $this->path->read();\n\n foreach ($files as $file) {\n if ($file->isDirectory()) {\n continue;\n }\n\n $this->readType($file->getName());\n }\n }", "public function Trasmetti($file);", "function agnosia_initialize_file_getter() {\r\n\r\n\trequire_once get_template_directory() . '/inc/utils/agnosia-file-getter.php';\r\n\r\n}", "public abstract function parse($resultFile);", "static function AnalyzeFile($file) {\n\t\t$completion = -1;\n\t\t$source = @file_get_contents($file);\n\t\tif ($source) {\n\t\t\t$blocks = DocBlock::ParseCode($source);\n\t\t\tif ($blocks !== null) {\n\t\t\t\t$complete = 0;\n\t\t\t\t$pageblock = false;\n\t\t\t\t$total = 0;\n\t\t\t\tforeach($blocks as $block) {\n\t\t\t\t\t$complete += $block->valid ? 1 : 0;\n\t\t\t\t\tif ($block->type == BLOCK_PAGE) $pageblock = true;\n\t\t\t\t\tif ($block->type == BLOCK_PAGE && !$_POST['Dpage']) continue;\n\t\t\t\t\t$total++;\n\t\t\t\t}\n\t\t\t\tif (!$pageblock && $_POST['Dpage']) $total++;\n\t\t\t\t\n\t\t\t\t// Statistics\n\t\t\t\tif ($total > 0) {\n\t\t\t\t\t$completion = round( $complete / $total * 100);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn DocBlock::PrepareBullet($completion,$complete,$total);\n\t}", "public function import() {\n\n\t\t$output = array();\n\n\t\tif ($importUrl = Request::post('importUrl')) {\n\n\t\t\t// Resolve local URLs.\n\t\t\tif (strpos($importUrl, '/') === 0) {\n\n\t\t\t\tif (getenv('HTTPS') && getenv('HTTPS') !== 'off' && getenv('HTTP_HOST')) {\n\t\t\t\t\t$protocol = 'https://';\n\t\t\t\t} else {\n\t\t\t\t\t$protocol = 'http://';\n\t\t\t\t}\n\n\t\t\t\t$importUrl = $protocol . getenv('HTTP_HOST') . AM_BASE_URL . $importUrl;\n\t\t\t\tCore\\Debug::log($importUrl, 'Local URL');\n\n\t\t\t}\n\n\t\t\t$curl = curl_init(); \n \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_URL, $importUrl); \n\n\t\t\t$data = curl_exec($curl); \n\t\t\t\n\t\t\tif (curl_getinfo($curl, CURLINFO_HTTP_CODE) != 200 || curl_errno($curl)) {\n\t\t\t\n\t\t\t\t$output['error'] = Text::get('error_import');\n\t\t\t\n\t\t\t} else {\n\n\t\t\t\t$fileName = Core\\Str::sanitize(preg_replace('/\\?.*/', '', basename($importUrl)));\n\n\t\t\t\tif ($url = Request::post('url')) {\n\t\t\t\t\t$Page = $this->Automad->getPage($url);\n\t\t\t\t\t$path = AM_BASE_DIR . AM_DIR_PAGES . $Page->path . $fileName;\n\t\t\t\t} else {\n\t\t\t\t\t$path = AM_BASE_DIR . AM_DIR_SHARED . '/' . $fileName;\n\t\t\t\t}\n\n\t\t\t\tFileSystem::write($path, $data);\n\t\t\t\t$this->clearCache();\n\n\t\t\t} \n\n\t\t\tcurl_close($curl);\n\n\t\t\tif (!FileSystem::isAllowedFileType($path)) {\n\n\t\t\t\t$newPath = $path . FileSystem::getImageExtensionFromMimeType($path);\n\n\t\t\t\tif (FileSystem::isAllowedFileType($newPath)) {\n\t\t\t\t\tFileSystem::renameMedia($path, $newPath);\n\t\t\t\t} else {\n\t\t\t\t\tunlink($path);\n\t\t\t\t\t$output['error'] = Text::get('error_file_format');\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\t$output['error'] = Text::get('error_no_url'); \n\n\t\t}\n\n\t\treturn $output;\n\n\t}", "private function analyze()\n {\n $return = false; $output = false;\n $command = \"mkvmerge --identify-verbose \\\"{$this->inputFile}\\\"\";\n\n exec( $command, $output, $return );\n\n // @todo: handle this with an exception\n if ( $return != 0 )\n {\n return false;\n }\n else\n {\n $this->analysisResult = array();\n preg_match_all( \"/^Track ID ([0-9]+): (video|audio|subtitles) \\((.+)\\)(?: \\[(.*)\\])?$/im\", join( \"\\n\", $output ), $matches, PREG_SET_ORDER );\n foreach( $matches as $match )\n {\n $index = $match[1];\n $type = $match[2];\n\n // language doesn't exist for AVI (nor the other properties)\n $this->analysisResult[$index] = new stdClass;\n $this->analysisResult[$index]->index = $index;\n $this->analysisResult[$index]->type = $type;\n // meta informations\n if ( isset( $match[4] ) )\n {\n foreach( explode( ' ', $match[4] ) as $metaProperty )\n {\n list( $name, $value ) = explode( ':', $metaProperty );\n $this->analysisResult[$index]->$name = $value;\n }\n }\n }\n }\n }", "function import_start( $file ) {\n\t\tif ( ! is_file($file) ) {\n\t\t\techo '<p><strong>发生错误</strong><br />';\n\t\t\techo $file.' 文件不存在</p>';\n\t\t\t$this->footer();\n\t\t\tdie();\n\t\t}\n\n\t\t$import_data = $this->parse( $file );\n\n\t\tif ( is_wp_error( $import_data ) ) {\n\t\t\techo '<p><strong>发生错误</strong><br />';\n\t\t\techo esc_html( $import_data->get_error_message() ) . '</p>';\n\t\t\t$this->footer();\n\t\t\tdie();\n\t\t}\n\n\t\t$this->posts = $import_data['posts'];\n\t\t$this->terms = $import_data['terms'];\n\t\t$this->categories = $import_data['categories'];\n\t\t$this->tags = $import_data['tags'];\n\n\t\twp_defer_term_counting( true );\n\t\twp_defer_comment_counting( true );\n\n\t\tdo_action( 'import_start' );\n\t}", "private function loadFile()\n\t{\n\t\tif( empty($this->content) ) {\n\t\t\tif( empty($this->file) ) {\n\t\t\t\tthrow new Exception('Which file should I parse, you ...!');\n\t\t\t} else {\n\t\t\t\tif( strtolower( $this->file->getExtension() ) == 'zip' ) {\n\t\t\t\t\t$this->content = $this->handleZipFile( $this->file );\n\t\t\t\t} else {\n\t\t\t\t\t$this->content = $this->file->getContents();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function support($file);", "public function load()\n {\n\n /*\n $folder = new LibFilesystemFolder(PATH_GW.'data/bdl/');\n $files = $folder->getPlainFiles();\n\n $this->data = array();\n\n // Load als xmi Files\n foreach ($files as $file)\n if (substr($file, -3 , strlen($file)) == \"xml\")\n $this->data[] = $file;\n */\n\n $data = array();\n\n include PATH_GW.'conf/map/bdl/projects/projects.php';\n\n $this->data = $data;\n\n ksort($this->data);\n\n }", "function load_masses($path){\n global $AMASS;\n\t$residue = array();\n\t$mass = array();\n\t$H2O = 0;\n\t$NH3 = 0;\n\t$a = 0;\n\t$found = 0;\n \n if(!$INPUT = fopen($path,\"r\")){\n if($INPUT = fopen(\"$path.gz\",\"r\")){ \n fclose($INPUT);\n system(\"gzip -d $path.gz\");\n $INPUT = fopen(\"$path\",\"r\");\n }else{\n\t\t\techo \"Content-type: text/html\\n\\n\";\n\t\t\techo \"<pre>\n\t\t\t\t<html>\n\t\t\t\t\t<head>\n\t\t\t\t\t<title>GPM</title>\n\t\t\t\t\t<link rel=\\\"stylesheet\\\" href=\\\"/tandem/tandem-style.css\\\" />\n\t\t\t\t\t<link rel=\\\"stylesheet\\\" href=\\\"/tandem/tandem-style-print.css\\\" media=\\\"print\\\"/>\n\t\t\t\t\t</head>\n\t\t\t\t<body>\n\t\t\t\t<table><tr><td>\n\t\t\t\t<a href=\\\"/tandem/thegpm_tandem.html\\\"><img src=\\\"/pics/gpm.png\\\" border=\\\"0\\\"></a>\n\t\t\t\t</td><td>&nbsp;&nbsp;</td><td valign=\\\"middle\\\" width=\\\"400\\\">\n\t\t\t\tThe model file <b>$path</b> <BR>\n\t\t\t\tcould not be found in the archive.</td></tr>\n\t\t\t\t</table></body></html>\n </pre>\";\n\t\t\texit;\n\t\t}\n\t}\n while(!feof($INPUT)) {\n $buffer = fgets($INPUT, 4096);\n if(preg_match(\"/group label=\\\"residue mass parameters\\\" type=\\\"parameters\\\"/\", $buffer)){\n $found=1;\n $tmp_str = trim($buffer);\n while(!feof($INPUT)){\n $buffer = fgets($INPUT, 4096);\n if(preg_match(\"/\\<\\/group\\>/\", $buffer)){\n preg_match_all(\"/\\<aa type=\\\"(\\w)\\\" mass=\\\"\\d+\\.\\d+\\\" \\/>/\",$tmp_str,$matches);\n if($matches[1]) $residue = $matches[1];\n preg_match_all(\"/\\<aa type=\\\"\\w\\\" mass=\\\"(\\d+\\.\\d+)\\\" \\/>/\",$tmp_str,$matches_2);\n if($matches_2[1]) $mass = $matches_2[1];\n preg_match(\"/\\<molecule type=\\\"NH3\\\" mass=\\\"(\\d+\\.\\d+)\\\" \\/>/\",$tmp_str,$matches_3);\n if($matches_3[1]) $NH3 = $matches_3[1];\n preg_match(\"/\\<molecule type=\\\"H2O\\\" mass=\\\"(\\d+\\.\\d+)\\\" \\/>/\",$tmp_str,$matches_4);\n if($matches_4[1]) $H2O = $matches_4[1];\n $AMASS = array_combine($residue, $mass);\n \t\t\t$AMASS['H2O'] = $H2O;\n \t\t\t$AMASS['NH3'] = $NH3;\n \t\t\tfclose($INPUT);\n $tmp_str = '';\n break;\n }else{\n $tmp_str .= trim($buffer);\n }\n }\n if($found) break;\n }\n }\n}", "public function metaImport($data);", "private function import()\n {\n if ($this->option('file') == null) {\n $this->warn('Please specify an import file');\n\n return;\n }\n\n $translatedLocaleValues = [];\n $file = fopen($this->option('file'), 'r');\n\n // Header row\n $line = fgetcsv($file, 0, $this->csvSeperator);\n if ($line[0] == 'translation_string') {\n $translationLocale = $line[2];\n } else {\n $this->warn('The given file seems to have an incorrect format');\n\n return;\n }\n\n // Data rows\n while (($line = fgetcsv($file, 0, $this->csvSeperator)) !== false) {\n if (empty($line[2])) {\n continue;\n }\n\n $translatedLocaleValues[$translationLocale][$line[0]] = $line[2];\n }\n\n $this->manager->write($translatedLocaleValues);\n }", "function import( $file ) {\n\t\tadd_filter( 'import_post_meta_key', array( $this, 'is_valid_meta_key' ) );\n\t\tadd_filter( 'http_request_timeout', array( &$this, 'bump_request_timeout' ) );\n\n\t\t$this->import_start( $file );\n\n\t\twp_suspend_cache_invalidation( true );\n\t\t$this->process_categories();\n\t\t$this->process_tags();\n\t\t$this->process_terms();\n\t\t$this->process_posts();\n\t\twp_suspend_cache_invalidation( false );\n\n\t\t$this->import_end();\n\t}", "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 someloader($filepath) {\n\treturn SomeLoader::import($filepath);\n}", "public function parseTestedFiles(UnitInterface &$unit);", "public function scanAndConvert()\n {\n foreach ($this->getFileToConvert() as $file) {\n $output = array();\n $in = $file;\n $out = preg_replace('/.{3}$/', '', $in);\n foreach ($this->getSupportedFormat() as $ext) {\n $cmd = self::FFMPEG . \" -y -i \" . $this->inputDirectory . \"/\" . $in . \" \" . $this->outputDirectory . \"/\" . $out . $ext;\n exec($cmd, $output);\n foreach ($output as $line) {\n $this->logger->info($line);\n }\n }\n $cmd = self::RM . \" -rvf \" . $in;\n exec($cmd, $output);\n foreach ($output as $line) {\n $this->logger->info($line);\n }\n\n // update the entity\n $id = preg_replace('/-.*$/', '', $in);\n $this->updateEntity($id, $out);\n }\n }", "public function loadFile ($arquivo) {\n\t\t#################################################################################\n\t\t## Variáveis globais\n\t\t#################################################################################\n\t\tglobal $log;\n\t\t\n\t\t#################################################################################\n\t\t## Verifica se o arquivo existe\n\t\t#################################################################################\n\t\tif (!file_exists($arquivo)) \t{\n\t\t\t$this->adicionaErro(0, 0, null, 'Arquivo não encontrado ('.$arquivo.') ');\n\t\t\tthrow new \\Exception('Arquivo não encontrado ('.$arquivo.') ');\n\t\t}\n\n\t\t#################################################################################\n\t\t## Verifica se o arquivo pode ser lido\n\t\t#################################################################################\n\t\tif (!is_readable($arquivo)) \t{\n\t\t\t$this->adicionaErro(0, 0, null, 'Arquivo não pode ser lido ('.$arquivo.') ');\n\t\t\tthrow new \\Exception('Arquivo não pode ser lido ('.$arquivo.') ');\n\t\t}\n\n\t\t#################################################################################\n\t\t## Lê o arquivo\n\t\t#################################################################################\n\t\t$lines\t= file($arquivo);\n\t\t\n\t\t#################################################################################\n\t\t## Verifica se o arquivo tem informação\n\t\t#################################################################################\n\t\tif (sizeof($lines) < 2) {\n\t\t\t$this->adicionaErro(0, 0, null, 'Arquivo sem informações ('.$arquivo.') ');\n\t\t\tthrow new \\Exception('Arquivo sem informações ('.$arquivo.') ');\n\t\t}\n\t\t \n\t\t#################################################################################\n\t\t## Percorre as linhas do arquivo\n\t\t#################################################################################\n\t\tfor ($i = 0; $i < sizeof($lines); $i++) {\n\t\t\t$codTipoReg\t\t= substr($lines[$i],7 ,1);\n\t\t\t//$log->info(\"Tipo de registro encontrado: $codTipoReg\");\n\t\t\tif ($codTipoReg == 3) {\n\t\t\t\t$codSegmento\t= substr($lines[$i],13 ,1);\n\t\t\t}else{\n\t\t\t\t$codSegmento\t= \"\";\n\t\t\t}\n\t\t\t$tipoReg\t\t= \"R\".$codTipoReg.$codSegmento;\n\t\t\t$linha\t\t\t= str_replace(array(\"\\n\", \"\\r\"), '', $lines[$i]); \n\t\t\t$reg\t\t\t= $this->adicionaRegistro($tipoReg);\n\t\t\tif ($reg === null) {\n\t\t\t\tcontinue;\n\t\t//\t\t$this->adicionaErro(0, $i+1, null, \"Linha fora do padrão definido\");\n\t\t//\t\treturn;\n\t\t\t}else{\n\t\t\t\t$ok\t\t\t= $this->registros[$reg]->carregaLinha($linha);\n\t\t\t}\n\t\t\t\n\t\t\tif ($ok !== true) \t{\n\t\t\t\t$log->err(\"Erro no tipo de registro: $codTipoReg, CodSegmento: $codSegmento, mensagem: $ok\");\n\t\t\t\t$this->adicionaErro(0, $this->registros[$reg]->getLinha(), $this->registros[$reg]->getTipoRegistro(), $ok);\n\t\t\t}\n\t\t}\n\n\t}", "public function test_scan_document()\n {\n $ocr = new \\App\\Modules\\OCR\\OCR();\n\n $location = $ocr->image(__DIR__ . '/test.png')->process('test.txt');\n\n PHPUnit::assertEquals(\n \"/Users/mark.fluehmann/Documents/60.Technik/Code/cerbo/storage/app/ocr/test.txt\",\n $location,\n );\n\n $content = file_get_contents($location);\n\n PHPUnit::assertTrue(\n strpos($content, 'Bundesrat') > 0\n );\n\n }", "public function load() {\n\t\t$this->copyFromTemplateIfNeeded();\n\t\trequire $this->filePath;\n\t\t$this->vars = $vars;\n\t}", "abstract protected function doImport(Finder $finder, InputInterface $input, OutputInterface $output);", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load_files() {\n\n\t\t// Load our admin-related functions.\n\t\tif ( is_admin() ) {\n\t\t\trequire_once( GUPR_DIR . 'lib/admin.php' );\n\t\t}\n\t}", "function drush_btranslator_btr_vote_import($lng, $path) {\n global $user;\n if (!$user->uid) {\n drush_log(t('You must specify a user with the option --user.'), 'error');\n drupal_exit();\n }\n\n // Check that the given language exists.\n _btranslator_drush_check_params(NULL, NULL, $lng);\n\n // Check user permissions.\n _drush_btranslator_btr_vote_import_check_permissions($lng);\n\n // Check the path.\n $path = _drush_btranslator_btr_vote_import_check_path($path);\n\n // Import translations and votes.\n btr::vote_import($user->uid, $lng, $path);\n foreach (btr::messages() as $msg) drush_log($msg[0], $msg[1]);\n}", "public function staticParse($file)\n {\n $source = file_get_contents($file);\n if( preg_match_all( '/(?:abstract\\s+class|class|interface)\\s+(\\w+)/i' ,$source, $matches ) ) {\n var_dump( $matches ); \n }\n }", "public function passo1() {\n $this->Traducao->import('default.pot');\n }", "protected function import(): void {\n\t\t\t$sections = $this->load_and_decode_file();\n\n\t\t\tif ( empty( $sections ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tforeach ( $sections as $section ) {\n\t\t\t\tLearnDash_Settings_Section::set_section_settings_all(\n\t\t\t\t\t$section['name'],\n\t\t\t\t\t$section['fields']\n\t\t\t\t);\n\n\t\t\t\t$this->processed_items_count++;\n\t\t\t\t$this->imported_items_count++;\n\t\t\t}\n\t\t}", "protected function load_files() {\n\t\trequire_once __DIR__ . '/class-papi-admin-meta-handler.php';\n\t\trequire_once __DIR__ . '/class-papi-admin-option-handler.php';\n\t\trequire_once __DIR__ . '/class-papi-admin-entry-post.php';\n\t\trequire_once __DIR__ . '/class-papi-admin-entry-taxonomy.php';\n\t\trequire_once __DIR__ . '/class-papi-admin-columns.php';\n\t\trequire_once __DIR__ . '/class-papi-admin-page-type-switcher.php';\n\t}", "public function main()\n {\n $testSuitesDoc = new DOMDocument();\n $testSuitesDoc->load((string) $this->inFile);\n\n $this->fixDocument($testSuitesDoc);\n\n $this->transform($testSuitesDoc);\n }", "private function processFile($file) {\n\t\tglobal $IP;\n\t\t$file = \"$IP/$file\";\n\n\t\techo \"\\nPROCESSING $file\\n\";\n\t\tif ( !is_file($file) ) {\n\t\t\techo $file . \" not found\\n\";\n\t\t\treturn;\n\t\t}\n\t\t$classNameInfo = $this->getClassName( $file );\n\t\tif ( !$classNameInfo ) {\n\t\t\techo(\"$file is not a class\\n\");\n\t\t\treturn;\n\t\t}\n\n\t\t$qClass = $classNameInfo['namespace'] . '\\\\' . $classNameInfo['class'];\n\t\t$unstableMethods= $this->getUnstableMethods( $qClass );\n\t\t$extensionUsages = $this->queryCodeSearch( $classNameInfo['class'] );\n\t\tif ( !$extensionUsages ) {\n\t\t\techo \"no matches\\n\";\n\t\t\treturn;\n\t\t}\n\t\t$this->getExtensionInfo( $extensionUsages, $unstableMethods, $qClass );\n\t}", "public function testImport() {\n return true;\n }", "function getTestDataFromFile($file) {\n return require $file;\n}", "public function parse(): void\n {\n $compression = $this->file->readShort();\n $this->parseImageData($compression);\n }", "private static function load_files() {\n\t\t\t// Classes.\n\t\t\tinclude_once ASTRA_ADDON_EXT_ADVANCED_HEADERS_DIR . 'classes/class-astra-ext-advanced-headers-data.php';\n\t\t\t// Load Astra Breadcrumbs.\n\t\t\tinclude_once ASTRA_ADDON_EXT_ADVANCED_HEADERS_DIR . 'classes/astra-breadcrumbs.php';\n\t\t}", "function _manually_load_importer() {\n\tif ( ! class_exists( 'WP_Import' ) ) {\n\t\trequire dirname( dirname( __FILE__ ) ) . '/src/wordpress-importer.php';\n\t}\n}", "private function parseFile($file, &$summary) {\n // Load up all the classes.\n $parsers = Yaml::parse('parsers.yml');\n\n // If the file is valid we append the results to the summary object.\n foreach ($parsers as $parser) {\n $path = $file->getRealpath();\n $object = new $parser();\n $object->setFile($path);\n if ($object->validate($path)) {\n $object->appendResults($summary);\n }\n }\n }", "private function _import($file, $filetype, $locator)\n \n{\n $modelIri = (string)$this->_model;\n\n try {\n if($this->_erfurt->getStore()->importRdf($modelIri, $file, $filetype, $locator)){\n \t$this->_owApp->appendSuccessMessage('Data successfully imported!');\n }\n } catch (Erfurt_Exception $e) {\n // re-throw\n throw new OntoWiki_Controller_Exception(\n 'Could not import given model: ' . $e->getMessage(),\n 0,\n $e\n );\n }\n \n }", "public function run()\n {\n try {\n $inputFilePath = $this->getInputFilePath();\n $stopWordsFile = $this->formatStopWordsPath();\n\n $file = fopen($inputFilePath, \"r\");\n\n if (empty($file)) {\n throw new Exception('File was not opened properly');\n }\n\n // Having a stopwords file is not a requirement to run the script\n // Although the expected response would not be returned, the input file would still be parsed\n if (file_exists($stopWordsFile)) {\n $stopWordsString = file_get_contents($stopWordsFile);\n }\n\n if (!empty($stopWordsString)) {\n $this->stopWords = explode(',', $stopWordsString);\n }\n\n // Loop through the file line by line until the EOF is reached\n while (!feof($file)) {\n $line = fgets($file);\n\n if (empty($line)) {\n continue;\n } else {\n $line = strtolower($line);\n }\n\n $this->parseLine($line);\n }\n\n $this->sortFrequencyArray();\n\n $this->printTopResults();\n } catch (Exception $e) {\n $this->handleException($e);\n }\n }", "public function load() { }", "function getSourceFile() ;", "public abstract function load();", "private function parse()\n {\n $handle = fopen($this->filepath, 'r');\n if(! $handle) throw new \\Exception(\"Can't read file $this->filepath\");\n\n $plugin = null;\n\n while(($line = fgets($handle)) !== false) {\n\n /* Remove next line character from end of line */\n $line = str_replace(PHP_EOL, '', $line);\n\n /* Skip comments and empty lines */\n if(starts_with($line, '#') || trim($line) === '') continue;\n\n /* Find description setting */\n else if(starts_with($line, 'description')) $this->parseDescription($line);\n\n /* Find help setting */\n else if(starts_with($line, 'help')) $this->parseHelp($line);\n\n /* Capture commands */\n else if(starts_with_whitespace($line)) $plugin->parseCommand($line);\n\n /* Start plugin capture */\n else {\n $plugin = $this->parseCurrentPlugin($line);\n }\n }\n\n fclose($handle);\n\n /* Set state as parsed */\n $this->isParsed = true;\n }", "public function parseFile(string $filePath): void\n {\n if (is_file($filePath)) {\n $fileContents = file_get_contents($filePath);\n $vendors = $this->splitFileContentsIntoVendors($fileContents);\n $this->createVendorsModel($vendors);\n } else {\n $this->mLogger::out(\"Filename specified is not a regular file.\");\n }\n }", "function runParser($filePath) {\n fileParser($filePath);\n\n fileNumberAdder();\n\n formatPrinter();\n}" ]
[ "0.6240464", "0.61813474", "0.59099674", "0.5896096", "0.5859274", "0.57322603", "0.55810195", "0.55810195", "0.55186427", "0.5502431", "0.5468458", "0.5463712", "0.54300904", "0.538213", "0.53469044", "0.5222115", "0.5214371", "0.5214371", "0.5214371", "0.51911104", "0.51580507", "0.5131706", "0.5122844", "0.51185733", "0.5076567", "0.5039541", "0.5035896", "0.5021097", "0.49975026", "0.4997232", "0.49844489", "0.4978135", "0.4975271", "0.49480516", "0.49467847", "0.49467847", "0.49434742", "0.49434742", "0.49298066", "0.49226806", "0.49168947", "0.49070817", "0.49055415", "0.4902756", "0.4895989", "0.48907194", "0.487171", "0.4870904", "0.48659742", "0.48601198", "0.48595107", "0.48450622", "0.48321548", "0.48265377", "0.48258048", "0.4824187", "0.480905", "0.47843736", "0.4771667", "0.47667405", "0.4762852", "0.47569352", "0.47484732", "0.4743837", "0.47434", "0.47286737", "0.47286737", "0.47286737", "0.47286737", "0.47286737", "0.47286737", "0.47286737", "0.47286737", "0.47286737", "0.47286737", "0.47286737", "0.47286737", "0.47286737", "0.4722227", "0.47206193", "0.47126552", "0.4703903", "0.46814397", "0.46814162", "0.46799198", "0.46774414", "0.4675695", "0.4669191", "0.46660566", "0.46633142", "0.46549442", "0.46548566", "0.46537125", "0.46524963", "0.46458393", "0.46425378", "0.4639083", "0.4628056", "0.46242246", "0.46207196" ]
0.46778297
85
Analyze the files content for relevant information. Adds the findings to the collection
protected function analyze() { foreach($this->_importedFile['graph']['node'] as $node) { $entity = $node['data'][0]['MaltegoEntity']; switch($entity['@attributes']['type']) { case "maltego.DNSName": $this->_findings['websites'][] = $entity['Properties']['Property']['Value']; break; case "maltego.Website": $this->_findings['websites'][] = $entity['Properties']['Property'][0]['Value']; break; case "maltego.Domain": $this->_findings['websites'][] = $entity['Properties']['Property'][0]['Value']; break; case "maltego.EmailAddress": $email = $entity['Properties']['Property'][0]['Value']; if (filter_var($email, FILTER_VALIDATE_EMAIL)) { $this->_findings['emails'][] = $email; } break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function collectInfoFiles()\r\n {\r\n $files_found = $this->findFiles($this->destination_dir, array('md', '1st', 'txt'));\r\n\r\n if($files_found)\r\n $this->file_list = array_merge($this->file_list, $files_found);\r\n }", "public function parseFiles()\n {\n $this->files->each(function ($file) {\n $this->store[] = $this->getTree($this->parseFile($file), $file);\n });\n }", "public function doAnalyze()\n {\n $backdropFinder = new Finder();\n $backdropFinder->in($this->sourceDir.'/backdrop');\n foreach ($backdropFinder->files() as $row ) {\n /* @var $row SplFileInfo*/\n if (in_array($row->getExtension(), $this->filter)) {\n $this->doAnalyzingBackdrop($row, 'backdrop');\n }\n }\n $this->dumpLibraryJson('backdrop');\n\n }", "public function findFiles();", "protected function processFileTree () {\n\t\t$files = $this->populateFileTree();\n\t\tforeach ($files as $file) {\n\t\t\t$this->processFile($file);\n\t\t}\n\t}", "public function lookForFiles()\n\t{\n\t\t$this->_jobOptions = [];\n\n\t\tforeach ($this->getProject()->jobs as $job) {\n\t\t\tif ($job->paramountProjectJob instanceof ParamountProjectJob){\n\n\t\t\t\t$this->setProjectJob($job);\n\n\t\t\t\t$this->buildJobOptionsForService();\n\t\t\t}\n\t\t}\n\n\t}", "public function indexCrawledDocuments() {\n\t\tforeach ( $this->aFiles as $sFile ) {\n\t\t\t$oRepoFile = new SplFileInfo( $sFile );\n\t\t\tif ( !$oRepoFile->isFile() ) continue;\n\n\t\t\t$sFileName = $oRepoFile->getFilename();\n\t\t\t$sDocType = $this->mimeDecoding( $oRepoFile->getExtension() );\n\t\t\tif ( !$this->checkDocType( $sDocType, $sFileName ) ) continue;\n\n\t\t\tif ( !$this->oMainControl->bCommandLineMode ) set_time_limit( $this->iTimeLimit );\n\n\t\t\tif ( $this->sizeExceedsMaxDocSize( $oRepoFile->getSize(), $sFileName ) ) continue;\n\n\t\t\t//Insert URL to Filename\n\t\t\t$rURL = BsConfig::get( 'MW::ExtendedSearch::ExternalRepo' );\n\t\t\t$sURL = BsConfig::get( 'MW::ExtendedSearch::ExternalRepoUrl' );\n\t\t\t//Replace realpath with webserver url only if $sUrl is set, otherwise work as before\n\t\t\tif($sURL == \"\"){\n\t\t\t $sRepoFileRealPath = \"file:///\" . $oRepoFile->getRealPath();\n\t\t\t}else{\n\t\t\t $sRepoFileRealPath = $this->getFilePath( $rURL, $sURL, $oRepoFile );\n\t\t\t}\n\n\t\t\t$timestampImage = wfTimestamp( TS_ISO_8601, $oRepoFile->getMTime() );\n\n\t\t\tif ( $this->checkExistence( $oRepoFile->getRealPath(), 'external', $timestampImage, $sFileName ) ) continue;\n\n\t\t\t$text = $this->getFileText( $oRepoFile->getRealPath(), $sFileName );\n\n\t\t\t$doc = $this->makeRepoDocument( $sDocType, utf8_encode( $sFileName ), $text, utf8_encode( $sRepoFileRealPath ), $timestampImage );\n\t\t\t$this->writeLog( $sFileName );\n\n\t\t\twfRunHooks( 'BSExtendedSearchBeforeAddExternalFile', array( $this, $oRepoFile, &$doc ) );\n\n\t\t\tif ( $doc ) {\n\t\t\t\t// mode and ERROR_MSG_KEY are only passed for the case when addsFile fails\n\t\t\t\t$this->oMainControl->addDocument( $doc, $this->mode, self::S_ERROR_MSG_KEY );\n\t\t\t}\n\t\t}\n\t}", "public function process(): void {\n if($this->shouldCache() && $this->hasCache()) {\n $this->restoreCache();\n\n return;\n }\n\n $folders = [];\n foreach($this->sources_to_parse as $source_to_parse) {\n $folder = $source_to_parse->getFolderToParse();\n if(!isset($folders[$folder])) {\n $folders[$folder] = [\n 'extensions' => [],\n 'flags' => [],\n ];\n }\n $folders[$folder]['extensions'] = [...$folders[$folder]['extensions'], ...$source_to_parse->getExtensions()];\n $folders[$folder]['flags'] = [...$folders[$folder]['flags'], ...$source_to_parse->getFlags()];\n }\n\n foreach($folders as $folder => $folder_sources) {\n $folder_sources['extensions'] = array_values(array_unique($folder_sources['extensions']));\n $folder_sources['flags'] = array_values(array_unique($folder_sources['flags']));\n $code_data = $this->analyzer->parseFolder($folder, $folder_sources);\n $this->info_data[] = $code_data;\n $i = count($this->info_data) - 1;\n foreach($folder_sources['flags'] as $flag) {\n if(!isset($this->info_data_flag_refs[$flag])) {\n $this->info_data_flag_refs[$flag] = [];\n }\n $this->info_data_flag_refs[$flag][] = $i;\n }\n $this->flags = [...$this->flags, ...$folder_sources['flags']];\n }\n $this->flags = array_values(array_unique($this->flags));\n\n if($this->shouldCache()) {\n file_put_contents(\n $this->file_cache,\n \"<?php\\n\\nreturn \" .\n var_export([\n 'info_data' => $this->info_data,\n 'info_data_flag_refs' => $this->info_data_flag_refs,\n ], true) . ';',\n );\n }\n }", "abstract public function search($files, array $includedFiles);", "public function collectLogFiles()\r\n {\r\n $folder = array($this->app_root.'/logs');\r\n $files_found = $this->findFiles($folder, array(\"log\"));\r\n\r\n if($files_found)\r\n $this->file_list = array_merge($this->file_list, $files_found);\r\n }", "public function find () {\n\t\t$results = array();\n\n\t\t// Iterate all paths in target\n\t\tforeach ($this->target->get_resolved_paths() as $path) {\n\t\t\t\n\t\t\t// Iterate all files in paths\n\t\t\t$files = directory_contents($path);\n\t\t\tforeach ($files as $file) {\n\t\t\t\t$lines = file($file);\n\t\t\t\t\n\t\t\t\t// Iterate all lines in file\n\t\t\t\tfor ($i=0; $i < count($lines); $i++) { \n\t\t\t\t\tif (preg_match(self::BREAKPOINT, $lines[$i])) {\n\t\t\t\t\t\t$results[$file][] = $i + 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (count($results) == 0) $results = null;\n\t\t\n\t\treturn $results;\n\t}", "public function analyze()\n {\n $this->line('Tokenizing your codebase, this can take a few moments');\n $this->entities = $this->filterEntities();\n $codebase = $this->codebase->getTokenized();\n\n /* @type AbstractAnalyzedEntity $entity */\n $this->line('Analyzing codebase...');\n $progress = $this->getProgressBar($this->entities);\n\n foreach ($this->entities as $key => $entity) {\n $progress->advance();\n $progress->setMessage($entity->name);\n\n foreach ($entity->getUsageMatrix() as $usageNeedle) {\n foreach ($codebase as $file => $tokens) {\n if (!$tokens) {\n continue;\n }\n\n if ($token = $this->containsTokens($tokens, $usageNeedle)) {\n $this->entities[$key]->usage = $usageNeedle->usage;\n $this->entities[$key]->occurences[] = [\n 'file' => $file,\n 'context' => $token,\n ];\n\n break 2;\n }\n }\n }\n }\n\n $progress->finish();\n\n return $this->entities;\n }", "private function analyse()\n\t{\n\t\t// Get the latest approved revision of each extension\n\t\t$revisions = $this->get_latest_approved_revisions();\n\n\t\t$progress = $this->create_progress_bar(\n\t\t\tcount($revisions),\n\t\t\tnew SymfonyStyle($this->input, $this->output),\n\t\t\t$this->output,\n\t\t\ttrue\n\t\t);\n\n\t\t// Start the progress bar\n\t\t$progress->setMessage($this->language->lang('CLI_EXTENSION_EVENTS_SCAN_START'));\n\t\t$progress->start();\n\n\t\t// Remove temp folder - clean up before we begin\n\t\t$this->remove_temporary_folder();\n\n\t\tforeach ($revisions as $revision)\n\t\t{\n\t\t\t// Increase the progress\n\t\t\t$progress->setMessage($this->language->lang('CLI_EXTENSION_EVENTS_SCAN_CONTRIB', $revision['contrib_name'], $revision['revision_id'], $revision['real_filename']));\n\t\t\t$progress->advance();\n\n\t\t\t// Read the attachment\n\t\t\tif ($revision['extension'] === 'zip')\n\t\t\t{\n\t\t\t\t$path = $this->root_path . 'ext/phpbb/titania/files/revisions/' . $revision['physical_filename'];\n\n\t\t\t\t$zip = new \\ZipArchive();\n\t\t\t\t$result = $zip->open($path);\n\n\t\t\t\t// If we ever want a revision by revision breakdown of the events used, we could output it inside here.\n\t\t\t\tif ($result)\n\t\t\t\t{\n\t\t\t\t\t// Unzip the revision to a temporary folder\n\t\t\t\t\t$zip->extractTo($this->tmp_folder);\n\t\t\t\t\t$zip->close();\n\n\t\t\t\t\t// Find template events\n\t\t\t\t\t$this->find_template_events();\n\n\t\t\t\t\t// Find PHP events\n\t\t\t\t\t$this->find_php_events();\n\n\t\t\t\t\t// Remove temp folder before we unzip the next one.\n\t\t\t\t\t$this->remove_temporary_folder();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Complete\n\t\t$progress->setMessage($this->language->lang('CLI_EXTENSION_EVENTS_SCAN_FINISH'));\n\t\t$progress->finish();\n\n\t\t// Output the listing statistics\n\t\t$this->output->writeln('');\n\n\t\t// Sort by usages\n\t\tarsort($this->event_listing['template']);\n\t\tarsort($this->event_listing['php']);\n\n\t\t// Template stats\n\t\t$this->output->writeln($this->language->lang('CLI_EXTENSION_EVENTS_TEMPLATE'));\n\t\t$this->display_stats_table('template');\n\n\t\t// PHP stats\n\t\t$this->output->writeln($this->language->lang('CLI_EXTENSION_EVENTS_PHP'));\n\t\t$this->display_stats_table('php');\n\n\t\t// Custom events\n\t\t$this->output->writeln($this->language->lang('CLI_EXTENSION_EVENTS_CUSTOM'));\n\t\t$this->display_custom_events_table();\n\n\t\treturn count($revisions);\n\t}", "protected function _scan_files()\n\t{\n\t\t$terms = array();\n\n\t\t$parser = new PHPParser_Parser(new PHPParser_Lexer);\n\n\t\tforeach ($this->_list_files(array('views', 'classes')) as $file)\n\t\t{\n\t\t\t$statements = $parser->parse(file_get_contents($file));\n\n\t\t\t$terms = Arr::merge($terms, $this->_get_terms_from_statements($statements));\n\t\t}\n\n\t\treturn $terms;\n\t}", "protected function collectBackups()\n {\n $results = $this->service->files->listFiles($this->getParams());\n\n /** @var \\Google_Service_Drive_DriveFile $googleFile */\n foreach ($results->getFiles() as $googleFile) {\n if ($this->isFileMatch($this->path->getPath() . '/' . $googleFile->getName())) {\n $file = new File\\GoogleDrive($this->service, $googleFile);\n $index = $this->getFileIndex($file);\n $this->files[$index] = $file;\n }\n }\n }", "function scan_files( ){\n\n // List of all the audio files found in the directory and sub-directories\n $audioFileArray = array();\n\n // List of filenames already handled during the scan. To detect dupe filenames.\n $alreadyhandledFileArray = array();\n\n // Make list of all files in db to remove non existent files\n $DBaudioFileArray = array();\n foreach ( $this->get_list_of_files()->fetchAll() as $row ) {\n $DBaudioFileArray[] = $row['filename'];\n }\n\n // Prepare variables for file urls\n //$base_dir = dirname(dirname(realpath($this->filedirectorypath))); // Absolute path to your installation, ex: /var/www/mywebsite\n $doc_root = preg_replace(\"!{$_SERVER['SCRIPT_NAME']}$!\", '', $_SERVER['SCRIPT_FILENAME']); # ex: /var/www\n $protocol = empty($_SERVER['HTTPS']) ? 'http' : 'https';\n $port = $_SERVER['SERVER_PORT'];\n $disp_port = ($protocol == 'http' && $port == 80 || $protocol == 'https' && $port == 443) ? '' : \":$port\";\n $domain = $_SERVER['SERVER_NAME'];\n // variables for file urls\n\n // Create recursive dir iterator which skips dot folders\n $dir = new RecursiveDirectoryIterator( $this->filedirectorypath , FilesystemIterator::SKIP_DOTS);\n\n // Flatten the recursive iterator, consider only files, no directories\n $it = new RecursiveIteratorIterator($dir);\n\n // Find all the mp3 files\n foreach ($it as $fileinfo) {\n if ($fileinfo->isFile() && !strcmp($fileinfo->getExtension(), \"mp3\")) {\n $audioFileArray[] = $fileinfo;\n\n //Warning: files with same md5key in different folders will not be inserted into the db.\n //print md5_file($fileinfo) . \"<br />\\n\";\n }\n }\n\n foreach ($audioFileArray as $key => $fileinfo) {\n\n $filename = $fileinfo->getFilename();\n\n //For each file found on disk remove entry from list from DB\n // if any left at the end, they are files that no longer are present on the drive.\n //print \"unsetting: \" . $filename . \"<br>\";\n unset($DBaudioFileArray[array_search($filename,$DBaudioFileArray,true)]);\n\n // check file not in db\n if( !$this->is_file_in_db( $filename ) ) {\n\n //decode filename date if named according to our naming scheme\n $date = $this->decode_filename($filename);\n\n // Build file url based on server path\n $filepath = realpath($fileinfo->getRealPath());\n $base_url = preg_replace(\"!^{$doc_root}!\", '', $filepath); # ex: '' or '/mywebsite'\n $full_url = \"$protocol://{$domain}{$disp_port}{$base_url}\"; # Ex: 'http://example.com', 'https://example.com/mywebsite', etc.\n\n //print $filename . \" - \" . $full_url . \"<br />\\n\";\n\n //insert audiofile in db for first time\n $this->insert_new_file_into_db( $filename, $full_url, $fileinfo->getRealPath(), $fileinfo->getSize(), $date );\n\n $alreadyhandledFileArray[$key] = $filename;\n\n } else {\n // if file in alreadyhandled array, then duplicate named files have been found\n // how to check for duplicate file names?\n // if we're here then the name has already ben added to the db (but maybe during a previous run)\n //we still need to look for the file in the alreadyhandledFileArray\n if( in_array($filename, $alreadyhandledFileArray) ){\n // flag file\n $this->flag_file($filename, \"Il y a 2 ou plusieurs fichiers audio avec le même nom dans le dossier audio du serveur ftp. Veuillez changer les noms ou supprimer les doublons.\");\n }\n }\n\n\n }\n\n // If there are files from the database that weren't found in the audio folder,\n // flag them and add a comment stating that the file can no longer be found.\n if( count($DBaudioFileArray) ){\n //print_r($DBaudioFileArray);\n foreach($DBaudioFileArray as $key => $fn){\n $this->flag_file($fn, \"Le fichier en question n'est plus présent dans le dossier audio du serveur ftp. Il faut le supprimer de la base de données.\");\n $this->set_file_not_new($fn);\n }\n }\n\n return true;\n }", "function _fillFiles()\n\t{\n\t\t// directory from which we import (real path)\n\t\t$importDirectory = ereg_replace(\n\t\t\t\t\"^(.*)/$\", \n\t\t\t\t'\\1', \n\t\t\t\tereg_replace(\"^(.*)/$\", '\\1', $_SERVER[\"DOCUMENT_ROOT\"]) . $this->from);\n\t\t\n\t\t// when running on windows we have to change slashes to backslashes\n\t\tif (runAtWin()) {\n\t\t\t$importDirectory = str_replace(\"/\", \"\\\\\", $importDirectory);\n\t\t}\n\t\t$this->_files = array();\n\t\t$this->_depth = 0;\n\t\t$this->_postProcess = array();\n\t\t$this->_fillDirectories($importDirectory);\n\t\t// sort it so that webEdition files are at the end (that templates know about css and js files)\n\t\t\n\n\t\t$tmp = array();\n\t\tforeach ($this->_files as $e) {\n\t\t\tif ($e[\"contentType\"] == \"folder\") {\n\t\t\t\tarray_push($tmp, $e);\n\t\t\t}\n\t\t}\n\t\tforeach ($this->_files as $e) {\n\t\t\tif ($e[\"contentType\"] != \"folder\" && $e[\"contentType\"] != \"text/webedition\") {\n\t\t\t\tarray_push($tmp, $e);\n\t\t\t}\n\t\t}\n\t\tforeach ($this->_files as $e) {\n\t\t\tif ($e[\"contentType\"] == \"text/webedition\") {\n\t\t\t\tarray_push($tmp, $e);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->_files = $tmp;\n\t\t\n\t\tforeach ($this->_postProcess as $e) {\n\t\t\tarray_push($this->_files, $e);\n\t\t}\n\t}", "private function processFile() {\n if ($this->isFileAllowed()) {\n $path_parts = pathinfo($this->filepath);\n $extention = $path_parts['extension'];\n\n $classes = get_declared_classes();\n\n foreach($classes as $class) {\n $reflect = new \\ReflectionClass($class);\n if($reflect->implementsInterface('App\\\\Classes\\\\IFileFormat')) {\n if ($extention === $class::getFileExtension()) {\n $fileFormat = new $class($this->filepath);\n $this->charsCount = $fileFormat->getCharactersCount();\n $this->wordsCount = $fileFormat->getWordsCount();\n }\n }\n }\n }\n }", "protected function processChangedAndNewFiles() {}", "private function parseContent()\n {\n $results = [];\n $jsonFiles = $this->parseInputFolders();\n \n $finalManifest = $this->getJobManifestTemplate();\n $this->output->writeln(\"<info>\" . static::INFO_OUTPUT_PREFIX . \"Processing JSON directory: {$this->inputPath} </info>\");\n\n foreach ($jsonFiles as $file) {\n if (file_exists($file)) {\n $results[] = $this->convertLearnosityInDirectory($file);\n } else {\n $this->output->writeln(\"<info>\" . static::INFO_OUTPUT_PREFIX . \"Learnosity JSON file \".basename($file). \" Not found in: {$this->inputPath}/items </info>\");\n }\n }\n $resourceInfo = $this->updateJobManifest($finalManifest, $results);\n $finalManifest->setResources($resourceInfo);\n $this->persistResultsFile($results, realpath($this->outputPath) . '/' . $this->rawPath . '/');\n $this->flushJobManifest($finalManifest, $results);\n CopyDirectoreyHelper::copyFiles(realpath($this->inputPath) . '/assets', realpath($this->outputPath) . '/' . $this->rawPath . '/assets');\n $this->createIMSContntPackage(realpath($this->outputPath) . '/' . $this->rawPath . '/');\n }", "public function apply() {\n\t\t$prepLookup = clone $this->oLookup;\n\n\t\t$size = $this->oLookup->getSize();\n\n\t\t// Prepare preprocessor query\n\t\t$prepLookup->setSize( $size );\n\t\t$prepLookup->clearSourceField();\n\t\t$prepLookup->addSourceField( 'basename' );\n\t\t$prepLookup->addSourceField( 'namespace' );\n\t\t$prepLookup->addSourceField( 'prefixed_title' );\n\n\t\t$excludes = [];\n\n\t\t$this->getExcludesForCurrentPage( $prepLookup, $size, $excludes );\n\n\t\tif ( empty( $excludes ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Add result _ids to exclude from the search\n\t\t$this->oLookup->addBoolMustNotTerms( '_id', $excludes );\n\t}", "public function collectYamlFiles()\r\n {\r\n $folder = array($this->app_root.'/config');\r\n $files_found = $this->findFiles(\r\n $folder,\r\n array(\"yml\"),\r\n array(\"parameters.yml\")\r\n );\r\n\r\n if($files_found)\r\n $this->file_list = array_merge($this->file_list, $files_found);\r\n }", "protected function loadFiles() {\n if ($this->loaded === true) {\n return;\n }\n $iter = new RecursiveDirectoryIterator($this->directory);\n $this->iterateFiles($iter);\n $this->loaded = true;\n }", "public function watch() {\n\t\t\t$totalFiles = 0;\n\n\t\t\twhile(true) {\n\t\t\t\t$dir = new DirectoryIterator(realpath($this->input_dir));\n\t\t\t\t$numFiles = iterator_count($dir);\n\n\t\t\t\tif($numFiles != $totalFiles) {\n\t\t\t\t\t$totalFiles = $numFiles;\n\n\t\t\t\t\tforeach($dir as $fileinfo) {\n\t\t\t\t\t if(!$fileinfo->isDot() && $fileinfo->isFile()) {\n\t\t\t\t\t \t$filename = $fileinfo->getFilename();\n\t\t\t\t\t \t$ext = pathinfo($filename, PATHINFO_EXTENSION);\n\n\t\t\t\t\t \tif(in_array($ext, array('dat')))\n\t\t\t\t\t \t\t$this->extractInfo($filename);\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsleep(3);\n\t\t\t}\n\t\t}", "public function setup() {\n // get files content\n $this->getFileContent();\n\n $this->filterMatches();\n \n // insert the document in db\n $this->insert();\n\n // init terms list\n $this->termsList = new TermsList();\n\n // save terms and relations\n $this->manageMatches();\n }", "private function searchDiffs()\n {\n $this->matchedCollection->each(function ($item) {\n\n $newElement = $this->findMeIn($this->mergeCollection,$item);\n\n //Unset primary key property if it's not in associative pivots because it can create Integrity constraint violation: Duplicate ID\n if(!in_array($this->primaryKey,$this->associativeColumns) && !in_array($this->primaryKey,$this->associativePivots))\n unset($newElement->id);\n\n //If found element\n if($newElement)\n $this->fillReport($newElement,$item);\n });\n }", "protected function _findConfigs()\n {\n foreach (new DirectoryIterator($this->_configPath) as $fileInfo) {\n if ($fileInfo->isDot()) {\n continue;\n }\n if ($fileInfo->isDir()) {\n continue;\n }\n if ($fileInfo->getExtension() !== 'xml') {\n continue;\n }\n\n $name = str_replace('.' . $fileInfo->getExtension(), '', $fileInfo->getFilename());\n $this->_configFiles[$name] = [\n 'name' => $name,\n 'basename' => $fileInfo->getBasename(),\n 'pathname' => $fileInfo->getPathname(),\n ];\n }\n }", "public function getProcessedFiles(): Collection\n {\n return $this->files->filter(function (File $file) {\n return $file->getStatus() === File::FILE_DONE;\n });\n }", "public function getProcessedAndNewFiles(): Collection\n {\n return $this->files->filter(function (File $file) {\n return in_array($file->getStatus(), [FILE::FILE_NEW, FILE::FILE_DONE, FILE::FILE_IN_QUEUE]);\n });\n }", "private function _discover() {\n\n $dir = new DirectoryIterator($this->dirname);\n\n foreach ($dir as $file) {\n\n if ($file->isFile() && !$file->isDot()) {\n\n $filename = $file->getFilename();\n $pathname = $file->getPathname();\n\n if (preg_match('/^(\\d+\\W*)?(\\w+)\\.php$/', $filename, $matches)) {\n require_once($pathname);\n $class = \"{$matches[2]}_{$this->suffix}\";\n $files[$filename] = new $class();\n }\n\n }\n\n }\n\n ksort($files);\n $plugins = array_values($files);\n\n return $plugins;\n\n }", "public function files()\n {\n /**\n * FIX: When used in site options, we don't have a `$this->page`\n * property we can use to access the pages files.\n *\n * (1) If we have page property, we'll use that to fetch the files.\n * (2) If we don't have a page property we're on the site options page.\n * (2.1) If we're using Kirby 2.1+ we can use the new `site()->files()`\n * method to get access to the new global site files to use them.\n * (2.2) If we are using a lower version, global site files don't\n * exist. We'll return an empty collection object instead.\n *\n * @since 1.3.0\n */\n if (!is_null($this->page)) { /* (1) */\n $files = $this->page->files(); /* (1) */\n } else { /* (2) */\n if (version_compare(Kirby::version(), '2.1', '>=')) { /* (2.1) */\n $files = site()->files(); /* (2.1) */\n } else {\n return new Collection(); /* (2.2) */\n }\n }\n\n /**\n * FIX: Create a new reference to $this to overcome the unavailability\n * of $this within closures in PHP < 5.4.0 by passing this new reference\n * with the \"use\" language construct.\n *\n * @since 1.0.1\n */\n $field = &$this;\n\n $files = $files->sortBy($this->sort, ($this->flip) ? 'desc' : 'asc')\n ->filter(function ($file) use ($field) {\n return $field->includeAllFiles() or in_array($file->type(), $field->types());\n });\n\n /**\n * Filter files using a regular expression.\n *\n * @since 1.4.0\n */\n if ($this->isRegExp($this->filter)) {\n $files = $files->filter(function ($file) use ($field) {\n return (preg_match($this->filter, $file->filename()) === 1);\n });\n }\n\n /**\n * Filter files by filename if a filter has been set.\n *\n * @since 1.3.0\n */\n elseif ($this->filter) {\n $files = $files->filterBy('filename', '*=', $this->filter);\n }\n\n return $files;\n }", "public function scanFiles()\n\t{\n\t\t// Load all of joomla into a gigantic array\n\t\t$data = $this->loadAllJoomlaFileIntoGiganticArray();\n\n\t\t$unused = array();\n\n\t\t// Loop each file\n\t\tforeach ($this->files as $file)\n\t\t{\n\t\t\t$file = JPATH_BASE . '/' . $file;\n\n\t\t\t$this->out('Using File: ' . $file);\n\n\t\t\t$lines = $this->loadLanguage($file);\n\n\t\t\tforeach ($lines as $constant => $line)\n\t\t\t{\n\t\t\t\t// Some constants are system ones that are put together on the fly\n\t\t\t\t// We can not find them so just manually remove them\n\t\t\t\t$ignored_constant_patterns = array();\n\t\t\t\t$ignored_constant_patterns[] = '/.*_SAVE_SUCCESS/im';\n\n\t\t\t\t// A plural string with _N_\n\t\t\t\t$ignored_constant_patterns[] = '/.*_N_.*/im';\n\n\t\t\t\t// A plural string ending in a number\n\t\t\t\t$ignored_constant_patterns[] = '/.*_\\d/im';\n\n\t\t\t\t// A plural string\n\t\t\t\t$ignored_constant_patterns[] = '/.*_MORE/im';\n\t\t\t\t$ignored_constant_patterns[] = '/.*_NO_ITEM_SELECTED/im';\n\t\t\t\t$ignored_constant_patterns[] = '/.*_LAYOUT_DEFAULT/im';\n\t\t\t\t$ignored_constant_patterns[] = '/.*_CONFIGURATION/im';\n\t\t\t\t$ignored_constant_patterns[] = '/TPL_.*_POSITION_.*/im';\n\t\t\t\t$ignored_constant_patterns[] = '/COM_MODULES_POSITION_.*/im';\n\n\t\t\t\tforeach ($ignored_constant_patterns as $ignored_constant_pattern)\n\t\t\t\t{\n\t\t\t\t\tif (preg_match($ignored_constant_pattern, $constant))\n\t\t\t\t\t{\n\t\t\t\t\t\tunset($lines[$constant]);\n\n\t\t\t\t\t\tcontinue 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Search the gigantic array for the string\n\t\t\t\tforeach ($data as $datafile => $d)\n\t\t\t\t{\n\t\t\t\t\t$file_parts = explode('.', $datafile);\n\t\t\t\t\t$file_extention = array_pop($file_parts);\n\n\t\t\t\t\tif ($file_extention == 'xml')\n\t\t\t\t\t{\n\t\t\t\t\t\t// If this is an XML file then simply look for the constant\n\t\t\t\t\t\t$pattern = \"/\" . $constant . \"/mi\";\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// If not XML then it is php and we want to see the constant inside quotes\n\t\t\t\t\t\t$pattern = \"/['|\\\"]\\s*\" . $constant . \"\\s*['|\\\"]/mi\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif (preg_match($pattern, $d) === 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Remove the ones we find\n\t\t\t\t\t\tunset($lines[$constant]);\n\t\t\t\t\t\tcontinue 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$unused[$file] = $lines;\n\t\t}\n\n\t\treturn $unused;\n\t}", "public function gatherFileData()\n {\n $files = get_included_files();\n\n $fileList = array();\n\n $fileTotals = array(\n \"count\" => count($files),\n \"size\" => 0,\n \"largest\" => 0,\n );\n\n foreach($files as $key => $file) {\n $size = filesize($file);\n\n $fileList[] = array(\n 'name' => str_replace(BASEPATH, '/', $file),\n 'size' => $this->getReadableFileSize($size)\n );\n\n $fileTotals['size'] += $size;\n\n if($size > $fileTotals['largest']) $fileTotals['largest'] = $size;\n }\n\n $fileTotals['size'] = $this->getReadableFileSize($fileTotals['size']);\n $fileTotals['largest'] = $this->getReadableFileSize($fileTotals['largest']);\n\n $this->output['files'] = $fileList;\n $this->output['fileTotals'] = $fileTotals;\n }", "static function AJAX_Scan() {\n\t\t$list = RecursiveScanDir(__DIR__);\n\t\tusort($list, \"strnatcasecmp\");\n\t\t\n\t\t// No files?\n\t\tif (!$list || !count($list)) die(\"No .php files located in this<br />folder and/or subfolders\");\n\t\t\n\t\t// For each file we'll present something nice\n\t\t$out = \"\";\n\t\tforeach($list as $file) {\n\t\t\t\n\t\t\t// If Mode is set to 1, we need to parse the file and check the completion\n\t\t\t$analysis = \"\";\n\t\t\tif ($_POST['Mode']) {\n\t\t\t\t$analysis = DocBlock::AnalyzeFile($file);\n\t\t\t}\n\t\t\t\n\t\t\t$out .= \"\n\t\t\t\t$analysis<a href='#' data-filename='\".rawurlencode($file).\"' class='filelink'>$file</a><br />\n\t\t\t\";\n\t\t}\n\t\t\n\t\t// Ouptut\n\t\techo $out;\n\t\t\n\t\t// Exit \"Gracefully\"\n\t\texit(0);\n\t}", "public function run() {\r\n\t\t$i = 1;\r\n\t\twhile ($i < self::NBR_OF_FILES) {\r\n\t\t\t$this->explore_path[0] = $this->get_path(0, $i);\r\n\t\t\t$j = 0;\r\n\t\t\twhile ($j < self::NBR_OF_FILES) {\r\n\t\t\t\t$this->explore_path[1] = $this->get_path(1, $j);\r\n\t\t\t\t$k = 0;\r\n\t\t\t\twhile ($k < self::NBR_OF_FILES) {\r\n\t\t\t\t\t$this->explore_path[2] = $this->get_path(2, $k);\r\n\t\t\t\t\tif (is_numeric(file_get_contents(self::FULL_URL.implode(\"\", $this->explore_path).'README')[0])) {\r\n\t\t\t\t\t\techo \"flag : \".file_get_contents(self::FULL_URL.implode(\"\", $this->explore_path).'README'). \"was found at path \".self::FULL_URL.implode(\"\", $this->explore_path);\r\n\t\t\t\t\t\treturn (0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$k++;\r\n\t\t\t\t}\r\n\t\t\t\t$j++;\r\n\t\t\t}\r\n\t\t\t$i++;\r\n\t\t}\r\n\t}", "public function run(){\r\n\t\t\t// initialize\r\n\t\t\t$this->_reporter->init();\r\n\t\t\t$this->_start_listening();\r\n\t\t\t// load\r\n\t\t\tforeach($this->_files as $file){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinclude_once($file);\r\n\t\t\t\t}catch(Exception $e){\r\n\t\t\t\t\t$this->_reporter->handle_exception($e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$ignore = new Testcaser_Testase(null);\r\n\t\t\t$ignore = get_class_methods($ignore);\r\n\t\t\t// run\r\n\t\t\tforeach(get_declared_classes() as $class){\r\n\t\t\t\tif(is_subclass_of($class, 'Testcaser_Testase')){\r\n\t\t\t\t\t$inst = new $class($this->_reporter);\r\n\t\t\t\t\tforeach(get_class_methods($inst) as $mtd){\r\n\t\t\t\t\t\tif(!in_array($mtd, $ignore))$inst->$mtd();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// finalize\r\n\t\t\t$this->_stop_listening();\r\n\t\t\t$this->_reporter->fini();\r\n\t\t\treturn $this->_reporter->result();\r\n\t\t}", "private function loadFiles()\n {\n $finder = new Finder();\n\n foreach (Config::get('routing_dirs') as $directory) {\n $finder\n ->files()\n ->name('*.yml')\n ->in($directory)\n ;\n\n foreach ($finder as $file) {\n $resource = $file->getRealPath();\n $this->routes = array_merge($this->routes, Yaml::parse(file_get_contents($resource)));\n }\n }\n }", "function processFiles($itemnumber, $aOCRData, $aDirectories, $sLogFile)\r\n{\r\n\t$aResults = array();\r\n\t$htmdirectory = $aDirectories['htm'];\r\n\t//$tifdirectory = $aDirectories['tif'];\r\n\t$ocrdonedirectory = $aDirectories['postocr'];\r\n\t$skippeddirectory = $aDirectories['skipped'];\r\n\t$readydirectory = $aDirectories['ready'];\r\n\r\n\t$tifdirectory = $ocrdonedirectory;\r\n\r\n\t//check if a directory for this itemnumber exists; if not, create it\r\n\t$itemdirectory = $readydirectory . '\\\\' . $itemnumber . '\\\\';\r\n\techo \"itemdir is $itemdirectory <br><br>\\n\";\r\n\r\n\tif (!(@opendir($itemdirectory))) {\r\n\t\ttry {\r\n\t\t\tmkdir($itemdirectory, 0755);\r\n\t\t}\r\n\t\tcatch (Exception $e) {\r\n\t\t\techo 'could not create a directory for this item ' . \"\\n\";\r\n\t\t\t$warning = 'Het systeem kon geen directory maken om de bestanden te plaatsen ' . \"\\n\";\r\n\t\t\t$lfh = fopen($sLogFile, 'a');\r\n\t\t\t$errorline = date(\"Y m d H:m\") . $warning;\r\n\t\t\tfwrite($lfh, $errorline);\r\n\t\t\tfclose($lfh);\r\n\r\n\t\t\t$aResults['error'] = $warning;\r\n\t\t\treturn $aResults;\r\n\t\t}\r\n\t}\r\n\r\n\t//for each page in the item: process htm and tif file\r\n\tforeach ($aOCRData as $sScannumber=>$bOcr) {\r\n\t\t$filenamebase = $itemnumber . sprintf(\"%04d\", $sScannumber);\r\n\r\n //process htm and tif file\r\n\t\tif ($bOcr == '1') {\r\n\t\t\t//update htm and write updated file to Ready\r\n\r\n $htmfile = $htmdirectory . '\\\\' . $filenamebase . '.htm';\r\n\t\t\t$contents = file_get_contents($htmfile);\r\n\t\t\t$markedup = '';\r\n \t\t$endhead = '/<\\/head>/i';\r\n \t\t$newmeta = '<meta name=\"bookid\" content=\"' . $itemnumber . '\">' . \"\\n\" . '</head>';\r\n \t\t$markedup = preg_replace($endhead, $newmeta, $contents);\r\n\r\n\t\t\t$newfile = $itemdirectory. sprintf(\"%04d\", $sScannumber) . '.htm';\r\n\t\t\t//echo 'updating text to ' . $newfile . \"\\n\";\r\n\t\t\t$updateresult = file_put_contents($newfile, $markedup);\r\n\t\t\t//some checking on result?\r\n\r\n\r\n\t\t\t//remove old htm file\r\n\t\t\t//drastic way of removing file, as simple unlink will not always work\r\n\t\t\twhile (is_file($htmfile) == TRUE) {\r\n\t\t\t\tchmod($htmfile, 0666);\r\n\t\t\t\tunlink($htmfile);\r\n\t\t\t}\r\n\r\n\t\t\t//move tif file to Ready\r\n\t\t\t$tiffile = $tifdirectory . '\\\\' . $filenamebase . '.tif';\r\n\t\t\t$destination = $itemdirectory . '\\\\' . $filenamebase . '.tif';\r\n\t\t\t//echo 'move ocred from ' . $tiffile . 'to ' . $destination . \"<br>\\n\";\r\n\t\t\t$result = @rename($tiffile, $destination);\r\n\t\t\t//check on result\r\n\t\t\tif ($result != 1) {\r\n\t\t\t\t$lfh = fopen($sLogFile, 'a');\r\n\t\t\t\t$errorline = date(\"Y m d H:m \") . \" kon niet schrijven naar $destination <br>\\n\";\r\n\t\t\t\tfwrite($lfh, $errorline);\r\n\t\t\t\tfclose($lfh);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse { //no htm, so just move tif file\r\n $tiffile = $skippeddirectory . '\\\\' . $filenamebase . '.tif';\r\n $destination = $itemdirectory . '\\\\' . $filenamebase . '.tif';\r\n $result = 'b';\r\n\r\n //make sure the tif file exists\r\n if (!(file_exists($tiffile))) {\r\n $aResults['message'] = 'Het boek is niet compleet ik mis ' . $filenamebase . '.tif';\r\n\t\t\t$aResults['result'] = '0';\r\n }\r\n else {\r\n\t\t\t$result = @rename($tiffile, $destination);\r\n\t\t\t//echo 'move from ' . $tiffile . ' to ' . $destination . ' - ' . $result . \"<br>\\n\";\r\n\r\n\t\t\t//check on result\r\n\t\t\tif ($result != 1) {\r\n $lfh = fopen($sLogFile, 'a');\r\n $errorline = date(\"Y m d H:m \") . \" kon niet schrijven naar $destination <br> \\n\";\r\n fwrite($lfh, $errorline);\r\n fclose($lfh);\r\n\t\t\t}\r\n }\r\n\t\t}\r\n\t}\r\n\r\n\treturn $aResults;\r\n}", "public function find_tests()\n {\n $command = \"find \" . $this->directory_path;\n if (!$this->recursive) {\n $command .= \" -maxdepth 1\";\n }\n $src_files = preg_split('/\\s+/', shell_exec($command . \" | grep .src$\"), -1, PREG_SPLIT_NO_EMPTY);\n $out_files = preg_split('/\\s+/', shell_exec($command . \" | grep .out$\"), -1, PREG_SPLIT_NO_EMPTY);\n $rc_files = preg_split('/\\s+/', shell_exec($command . \" | grep .rc$\"), -1, PREG_SPLIT_NO_EMPTY);\n $in_files = preg_split('/\\s+/', shell_exec($command . \" | grep .in$\"), -1, PREG_SPLIT_NO_EMPTY);\n\n foreach ($src_files as $src) {\n $test = new TestRepresentation();\n $base_name = preg_replace(\"/.src$/\", \"\", $src, 1);\n if (!in_array($base_name . \".out\", $out_files)) {\n touch($base_name . \".out\");\n }\n if (!in_array($base_name . \".rc\", $rc_files)) {\n touch($base_name . \".rc\");\n $rc_file = fopen($base_name . \".rc\", \"w\");\n fprintf($rc_file, \"0\");\n }\n if (!in_array($base_name . \".in\", $in_files)) {\n touch($base_name . \".in\");\n }\n $test->set_name($base_name);\n $this->add_test($test);\n }\n }", "private function set_files()\n\t\t{\n\t\t\t$this->files = Filesystem::ls(PATH_POSTS, '*', 'xml', false, false, true);\n\t\t\t$this->files_count = count( $this->files );\n\t\t}", "public static function collect()\n {\n // the object, scan the files in the achievement directory and\n // preload the models for subsequent use.\n if (is_null(self::$modelFiles)) {\n $fileBucket = scandir(app_path('Models' . DIRECTORY_SEPARATOR . 'Achievements'));\n $files = array_diff($fileBucket, ['.', '..', 'Achievement.php']);\n self::$modelFiles = array_map(function($file) {\n $filename = basename($file, '.php');\n return self::find($filename);\n }, $files);\n\n // Reset index\n self::$modelFiles = array_values(self::$modelFiles);\n }\n\n return self::$modelFiles;\n }", "private function _htmlFile() {\n\t\tif ($this->is_search) { //on search mode\n\t\t\n\t\t\tif (empty($this->founds)) {\n\t\t\t\treturn '<div class=\"cfind-div cfind-message\">No content found</div>';\n\t\t\t}\n\t\t\t\n\t\t\t$html = '';\n\t\t\t\n\t\t\t//first : folder items\n\t\t\tforeach ((array) $this->founds AS $key => $val) {\n\t\t\t\tif (g($val, 'type') != 'folder') continue;\n\t\t\t\t$html .= $this->_listFolder($val);\n\t\t\t}\n\t\t\t\n\t\t\t//second : file items\n\t\t\tforeach ((array) $this->founds AS $key => $val) {\n\t\t\t\tif (g($val, 'type') != 'file') continue;\n\t\t\t\t$html .= $this->_listFile($val);\n\t\t\t}\n\t\t\t\n\t\t\treturn $html;\n\t\t}\n\t\n\t\t$path = g($this->conf, 'path');\n\t\t\n\t\t$rpath = $this->_path($path);\n\t\tif (!file_exists($rpath) || !is_dir($rpath)) return '';\n\t\t\n\t\t$dir = $files = array();\n\t\t$hnd = opendir($rpath);\n\t\twhile ($read = readdir($hnd)) {\n\t\t\tif ($read == '.' || $read == '..') continue;\n\t\t\t\n\t\t\t$mypath = $this->_sanitize($path.'/'.$read);\n\t\t\tif (is_dir($this->_path($mypath)))\n\t\t\t\tarray_push($dir, ['name' => $read, 'time' => filemtime($rpath.'/'.$read)]);\n\t\t\telse {\n\t\t\t\tif (g($_GET, 'ext')) {\n\t\t\t\t\t$ext = explode(',',str_replace(' ', '', g($_GET, 'ext')));\n\t\t\t\t\n\t\t\t\t\tif (!in_array(strtolower(pathinfo($read, PATHINFO_EXTENSION)), $ext))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tarray_push($files, ['name' => $read, 'time' => filemtime($rpath.'/'.$read)]);\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\tusort($files,function($a,$b) { return $b['time'] - $a['time']; });\n\t\t$files = array_column($files,'name');\n\t\t\n\t\tusort($dir,function($a,$b) { return $b['time'] - $a['time']; });\n\t\t$dir = array_column($dir,'name');\n\t\t\n\t\tclosedir($hnd);\n\t\t\n\t\t$html = '';\n\t\t\n\t\t//first : folder items\n\t\tforeach ((array) $dir AS $key => $val) {\n\t\t\t$html .= $this->_listFolder(['path' => $path, 'name' => $val]);\n\t\t}\n\t\t\n\t\t//second : file items\n\t\tforeach ((array) $files AS $key => $val) {\n\t\t\t$html .= $this->_listFile(['path' => $path, 'name' => $val]);\n\t\t}\n\t\t\n\t\tif (empty($html)) return '<div class=\"cfind-div cfind-message\">Folder is empty</div>';\n\t\t\t\n\t\treturn $html;\n\t}", "public function test_scan_files()\n {\n $content = array('.gitignore','.htaccess','index.php','README');\n $object = Directory::factory(ROOT);\n $res = $object->scan(Directory::SORT_ASC, Directory::SCAN_FILES);\n \n $this->assertEquals(count($content), count($res));\n foreach($res as $path=>$dir){\n $this->assertTrue(in_array($dir->get_base_name(), $content));\n $this->assertInstanceOf('\\Kaili\\File', $dir);\n }\n }", "public function process()\n {\n $allChunkFiles = glob($this->directoryPath);\n $now = now()->toDateTimeString();\n\n foreach ($allChunkFiles as $key => $chunkPart) {\n $this->batch->add(new ProcessCsvZones($chunkPart, $now));\n }\n }", "protected function buildFileAndDirectoryListing()\n {\n $collection = new Collection;\n $files = $this->scanFiles($this->currentDir);\n $thumbnails = $this->buildThumbnails($files);\n $directories = $this->scanDirectory($this->currentDir);\n\n if ($this->getRootDir() <> $this->currentDir) {\n $back_directory = implode('/', explode('/', $this->currentDir, -1));\n $item = [];\n $item['thumbnail'] = '';\n $item['filename'] = '...';\n $item['size'] = '';\n $item['type'] = 'back';\n $item['icon'] = 'fa-reply';\n $item['path'] = $this->currentDir;\n $item['url'] = '?folder=' . $back_directory;\n $item['delete'] = current_user()->can('media.delete');\n $item['select'] = current_user()->can('media.view');\n $collection->add($item);\n }\n\n foreach ($directories as $directory) {\n $directory_name = explode('/', $directory);\n $directory_name = array_pop($directory_name);\n\n $item = [];\n $item['thumbnail'] = '';\n $item['filename'] = $directory_name;\n $item['path'] = $directory;\n $item['size'] = '';\n $item['type'] = 'directory';\n $item['icon'] = 'fa-folder';\n $item['url'] = '?folder=' . $directory;\n $item['delete'] = current_user()->can('media.delete');\n $item['select'] = current_user()->can('media.view');\n\n $collection->add($item);\n }\n\n foreach ($files as $path) {\n $item = [];\n $parts = explode('/', $path);\n $filename = array_pop($parts);\n $size = Storage::size($path);\n $icon = file_ext_to_icon(File::extension($path));\n\n $item['type'] = 'file';\n $item['icon'] = $icon;\n $item['thumbnail'] = '';\n if (file_can_have_thumbnail($path)) {\n $item['type'] = 'image';\n $item['icon'] = 'fa-image';\n $item['thumbnail'] = $thumbnails[$path];\n }\n\n $item['filename'] = $filename;\n $item['size'] = $size;\n $item['url'] = Storage::url($path);\n $item['path'] = $path;\n $item['delete'] = current_user()->can('media.delete');\n $item['select'] = current_user()->can('media.view');\n $collection->add($item);\n }\n\n return $collection;\n }", "protected function collectInformation() {}", "private function collectAllData()\n {\n $this->getParsedHeader();\n $this->getServerConfig();\n $this->getPageTitle();\n $this->getLanguage();\n $this->getCharset();\n $this->getHeadingsCount();\n $this->getCanonicalLINKS();\n $this->getAllLinksData();\n }", "public function collectEzLegacyFiles()\r\n {\r\n $folder = array($this->app_root.'/../ezpublish_legacy/settings/', $this->app_root.'/../ezpublish_legacy/settings/override');\r\n $files_found = $this->findFiles($folder, array(\"ini\", \"php\"));\r\n\r\n if($files_found)\r\n $this->file_list = array_merge($this->file_list, $files_found);\r\n $this->filterZipfileList();\r\n\r\n }", "public function run(){\n ini_set('memory_limit', '-1');\n /*\n // REGULAR AUTHOR BATCH PROCESSING\n // Load authors names in csv file to the DB\n (new PopulateAuthorList())->populate($this->authorsToSeachCsvFilePath);\n \n // process authors added\n (new ExtractAcademicsData())->processBatch();\n \n */\n (new StatsDao())->calculateStats();\n }", "public function indexCrawledDocuments() {\n\t\twhile ( $document = $this->oDbr->fetchObject( $this->documentsDb ) ) {\n\t\t\t$this->count++;\n\t\t\tif ( !$this->oMainControl->bCommandLineMode ) set_time_limit( $this->iTimeLimit );\n\n\t\t\tif ( $this->doesLinkedPathFilterMatch( $document->el_to ) ) continue;\n\n\t\t\t$path = urldecode( $document->el_to );\n\t\t\t$path = str_replace( \"file:///\", \"\", $path );\n\t\t\t$fileInfo = new SplFileInfo( $path );\n\t\t\tif ( !$fileInfo->isFile() ) continue;\n\n\t\t\t$filename = explode( '/', $path );\n\t\t\t$filename = array_pop( $filename );\n\n\t\t\tif ( $this->sizeExceedsMaxDocSize( $fileInfo->getSize(), $filename ) ) continue;\n\n\t\t\t$ext = preg_split( '#[/\\\\.]+#', $path );\n\t\t\t$ext = strtolower( array_pop( $ext ) );\n\t\t\t$docType = $this->mimeDecoding( $ext ); // really needed for file extensions? or is it a relict from mw images (repo)\n\t\t\tif ( !$this->checkDocType( $docType, $filename ) ) continue;\n\n\t\t\t$time = @filemtime( urldecode( $path ) );\n\t\t\t$date = date( \"YmdHis\", $time );\n\n\t\t\tif ( $this->checkExistence( $path, 'external', $date, $filename ) ) continue;\n\n\t\t\t$fileRealPath = $fileInfo->getRealPath();\n\t\t\t$fileText = $this->getFileText( $fileRealPath, $filename );\n\t\t\t$doc = $this->makeLinkedDocument( $docType, $filename, $fileText, $path, $date );\n\t\t\t$this->writeLog( $path );\n\t\t\tif ( $doc ) {\n\t\t\t\t// mode and ERROR_MSG_KEY are only passed for the case when addDocument fails\n\t\t\t\t$this->oMainControl->addDocument( $doc, $this->mode, self::S_ERROR_MSG_KEY );\n\t\t\t}\n\t\t}\n\t}", "protected function scanArchive()\n {\n $information = $this->archive->getArchiveInformation();\n $this->files = $information->files;\n $this->compressedFilesSize = $information->compressedFilesSize;\n $this->uncompressedFilesSize = $information->uncompressedFilesSize;\n $this->filesQuantity = count($information->files);\n }", "public function find($file);", "private function _extractFiles() \n\t{\n\t\t$entries = $this->getAllTags('entry');\n\t\t$author = null;\n\t\tforeach($entries as $entry) {\n\t\t\t$file = new SBTFile();\n\t\t\t\n\t\t\tforeach ($entry as $item) {\n\t\t\t\tif ($item['tag'] == 'td:uuid') {\n\t\t\t\t\t$file->setFileId($item['value']);\n\t\t\t\t} else if ($item['tag'] == 'td:label') {\n\t\t\t\t\t$file->setLabel($item['value']);\n\t\t\t\t} else if ($item['tag'] == 'td:selfUrl') {\n\t\t\t\t\t$file->setSelfUrl($item['value']);\n\t\t\t\t} else if ($item['tag'] == 'content') {\n\t\t\t\t\t$file->setDownloadUrl($item['attributes']['src']);\n\t\t\t\t} else if ($item['tag'] == 'td:objectTypeName') {\n\t\t\t\t\t$file->setType($item);\n\t\t\t\t} else if ($item['tag'] == 'category') {\n\t\t\t\t\t$file->setCategory($item);\n\t\t\t\t} else if ($item['tag'] == 'td:totalMediaSize') {\n\t\t\t\t\t$file->setSize($item);\n\t\t\t\t} else if ($item['tag'] == 'link') {\n\t\t\t\t\tif (isset($item['attributes']['rel']) && $item['attributes']['rel'] == 'edit-media') {\n\t\t\t\t\t\t$file->setEditMediaLink($item['attributes']['href']);\n\t\t\t\t\t} else if (isset($item['attributes']['href']) && $item['attributes']['rel'] == 'edit') {\n\t\t\t\t\t\t$file->setEditLink($item['attributes']['href']);\n\t\t\t\t\t} else if (isset($item['attributes']['href']) && $item['attributes']['rel'] == 'thumbnail') {\n\t\t\t\t\t\t$file->setThumbnailUrl($item['attributes']['href']);\n\t\t\t\t\t}\n\t\t\t\t} else if ($item['tag'] == 'author') {\n\t\t\t\t\tif ($item['type'] == 'open') {\n\t\t\t\t\t\t$author = array('tag' => 'author');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$file->setAuthor($author);\n\t\t\t\t\t\t$author = null;\n\t\t\t\t\t}\n\t\t\t\t} else if ($author != null) {\n\t\t\t\t\tif ($item['tag'] == 'name') {\n\t\t\t\t\t\t$author['name'] = $item['value'];\n\t\t\t\t\t} else if ($item['tag'] == 'snx:userid') {\n\t\t\t\t\t\t$author['userid'] = $item['value'];\n\t\t\t\t\t} else if ($item['tag'] == 'snx:orgId') {\n\t\t\t\t\t\t$author['orgId'] = $item['value'];\n\t\t\t\t\t} else if ($item['tag'] == 'snx:orgName') {\n\t\t\t\t\t\t$author['orgName'] = $item['value'];\n\t\t\t\t\t} else if ($item['tag'] == 'snx:userState') {\n\t\t\t\t\t\t$author['userState'] = $item['value'];\n\t\t\t\t\t}\n\t\t\t\t} else if ($item['tag'] == 'title') {\n\t\t\t\t\t$file->setTitle($item['value']);\n\t\t\t\t} \n\t\t\t}\n\t\t\tarray_push($this->files, $file);\n\t\t}\n\t}", "public function initFiles()\n\t{\n\t\tif ($this->collFiles === null) {\n\t\t\t$this->collFiles = array();\n\t\t}\n\t}", "public function analyzeMergesAndConflicts()\n {\n $this->logManager->logMessage(lang('Revision.analyzeMergesAndConflicts'));\n\n $mc = \\count($this->fileManager->mergedFiles);\n $cc = array_reduce($this->fileManager->conflicts, static function ($carry, $item) {\n $carry += \\count($item);\n\n return $carry;\n }, 0);\n\n $ms = 1 === $mc ? lang('Revision.fileSingular') : lang('Revision.filePlural');\n $cs = 1 === $cc ? lang('Revision.fileSingular') : lang('Revision.filePlural');\n\n $this->logManager->logMessage([\n lang('Revision.mergedFilesAfterConsolidation', [$mc, $ms]),\n lang('Revision.conflictingFilesAfterConsolidation', [$cc, $cs]),\n ]);\n }", "public function processIncludes() {}", "protected function scanFiles(array $paths): void\n {\n // Get current path and display section title\n $path = current($paths);\n $this->getOutputStyle()->section('Analysing: ' . $path);\n\n // Analyses options\n $executeAll = $this->hasOptionsAllOrNone(...array_keys($this->analyses));\n\n // Analyse files within the path\n foreach ($this->analyses as $option => $analyse) {\n // Skip unwanted analyse\n if (!$executeAll && !$this->option($option)) {\n continue;\n }\n\n $callback = $title = '';\n extract($analyse, EXTR_OVERWRITE);\n\n // Is it composer.lock file\n $isComposerLock = strpos($path, 'composer.lock');\n $hasComposerLock = file_exists(rtrim($path, '/') . '/composer.lock');\n\n // Skip analyseSecurityChecker if path is not for composer.lock\n // else, Skip all other analysers if the path if for composer.lock\n if ('analyseSecurityChecker' === $callback && false === $isComposerLock && !$hasComposerLock) {\n continue;\n }\n if ('analyseSecurityChecker' !== $callback && false !== $isComposerLock) {\n continue;\n }\n\n // Title\n $this->getOutputStyle()->block('[ ' . $title . ' ]', null, 'fg=magenta');\n\n // Analyse output\n $this->{$callback}($path);\n }\n\n // Move to the next parameter\n if (next($paths)) {\n $this->scanFiles($paths);\n }\n }", "public function createNewContent()\n {\n $files = array_diff(scandir($this->config->pathToEntries), ['.', '..']);\n foreach ($files as $file) {\n $this->parseDailyEntry($file);\n }\n\n foreach ($this->entries as $month => $monthlyEntries) {\n $this->writeParsedEntriesPerMonth($month, $monthlyEntries);\n }\n }", "private function loadContent() {\n\t\t$expression =\n\t\t\t'/sunflower-'. // match only right files\n\t\t\t'(\\d+\\.\\d+\\w?)[\\.-](\\d+)'. // version\n\t\t\t'(?:-(\\d)+)?'. // package build number\n\t\t\t'(?:[\\.-](all|any|noarch|i386|amd64))?(?:\\.([\\w\\d]+))?'. // architecture and os\n\t\t\t'(\\.[\\w\\d\\.]+)/iu'; // extension\n\n\t\t// get files from directory\n\t\t$data = array();\n\t\t$files = scandir($this->file_path);\n\t\tforeach ($files as $file_name) {\n\t\t\t$matched = preg_match($expression, $file_name, $matches) == 1;\n\n\t\t\tif ($matched) {\n\t\t\t\t$build = $matches[2];\n\n\t\t\t\t// create storage array for build number\n\t\t\t\tif (!isset($data[$build]))\n\t\t\t\t\t$data[$build] = array();\n\n\t\t\t\t// treat different extensions differently\n\t\t\t\tswitch($matches[6]) {\n\t\t\t\t\tcase '.tgz.sig':\n\t\t\t\t\tcase '.deb.sig':\n\t\t\t\t\tcase '.rpm.sig':\n\t\t\t\t\t\t$key_name = substr($file_name, 0, strlen($file_name) - 4);\n\n\t\t\t\t\t\t// make sure storage array exists\n\t\t\t\t\t\tif (!isset($data[$build][$key_name]))\n\t\t\t\t\t\t\t$data[$build][$key_name] = array();\n\n\t\t\t\t\t\t// store signature to file name\n\t\t\t\t\t\t$data[$build][$key_name]['signature'] = url_GetFromFilePath($this->file_path.'/'.$file_name);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '.tgz.sha256':\n\t\t\t\t\tcase '.deb.sha256':\n\t\t\t\t\tcase '.rpm.sha256':\n\t\t\t\t\t\t$key_name = substr($file_name, 0, strlen($file_name) - 7);\n\n\t\t\t\t\t\t// make sure storage array exists\n\t\t\t\t\t\tif (!isset($data[$build][$key_name]))\n\t\t\t\t\t\t\t$data[$build][$key_name] = array();\n\n\t\t\t\t\t\t// store signature to file name\n\t\t\t\t\t\t$data[$build][$key_name]['hash'] = file_get_contents($this->file_path.'/'.$file_name);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// make sure storage array exists\n\t\t\t\t\t\tif (!isset($data[$build][$file_name]))\n\t\t\t\t\t\t\t$data[$build][$file_name] = array();\n\n\t\t\t\t\t\t// get storage array for easier access\n\t\t\t\t\t\t$file_data = $data[$build][$file_name];\n\n\t\t\t\t\t\t// populate parameters\n\t\t\t\t\t\t$file_data['url'] = url_GetFromFilePath($this->file_path.'/'.$file_name);\n\t\t\t\t\t\t$file_data['version'] = $matches[1];\n\t\t\t\t\t\t$file_data['build'] = $matches[2];\n\t\t\t\t\t\t$file_data['package_build'] = $matches[3];\n\t\t\t\t\t\t$file_data['architecture'] = $matches[4];\n\t\t\t\t\t\t$file_data['platform'] = $matches[5];\n\t\t\t\t\t\t$file_data['extension'] = $matches[6];\n\n\t\t\t\t\t\t// store data array back to main array\n\t\t\t\t\t\t$data[$build][$file_name] = $file_data;\n\n\t\t\t\t\t\t// store version to reference list\n\t\t\t\t\t\t$this->version_list[$build] = $matches[1];\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// sort version list\n\t\tkrsort($this->version_list);\n\n\t\t// store parsed data\n\t\t$this->file_list = $data;\n\t}", "public function analyze(): void;", "public function files() {\n\t\t$files = $this->ApiFile->fileList($this->path);\n\t\t$this->set('files', $files);\n\t}", "public static function organizeFiles(): void\n\t{\n\t\t$files = [];\n\n\t\t// named file set\n\t\tforeach ($_FILES as $name => $info) {\n\t\t\t$files_count = count($info['name']);\n\t\t\t$files[$name] = array_fill(0, $files_count, []);\n\n\t\t\t// file in an info field\n\t\t\tfor ($i = 0; $i < $files_count; $i++) {\n\t\t\t\t// info field\n\t\t\t\tforeach ($info as $key => $values)\n\t\t\t\t\t$files[$name][$i][$key] = $values[$i];\n\t\t\t}\n\t\t}\n\n\t\t// update files\n\t\t$_FILES = $files;\n\t}", "function filewalk($file, $search, $counter, $webpath) {\n if (strtolower(substr($file, stripos($file, \".htm\"))) == \".htm\"\n || strtolower(substr($file, stripos($file, \".html\"))) == \".html\"\n || strtolower(substr($file, stripos($file, \".asp\"))) == \".asp\"\n || strtolower(substr($file, stripos($file, \".php\"))) == \".php\") {\n $all = file_get_contents($file);\n $body = substr($all, stripos($all,\"<body\"),stripos($all,\"</body>\") - stripos($all,\"<body\"));\n $body = preg_replace('/<br \\/>/i', ' ', $body);\n $body = preg_replace('/<br>/i', ' ', $body);\n $body = compress($body,\"<noscript\",\"</noscript>\");\n $body = compress($body,\"<script\",\"</script>\");\n $body = compress($body,\"<iframe\",\"</iframe>\");\n $body = compress($body,\"<noframe\",\"</noframe>\");\n $body = strip_tags($body);\n $body = html_entity_decode($body, ENT_QUOTES);\n $body = preg_replace('/\\s+/', ' ', $body);\n // Scans and displays the results\n if (stripos($body, $search)) {\n $title = substr($all, stripos($all,\"<title>\") + 7,stripos($all,\"</title>\") - stripos($all,\"<title>\") - 7);\n $title = html_entity_decode($title, ENT_QUOTES);\n $title = preg_replace('/\\s+/', ' ', $title); \n echo '<p><a style=\"color:#202073;\" href=\"' . $file . '\">' . $title . '</a></br>';\n echo '<span id=\"webpath\">' . $webpath . substr($file, stripos($file, \"/\")) . '</span><br />';\n // echo textpart($body, $search) .. '</p>';\n $counter = $counter + 1;\n }\n }\n return $counter;\n}", "public function collectQuestions()\r\n {\r\n if ($this->questionLoadingFailed()) {\r\n die(\"Question is Not Loaded Error!\");\r\n }\r\n\r\n foreach ($this->questionInfo->items as $question) {\r\n\r\n $questionInfo = $this->getSingleQuestionInfo($question);\r\n\r\n $this->fileContent[] = $this->formatOfQuestion($questionInfo);\r\n }\r\n\r\n return $this;\r\n }", "public function perform()\n {\n $docToHtmlPlugin = new DocToHtmlPlugin;\n $fileTable = $this->_db->getTable('File');\n\n $select = $this->_db->select()\n ->from($this->_db->File)\n ->where('mime_type IN (?)', $docToHtmlPlugin->getPdfMimeTypes());\n\n // Iterate all docx file records.\n $pageNumber = 1; $spleen = '';\n while ($files = $fileTable->fetchObjects($select->limitPage($pageNumber, 50)))\n {\n foreach ($files as $file)\n {\n $source_file = FILES_DIR. '/'. $file->getStoragePath();\n \n file_put_contents('/tmp/bleent16', $source_file);\n \n $html = $docToHtmlPlugin->pandoc2Html5($source_file);\n $fragment_filename = $file['original_filename']. '.shtml';\n file_put_contents(DOCTOHTML_FILES_DIR. '/'. $fragment_filename, $html);\n\n/*\n $spleen .= print_r($file, true). PHP_EOL.PHP_EOL.PHP_EOL;\n // Delete any existing PDF text element texts from the file.\n $textElement = $file->getElement(\n PdfTextPlugin::ELEMENT_SET_NAME,\n PdfTextPlugin::ELEMENT_NAME\n );\n $file->deleteElementTextsByElementId(array($textElement->id));\n\n // Extract the PDF text and add it to the file.\n $file->addTextForElement(\n $textElement,\n $pdfTextPlugin->pdfToText(FILES_DIR . '/original/' . $file->filename)\n );\n $file->save();\n*/\n // Prevent memory leaks.\n release_object($file);\n }\n $pageNumber++;\n }\n// file_put_contents('/tmp/bleent10', $spleen);\n }", "public function analyzeModifications()\n {\n $this->logManager->logMessage(lang('Revision.analyzeModifications'));\n\n foreach ($this->files as $file) {\n // Compare the previous snapshot with the new snapshot from update.\n $oldCopy = $this->workspace . 'oldSnapshot' . \\DIRECTORY_SEPARATOR . $file['destination'];\n $project = $this->config->rootPath . $file['destination'];\n $doCopy = true;\n\n // If hashes are different, this can be new or modified.\n if (! FileManager::areIdenticalFiles($oldCopy, $file['origin'])\n || ($this->config->fallThroughToProject && ! FileManager::areIdenticalFiles($project, $file['origin']))\n ) {\n $newCopy = $this->workspace . 'newSnapshot' . \\DIRECTORY_SEPARATOR . $file['destination'];\n\n try {\n if (! is_file($oldCopy) || ! is_file($project)) {\n $this->fileManager->createdFiles[] = $file['destination']; // @codeCoverageIgnore\n } elseif (is_file($file['origin'])) {\n $this->fileManager->modifiedFiles[] = $file['destination'];\n } else {\n // @codeCoverageIgnoreStart\n $this->fileManager->deletedFiles[] = $file['destination'];\n $doCopy = false;\n // @codeCoverageIgnoreEnd\n }\n\n if ($doCopy) {\n $this->filesystem->copy($file['origin'], $newCopy, true);\n }\n\n // @codeCoverageIgnoreStart\n } catch (IOExceptionInterface $e) {\n $this->logManager->logMessage($e->getMessage(), 'error');\n // @codeCoverageIgnoreEnd\n }\n }\n }\n\n // Log the update results\n $cc = \\count($this->fileManager->createdFiles);\n $mc = \\count($this->fileManager->modifiedFiles);\n $dc = \\count($this->fileManager->deletedFiles);\n\n $cs = 1 === $cc ? lang('Revision.fileSingular') : lang('Revision.filePlural');\n $ms = 1 === $mc ? lang('Revision.fileSingular') : lang('Revision.filePlural');\n $ds = 1 === $dc ? lang('Revision.fileSingular') : lang('Revision.filePlural');\n\n $this->logManager->logMessage([\n lang('Revision.createdFilesAfterUpdate', [$cc, $cs]),\n lang('Revision.modifiedFilesAfterUpdate', [$mc, $ms]),\n lang('Revision.deletedFilesAfterUpdate', [$dc, $ds]),\n ]);\n }", "public function convert(): void\n {\n // go through files\n foreach ($this->getInFiles() as $file) {\n $bookmarks = $this->parse($file);\n // go through bookmarks\n foreach ($bookmarks as $name => $url) {\n // go through formats\n foreach ($this->formats as $format) {\n switch ($format) {\n case 'url':\n $contents = $this->urlContents($url);\n break;\n case 'webloc':\n $contents = $this->weblocContents($url);\n break;\n case 'desktop':\n $contents = $this->desktopContents($name, $url);\n break;\n default:\n // shouldn't be a case because of constructor validation\n break;\n }\n $this->writeFile($name, $format, $contents);\n }\n }\n }\n }", "private function convertFiles(){\n\n\t\t//Create folder in tmp for files\n\t\tmkdir('./tmp/course_files');\n\t\t$sectionCounter = 0;\n\t\n\t\t//Add section to manifest\n\t\tHelper::addIMSSection($this->manifest, $this->currentSectionCounter, $this->identifierCounter, 'Documents');\n\n\t\t$section = $this->manifest->organizations->organization->item->item[$this->currentSectionCounter];\n\t\t\n\t\t//Find all folders and documents\n\t\t$query = \"SELECT document.`path`,document.`filename`,document.`format`,document.`title` FROM document WHERE document.`course_id`=\".$this->course_id.\" ORDER BY path;\";\n\t\t$result = mysqli_query($this->link,$query);\n\t\t\n\t\twhile($data = $result->fetch_assoc())\n\t\t{\n\t\t\t//Find item level\n\t\t\t$level = substr_count($data['path'], '/') - 1;\n\n\t\t\t//If it is a file\n\t\t\tif($data['format']!='.dir')\n\t\t\t{\n\t\t\t\t$s_filename = Helper::sanitizeFilename($data['filename']);\n\t file_put_contents('./tmp/course_files/'.$s_filename, fopen($this->host.'/courses/'.$this->course['code'].'/document'.$data['path'], 'r'));\n\t\t\t\tHelper::addIMSItem($section, $this->manifest, $sectionCounter, $this->identifierCounter, $this->resourceCounter, 'file', $data, $level); \n\t\t\t}\n\t\t\t//If it is a directory\n\t\t\telse if($data['format']=='.dir')\n\t\t\t{\n\t\t\t\tHelper::addIMSLabel($section, $sectionCounter, $this->identifierCounter, $data['filename'], $level);\n\t\t\t}\n\t\t}\n\n\t\t//Proceed to next section\n\t\t$this->currentSectionCounter++;\n\t}", "public function searchAction()\n {\n $user_id = $this->getSecurityContext()->getUser()->getId();\n $drive = $this->_driveHelper->getRepository()->getDriveByUserId($user_id);\n\n $q = $this->getScalarParam('q');\n // $hits = $this->getResource('drive.file_indexer')->searchInDrive($q, $drive->drive_id);\n $hits = $this->getResource('drive.file_indexer')->search($q);\n\n echo '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />';\n echo '<strong>', $hits->hitCount, '</strong> hits<br/>';\n foreach ($hits->hits as $hit) {\n $file = $this->_driveHelper->getRepository()->getFile($hit->document->file_id);\n if (empty($file)) {\n echo 'Invalid file ID: ', $hit->document->file_id;\n }\n if ($file && $this->_driveHelper->isFileReadable($file)) {\n echo '<div>', '<strong>', $file->name, '</strong> ', $this->view->fileSize($file->size), '</div>';\n }\n }\n exit;\n }", "public function scanSourceFolders() {\n $this->addons = [];\n foreach ($this->sources as $sourceDir) {\n $this->scanSource($sourceDir);\n }\n }", "public function getAllFiles(): Collection\n {\n return $this->files;\n }", "private function processCollection() {\n\n //get the leads for this import\n $leads = \\App\\Models\\Lead::Where('lead_importid', request('import_ref'))->get();\n\n //additional processing\n foreach ($leads as $lead) {\n\n /** ----------------------------------------------\n * record assignment events and send emails\n * ----------------------------------------------*/\n $assigned_users = $this->assignedrepo->add($lead->lead_id);\n\n //notify each user (apart from the user doing the imports)\n foreach ($assigned_users as $assigned_user_id) {\n if ($assigned_user_id != auth()->id()) {\n if ($assigned_user = \\App\\Models\\User::Where('id', $assigned_user_id)->first()) {\n\n //event\n $data = [\n 'event_creatorid' => auth()->id(),\n 'event_item' => 'assigned',\n 'event_item_id' => '',\n 'event_item_lang' => 'event_assigned_user_to_a_lead',\n 'event_item_lang_alt' => 'event_assigned_user_to_a_lead_alt',\n 'event_item_content' => __('lang.assigned'),\n 'event_item_content2' => $assigned_user_id,\n 'event_item_content3' => $assigned_user->first_name,\n 'event_parent_type' => 'lead',\n 'event_parent_id' => $lead->lead_id,\n 'event_parent_title' => $lead->lead_title,\n 'event_show_item' => 'yes',\n 'event_show_in_timeline' => 'no',\n 'event_clientid' => '',\n 'eventresource_type' => 'lead',\n 'eventresource_id' => $lead->lead_id,\n 'event_notification_category' => 'notifications_new_assignement',\n ];\n //record event\n if ($event_id = $this->eventrepo->create($data)) {\n //record notification (skip the user creating this event)\n if ($assigned_user_id != auth()->id()) {\n $emailusers = $this->trackingrepo->recordEvent($data, [$assigned_user_id], $event_id);\n }\n }\n\n /** ----------------------------------------------\n * send email [assignment]\n * ----------------------------------------------*/\n if ($assigned_user_id != auth()->id()) {\n if ($assigned_user->notifications_new_assignement == 'yes_email') {\n $mail = new \\App\\Mail\\LeadAssignment($assigned_user, $data, $lead);\n $mail->build();\n }\n }\n }\n }\n }\n\n }\n }", "public function handle(AutoScanForNewFilesCommand $command): Collection\n {\n // autoScan must be set\n if (empty($command->isAutoScan())) {\n return collect();\n }\n\n // Get the files in the auto_scan directory and return an empty collection if there are none\n $files = collect($this->fileSystem->files($this->getAutoScanPath()));\n if ($files->isEmpty()) {\n return collect();\n }\n\n // Return a mapped collection of true/false. True = file processed successfully, false = error\n return $files->map(function($filepath) {\n // Basic sanitisation of file name\n $filepath = $this->sanitiseFilename($filepath);\n\n // Create an UploadedFile instance\n $uploadedFile = new UploadedFile(\n $filepath,\n basename($filepath),\n mime_content_type($filepath),\n filesize($filepath),\n UPLOAD_ERR_OK,\n true\n );\n\n // Create a File entity instance\n $file = new File();\n $file->setName(\n $this->convertRawFilenameToReadableName(basename($filepath))\n );\n\n // Try and process each file and catch exceptions and log an error but just return false to report the\n // number of failures to the console\n try {\n $this->processFile($uploadedFile, $file);\n } catch (Exception $e) {\n $this->logger->log(Logger::ERROR, \"Could not process file found in auto_scan directory\", [\n 'filepath' => $filepath,\n 'exception' => $e->getMessage(),\n 'trace' => $this->logger->getTraceAsArrayOfLines($e),\n ]);\n\n // Being extra defensive here because we're doing this in a catch block and unlink will raise an\n // E_WARNING level error on failure: @see http://php.net/manual/en/function.unlink.php\n if (file_exists($filepath)) {\n unlink($filepath);\n }\n\n return false;\n }\n\n return true;\n });\n }", "abstract public function Analyze();", "public function discoverEvents()\n {\n foreach ($this->discoverEventsWithin() as $directory) {\n if (!is_dir($directory)) {\n continue;\n }\n\n DiscoverEvents::within($directory, Application::getDocumentRoot());\n }\n }", "public function processFindReplace ()\n {\n\n if ( $this->replaceQuery ) {\n\n $this->replace ();\n\n } else {\n\n $this->find ();\n\n }\n\n }", "public abstract function Analyze();", "protected function collectChildren(): void\n {\n $this->collection = new Collection();\n foreach ($this->rawResults as $blockChildContent) {\n $this->collection->add(Block::fromResponse($blockChildContent));\n }\n }", "public function scan($filename){ }", "public function crawl(){\n\t\t\t$this->collectUrls();\n\t\t}", "protected function generate()\n {\n // first of all we will get the version, so we will later know about changes made DURING indexing\n $this->version = $this->findVersion();\n\n // get the iterator over our project files and create a regex iterator to filter what we got\n $recursiveIterator = $this->getProjectIterator();\n $regexIterator = new \\RegexIterator($recursiveIterator, '/^.+\\.php$/i', \\RecursiveRegexIterator::GET_MATCH);\n\n // get the list of enforced files\n $enforcedFiles= $this->getEnforcedFiles();\n\n // if we got namespaces which are omitted from enforcement we have to mark them as such\n $omittedNamespaces = array();\n if ($this->config->hasValue('enforcement/omit')) {\n $omittedNamespaces = $this->config->getValue('enforcement/omit');\n }\n\n // iterator over our project files and add array based structure representations\n foreach ($regexIterator as $file) {\n // get the identifiers if any.\n $identifier = $this->findIdentifier($file[0]);\n\n // if we got an identifier we can build up a new map entry\n if ($identifier !== false) {\n // We need to get our array of needles\n $needles = array(\n Invariant::ANNOTATION,\n Ensures::ANNOTATION,\n Requires::ANNOTATION,\n After::ANNOTATION,\n AfterReturning::ANNOTATION,\n AfterThrowing::ANNOTATION,\n Around::ANNOTATION,\n Before::ANNOTATION,\n Introduce::ANNOTATION,\n Pointcut::ANNOTATION\n );\n\n // If we have to enforce things like @param or @returns, we have to be more sensitive\n if ($this->config->getValue('enforcement/enforce-default-type-safety') === true) {\n $needles[] = '@var';\n $needles[] = '@param';\n $needles[] = '@return';\n }\n\n // check if the file has contracts and if it should be enforced\n $hasAnnotations = $this->findAnnotations($file[0], $needles);\n\n // create the entry\n $this->map[$identifier[1]] = array(\n 'cTime' => filectime($file[0]),\n 'identifier' => $identifier[1],\n 'path' => $file[0],\n 'type' => $identifier[0],\n 'hasAnnotations' => $hasAnnotations,\n 'enforced' => $this->isFileEnforced(\n $file[0],\n $identifier[1],\n $hasAnnotations,\n $enforcedFiles,\n $omittedNamespaces\n )\n );\n }\n }\n\n // save for later reuse.\n $this->save();\n }", "public function refreshContent() {\n while ($entry = $this->pointer->read()) {\n $path = $this->_path . DS . $entry;\n\n if (Visio\\FileSystem::fileExist($path)) {\n $this->content[$entry] = new Visio\\FileSystem\\File($path, false);\n } else if (Visio\\FileSystem::directoryExist($path)) {\n $this->content[$entry] = new Visio\\FileSystem\\Folder($path, false);\n } else {\n $this->content[$entry] = $entry;\n }\n }\n }", "public function action_tagsrecalcfiles()\n {\n $tagsArray = array();\n $allTags = Constructor_Dao_Tag::getAllTags();\n foreach($allTags as $_tag){\n $tagsArray[$_tag['crc']] = $_tag['id'];\n }\n \n $allFiles = Constructor_Dao_File::get_by_name('');\n /**\n * @var Constructor_Dao_File\n */\n $file;\n \n $sqlDelete = 'DELETE FROM `'.Constructor_Dao_Tag::$_tableItems.'` WHERE `item_type` = \"'.Constructor_Dao_Tag::ITEM_TYPE_FILE.'\"';\n DB::query(Database::DELETE, $sqlDelete)->execute();\n \n foreach($allFiles as $file){\n $tagsToAssign = array();\n $parts = explode('.', $file->title);\n $prevTagId = 0;\n foreach($parts as $part){\n $crc = sprintf(\"%u\",crc32(mb_strtolower(trim($part))));\n if (array_key_exists($crc, $tagsArray)){\n $tagId = $tagsArray[$crc];\n $tag = Constructor_Dao_Tag::get_by_id($tagId);\n if ($tag->parent_tag_id == $prevTagId){\n $tagsToAssign[] = $tag->id;\n $prevTagId = $tag->id;\n }\n }\n }\n if (!empty($tagsToAssign)){\n Constructor_Dao_Tag::removeAllTagsFromItem($file->uid, Constructor_Dao_Tag::ITEM_TYPE_FILE);\n foreach($tagsToAssign as $_tagId){\n Constructor_Dao_Tag::addTagToItem($file->uid, Constructor_Dao_Tag::ITEM_TYPE_FILE, $_tagId);\n }\n }\n }\n // all ok\n $this->json_data = array('result' => true);\n }", "private function loadMatchedCollection()\n {\n $this->matchedCollection = collect();\n\n foreach ($this->baseCollection as $key => $item)\n {\n\n $found = true;\n foreach ($this->associativePivots as $basePivot => $mergePivot)\n {\n if(!$this->mergeCollection->whereIn($mergePivot,$item->$basePivot)->first())\n {\n $found = false;\n continue 2;\n }\n }\n\n if($found){\n $this->matchedCollection->push($item);\n }\n\n }\n }", "public function loadAll()\n {\n $this->setAll(array());\n $d = dir($this->getPath());\n $this->load($d);\n $d->close();\n }", "public function __construct( $files, $review ) {\n\t\t// --- Group files by type\n\t\t// --- Run Checks against Files\n\t\t// --- Return results\n\t\t$this->files = $this->group_files( $files );\n\t\t$this->checks = $review['checks'];\n\t\t$this->analyzers = $review['analyzers'];\n\t}", "public function crawl() {\n\t\t$sDirectories = BsConfig::get( 'MW::ExtendedSearch::ExternalRepo' );\n\t\tif ( $sDirectories === '' ) return $sDirectories;\n\n\t\t$aDirectories = explode( ',', $sDirectories );\n\t\tforeach ( $aDirectories as $sDirectory ) {\n\t\t\t$sDir = trim ( $sDirectory );\n\t\t\tif( !is_dir( $sDir ) ) continue;\n\t\t\t$this->readInFiles( $sDir );\n\t\t}\n\t\treturn $this->aFiles;\n\t}", "public function browse_files()\n {\n // Scan file directory, render the images.\n if (is_dir($this->file_path)) {\n $files = preg_grep('/^([^.])/', scandir($this->file_path));\n return $files;\n }\n \n }", "private function recurseThroughDirectory($baseDir, $lookingFor = \"/(.*)\\.php$/i\")\n {\n $results = array();\n $di = new RecursiveDirectoryIterator($baseDir);\n\n $this->output->writeLn(\"Scanning $baseDir...\");\n\n foreach (new RecursiveIteratorIterator($di) as $filename => $file) {\n if (preg_match($lookingFor, $filename)) {\n $results[] = $this->extractFrom($filename);\n }\n }\n\n return $results;\n }", "public function loadFiles()\n\t{\n\t\t$files = array();\n\t\t\n\t\t$searchPath = $this->getLocalFolder().\"/*.*\";\n\t\t$filesArray = glob($searchPath);\n\t\t\n\t\tforeach($filesArray as $file)\n\t\t{\n\t\t\t$files[] = new File($file);\n\t\t}\n\t\t\n\t\treturn $files;\n\t}", "function l10n_drupal_files_scan($source = NULL, $automated = FALSE) {\n\n // We look for projects in the working directory.\n $workdir = variable_get('l10n_server_connector_l10n_drupal_files_directory', '');\n\n if (!is_dir($workdir)) {\n drupal_set_message(t('The configured directory (%workdir) cannot be found. <a href=\"@configure\">Check your configuration</a>.', array('%workdir' => $workdir, '@configure' => url('admin/l10n_server/connectors/config/l10n_drupal/files'))));\n }\n else {\n // define a list of allowed extensions, we will use it later on file_scan_directory\n // and further regular expression buildung processing. Thanks to EugenMayer\n $allowed_file_extensions = array('.tar.gz', '.tgz');\n // build the regular expression\n foreach($allowed_file_extensions as $key => $extension) {\n // escape the file extensions for later regular expression usage\n $allowed_file_extensions[$key] = preg_quote($extension);\n }\n $file_extension_pattern = '(' . implode('|', $allowed_file_extensions) . ')$';\n\n // Packages are always .tar.gz files.\n $files = file_scan_directory($workdir, $file_extension_pattern);\n if (count($files)) {\n foreach ($files as $path => $file) {\n\n if (!l10n_drupal_is_supported_version($path)) {\n // Skip files for unsupported versions.\n continue;\n }\n\n // Get rid of $workdir prefix on file names, eg.\n // drupal-6.x-6.19.tar.gz\n // Drupal/drupal-4.6.7.tar.gz or\n // files/Ubercart/ubercart-5.x-1.0-alpha8.tar.gz.\n $path = $package = trim(preg_replace('!(^' . preg_quote($workdir, '!') . ')(.+)\\.tar\\.gz!', '\\2', $path), '/');\n\n // split the filename into parts to $filename_splitted\n // [0] = the full string\n // [1] = the subdirectory and filename with extension\n // [1] = the subdirectory and filename without extension\n // [2] = the extension .tar.gz or .tgz\n $file_splitted = array(); // ensure to be a array....\n // the regular expression pattern (i put it in a var because i can better handle it with dpm for debugging, move if you want...)\n $file_split_pattern = '!^'. preg_quote($workdir, '!') .'((.+)'. $file_extension_pattern .')!';\n preg_match( $file_split_pattern, $path, $file_splitted );\n // put the result in vars for better handling\n list($file_fullpath, $file_subpath_ext, $file_subpath, $file_extension) = $file_splitted;\n\n // redefine the path to subpath without slash at beginning\n $path = trim($file_subpath, '/');\n // same on package\n $package = trim($file_subpath, '/');\n $project_title = '';\n if (strpos($path, '/')) {\n // We have a slash, so this package is in a subfolder.\n // Eg. Drupal/drupal-4.6.7 or Ubercart/ubercart-5.x-1.0-alpha8.\n // Grab the directory name as project title.\n list($project_title, $package) = explode('/', $path);\n }\n if (strpos($package, '-')) {\n // Only remaining are the project uri and release,\n // eg. drupal-4.6.7 or ubercart-5.x-1.0-alpha8.\n list($project_uri, $release_version) = explode('-', $package, 2);\n\n l10n_drupal_save_data($project_uri, ($project_title ? $project_title : $project_uri), $release_version, trim($file_subpath_ext, '/'), filemtime($file->filename));\n }\n else {\n // File name not formatted properly.\n $result['error'] = t('File name should have project codename and version number included separated with hyphen, such as drupal-5.2.tar.gz.');\n }\n }\n }\n }\n\n $user_feedback = FALSE;\n $results = db_query_range(\"SELECT * FROM {l10n_server_release} WHERE pid IN (SELECT pid FROM {l10n_server_project} WHERE connector_module = 'l10n_drupal_files' AND status = 1) ORDER BY last_parsed ASC\", 0, variable_get('l10n_server_connector_l10n_drupal_files_limit', 1));\n while ($release = db_fetch_object($results)) {\n\n // Only parse file if something changed since we last parsed it.\n $file_name = $workdir . '/' . $release->download_link;\n\n if (file_exists($file_name)) {\n if (filemtime($file_name) > $release->last_parsed) {\n $result = l10n_drupal_parse_package($file_name, $release);\n\n // User feedback, if not automated. Log messages are already done.\n if (isset($result['error']) && !$automated) {\n $user_feedback = TRUE;\n drupal_set_message($result['error'], 'error');\n }\n elseif (isset($result['message']) && !$automated) {\n $user_feedback = TRUE;\n drupal_set_message($result['message']);\n }\n }\n else {\n if (!$automated) {\n $user_feedback = TRUE;\n drupal_set_message(t('@release was already parsed, no need to scan again.', array('@release' => $release->download_link)));\n }\n }\n }\n // Hackish update of last parsed time so other tarballs will get into the queue too.\n // @todo: work on something better for this.\n db_query(\"UPDATE {l10n_server_release} SET last_parsed = %d WHERE rid = %d\", time(), $release->rid);\n }\n if (!$automated && !$user_feedback) {\n drupal_set_message(t('No (new) local Drupal files found to scan in %workdir.', array('%workdir' => $workdir)));\n }\n\n // Ensure that a Drupal page will be displayed with the messages.\n return '';\n}", "private function includeFiles(){\n foreach($this->files as $file){\n require implode('', $file);\n $class_name = $this->getClassNameFromFileName($file);\n $this->classes[$file['name']] = new $class_name();\n }\n }", "public function scanAndConvert()\n {\n foreach ($this->getFileToConvert() as $file) {\n $output = array();\n $in = $file;\n $out = preg_replace('/.{3}$/', '', $in);\n foreach ($this->getSupportedFormat() as $ext) {\n $cmd = self::FFMPEG . \" -y -i \" . $this->inputDirectory . \"/\" . $in . \" \" . $this->outputDirectory . \"/\" . $out . $ext;\n exec($cmd, $output);\n foreach ($output as $line) {\n $this->logger->info($line);\n }\n }\n $cmd = self::RM . \" -rvf \" . $in;\n exec($cmd, $output);\n foreach ($output as $line) {\n $this->logger->info($line);\n }\n\n // update the entity\n $id = preg_replace('/-.*$/', '', $in);\n $this->updateEntity($id, $out);\n }\n }", "public function run(){\n\n $this->loadCollections();\n\n $this->loadMatchedCollection();\n $this->loadUnMatchedCollection();\n\n $this->initReport();\n\n return $this;\n }", "private function generateSearchResult()\n {\n $this->outFiles['search_results_interface'] = [\n 'file' => $this->classes['search_results_interface']['file'],\n 'code' => $this->template->getCodeFromTemplate('ddd-cqrs/Api/SearchResultInterface', [\n 'namespace' => $this->classes['search_results_interface']['info']['namespace'],\n 'class' => $this->classes['search_results_interface']['info']['class_name'],\n 'data_interface' => $this->classes['data_interface']['class'],\n ]),\n ];\n\n $this->outFiles['search_results'] = [\n 'file' => $this->classes['search_results']['file'],\n 'code' => $this->template->getCodeFromTemplate('ddd-cqrs/Model/SearchResult', [\n 'namespace' => $this->classes['search_results']['info']['namespace'],\n 'class' => $this->classes['search_results']['info']['class_name'],\n 'interface' => $this->classes['search_results_interface']['class'],\n ]),\n ];\n }", "function setFilesCollect($bool){\n\t\t$this->files_collect = $bool;\n\t\tif($bool && !is_array($this->used_files))\n\t\t\t$this->used_files = array();\n\t}", "function fileWithClassCandidates($file, array $relativeClassNames);", "public function attach_files($document) {\n $fileareas = $this->get_search_fileareas();\n\n if (!empty($fileareas)) {\n $cm = $this->get_cm($this->get_module_name(), $document->get('itemid'), $document->get('courseid'));\n\n $context = \\context_module::instance($cm->id);\n $contextid = $context->id;\n\n $fs = get_file_storage();\n $files = $fs->get_area_files($contextid, $this->get_component_name(), $fileareas, false, '', false);\n\n foreach ($files as $file) {\n $document->add_stored_file($file);\n }\n }\n\n return;\n }", "public function backgroundScan() {\n\t\t$lastPath = null;\n\t\twhile (($path = $this->cache->getIncomplete()) !== false && $path !== $lastPath) {\n\t\t\t$this->scan($path, self::SCAN_RECURSIVE, self::REUSE_ETAG);\n\t\t\t$this->cache->correctFolderSize($path);\n\t\t\t$lastPath = $path;\n\t\t}\n\t}", "public function analysis() : void\n {\n $this->strategy->analysis();\n }" ]
[ "0.6769866", "0.6471379", "0.6001935", "0.5999668", "0.59028625", "0.58156", "0.57391924", "0.5710829", "0.5695798", "0.56572455", "0.5624928", "0.56242263", "0.5584538", "0.55749923", "0.5557572", "0.5513033", "0.54700977", "0.53777933", "0.53340554", "0.53281325", "0.52866304", "0.5276583", "0.522169", "0.52061194", "0.51919854", "0.518879", "0.5127114", "0.51227874", "0.51217735", "0.5119398", "0.5112483", "0.510469", "0.51026046", "0.50822526", "0.5072243", "0.50510645", "0.5031057", "0.502529", "0.5020925", "0.5016652", "0.50110084", "0.5008395", "0.50043064", "0.4980803", "0.4976707", "0.49678087", "0.49657482", "0.4958814", "0.4956605", "0.49540108", "0.49309465", "0.4913324", "0.49054605", "0.4898042", "0.4895405", "0.48889276", "0.48831546", "0.48775116", "0.48704863", "0.48629978", "0.48617336", "0.48514146", "0.48486996", "0.4847197", "0.4822184", "0.48205578", "0.48204306", "0.48172668", "0.48139623", "0.48120362", "0.48030546", "0.48008457", "0.4792826", "0.4789324", "0.4789047", "0.4787708", "0.4784673", "0.4771945", "0.47605774", "0.47490153", "0.47291037", "0.47180298", "0.4717129", "0.4716559", "0.47108376", "0.4688955", "0.46773794", "0.46766278", "0.46562266", "0.46555042", "0.46508625", "0.46353322", "0.46345732", "0.46343717", "0.4629482", "0.46277478", "0.46258813", "0.46244", "0.46216428", "0.46176192" ]
0.65273297
1
Realiza a consulta pelo tipos de taxa TDE ou TDA
function getFiltroTiposTaxa($get = null,$where = " 1 = 1"){ $Result = ""; if(isset($get['getFiltroTipo'])){ foreach ($get['getFiltroTipo'] as $key => $value ) { switch ($value) { case 1: $where .= " AND TDE <> 0 "; break; case 2: $where .= " AND TDA <> 0 "; break; case 3: $where .= " AND TDE = 0 "; break; case 4: $where .= " AND TDA = 0 "; break; } } return $where; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function calculate_tax_filter() {\n global $edd_options;\n\n if ( isset( $edd_options['taxedd_private_token'] ) ) {\n $private_key = $edd_options['taxedd_private_token'];\n \n try { \n\n $taxtaxamo = new Taxamo( new APIClient( $private_key, 'https://api.taxamo.com' ) );\n\n $cart_items = edd_get_cart_content_details();\n\n $countrycode = \"\";\n\n $address = edd_get_customer_address();\n\n if ( isset($address['country']) && !empty($address['country']) && \"\" !== $address['country'] ) {\n $countrycode = $address['country'];\n } else {\n $ipcc = taxedd_get_country_code();\n $countrycode = $ipcc->country_code;\n }\n\n $transaction = new Input_transaction();\n $transaction->currency_code = edd_get_currency();\n $transaction->buyer_ip = $_SERVER['REMOTE_ADDR'];\n $transaction->billing_country_code = $countrycode;\n $transactionarray = array();\n $customid = \"\";\n $transaction->force_country_code = $countrycode;\n\n if ( !empty( $cart_items ) ) { \n foreach ( $cart_items as $cart_item ) {\n\n $customid++;\n $transaction_line = new Input_transaction_line();\n $transaction_line->amount = $cart_item['item_price'];\n $transaction_line->custom_id = $cart_item['name'] . $customid;\n array_push( $transactionarray, $transaction_line );\n\n }\n }\n\n $transaction->transaction_lines = $transactionarray;\n\n $resp = $taxtaxamo->calculateTax( array( 'transaction' => $transaction ) );\n\n return $resp->transaction->tax_amount;\n\n } catch ( exception $e ) {\n\n return \"\";\n }\n }\n }", "public function buscarTaxaVigente(){\r\n\t\techo \"buscarTaxa\";\r\n\t\t\r\n\t\t$sql = \"SELECT * FROM `tb_taxa` WHERE tax_status = 'S'\";\r\n\r\n\t\t$conn = new Conexao();\r\n\t\t\r\n\t\t$query = $conn->Conn();\r\n\t\t\t\r\n\t\t$resultado = $query->query($sql);\r\n\t\t\t\r\n\t\tif(!$resultado){\r\n\t\t\tdie('Consulta Inv√°lida: ' . mysql_errno());\r\n\t\t}\r\n\t\t$reg = mysqli_fetch_assoc($resultado);\r\n\r\n\t\t$taxa = $reg[\"tax_valor\"];\r\n\t\t\r\n\t\tmysqli_free_result($resultado);\r\n\t\t\r\n\t\t$conn->fecharConn();\r\n\t\t\r\n\t\treturn $taxa;\r\n\t}", "function getTaxPercenTax($id)\n\t{\n\n\n\t\t$query3=\"SELECT (ps.cgst+ps.sgst) as gst FROM `product` as p INNER JOIN product_variant as pv on pv.`ptdvar_id` = p.ptdvar_id INNER JOIN product_sub_category as ps on ps.pr_sub_id = pv.ptd_sub_catgry_id where p.product_id ='$id'\";\n\t $data3=$this->get_results( $query3 );\n\t\treturn $data3;\n\n\t}", "function getReceiptTax()\n\t{\n\t\tglobal $db;\n\n\t\t$query = 'SELECT t.tax_desc AS \"Tax\", rt.tax_rate AS \"Tax Rate\", rt.tax_value AS \"Tax Value\"\n\t\tFROM '.receipt_tax_table.' rt JOIN '.tax_table.' t USING (tax_id) \n\t\tWHERE rt.receipt_id = '.$this->receipt_id.' \n\t\tORDER BY rt.tax_sequence';\n\t\t$result = $db->query($query);\n\n\t\tif(!$result)\n\t\t{\n\t\t\t$err_info = $db->errorInfo();\n\t\t\techo $err_info[2];\n\t\t\terror_log('Function : getReceiptTax, Class : receipt, '.$err_info[2]);\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$arr = $result->fetchAll(PDO::FETCH_ASSOC);\n\t\t}\n\t\treturn $arr;\n\t}", "public function selectTaxCodes() {\n \n // query preparation\n $select = 'STEUERSATZCODE';\n $from = $this->getTableName('BHSTEUER');\n $where = '1';\n $groupBy = 'STEUERSATZCODE';\n $orderBy = 'STEUERSATZCODE';\n $limit = '';\n \n // exec query using TYPO3 DB API\n $res = $this->gsaDbObj->exec_SELECTquery($select, $from, $where, $groupBy, $orderBy, $limit);\n if ($res == false || $this->gsaDbObj->sql_num_rows($res) == 0) {\n throw new tx_pttools_exception('Query failed or returned empty result', 1, $this->gsaDbObj->sql_error());\n } \n \n // store codes in array keys\n $a_result = array();\n while ($a_row = $this->gsaDbObj->sql_fetch_assoc($res)) {\n // if enabled, do charset conversion of all non-binary string data \n if ($this->charsetConvEnabled == 1) {\n $a_row = tx_pttools_div::iconvArray($a_row, $this->gsaCharset, $this->siteCharset);\n }\n $a_result[$a_row['STEUERSATZCODE']] = array('taxRate'=>0, 'taxNote'=>'');\n }\n $this->gsaDbObj->sql_free_result($res);\n \n // query current tax rates and notes (get notes from \"old\" DB table STEUER, if this table exists in the GSA DB) for all codes\n foreach ($a_result as $taxCode=>$taxDataArr) {\n $taxDataArr['taxRate'] = $this->selectTaxRate($taxCode);\n // get note from \"old\" DB table STEUER, if this table exists in the GSA DB\n if ($this->oldTaxTableExists() == true) {\n $tmpOldTaxDataArr = $this->selectTaxDataOld($taxCode);\n $taxDataArr['taxNote'] = $tmpOldTaxDataArr['BEMERKUNG'];\n }\n $a_result[$taxCode] = $taxDataArr;\n }\n \n trace($a_result);\n return $a_result;\n \n }", "public function selectTaxRateRecords($taxCode='') {\n \n // query preparation\n $select = 'bh.NUMMER, bh.STEUERSATZCODE, bh.STEUERSATZPROZ, bh.GUELTIGABTTMMJJJJ'.\n ($this->oldTaxTableExists() == true ? ', st.BEMERKUNG AS BEMERKUNG' : '').' ';\n $from = $this->getTableName('BHSTEUER').' bh'. \n ($this->oldTaxTableExists() == true ? ' LEFT JOIN '.$this->getTableName('STEUER').' st ON bh.STEUERSATZCODE LIKE st.CODE' : '');\n $where = (empty($taxCode) ? '1' : 'STEUERSATZCODE LIKE '.$this->gsaDbObj->fullQuoteStr($taxCode, $from)).' ';\n $groupBy = 'bh.STEUERSATZCODE, bh.GUELTIGABTTMMJJJJ, bh.STEUERSATZPROZ'; // this is required due to a bug of the ERP system: it creates multiple redundant records (but with different UIDs in field NUMMER) in the DB table BHSTEUER\n $orderBy = 'bh.STEUERSATZCODE, bh.GUELTIGABTTMMJJJJ';\n $limit = '';\n \n // exec query using TYPO3 DB API\n $res = $this->gsaDbObj->exec_SELECTquery($select, $from, $where, $groupBy, $orderBy, $limit);\n if ($res == false) {\n throw new tx_pttools_exception('Query failed or returned empty result', 1, $this->gsaDbObj->sql_error());\n } \n \n // store all data in twodimensional array\n $a_result = array();\n while ($a_row = $this->gsaDbObj->sql_fetch_assoc($res)) {\n // if enabled, do charset conversion of all non-binary string data \n if ($this->charsetConvEnabled == 1) {\n $a_row = tx_pttools_div::iconvArray($a_row, $this->gsaCharset, $this->siteCharset);\n }\n $a_result[] = $a_row;\n }\n $this->gsaDbObj->sql_free_result($res);\n \n trace($a_result);\n return $a_result;\n \n }", "abstract public function getTaxType();", "function EstadoCuentaDes(){\n $this->procedimiento='obingresos.ft_periodo_venta_sel';\n $this->transaccion='OBING_AGTD_SEL';\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n $this->setCount(false);\n $this->setParametro('id_agencia','id_agencia','int4');\n //Definicion de la lista del resultado del query\n $this->captura('fecha_ini','date');\n $this->captura('fecha_fin','date');\n $this->captura('titulo','varchar');\n $this->captura('mes','varchar');\n $this->captura('fecha','date');\n $this->captura('autorizacion__nro_deposito','varchar');\n $this->captura('id_periodo_venta','int4');\n $this->captura('monto_total','numeric');\n $this->captura('neto','numeric');\n $this->captura('monto','numeric');\n $this->captura('cierre_periodo','varchar');\n $this->captura('ajuste','varchar');\n $this->captura('tipo','varchar');\n $this->captura('transaccion','varchar');\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n // var_dump($this->respuesta);exit;\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function getTaxRates() {\n // Parse XML\n $xml = \"<TaxRateGetRq></TaxRateGetRq>\\n\";\n\t\t\n // Create request and pack\n\t\t$this->createRequest($xml);\n $len = strlen($this->xmlRequest);\n $packed = pack(\"N\", $len);\n\n // Send and get the response\n fwrite($this->id, $packed, 4);\n fwrite($this->id, $this->xmlRequest);\n $this->getResponse();\n\n // Set the result\n $this->setResult($this->parseXML($this->xmlResponse));\n }", "function listarTotalesPeriodoAgencia(){\n $this->procedimiento='obingresos.ft_periodo_venta_sel';\n $this->transaccion='OBING_PERAGTOT_SEL';\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n\n\n $this->setParametro('id_periodo_venta','id_periodo_venta','int4');\n\n $this->capturaCount('total_credito_mb','numeric');\n $this->capturaCount('total_credito_me','numeric');\n $this->capturaCount('total_boletos_mb','numeric');\n $this->capturaCount('total_boletos_usd','numeric');\n $this->capturaCount('total_comision_mb','numeric');\n $this->capturaCount('total_comision_usd','numeric');\n $this->capturaCount('total_debito_mb','numeric');\n $this->capturaCount('total_debito_usd','numeric');\n $this->capturaCount('total_neto_mb','numeric');\n $this->capturaCount('total_neto_usd','numeric');\n\n\n //Definicion de la lista del resultado del query\n $this->captura('id_periodo_venta_agencia','int4');\n $this->captura('codigo_periodo','varchar');\n $this->captura('id_agencia','int4');\n $this->captura('medio_pago','varchar');\n $this->captura('mes','varchar');\n $this->captura('gestion','varchar');\n $this->captura('id_periodo_venta','int4');\n $this->captura('fecha_ini','varchar');\n $this->captura('fecha_fin','varchar');\n $this->captura('moneda_restrictiva','varchar');\n $this->captura('codigo_int','varchar');\n $this->captura('nombre','varchar');\n $this->captura('fecha_ini2','varchar');\n $this->captura('fecha_fin2','varchar');\n $this->captura('estado','varchar');\n $this->captura('total_credito_mb','numeric');\n $this->captura('total_credito_me','numeric');\n $this->captura('total_boletos_mb','numeric');\n $this->captura('total_boletos_usd','numeric');\n $this->captura('total_comision_mb','numeric');\n $this->captura('total_comision_usd','numeric');\n $this->captura('total_debito_mb','numeric');\n $this->captura('total_debito_usd','numeric');\n $this->captura('total_neto_mb','numeric');\n $this->captura('total_neto_usd','numeric');\n $this->captura('monto_mb','numeric');\n $this->captura('monto_usd','numeric');\n $this->captura('billetes','text');\n\n\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "function _ConsultarRutinasTotales()\n\t{\n\t\t\n\t\t//Este querie devuelve TODAS las rutinas ordenadas de principiante hasta avanzado.\n\t\t$query = '\n\t\tSELECT\n\t\tRut.id as id_rutina,\n\t\tRut.nb_rutina,\n\t\tRut.desc_rutina,\n\t\tRut.fh_creacion,\n\t\tUsu.nb_nombre,\n\t\tUsu.nb_apellidos,\n\t\tCat.nb_categoriarutina,\n\t\tGen.id as id_genero,\n\t\tGen.nb_tiporutina,\n\t\tcuerpo.id as id_cuerpo,\n\t\tcuerpo.nb_cuerpo,\n\t\tedad.nb_edad\n\t\tFROM sgrutinas Rut\n\t\tleft JOIN sgusuarios Usu\n\t\tON Usu.id=Rut.id_usuariocreacion\n\t\tleft JOIN sgcategoriasrutina Cat\n\t\tON Cat.id=Rut.id_categoriarutina\n\t\tLEFT JOIN sggenerosrutina Gen\n\t\tON Gen.id= Rut.id_generorutina\n\t\tLEFT JOIN sgtipocuerpo cuerpo\n\t\tON cuerpo.id = Rut.id_tipocuerpo\n\t\tLEFT JOIN sgedad edad\n\t\tON edad.id = Rut.id_edad\n\t\twhere Rut.sn_activo=1 order by id_rutina asc\n\t\t';\t\n\t\t$rutinas = $this->EjecutarTransaccionAllNoParams($query);\n\t\treturn $rutinas;\n\t}", "public function getCustomerTaxvat();", "function ciniki_taxes_typeList(&$ciniki) {\n // \n // Find all the required and optional arguments\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Tenant'), \n 'locations'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Locations'), \n )); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n $args = $rc['args'];\n\n // \n // Make sure this module is activated, and\n // check permission to run this function for this tenant\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'taxes', 'private', 'checkAccess');\n $rc = ciniki_taxes_checkAccess($ciniki, $args['tnid'], 'ciniki.taxes.typeList'); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n }\n $modules = $rc['modules'];\n\n $rsp = array('stat'=>'ok', 'active'=>array(), 'inactive'=>array());\n\n //\n // Get the list of active tax types, with current tax rates\n //\n $strsql = \"SELECT ciniki_tax_types.id, \"\n . \"ciniki_tax_types.name, \"\n . \"ciniki_tax_types.flags, \"\n . \"ciniki_tax_type_rates.rate_id AS rate_id, \"\n . \"ciniki_tax_rates.name AS rate_name \"\n . \"\";\n if( ($modules['ciniki.taxes']['flags']&0x01) > 0 ) {\n $strsql .= \", IFNULL(ciniki_tax_locations.name, '') AS rate_location \";\n } else {\n $strsql .= \", '' AS rate_location \";\n }\n $strsql .= \"FROM ciniki_tax_types \"\n . \"LEFT JOIN ciniki_tax_type_rates ON (ciniki_tax_types.id = ciniki_tax_type_rates.type_id \"\n . \"AND ciniki_tax_type_rates.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \") \"\n . \"LEFT JOIN ciniki_tax_rates ON (ciniki_tax_type_rates.rate_id = ciniki_tax_rates.id \"\n . \"AND ciniki_tax_rates.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND ciniki_tax_rates.start_date < UTC_TIMESTAMP \"\n . \"AND (ciniki_tax_rates.end_date = '0000-00-00 00:00:00' \"\n . \"OR ciniki_tax_rates.end_date > UTC_TIMESTAMP()) \"\n . \") \";\n if( ($modules['ciniki.taxes']['flags']&0x01) > 0 ) {\n $strsql .= \"LEFT JOIN ciniki_tax_locations ON (\"\n . \"ciniki_tax_rates.location_id = ciniki_tax_locations.id \"\n . \"AND ciniki_tax_locations.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \") \";\n }\n $strsql .= \"WHERE ciniki_tax_types.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND (ciniki_tax_types.flags&0x01) = 0 \"\n . \"\";\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQueryTree');\n $rc = ciniki_core_dbHashQueryTree($ciniki, $strsql, 'ciniki.taxes', array(\n array('container'=>'types', 'fname'=>'id', 'name'=>'type',\n 'fields'=>array('id', 'name', 'flags')),\n array('container'=>'rates', 'fname'=>'rate_id', 'name'=>'rate',\n 'fields'=>array('id'=>'rate_id', 'name'=>'rate_name', 'location'=>'rate_location')),\n// 'fields'=>array('id', 'name', 'flags', 'rate_ids', 'rates'),\n// 'idlists'=>array('rate_ids'), 'lists'=>array('rates')),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( isset($rc['types']) ) {\n $rsp['active'] = $rc['types'];\n// foreach($rsp['active'] as $tid => $type) {\n// $rsp['active'][$tid]['type']['rate_text'] = '';\n// foreach($type['type']['rates'] as $rid => $rate) {\n// $rsp['active'][$tid]['type']['rate_text'] .= ($rsp['active'][$tid]['type']['rate_text']!=''?'<br/>':'');\n// if( ($modules['ciniki.taxes']['flags']&0x01) > 0 ) {\n// $rsp['active'][$tid]['type']['rate_text'] .= $rate['rate']['location'] . ' - ';\n// }\n// }\n// }\n }\n\n //\n // Get the list of inactive tax types\n //\n $strsql = \"SELECT ciniki_tax_types.id, \"\n . \"ciniki_tax_types.name, \"\n . \"ciniki_tax_types.flags, \"\n . \"ciniki_tax_type_rates.rate_id AS rate_ids, \"\n . \"ciniki_tax_rates.name AS rates \"\n . \"\";\n if( ($modules['ciniki.taxes']['flags']&0x01) > 0 ) {\n $strsql .= \", IFNULL(ciniki_tax_locations.name, '') AS rate_location \";\n } else {\n $strsql .= \", '' AS rate_location \";\n }\n $strsql .= \"FROM ciniki_tax_types \"\n . \"LEFT JOIN ciniki_tax_type_rates ON (ciniki_tax_types.id = ciniki_tax_type_rates.type_id \"\n . \"AND ciniki_tax_type_rates.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \") \"\n . \"LEFT JOIN ciniki_tax_rates ON (ciniki_tax_type_rates.rate_id = ciniki_tax_rates.id \"\n . \"AND ciniki_tax_rates.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND ciniki_tax_rates.start_date < UTC_TIMESTAMP \"\n . \"AND (ciniki_tax_rates.end_date = '0000-00-00 00:00:00' \"\n . \"OR ciniki_tax_rates.end_date > UTC_TIMESTAMP()) \"\n . \") \";\n if( ($modules['ciniki.taxes']['flags']&0x01) > 0 ) {\n $strsql .= \"LEFT JOIN ciniki_tax_locations ON (\"\n . \"ciniki_tax_rates.location_id = ciniki_tax_locations.id \"\n . \"AND ciniki_tax_locations.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \") \";\n }\n $strsql .= \"WHERE ciniki_tax_types.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND (ciniki_tax_types.flags&0x01) = 1 \"\n . \"\";\n $rc = ciniki_core_dbHashQueryTree($ciniki, $strsql, 'ciniki.taxes', array(\n array('container'=>'types', 'fname'=>'id', 'name'=>'type',\n 'fields'=>array('id', 'name', 'flags')),\n array('container'=>'rates', 'fname'=>'rate_id', 'name'=>'rate',\n 'fields'=>array('id'=>'rate_id', 'name'=>'rate_name', 'location'=>'rate_location')),\n// 'fields'=>array('id', 'name', 'flags', 'rate_ids', 'rates'),\n// 'idlists'=>array('rate_ids'), 'lists'=>array('rates')),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( isset($rc['types']) ) {\n $rsp['inactive'] = $rc['types'];\n }\n\n //\n // If locations specified, get the list of known locations\n //\n if( isset($args['locations']) && $args['locations'] == 'yes' ) {\n $strsql = \"SELECT id, code, name \"\n . \"FROM ciniki_tax_locations \"\n . \"WHERE ciniki_tax_locations.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQueryTree($ciniki, $strsql, 'ciniki.taxes', array(\n array('container'=>'locations', 'fname'=>'id', 'name'=>'location',\n 'fields'=>array('id', 'code', 'name')),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( isset($rc['locations']) ) {\n $rsp['locations'] = $rc['locations'];\n } else {\n $rsp['locations'] = array();\n }\n }\n\n return $rsp;\n}", "function pnh_getreceiptttl_valuebytypeterry($type=0,$tid=false)\r\n\t{\r\n\t\tif($type==0)\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,sum(receipt_amount) as total,f.franchise_name,a.name AS admin FROM pnh_t_receipt_info r JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id LEFT OUTER JOIN king_admin a ON a.id=r.created_by WHERE r.status=0 AND r.is_active=1 and is_submitted=0 and f.territory_id=? ORDER BY instrument_date DESC\",$tid)->row_array();\r\n\t\tif($type==1 )\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,sum(receipt_amount) as total,f.franchise_name,a.name AS admin FROM pnh_t_receipt_info r JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id LEFT OUTER JOIN king_admin a ON a.id=r.created_by WHERE r.status=0 AND r.is_active=1 AND date(from_unixtime(instrument_date)) <= curdate() and is_submitted=0 and f.territory_id=? and r.is_active=1 ORDER BY instrument_date asc\",$tid)->row_array();\r\n\t\tif($type==2 )\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,sum(receipt_amount) as total,f.franchise_name,a.name AS admin FROM pnh_t_receipt_info r JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id LEFT OUTER JOIN king_admin a ON a.id=r.created_by WHERE r.status=0 AND r.is_active=1 AND date(from_unixtime(instrument_date)) > curdate() and is_submitted=0 and f.territory_id=? ORDER BY instrument_date asc\",$tid)->row_array();\r\n\t\tif($type==3)\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,sum(receipt_amount) as total,DATE_FORMAT(r.activated_on,'%d/%m/%Y')as activated_on,f.franchise_name,a.name AS admin,d.username AS activated_by FROM pnh_t_receipt_info r JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id LEFT OUTER JOIN king_admin a ON a.id=r.created_by LEFT OUTER JOIN king_admin d ON d.id=r.activated_by WHERE r.status=1 AND r.is_active=1 and is_submitted=1 and f.territory_id=? ORDER BY date(from_unixtime(activated_on)) DESC\",$tid)->row_array();\r\n\t\tif($type==4)\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,sum(receipt_amount) as total,b.bank_name AS submit_bankname,s.name AS submittedby,a.name AS admin,f.franchise_name,d.remarks AS submittedremarks,DATE(d.submitted_on) AS submitted_on,r.created_on FROM `pnh_m_deposited_receipts`d JOIN `pnh_t_receipt_info` r ON r.receipt_id=d.receipt_id JOIN `pnh_m_bank_info` b ON b.id=d.bank_id JOIN king_admin s ON s.id=d.submitted_by JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id left outer join king_admin a on a.id=r.created_by WHERE r.is_submitted=1 AND f.is_suspended=0 AND r.status=0 and r.is_active=1 and f.territory_id=? order by d.submitted_on desc\",$tid)->row_array();\r\n\t\tif($type==5)\r\n\t\t{\r\n\t\t\t$sql = \"SELECT r.*,f.franchise_name,a.name AS admin,d.username AS activated_by ,c.cancel_reason,c.cancelled_on,sum(receipt_amount) as total \r\n\t\t\t\t\t\tFROM pnh_t_receipt_info r \r\n\t\t\t\t\t\tJOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id \r\n\t\t\t\t\t\tleft JOIN `pnh_m_deposited_receipts`c ON c.receipt_id=r.receipt_id\r\n\t\t\t\t\t\tLEFT OUTER JOIN king_admin a ON a.id=r.created_by \r\n\t\t\t\t\t\tLEFT OUTER JOIN king_admin d ON d.id=r.activated_by \r\n\t\t\t\t\t\tWHERE r.status in (2,3) AND r.is_active=1 AND r.is_active=1 and f.territory_id=? \r\n\t\t\t\t\t\tORDER BY cancelled_on DESC\";\r\n\t\t\t$total_value=$this->db->query($sql,$tid)->row_array();\r\n\t\t}\t\r\n\t\treturn $total_value;\r\n\t}", "function buildTaxonQuery($params) {\n $url = \"https://laji.fi/api/taxa?langFallback=false&selectedFields=vernacularName,id,scientificName,synonyms.scientificName&lang=fi&pageSize=\" . $params['pageSize'] . \"&page=\" . $params['page'];\n debugData($url, __LINE__);\n return $url;\n}", "public function getTaxedPrice();", "public function getTaxInvoiced();", "public function consulta_tienda_cart(){\n\n $this->que_dba=\"SELECT * FROM tienda t, inventario i, temp_pedido tp\n\t\t\tWHERE t.cod_tie=i.tienda_cod_tie\n\t\t\tAND i.cod_inv=tp.inventario_cod_inv\n\t\t\tAND tp.usuario_cod_usu='\".$_SESSION['cod_usu'].\"'\n\t\t\tGROUP BY raz_tie;\"; \n\t\t\t \n\t\treturn $this->ejecutar();\n\t}", "function tratamentoDadosProduto( $name_prod, $preco_prod, $qntd_prod, $categoria_prod,\n $tipo_venda_prod, $qntd_min_prod, $descricao, $producao, $validade, $imgProdutos, \n $tipo_function) \n {\n // limpar o nome do produto para não correr risco de SQLI ou partes html\n $name_prod = filter_var($name_prod, FILTER_SANITIZE_STRING);\n // limpar o valor do produto p/conter apenas números\n $preco_prod = filter_var($preco_prod, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);\n // limpar a qntd disponivel do produto p/conter apenas números\n $qntd_prod = filter_var($qntd_prod, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);\n // limpar a categoria do produto p/conter apenas números\n $categoria_prod = filter_var($categoria_prod, FILTER_SANITIZE_STRING);\n // limpar o tipo de venda do produto p/conter apenas números\n $tipo_venda_prod = filter_var($tipo_venda_prod, FILTER_SANITIZE_NUMBER_INT);\n // limpar a qntd minima de venda do produto p/conter apenas números\n $qntd_min_prod = filter_var($qntd_min_prod, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);\n // limpar a descrição do produto para não correr risco de SQLI ou partes html\n $descricao = filter_var($descricao, FILTER_SANITIZE_STRING);\n // limpar e verificar se a data contém apenas números\n $producao = preg_replace(\"([^0-9/-])\", \"\", $producao);\n // limpar e verificar se a data contém apenas números\n $validade = preg_replace(\"([^0-9/-])\", \"\", $validade);\n\n if ($tipo_function == 1) {\n return $this->cadastrarProduto( $name_prod, $preco_prod, $qntd_prod, $categoria_prod, \n $tipo_venda_prod, $qntd_min_prod, $descricao, $producao, $validade, $imgProdutos);\n\n } elseif ($tipo_function == 2) {\n return $this->updateProduto( $name_prod, $preco_prod, $qntd_prod, $categoria_prod,\n $tipo_venda_prod, $qntd_min_prod, $descricao, $producao, $validade, $imgProdutos);\n }\n }", "function EstadoCuenta(){\n $this->procedimiento='obingresos.ft_periodo_venta_sel';\n $this->transaccion='OBING_SALAT_SEL';\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n $this->setCount(false);\n $this->setParametro('id_agencia','id_agencia','int4');\n //Definicion de la lista del resultado del query\n $this->captura('id_agencia','int4');\n $this->captura('id_periodo_venta','int4');\n $this->captura('nombre','varchar');\n $this->captura('mes','varchar');\n $this->captura('fecha_ini','date');\n $this->captura('fecha_fin','date');\n $this->captura('credito','varchar');\n $this->captura('total_credito','numeric');\n $this->captura('debito','varchar');\n $this->captura('total_debito','numeric');\n $this->captura('saldo','numeric');\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n // var_dump($this->respuesta);exit;\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function getTaxList($type ='Both'){\n\t \n\t \t\t$this->db->select(\"TS.tax_id, TS.tax_per, TS.tax_type\");\n\t\t\t$this->db->from(\"tax_structure AS TS\");\n\t\t\t//$this->db->where(\"TS.tax_type\",'Active');\n\t\t\tif($type == 'Both'){\n\t\t\t\t$this->db->where_in('TS.tax_type', array('CST','VAT'));\n\t\t\t}else{\n\t\t\t\t$this->db->where('TS.tax_type', 'Excise');\n\t\t\t}\n\t\t\t$this->db->where(\"TS.status\",'Active');\n\t\t\t$query_tax_array = $this->db->get();\n\t\t\t//echo $this->db->last_query();die;\n\t\t\tif($query_tax_array->num_rows()>0)\n\t\t\t{\n\t\t\t\treturn $query_tax_array->result_array();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn array();\n\t\t\t}\n\t \n\t }", "function get_tipos_cuentas_registro() {\n $this->db->select();\n $this->db->from(\"tipo_cuenta_registro\");\n $query = $this->db->get();\n \n if ($query->num_rows() > 0) return $query;\n return NULL;\n }", "public function getExciseTaxList($type ='Excise'){\n\t \n\t \t\t$this->db->select(\"TS.tax_id, TS.tax_per, TS.tax_type\");\n\t\t\t$this->db->from(\"tax_structure AS TS\");\n\t\t\t//$this->db->where(\"TS.tax_type\",'Active');\n\t\t\t$this->db->where('TS.tax_type', 'Excise');\n\t\t\t$this->db->where(\"TS.status\",'Active');\n\t\t\t$query_tax_array = $this->db->get();\n\t\t\t//echo $this->db->last_query();die;\n\t\t\tif($query_tax_array->num_rows()>0)\n\t\t\t{\n\t\t\t\treturn $query_tax_array->result_array();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn array();\n\t\t\t}\n\t \n\t }", "function getNonTaxable($month, $year, $emp_id){\n \t$sql = \"SELECT (pe_entry_amt+amm_amt)-(statutory_amt+pe_entry_deduct_amt+amm_deduct_amt) AS nontax\n\t\t\t\tFROM \n\t\t\t\t\n\t\t\t\t(SELECT COALESCE(sum(a.ppe_amount),0) as pe_entry_amt \n\t\t\t\tFROM payroll_paystub_entry a \n\t\t\t\tJOIN payroll_paystub_report b on (b.paystub_id=a.paystub_id) \n\t\t\t\tJOIN payroll_pay_period c on (c.payperiod_id=b.payperiod_id) \n\t\t\t\tJOIN emp_masterfile em on (em.emp_id=b.emp_id)\n\t\t\t\tWHERE a.psa_id IN (select distinct a.psa_id \n\t\t\t\tFROM payroll_ps_account a \n\t\t\t\tJOIN payroll_paystub_entry b on (b.psa_id=a.psa_id) \n\t\t\t\tJOIN payroll_pay_stub c on (c.paystub_id=b.paystub_id) \n\t\t\t\tJOIN payroll_pay_period d on (d.payperiod_id=c.payperiod_id)\n\t\t\t\tJOIN payroll_paystub_report e on (e.paystub_id=b.paystub_id) \n\t\t\t\tWHERE a.psa_type=1 and a.psa_procode!=6 and e.emp_id='{$emp_id}' and d.payperiod_period = '{$month}' and d.payperiod_period_year = '{$year}' AND a.psa_tax=0) \n\t\t\t\tAND b.emp_id='{$emp_id}' AND c.payperiod_period = '{$month}' and c.payperiod_period_year = '{$year}') pe_entry_tbl,\n\t\t\t\t\n\t\t\t\t(select COALESCE(sum(a.amendemp_amount),0) as amm_amt \n\t\t\t\tFROM payroll_ps_amendemp a \n\t\t\t\tJOIN payroll_ps_amendment b on (b.psamend_id=a.psamend_id)\n\t\t\t\tJOIN payroll_pay_stub c on (c.paystub_id=a.paystub_id)\n\t\t\t\tJOIN payroll_pay_period d on (d.payperiod_id=c.payperiod_id)\n\t\t\t\tJOIN emp_masterfile em on (em.emp_id=a.emp_id)\n\t\t\t\tWHERE b.psa_id IN (select distinct a.psa_id \n\t\t\t\tFROM payroll_ps_account a \n\t\t\t\tJOIN payroll_ps_amendment b on (b.psa_id=a.psa_id) \n\t\t\t\tJOIN payroll_ps_amendemp c on (c.psamend_id=b.psamend_id) \n\t\t\t\tJOIN payroll_pay_stub d on (d.paystub_id=c.paystub_id) \n\t\t\t\tJOIN payroll_pay_period e on (e.payperiod_id=d.payperiod_id) \n\t\t\t\tWHERE a.psa_type=1 and a.psa_procode!=6 and c.emp_id='{$emp_id}' and e.payperiod_period = '{$month}' and e.payperiod_period_year = '{$year}' AND a.psa_tax=0) \n\t\t\t\tAND a.emp_id='{$emp_id}' AND a.paystub_id!=0 AND d.payperiod_period = '{$month}' AND d.payperiod_period_year = '{$year}') amm_tbl,\n\t\t\t\t\n\t\t\t\t(SELECT COALESCE(sum(a.ppe_amount),0) as statutory_amt \n\t\t\t\tFROM payroll_paystub_entry a \n\t\t\t\tJOIN payroll_paystub_report b on (b.paystub_id=a.paystub_id) \n\t\t\t\tJOIN payroll_pay_period c on (c.payperiod_id=b.payperiod_id) \n\t\t\t\tJOIN emp_masterfile em on (em.emp_id=b.emp_id)\n\t\t\t\tWHERE a.psa_id IN (7,14,15) \n\t\t\t\tAND b.emp_id='{$emp_id}' AND c.payperiod_period = '{$month}' and c.payperiod_period_year = '{$year}') statutory_tbl,\n\t\t\t\t\n\t\t\t\t(SELECT COALESCE(sum(a.ppe_amount),0) as pe_entry_deduct_amt \n\t\t\t\tFROM payroll_paystub_entry a \n\t\t\t\tJOIN payroll_paystub_report b on (b.paystub_id=a.paystub_id) \n\t\t\t\tJOIN payroll_pay_period c on (c.payperiod_id=b.payperiod_id) \n\t\t\t\tJOIN emp_masterfile em on (em.emp_id=b.emp_id)\n\t\t\t\tWHERE a.psa_id IN (select distinct a.psa_id \n\t\t\t\tFROM payroll_ps_account a \n\t\t\t\tJOIN payroll_paystub_entry b on (b.psa_id=a.psa_id) \n\t\t\t\tJOIN payroll_pay_stub c on (c.paystub_id=b.paystub_id) \n\t\t\t\tJOIN payroll_pay_period d on (d.payperiod_id=c.payperiod_id)\n\t\t\t\tJOIN payroll_paystub_report e on (b.paystub_id=e.paystub_id)\n\t\t\t\tWHERE a.psa_type=2 and a.psa_procode!=6 and e.emp_id='{$emp_id}' and d.payperiod_period = '{$month}' and d.payperiod_period_year = '{$year}' AND a.psa_tax=1) \n\t\t\t\tAND b.emp_id='{$emp_id}' AND c.payperiod_period = '{$month}' and c.payperiod_period_year = '{$year}') pe_entry_deduct_tbl,\n\t\t\t\t\n\t\t\t\t(select COALESCE(sum(a.amendemp_amount),0) as amm_deduct_amt \n\t\t\t\tFROM payroll_ps_amendemp a \n\t\t\t\tJOIN payroll_ps_amendment b on (b.psamend_id=a.psamend_id)\n\t\t\t\tJOIN payroll_pay_stub c on (c.paystub_id=a.paystub_id)\n\t\t\t\tJOIN payroll_pay_period d on (d.payperiod_id=c.payperiod_id)\n\t\t\t\tJOIN emp_masterfile em on (em.emp_id=a.emp_id)\n\t\t\t\tWHERE b.psa_id IN (select distinct a.psa_id \n\t\t\t\tFROM payroll_ps_account a \n\t\t\t\tJOIN payroll_ps_amendment b on (b.psa_id=a.psa_id) \n\t\t\t\tJOIN payroll_ps_amendemp c on (c.psamend_id=b.psamend_id) \n\t\t\t\tJOIN payroll_pay_stub d on (d.paystub_id=c.paystub_id) \n\t\t\t\tJOIN payroll_pay_period e on (e.payperiod_id=d.payperiod_id) \n\t\t\t\tWHERE a.psa_type=2 and a.psa_procode!=6 and c.emp_id='{$emp_id}' and e.payperiod_period = '{$month}' and e.payperiod_period_year = '{$year}' AND a.psa_tax=1) \n\t\t\t\tAND a.emp_id='{$emp_id}' AND a.paystub_id!=0 AND d.payperiod_period = '{$month}' AND d.payperiod_period_year = '{$year}') amm_deduct_tbl\";\n \t$rsResult = $this->conn->Execute($sql);\n \twhile(!$rsResult->EOF){\n \t\treturn $rsResult->fields['nontax'];\n \t}\n }", "function mostra_taxonomia($tax,$sentido) {\n // creditos: https://code.tutsplus.com/tutorials/taxonomy-archives-list-posts-by-taxonomys-terms--cms-20045\n global $post;\n\n $terms = get_terms( $tax, array(\n 'orderby' => 'name',\n 'order' => $sentido,\n 'hide_empty' => 0\n ) );\n\n foreach( $terms as $term ) {\n \n $args = array(\n 'post_type' => 'revistasufg',\n 'orderby' => 'name',\n 'order' => $sentido,\n $tax => $term->slug\n );\n\n $query = new WP_Query($args);\n \n echo'<h4 class=\"divisoria titulo-taxonomia\">' . $term->name . '</h4>';\n \n while ( $query->have_posts() ) : $query->the_post(); \n if( have_rows('revista_informacoes') ): while( have_rows('revista_informacoes') ): the_row();\n loop_revista(); \n endwhile; endif;\n endwhile; wp_reset_postdata();\n }\n}", "function consulta_datos_formulario_033($req_no) { \n $sql=\" SELECT \n COALESCE(a.req_no::TEXT,'No Aplica') AS req_no\n ,COALESCE(a.dcm_no::TEXT,'No Aplica') AS dcm_no\n ,COALESCE(a.dcm_nm::TEXT,'No Aplica') AS dcm_nm\t\t\t\t\t\n ,COALESCE(a.req_city_nm::TEXT,'No Aplica') AS req_city_nm\n ,COALESCE(nullif(a.exp_sty_ctft_req_no,'')::TEXT,'No Aplica') AS exp_sty_ctft_req_no\n ,COALESCE(nullif(a.qlt_ctft_no,'')::TEXT,'No Aplica') AS qlt_ctft_no\t\t\t\t\t\n ,case \n when dclr_cl_cd='001' \n then 'Persona Jurídica'::TEXT\n WHEN dclr_cl_cd='002'\n then 'Persona Natural'::TEXT\n else\n 'No Aplica'\n end AS dclr_cl_cd\t\t\t\t\t\t\t\t\t\t\n ,COALESCE(a.dclr_idt_no::TEXT,'No Aplica') AS dclr_idt_no\n ,COALESCE(nullif(a.dclr_nole,'')::TEXT,'No Aplica') AS dclr_nole\n ,COALESCE(a.dclr_nm::TEXT,'No Aplica') AS dclr_nm\n ,COALESCE(a.dclr_rpgp_nm::TEXT,'No Aplica') AS dclr_rpgp_nm\t\t\t\t\t\n ,COALESCE(a.dclr_prvhc_nm::TEXT,'No Aplica') AS dclr_prvhc_nm\t\t\t\n ,COALESCE(a.dclr_cuty_nm::TEXT,'No Aplica') AS dclr_cuty_nm\t\t\t\t\t\n ,COALESCE(a.dclr_prqi_nm::TEXT,'No Aplica') AS dclr_prqi_nm\n ,COALESCE(a.dclr_ad::TEXT,'No Aplica') AS dclr_ad\n ,COALESCE(a.dclr_tel_no::TEXT,'No Aplica') AS dclr_tel_no\n ,COALESCE(nullif(a.dclr_fax_no,'')::TEXT,'No Aplica') AS dclr_fax_no\n ,COALESCE(nullif(a.dclr_em,'')::TEXT,'No Aplica') AS dclr_em\n ,COALESCE(a.impr_nm::TEXT,'No Aplica') AS impr_nm\t\t\t\t\t\n ,COALESCE(a.impr_ntn_nm::TEXT,'No Aplica') AS impr_ntn_nm\t\t\t\t\t\n ,COALESCE(a.impr_city_nm::TEXT,'No Aplica') AS impr_city_nm\n ,COALESCE(a.impr_ad::TEXT,'No Aplica') AS impr_ad\n ,COALESCE(nullif(a.impr_tel_no,'')::TEXT,'No Aplica') AS impr_tel_no\n ,COALESCE(nullif(a.impr_fax_no,'')::TEXT,'No Aplica') AS impr_fax_no\n ,COALESCE(nullif(a.impr_em,'')::TEXT,'No Aplica') AS impr_em\n ,case \n when expr_cl_cd='001' \n then 'Persona Jurídica'::TEXT\n WHEN expr_cl_cd='002'\n then 'Persona Natural'::TEXT\n else\n 'No Aplica'\n end AS expr_cl_cd\t\t\t\t\t\t\t\t\t\t\n ,COALESCE(a.expr_idt_no::TEXT,'No Aplica') AS expr_idt_no\n ,COALESCE(a.expr_nm::TEXT,'No Aplica') AS expr_nm\n ,COALESCE(a.expr_atr_no::TEXT,'No Aplica') AS expr_atr_no\t\t\t\t\t\n ,COALESCE(a.expr_ntn_nm::TEXT,'No Aplica') AS expr_ntn_nm\t\t\t\t\t\n ,COALESCE(nullif(a.expr_city_nm,'')::TEXT,'No Aplica') AS expr_city_nm\t\t\t\t\t\n ,COALESCE(a.expr_prvhc_nm::TEXT,'No Aplica') AS expr_prvhc_nm\t\t\t\t\t\n ,COALESCE(a.expr_cuty_nm::TEXT,'No Aplica') AS expr_cuty_nm\t\t\t\t\t\n ,COALESCE(a.expr_prqi_nm::TEXT,'No Aplica') AS expr_prqi_nm\n ,COALESCE(a.expr_ad::TEXT,'No Aplica') AS expr_ad\n ,COALESCE(a.expr_tel_no::TEXT,'No Aplica') AS expr_tel_no\n ,COALESCE(NULLIF(a.expr_fax_no,'')::TEXT,'No Aplica') AS expr_fax_no\n ,COALESCE(NULLIF(a.expr_em,'')::TEXT,'No Aplica') AS expr_em\n ,case \n when pcs_cl_cd='001' \n then 'Persona Jurídica'::TEXT\n WHEN pcs_cl_cd='002'\n then 'Persona Natural'::TEXT\n else\n 'No Aplica'\n end AS pcs_cl_cd\t\t\t\t\t\t\t\t\t\t\t\n ,COALESCE(NULLIF(a.pcs_idt_no,'')::TEXT,'No Aplica') AS pcs_idt_no\n ,COALESCE(NULLIF(a.pcs_nm,'')::TEXT,'No Aplica') AS pcs_nm\n ,COALESCE(NULLIF(a.pcs_atr_no,'')::TEXT,'No Aplica') AS pcs_atr_no\t\t\t\t\t\n ,COALESCE(NULLIF(a.pcs_ntn_nm,'')::TEXT,'No Aplica') AS pcs_ntn_nm\t\t\t\t\t\n ,COALESCE(NULLIF(a.pcs_city_nm,'')::TEXT,'No Aplica') AS pcs_city_nm\n ,COALESCE(NULLIF(a.pcs_rpgp_nm,'')::TEXT,'No Aplica') AS pcs_rpgp_nm\t\t\t\t\t\n ,COALESCE(NULLIF(a.pcs_prvhc_nm,'')::TEXT,'No Aplica') AS pcs_prvhc_nm\t\t\t\t\t\n ,COALESCE(NULLIF(a.pcs_cuty_nm,'')::TEXT,'No Aplica') AS pcs_cuty_nm\t\t\t\t\t\n ,COALESCE(NULLIF(a.pcs_prqi_nm,'')::TEXT,'No Aplica') AS pcs_prqi_nm\n ,COALESCE(NULLIF(a.pcs_ad,'')::TEXT,'No Aplica') AS pcs_ad\n ,COALESCE(NULLIF(a.pcs_tel_no,'')::TEXT,'No Aplica') AS pcs_tel_no\n ,COALESCE(NULLIF(a.pcs_fax_no,'')::TEXT,'No Aplica') AS pcs_fax_no\n ,COALESCE(NULLIF(a.pcs_em,'')::TEXT,'No Aplica') AS pcs_em\t\t\t\t\t\n ,COALESCE(a.dst_ntn_nm::TEXT,'No Aplica') AS dst_ntn_nm\t\t\t\t\t\n ,COALESCE(a.dst_city_nm::TEXT,'No Aplica') AS dst_city_nm\t\t\t\t\t\n ,COALESCE(a.dst_port_nm::TEXT,'No Aplica') AS dst_port_nm\n ,COALESCE(a.inv_no::TEXT,'No Aplica') AS inv_no\t\t\t\t\t\n ,COALESCE(a.spm_port_ntn_nm::TEXT,'No Aplica') AS spm_port_ntn_nm\t\t\t\t\t\n ,COALESCE(a.spm_port_city_nm::TEXT,'No Aplica') AS spm_port_city_nm\n ,COALESCE(a.trsp_way_nm::TEXT,'No Aplica') AS trsp_way_nm\t\t\t\t\t\n ,COALESCE(a.carr_nm::TEXT,'No Aplica') AS carr_nm\n ,COALESCE(nullif(a.vsl_nm,'')::TEXT,'No Aplica') AS vsl_nm\n ,COALESCE(nullif(a.fghnb,'')::TEXT,'No Aplica') AS fghnb\n ,COALESCE(nullif(a.oter_trsp_way_nm,'')::TEXT,'No Aplica') AS oter_trsp_way_nm\n ,COALESCE(nullif(a.ctnr_no,'')::TEXT,'No Aplica') AS ctnr_no\n ,COALESCE(nullif(a.seal_no,'')::TEXT,'No Aplica') AS seal_no\t\t\t\t\t\n ,COALESCE(CAST(round(a.prdt_tot_qt,2)AS CHARACTER VARYING)::TEXT,'No Aplica') AS prdt_tot_qt\n ,COALESCE(a.prdt_tot_qt_ut::TEXT,'No Aplica') AS prdt_tot_qt_ut\t\t\t\t\t\n ,COALESCE(CAST(round(a.prdt_tot_nwt,2)AS CHARACTER VARYING)::TEXT,'No Aplica') AS prdt_tot_nwt\n ,COALESCE(a.prdt_tot_nwt_ut::TEXT,'No Aplica') AS prdt_tot_nwt_ut\n ,COALESCE(a.dclr_rmk::TEXT,'No Aplica') AS dclr_rmk\t\t\t\t\t\n ,COALESCE(to_char(a.mdf_dt,'DD/MM/YYYY HH24:MI:SS')::TEXT,'No Aplica') AS mdf_dt\t\t\t\t\t\n FROM vue_gateway.tn_inp_033 as a \n where a.req_no='\".$req_no.\"'\"; \n $conexion=new DB();\n $row = $conexion->consultar($sql,1); \n $TnInp033=new TnInp033($row); \n return $TnInp033; \n}", "public function getNominaEtau($id,$idg)\n { \n $result=$this->adapter->query('select distinct c.idNom, c.id, a.idCon, \n case a.cCosEmp when 0 then a.idCcos\n when 1 then b.idCcos End as idCcos, \n case a.horasCal when 0 then 0 \n when 1 then (c.dias*'.$this->horasDias.') End as horas, 1, \n case when g.valor=2 then \n case when g.tipo = 1 then a.valor else 0 End\t\t\t\t \n when g.valor=1 then 0 \n End as dev, \n case when g.valor=2 then \n case when g.tipo = 2 then a.valor else 0 End\t\t\t\t \n when g.valor=1 then 0 \n\t\tEnd as ded, h.formula, c.dias, g.tipo\n , b.id as idEmp , g.idFor , a.diasLab, c.diasVac, a.vaca,\n case when ii.codigo is null then \"\" else ii.codigo end as nitTer \n from n_tip_auto_i a inner join a_empleados b on a.idTauto=b.idTau\n inner join n_nomina_e c on b.id=c.idEmp \n inner join n_nomina d on d.id=c.idNom\n inner join n_tip_auto_tn e on e.idTnom=d.idTnom \n inner join n_tip_calendario f on f.id=d.idCal\n inner join n_conceptos g on g.id=a.idCon \n inner join n_formulas h on h.id=g.idFor \n left join n_terceros_s i on i.id = g.idTer \n left join n_terceros ii on ii.id = i.idTer \n WHERE not exists (SELECT null from n_nomina_e_d \n where c.id=idInom and a.idCon=idConc and a.idCcos=idCcos and tipo=1 ) \n and d.estado=0 and b.idGrup='.$idg.' and c.idNom='.$id,Adapter::QUERY_MODE_EXECUTE);\n $datos=$result->toArray();\n return $datos; \n }", "public function consultarDadosAnexoIHtml($dados) {\n\n $ano = $dados['ano'];\n\n $campo = $dados['mes'];\n\n // $mes = $dados['mes'];\n switch ($dados['mes']) {\n case 'IMPO_VL_TOTAL_JAN':\n $mes = '01';\n break;\n case 'IMPO_VL_TOTAL_FEV':\n $mes = '02';\n break;\n case 'IMPO_VL_TOTAL_MAR':\n $mes = '03';\n break;\n case 'IMPO_VL_TOTAL_ABR':\n $mes = '04';\n break;\n case 'IMPO_VL_TOTAL_MAI':\n $mes = '05';\n break;\n case 'IMPO_VL_TOTAL_JUN':\n $mes = '06';\n break;\n case 'IMPO_VL_TOTAL_JUL':\n $mes = '07';\n break;\n case 'IMPO_VL_TOTAL_AGO':\n $mes = '08';\n break;\n case 'IMPO_VL_TOTAL_SET':\n $mes = '09';\n break;\n case 'IMPO_VL_TOTAL_OUT':\n $mes = '10';\n break;\n case 'IMPO_VL_TOTAL_NOV':\n $mes = '11';\n break;\n case 'IMPO_VL_TOTAL_DEZ':\n $mes = '12';\n break;\n }\n\n\n $tipo = $dados['tipo'];\n\n $ugMostrar = $dados['ug'] === false ? \"\" : \" AND IMPO_CD_UG = {$dados['ug']}\";\n\n if (!empty($tipo)) {\n $sqlTipo = \" AND IMPA_IC_TP_ARQUIVO = {$tipo} \";\n }\n \n $ugMostrar = $dados['ug'] === false ? \"\" : \" AND IMPO_CD_UG = {$dados['ug']}\";\n \n $sql = $this->retornaSqlRelatorio ( $tipo, $dados );\n\n \n \n \n/* $sql = \"\n\n\nSELECT ALIN_ID_ALINEA, INCI_ID_INCISO,ALIN_VL_ALINEA, ALIN_DS_ALINEA, INCI_VL_INCISO, INCI_DS_INCISO, \nUNGE_CD_UG, UNGE_SG_SECAO, UNGE_SG_UG, UNGE_DS_AUTORIDADE_MAXIMA, UNGE_DS_UG,\nSUM($campo) AS TOTAL\nFROM\n(SELECT C.ALIN_ID_ALINEA, D.INCI_ID_INCISO, C.ALIN_VL_ALINEA, C.ALIN_DS_ALINEA, D.INCI_VL_INCISO, D.INCI_DS_INCISO,\nUNGE_CD_UG, UNGE_SG_SECAO, UNGE_SG_UG, UNGE_DS_AUTORIDADE_MAXIMA, UNGE_DS_UG,\n A.$campo\n \n FROM CEO.CEO_TB_IMPO_IMPORTACAO A\n INNER JOIN CEO.CEO_TB_REGC_REGRA_CNJ B ON A.IMPO_IC_CATEGORIA = B.REGC_IC_CATEGORIA\n INNER JOIN CEO.CEO_TB_ALIN_ALINEA C ON B.REGC_ID_ALINEA = C.ALIN_ID_ALINEA\n INNER JOIN CEO.CEO_TB_INCI_INCISO D ON C.ALIN_ID_INCISO = D.INCI_ID_INCISO\n INNER JOIN CEO.CEO_TB_IMPA_IMPORTAR_ARQUIVO E ON A.IMPO_ID_IMPORT_ARQUIVO = E.IMPA_ID_IMPORT_ARQUIVO\n INNER JOIN CEO_TB_UNGE_UNIDADE_GESTORA UNGE ON A.IMPO_CD_UG = UNGE.UNGE_CD_UG \n \n WHERE \n 1= 1\n $sqlTipo\n AND A.$campo <> 0\n AND A.IMPO_ID_ALINEA IS NULL \n AND A.IMPO_ID_INCISO IS NULL\n $ugMostrar\n UNION\n SELECT C.ALIN_ID_ALINEA, D.INCI_ID_INCISO, C.ALIN_VL_ALINEA, C.ALIN_DS_ALINEA, D.INCI_VL_INCISO, D.INCI_DS_INCISO,\n UNGE_CD_UG, UNGE_SG_SECAO, UNGE_SG_UG, UNGE_DS_AUTORIDADE_MAXIMA, UNGE_DS_UG,\n A.$campo\n \n FROM CEO.CEO_TB_IMPO_IMPORTACAO A\n INNER JOIN CEO.CEO_TB_ALIN_ALINEA C ON C.ALIN_ID_ALINEA = A.IMPO_ID_ALINEA\n INNER JOIN CEO.CEO_TB_INCI_INCISO D ON D.INCI_ID_INCISO = A.IMPO_ID_INCISO\n INNER JOIN CEO.CEO_TB_IMPA_IMPORTAR_ARQUIVO E ON A.IMPO_ID_IMPORT_ARQUIVO = E.IMPA_ID_IMPORT_ARQUIVO\n INNER JOIN CEO_TB_UNGE_UNIDADE_GESTORA UNGE ON A.IMPO_CD_UG = UNGE.UNGE_CD_UG \n WHERE \n 1= 1\n $sqlTipo\n AND A.$campo <> 0\n $ugMostrar)\n GROUP BY ALIN_ID_ALINEA, INCI_ID_INCISO, ALIN_VL_ALINEA, ALIN_DS_ALINEA, INCI_VL_INCISO, INCI_DS_INCISO,UNGE_CD_UG, UNGE_SG_SECAO, UNGE_SG_UG, UNGE_DS_AUTORIDADE_MAXIMA, UNGE_DS_UG\n ORDER BY 1,3 \n \";\n*/\n\n\n $db = Zend_Db_Table::getDefaultAdapter();\n $retorno = $db->fetchAll($sql);\n\n return $retorno;\n }", "function tax()\n {\n if (($data['logedUser'] = $this->_admin_pages()))\n { \n \n $manufacturer['content'] = Modules::run('tax/_index'); \n \n $data['header'] = '';\n $data['titelHeader'] = $this->lang->line('tax');\n $data['content'] = Modules::run('ajaxme/ajaxmeAdmintax',$manufacturer);\n \n \n $this->load->view('general',$data);\n \n }\n }", "public function allTdgRatificacion(Request $request){\n\n // Inicializar variables\n $escuela_id = '';\n $escuela_id = $request->escuela_id;\n $codigo = '';\n $codigo = $request->codigo;\n $nombre = '';\n $nombre = $request->nombre;\n $tipo_solicitud = '';\n $tipo_solicitud = $request->tipo_solicitud;\n\n // Realizar consultas a la base de datos\n $tdgs = '';\n if($tipo_solicitud == 'cambio_de_nombre'){\n //Solicitudes de cambio de nombre\n $request_name = RequestName::where('aprobado',null)->get();\n $tdgs = array();\n //Validacion para que existan solicitudes de cambio de nombre\n if($request_name->isEmpty()){\n\n }else{\n //Si existen las recorremos\n foreach($request_name as $re1){\n $enable_name[]= $re1->tdg_id;\n }\n\n //Pasamos las solicitudes\n $enable_request = $enable_name;\n\n foreach($enable_request as $enable){\n //Tdg::where('id',$enable)->where('nombre', 'like', '%WP%')->get();\n $consulta = DB::table('tdgs')\n ->select('id', 'codigo', 'nombre')\n ->where('escuela_id', 'like', '%'.$escuela_id.'%')\n ->where('codigo', 'like', '%'.$codigo.'%')\n ->where('nombre', 'like', '%'.$nombre.'%')\n ->where('tdgs.id','=',$enable)\n ->get();\n\n if(!$consulta->isEmpty()){\n array_push($tdgs, $consulta);\n }\n }\n }\n } else if($tipo_solicitud == 'prorroga'){\n //Solicitudes de prorroga\n $request_extension1 = RequestExtension::where('aprobado',null)->where('type_extension_id',1)->get();\n $tdgs = array();\n //Validacion para que existan solicitudes prorroga\n if($request_extension1->isEmpty()){\n\n }else{\n //Si existen las recorremos\n foreach($request_extension1 as $re1){\n $enable_extension1[]= $re1->tdg_id;\n }\n\n //Pasamos las solicitudes\n $enable_request = $enable_extension1;\n\n foreach($enable_request as $enable){\n //Tdg::where('id',$enable)->where('nombre', 'like', '%WP%')->get();\n $consulta = DB::table('tdgs')\n ->select('id', 'codigo', 'nombre')\n ->where('escuela_id', 'like', '%'.$escuela_id.'%')\n ->where('codigo', 'like', '%'.$codigo.'%')\n ->where('nombre', 'like', '%'.$nombre.'%')\n ->where('tdgs.id','=',$enable)\n ->get();\n\n if(!$consulta->isEmpty()){\n array_push($tdgs, $consulta);\n }\n }\n }\n } else if($tipo_solicitud == 'extension_de_prorroga'){\n\n //Solicitudes de extension de prorroga\n $request_extension2 = RequestExtension::where('aprobado',null)->where('type_extension_id',2)->get();\n $tdgs = array();\n //Validacion para que existan solicitudes prorroga\n if($request_extension2->isEmpty()){\n\n }else{\n //Si existen las recorremos\n foreach($request_extension2 as $re2){\n $enable_extension2[]= $re2->tdg_id;\n }\n\n //Pasamos las solicitudes\n $enable_request = $enable_extension2;\n\n foreach($enable_request as $enable){\n //Tdg::where('id',$enable)->where('nombre', 'like', '%WP%')->get();\n $consulta = DB::table('tdgs')\n ->select('id', 'codigo', 'nombre')\n ->where('escuela_id', 'like', '%'.$escuela_id.'%')\n ->where('codigo', 'like', '%'.$codigo.'%')\n ->where('nombre', 'like', '%'.$nombre.'%')\n ->where('tdgs.id','=',$enable)\n ->get();\n\n if(!$consulta->isEmpty()){\n array_push($tdgs, $consulta);\n }\n }\n }\n\n } else if($tipo_solicitud == 'prorroga_especial'){\n //Solicitudes de extension de prorroga\n $request_extension3 = RequestExtension::where('aprobado',null)->where('type_extension_id',3)->get();\n $tdgs = array();\n //Validacion para que existan solicitudes prorroga\n if($request_extension3->isEmpty()){\n\n }else{\n //Si existen las recorremos\n foreach($request_extension3 as $re3){\n $enable_extension3[]= $re3->tdg_id;\n }\n\n //Pasamos las solicitudes\n $enable_request = $enable_extension3;\n\n foreach($enable_request as $enable){\n //Tdg::where('id',$enable)->where('nombre', 'like', '%WP%')->get();\n $consulta = DB::table('tdgs')\n ->select('id', 'codigo', 'nombre')\n ->where('escuela_id', 'like', '%'.$escuela_id.'%')\n ->where('codigo', 'like', '%'.$codigo.'%')\n ->where('nombre', 'like', '%'.$nombre.'%')\n ->where('tdgs.id','=',$enable)\n ->get();\n\n if(!$consulta->isEmpty()){\n array_push($tdgs, $consulta);\n }\n }\n } \n \n } else if($tipo_solicitud == 'nombramiento_de_tribunal'){\n //Solicitudes de nombramiento tribunal\n $request_tribunal = RequestTribunal::where('aprobado',null)->get();\n $tdgs = array();\n //Validacion para que existan solicitudes nombramiento tribunal\n if($request_tribunal->isEmpty()){\n\n }else{\n //Si existen las recorremos\n foreach($request_tribunal as $re2){\n $enable_tribunal[]= $re2->tdg_id;\n }\n\n //Pasamos las solicitudes\n $enable_request = $enable_tribunal;\n\n foreach($enable_request as $enable){\n //Tdg::where('id',$enable)->where('nombre', 'like', '%WP%')->get();\n $consulta = DB::table('tdgs')\n ->select('id', 'codigo', 'nombre')\n ->where('escuela_id', 'like', '%'.$escuela_id.'%')\n ->where('codigo', 'like', '%'.$codigo.'%')\n ->where('nombre', 'like', '%'.$nombre.'%')\n ->where('tdgs.id','=',$enable)\n ->get();\n\n if(!$consulta->isEmpty()){\n array_push($tdgs, $consulta);\n }\n }\n }\n \n } \n else if($tipo_solicitud == 'ratificacion_de_resultados') {\n //Solicitudes de extension de resultado\n $request_results = RequestResult::where('aprobado',null)->get();\n $tdgs = array();\n //Validacion para que existan solicitudes resultado\n if($request_results->isEmpty()){\n\n }else{\n //Si existen las recorremos\n foreach($request_results as $re2){\n $enable_results[]= $re2->tdg_id;\n }\n\n //Pasamos las solicitudes\n $enable_request = $enable_results;\n\n foreach($enable_request as $enable){\n //Tdg::where('id',$enable)->where('nombre', 'like', '%WP%')->get();\n $consulta = DB::table('tdgs')\n ->select('id', 'codigo', 'nombre')\n ->where('escuela_id', 'like', '%'.$escuela_id.'%')\n ->where('codigo', 'like', '%'.$codigo.'%')\n ->where('nombre', 'like', '%'.$nombre.'%')\n ->where('tdgs.id','=',$enable)\n ->get();\n\n if(!$consulta->isEmpty()){\n array_push($tdgs, $consulta);\n }\n }\n }\n }\nelse if($tipo_solicitud=='aprobado'){\n //Solicitudes de extension de resultado\n $request_approved = RequestApproved::where('aprobado',null)->get();\n $tdgs = array();\n //Validacion para que existan solicitudes resultado\n if($request_approved->isEmpty()){\n\n }else{\n //Si existen las recorremos\n foreach($request_approved as $re2){\n $enable_approved[]= $re2->tdg_id;\n }\n\n //Pasamos las solicitudes\n $enable_request = $enable_approved;\n\n foreach($enable_request as $enable){\n //Tdg::where('id',$enable)->where('nombre', 'like', '%WP%')->get();\n $consulta = DB::table('tdgs')\n ->select('id', 'codigo', 'nombre')\n ->where('escuela_id', 'like', '%'.$escuela_id.'%')\n ->where('habilitado', '=', '1')\n ->where('codigo', 'like', '%'.$codigo.'%')\n ->where('nombre', 'like', '%'.$nombre.'%')\n ->where('tdgs.id','=',$enable)\n ->get();\n\n if(!$consulta->isEmpty()){\n array_push($tdgs, $consulta);\n }\n }\n}\n}else if($tipo_solicitud == 'oficializacion'){\n //Solicitudes de extension de resultado\n $request_official = RequestOfficial::where('aprobado',null)->get();\n $tdgs = array();\n //Validacion para que existan solicitudes resultado\n if($request_official->isEmpty()){\n \n }else{\n //Si existen las recorremos\n foreach($request_official as $re2){\n $enable_official[]= $re2->tdg_id;\n }\n \n //Pasamos las solicitudes\n $enable_request = $enable_official;\n \n foreach($enable_request as $enable){\n //Tdg::where('id',$enable)->where('nombre', 'like', '%WP%')->get();\n $consulta = DB::table('tdgs')\n ->select('id', 'codigo', 'nombre')\n ->where('escuela_id', 'like', '%'.$escuela_id.'%')\n ->where('codigo', 'like', '%'.$codigo.'%')\n ->where('nombre', 'like', '%'.$nombre.'%')\n ->where('tdgs.id','=',$enable)\n ->get();\n \n if(!$consulta->isEmpty()){\n array_push($tdgs, $consulta);\n }\n }\n }\n}\n return $tdgs;\n }", "function listarTipoVenta(){\n\t\t$this->procedimiento='vef.ft_tipo_venta_sel';\n\t\t$this->transaccion='VF_TIPVEN_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_tipo_venta','int4');\n\t\t$this->captura('codigo_relacion_contable','varchar');\n\t\t$this->captura('nombre','varchar');\n\t\t$this->captura('tipo_base','varchar');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('codigo','varchar');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('usuario_ai','varchar');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('id_plantilla','int4');\n\t\t$this->captura('desc_plantilla','varchar');\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 getTaxList()\r\n\t{\r\n\t\t$this->db->select('*');\r\n\t\t$this->db->from('tbl_tax');\r\n\t\t$this->db->where('tax_status', '1');\t\t\r\n\t\t$query = $this->db->get();\r\n\t\treturn $query->result() ;\r\n\t}", "public function selectTaxDataByUid($uid) {\n \n // query preparation\n $select = 'NUMMER, STEUERSATZCODE, STEUERSATZPROZ, GUELTIGABTTMMJJJJ'.\n ($this->oldTaxTableExists() == true ? ', st.BEMERKUNG AS BEMERKUNG' : '').' ';\n $from = $this->getTableName('BHSTEUER').' bh'. \n ($this->oldTaxTableExists() == true ? ' LEFT JOIN '.$this->getTableName('STEUER').' st ON bh.STEUERSATZCODE LIKE st.CODE' : '');\n $where = 'bh.NUMMER = '.intval($uid);\n $groupBy = '';\n $orderBy = '';\n $limit = '';\n \n // exec query using TYPO3 DB API\n $res = $this->gsaDbObj->exec_SELECTquery($select, $from, $where, $groupBy, $orderBy, $limit);\n if ($res == false) {\n throw new tx_pttools_exception('Query failed', 1, $this->gsaDbObj->sql_error());\n }\n \n $a_row = $this->gsaDbObj->sql_fetch_assoc($res);\n $this->gsaDbObj->sql_free_result($res);\n \n // if enabled, do charset conversion of all non-binary string data \n if ($this->charsetConvEnabled == 1) {\n $a_row = tx_pttools_div::iconvArray($a_row, $this->gsaCharset, $this->siteCharset);\n }\n \n trace($a_row); \n return $a_row;\n \n }", "public function getAlias()\n {\n return 'tax';\n }", "function get_tipos_empresas() {\n\t\t$query = $this -> db -> select() -> from('tipo_empresa') -> get();\n\t\tif ($query -> num_rows() > 0) {\n\t\t\treturn $query;\n\t\t}\n\t}", "public function getNominaEtau2($id,$idg)\n { \n $result=$this->adapter->query('select distinct c.idNom, c.id, a.idCon, \n case a.cCosEmp when 0 then a.idCcos\n when 1 then b.idCcos End as idCcos, \n case a.horasCal when 0 then 0 \n when 1 then (c.dias*'.$this->horasDias.') End as horas, 1, \n case when g.valor=2 then \n case when g.tipo = 1 then a.valor else 0 End\t\t\t\t \n when g.valor=1 then 0 \n End as dev, \n case when g.valor=2 then \n case when g.tipo = 2 then a.valor else 0 End\t\t\t\t \n when g.valor=1 then 0 \n\t\tEnd as ded, h.formula, c.dias, g.tipo , b.id as idEmp , g.idFor , a.diasLab, c.diasVac, a.vaca, \n case when ii.codigo is null then \"\" else ii.codigo end as nitTer \n from n_tip_auto_i a inner join a_empleados b on a.idTauto=b.idTau2\n inner join n_nomina_e c on b.id=c.idEmp \n inner join n_nomina d on d.id=c.idNom\n inner join n_tip_auto_tn e on e.idTnom=d.idTnom \n inner join n_tip_calendario f on f.id=d.idCal\n inner join n_conceptos g on g.id=a.idCon\n inner join n_formulas h on h.id=g.idFor\n left join n_terceros_s i on i.id = g.idTer \n left join n_terceros ii on ii.id = i.idTer \n WHERE not exists (SELECT null from n_nomina_e_d \n where c.id=idInom and a.idCon=idConc and a.idCcos=idCcos and tipo=1 ) \n and d.estado=0 and b.idGrup='.$idg.' and c.idNom='.$id,Adapter::QUERY_MODE_EXECUTE);\n $datos=$result->toArray();\n return $datos; \n }", "public function get_trainees_by_taxcode() {\n $query_string = htmlspecialchars($_GET['query'], ENT_QUOTES, 'UTF-8');\n $result = $this->classtraineemodel->trainee_user_list_autocomplete($query_string);\n print json_encode($result);\n exit;\n }", "function get_reptotal_ventas($fecha1, $fecha2, $usuario_id)\r {\r if($usuario_id == 0){\r $cadusuario = \"\";\r }else{\r $cadusuario = \" and i.usuario_id = \".$usuario_id.\" \";\r }\r $ingresos = $this->db->query(\"\r select\r SUM(d.detalleven_total) as total\r from\r\r venta v, detalle_venta d, producto p\r\r where\r\r date(v.venta_fecha) >= '\".$fecha1.\"'\r and date(v.venta_fecha) <= '\".$fecha2.\"'\r and v.forma_id = 1\r and v.venta_id = d.venta_id\r and d.producto_id = p.producto_id \r \".$cadusuario.\" \r order by v.venta_fecha desc, v.venta_hora desc\r \")->row_array();\r \r return $ingresos['total'];\r }", "public function getNominaEtau3($id,$idg)\n { \n $result=$this->adapter->query('select distinct c.idNom, c.id, a.idCon, \n case a.cCosEmp when 0 then a.idCcos\n when 1 then b.idCcos End as idCcos, \n case a.horasCal when 0 then 0 \n when 1 then (c.dias*'.$this->horasDias.') End as horas, 1, \n case when g.valor=2 then \n case when g.tipo = 1 then a.valor else 0 End\t\t\t\t \n when g.valor=1 then 0 \n End as dev, \n case when g.valor=2 then \n case when g.tipo = 2 then a.valor else 0 End\t\t\t\t \n when g.valor=1 then 0 \n\t\tEnd as ded, h.formula, c.dias, g.tipo , b.id as idEmp , g.idFor , a.diasLab, c.diasVac, a.vaca, \n case when ii.codigo is null then \"\" else ii.codigo end as nitTer \n from n_tip_auto_i a inner join a_empleados b on a.idTauto=b.idTau3\n inner join n_nomina_e c on b.id=c.idEmp \n inner join n_nomina d on d.id=c.idNom\n inner join n_tip_auto_tn e on e.idTnom=d.idTnom \n inner join n_tip_calendario f on f.id=d.idCal\n inner join n_conceptos g on g.id=a.idCon\n inner join n_formulas h on h.id=g.idFor\n left join n_terceros_s i on i.id = g.idTer \n left join n_terceros ii on ii.id = i.idTer \n WHERE not exists (SELECT null from n_nomina_e_d \n where c.id=idInom and a.idCon=idConc and a.idCcos=idCcos and tipo=1 ) \n and d.estado=0 and b.idGrup='.$idg.' and c.idNom='.$id,Adapter::QUERY_MODE_EXECUTE);\n $datos=$result->toArray();\n return $datos; \n }", "public function getNominaEtau4($id,$idg)\n { \n $result=$this->adapter->query('select distinct c.idNom, c.id, a.idCon, \n case a.cCosEmp when 0 then a.idCcos\n when 1 then b.idCcos End as idCcos, \n case a.horasCal when 0 then 0 \n when 1 then (c.dias*'.$this->horasDias.') End as horas, 1, \n case when g.valor=2 then \n case when g.tipo = 1 then a.valor else 0 End\t\t\t\t \n when g.valor=1 then 0 \n End as dev, \n case when g.valor=2 then \n case when g.tipo = 2 then a.valor else 0 End\t\t\t\t \n when g.valor=1 then 0 \n\t\tEnd as ded, h.formula, c.dias, g.tipo , b.id as idEmp , g.idFor , a.diasLab, c.diasVac, a.vaca,\n case when ii.codigo is null then \"\" else ii.codigo end as nitTer \n from n_tip_auto_i a inner join a_empleados b on a.idTauto=b.idTau4 \n inner join n_nomina_e c on b.id=c.idEmp \n inner join n_nomina d on d.id=c.idNom\n inner join n_tip_auto_tn e on e.idTnom=d.idTnom \n inner join n_tip_calendario f on f.id=d.idCal\n inner join n_conceptos g on g.id=a.idCon\n inner join n_formulas h on h.id=g.idFor\n left join n_terceros_s i on i.id = g.idTer \n left join n_terceros ii on ii.id = i.idTer \n WHERE not exists (SELECT null from n_nomina_e_d \n where c.id=idInom and a.idCon=idConc and a.idCcos=idCcos and tipo=1 ) \n and d.estado=0 and b.idGrup='.$idg.' and c.idNom='.$id,Adapter::QUERY_MODE_EXECUTE);\n $datos=$result->toArray();\n return $datos; \n }", "public function getTitulosSerieA($connumero, $dataRescisao) {\r\n\r\n $sql = \"\r\n SELECT \r\n SUM(nfivl_item) as valorTotal, \r\n nfloid, \r\n titoid as codigo,\r\n COALESCE(to_char(titdt_pagamento,'dd/mm/yyyy'), '') as titdt_pagamento, \r\n to_char(titdt_vencimento,'dd/mm/yyyy') as titdt_vencimento,\r\n ('now'::date-titdt_vencimento) as atraso,\r\n connumero \r\n FROM \r\n nota_fiscal \r\n INNER JOIN \r\n clientes ON clioid = nflclioid \r\n INNER JOIN\r\n contrato ON conclioid = clioid \r\n INNER JOIN \r\n nota_fiscal_item ON nfinfloid = nfloid AND connumero = nficonoid \r\n INNER JOIN\r\n obrigacao_financeira ON nfiobroid = obroid \r\n LEFT JOIN \r\n titulo ON titnfloid = nfloid \r\n LEFT JOIN \r\n forma_cobranca ON titformacobranca = forcoid \r\n WHERE \r\n connumero = $connumero \r\n AND \r\n forcoid <> 62 \r\n AND \r\n nfiserie = 'A' \r\n AND \r\n ((EXTRACT(MONTH FROM nfldt_referencia) >= EXTRACT(MONTH FROM '$dataRescisao'::date) \r\n AND \r\n EXTRACT(YEAR FROM nfldt_referencia) >= EXTRACT(YEAR FROM '$dataRescisao'::date)) \r\n OR \r\n ((EXTRACT(MONTH FROM nfldt_referencia) <= EXTRACT(MONTH FROM '$dataRescisao'::date) \r\n AND \r\n EXTRACT(YEAR FROM nfldt_referencia) > EXTRACT(YEAR FROM '$dataRescisao'::date)))) \r\n AND \r\n obroftoid <> 6\r\n AND\r\n obrofgoid <> 17\r\n AND \r\n nfldt_cancelamento is null \r\n GROUP BY \r\n nfloid,\r\n titdt_pagamento,\r\n titdt_vencimento,\r\n titoid,\r\n connumero\";\r\n \r\n $result = $this->_fetchAll(pg_query($this->_adapter, $sql));\r\n\r\n return $result; \r\n }", "public function tf_query($data=array(),$data_query= array())\n{\n\tfor ($i=0; $i <count($data) ; $i++) { \n\n\t\t// if ($i==0) { data\n\t\t\t$term_query[$i] = array_unique($data[$i][1]);//menghilangkan data kembar dari data query form // data dari database\n\t\t// }\n\t}\n\n\t$j=0;\n\tfor ($k=0; $k <count($term_query) ; $k++) { \n\t\tforeach ($term_query[$k] as $value) {\n\t\t\t$query[$j] = $value;\n\t\t\t$j++;\n\t\t}\n\t}\n\n\t$term_unik = array_unique($query);\n\n\t$b = 0;\n\tforeach ($term_unik as $value1) {\n\t\t$term_urut[$b]= $value1;\n\t\t$b++;\n\t}\n\t\n\t//batas term\n\n\t//mencari tf\n\tfor ($m=0; $m <count($data_query) ; $m++) { \n\t\tfor ($n=0; $n <count($term_urut) ; $n++) { \n\t\t// foreach ($term_query as $kunci => $isi) {\n\t\t\t\t$angka = (in_array($term_urut[$n], $data_query[$m][1])) ? 1 : 0 ;\n\t\t\t\t// $tf[$m][$n]=array(\"index_term\"=>$n,\"nilai_tf\"=>$angka);\n\t\t\t\t$tf[$m][$n]=array(\"nilai_tf\"=>$angka);\n\t\t\t// }\n\t\t}\t\t\n\t}//batas mencari tf\n\treturn $tf;\n}", "function reporteCotizacion(){\n\t\t$this->procedimiento='adq.f_cotizacion_sel';\n\t\t$this->transaccion='ADQ_COTREP_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t$this->setCount(false);\n\t\t\n\t\t$this->setParametro('id_cotizacion','id_cotizacion','int4');\n\t\t\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('estado','varchar');\n\t\t$this->captura('fecha_adju','date');\n\t\t$this->captura('fecha_coti','date');\n\t\t$this->captura('fecha_entrega','date');\n\t\t$this->captura('fecha_venc','date');\n\t\t$this->captura('id_moneda','int4');\n\t\t$this->captura('moneda','varchar');\n\t\t$this->captura('id_proceso_compra','int4');\n\t\t$this->captura('codigo_proceso','varchar');\n\t\t$this->captura('num_cotizacion','varchar');\n\t\t$this->captura('num_tramite','varchar');\n\t\t$this->captura('id_proveedor','int4');\n\t\t$this->captura('desc_proveedor','varchar');\n\t\t$this->captura('id_persona','int4');\n\t\t$this->captura('id_institucion','int4');\n\t\t$this->captura('dir_per', 'varchar');\n\t\t$this->captura('tel_per1', 'varchar');\n\t\t$this->captura('tel_per2', 'varchar');\n\t\t$this->captura('cel_per','varchar');\n\t\t$this->captura('correo','varchar');\n\t\t$this->captura('nombre_ins','varchar');\n\t\t$this->captura('cel_ins','varchar');\n\t\t$this->captura('dir_ins','varchar');\n\t\t$this->captura('fax','varchar');\n\t\t$this->captura('email_ins','varchar');\n\t\t$this->captura('tel_ins1','varchar');\n\t\t$this->captura('tel_ins2','varchar');\t\t\n\t\t$this->captura('lugar_entrega','varchar');\n\t\t$this->captura('nro_contrato','varchar');\t\t\n\t\t$this->captura('numero_oc','varchar');\n\t\t$this->captura('obs','text');\n\t\t$this->captura('tipo_entrega','varchar');\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 get_notpaid_notrequired_taxcode() {\n $matches = array();\n $query_string = htmlspecialchars($_POST['q'], ENT_QUOTES, 'UTF-8');\n $type = htmlspecialchars($_POST['type'], ENT_QUOTES, 'UTF-8');\n if($type == 'taxcode') {\n $result = $this->classtraineemodel->get_notpaid_notrequired_taxcode($this->tenant_id, $query_string, '');\n if ($result) {\n foreach ($result as $row) {\n $matches[] = array(\n 'key' => $row->user_id,\n 'label' => $row->tax_code . ' (Name: ' . $row->first_name . ' ' . $row->last_name . ')',\n 'value' => $row->tax_code\n );\n }\n }\n }else { \n $result = $this->classtraineemodel->get_notpaid_notrequired_taxcode($this->tenant_id, '', $query_string);\n if ($result) {\n foreach ($result as $row) {\n $matches[] = array(\n 'key' => $row->user_id,\n 'label' => $row->first_name . ' ' . $row->last_name . ' (NRIC: ' . $row->tax_code . ')',\n 'value' => $row->first_name\n );\n }\n }\n } \n echo json_encode($matches);\n exit();\n }", "public function CarregaTrimestre($aDados)\r\n {\r\n $aDados = (array) $aDados;\r\n \r\n $idplanificacion = $aDados['cplanificacion'];\r\n $pais = $aDados['idPais'];\r\n $sede = $aDados['idSede'];\r\n $indicador = $aDados['idIndicador'];\r\n \r\n $model = Container::getModel(\"TInforme\");\r\n \r\n //Busca Trismestre\r\n $result = $model->BuscaTrimestre($idplanificacion, $pais, $sede, $indicador);\r\n \r\n // Acumulado\r\n if($result[0]->id_tipo == 1)\r\n {\r\n //Dados para o Chart Plan\r\n $T1Plan = $result[0]->enero_plan + $result[0]->febrero_plan + $result[0]->marzo_plan;\r\n $T2Plan = $result[0]->abril_plan + $result[0]->mayo_plan + $result[0]->junio_plan;\r\n $T3Plan = $result[0]->julio_plan + $result[0]->agosto_plan + $result[0]->septiembre_plan;\r\n $T4Plan = $result[0]->octubre_plan + $result[0]->noviembre_plan + $result[0]->diciembre_plan;\r\n \r\n //Dados para o Chart Real\r\n $T1Real = $result[0]->enero_real + $result[0]->febrero_real + $result[0]->marzo_real;\r\n $T2Real = $result[0]->abril_real + $result[0]->mayo_real + $result[0]->junio_real;\r\n $T3Real = $result[0]->julio_real + $result[0]->agosto_real + $result[0]->septiembre_real;\r\n $T4Real = $result[0]->octubre_real + $result[0]->noviembre_real + $result[0]->diciembre_real;\r\n }\r\n \r\n // Minimo\r\n if($result[0]->id_tipo == 2)\r\n {\r\n $aT1 = array($result[0]->enero_plan, $result[0]->febrero_plan, $result[0]->marzo_plan);\r\n $aT2 = array($result[0]->abril_plan, $result[0]->mayo_plan, $result[0]->junio_plan);\r\n $aT3 = array($result[0]->julio_plan, $result[0]->agosto_plan, $result[0]->septiembre_plan);\r\n $aT4 = array($result[0]->octubre_plan, $result[0]->noviembre_plan, $result[0]->diciembre_plan);\r\n \r\n //Dados para o Chart Plan\r\n $T1Plan = min($aT1);\r\n $T2Plan = min($aT2);\r\n $T3Plan = min($aT3);\r\n $T4Plan = min($aT4);\r\n \r\n $aR1 = array($result[0]->enero_real, $result[0]->febrero_real, $result[0]->marzo_real);\r\n $aR2 = array($result[0]->abril_real, $result[0]->mayo_real, $result[0]->junio_real);\r\n $aR3 = array($result[0]->julio_real, $result[0]->agosto_real, $result[0]->septiembre_real);\r\n $aR4 = array($result[0]->octubre_real, $result[0]->noviembre_real, $result[0]->diciembre_real);\r\n \r\n //Dados para o Chart Real\r\n $T1Real = min($aR1);\r\n $T2Real = min($aR2);\r\n $T3Real = min($aR3);\r\n $T4Real = min($aR4);\r\n }\r\n \r\n // Promedio\r\n if($result[0]->id_tipo == 3)\r\n {\r\n //Dados para o Chart Plan\r\n $T1Plan = ($result[0]->enero_plan + $result[0]->febrero_plan + $result[0]->marzo_plan) / 3;\r\n $T2Plan = ($result[0]->abril_plan + $result[0]->mayo_plan + $result[0]->junio_plan) / 3;\r\n $T3Plan = ($result[0]->julio_plan + $result[0]->agosto_plan + $result[0]->septiembre_plan) / 3;\r\n $T4Plan = ($result[0]->octubre_plan + $result[0]->noviembre_plan + $result[0]->diciembre_plan) / 3;\r\n \r\n //Dados para o Chart Real\r\n $T1Real = ($result[0]->enero_real + $result[0]->febrero_real + $result[0]->marzo_real) /3;\r\n $T2Real = ($result[0]->abril_real + $result[0]->mayo_real + $result[0]->junio_real) /3;\r\n $T3Real = ($result[0]->julio_real + $result[0]->agosto_real + $result[0]->septiembre_real) /3;\r\n $T4Real = ($result[0]->octubre_real + $result[0]->noviembre_real + $result[0]->diciembre_real) /3;\r\n }\r\n \r\n // Ultimo\r\n if($result[0]->id_tipo == 4)\r\n {\r\n $aT1 = array($result[0]->enero_plan, $result[0]->febrero_plan, $result[0]->marzo_plan);\r\n $aT2 = array($result[0]->abril_plan, $result[0]->mayo_plan, $result[0]->junio_plan);\r\n $aT3 = array($result[0]->julio_plan, $result[0]->agosto_plan, $result[0]->septiembre_plan);\r\n $aT4 = array($result[0]->octubre_plan, $result[0]->noviembre_plan, $result[0]->diciembre_plan);\r\n \r\n //Dados para o Chart Plan\r\n $T1Plan = max($aT1);\r\n $T2Plan = max($aT2);\r\n $T3Plan = max($aT3);\r\n $T4Plan = max($aT4);\r\n \r\n $aR1 = array($result[0]->enero_real, $result[0]->febrero_real, $result[0]->marzo_real);\r\n $aR2 = array($result[0]->abril_real, $result[0]->mayo_real, $result[0]->junio_real);\r\n $aR3 = array($result[0]->julio_real, $result[0]->agosto_real, $result[0]->septiembre_real);\r\n $aR4 = array($result[0]->octubre_real, $result[0]->noviembre_real, $result[0]->diciembre_real);\r\n \r\n //Dados para o Chart Real\r\n $T1Real = max($aR1);\r\n $T2Real = max($aR2);\r\n $T3Real = max($aR3);\r\n $T4Real = max($aR4);\r\n }\r\n \r\n //tudo junto pq deu merda separado\r\n echo json_encode(array(\"plan\" => $T1Plan . ',' . $T2Plan . ',' . $T3Plan. ',' . $T4Plan . ',' . $T1Real. ',' . $T2Real. ',' . $T3Real. ',' . $T4Real));\r\n // echo json_encode(array(\"real\" => $T1Real. ',' . $T2Real. ',' . $T3Real. ',' . $T4Real));\r\n }", "public function getDados() {\n\n \t/**\n \t * Configurações do período informado.\n \t */\n $oDaoPeriodo = db_utils::getDao(\"periodo\");\n $sSqlDadosPeriodo = $oDaoPeriodo->sql_query_file($this->iCodigoPeriodo);\n $rsPeriodo = db_query($sSqlDadosPeriodo);\n $oDadosPeriodo = db_utils::fieldsMemory($rsPeriodo, 0);\n\n /**\n * Configurações do tipo de instituição da prefeitura ou câmara.\n */\n $oDaoDbConfig = db_utils::getDao(\"db_config\");\n $sWhere = \"codigo in({$this->getInstituicoes()})\";\n $sSqlDbConfig = $oDaoDbConfig->sql_query_file(null, 'db21_tipoinstit', null, $sWhere);\n $rsSqlDbConfig = $oDaoDbConfig->sql_record($sSqlDbConfig);\n $INumRowsDbConfig = $oDaoDbConfig->numrows;\n\n $iLimiteMaximo = 0;\n $iLimitePrudencial = 0;\n $nValorDespesaTotalPessoal = 0;\n $nTotalRCL = 0;\n $lTemPrefeitura = false;\n $lTemCamara = false;\n $lTemMinisterio = false;\n\n /**\n * Verifica o db21_tipoinstit para ver se é prefeitura ou câmara.\n */\n for ($iInd = 0; $iInd < $INumRowsDbConfig; $iInd++) {\n\n $oMunicipio = db_utils::fieldsMemory($rsSqlDbConfig, $iInd);\n\n if ($oMunicipio->db21_tipoinstit == 1) {\n $lTemPrefeitura = true;\n } else if ($oMunicipio->db21_tipoinstit == 2) {\n $lTemCamara = true;\n } else if ($oMunicipio->db21_tipoinstit == 101) {\n \t$lTemMinisterio = true;\n }\n }\n\n /**\n * Verifica o limite máximo (incisos I, II e III, art. 20 da LRF) {$iLimiteMaximo}%\n */\n if ($lTemPrefeitura == true && $lTemCamara == true) {\n\n if ($iLimiteMaximo == 0){\n $iLimiteMaximo = 60;\n $iLimiteMaximoAlerta = 54;\n\n }\n } else if ($lTemPrefeitura == true && $lTemCamara == false) {\n\n if ($iLimiteMaximo == 0) {\n\n $iLimiteMaximo = 54;\n $iLimiteMaximoAlerta = 48.6;\n }\n } else if ($lTemPrefeitura == false && $lTemCamara == true) {\n\n if ($iLimiteMaximo == 0) {\n $iLimiteMaximo = 6;\n $iLimiteMaximoAlerta = 5.4;\n }\n } else if ($lTemMinisterio) {\n\n if ($iLimiteMaximo == 0) {\n $iLimiteMaximo = 2;\n }\n }\n\n /**\n * Verifica o limite prudencial (parágrafo único, art. 22 da LRF) {$iLimitePrudencial}%\n */\n if ($iLimitePrudencial == 0) {\n $iLimitePrudencial = $iLimiteMaximo*95/100;\n }\n\n /**\n * Quadro de despesa bruta.\n */\n $oDespesaBruta = new stdClass();\n $oDespesaBruta->quadrodescricao = 'DESPESA BRUTA COM PESSOAL (I)';\n $oDespesaBruta->exercicio = 0;\n $oDespesaBruta->inscritas = 0;\n $oDespesaBruta->linhas = array();\n $oDespesaBruta->colunameses = $this->getDadosColuna();\n $oDespesaBruta->valorapurado = 0;\n $oDespesaBruta->percentuallimite = 0;\n $oDespesaBruta->linhatotalizadora = true;\n\n /**\n * Quadro de despesa não computadas.\n */\n $oDespesaNaoComputada = new stdClass();\n $oDespesaNaoComputada->quadrodescricao = 'DESPESAS NÃO COMPUTADAS (§ 1o do art. 19 da LRF) (II)';\n $oDespesaNaoComputada->exercicio = 0;\n $oDespesaNaoComputada->inscritas = 0;\n $oDespesaNaoComputada->linhas = array();\n $oDespesaNaoComputada->colunameses = $this->getDadosColuna();\n $oDespesaNaoComputada->valorapurado = 0;\n $oDespesaNaoComputada->percentuallimite = 0;\n $oDespesaNaoComputada->linhatotalizadora = true;\n\n /**\n * Quadro de despesa líquida.\n */\n $oDespesaLiquida = new stdClass();\n $oDespesaLiquida->quadrodescricao = 'DESPESA LÍQUIDA COM PESSOAL (III) = (I - II)';\n $oDespesaLiquida->exercicio = 0;\n $oDespesaLiquida->inscritas = 0;\n $oDespesaLiquida->linhas = array();\n $oDespesaLiquida->colunameses = $this->getDadosColuna();\n $oDespesaLiquida->valorapurado = 0;\n $oDespesaLiquida->percentuallimite = 0;\n $oDespesaLiquida->linhatotalizadora = true;\n\n /**\n * Quadro de despesa total com pessoal.\n */\n $oDespesaTotalComPessoal = new stdClass();\n $oDespesaTotalComPessoal->quadrodescricao = 'DESPESA TOTAL COM PESSOAL - DTP(V) = (IIIa + IIIb)';\n $oDespesaTotalComPessoal->exercicio = 0;\n $oDespesaTotalComPessoal->inscritas = 0;\n $oDespesaTotalComPessoal->linhas = array();\n $oDespesaTotalComPessoal->colunameses = array();\n $oDespesaTotalComPessoal->valorapurado = 0;\n $oDespesaTotalComPessoal->percentuallimite = 0;\n $oDespesaTotalComPessoal->linhatotalizadora = true;\n $oDespesaTotalComPessoal->percentualsobrercl = 0;\n\n /**\n * Quadro de receita corrente líquida.\n */\n $oReceitaTotalCorrenteLiquida = new stdClass();\n $oReceitaTotalCorrenteLiquida->quadrodescricao = 'RECEITA CORRENTE LÍQUIDA - RCL (IV)';\n $oReceitaTotalCorrenteLiquida->exercicio = 0;\n $oReceitaTotalCorrenteLiquida->inscritas = 0;\n $oReceitaTotalCorrenteLiquida->linhas = array();\n $oReceitaTotalCorrenteLiquida->colunameses = array();\n $oReceitaTotalCorrenteLiquida->valorapurado = 0;\n $oReceitaTotalCorrenteLiquida->percentuallimite = 0;\n $oReceitaTotalCorrenteLiquida->linhatotalizadora = false;\n\n /**\n * Quadro de despesa total com pessoal sem a RCL.\n */\n $oDespesaTotalComPessoalSemRCL = new stdClass();\n $oDespesaTotalComPessoalSemRCL->quadrodescricao = 'DESPESA TOTAL COM PESSOAL - DTP (V) = (III a + III b)';\n $oDespesaTotalComPessoalSemRCL->exercicio = 0;\n $oDespesaTotalComPessoalSemRCL->inscritas = 0;\n $oDespesaTotalComPessoalSemRCL->linhas = array();\n $oDespesaTotalComPessoalSemRCL->colunameses = array();\n $oDespesaTotalComPessoalSemRCL->valorapurado = 0;\n $oDespesaTotalComPessoalSemRCL->percentuallimite = 0;\n $oDespesaTotalComPessoalSemRCL->linhatotalizadora = false;\n\n /**\n * Quadro de limite máximo.\n */\n $oLimiteMaximo = new stdClass();\n $oLimiteMaximo->quadrodescricao = 'LIMITE MÁXIMO (VI) (incisos I, II e III, art. 20 da LRF)';\n $oLimiteMaximo->exercicio = 0;\n $oLimiteMaximo->inscritas = 0;\n $oLimiteMaximo->linhas = array();\n $oLimiteMaximo->colunameses = array();\n $oLimiteMaximo->valorapurado = 0;\n $oLimiteMaximo->percentuallimite = 0;\n $oLimiteMaximo->linhatotalizadora = false;\n\n /**\n * Quadro de limite prudencial.\n */\n $oLimitePrudencial = new stdClass();\n $oLimitePrudencial->quadrodescricao = 'LIMITE PRUDENCIAL (VII) = (0,95 x VI) (parágrafo único do art. 22 da LRF)';\n $oLimitePrudencial->exercicio = 0;\n $oLimitePrudencial->inscritas = 0;\n $oLimitePrudencial->linhas = array();\n $oLimitePrudencial->colunameses = array();\n $oLimitePrudencial->valorapurado = 0;\n $oLimitePrudencial->percentuallimite = 0;\n $oLimitePrudencial->linhatotalizadora = false;\n\n $oLimiteAlerta = new stdClass();\n $oLimiteAlerta->quadrodescricao = 'LIMITE DE ALERTA (VIII) = (0,90 x VI) (inciso II do §1º do art. 59 da LRF)';\n $oLimiteAlerta->exercicio = 0;\n $oLimiteAlerta->inscritas = 0;\n $oLimiteAlerta->linhas = array();\n $oLimiteAlerta->colunameses = array();\n $oLimiteAlerta->valorapurado = 0;\n $oLimiteAlerta->percentuallimite = 0;\n $oLimiteAlerta->linhatotalizadora = false;\n\n $aDadosMeses = $this->getDadosColuna();\n /**\n * Percorremos as linhas cadastradas no relatorio, e adicionamos os valores cadastrados manualmente.\n */\n $aLinhasRelatorio = $this->oRelatorioLegal->getLinhasCompleto();\n for ($iLinha = 1; $iLinha <= 7; $iLinha++) {\n\n $aLinhasRelatorio[$iLinha]->setPeriodo($this->iCodigoPeriodo);\n $aColunasRelatorio = $aLinhasRelatorio[$iLinha]->getCols($this->iCodigoPeriodo);\n\n /**\n * Monta o Object com os dados de cada linha interna do relatório.\n */\n $oLinha = new stdClass();\n switch ($iLinha) {\n\n \tcase 1:\n \t $sDescricao = ' Pessoal Ativo';\n \t break;\n\n case 2:\n $sDescricao = ' Pessoal Inativo e Pensionistas';\n break;\n\n case 3:\n $sDescricao = ' Outras despesas de pessoal decorrentes de contratos de terceirização (§ 1º do art. 18 da LRF)';\n break;\n\n case 4:\n $sDescricao = ' Indenizações por Demissão e Incentivos à Demissão Voluntária';\n break;\n\n case 5:\n $sDescricao = ' Decorrentes de Decisão Judicial de período anterior ao da apuração';\n break;\n\n case 6:\n $sDescricao = ' Despesas de Exercícios Anteriores de período anterior ao da apuração';\n break;\n\n case 7:\n $sDescricao = ' Inativos e Pensionistas com Recursos Vinculados';\n break;\n }\n\n $oLinha->descricao = $sDescricao;\n $oLinha->inscritas = 0;\n $oLinha->exercicio = 0;\n $oLinha->colunameses = $this->getDadosColuna();\n $oParametros = $aLinhasRelatorio[$iLinha]->getParametros($this->iAnoUsu,\n $this->getInstituicoes());\n /**\n * Verifica nas configurações se possui valores configurados por linha.\n */\n $aValoresColunasLinhas = $aLinhasRelatorio[$iLinha]->getValoresColunas(null, null,\n $this->getInstituicoes(),\n $this->iAnoUsu);\n foreach($aValoresColunasLinhas as $oValor) {\n\n \tif (isset($oLinha->colunameses[$oValor->colunas[0]->o117_valor])) {\n\n $oLinha->colunameses[$oValor->colunas[0]->o117_valor]->nValor += $oValor->colunas[1]->o117_valor;\n $oLinha->exercicio += $oValor->colunas[1]->o117_valor;\n $oLinha->inscritas += $oValor->colunas[2]->o117_valor;\n }\n }\n\n /**\n * Percore as colunas do período dos últimos 12 mêses.\n */\n foreach ($oLinha->colunameses as $sChaveMes => $oDadosMes) {\n\n \t/**\n \t * Informa as datas inicial e final do período.\n \t */\n $sDataInicialPeriodo = \"{$oDadosMes->iAno}-{$oDadosMes->iMes}-01\";\n $sDataFinalPeriodo = \"{$oDadosMes->iAno}-{$oDadosMes->iMes}-{$oDadosMes->iDiaFim}\";\n\n /**\n * Executa o saldo da dotação.\n */\n $sWhereDespesa = \"o58_instit in ({$this->getInstituicoes()})\";\n $rsDespesa = db_dotacaosaldo(8, 2, 3, true, $sWhereDespesa, $oDadosMes->iAno,\n $sDataInicialPeriodo, $sDataFinalPeriodo);\n\n /**\n * Verifica o saldo das contas por linha e mês do relatório\n */\n for ($iDespesa = 0; $iDespesa < pg_numrows($rsDespesa); $iDespesa++) {\n\n $oDespesa = db_utils::fieldsmemory($rsDespesa, $iDespesa);\n\n /**\n * Percorre as contas configuradas.\n */\n foreach ($oParametros->contas as $oConta) {\n\n $oVerificacao = $aLinhasRelatorio[$iLinha]->match($oConta, $oParametros->orcamento, $oDespesa, 2);\n if ($oVerificacao->match) {\n\n $oDespesaValores = clone $oDespesa;\n if ($oVerificacao->exclusao) {\n\n /**\n * Somas apenas os valor liquidados.\n */\n $oDespesaValores->liquidado *= -1;\n\n /**\n * Soma os demais valores\n */\n $oDespesaValores->liquidado_acumulado *= -1;\n $oDespesaValores->empenhado_acumulado *= -1;\n $oDespesaValores->anulado_acumulado *= -1;\n }\n\n $oLinha->colunameses[$sChaveMes]->nValor += $oDespesaValores->liquidado;\n $oLinha->exercicio += $oDespesaValores->liquidado;\n\n /**\n * Verifica totalização das inscritas do último período.\n */\n if ($oDadosPeriodo->o114_sigla == \"3Q\" || $oDadosPeriodo->o114_sigla == \"2S\"\n || $oDadosPeriodo->o114_sigla == \"DEZ\") {\n\n $aChaveMesColunaMeses = array_keys($oLinha->colunameses);\n if (trim($aChaveMesColunaMeses[11]) == trim($sChaveMes)) {\n\n $oLinha->inscritas += round(\n $oDespesaValores->empenhado_acumulado -\n $oDespesaValores->anulado_acumulado -\n $oDespesaValores->liquidado_acumulado, 2);\n }\n }\n }\n }\n }\n }\n\n /**\n * Monta as linhas dos quadros do demostrativo.\n */\n if ($iLinha <= 3) {\n $oDespesaBruta->linhas[$iLinha] = $oLinha;\n } else if ($iLinha >= 4) {\n $oDespesaNaoComputada->linhas[$iLinha] = $oLinha;\n }\n }\n\n /*\n * Calcula linhas totalizadoras da despesa bruta.\n */\n foreach ($oDespesaBruta->linhas as $oDadosLinhaDespesaBruta) {\n\n $oDespesaBruta->inscritas += $oDadosLinhaDespesaBruta->inscritas;\n $oDespesaBruta->exercicio += $oDadosLinhaDespesaBruta->exercicio;\n foreach ($oDadosLinhaDespesaBruta->colunameses as $sChaveMesDespesaBruta => $oDadosMesDespesaBruta) {\n\n \tif (isset($oDespesaBruta->colunameses[$sChaveMesDespesaBruta])) {\n $oDespesaBruta->colunameses[$sChaveMesDespesaBruta]->nValor += $oDadosMesDespesaBruta->nValor;\n \t}\n }\n }\n\n /**\n * Calcula linhas totalizadoras da despesa não computada.\n */\n foreach ($oDespesaNaoComputada->linhas as $oDadosLinhaDespesaNaoComputada) {\n\n $oDespesaNaoComputada->inscritas += $oDadosLinhaDespesaNaoComputada->inscritas;\n $oDespesaNaoComputada->exercicio += $oDadosLinhaDespesaNaoComputada->exercicio;\n foreach ($oDadosLinhaDespesaNaoComputada->colunameses as $sChaveMesDespesaNaoComputada\n => $oDadosMesDespesaNaoComputada) {\n\n if (isset($oDespesaNaoComputada->colunameses[$sChaveMesDespesaNaoComputada])) {\n $oDespesaNaoComputada->colunameses[$sChaveMesDespesaNaoComputada]\n ->nValor += $oDadosMesDespesaNaoComputada->nValor;\n }\n }\n }\n\n /**\n * Calcula linhas totalizadoras da despesa liquída.\n */\n $oDespesaLiquida->inscritas = ($oDespesaBruta->inscritas - $oDespesaNaoComputada->inscritas);\n $oDespesaLiquida->exercicio = ($oDespesaBruta->exercicio - $oDespesaNaoComputada->exercicio);\n foreach ($oDespesaLiquida->colunameses as $sChaveMesDespesaLiquida => $oDadosMesDespesaLiquida) {\n\n \tif (isset($oDespesaLiquida->colunameses[$sChaveMesDespesaLiquida])) {\n \t\t$oDespesaLiquida->colunameses[$sChaveMesDespesaLiquida]->nValor = ( $oDespesaBruta\n \t\t ->colunameses[$sChaveMesDespesaLiquida]\n \t\t ->nValor\n \t\t - $oDespesaNaoComputada\n \t\t ->colunameses[$sChaveMesDespesaLiquida]\n \t\t ->nValor );\n \t}\n }\n\n /**\n * Verifica valor RCL nas configurações da linha 8.\n */\n $aLinhasRelatorio[8]->setPeriodo($this->iCodigoPeriodo);\n $aValoresColunasLinhas = $aLinhasRelatorio[8]->getValoresColunas(null, null,\n $this->getInstituicoes(),\n $this->iAnoUsu);\n foreach($aValoresColunasLinhas as $oValor) {\n\n if (isset($oValor->colunas[0]->o117_valor)) {\n $nTotalRCL += $oValor->colunas[0]->o117_valor;\n }\n }\n\n if ($nTotalRCL == 0) {\n /**\n * Para o cálculo da RCL, a base de cálculo\n * deve ser feita por todas as instituições.\n */\n $rsInstituicoes = db_query(\"SELECT codigo FROM db_config;\");\n $oInstituicoes = db_utils::getCollectionByRecord($rsInstituicoes);\n $aInstituicoes = array();\n foreach ($oInstituicoes as $oInstituicao){\n $aInstituicoes[]= $oInstituicao->codigo;\n }\n $sInstituicoes = implode(\",\",$aInstituicoes);\n\n\t /**\n\t * Calcula RCL - duplicaReceitaaCorrenteLiquida.\n\t */\n $dtInicialAnterior = ($this->iAnoUsu-1).\"-01-01\";\n $dtFinalAnterior = ($this->iAnoUsu-1).\"-12-31\";\n\n duplicaReceitaaCorrenteLiquida($this->iAnoUsu, 81);\n\n $nTotalRCL += calcula_rcl2($this->iAnoUsu, $this->getDataInicial()->getDate(), $this->getDataFinal()->getDate(),\n $sInstituicoes, false, 81);\n $nTotalRCL += calcula_rcl2(($this->iAnoUsu-1), $dtInicialAnterior, $dtFinalAnterior,\n $sInstituicoes, false, 81, $this->getDataFinal()->getDate());\n }\n\n $nValorDespesaTotalPessoal = ($oDespesaLiquida->exercicio + $oDespesaLiquida->inscritas);\n\n /**\n * Verifica valor % despesa total com pessoal - DTP sobre a RCL (VI)=(IV/V)*100.\n */\n if ($nTotalRCL > 0) {\n $nValorDesepesaTotalPessoalSobreRCL = ($nValorDespesaTotalPessoal/$nTotalRCL)*100;\n } else {\n $nValorDesepesaTotalPessoalSobreRCL = 0;\n }\n\n $nPercentualDespesaPessoalSobreRcl = 0;\n if ($nTotalRCL > 0) {\n $nPercentualDespesaPessoalSobreRcl = ($nValorDespesaTotalPessoal * 100) / $nTotalRCL;\n }\n\n /**\n * Soma valores totail do limite maximo (incisos I, II e III, art. 20 da LRF) e\n * do limite prudencial (parágrafo único, art. 22 da LRF).\n */\n $nValorLimiteMaximo = (($nTotalRCL + 0) * $iLimiteMaximo) / 100;\n $nValorLimitePrudencial = (($nTotalRCL + 0) * $iLimitePrudencial) / 100;\n $nValorLimiteAlerta = (($nTotalRCL + 0) * $iLimiteMaximoAlerta) / 100;\n\n $oDespesaTotalComPessoal->valorapurado = $nValorDespesaTotalPessoal;\n $oDespesaTotalComPessoal->percentualsobrercl = $nPercentualDespesaPessoalSobreRcl;\n $oReceitaTotalCorrenteLiquida->valorapurado = $nTotalRCL;\n $oDespesaTotalComPessoalSemRCL->valorapurado = $nValorDesepesaTotalPessoalSobreRCL;\n $oLimiteMaximo->percentuallimite = $iLimiteMaximo;\n $oLimiteMaximo->valorapurado = $nValorLimiteMaximo;\n $oLimitePrudencial->percentuallimite = $iLimitePrudencial;\n $oLimitePrudencial->valorapurado = $nValorLimitePrudencial;\n\n $oLimiteAlerta->percentuallimite = $iLimiteMaximoAlerta;\n $oLimiteAlerta->valorapurado = $nValorLimiteAlerta;\n\n /**\n * Monta Object para retorno com todos os dados por quadro informado.\n */\n $oRetorno = new stdClass();\n $oRetorno->quadrodespesabruta = $oDespesaBruta;\n $oRetorno->quadrodespesanaocomputadas = $oDespesaNaoComputada;\n $oRetorno->quadrodespesaliquida = $oDespesaLiquida;\n $oRetorno->quadrodespesatotalcompessoal = $oDespesaTotalComPessoal;\n $oRetorno->quadroreceitatotalcorrenteliquida = $oReceitaTotalCorrenteLiquida;\n $oRetorno->quadrodespesatotalcompessoalsemrcl = $oDespesaTotalComPessoalSemRCL;\n $oRetorno->quadrolimitemaximo = $oLimiteMaximo;\n $oRetorno->quadrolimiteprudencial = $oLimitePrudencial;\n $oRetorno->quadrolimitealerta = $oLimiteAlerta;\n\n unset($aLinhasRelatorio);\n\n $this->oDados = $oRetorno;\n return $this->oDados;\n }", "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}", "public function buscarEstudianteAcuerdo() {\n\n $sql = \"SELECT \n D.tipodocumento, D.nombrecortodocumento, EG.numerodocumento, EG.idestudiantegeneral,\n EG.nombresestudiantegeneral, EG.apellidosestudiantegeneral, EG.expedidodocumento, C.codigocarrera\n FROM \n estudiantegeneral EG\n INNER JOIN estudiante E ON ( E.idestudiantegeneral = EG.idestudiantegeneral )\n INNER JOIN documento D ON ( D.tipodocumento = EG.tipodocumento )\n INNER JOIN carrera C ON ( C.codigocarrera = E.codigocarrera )\n INNER JOIN FechaGrado FG ON ( FG.CarreraId = C.codigocarrera )\n INNER JOIN AcuerdoActa A ON ( A.FechaGradoId = FG.FechaGradoId )\n INNER JOIN DetalleAcuerdoActa DAC ON ( DAC.AcuerdoActaId = A.AcuerdoActaId AND E.codigoestudiante = DAC.EstudianteId )\n WHERE\n E.codigoestudiante = ?\n AND D.CodigoEstado = 100\n AND DAC.EstadoAcuerdo = 0\n AND DAC.CodigoEstado = 100\";\n\n $this->persistencia->crearSentenciaSQL($sql);\n $this->persistencia->setParametro(0, $this->getCodigoEstudiante(), false);\n $this->persistencia->ejecutarConsulta();\n if ($this->persistencia->getNext()) {\n $this->setIdEstudiante($this->persistencia->getParametro(\"idestudiantegeneral\"));\n $this->setNumeroDocumento($this->persistencia->getParametro(\"numerodocumento\"));\n $this->setNombreEstudiante($this->persistencia->getParametro(\"nombresestudiantegeneral\"));\n $this->setApellidoEstudiante($this->persistencia->getParametro(\"apellidosestudiantegeneral\"));\n $this->setExpedicion($this->persistencia->getParametro(\"expedidodocumento\"));\n\n $tipoDocumento = new TipoDocumento(null);\n $tipoDocumento->setIniciales($this->persistencia->getParametro(\"tipodocumento\"));\n $tipoDocumento->setDescripcion($this->persistencia->getParametro(\"nombrecortodocumento\"));\n\n $fechaGrado = new FechaGrado(null);\n\n $carrera = new Carrera(null);\n $carrera->setCodigoCarrera($this->persistencia->getParametro(\"codigocarrera\"));\n\n $fechaGrado->setCarrera($carrera);\n\n $this->setTipoDocumento($tipoDocumento);\n\n $this->setFechaGrado($fechaGrado);\n }\n\n $this->persistencia->freeResult();\n }", "function filter_TREPORTE_By_S_A_F_E_C($SEDE, $AREA, $FACULTAD, $ESCUELA, $CARRERA, $state, $row, $index)\n{\n global $mysqli;\n $TR = \"resultados2017\";\n\n $addQuery = \"ORDER BY \" . $row . \" \" . $index;\n $lastQuery = \"limit 20\";\n\n //SET QUERY\n //1 to send at main table\n //2 to send at the report\n\n if ($state == 1) {\n $query = new Query($mysqli, \"SELECT apellido,nombre,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,sede,areap,ps,gatb,pca,indice,verbal,numer FROM \" . $TR . \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? AND car_ia = ? limit 20\");\n $parametros = array(\"iiiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA, &$CARRERA);\n $data = $query->getresults($parametros);\n\n } elseif ($state == 2) {\n $query = new Query($mysqli, \"SELECT apellido,nombre,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,sede,areap,ps,gatb,pca,indice,verbal,numer FROM \" . $TR . \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? AND car_ia = ? \" . $addQuery);\n $parametros = array(\"iiiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA, &$CARRERA);\n $data = $query->getresults($parametros);\n\n } else {\n //error\n }\n\n//return\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "function commission_taxes($order_id) {\n\n\tif ($order_id != null) {\n\t $this->order_id = $order_id;\n\t $parameters = array($this->order_id);\n\t} else {\n\t $parameters = null;\n\t}\n\n\tparent::collection(COMMISSION_TAXES_SQL_LOAD, $parameters, \"commission_tax\", \"order_tax_type_id\");\n }", "function XSAInvoicing_ANT32($InvoiceNo, $orderno, $debtorno, $TypeInvoice,$tag,$serie,$folio, &$db,$nivelfacturacion=2,$descripcionOT='',$OT=''){\n\t// **************************** //\n\t// No dejar echo en la funcion //\n\t// Afecta al punto de venta //\n\t// **************************** //\n\n $debug_sql = false;\n\t$charelectronic='01';\n\t$charelectronicEmbarque='';\n\t$charelectronic=$charelectronic.'|'.$serie;\n\t$serieelect=$serie;\n $pedimento=\"\";\n\n\t//$serieelect=$TypeInvoice.'-'.$_SESSION['Tagref'];\n $folioelect=\"\";//$folio;//$InvoiceNoTAG;\n if ($TypeInvoice == 66) {\n \t$folioelect = $folio;\n }\n\t//$folioelect=$InvoiceNo;\n\t$charelectronic=$charelectronic.'|'.$serieelect;\n\t$charelectronic=$charelectronic.'|'.$folioelect;\n\t$charelectronictaxsfederal='';\n\t$charelectronictaxslocal='';\n\t// consulto datos de la factura\n\t$imprimepublico=0;\n\t$rfccliente = \"\";\n\t$TipoAgrupacionXTag = \"\";\n $branch= \"\";\n \n\tif ($TypeInvoice==11){\n\t\t$tabla='notesorders';\n\t}else{\n\t\t$tabla='salesorders';\n\t}\n\t\n\t$decimalplaces=6;\n\t\n\tif ($_SESSION['DecimalPlacesInvoice']==''){\n\t\t$_SESSION['DecimalPlacesInvoice']=6;\n\t}\n\t$decimalplaces=$_SESSION['DecimalPlacesInvoice'];\n\t\n\t$SQLInvoice = \"SELECT replace(debtortrans.trandate,'-','/') as trandate,debtortrans.ovamount,debtortrans.ovdiscount,\n\t\t\tdebtortrans.ovfreight,debtortrans.ovgst,debtortrans.rate as cambio,\n\t\t\tdebtortrans.order_,debtortrans.invtext,\tdebtortrans.consignment,\n\t\t\tdebtortrans.id AS iddocto, debtortrans.type,\n\t\t\tdebtorsmaster.name,debtorsmaster.address1,debtorsmaster.address2,\n\t\t\tdebtorsmaster.address3,debtorsmaster.address4,debtorsmaster.address5,\n\t\t\tdebtorsmaster.address6,debtorsmaster.invaddrbranch,\n\t\t\tcustbranch.taxid as rfc,paymentterms.terms,salesorders.deliverto,\n\t\t\tsalesorders.deladd1,salesorders.deladd2,salesorders.deladd3,\n\t\t\tsalesorders.deladd4,salesorders.deladd5,salesorders.deladd6,\n\t\t\tsalesorders.customerref,salesorders.orderno,salesorders.orddate,\n\t\t\tlocations.locationname,\tshippers.shippername,custbranch.brname,\n\t\t\tcustbranch.braddress1,custbranch.braddress2,custbranch.braddress3,\n\t\t\tcustbranch.braddress4,custbranch.braddress5,custbranch.braddress6,\n\t\t\tcustbranch.brpostaddr1,custbranch.brpostaddr2,custbranch.brpostaddr3,\n\t\t\tcustbranch.brpostaddr4,custbranch.brpostaddr5,custbranch.brpostaddr6,\n\t\t\tsalesman.salesmanname,debtortrans.debtorno,debtortrans.branchcode,debtortrans.folio,\n\t\t\treplace(origtrandate,'-','/') as origtrandate,debtortrans.currcode,custbranch.branchcode,\n\t\t\tsalesorders.salesman,salesorders.UserRegister,custbranch.phoneno as telofi,\n\t\t\tsalesorders.placa, salesorders.serie,salesorders.kilometraje,salesorders.comments,debtortrans.ref1,\n\t\t\tsalesorders.ordertype,debtortrans.paymentname,debtortrans.nocuenta,\n\t\t\tcustbranch.brnumext, custbranch.brnumint,custbranch.specialinstructions,\n\t\t\ttags.typegroup,debtortrans.id, custbranch.custpais, IFNULL(paymentmethods.codesat,'') as codesat,\n\t\t\tdebtortrans.codesat as cadenacodesat, debtortrans.order_\n\t\tFROM debtortrans\n\t\t\tLEFT JOIN paymentmethods ON debtortrans.paymentname = paymentmethods.paymentname\n\t\t\tleft join shippers on debtortrans.shipvia=shippers.shipper_id \n\t\t\tjoin tags on tags.tagref=debtortrans.tagref,\n\t\t\tdebtorsmaster,custbranch,\".$tabla.\" as salesorders \n\t\t\tleft join locations on salesorders.fromstkloc=locations.loccode ,\n\t\t\tsalesman,paymentterms \n\n\t\tWHERE debtortrans.order_ = salesorders.orderno\n\t\t\tAND debtortrans.type='\".$TypeInvoice.\"'\n\t\t\tAND debtortrans.transno='\" . $InvoiceNo . \"'\n\t\t\tAND debtortrans.tagref='\" . $tag . \"'\n\t\t\tAND debtortrans.debtorno=debtorsmaster.debtorno\n\t\t\tAND salesorders.paytermsindicator=paymentterms.termsindicator\n\t\t\tAND debtortrans.debtorno=custbranch.debtorno\n\t\t\tAND debtortrans.branchcode=custbranch.branchcode\n\t\t\tAND salesorders.salesman=salesman.salesmancode\";\n\t\n if($_SESSION['UserID'] == \"admin\"){\n //echo '<pre>get > 1 :<br>'.$SQLInvoice.'<br>';\n\t}\n\t//echo '<pre>get > 1 :<br>'.$SQLInvoice.'<br>';\n\t//echo '<pre>get > 1 :<br>'.$SQLInvoice.'<br>';\n\t//echo '<pre>SQL Principal: <br>'.$SQLInvoice;\n\n //debug_sql($SQLInvoice, __LINE__,true,__FILE__);\n\t$Result=DB_query($SQLInvoice,$db);\n\t\n\tif (DB_num_rows($Result)>0) {\n\t\t$myrow = DB_fetch_array($Result);\n\t\t//impuestos federales\n\t\t$totretencionfederal=0;\n\t\t//$charelectronictaxslocal='|'.chr(13).chr(10);\n\t\tif(isset($_SESSION['ordenaimpuestos']) AND $_SESSION['ordenaimpuestos']==1 ){\n $qry = \"Select debtortranstaxesclient.*,sec_taxes.nametax, sec_taxes.flagimpuestolocal \n \t\tfrom debtortranstaxesclient, sec_taxes\n\t\t\t\t\twhere debtortranstaxesclient.idtax = sec_taxes.idtax\n\t\t\t\t\t\tAND sec_taxes.typetax=1 and orden!=0\n\t\t\t\t\t\tand debtortranstaxesclient.iddoc = \".$myrow['id']. \" ORDER BY orden ASC\";\n\t\t}else{\n $qry = \"Select debtortranstaxesclient.*,sec_taxes.nametax, sec_taxes.flagimpuestolocal \n \t\tfrom debtortranstaxesclient, sec_taxes\n\t\t\t\t\twhere debtortranstaxesclient.idtax = sec_taxes.idtax\n\t\t\t\t\t\tAND sec_taxes.typetax=1\n\t\t\t\t\t\tand debtortranstaxesclient.iddoc = \".$myrow['id'];\n\t\t}\n \n debug_sql($qry, __LINE__,$debug_sql,__FILE__);\n\t\t$rs = DB_query($qry,$db);//\n\t\t$totalImpuestosLocales=0;\n\t\tif (DB_num_rows($rs) > 0){\n\t\t\t//$charelectronictaxsfederalini='|'.chr(13).chr(10).'06';\n\t\t\twhile ($regs = DB_fetch_array($rs)){\n if($regs['flagimpuestolocal']==0){\n $charelectronictaxsfederal.='|'.chr(13).chr(10).'06'.\"|\".$regs['nametax'].\"|\".$regs['percent'].\"|\".$regs['amount'].\"|\".$regs['flagimpuestolocal'];\n\t\t\t\t$totretencionfederal=$totretencionfederal+$regs['amount'];\n }\n if($regs['flagimpuestolocal']==1){\n $charelectronictaxsfederal.='|'.chr(13).chr(10).'08'.\"|\".$regs['nametax'].\"|\".$regs['percent'].\"|\".$regs['amount'].\"|\".$regs['flagimpuestolocal'];\n\t\t\t\t$totretencionfederal=$totretencionfederal+$regs['amount'];\n }\n\t\t\t}\n\t\t}\n\n\t\t//impuestos locales\n\t\t$totalretencionlocal=0;\n\t\t//$charelectronictaxslocal='|'.chr(13).chr(10);\n\t\t$qry = \"Select debtortranstaxesclient.*,sec_taxes.nametax from debtortranstaxesclient, sec_taxes\n\t\t\t\twhere debtortranstaxesclient.idtax = sec_taxes.idtax\n\t\t\t\tAND sec_taxes.typetax=2\n\t\t\t\tand debtortranstaxesclient.iddoc = \".$myrow['id'];\n\t\tdebug_sql($qry, __LINE__,$debug_sql,__FILE__);\n\t\t$rs = DB_query($qry,$db);\n\t\t$totalImpuestosLocales=0;\n\t\tif (DB_num_rows($rs) > 0){\n\t\t\t$charelectronictaxslocal='08';\n\t\t\twhile ($regs = DB_fetch_array($rs)){\n\t\t\t\t$charelectronictaxslocal.=\"|\".$regs['nametax'].\"|\".$regs['percent'].\"|\".$regs['amount'];\n\t\t\t\t$totalretencionlocal=$totalretencionlocal+$regs['amount'];\n\t\t\t}\n\t\t\t$charelectronictaxslocal.=chr(13).chr(10);\n\t\t}\n\n\t\t$totalretencion=$totretencionfederal+$totalretencionlocal;\n\t\t//Tipo agrupacion\n\t\t$TipoAgrupacionXTag=$myrow['typegroup'];\n\t\t// fecha emision\n\t\t$fechainvoice=$myrow['origtrandate'];\n\t\t$UserRegister=$myrow['UserRegister'];\n\t\t$charelectronic=$charelectronic.'|'.$fechainvoice;\n\n\t\t/********\n\t\t$metodoPago = $myrow['paymentname'];\n\t\tif ($metodoPago==\"\")\n\t\t\t$metodoPago = \"No Identificado\";\n\t\t*/\n\t\t\n\t\t$metodoPago = \"\";\n\n\t\tif (trim($myrow['cadenacodesat'] != \"\")) {\n\t\t\t$metodoPago = $myrow['cadenacodesat'];\n\t\t}else{\n\t\t\t$metodoPago = $myrow['codesat'];\n\t\t\n\t\t\tif($metodoPago == \"\") {\n\t\t\t\t$metodoPago = \"99\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t$nocuenta = $myrow['nocuenta'];\n\t\tif ($nocuenta==\"\")\n\t\t\t$nocuenta = \"No Identificado\";\n\t\t\n\t\t// subtotal\n\t\t$rfccliente=str_replace(\"-\",\"\",$myrow['rfc']);\n\t\t$rfccliente=str_replace(\" \",\"\",$rfccliente);\n\t\t$nombre=$myrow['name'];\n\t\t$subtotal= number_format($myrow['ovamount'], $decimalplaces, '.', '');\n\t\t\n\t\tif (strlen($rfccliente)<12){\n\t\t\t$rfccliente=\"XAXX010101000\";\n\t\t\t$nombre=\"Publico en General\";\n\t\t\t$subtotal= number_format($myrow['ovamount']+$myrow['ovgst'], $decimalplaces, '.', '');\n\t\t\t$imprimepublico=1;\n\t\t}elseif(strlen($rfccliente)>=14){\n\t\t\t$rfccliente=\"XAXX010101000\";\n\t\t\t$nombre=\"Publico en General\";\n\t\t\t$subtotal= number_format($myrow['ovamount']+$myrow['ovgst'], $decimalplaces, '.', '');\n\t\t\t$imprimepublico=1;\n\t\t}\n\t\t\n\t\t$charelectronic=$charelectronic.'|'.$subtotal;\n\t\t// total factura\n\t\t$decimalplacesuno=6;\n\t\tif($TypeInvoice==66 or $TypeInvoice==10 or $TypeInvoice==110){\n\t\t\t$decimalplacesuno=4;\n\t\t}\n\t\t$total= number_format($myrow['ovamount']+$myrow['ovgst']+$totalretencion,$decimalplaces,'.','');\n $total= number_format(round($myrow['ovamount'],2) + round($myrow['ovgst'],2) + round($totalretencion, 2), $decimalplaces, '.', '');\n\t\t\n\t\t$charelectronic=$charelectronic.'|'.$total;\n\t\t// total de iva\n\t\t$iva=number_format($myrow['ovgst'],$decimalplaces,'.','');\n\t\t// transladado\n\t\t$charelectronic=$charelectronic.'|'.$iva;\n\t\t// retenido\n\t\t$ivaret=0;\n\t\t$charelectronic=$charelectronic.'|'.$ivaret;\n\n\t\t//descuento trae desde el stockmoves\n\t\tif ($rfccliente!=\"XAXX010101000\" OR $_SESSION['DesgloseIVA']==1){\n\t\t\t$sqldiscount = 'SELECT sum(totaldescuento) as descuento\n\t\t\t\t FROM stockmoves\n\t\t\t\t WHERE stockmoves.type='.$TypeInvoice.'\n\t\t\t\t\tAND stockmoves.transno=' . $InvoiceNo . '\n\t\t\t\t\tAND stockmoves.tagref=' . $tag . '\n\t\t\t\t\tAND stockmoves.show_on_inv_crds=1';\n debug_sql($sqldiscount, __LINE__,$debug_sql,__FILE__);\n\t\t\t$Result= DB_query($sqldiscount,$db);\n\t\t\tif (DB_num_rows($Result)==0) {\n\t\t\t\t$descuento=0;\n\t\t\t}else{\n\t\t\t\t$myrowdis = DB_fetch_array($Result);\n\t\t\t\t$descuento=number_format($myrowdis['descuento'],$decimalplaces,'.','');\n\t\t\t}\n\t\t}else{\n\t\t\t$sqldiscount = 'SELECT sum(totaldescuento+(IF(stockmovestaxes.taxrate IS NULL, 0, stockmovestaxes.taxrate)*totaldescuento)) as descuento\n\t\t\t \t\t\tFROM stockmoves inner join stockmaster on stockmaster.stockid=stockmoves.stockid\n\t\t\t\t\t\t\t-- LEFT JOIN taxauthrates ON stockmaster.taxcatid = taxauthrates.taxcatid\n\t\t\t\t\t\t\tLEFT JOIN stockmovestaxes ON stockmovestaxes.stkmoveno=stockmoves.stkmoveno\n\t\t\t\t\t\n\t\t\t\t\t \t\tWHERE stockmoves.type='.$TypeInvoice.'\n\t\t\t\t\t\t\t\tAND stockmoves.transno=' . $InvoiceNo . '\n\t\t\t\t\t\t\t\tAND stockmoves.tagref=' . $tag . '\n\t\t\t\t\t\t\t\tAND stockmoves.show_on_inv_crds=1';\n debug_sql($sqldiscount, __LINE__,$debug_sql,__FILE__);\n\t\t\t$Result= DB_query($sqldiscount,$db);\n\t\t\tif (DB_num_rows($Result)==0) {\n\t\t\t\t$descuento=0;\n\t\t\t}else{\n\t\t\t\t$myrowdis = DB_fetch_array($Result);\n\t\t\t\t$descuento=number_format($myrowdis['descuento'],2,'.','');\n\t\t\t}\t\n\t\t}\n\n\t\t$descuento=number_format($descuento,$decimalplaces,'.','');\n\t\t$charelectronic=$charelectronic.'|'.$descuento;\n\t\t//motivo descuento\n\t\t$charelectronic=$charelectronic.'|';\n\t\t// tipo de moneda\n\t\t$moneda=$myrow['currcode'];\n\t\t// CANTIDAD CON LETRAS\n\t\t$totaletras=($myrow['ovamount']+$myrow['ovgst'])+$totalretencion;\n\t\t/*$decimalplacesuno=4;\n\t\tif($totaletras<0 and ($TypeInvoice==66 or $TypeInvoice==10 or $TypeInvoice==110)){\n\t\t\t$decimalplacesuno=2;\n\t\t}\n\t\t//$totalx=str_replace(',','',number_format($totaletras,$decimalplacesuno,'.',''));\n\t\t//$totalx = str_replace(',','',$total);\n\t\t$separa2=explode(\".\",$totalx,4);\n\t\t//$separa=explode(\".\",$totalx);//////\n\t\t$montoletra = $separa[0];\n\t\t$separa2=explode(\".\",number_format($totalx2,$decimalplacesuno));\n\t\t\n\t\tif($totaletras<0 and ($TypeInvoice==66 or $TypeInvoice==10 or $TypeInvoice==110)){\n\t\t\t$montoctvs2=\"0.00\";\n\t\t}else{\n\t\t\t$montoctvs2 = $separa2[1];\n\t\t}\n\t\t\n\t\t//$montoletra = Numbers_Words::toWords($montoletra,'es');\n\t\t//$montocentavos=$montoctvs2;\n\t\t$montoletra=Numbers_Words::toWords($montoletra,'es');\n\t\t//$montocentavos=Numbers_Words::toWords($montoctvs2,'es');\n\t\tif ($moneda=='MXN'){\n\t\t\t$montoletra=ucwords($montoletra) . \" Pesos \". $montoctvs2 .\" /100 M.N.\";\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$montoletra=ucwords($montoletra) . \" Dolares \". $montoctvs2 .\"/100 USD\";\n\t\t}\n\t\t$charelectronic=$charelectronic.'|'.$montoletra;*/\n\t\t$totalx=str_replace(',','',$total);\n\t\t\n\t\t$separa=explode(\".\",$totalx);\n\t\t$montoletra = $separa[0];\n\t\t//\n\t\t//$separa2=explode(\".\",$totalx);//\n if(isset($_SESSION['DecimalPlacesLetra']) and $_SESSION['DecimalPlacesLetra'] <> \"\"){\n $montoctvs2 = substr($separa[1], 0,$_SESSION['DecimalPlacesLetra']);\n }else{\n $montoctvs2 = substr($separa[1], 0,6);\n }\n\t\t\n\t\t//$montoctvs2 = $separa[1];//\n \n\t\t$montoletra = Numbers_Words::toWords($montoletra,'es');\n\t\t//$montocentavos=Numbers_Words::toWords($montoctvs2,'es');\n\t\tif ($moneda=='MXN'){\n\t\t\t$montoletra=ucwords($montoletra) . \" Pesos \". $montoctvs2 .\" /100 M.N.\";\n\t\t}elseif ($moneda=='EUR'){\n\t\t\t$montoletra=ucwords($montoletra) . \" Euros \". $montoctvs2 .\" /100 EUR\";\n\t\t}else{\n\t\t\t$montoletra=ucwords($montoletra) . \" Dolares \". $montoctvs2 .\"/100 USD\";\n\t\t}\n\n\t\t$charelectronic=$charelectronic.'|'.$montoletra;\n\t\t// tipo moneda\n\t\t$charelectronic=$charelectronic.'|'.$moneda;\n\t\t// tipo de cambio\n\t\t$rate=number_format((1/$myrow['cambio']),$decimalplaces,'.','');\n\t\t$charelectronic=$charelectronic.'|'.$rate;\n\t\t// numero de orden para referencia\n\t\t$ordenref=$myrow['orderno'];\n\t\t$charelectronic=$charelectronic.'|'.$ordenref;\n\t\t// observaciones 1: vendedores\n\t\t$vendedor=\"\";\n\t\t$SQL=\" SELECT *\n\t\t FROM salesman\n\t\t WHERE salesmancode='\".$myrow['salesman'].\"'\";\n debug_sql($SQL, __LINE__,$debug_sql,__FILE__);\n\t\t$Result= DB_query($SQL,$db);\n\t\tif (DB_num_rows($Result)==1) {\n\t\t\t$myrowsales = DB_fetch_array($Result);\n\t\t\t$vendedor=$myrowsales['salesmanname'];\n\t\t}\n\t\t$observaciones1='Vendedor: '.$myrow['salesman'].' '.$vendedor;\n\t\t$charelectronic=$charelectronic.'|'.$observaciones1;\n\t\t// observaciones 2\n\t\t$SQL=\" SELECT l.telephone,l.comments,t.tagdescription,t.legalid\n\t\t FROM legalbusinessunit l, tags t\n\t\t WHERE l.legalid=t.legalid AND tagref='\".$tag.\"'\";\n debug_sql($SQL, __LINE__,$debug_sql,__FILE__);\n\t\t$Result= DB_query($SQL,$db);\n\t\tif (DB_num_rows($Result)==1) {\n\t\t\t$myrowtags = DB_fetch_array($Result);\n\t\t\t$telephone=trim($myrowtags['telephone']);\n\t\t\t$comments=trim($myrowtags['comments']);\n\t\t}\n // $legal = DB_fetch_array($Result);\n\t\t$observaciones2=\" Atencion a clientes \" .$telephone;\n\t\t$charelectronic=$charelectronic.'|'.$observaciones2;\n\t\t// observaciones 3\n\t\t$comments=$comments.' Cuenta de Referencia: '.$myrow['ref1'];\n\t\t$observaciones3='Id Factura:'.$InvoiceNo. '. La tenencia de esta factura no acredita su pago si no se justifica con el comprobante respectivo. '.$comments .' usr:'.$UserRegister;\n\t\t$charelectronic=$charelectronic.'|'.$observaciones3;\n\t\t// informacionExtra\n\t\t$infoextra=\"\";\n\t\t$numpago=0;\n\t\t$cadenapagares=\"\";\n\t\tif ($TypeInvoice==11){\n\t\t\t$tipodoc=0;\n\t\t}else{\n\t\t\t$tipodoc=70;\n\t\t}\n\t\t\n\t\t$SQL=\" SELECT trandate,case when ovamount<0 then (ovamount+ovgst)*-1 else ovamount+ovgst end as monto\n\t\t FROM debtortrans\n\t\t WHERE debtortrans.type=\".$tipodoc.\"\n\t\t\tAND debtortrans.order_=\" . $InvoiceNo ;\n debug_sql($SQL, __LINE__,$debug_sql,__FILE__);\n\t\t$Result= DB_query($SQL,$db);\n\t\tif (DB_num_rows($Result)>0) {\n\t\t\twhile ($myrowpagos=DB_fetch_array($Result)){\n\t\t\t\t$numpago=$numpago+1;\n\t\t\t\t$fechapago=ConvertSQLDate($myrowpagos['trandate']);\n\t\t\t\t$montopago=$myrowpagos['monto'];\n\t\t\t\t$montopago=number_format($montopago,$decimalplaces,'.','');\n\t\t\t\t$cadenapagares=$cadenapagares.\" No:\".$numpago.\" Fecha: \".$fechapago.\" Monto: \".$montopago .' '.$moneda;\n\t\t\t}\n\t\t}\n\t\t$placa= $_SESSION['LabelText1'].' : '.$myrow['placa'];\n\t\t$serie=$_SESSION['LabelText3'].' : '.$myrow['serie'];\n\t\t$kilometraje=$_SESSION['LabelText2'].' : '.$myrow['kilometraje'];\n\t\t$comments1=' Extra: '.$myrow['comments'];\n\t\t$infoextra=$placa.' '.$serie.' '.$kilometraje.' '.$comments1.' Pagares: '. $cadenapagares;\n\n\n\t\t$charelectronic=$charelectronic.'|'.$infoextra;\n\n\t\t//cometarios nivel factura\n\t\t$charelectronic=$charelectronic.'|'.$myrow['invtext'];\n\n\t\t// datos de la forma de pago\n\t\t$charelectronic=$charelectronic.'|'.chr(13).chr(10).'02';\n\t\t$terminospago=$myrow['terms'];\n\t\t$SQL=\" SELECT count(*) as pagares\n\t\t FROM debtortrans\n\t\t WHERE debtortrans.type=70\n\t\t\tAND debtortrans.order_=\" . $InvoiceNo ;\n debug_sql($SQL, __LINE__,$debug_sql,__FILE__);\n\t\t$Result= DB_query($SQL,$db);\n\t\tif (DB_num_rows($Result)==0) {\n\t\t\t$Tipopago=\"Pago en una sola exhibicion\";\n\t\t}else{\n\t\t\t$myrowpag = DB_fetch_array($Result);\n\t\t\t$numpagares=intval($myrowpag['pagares']);\n\t\t\tif ($numpagares<=1){\n\t\t\t\t$Tipopago=\"Pago en una sola exhibicion\";\n\t\t\t}else{\n\t\t\t\t$Tipopago=\"Parcialidades\";\n\t\t\t}\n\t\t}\n\t\tif ($TypeInvoice==11){\n\t\t\t$Tipopago=\"Pago en una sola exhibicion\";\n\t\t}\n\t\t\n\t\t$Tipopago=$Tipopago;//.' '.$terminospago;\n\t\t//$Tipopago=$terminospago;\n\t\t$charelectronic=$charelectronic.'|'.$Tipopago;\n\t\t// condiciones de pago\n\t\t$charelectronic=$charelectronic.'|'.$terminospago;\n\t\t// metodo de pago\n\t\t$metodopago=$metodoPago;\n\t\t$charelectronic=$charelectronic.'|'.$metodopago;\n\t\t// fecha vencimiento\n\t\t$fechavence=$myrow['trandate'];\n\t\t$charelectronic=$charelectronic.'|'.$fechavence;\n\t\t// observaciones 4 (no de cuenta)\n\t\t$observaciones4=$nocuenta;\n\t\t$charelectronic=$charelectronic.'|'.$observaciones4;\n\t\t// datos del cliente\n\t\t$charelectronic=$charelectronic.'|'.chr(13).chr(10).'03';\n\t\t$branch=$myrow['debtorno'];\n\t\t$charelectronic=$charelectronic.'|'.$branch;\n\t\t$charelectronic=$charelectronic.'|'.$rfccliente;\n\t\t$charelectronic=$charelectronic.'|'.$nombre;\n\t\t\n\t\t// if (strlen(str_replace('|','',str_replace('-','',str_replace(' ','',str_replace('\\r','',str_replace('\\n','',$myrow['telofi']))))))>0){\n\t\t// $pais=str_replace('|','',str_replace('-','',str_replace(' ','',str_replace('\\r','',str_replace('\\n','',$myrow['telofi']))))); //\"Mexico\";//$myrow['name'];\n\t\t//\t\t}else{\n\t\t// $pais=\"Mexico\";\n\t\t//\t\t}\n \n $pais= $myrow[\"custpais\"];\n if (empty($myrow[\"custpais\"])){\n $pais= \"Mexico\";\n } \n \n\t\t$charelectronic=$charelectronic.'|'.$pais;\n\t\t$calle=\"\";\n\t\tif ($imprimepublico==0){\n\t\t\t$calle=$myrow['address1'];\n\t\t}\n\t\t$charelectronic=$charelectronic.'|'.$calle;\n\t\t$noext=$myrow['brnumext'];\n\t\t$charelectronic=$charelectronic.'|'.$noext;\n\t\t$noint=$myrow['brnumint'];\n\t\t$charelectronic=$charelectronic.'|'.$noint;\n\t\t$colonia=\"\";\n\t\tif ($imprimepublico==0){\n\t\t\t$colonia=$myrow['address2'];\n\t\t}\n\t\t$charelectronic=$charelectronic.'|'.$colonia;\n\t\t$localidad=\"\";\n\t\t$charelectronic=$charelectronic.'|'.$localidad;\n\t\t$referenciacalle=\"\";\n\t\tif ($imprimepublico==0){\n\t\t\t$referenciacalle=$myrow['telofi'];\n\t\t}\n\t\t$charelectronic=$charelectronic.'|'.$referenciacalle;\n\t\t$municipio=\"\";\n\t\tif ($imprimepublico==0){\n\t\t\t$municipio=$myrow['address3'];\n\t\t}\n\t\t$charelectronic=$charelectronic.'|'.$municipio;\n\t\t$edo=\"\";\n\t\tif ($imprimepublico==0){\n\t\t\t$edo=$myrow['address4'];\n\t\t}\n\t\t$charelectronic=$charelectronic.'|'.$edo;\n\t\t$cp=\"\";\n\t\tif ($imprimepublico==0){\n\t\t\t$cp=$myrow['address5'];\n\t\t}\n\t\t$charelectronic=$charelectronic.'|'.$cp;\n\t\t// datos del custbranch\n\t\t$charelectronic=$charelectronic.'|'.chr(13).chr(10).'04';\n\t\t$branch=$myrow['branchcode'];\n\t\t$charelectronic=$charelectronic.'|'.$branch;\n\t\t//$rfc=$myrow['rfc'];\n\t\t//$charelectronic=$charelectronic.'|'.$rfccliente;\n\t\t$nombre=$myrow['name'];\n\t\t$charelectronic=$charelectronic.'|'.$nombre;\n\t\t//\t\tif (strlen(str_replace('|','',str_replace('-','',str_replace(' ','',str_replace('\\r','',str_replace('\\n','',$myrow['telofi']))))))>0){\n\t\t//\t\t\t$pais=str_replace('|','',str_replace('-','',str_replace(' ','',str_replace('\\r','',str_replace('\\n','',$myrow['telofi'])))));//\"Mexico\";//$myrow['name'];\n\t\t//\t\t}else{\n\t\t//\t\t\t$pais=\"Mexico\";\n\t\t//\t\t}\n \n $pais= $myrow[\"custpais\"];\n if (empty($myrow[\"custpais\"])){\n $pais= \"Mexico\";\n } \n \n\t\t//$pais=str_replace('|','',str_replace('-','',str_replace(' ','',str_replace('\\r','',str_replace('\\n','',$myrow['telofi'])))));//\"Mexico\";//$myrow['name'];\n\t\t$charelectronic=$charelectronic.'|'.$pais;\n\t\t$calle=$myrow['braddress1'];\n\t\t$charelectronic=$charelectronic.'|'.$calle;\n\t\t$noext=$myrow['brnumext'];\n\t\t$charelectronic=$charelectronic.'|'.$noext;\n\t\t$noint=$myrow['brnumint'];\n\t\t$charelectronic=$charelectronic.'|'.$noint;\n\t\t\n\t\t//$colonia=$myrow['braddress6'];\n $colonia=$myrow['braddress6'];\n\t\t$charelectronic=$charelectronic.'|'.$colonia;\n\t\t$localidad=\"\";\n\t\t$charelectronic=$charelectronic.'|'.$localidad;\n\t\t$referenciacalle=\"\";\n\t\t$charelectronic=$charelectronic.'|'.$referenciacalle;\n\t\t$municipio=$myrow['braddress2'];\n\t\t$charelectronic=$charelectronic.'|'.$municipio;\n\t\t$edo=$myrow['braddress3'];\n\t\t$charelectronic=$charelectronic.'|'.$edo;\n\t\t$cp=$myrow['braddress4'];\n\t\t$charelectronic=$charelectronic.'|'.$cp;\n\t\t\n\t\t\n\t\t$charelectronicEmbarque='|'.chr(13).chr(10).'09';\n\t\t$charelectronicEmbarque=$charelectronicEmbarque.'|'.$myrow['specialinstructions'];\n\t\t$charelectronicEmbarque=$charelectronicEmbarque.'|'.$myrow['brpostaddr1'];//calle\n\t\t$charelectronicEmbarque=$charelectronicEmbarque.'|';//noext\n\t\t$charelectronicEmbarque=$charelectronicEmbarque.'|';//no int\n\t\t\n\t\t/*charelectronicEmbarque=$charelectronicEmbarque.'|'.$myrow['brpostaddr2'];//colonia\n\t\t$charelectronicEmbarque=$charelectronicEmbarque.'|'.$myrow['brpostaddr3'];//municipio\n\t\t$charelectronicEmbarque=$charelectronicEmbarque.'|'.$myrow['brpostaddr4'];//cp\n\t\t$charelectronicEmbarque=$charelectronicEmbarque.'|'.$myrow['brpostaddr5'];//estado\n\t\t$charelectronicEmbarque=$charelectronicEmbarque.'|'.$myrow['brpostaddr6'];//pais*/\n \n $charelectronicEmbarque=$charelectronicEmbarque.'|'.$myrow['brpostaddr6'];//colonia\n $charelectronicEmbarque=$charelectronicEmbarque.'|'.$myrow['brpostaddr2'];//municipio\n $charelectronicEmbarque=$charelectronicEmbarque.'|'.$myrow['brpostaddr3'];//cp\n $charelectronicEmbarque=$charelectronicEmbarque.'|'.$myrow['brpostaddr4'];//estado\n //$charelectronicEmbarque=$charelectronicEmbarque.'|'.$myrow['custpais'];//pais\n \n if (!empty($myrow['brpostaddr7'])){\n $charelectronicEmbarque=$charelectronicEmbarque.'|'.$myrow['brpostaddr7'];\n } else {\n $charelectronicEmbarque=$charelectronicEmbarque.'|0';\n }\n\t}\n\n\t// cadena para datos de los productos\n\t// productos vendidos\n\t$charelectronicdetail='';\n\t$charelectronicinidet='|'.chr(13).chr(10).'05';\n\t// datos de ivas\n\t$charelectronictaxs='';\n\t$charelectronictaxsini='|'.chr(13).chr(10).'07';\n debug_sql($descripcionOT, __LINE__,false,__FILE__,'blue');\n debug_sql($nivelfacturacion, __LINE__,false,__FILE__,'blue');\n debug_sql($OT, __LINE__,false,__FILE__,'blue');\n\n\n // validar si existen las tablas de activos\n $consulta_col= \"SHOW TABLES LIKE '%leasingCharges%'\";\n $resultado_col= DB_query($consulta_col, $db);\n $cols_activo= \"\";\n $joins_activo= \"\";\n $usaactivos= false;\n \n if (DB_fetch_array($resultado_col)){\n $usaactivos= true;\n $cols_activo= \", leasingCharges.barcode,\n \t\t\t\tleasingCharges.serialno,\n fixedassets.description AS desc_activo,\n CASE WHEN leasingCharges.hours IS NULL OR leasingCharges.hours= 0 THEN leasingCharges.days ELSE leasingCharges.hours END cantidad_activo,\n CASE WHEN leasingCharges.hours IS NULL OR leasingCharges.hours= 0 THEN 'Dias' ELSE 'Horas' END unidad_activo\";\n \n $joins_activo= \" LEFT JOIN leasingCharges ON stockmoves.ref2 = leasingCharges.idleasincharges \n LEFT JOIN fixedassets ON leasingCharges.serialno = fixedassets.serialno AND leasingCharges.barcode= fixedassets.barcode \";\n }\n \n\tif ($rfccliente!=\"XAXX010101000\" OR $_SESSION['DesgloseIVA']==1){\n\t\tif($TipoAgrupacionXTag==1 and $TypeInvoice <> 111){\n\t\t\t$sqldetails = 'SELECT stockmoves.stkmoveno,\n\t\t\t\t\t\t-- stockmoves.stockid,\n\t\t\t\t\t ProdLine.prodLineId as stockid,\n\t\t\t\t\t\tstockmoves.warranty,\n\t\t\t\t\t\t-- stockmaster.description,\n\t\t\t\t\t\tProdLine.Description as description,\n\t\t\t\t\t\t/*stockmaster.serialised,\n\t\t\t\t\t\tstockmaster.controlled,*/\n\t\t\t\t\t\t0 as serialised,\n\t\t\t\t\t\t0 as controlled,\n\t\t\t\t\t\tsum(case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end) as quantity ,\n\t\t\t\t\t\tstockmoves.narrative,\n\t\t\t\t\t\tstockmaster.units,\n\t\t\t\t\t\tstockmaster.decimalplaces,\n\t\t\t\t\t\tstockmoves.discountpercent,\n\t\t\t\t\t\tstockmoves.discountpercent1,\n\t\t\t\t\t\tstockmoves.discountpercent2,\n\t\t\t\t\t\tsum((case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end)*(stockmoves.price))/sum(case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end) AS fxnet,\n\t\t\t\t\t\tsum((case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end)*(stockmoves.price)-totaldescuento)/sum(case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end) as subtotal,\n\t\t\t\t\t\t-- sum((stockmoves.price*case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end)/case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end) AS fxprice,\n\t\t\t\t\t\tsum((stockmoves.price*case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end))/sum(case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end) AS fxprice,\n\t\t\t\t\t\tstockmoves.narrative,\n\t\t\t\t\t\tstockmaster.units,\n\t\t\t\t\t\tstockmaster.categoryid,\n\t\t\t\t\t\tstockmoves.loccode as almacen,\n\t\t\t\t\t\tstockmoves.showdescription,\n\t\t\t\t\t\tstockcategory.MensajePV,\n\t\t\t\t\tsum(stockmoves.totaldescuento) as totaldescuento,\n\t\t\t\t\tstockmoves.ref4 as movorderline,\n\t\t\t\t\tstockmaster.flagadvance,\n\t\t\t\t\tstockmoves.ref2 ' . $cols_activo . '\n\t\t\t\tFROM stockmoves ' . $joins_activo . ',stockmaster,stockcategory \n\t\t\t\t\t \tINNER JOIN ProdLine ON ProdLine.prodLineId=stockcategory.prodLineId\n\t\t\t\tWHERE stockmoves.stockid = stockmaster.stockid\n\t\t\t\t\tAND stockmoves.type='.$TypeInvoice.'\n\t\t\t\t\tAND stockmoves.transno=' . $InvoiceNo . '\n\t\t\t\t\tAND stockmoves.tagref=' . $tag . '\n\t\t\t\t\tAND stockmoves.show_on_inv_crds=1\n\t\t\t\t\tAND stockcategory.categoryid = stockmaster.categoryid\n\t\t\t\tGROUP BY ProdLine.Description,ProdLine.prodLineId';\n\t\t}else{//\n\t\t\t// echo '<br>START<br>';\n\t\t\t$sqldetails = 'SELECT stockmoves.stkmoveno,\n\t\t\t\t\t\tstockmoves.stockid,\n\t\t\t\t\t\tstockmoves.warranty,\n\t\t\t\t\t\tstockmaster.description,\n\t\t\t\t\t\tstockmaster.longdescription,\n\t\t\t\t\t\tstockmaster.mbflag,\n\t\t\t\t\t\tstockmaster.serialised,\n\t\t\t\t\t\tstockmaster.controlled,\n\t\t\t\t\t\t(case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end) as quantity ,\n\t\t\t\t\t\tstockmoves.narrative,\n\t\t\t\t\t\tstockmaster.units,\n\t\t\t\t\t\tstockmaster.decimalplaces,\n\t\t\t\t\t\tstockmoves.discountpercent,\n\t\t\t\t\t\tstockmoves.discountpercent1,\n\t\t\t\t\t\tstockmoves.discountpercent2,\n\t\t\t\t\t\t((case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end)*(stockmoves.price)) AS fxnet,\n\t\t\t\t\t\t((case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end)*(stockmoves.price))-totaldescuento as subtotal,\n\t\t\t\t\t\t(stockmoves.price) AS fxprice,\n\t\t\t\t\t\tstockmaster.units,\n\t\t\t\t\t\tstockmaster.categoryid,\n\t\t\t\t\t\tstockmoves.loccode as almacen,\n\t\t\t\t\t\tstockmoves.showdescription,\n\t\t\t\t\t\tstockcategory.MensajePV,\n\t\t\t\t\t\tstockmoves.totaldescuento,\n\t\t\t\t\t\tstockmaster.flagadvance,\n\t\t\t\t\t\tstockmoves.ref4 as movorderline, stockmoves.ref2 ' . $cols_activo . '\n\t\t\t\tFROM stockmoves' . $joins_activo . ',stockmaster,stockcategory\n\t\t\t\tWHERE stockmoves.stockid = stockmaster.stockid\n\t\t\t\t\tAND stockmoves.type='.$TypeInvoice.'\n\t\t\t\t\tAND stockmoves.transno=' . $InvoiceNo . '\n\t\t\t\t\tAND stockmoves.tagref=' . $tag . '\n\t\t\t\t\tAND (stockmoves.show_on_inv_crds=1 or stockmoves.stockid =\"facturaremision\")\n\t\t\t\t\tAND stockcategory.categoryid = stockmaster.categoryid';\n\t\t}\n\t\t\n\t\tdebug_sql($sqldetails, __LINE__,$debug_sql,__FILE__);\n\t\t$resultdetails=DB_query($sqldetails,$db);\n\t\t$nolinea=0;\n\t\t$descrprop=\"\";////\n\t\n\t\twhile ($myrow2=DB_fetch_array($resultdetails)){\n\t\t\t$stockid = \"\";\n\t\t\t$stockcantidad = 0;\n\t\t\t$stockcantidadCompleta = 0;\n\t\t\t$stocknegativo = 0; //obtener si es negativo para precio\n $movorderlineno = $myrow2['movorderline'];\n if ($usaactivos && !empty($myrow2['ref2'])){\n \t$stockid = $myrow2['barcode']; \n \t$stockcantidad=number_format($myrow2['cantidad_activo'],$decimalplaces,'.','');\n }else{\n \t$stockid = $myrow2['stockid']; \n \t$stockcantidad=number_format($myrow2['quantity'],$decimalplaces,'.','');\n \t$stockcantidadCompleta = $myrow2['quantity'];\n }\n if ($stockcantidad < 0) {\n \t//Cantidad en negativo\n \t$stocknegativo = 1;\n }\n\t\t\tif($_SESSION['DescrLargaFact'] == $myrow2['mbflag']){\n\t\t\t\t//$stockdescrip=$myrow2['description'].' '.$myrow['ordertype'].' '.$myrow2['longdescription'];\n\t\t\t\t$stockdescrip=$myrow2['description'].' '.$myrow2['longdescription'].' ';\n\t\t\t}else{\n\t\t\t\t//$stockdescrip=$myrow2['description'].' '.$myrow['ordertype'];\n\t\t\t\t$stockdescrip=$myrow2['description'].' ';\n\t\t\t}\n\t\t\tif ($usaactivos && !empty($myrow2['ref2'])){\n\t\t\t\t$stockdescrip=$myrow2['desc_activo'];\n\t\t\t}\n\t\t\t\n\t\t\t$charelectronicdetail=$charelectronicdetail.$charelectronicinidet.'|'.$stockid;\n\t\t\t//$stockid=$myrow2['stockid'];\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockid;\n\t\t\t\n\t\t\t/*if ($_SESSION['UserID'] == 'desarrollo' or $_SESSION['UserID'] == 'iortiz') {\n\t\t\t\t$stockcantidad = abs($stockcantidad);\n\t\t\t}*/\n\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.abs($stockcantidad); //Cantidad como este en DB + o -\n\t\t\t\n\t\t\tif($TypeInvoice == 111){\n\t\t\t\t\n\t\t\t\t$SQL=\"SELECT chartmaster.accountcode,\n\t\t\t\t\t\t\tchartmaster.accountname\n\t\t\t\t\tFROM gltrans\n\t\t\t\t\t\tINNER JOIN chartmaster \tON gltrans.account = chartmaster.accountcode\n\t\t\t\t\tWHERE gltrans.type = '\".$TypeInvoice.\"'\n\t\t\t\t\t\tAND gltrans.typeno = '\".$InvoiceNo.\"'\n\t\t\t\t\t\tAND gltrans.stockid = '\".$stockid.\"'\n\t\t\t\t\t\tAND gltrans.amount > 0\";\n\t\t\t\tdebug_sql($SQL, __LINE__,$debug_sql,__FILE__);\n\t\t\t\t$Result= DB_query($SQL,$db);\n\t\t\t\tif (DB_num_rows($Result)==1) {\n\t\t\t\t\t$myrowcuentas = DB_fetch_array($Result);\n\t\t\t\t\t$cuenta = \" Cuenta \".$myrowcuentas['accountcode'].\" \".$myrowcuentas['accountname'];\n\t\t\t\t}\n\t\t\t\t$stockdescrip = $stockdescrip.$cuenta;\n\t\t\t}\n\t\t\t\n\t\t\t// valores de los vendedorfees por linea//\n\t\t\t$descrprop=\" (\";\n\t\t\t$sqlpropertyes=\"SELECT DISTINCT p.InvoiceValue AS val,\n p.complemento,\n sp.label\n FROM salesstockproperties p,\n stockcatproperties sp,\n stockmaster sm\n WHERE p.stkcatpropid=sp.stkcatpropid\n AND sp.categoryid=sm.categoryid\n AND sp.reqatprint=1\n AND p.orderno=\" . $orderno . \"\n AND p.typedocument IN(10,110, '\" . $TypeInvoice . \"')\n AND sm.stockid='\" . $stockid . \"'\n AND p.orderlineno = '\".$movorderlineno.\"'\";\n \n //echo $sqlpropertyes;\n\t\t\t\n\t\t\t$resultpropertyes=DB_query($sqlpropertyes,$db);\n \n $xt=0; \n \n\t\t\twhile ($myrowprop=DB_fetch_array($resultpropertyes)){\n\t\t\t\t// \t\t\t\t$traba=explode(\" \",$myrowprop['val']);\n\t\t\t\t// \t\t\t\t$trab=$traba[0];\n\t\t\t\t// \t\t\t\t$trab=$myrowprop['val'];****\n\t\t\t\tif ($xt==0) {\n\t\t\t\t\t$descrprop=$descrprop.' '.$myrowprop['label'].':'.$myrowprop['val'];\n\t\t\t\t} else {\n\t\t\t\t\t$descrprop=$descrprop.\" , \".$myrowprop['label'].':'.$myrowprop['val'];\n\t\t\t\t}\n\n\t\t\t\tswitch ($myrowprop['val']) {\n\t\t\t\t\tcase 'Interno':\n\t\t\t\t\t\t$sqlbomb = \"SELECT class FROM stockclass WHERE idclass = '\" . $myrowprop['complemento'] . \"'\";\n\t\t\t\t\t\t$rsqlbomb = DB_query($sqlbomb, $db);\n\t\t\t\t\t\t$rowbom = DB_fetch_array($rsqlbomb);\n\t\t\t\t\t\t$descrprop .= \" - Proveedor : \" . $rowbom['class'];\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'Externo':\n\t\t\t\t\t\t$sqlbomb = \" SELECT suppname FROM suppliers WHERE supplierid = '\" . $myrowprop['complemento'] . \"'\";\n\t\t\t\t\t\t$rsqlbomb = DB_query($sqlbomb, $db);\n\t\t\t\t\t\t$rowbom = DB_fetch_array($rsqlbomb);\n\t\t\t\t\t\t$descrprop .= \" - Proveedor : \" . $rowbom['suppname'];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t$xt=$xt+1;\n\t\t\t}\n\t\t\t$descrprop=$descrprop.\" )\";\n\t\t\tif ($xt==0){\n\t\t\t\t$descrprop=\"\";\n\t\t\t}\n\t\t\tif($myrow2['MensajePV'] <> \"\"){\n\t\t\t\t$descrprop = $descrprop.$myrow2['MensajePV'];\n\t\t\t}\n\n\n\t\t\t//Se ha eliminado el trabajador de la descripcion del XML\n\t\t\t//printecho(\"entroant\", \"echo\");\n\n\t\t\t$numberserie=\"\";\n\t\t\t$xserie= 0;\n\n if (strpos(\"@\".$_SESSION ['DatabaseName'], \"gruposervillantas\")) {\n $sqlserials=\"SELECT DISTINCT stockserialitems.serialno AS serie\n\t\t\t\t\t\t\tFROM workorders \n\t\t\t\t\t\t\tINNER JOIN stockserialitems ON workorders.wo= stockserialitems.wo\n\t\t\t\t\t\t\tWHERE orderno= '\".$orderno.\"'\n\t\t\t\t\t\t\tAND stockserialitems.customs= '\".$stockid.\"' \n\t\t\t\t\t\t\tAND qualitytext NOT LIKE '%rechaz%' AND stockserialitems.serialno NOT LIKE 'R-%'\n\t\t\t\t\t\t\tAND stockserialitems.stockid= 'cascli'\";\n\n\t\t\t\t//echo \"series 2: \".$sqlserials;\t\t\n\n\t\t\t\t$resultado= DB_query($sqlserials,$db);\n\t\t\t\t\n\t\t\t\twhile ($myrownseries=DB_fetch_array($resultado)) {\n\t\t\t\t\tif ($stockid!='cascli'){\n\t\t\t\t\t\t$consulta= \"SELECT DISTINCT stockserialitems.serialno AS serie\n\t\t\t\t\t\t\t\t\tFROM workorders \n\t\t\t\t\t\t\t\t\tINNER JOIN stockserialitems ON workorders.wo= stockserialitems.wo\n\t\t\t\t\t\t\t\t\tWHERE orderno= '\".$orderno.\"'\n\t\t\t\t\t\t\t\t\tAND stockserialitems.customs= '\".$stockid.\"'\n\t\t\t\t\t\t\t\t\tAND qualitytext LIKE '%rechaz%' \n\t\t\t\t\t\t\t\t\tAND stockserialitems.serialno LIKE '%\".$myrownseries['serie'].\"%';\";\n\n\t\t\t\t\t\t$resultado2= DB_query($consulta, $db);\n\n\t\t\t\t\t\tif ($registro=DB_fetch_array($resultado2)){\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif ($xserie==0){\n\t\t\t\t\t\t$numberserie=' Series: '.$myrownseries['serie'];\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$numberserie=$numberserie.', '.$myrownseries['serie'];\n\t\t\t\t\t}\n\n\t\t\t\t\t$xserie++;\n\t\t\t\t}\n } \n\n\t\t\t$descrnarrative=\"\";\n //\n if($_SESSION ['FormatoDeComentarioEnPV']==1){\n \t$descrnarrative=str_replace('\\r','',str_replace('\\n', chr(60).'br'.chr(62),$myrow2['narrative']));\n\t\t\t\t$descrnarrative=str_replace('|', '', $descrnarrative); \n\t\t\t\t$descrnarrative=str_replace(chr(10), chr(60).'br'.chr(62), $descrnarrative);\n }else{\n $descrnarrative=str_replace('\\r','',str_replace('\\n','',$myrow2['narrative']));\n\t\t\t\t$descrnarrative=str_replace('|', '', $descrnarrative);\n\t\t\t\t$descrnarrative=str_replace(chr(10), chr(60).'br'.chr(62), $descrnarrative);\n }\t\t\n\t\t\t/*\n\t\t\tif ($TypeInvoice==11){\n\t\t\t\t$tablades=0;\n\t\t\t}else{\n\t\t\t\t$tipodoc=70;\n\t\t\t}\n\t\t\t*/\n\t\t\t$sqlnarrative=\"SELECT narrative\n\t\t\t\t\t\t\tFROM salesorderdetails \n\t\t\t\t\t\t\tWHERE salesorderdetails.orderno=\" . $orderno . \"\n\t\t\t\t \t\t\t\tAND salesorderdetails.stkcode='\" . $stockid . \"'\n\t\t\t\t \t\t\t\tAND salesorderdetails.orderlineno = '\" . $movorderlineno . \"'\";\n\n\t\t\t$resultnarrative=DB_query($sqlnarrative,$db);\n\n\t\t\twhile ($myrownarrative=DB_fetch_array($resultnarrative)){\n\t\t\t\tif ($myrownarrative['narrative'] != $myrow2['narrative']) {\n\t\t\t\t\t$descrnarrative=str_replace('\\r','',str_replace('\\n','',$myrownarrative['narrative']));\n\t\t\t\t\t$descrnarrative=str_replace('|', '', $descrnarrative);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (strlen($descrnarrative)==0){\n\t\t\t\t$descrnarrative = \"\";\n\t\t\t}\n\n\t\t\t//$descrnarrative=\"\";\n\t\t\t// consulta de aduana\n\t\t\t$stkmoveno=$myrow2['stkmoveno'];\n\t\t\t$almacen=$myrow2['almacen'];\t\t\t\n\t\t\t$xserie=0;\n\t\t\t/*$sqlserials=\"SELECT stockserialitems.serialno as serie\n\t\t\t\t FROM stockserialmoves , stockmoves , stockserialitems\n\t\t\t\t WHERE stockmoves.stkmoveno=stockserialmoves.stockmoveno\n\t\t\t\t\tAND stockserialmoves.stockid=stockserialitems.stockid\n\t\t\t\t\tAND stockserialmoves.serialno=stockserialitems.serialno\n\t\t\t\t\tAND stockserialitems.loccode='\".$almacen.\"'\n\t\t\t\t\tAND stockmoves.stkmoveno=\".$stkmoveno.\"\n\t\t\t\t\tAND stockmoves.stockid='\".$stockid.\"'\";\n\t\t\t//echo '<pre><br>'.$sqlserials;\n\t\t\t$Result= DB_query($sqlserials,$db);\n\t\t\tif (DB_num_rows($Result)==0) {\n\t\t\t\t$numberserie=\"\";\n\t\t\t}else{\n\t\t\t\twhile ($myrownseries=DB_fetch_array($Result)){\n\t\t\t\t\tif ($xserie==0){\n\t\t\t\t\t\t$numberserie=' Series: '.$myrownseries['serie'];\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$numberserie=$numberserie.', '.$myrownseries['serie'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (strlen($numberserie)==0){\n\t\t\t\t$numberserie=\"\";\n\t\t\t}*/\n\n\n\t\t\tif($myrow2['showdescription']==1){\n\t\t\t\t$stockdescripuno=$stockdescrip.$descrprop.$descrnarrative.$numberserie;\n\t\t\t}else{\n\t\t\t\tif (strlen($descrnarrative)==0){\n\t\t\t\t\t$stockdescripuno=$stockdescrip.$descrprop.$descrnarrative.$numberserie;\n\t\t\t\t}else{\n\t\t\t\t\t$stockdescripuno=$descrnarrative.$numberserie;\n\t\t\t\t}\n\t\t\t}//while\n\n\t\t\t/******INICIO AGREGA LA DESCRIPCION DE LOS ACTIVOS FIJO FACTURADOS\n\t\t\tif($_SESSION ['DatabaseName'] == \"erpgosea\" or $_SESSION ['DatabaseName'] == \"erpgosea_CAPA\" or $_SESSION ['DatabaseName'] == \"erpgosea_DES\"){\n\t\t\t\t$descfixedassets = \"\";\n\t\t\t\t$sqldescfassets = \"SELECT CONCAT('Cod.:',l.barcode, ' Serie: ', l.serialno, ' ', f.longdescription) as descfixedassets\n\t\t\t\t\tFROM leasingCharges l\n\t\t\t\t\t\tLEFT JOIN fixedassets f ON l.serialno = f.serialno and l.barcode = f.barcode\n\t\t\t\t\tWHERE l.salesordernumber = \" . $orderno;\n\t\t\t\techo \"<br>DESC:\" . $sqldescfassets;\n\t\t\t\t$resultdescfassets = DB_query($sqldescfassets,$db);\n\t\t\t\twhile ($myrowfassets = DB_fetch_array($resultdescfassets)){\n\t\t\t\t\tif ($descfixedassets == \"\"){\n\t\t\t\t\t\t$descfixedassets = $myrowfassets['descfixedassets'];\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$descfixedassets = $descfixedassets . \"<br>\" . $myrowfassets['descfixedassets'];\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tif ($descfixedassets != \"\"){\n\t\t\t\t\t$stockdescripuno = $descfixedassets;\n\t\t\t\t}\n\t\t\t}*/\n\n\t\t\t/******INICIO AGREGA LA DESCRIPCION DE LOS ACTIVOS FIJO FACTURADOS*/\n\n\n\t\t\t/* Gosea pidio que se agregara una leyenda en la descripcion al inicio 'Renta de' o 'Servicio de' se agrego tambien el numero de serie */\n\t\t\tif($_SESSION ['DatabaseName'] == \"erpgosea\" or $_SESSION ['DatabaseName'] == \"erpgosea_CAPA\" or $_SESSION ['DatabaseName'] == \"erpgosea_DES\"){\n\t\t\t\tif (isset($tag) and $tag!=''){\n\t\t\t\t\t$SQL=\"SELECT tagref,legalid,legend FROM tagslegend where tagref = \" . $tag;\n\t\t\t\t\t$resulttaglegend=DB_query($SQL,$db);\n\t\t\t\t\t$rowtaglegend = DB_fetch_array($resulttaglegend);\n\t\t\t\t\tif($rowtaglegend['legend'] !=''){\n\t\t\t\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$rowtaglegend['legend'] .\" \".$stockdescripuno . \", No. Serie \". $myrow2['serialno'];\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockdescripuno. \", No. Serie \". $myrow2['serialno'];\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockdescripuno. \", No. Serie \". $myrow2['serialno'];\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockdescripuno;\n\t\t\t}\n\t\t\t\n\t\t\tif ($usaactivos && !empty($myrow2['ref2'])){\n\t\t\t\t$stockprecio=number_format(($myrow2['fxprice']/$myrow2['cantidad_activo']),$decimalplaces,'.','');\n\t\t\t}else{\n\t\t\t\t$stockprecio=number_format($myrow2['fxprice'],$decimalplaces,'.','');\n\t\t\t}\n\n\t\t\tif ($usaactivos && !empty($myrow2['ref2'])){\n\t\t\t\t$stockneto=number_format(($myrow2['fxnet']/$myrow2['cantidad_activo']),$decimalplaces,'.','');\n\t\t\t}else{\n\t\t\t\t$stockneto=number_format($myrow2['fxnet'],$decimalplaces,'.','');\n\t\t\t}\n\n\t\t\tif ($_SESSION['UserID'] == 'desarrollo') {\n\t\t\t\t//echo \"<br>stockcantidad: \".$stockcantidad.\" - stockcantidadCompleta \".$stockcantidadCompleta.\" - stockprecio: \".$stockprecio.\" - stockneto: \".$stockneto.\"<br>\";\n\t\t\t}\n\t\t\t\n\t\t\tif ($myrow2['flagadvance'] == 1) {\n\t\t\t\t//Obtener total de la partida, si existe diferencia obtener precio unitario\n\t\t\t\t$totalPar = number_format($stockcantidad * $stockprecio,$decimalplaces,'.','');\n\t\t\t\t//echo \"<br>totalPar1: \".$totalPar.\"<br>\";\n\t\t\t\tif (abs($totalPar) != abs($stockneto)) {\n\t\t\t\t\t$stockprecio = number_format($stockneto/$stockcantidad,$decimalplaces,'.','');\n\t\t\t\t}\n\n\t\t\t\tif ($stockcantidad < 0 and $stockprecio > 0) {\n\t\t\t\t\t$stockprecio = $stockprecio * (-1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($stocknegativo == 1 and $stockprecio > 0) {\n\t\t\t\t//Si cantidad es negativo, poner precio en negativo para operacion\n\t\t\t\t$stockprecio = $stockprecio * (-1);\n\t\t\t}\n\n\t\t\tif ($_SESSION['UserID'] == 'desarrollo') {\n\t\t\t\t//echo \"<br>stockprecio change: \".$stockprecio.\"<br>\";\n\t\t\t}\n\t\t\t\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockprecio;\n\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockneto;\n\t\t\tif ($usaactivos && !empty($myrow2['ref2'])){\n\t\t\t\t$stockunits=$myrow2['unidad_activo'];\n\t\t\t}else{\n\t\t\t\t$stockunits=$myrow2['units'];\n\t\t\t}\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockunits;\n\t\t\t$stockcat=$myrow2['categoryid'];\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockcat;\n\t\t\t$ordencompra=\"\";\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$ordencompra;\n\t\t\t// descuentos\n\t\t\t$discount1=number_format($myrow2['discountpercent']*100,$decimalplaces,'.','');\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$discount1;\n\t\t\t$discount2=number_format($myrow2['discountpercent1']*100,$decimalplaces,'.','');\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$discount2;\n\t\t\t$discount3=number_format($myrow2['discountpercent2']*100,$decimalplaces,'.','');\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$discount3;\n\t\t\t//subtotal\n\t\t\t$subtotal=number_format($myrow2['totaldescuento'],$decimalplaces,'.','');\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$subtotal;\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$subtotal;\n\n\n\t\t\t$sqladuana=\"SELECT stockserialitems.customs as aduana,customs_number as noaduana,\n\t\t\t\t\t\tpedimento, DATE_FORMAT(customs_date,'%Y-%m-%d') as fechaaduana\n\t\t\t\t FROM stockserialmoves , stockmoves , stockserialitems\n\t\t\t\t WHERE stockmoves.stkmoveno=stockserialmoves.stockmoveno\n\t\t\t\t\tAND stockserialmoves.stockid=stockserialitems.stockid\n\t\t\t\t\tAND stockserialmoves.serialno=stockserialitems.serialno\n\t\t\t\t\tAND stockserialitems.loccode='\".$almacen.\"'\n\t\t\t\t\tAND stockmoves.stkmoveno=\".$stkmoveno.\"\n\t\t\t\t\tAND stockmoves.stockid='\".$stockid.\"'\";\n \n\t\t\tdebug_sql($sqladuana, __LINE__,false,__FILE__);\n\t\t\t$Result= DB_query($sqladuana,$db);\n\t\t\tif (DB_num_rows($Result)==0) {\n\t\t\t\t$nameaduana=\"\";\n\t\t\t\t$numberaduana=\"\";\n\t\t\t\t$fechaaduana=\"\";\n\t\t\t}else{\n\t\t\t\t$myrowaduana = DB_fetch_array($Result);\n\t\t\t\t$nameaduana=$myrowaduana['aduana'];\n\t\t\t\t$numberaduana=$myrowaduana['noaduana'];\n\t\t\t\t$fechaaduana=$myrowaduana['fechaaduana'];\n\t\t\t\t//$separaaduana=explode(\"|\",$aduana);\n\t\t\t\t//$nameaduana = $separaaduana[0];\n\t\t\t\t//$numberaduana= $separaaduana[1];\n\t\t\t\t//$fechaaduana= $separaaduana[2];\n\t\t\t\tif (strlen($nameaduana)==0 or strlen($numberaduana)==0 /*or !Is_Date($fechaaduana)*/){\n\t\t\t\t\t$nameaduana=\"\";\n\t\t\t\t\t$numberaduana=\"\";\n\t\t\t\t\t$fechaaduana=\"\";\n\t\t\t\t}\n\t\t\t\t$nameaduana = $myrowaduana['aduana'];\n\t\t\t\t$numberaduana = $myrowaduana['noaduana'];\n\t\t\t\t$fechaaduana = $myrowaduana['fechaaduana'];\n\t\t\t\t$pedimento = $myrowaduana['pedimento'];\n\t\t\t}\n \n\t\t\tif($myrow['type'] == 66) { // Si es factura remision\n\n\t\t\t\t$ordernotmp = $myrow['orderno'];\n\n\t\t\t\t$SQL = \"\n\t\t\t\t\tSELECT GROUP_CONCAT(debtortrans.order_) AS order_\n\t\t\t\t\tFROM invoicetoremision\n\t\t\t\t\tINNER JOIN debtortrans\n\t\t\t\t\tON debtortrans.id = invoicetoremision.idremision\n\t\t\t\t\tWHERE invoicetoremision.idinvoice = '\".$myrow['iddocto'].\"'\n\t\t\t\t\";\n debug_sql($SQL, __LINE__,$debug_sql,__FILE__);\n\n\t\t\t\t$rstmp = DB_query($SQL, $db);\n\t\t\t\t$rowtmp = DB_fetch_array($rstmp);\n\t\t\t\t$ordernotmp = $rowtmp['order_'];\n\n\t\t\t\tif(empty($ordernotmp) == FALSE) {\n\n\t\t\t\t\t$SQL = \"\n\t\t\t\t\t\tSELECT\n\t\t\t\t\t\tDATE_FORMAT(purchorderdetails.datecustoms,'%Y-%m-%d') AS fechaaduana,\n\t\t\t\t\t\tpedimento,\n\t\t\t\t\t\tcustoms AS aduana\n\t\t\t\t\t\tFROM purchorders\n\t\t\t\t\t\tINNER JOIN purchorderdetails\n\t\t\t\t\t\tON purchorderdetails.orderno = purchorders.orderno\n\t\t\t\t\t\tWHERE purchorders.requisitionno IN ($ordernotmp)\n\t\t\t\t\t\tAND purchorderdetails.itemcode = '$stockid'\n\t\t\t\t\t\";\n\t\t\t\t\tdebug_sql($SQL, __LINE__,$debug_sql,__FILE__);\n\t\t\t\t\t$rstmp = DB_query($SQL, $db);\n\n\t\t\t\t\tif($rowtmp = DB_fetch_array($rstmp)) {\n\t\t\t\t\t\t$fechaaduana = $rowtmp['fechaaduana'];\n\t\t\t\t\t\t$numberaduana = $rowtmp['pedimento'];\n\t\t\t\t\t\t$nameaduana = $rowtmp['aduana'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$nameaduana;\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$numberaduana;\n\t\t\t//$charelectronicdetail=$charelectronicdetail.'|'.$fechaaduana;\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$almacen;\n\t\t\t\n\t\t\tif($TipoAgrupacionXTag==1 and $TypeInvoice <> 111){\n\t\t\t\t\n\t\t\t\t$sqlstockmovestaxes=\"SELECT stockmovestaxes.stkmoveno,\n\t\t\t\t\t\t\t\t\t\t\ttaxauthid,taxrate,\n\t\t\t\t\t\t\t\t\t\t\ttaxcalculationorder,\n\t\t\t\t\t\t\t\t\t\t\ttaxontax,\n\t\t\t\t\t\t\t\t\t\t\ttaxauthorities.description,\n \t\t\t\t\t\t\t\t\t\t\tsum(stockmovestaxes.taxrate*(((stockmoves.price*(stockmoves.qty*-1))-(CASE WHEN stockmoves.type=11 then stockmoves.totaldescuento*-1 else stockmoves.totaldescuento end)))) as iva\n\t \t\t\t\t\t\t\t\tFROM stockmovestaxes inner join stockmoves on stockmoves.stkmoveno=stockmovestaxes.stkmoveno\n\t\t\t\t\t\t\t\t\t\tLEFT join stockmaster on stockmaster.stockid=stockmoves.stockid\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN stockcategory ON stockmaster.categoryid=stockcategory.categoryid \n\t\t\t\t\t\t\t\t\t\tLEFT JOIN taxauthorities ON taxauthorities.taxid=stockmovestaxes.taxauthid\n\t\t\t\t\t WHERE type=\".$TypeInvoice. \" AND transno=\".$InvoiceNo.\" And stockcategory.prodLineId='\".$myrow2['stockid'].\"'\";\n\t\t\t}else{\n\t\t\t\n\t\t\t\t$sqlstockmovestaxes=\"SELECT stkmoveno,taxauthid,taxrate,\n\t\t\t\t\t\ttaxcalculationorder,\n\t\t\t\t\t\ttaxontax,\n\t\t\t\t\t\ttaxauthorities.description\n\t\t\t\t\t FROM stockmovestaxes\n LEFT JOIN taxauthorities ON taxauthorities.taxid=stockmovestaxes.taxauthid\n\t\t\t\t\t WHERE stkmoveno=\".$stkmoveno;\n\t\t\t}\n \n debug_sql($sqlstockmovestaxes, __LINE__,$debug_sql,__FILE__);\n\t\t\t$resultstockmovestaxes=DB_query($sqlstockmovestaxes,$db);\n\t\t\twhile ($myrow3=DB_fetch_array($resultstockmovestaxes)){\n if(empty($myrow3['description']) == false){\n $impuesto=$myrow3['description'];\n }else{\n $impuesto=\"IVA\";\n }\n\t\t\t\t\n\t\t\t\t$charelectronictaxs=$charelectronictaxs.$charelectronictaxsini.'|'.$impuesto;\n\t\t\t\t$taxrate=number_format($myrow3['taxrate']*100,$decimalplaces,'.','');\n\t\t\t\t$charelectronictaxs=$charelectronictaxs.'|'.$taxrate;\n\t\t\t\tif($TipoAgrupacionXTag==1){\n\t\t\t\t\t//$taxratetotal=number_format(abs($myrow3['iva']),$decimalplaces,'.','');\n\t\t\t\t\t$taxratetotal = abs($myrow3['iva']);\n\t\t\t\t\t$taxratetotal = number_format($taxratetotal,$decimalplaces,'.','');\n\t\t\t\t}else{\n\t\t\t\t\t//$taxratetotal=number_format($myrow3['taxrate']*($subtot),$decimalplaces,'.','');\n\t\t\t\t\t$taxratetotal = $myrow3['taxrate'] * $myrow2['subtotal'];\n\t\t\t\t\t$taxratetotal = number_format($taxratetotal,$decimalplaces,'.','');\n\t\t\t\t}\n\t\t\t\t$charelectronictaxs=$charelectronictaxs.'|'.$taxratetotal;\n\t\t\t}\n ///***************************************///\n $TotGeneralCantEmision = 0;\n if ($TypeInvoice == 119) {\n //*****se agrega cantidad emision solo en remisiones *///\n $wo = 'select wo from workorders where orderno=\"' . ($myrow['orderno']-1) . '\"';\n if ($_SESSION['UserID'] == \"desarrollo\" and $debug) {\n \t//echo '<pre>Busca OT'.$wo;\n }\n debug_sql($wo, __LINE__,$debug_sql,__FILE__);\n $rwo = DB_query($wo, $db);\n if(DB_num_rows($rwo) > 0){\n $fwo = DB_fetch_array($rwo);\n $woo=$fwo['wo'];\n $SQL=\" SELECT legalid\n FROM tags \n WHERE tagref='\".$tag.\"'\";\n debug_sql($SQL, __LINE__,$debug_sql,__FILE__);\n $legal = DB_query($SQL, $db);\n list($legalid) = DB_fetch_array($legal);\n\n $sqlRequRes = \"SELECT t.wostdcost, \n t.worequirements_id, t.stockid, t.description,t.units, t.decimalplaces,\n (t.requiredqty) as requiredqty,\n (t.expectedcost) as expectedcost,\n (t.stdcost) AS costperqty,\n t.mbflag,\n t.categoryid,\n t.categorydescription,\n t.taxrate\n FROM (\tSELECT\n worequirements.worequirements_id,\n worequirements.stdcost AS wostdcost,\n worequirements.stockid,\n stockmaster.longdescription as description ,\n stockmaster.decimalplaces,\n stockmaster.mbflag,\n stockmaster.units,\n (stockcostsxlegal.avgcost) as stdcost,\n stockmaster.categoryid,\n stockcategory.categorydescription,\n SUM(if(worequirements.ispercent=1,0,worequirements.qtypu)) AS requiredqty,\n SUM(worequirements.stdcost*worequirements.qtypu) AS expectedcost,\n AVG(worequirements.qtypu) as qtypu,\n stockmaster.taxcatid,\n taxauthrates.taxrate\n FROM worequirements\n INNER JOIN stockmaster ON worequirements.stockid=stockmaster.stockid\n INNER JOIN taxauthrates ON taxauthrates.taxcatid = stockmaster.taxcatid\n INNER JOIN stockcategory ON stockmaster.categoryid = stockcategory.categoryid\n INNER JOIN stockcostsxlegal ON stockmaster.stockid = stockcostsxlegal.stockid AND stockcostsxlegal.legalid = \" .$legalid. \"\n INNER JOIN woitems ON woitems.stockid=worequirements.masterparentid\n WHERE worequirements.wo='\" . $woo . \"' and woitems.wo=worequirements.wo\n AND stockmaster.mbflag <> 'M'\n /*AND stockmaster.stockid='DOR1-13'*/\n GROUP BY worequirements.stockid) AS t\n GROUP BY t.stockid\n ORDER BY t.categorydescription\";\n\n if ($_SESSION['UserID'] == \"desarrollo\" and $debug) {\n \t//echo '<pre>GET ReqRes:'.$sqlRequRes;\n }\n \n debug_sql($sqlRequRes, __LINE__,$debug_sql,__FILE__);\n $RequirementsResult = DB_query($sqlRequRes, $db);\n $TotGeneralCantEmision = 0;\n while ($RequirementsRow = DB_fetch_array($RequirementsResult)) {\n $SQL2 = \"SELECT trandate,\n (qty + Case When movs.cantidad Is Null Then 0 Else movs.cantidad End) as qty,\n standardcost\n FROM stockmoves\n Left Join (Select ref4, stockid, reference, sum(qty) as cantidad\n From stockmoves\n Where type= 815 Group by ref4, stockid, reference) as movs On stockmoves.stockid= movs.stockid \n and stockmoves.reference= movs.reference \n and stockmoves.stkmoveno= movs.ref4\n WHERE stockmoves.type=28\n AND stockmoves.reference = '\" . $woo['wo'] . \"'\n AND stockmoves.stockid = '\" . $RequirementsRow['stockid'] . \"'\";\n\t\t\t\t\t\t\tdebug_sql($SQL2, __LINE__,$debug_sql,__FILE__);\n $IssuesResult = DB_query($SQL2, $db, _('Could not retrieve the issues of the item because:'));\n if ($_SESSION['UserID'] == \"desarrollo\" and $debug) {\n\t\t\t\t\t\t\t\t//echo '<pre>ok'.$SQL2;\n\t\t\t\t\t\t\t\t//die('END');\n }\n if (DB_num_rows($IssuesResult) > 0) {\n while ($IssuesRow = DB_fetch_array($IssuesResult)) {\n $IssueQty -= $IssuesRow['qty']; // because qty for the stock movement will be negative\n $IssueCost -= ($IssuesRow['qty'] * $IssuesRow['standardcost']);\n }\n }\n if($IssueQty>0){\n \t$TotGeneralCantEmision = $IssueQty;\n }else{\n \t$TotGeneralCantEmision = 0;\n }\n }\n\t\t\t\t\t\t//$charelectronicdetail=$charelectronicdetail.'|'.$TotGeneralCantEmision;\n \t}else{\n\t\t\t\t\t\t//$charelectronicdetail=$charelectronicdetail.'|'.$TotGeneralCantEmision;\n \t}\n \n $SQLemision=\"SELECT sum(plcdata.value) AS total,folio\n FROM worequirements\n INNER JOIN workorders ON workorders.wo = worequirements.wo\n INNER JOIN plcdata ON plcdata.stockid = worequirements.stockid AND plcdata.wo = worequirements.wo\n INNER JOIN stockmaster ON stockmaster.stockid = worequirements.stockid\n INNER JOIN stockmaster AS encabezado ON encabezado.stockid = worequirements.parentstockid\n INNER JOIN debtortrans ON workorders.orderno = debtortrans.order_ AND debtortrans.type = 119 AND debtortrans.transno='\".$InvoiceNo.\"' AND plcdata.transno = debtortrans.transno\n WHERE folio IN (SELECT folio FROM debtortrans WHERE order_='\".$myrow['orderno'].\"') GROUP BY folio;\";\n //echo '<br>EmisionAnt'.$TotGeneralCantEmision;\n \n debug_sql($SQLemision, __LINE__,$debug_sql,__FILE__);\n $resultEmision= DB_query($SQLemision, $db);\n //echo '<pre>SQLEmision: '.$SQLemision;\n $myrowEmision= DB_fetch_array($resultEmision);\n $TotGeneralCantEmision = 0;\n $TotGeneralCantEmision=$myrowEmision['total'];\n //echo '<br>Emision: '.$TotGeneralCantEmision;\n //$charelectronicdetail=$charelectronicdetail.'|'.$TotGeneralCantEmision;\n //echo '<br>Cadena: '.$charelectronicdetail; \n\t\t\t\t\t//echo '<br>END</br>';\n }\n $charelectronicdetail=$charelectronicdetail.'|'.$TotGeneralCantEmision;\n $charelectronicdetail=$charelectronicdetail.'|'.$movorderlineno;\n $charelectronicdetail=$charelectronicdetail.'|'.$fechaaduana;\n $charelectronicdetail=$charelectronicdetail.'|'.$pedimento;\n $charelectronicdetail=$charelectronicdetail.'';\n\t\t\t\t$nolinea=$nolinea+1;\n\t /**FIN DE CALCULO DE EMISIONES***/\n }\n\t}else{//\n\t\tif($TipoAgrupacionXTag==1 and $TypeInvoice <> 111){\n\t\t\t$sqldetails = 'SELECT stockmoves.stkmoveno,\n\t\t\t\t\t\t-- stockmoves.stockid,\n\t\t\t\t\t ProdLine.prodLineId as stockid,\n\t\t\t\t\t\tstockmoves.warranty,\n\t\t\t\t\t\t-- stockmaster.description,\n\t\t\t\t\t\tProdLine.Description as description,\n\t\t\t\t\t\t/*stockmaster.serialised,\n\t\t\t\t\t\tstockmaster.controlled,*/\n\t\t\t\t\t\t0 as serialised,\n\t\t\t\t\t\t0 as controlled,\n\t\t\t\t\t\tsum(case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end) as quantity ,\n\t\t\t\t\t\tstockmoves.narrative,\n\t\t\t\t\t\tstockmaster.units,\n\t\t\t\t\t\tstockmaster.decimalplaces,\n\t\t\t\t\t\tstockmoves.discountpercent,\n\t\t\t\t\t\tstockmoves.discountpercent1,\n\t\t\t\t\t\tstockmoves.discountpercent2,\n\t\t\t\t\t\tsum((case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end)*(stockmoves.price*IF(stockmovestaxes.taxrate IS NULL, 0, stockmovestaxes.taxrate)))/sum(case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end) AS fxnet,\n\t\t\t\t\t\tsum((case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end)*(stockmoves.price*IF(stockmovestaxes.taxrate IS NULL, 0, stockmovestaxes.taxrate))-totaldescuento)/sum(case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end) as subtotal,\n\t\t\t\t\t\t-- sum((stockmoves.price*case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end)/case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end) AS fxprice,\n\t\t\t\t\t\tsum((stockmoves.price*IF(stockmovestaxes.taxrate IS NULL, 0, stockmovestaxes.taxrate)*case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end))/sum(case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end) AS fxprice,\n\t\t\t\t\t\tstockmoves.narrative,\n\t\t\t\t\t\tstockmaster.units,\n\t\t\t\t\t\tstockmaster.categoryid,\n\t\t\t\t\t\tstockmoves.loccode as almacen,\n\t\t\t\t\t\tstockmoves.showdescription,\n\t\t\t\t\t\tstockcategory.MensajePV,\n stockmoves.ref4 as movorderline,\n stockmaster.flagadvance\n\t\t\t\tFROM stockmoves left JOIN stockmovestaxes ON stockmovestaxes.stkmoveno=stockmoves.stkmoveno, stockmaster,\n\t\t\t\t\tstockcategory\n\t\t\t\t\t \tINNER JOIN ProdLine ON ProdLine.prodLineId=stockcategory.prodLineId\n\t\t\t\t\t\t\n\t\t\t\tWHERE stockmoves.stockid = stockmaster.stockid\n\t\t\t\t\tAND stockmoves.type='.$TypeInvoice.'\n\t\t\t\t\tAND stockmoves.transno=' . $InvoiceNo . '\n\t\t\t\t\tAND stockmoves.tagref=' . $tag . '\n\t\t\t\t\tAND stockmoves.show_on_inv_crds=1\n\t\t\t\t\tAND stockcategory.categoryid = stockmaster.categoryid\n\t\t\t\tGROUP BY ProdLine.Description,ProdLine.prodLineId';\n\t\t}else{\n\t\t\t$sqldetails = 'SELECT stockmoves.stkmoveno,\n\t\t\t\t\t\tstockmoves.stockid,\n\t\t\t\t\t\tstockmoves.warranty,\n\t\t\t\t\t\tstockmaster.description,\n\t\t\t\t\t\tstockmaster.serialised,\n\t\t\t\t\t\tstockmaster.controlled,\n\t\t\t\t\t\t(case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end) as quantity ,\n\t\t\t\t\t\tstockmoves.narrative,\n\t\t\t\t\t\tstockmaster.units,\n\t\t\t\t\t\tstockmaster.decimalplaces,\n\t\t\t\t\t\tstockmoves.discountpercent,\n\t\t\t\t\t\tstockmoves.discountpercent1,\n\t\t\t\t\t\tstockmoves.discountpercent2,\n\t\t\t\t\t\t((case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end)*(stockmoves.price + (stockmoves.price * IF(stockmovestaxes.taxrate IS NULL, 0, stockmovestaxes.taxrate)))) AS fxnet,\n\t\t\t\t\t\t((case when stockmoves.type not in (11,65) then stockmoves.qty*-1 else qty end)*(stockmoves.price + (stockmoves.price * IF(stockmovestaxes.taxrate IS NULL, 0, stockmovestaxes.taxrate))))-totaldescuento as subtotal,\n\t\t\t\t\t\t(stockmoves.price + (stockmoves.price * IF(stockmovestaxes.taxrate IS NULL, 0, stockmovestaxes.taxrate))) AS fxprice,\n\t\t\t\t\t\tstockmoves.narrative,\n\t\t\t\t\t\tstockmaster.units,\n\t\t\t\t\t\tstockmaster.categoryid,\n\t\t\t\t\t\tstockmoves.loccode as almacen,\n\t\t\t\t\t\tstockmoves.showdescription,\n\t\t\t\t\t stockcategory.MensajePV,\n\t\t\t\t\t\tstockmaster.longdescription,\n\t\t\t\t\t\tstockmaster.mbflag,\n stockmoves.ref4 as movorderline,\n stockmaster.flagadvance\n\t\t\t\t\tFROM stockmoves inner join stockmaster ON stockmoves.stockid = stockmaster.stockid\n\t\t\t\t\t\t\t\tinner join stockcategory on stockcategory.categoryid = stockmaster.categoryid\n\t\t\t\t\t\t\t\tleft JOIN stockmovestaxes ON stockmovestaxes.stkmoveno=stockmoves.stkmoveno \n\t\t\t\tWHERE stockmoves.stockid = stockmaster.stockid\n\t\t\t\t\tAND stockmoves.type='.$TypeInvoice.'\n\t\t\t\t\tAND stockmoves.transno=' . $InvoiceNo . '\n\t\t\t\t\tAND stockmoves.tagref=' . $tag . '\n\t\t\t\t\tAND stockmoves.show_on_inv_crds=1\n\t\t\t\t\tAND stockcategory.categoryid = stockmaster.categoryid';\n\t\t}\n\t\t//echo \"<pre>\".$sqldetails;\n debug_sql($sqldetails, __LINE__,$debug_sql,__FILE__);\n //DB_query(\"SET NAMES 'utf8';\",$db);\n\t\t$resultdetails=DB_query($sqldetails,$db);\n\t\twhile ($myrow2=DB_fetch_array($resultdetails)){\n\t\t\t$stocknegativo = 0; //obtener si es negativo para precio\n\t\t\t$stockid=$myrow2['stockid'];\n\t\t\t$charelectronicdetail=$charelectronicdetail.$charelectronicinidet.'|'.$stockid;\n\t\t\t$stockid=$myrow2['stockid'];\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockid;\n\t\t\t$stockcantidad=number_format($myrow2['quantity'],$decimalplaces,'.','');\n\t\t\t$stockcantidadCompleta = $myrow2['quantity'];\n\n\t\t\tif ($stockcantidad < 0) {\n \t//Cantidad en negativo\n \t$stocknegativo = 1;\n }\n\n\t\t\t/*if ($_SESSION['UserID'] == 'desarrollo' or $_SESSION['UserID'] == 'iortiz') {\n\t\t\t\t$stockcantidad = abs($stockcantidad);\n\t\t\t}*/\n\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.abs($stockcantidad); //Cantidad como este en DB + o -\n\t\t\t$stockdescrip=$myrow2['description'];\n\t\t\t$totalCantEmision = 0;\n $movorderlineno = $myrow2['movorderline'];\n\t\t\tif($_SESSION['DescrLargaFact'] == $myrow2['mbflag']){\n\t\t\t\t//$stockdescrip=$myrow2['description'].' '.$myrow['ordertype'].' '.$myrow2['longdescription'];\n\t\t\t\t$stockdescrip=$myrow2['description'].' '.$myrow2['longdescription'].' ';\n\t\t\t}else{\n\t\t\t\t//$stockdescrip=$myrow2['description'].' '.$myrow['ordertype'];\n\t\t\t\t$stockdescrip=$myrow2['description'].' ';\n\t\t\t}\n\t\t\t\n\t\t\t// valores de los vendedorfees por linea\n\t\t\t$descrprop=\" (\";\n\t\t\t$sqlpropertyes=\"SELECT DISTINCT p.InvoiceValue AS val,\n\t\t\t\t\t\t\t p.complemento,\n\t\t\t\t\t\t\t sp.label\n\t\t\t\t\t\t\tFROM salesstockproperties p,\n\t\t\t\t\t\t\t stockcatproperties sp,\n\t\t\t\t\t\t\t stockmaster sm\n\t\t\t\t\t\t\tWHERE p.stkcatpropid=sp.stkcatpropid\n\t\t\t\t\t\t\t AND sp.categoryid=sm.categoryid\n\t\t\t\t\t\t\t AND p.orderno=\" . $orderno . \"\n\t\t\t\t\t\t\t AND p.typedocument IN(110, '\" . $TypeInvoice . \"')\n\t\t\t\t\t\t\t AND sp.reqatprint=1\n\t\t\t\t\t\t\t AND sm.stockid='\" . $stockid . \"'\";\n \n //echo $sqlpropertyes;\n \n\t\t\t$resultpropertyes=DB_query($sqlpropertyes,$db);\n\t\t\t$xt=0;\n\t\t\twhile ($myrowprop=DB_fetch_array($resultpropertyes)){\n\t\t\t\t$traba=explode(\" \",$myrowprop['val']);\n\t\t\t\t$trab=$traba[0];\n\t\t\t\tif ($xt==0) {\n\t\t\t\t\t$descrprop=$descrprop.' '.$myrowprop['label'].':'.$trab;\n\t\t\t\t} else {\n\t\t\t\t\t$descrprop=$descrprop.\" , \".$myrowprop['label'].':'.$trab;\n\t\t\t\t}\n\n\t\t\t\tswitch ($myrowprop['val']) {\n\t\t\t\t\tcase 'Interno':\n\t\t\t\t\t\t$sqlbomb = \"SELECT class FROM stockclass WHERE idclass = '\" . $myrowprop['complemento'] . \"'\";\n\t\t\t\t\t\t$rsqlbomb = DB_query($sqlbomb, $db);\n\t\t\t\t\t\t$rowbom = DB_fetch_array($rsqlbomb);\n\t\t\t\t\t\t$descrprop .= \" - Proveedor : \" . $rowbom['class'];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'Externo':\n\t\t\t\t\t\t$sqlbomb = \" SELECT suppname FROM suppliers WHERE supplierid = '\" . $myrowprop['complemento'] . \"'\";\n\t\t\t\t\t\t$rsqlbomb = DB_query($sqlbomb, $db);\n\t\t\t\t\t\t$rowbom = DB_fetch_array($rsqlbomb);\n\t\t\t\t\t\t$descrprop .= \" - Proveedor : \" . $rowbom['suppname'];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t$xt=$xt+1;\n\t\t\t}\n\t\t\t$descrprop=$descrprop.\" )\";\n\t\t\tif ($xt==0){//\n\t\t\t\t$descrprop=\"\";\n\t\t\t}\n\t\t\tif($myrow2['MensajePV'] <> \"\"){\n\t\t\t\t$descrprop = $descrprop.$myrow2['MensajePV'];\n\t\t\t}\n\n\t\t\t/*if ($_SESSION[\"desarrollo\"]){\n\t\t\t\techo \"series 1: \".\"SELECT DISTINCT stockserialitems.serialno as serie\n\t\t\t\t\t\t FROM stockserialmoves , stockmoves , stockserialitems\n\t\t\t\t\t\t WHERE stockmoves.stkmoveno=stockserialmoves.stockmoveno\n\t\t\t\t\t\t\tAND stockserialmoves.stockid=stockserialitems.stockid\n\t\t\t\t\t\t\tAND stockserialmoves.serialno=stockserialitems.serialno\n\t\t\t\t\t\t\tAND stockserialitems.loccode='\".$myrow2['almacen'].\"' \n\t\t\t\t\t\t\tAND qualitytext NOT LIKE '%rechaz%' \n\t\t\t\t\t\t\tAND stockmoves.stockid='CASCLI'\";\t\t\n\t\t\t}*/\n\n\t\t\t$numberserie= \"\";\n\t\t\t$xserie=0;\n\n\t\t\tif (strpos(\"@\".$_SESSION ['DatabaseName'], \"gruposervillantas\")) {\n $sqlserials=\"SELECT DISTINCT stockserialitems.serialno AS serie\n\t\t\t\t\t\t\tFROM workorders \n\t\t\t\t\t\t\tINNER JOIN stockserialitems ON workorders.wo= stockserialitems.wo\n\t\t\t\t\t\t\tWHERE orderno= '\".$orderno.\"'\n\t\t\t\t\t\t\tAND stockserialitems.customs= '\".$stockid.\"' \n\t\t\t\t\t\t\tAND qualitytext NOT LIKE '%rechaz%' AND stockserialitems.serialno NOT LIKE 'R-%'\n\t\t\t\t\t\t\tAND stockserialitems.stockid= 'cascli'\";\n\n\t\t\t\t//echo \"series 2: \".$sqlserials;\t\t\n\n\t\t\t\t$resultado= DB_query($sqlserials,$db);\n\t\t\t\t\n\t\t\t\twhile ($myrownseries=DB_fetch_array($resultado)) {\n\t\t\t\t\tif ($stockid!='cascli'){\n\t\t\t\t\t\t$consulta= \"SELECT DISTINCT stockserialitems.serialno AS serie\n\t\t\t\t\t\t\t\t\tFROM workorders \n\t\t\t\t\t\t\t\t\tINNER JOIN stockserialitems ON workorders.wo= stockserialitems.wo\n\t\t\t\t\t\t\t\t\tWHERE orderno= '\".$orderno.\"'\n\t\t\t\t\t\t\t\t\tAND stockserialitems.customs= '\".$stockid.\"'\n\t\t\t\t\t\t\t\t\tAND qualitytext LIKE '%rechaz%' \n\t\t\t\t\t\t\t\t\tAND stockserialitems.serialno LIKE '%\".$myrownseries['serie'].\"%'\";\n\n\t\t\t\t\t\t$resultado2= DB_query($consulta, $db);\n\n\t\t\t\t\t\tif ($registro=DB_fetch_array($resultado2)){\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif ($xserie==0){\n\t\t\t\t\t\t$numberserie=' Series: '.$myrownseries['serie'];\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$numberserie=$numberserie.', '.$myrownseries['serie'];\n\t\t\t\t\t}\n\n\t\t\t\t\t$xserie++;\n\t\t\t\t}\n }\n\n\t\t\t$descrnarrative=\"\";\n\t\t\t/*$sqlnarrative=\"SELECT narrative\n\t\t\t\tFROM salesorderdetails p\n\t\t\t\tWHERE p.orderno=\" . $orderno . \"\n\t\t\t\t AND p.stkcode='\" . $stockid . \"'\";\n\t\t\t$resultnarrative=DB_query($sqlnarrative,$db);\n\t\t\twhile ($myrownarrative=DB_fetch_array($resultnarrative)){\n\t\t\t\t$descrnarrative=$myrownarrative['narrative'];\n\t\t\t\t$descrnarrative=str_replace('|', '', $descrnarrative);\n\t\t\t}*/\n\t\t\t\n\t\t\t$descrnarrative=str_replace('\\r','',str_replace('\\n','',$myrow2['narrative']));\n\t\t\t$descrnarrative=str_replace('|', '', $descrnarrative);\n\t\t\t\n\t\t\tif (strlen($descrnarrative)==0){\n\t\t\t\t$descrnarrative=\"\";\n\t\t\t}\n \n\t\t\tif($myrow2['showdescription']==1){\n\t\t\t\t$stockdescripuno=$stockdescrip.$descrprop.$descrnarrative.$numberserie;\n\t\t\t}else{\n if (strlen($descrnarrative)==0){\n $stockdescripuno=$stockdescrip.$descrprop.$descrnarrative.$numberserie;\n }else{\n $stockdescripuno=$descrnarrative.$numberserie;\n }\n\t\t\t}\n\n\t\t\tif($_SESSION ['DatabaseName'] == \"erpgosea\" or $_SESSION ['DatabaseName'] == \"erpgosea_CAPA\" or $_SESSION ['DatabaseName'] == \"erpgosea_DES\"){\n\t\t\t\tif ($myrow2['stockid'] =='10001'){\n\t\t\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.\"RENTA DE \".$stockdescripuno;\n\t\t\t\t}else{\n\t\t\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockdescripuno;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockdescripuno;\n\t\t\t}\n \n\t\t\t// Se QUITO POR EL DE ARRIBA $charelectronicdetail=$charelectronicdetail.'|'.$stockdescripuno;\n\t\t\t$stockprecio=number_format($myrow2['fxprice'],$decimalplaces,'.','');\n\t\t\t$stockneto=number_format($myrow2['fxnet'],$decimalplaces,'.','');\n\n\t\t\tif ($_SESSION['UserID'] == 'desarrollo') {\n\t\t\t\t//echo \"<br>stockcantidad: \".$stockcantidad.\" - stockcantidadCompleta \".$stockcantidadCompleta.\" - stockprecio: \".$stockprecio.\" - stockneto: \".$stockneto.\"<br>\";\n\t\t\t}\n\t\t\t\n\t\t\tif ($myrow2['flagadvance'] == 1) {\n\t\t\t\t//Obtener total de la partida, si existe diferencia obtener precio unitario\n\t\t\t\t$totalPar = number_format($stockcantidad * $stockprecio,$decimalplaces,'.','');\n\t\t\t\t//echo \"<br>totalPar1: \".$totalPar.\"<br>\";\n\t\t\t\tif (abs($totalPar) != abs($stockneto)) {\n\t\t\t\t\t$stockprecio = number_format($stockneto/$stockcantidad,$decimalplaces,'.','');\n\t\t\t\t}\n\n\t\t\t\tif ($stockcantidad < 0 and $stockprecio > 0) {\n\t\t\t\t\t$stockprecio = $stockprecio * (-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ($stocknegativo == 1 and $stockprecio > 0) {\n\t\t\t\t//Si cantidad es negativo, poner precio en negativo para operacion\n\t\t\t\t$stockprecio = $stockprecio * (-1);\n\t\t\t}\n\n\t\t\tif ($_SESSION['UserID'] == 'desarrollo') {\n\t\t\t\t//echo \"<br>stockprecio change: \".$stockprecio.\"<br>\";\n\t\t\t}\n\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.($stockprecio);\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.($stockneto);\n\t\t\t$stockunits=$myrow2['units'];\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockunits;\n\t\t\t$stockcat=$myrow2['categoryid'];\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockcat;\n\t\t\t$ordencompra=\"\";\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$ordencompra;\n\t\t\t// descuentos\n\t\t\t$discount1=number_format($myrow2['discountpercent']*100,$decimalplaces,'.','');\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$discount1;\n\t\t\t$discount2=number_format($myrow2['discountpercent1']*100,$decimalplaces,'.','');\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$discount2;\n\t\t\t$discount3=number_format($myrow2['discountpercent2']*100,$decimalplaces,'.','');\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$discount3;\n\t\t\t//subtotal\n\t\t\t//$subtotal=number_format($myrow2['subtotal'],2,'.','');\n\t\t\t//$charelectronicdetail=$charelectronicdetail.'|'.$subtotal;\n\t\t\t// consulta de aduana\n\t\t\t$stkmoveno=$myrow2['stkmoveno'];\n\t\t\t$almacen=$myrow2['almacen'];\n\n\t\t\t$sqlstockmovestaxes=\"SELECT stkmoveno,taxauthid,taxrate,taxcalculationorder,taxontax,taxauthorities.description\n\t\t\t\t\t FROM stockmovestaxes,taxauthorities\n\t\t\t\t\t WHERE taxauthorities.taxid=stockmovestaxes.taxauthid\n\t\t\t\t\t\t AND stkmoveno=\".$stkmoveno;\n\t\t\t\n debug_sql($SQL, __LINE__,$debug_sql,__FILE__);\n debug_sql($sqlstockmovestaxes, __LINE__,$debug_sql,__FILE__);\n\t\t\t$resultstockmovestaxes=DB_query($sqlstockmovestaxes,$db);\n\t\t\twhile ($myrow3=DB_fetch_array($resultstockmovestaxes)){\n\t\t\t\t$impuesto=$myrow3['description'];\n\t\t\t\t$charelectronictaxs=$charelectronictaxs.$charelectronictaxsini.'|'.$impuesto;\n\t\t\t\t$taxrate=number_format($myrow3['taxrate']*100,$decimalplaces,'.','');\n\t\t\t\t$charelectronictaxs=$charelectronictaxs.'|'.$taxrate;\n\t\t\t\t//$subtot = number_format($myrow2['subtotal'], 2); //Siempre se manejo en 2\n\t\t\t\t//$taxratetotal=number_format($myrow3['taxrate']*($subtot),$decimalplaces,'.','');\n\t\t\t\t\n\t\t\t\t$taxratetotal = $myrow3['taxrate'] * $myrow2['subtotal'];\n\t\t\t\t$taxratetotal = number_format($taxratetotal, $decimalplaces,'.','');\n\n\t\t\t\t//$taxtotalratex=$myrow3['taxrate']*($myrow2['fxnet']*$myrow2['fxprice']);\n\t\t\t\t$taxtotalratex=$myrow3['taxrate']*($myrow2['subtotal']);\n\t\t\t\t$charelectronictaxs=$charelectronictaxs.'|'.$taxratetotal;\n\t\t\t}\n\n\t\t\t//$subtotal=number_format($myrow2['subtotal']+$taxtotalratex,$decimalplaces,'.','');\n\t\t\t$subtotal = $myrow2['subtotal'] + $taxtotalratex;\n\t\t\t$subtotal = number_format($subtotal,$decimalplaces,'.','');\n\t\t\t\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$subtotal;\n\t\t\t//$subtotal=number_format($myrow2['subtotal']+$taxtotalratex,$decimalplaces,'.','');\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$subtotal;\n\n\n\t\t\t$sqladuana=\"SELECT stockserialitems.customs as aduana,customs_number as noaduana,\n\t\t\t\t\tpedimento, DATE_FORMAT(customs_date,'%Y-%m-%d') as fechaaduana\n\t\t\t\t FROM stockserialmoves , stockmoves , stockserialitems\n\t\t\t\t WHERE stockmoves.stkmoveno=stockserialmoves.stockmoveno\n\t\t\t\t\tAND stockserialmoves.stockid=stockserialitems.stockid\n\t\t\t\t\tAND stockserialmoves.serialno=stockserialitems.serialno\n\t\t\t\t\tAND stockserialitems.loccode='\".$almacen.\"'\n\t\t\t\t\tAND stockmoves.stkmoveno=\".$stkmoveno.\"\n\t\t\t\t\tAND stockmoves.stockid='\".$stockid.\"'\";\n\t\t\t debug_sql($sqladuana, __LINE__,$debug_sql,__FILE__);\n\t\t\t$Result= DB_query($sqladuana,$db);\n\t\t\tif (DB_num_rows($Result)==0) {\n\t\t\t\t$nameaduana=\"\";\n\t\t\t\t$numberaduana=\"\";\n\t\t\t\t$fechaaduana=\"\";\n\t\t\t}else{\n\t\t\t\t$myrowaduana = DB_fetch_array($Result);\n\t\t\t\t$aduana = $myrowaduana['aduana'];\n\t\t\t\t$separaaduana=explode(\"|\",$aduana);\n\t\t\t\t$nameaduana = $separaaduana[0];\n\t\t\t\t$numberaduana= $separaaduana[1];\n\t\t\t\t$fechaaduana= $separaaduana[2];\n\t\t\t\tif (strlen($nameaduana)==0 or strlen($numberaduana)==0 /*or !Is_Date($fechaaduana)*/){\n\t\t\t\t\t$nameaduana=\"\";\n\t\t\t\t\t$numberaduana=\"\";\n\t\t\t\t\t$fechaaduana=\"\";\n\t\t\t\t}\n\t\t\t\t$nameaduana = $myrowaduana['aduana'];\n\t\t\t\t$numberaduana = $myrowaduana['noaduana'];\n\t\t\t\t$fechaaduana = $myrowaduana['fechaaduana'];\n\t\t\t\t$pedimento = $myrowaduana['pedimento'];\n\t\t\t\t\n\t\t\t}\n\n\t\t\tif($myrow['type'] == 66) { // Si es factura remision\n\n\t\t\t\t$ordernotmp = $myrow['orderno'];\n\n\t\t\t\t$SQL = \"\n\t\t\t\t\tSELECT GROUP_CONCAT(debtortrans.order_) AS order_\n\t\t\t\t\tFROM invoicetoremision\n\t\t\t\t\tINNER JOIN debtortrans\n\t\t\t\t\tON debtortrans.id = invoicetoremision.idremision\n\t\t\t\t\tWHERE invoicetoremision.idinvoice = '{$myrow['iddocto']}'\n\t\t\t\t\";\n\t\t\t\tdebug_sql($SQL, __LINE__,$debug_sql,__FILE__);\n\t\t\t\t$rstmp = DB_query($SQL, $db);\n\t\t\t\t$rowtmp = DB_fetch_array($rstmp);\n\t\t\t\t$ordernotmp = $rowtmp['order_'];\n\n\t\t\t\tif(empty($ordernotmp) == FALSE) {\n\n\t\t\t\t\t$SQL = \"\n\t\t\t\t\t\tSELECT\n\t\t\t\t\t\tDATE_FORMAT(purchorderdetails.datecustoms,'%Y-%m-%d') AS fechaaduana,\n\t\t\t\t\t\tpedimento,\n\t\t\t\t\t\tcustoms AS aduana\n\t\t\t\t\t\tFROM purchorders\n\t\t\t\t\t\tINNER JOIN purchorderdetails\n\t\t\t\t\t\tON purchorderdetails.orderno = purchorders.orderno\n\t\t\t\t\t\tWHERE purchorders.requisitionno IN ($ordernotmp)\n\t\t\t\t\t\tAND purchorderdetails.itemcode = '$stockid'\n\t\t\t\t\t\";\n\t\t\t\t\tdebug_sql($SQL, __LINE__,$debug_sql,__FILE__);\n\t\t\t\t\t$rstmp = DB_query($SQL, $db);\n\n\t\t\t\t\tif($rowtmp = DB_fetch_array($rstmp)) {\n\t\t\t\t\t\t$fechaaduana = $rowtmp['fechaaduana'];\n\t\t\t\t\t\t$numberaduana = $rowtmp['pedimento'];\n\t\t\t\t\t\t$nameaduana = $rowtmp['aduana'];\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n \n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$nameaduana;\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$numberaduana;\n\t\t\t//$charelectronicdetail=$charelectronicdetail.'|'.$fechaaduana.'aqui';\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$almacen;\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$totalCantEmision;\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$movorderlineno;\n\t\t\t\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$fechaaduana;\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$pedimento;\n\n\t\t\t/*$stockprecio=number_format($myrow2['fxnet']+$taxtotalratex,2,'.','');\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockprecio;\n\t\t\t$stockneto=number_format($myrow2['fxnet']+$taxtotalratex,2,'.','');\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockneto;\n\t\t\t$stockunits=$myrow2['units'];\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockunits;\n\t\t\t$stockcat=$myrow2['categoryid'];\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$stockcat;\n\t\t\t$ordencompra=\"\";\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$ordencompra;\n\t\t\t// descuentos\n\t\t\t$discount1=number_format($myrow2['discountpercent']*100,2,'.','');\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$discount1;\n\t\t\t$discount2=number_format($myrow2['discountpercent1']*100,2,'.','');\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$discount2;\n\t\t\t$discount3=number_format($myrow2['discountpercent2']*100,2,'.','');\n\t\t\t$charelectronicdetail=$charelectronicdetail.'|'.$discount3;\n\t\t\t//subtotal*/\n\n\t\t}\n /*if($_SESSION['UserID'] == \"desarrollo\"){\n echo '<br><pre>$charelectronicdetail: '.$charelectronicdetail;\n }*/\n \n\t}\n\t// complemento INE\n $charelectronicdetailINEComplements=\"\";\n $permiso_complementos = 'SELECT typecomplement FROM custbranch WHERE debtorno=\"'.$branch.'\"';\n\t$resul_permiso = DB_query($permiso_complementos,$db);\n\tlist($permiso_complemento) = DB_fetch_array($resul_permiso);\n\tif($permiso_complemento==1){\n\t\t$Select_INE = \"SELECT typeprocess,\n\t\t\t\t\t\t\ttypecommittee,\n\t\t\t\t\t\t\tentity, \n\t\t\t\t\t\t\tidaccounting, \n\t\t\t\t\t\t\torderno,\n\t\t\t\t\t\t\tIFNULL(scope,'') as scope \n\t\t\t\t\t\tFROM complementsine \n\t\t\t\t\t\tWHERE orderno = '\" . $orderno .\"'\";\n\t\t$Result_INE = DB_query($Select_INE, $db);\n\t\t$charelectronicdetailINEComplements = '|'.chr(13).chr(10).'010';\n while($ine = DB_fetch_array($Result_INE)){\n \t$tipoproceso = utf8_decode($ine['typeprocess']);\n\n \t$tipoproceso = str_replace(chr(63),chr(241), $tipoproceso);\n\t\t\t$detallesINE .= $tipoproceso . '|'.$ine['typecommittee'].'|'.$ine['entity'].'|'.$ine['idaccounting'].'|'.$ine['orderno'].'|'.$ine['scope'];\n\t\t}\n\t\t$charelectronicdetailINEComplements=$charelectronicdetailINEComplements.'|'.$detallesINE;\n\t\tif ($_SESSION ['UserID'] == 'saplicaciones' ) {\n\t\t\techo \"<br>\" . $charelectronicdetailINEComplements;\n\t\t}\n }\n\t// ivas retenidos\n\n\tif($_SESSION['UserID'] == \"desarrollo\"){\n\t\t//\techo __line__.'<br><pre>$charelectronic: '.$charelectronic;\n\t\t//\techo __line__.'<br><pre>$charelectronicdetail: '.$charelectronicdetail;\n\t\t//\t\techo __line__.'<br><pre>$charelectronictaxsret: '.$charelectronictaxsret;\n\t\t//\t\techo __line__.'<br><pre>$charelectronictaxsfederal: '.$charelectronictaxsfederal;\n\t\t//\t\techo __line__.'<br><pre>$charelectronictaxslocal: '.$charelectronictaxslocal;\n\t\t//\t\techo __line__.'<br><pre>$charelectronicEmbarque: '.$charelectronicEmbarque;\n\t\t//\t\techo __line__.'<br><pre>$totalCantEmision: '.$totalCantEmision;\n\t\t// echo __line__.'<br><pre>$charelectronicdetailINEComplements: '.$charelectronicdetailINEComplements;\n\t}\n if(empty($totalCantEmision) == true){\n $totalCantEmision = 0;\n }\n if($nivelfacturacion==1){\n debug_sql('TIPO OT', __LINE__,$debug_sql,__FILE__);\n $stockid=$OT; \n $stockcantidad = 1;\n $stockdescrip = $descripcionOT;\n }elseif($nivelfacturacion==2){\n debug_sql('TIPO CONCEPTOS', __LINE__,$debug_sql,__FILE__);\n \n }\n elseif($nivelfacturacion==3){\n debug_sql('Productos manufacturacios', __LINE__,$debug_sql,__FILE__);\n }\n\t// \t die(\"END XSA\");\n\n\tif ($rfccliente==\"XAXX010101000\" && $_SESSION['DesgloseIVA']!=1){\n\t\t$cadenaenvio=$charelectronic.$charelectronicdetail.$charelectronictaxsret.$charelectronictaxsfederal.$charelectronictaxslocal.$charelectronicEmbarque.$totalCantEmision.$charelectronicdetailINEComplements;\n\t\t$cadenaenviada=$cadenaenvio;//retornarString($cadenaenvio);\n\t}else{\n\t\t$cadenaenvio=$charelectronic.$charelectronicdetail.$charelectronictaxsfederal.$charelectronictaxs.$charelectronictaxslocal.$charelectronicEmbarque.$totalCantEmision.$charelectronicdetailINEComplements;\n\t\t$cadenaenviada=$cadenaenvio;//retornarString($cadenaenvio);\n\t}\n \n //debug_sql('cadena original <br>'.$cadenaenviada, __LINE__,true,__FILE__,'blue');\n //echo \"<br> XSAInvoicing: \".$cadenaenviada.\"<br>\";\n return $cadenaenviada;\n}", "function getTitulos() {\n //arreglo para remplazar los titulos de las columnas \n $titulos_campos['dep_id'] = COD_DEPARTAMENTO;\n $titulos_campos['dep_nombre'] = NOMBRE_DEPARTAMENTO;\n\n $titulos_campos['der_id'] = COD_DEPARTAMENTO_REGION;\n $titulos_campos['der_nombre'] = NOMBRE_DEPARTAMENTO_REGION;\n\n $titulos_campos['mun_id'] = COD_MUNICIPIO;\n $titulos_campos['mun_nombre'] = NOMBRE_MUNICIPIO;\n $titulos_campos['mun_poblacion'] = POB_MUNICIPIO;\n\n $titulos_campos['ope_id'] = OPERADOR;\n $titulos_campos['ope_nombre'] = OPERADOR_NOMBRE;\n $titulos_campos['ope_sigla'] = OPERADOR_SIGLA;\n $titulos_campos['ope_contrato_no'] = OPERADOR_CONTRATO_NRO;\n $titulos_campos['ope_contrato_valor'] = OPERADOR_CONTRATO_VALOR;\n\n $titulos_campos['Id_Ciudad'] = TITULO_CIUDAD;\n $titulos_campos['Id_Pais'] = NOMBRE_PAIS;\n $titulos_campos['Nombre_Ciudad'] = NOMBRE_CIUDAD;\n\n $titulos_campos['Nombre_Pais'] = NOMBRE_PAIS;\n\n $titulos_campos['Id_Familia'] = TITULO_FAMILIAS;\n $titulos_campos['Descripcion_Familia'] = DESCRIPCION_FAMILIA;\n\n $titulos_campos['Id_Moneda'] = TITULO_MONEDA;\n $titulos_campos['Descripcion_Moneda'] = DESCRIPCION_MONEDA;\n\n $titulos_campos['cfi_numero'] = CUENTA_NUMERO;\n $titulos_campos['cfi_nombre'] = CUENTA_NOMBRE;\n\n $titulos_campos['cft_id'] = CUENTA_TIPO;\n $titulos_campos['cft_nombre'] = CUENTA_TIPO;\n\n $titulos_campos['mov_descripcion'] = MOVIMIENTO_DESCRIPCION;\n $titulos_campos['mov_tipo'] = MOVIMIENTO_TIPO;\n\n $titulos_campos['idCentroPoblado'] = TITULO_CENTRO_POBLADO;\n $titulos_campos['codigoDane'] = CODIGO_DANE_CENTRO_POBLADO;\n $titulos_campos['nombre'] = NOMBRE_CENTRO_POBLADO;\n $titulos_campos['mun_id'] = MUNICIPIO_CENTRO_POBLADO;\n\n $titulos_campos['enc_tipo_nombre'] = TIPO_INSTRUMENTO;\n $titulos_campos['enc_tipo_desc'] = DESCRIPCION_ACTIVIDAD;\n\n $titulos_campos['Descripcion_Tipo'] = \"Plan\";\n \n $titulos_campos['descripcionTipoHallazgo'] = DESCRIPCION_TIPO_HALLAZGO;\n $titulos_campos['descripcion'] = AREA_TIPO_HALLAZGO;\n\n return $titulos_campos;\n }", "public function queryTramo ( dto_servicio $dtoServicio ) {\r\n\t\t\t\r\n\t\t\t$sql=\" SELECT idtramo,tramo,IFNULL(porcentaje_comision,'') AS 'porcentaje_comision' FROM ca_tramo WHERE idservicio = ? AND tipo = 'TRAMO' \";\r\n\t\t\t\r\n\t\t\t//$cartera=$dtoCartera->getId();\r\n\t\t\t$servicio = $dtoServicio->getId();\r\n\t\t\t\r\n\t\t\t$factoryConnection= FactoryConnection::create('mysql');\r\n\t $connection = $factoryConnection->getConnection();\r\n\t\t\t\r\n \t //$connection->beginTransaction();\r\n\t\t\t\r\n \t$pr=$connection->prepare($sql);\r\n\t\t\t//$pr->bindParam(1,$cartera);\r\n\t\t\t$pr->bindParam(1,$servicio);\r\n\t\t\tif( $pr->execute() ) {\r\n\t\t\t\t//$connection->commit();\r\n\t\t\t\treturn $pr->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t\t}else{\r\n\t\t\t\t//$connection->rollBack();\r\n\t\t\t\treturn array();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "function loadTariffs($ar){\n $p = new XParam($ar, array());\n $periods = $p->get('period');\n if (count($periods)==0){\n XShell::setNextData('message', 'Auncune période seléctionnée');\n return;\n }\n // recupération des produits à traiter\n $dscatalog = XDataSource::objectFactoryHelper8('BCLASS=XDSTable&SPECS='.XModEPassLibre::$tableCATALOG);\n $ar['tplentry'] = TZR_RETURN_DATA;\n $ar['getselectonly'] = 1;\n $select = $dscatalog->procQuery($ar);\n $selectedproductoids = array();\n $rsc = selectQueryGetAll($select);\n foreach($rsc as $orsc){\n $selectedproductoids[] = $orsc['KOID'];\n }\n $wtpsi = $this->getAWTPSI();\n // lecture du tarif TA pour chaque produit à la date de ref de la période\n // ajout si necessaire de la période\n // mise à jour du prix sinon\n $new = 0;\n $upd = 0;\n $del = 0; // ???\n $errsoap = 0;\n $errwtpsi = 0;\n $nbprod = 0;\n // lecture des produits\n $bp = $this->dswtscatalog->browse(array('_options'=>array('local'=>true), 'pagesize'=>999, 'first'=>0, 'tplentry'=>TZR_RETURN_DATA,\n 'options'=>array('tapool'=>array('target_fields'=>array('prjno', 'poolno', 'talabel')),\n 'taticket'=>array('target_fields'=>array('talabel', 'ttno')),\n 'taperson'=>array('target_fields'=>array('talabel', 'ptno')))));\n $nbprod = count($bp['lines_oid']);\n\n foreach($periods as $periodoid){\n // lecture de la periode\n $dp = $this->dswtsperiod->rdisplay($periodoid);\n $datedeb = $dp['odatedeb']->raw;\n $datefin = $dp['odatefin']->raw;\n $dateref = $dp['odateref']->raw;\n foreach($bp['lines_oid'] as $i=>$productoid){\n if (!in_array($productoid, $selectedproductoids))\n continue;\n $ar2 = array('ticketdata'=>array('NPERSONTYPENO'=>$bp['lines_otaperson'][$i]->link['optno']->raw,\n 'NPOOLNO'=>$bp['lines_otapool'][$i]->link['opoolno']->raw,\n 'NPROJECTNO'=>$bp['lines_otapool'][$i]->link['oprjno']->raw,\n 'NTICKETTYPENO'=>$bp['lines_otaticket'][$i]->link['ottno']->raw,\n 'SZVALIDFROM'=>$dateref)\n );\n\n $soap = $bp['lines_otapool'][$i]->link['opoolno']->raw.'/'.$bp['lines_otapool'][$i]->link['otalabel']->raw.' '\n .$bp['lines_otaticket'][$i]->link['ottno']->raw.'/'.$bp['lines_otaticket'][$i]->link['otalabel']->raw.' '\n .$bp['lines_otaperson'][$i]->link['optno']->raw.'/'.$bp['lines_otaperson'][$i]->link['otalabel']->raw;\n $soap .= ' <br>[';\n foreach($ar2['ticketdata'] as $ak=>$av){\n $soap .= ' '.$ak.':'.$av;\n }\n $soap.=']';\n $tarif = $wtpsi->doGetTariff($ar2);\n\n if ($tarif === false || $tarif->NERRORNO != '0'){\n $errsoap += 1;\n $mess .= \"<tr><td>$soap</td>\";\n if ($tarif !== false){\n $errwtpsi += 1;\n $mess .= '<td> impossible de lire le tarif '.$tarif->SZERRORMESSAGE.'</td>';\n } else {\n $mess .= '<td>impossible de lire le tarif</td>';\n }\n $mess .= '</tr>';\n } else {\n $mess .= \"<tr><td>$soap</td><td>\".($tarif->NTARIFF/100).'</td></tr>';\n // recherche de la ligne . maj ou creation\n $lar = array('_options'=>array('local'=>true),\n 'period'=>$periodoid,\n 'product'=>$productoid,\n 'dated'=>$datedeb,\n 'datef'=>$datefin,\n 'tariff'=>$tarif->NTARIFF/100);\n $rsc = selectQueryGetAll(\"select KOID from \".$this->dswtstariff->getTable().\" where product='$productoid' and period='$periodoid'\");\n if (count($rsc) == 0){\n $this->dswtstariff->procInput($lar);\n $new += 1;\n } else {\n $lar['oid'] = $rsc[0]['KOID'];\n $this->dswtstariff->procEdit($lar);\n $upd += 1;\n }\n }\n }\n }\n $nbprod = count($selectedproductoids);\n $mess = \"<table><tr><th colspan='99'>Produits à traiter : $nbprod - tarifs ajoutés : $new, mis à jour : $upd, erreurs wtpsi $errwtpsi, erreurs soap $errsoap</th></tr><tr><th>Forfaits</th><th>Résultats</th></tr>\".$mess.'</table>';\n XShell::toScreen2('br', 'mess', $mess);\n XShell::changeTemplate('epasslibre/modeplresortta/loadtariffs.html');\n $this->preLoadTariffs(array());\n XShell::setNext('');\n // XShell::setNextData('message', \"Produits à traiter : $nbprod - tarifs ajoutés : $new, mis à jour : $upd\");\n }", "public function getVehicleTax($busId='') {\n \n $query = \"\tSELECT\tmax(busNoValidTill) AS busNoValidTill,\n\t\t\t\t\t\t\tmax(passengerTaxValidTill) AS passengerTaxValidTill,\n\t\t\t\t\t\t\tmax(roadTaxValidTill) AS roadTaxValidTill,\n\t\t\t\t\t\t\tmax(pollutionCheckValidTill) AS pollutionCheckValidTill,\n\t\t\t\t\t\t\tmax(passingValidTill) AS passingValidTill\n\t\t\t\t\tFROM\tbus_entries be\n\t\t\t\t\tWHERE\tbe.busId = $busId\";\n return SystemDatabaseManager::getInstance()->executeQuery($query,\"Query: $query\");\n }", "public function ObtenerPaciente() {\n $sql= $this->config_mdl->_get_data_condition('os_rx',array(\n 'triage_id'=> $this->input->post('triage_id')\n ));\n $info= $this->config_mdl->_get_data_condition('os_triage',array(\n 'triage_id'=> $this->input->post('triage_id')\n ));\n if(!empty($sql)){\n $this->setOutput(array('accion'=>'1','rx'=>$sql[0],'paciente'=>$info[0]));\n }else{\n $this->setOutput(array('accion'=>'2'));\n }\n }", "function get_tipos_espacios_mtrx()\n\t{\n\t\t$ef = new Tipo_espacio();\n\t\t$ef->order_by('tag');\n\t\t$ef->get();\n\t\tif($ef->c_rows>0){\n\t\t\t$colect[0]=\"TODOS\";\n\t\t\tforeach($ef->all as $row){\n\t\t\t\t$colect[$row->id]=$row->tag;\n\t\t\t}\n\t\t\treturn $colect;\n\t\t} else\n\t\t\treturn 0;\n\t}", "public function calculateTaxAction()\n {\n $data = $this->Request()->getParams();\n\n //init variables\n $positions = json_decode($data['positions']);\n $shippingCosts = $data['shippingCosts'];\n $net = $data['net'];\n $total = 0;\n $taxSums = [];\n $totalWithoutTax = 0;\n $articleNumber = 0;\n $shippingCostsNet = 0;\n\n foreach ($positions as $position) {\n $total += $position->price * $position->quantity;\n $priceWithoutTax = $this->calculateNetPrice($position->price, $position->taxRate) * $position->quantity;\n $totalWithoutTax += $priceWithoutTax;\n\n if (!isset($taxSums[$position->taxRate])) {\n $taxSums[$position->taxRate] = [];\n $taxSums[$position->taxRate]['sum'] = 0;\n $taxSums[$position->taxRate]['count'] = 0;\n }\n $taxSums[$position->taxRate]['sum'] += $this->calculateNetPrice($position->price, $position->taxRate);\n $taxSums[$position->taxRate]['count'] += $position->quantity;\n\n $articleNumber += $position->quantity;\n }\n\n if ($shippingCosts != 0 && !is_null($shippingCosts) && $shippingCosts != '') {\n foreach ($taxSums as $taxRate => $taxRow) {\n $taxRelation = $articleNumber / $taxRow['count'];\n $shippingCostsRelation = $shippingCosts / $taxRelation;\n\n $shippingCostsNet += $this->calculateNetPrice($shippingCostsRelation, $taxRate);\n }\n if (count($taxSums) == 0) {\n $shippingCostsNet = $shippingCosts;\n }\n }\n\n $sum = $total;\n if ($net === 'true') {\n $total = $shippingCostsNet + $total;\n } else {\n $total = $shippingCosts + $total;\n }\n $totalWithoutTax = $shippingCostsNet + $totalWithoutTax;\n\n $taxSum = $total - $totalWithoutTax;\n if ($totalWithoutTax == 0) {\n $taxSum = 0;\n }\n\n if ($net === 'true') {\n $shippingCosts = $shippingCostsNet;\n $totalWithoutTax = $total;\n $taxSum = 0;\n }\n\n $result = [\n 'totalWithoutTax' => $this->roundPrice($totalWithoutTax),\n 'sum' => $this->roundPrice($sum),\n 'total' => $this->roundPrice($total),\n 'shippingCosts' => $this->roundPrice($shippingCosts),\n 'shippingCostsNet' => $this->roundPrice($shippingCostsNet),\n 'taxSum' => $this->roundPrice($taxSum)\n ];\n\n $this->view->assign(\n [\n 'data' => $result,\n 'success' => true\n ]\n );\n }", "function filter_TREPORTE_By_S_A_F($SEDE, $AREA, $FACULTAD, $state, $row, $index)\n{\n global $mysqli;\n $TR = \"resultados2017\";\n $addQuery = \"ORDER BY \" . $row . \" \" . $index;\n $lastQuery = \"limit 20\";\n\n //SET QUERY\n //1 to send at main table\n //2 to send at the report\n\n if ($state == 1) {\n $query = new Query($mysqli, \"SELECT apellido,nombre,(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,sede,areap,ps,gatb,pca,indice,verbal,numer FROM \" . $TR . \" where sede = ? AND area_i = ? AND fac_ia = ? limit 20\");\n $parametros = array(\"iii\", &$SEDE, &$AREA, &$FACULTAD);\n $data = $query->getresults($parametros);\n\n } elseif ($state == 2) {\n $query = new Query($mysqli, \"SELECT apellido,nombre,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,sede,areap,ps,gatb,pca,indice,verbal,numer FROM \" . $TR . \" where sede = ? AND area_i = ? AND fac_ia = ? \" . $addQuery);\n $parametros = array(\"iii\", &$SEDE, &$AREA, &$FACULTAD);\n $data = $query->getresults($parametros);\n\n } else {\n //error\n }\n\n//return\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "function GetAllBd_formData($param=array()) {\n \n if (isset($param['search_value']) && $param['search_value'] != '') {\n $this->db->group_start();\n $i=0;\n foreach ($param['search_field'] as $row => $val) {\n if ($val['searchable'] == 'true') {\n if ($i==0) {\n if($val['data']=='main_tax'){\n $this->db->like('LCASE(`tax`.`name`)',strtolower($param['search_value']));\n }else{\n $this->db->like('LCASE(`sub_tax`.`'.$val['data'].'`)',strtolower($param['search_value']));\n }\n \n } else {\n if($val['data']=='main_tax'){\n $this->db->or_like('LCASE(`tax.name`)',strtolower($param['search_value']));\n }else{\n $this->db->or_like('LCASE(`sub_tax`.`'.$val['data'].'`)',strtolower($param['search_value']));\n }\n #$this->db->or_like('LCASE(`'.$val['data'].'`)',strtolower($param['search_value']));\n }\n $i++;\n }\n }\n $this->db->group_end();\n }\n if (isset($param['row_from']) && isset($param['length'])) {\n $this->db->limit($param['length'],$param['row_from']);\n }\n if (isset($param['order_field'])) {\n if (isset($param['order_sort'])) {\n $this->db->order_by($param['order_field'],$param['order_sort']);\n } else {\n $this->db->order_by($param['order_field'],'desc');\n }\n } else {\n $this->db->order_by('id','desc');\n }\n $data = $this->db\n ->select('sub_tax.*,tax.name as main_tax,sub_tax.id_sub_tax as id')\n ->join('tax','tax.id_tax=sub_tax.id_tax','left')\n ->where('sub_tax.is_delete',0)\n ->get('sub_tax')\n ->result_array();\n return $data;\n }", "public function getTipos(){\n $sql = \"SELECT * FROM tipos_producto ORDER BY nombre\";\n #se guardan los parametros (datos recogidos) en una variable,como un arreglo\n $params = array(null);\n #Retorna los datos que devuelve el metodo getRows \n return Database::getRows($sql, $params);\n }", "function filter_TREPORTE_By_S_A_F_E($SEDE, $AREA, $FACULTAD, $ESCUELA, $state, $row, $index)\n{\n global $mysqli;\n $TR = \"resultados2017\";\n $addQuery = \"ORDER BY \" . $row . \" \" . $index;\n $lastQuery = \"limit 20\";\n\n //SET QUERY\n //1 to send at main table\n //2 to send at the report\n\n if ($state == 1) {\n $query = new Query($mysqli, \"SELECT apellido,nombre,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,sede,areap,ps,gatb,pca,indice,verbal,numer FROM \" . $TR . \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? limit 20 \");\n $parametros = array(\"iiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA);\n $data = $query->getresults($parametros);\n\n } elseif ($state == 2) {\n $query = new Query($mysqli, \"SELECT apellido,nombre,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,sede,areap,ps,gatb,pca,indice,verbal,numer FROM \" . $TR . \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? \" . $addQuery);\n $parametros = array(\"iiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA);\n $data = $query->getresults($parametros);\n\n } else {\n //error\n }\n\n//return\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "public function get_datos_ventas_cargo($fecha,$sucursal){\n\t$conectar= parent::conexion();\n\tparent::set_names();\n \n\t$fecha_corte = $fecha.\"%\";\n\t$sql=\"select c.n_factura,c.fecha_ingreso,c.n_recibo,c.paciente,u.usuario,c.total_factura,c.forma_cobro,c.monto_cobrado,c.saldo_credito,c.abonos_realizados from corte_diario as c inner join usuarios as u on u.id_usuario=c.id_usuario where c.fecha_ingreso like ? and c.abonos_realizados='0' and c.tipo_pago='Cargo Automatico' and (sucursal_venta=? or sucursal_cobro=?);\";\n\t$sql=$conectar->prepare($sql);\n\t$sql->bindValue(1,$fecha_corte);\n\t$sql->bindValue(2,$sucursal);\n\t$sql->bindValue(3,$sucursal);\n\t$sql->execute();\n\treturn $resultado= $sql->fetchAll(PDO::FETCH_ASSOC);\n}", "public function selectTaxDataByCode($taxCode, $date='') {\n \n $date = (string)($date=='' ? date('Y-m-d') : $date); // if no date set use today's date\n \n // query preparation\n $select = 'NUMMER, STEUERSATZCODE, STEUERSATZPROZ, GUELTIGABTTMMJJJJ'.\n ($this->oldTaxTableExists() == true ? ', st.BEMERKUNG AS BEMERKUNG' : '').' ';\n $from = $this->getTableName('BHSTEUER').' bh'. \n ($this->oldTaxTableExists() == true ? ' LEFT JOIN '.$this->getTableName('STEUER').' st ON bh.STEUERSATZCODE LIKE st.CODE' : '');\n $where = 'STEUERSATZCODE LIKE '.$this->gsaDbObj->fullQuoteStr($taxCode, $from).' '.\n 'AND GUELTIGABTTMMJJJJ <= '.$this->gsaDbObj->fullQuoteStr($date, $from); // Note: field GUELTIGABTTMMJJJJ contains data in string format 'YYYY-MM-DD'! :-)\n $groupBy = '';\n $orderBy = 'GUELTIGABTTMMJJJJ DESC';\n $limit = '1';\n \n // exec query using TYPO3 DB API\n $res = $this->gsaDbObj->exec_SELECTquery($select, $from, $where, $groupBy, $orderBy, $limit);\n if ($res == false) {\n throw new tx_pttools_exception('Query failed', 1, $this->gsaDbObj->sql_error());\n }\n \n $a_row = $this->gsaDbObj->sql_fetch_assoc($res);\n $this->gsaDbObj->sql_free_result($res);\n \n // if enabled, do charset conversion of all non-binary string data \n if ($this->charsetConvEnabled == 1) {\n $a_row = tx_pttools_div::iconvArray($a_row, $this->gsaCharset, $this->siteCharset);\n }\n \n trace($a_row); \n return $a_row;\n \n }", "function adjudicarTodo(){\n $this->procedimiento='adq.f_cotizacion_ime';\n $this->transaccion='ADQ_ADJTODO_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_cotizacion','id_cotizacion','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function getTaxRate();", "public function getTreinamentosByATA($ata)\n {\n \n $q = $this->db->get_where('treinamentos', array('ata' => $ata));\n \n \n if ($q->num_rows() > 0) {\n \n foreach (($q->result()) as $row) {\n $data[] = $row;\n }\n return $data;\n \n // return $q->row();\n \n \n }\n return FALSE;\n \n }", "public function readAllTD(){\n $objT=new tipodocDAO();//leer todos los tipos de documentos para los registros \n $resul=$objT->readall();\n return $resul;\n \n }", "function armar_consulta($pdia,$udia,$anio){\n //designaciones sin licencia UNION designaciones c/licencia sin norma UNION designaciones c/licencia c norma UNION reservas\n// $sql=\"(SELECT distinct t_d.id_designacion, trim(t_d1.apellido)||', '||t_d1.nombre as docente_nombre, t_d1.legajo, t_d.nro_cargo, t_d.anio_acad, t_d.desde, t_d.hasta, t_d.cat_mapuche, t_cs.descripcion as cat_mapuche_nombre, t_d.cat_estat, t_d.dedic, t_c.descripcion as carac,t_d3.descripcion as id_departamento,t_a.descripcion as id_area, t_o.descripcion as id_orientacion, t_d.uni_acad, t_m.quien_emite_norma as emite_norma, t_n.nro_norma, t_x.nombre_tipo as tipo_norma, t_d.nro_540, t_d.observaciones, t_t.id_programa, m_p.nombre as programa, t_t.porc,m_c.costo_diario, case when t_d.check_presup=0 then 'NO' else 'SI' end as check_presup,'NO' as licencia,t_d.estado,\n// 0 as dias_lic, case when t_d.desde<='\".$pdia.\"' then ( case when (t_d.hasta>='\".$udia.\"' or t_d.hasta is null ) then (((cast('\".$udia.\"' as date)-cast('\".$pdia.\"' as date))+1)) else ((t_d.hasta-'\".$pdia.\"')+1) end ) else (case when (t_d.hasta>='\".$udia.\"' or t_d.hasta is null) then ((('\".$udia.\"')-t_d.desde+1)) else ((t_d.hasta-t_d.desde+1)) end ) end as dias_des \n// FROM designacion as t_d LEFT OUTER JOIN categ_siu as t_cs ON (t_d.cat_mapuche = t_cs.codigo_siu) \n// LEFT OUTER JOIN categ_estatuto as t_ce ON (t_d.cat_estat = t_ce.codigo_est) \n// LEFT OUTER JOIN norma as t_n ON (t_d.id_norma = t_n.id_norma) \n// LEFT OUTER JOIN tipo_emite as t_m ON (t_n.emite_norma = t_m.cod_emite) \n// LEFT OUTER JOIN tipo_norma_exp as t_x ON (t_x.cod_tipo = t_n.tipo_norma) \n// LEFT OUTER JOIN departamento as t_d3 ON (t_d.id_departamento = t_d3.iddepto) \n// LEFT OUTER JOIN area as t_a ON (t_d.id_area = t_a.idarea) \n// LEFT OUTER JOIN orientacion as t_o ON (t_d.id_orientacion = t_o.idorient and t_o.idarea=t_a.idarea)\n// LEFT OUTER JOIN imputacion as t_t ON (t_d.id_designacion = t_t.id_designacion) \n// LEFT OUTER JOIN mocovi_programa as m_p ON (t_t.id_programa = m_p.id_programa) \n// LEFT OUTER JOIN mocovi_periodo_presupuestario m_e ON ( m_e.anio=\".$anio.\")\".\n// \"LEFT OUTER JOIN mocovi_costo_categoria as m_c ON (t_d.cat_mapuche = m_c.codigo_siu and m_c.id_periodo=m_e.id_periodo),\n// docente as t_d1,\n// caracter as t_c,\n// unidad_acad as t_ua \n// \n// WHERE t_d.id_docente = t_d1.id_docente\n// AND t_d.carac = t_c.id_car \n// AND t_d.uni_acad = t_ua.sigla \n// AND t_d.tipo_desig=1 \n// AND not exists(SELECT * from novedad t_no\n// where t_no.id_designacion=t_d.id_designacion\n// and (t_no.tipo_nov=1 or t_no.tipo_nov=2 or t_no.tipo_nov=4 or t_no.tipo_nov=5)))\n// UNION\n// (SELECT distinct t_d.id_designacion, trim(t_d1.apellido)||', '||t_d1.nombre as docente_nombre, t_d1.legajo, t_d.nro_cargo, t_d.anio_acad, t_d.desde, t_d.hasta, t_d.cat_mapuche, t_cs.descripcion as cat_mapuche_nombre, t_d.cat_estat, t_d.dedic, t_c.descripcion as carac, t_d3.descripcion as id_departamento,t_a.descripcion as id_area, t_o.descripcion as id_orientacion, t_d.uni_acad, t_m.quien_emite_norma as emite_norma, t_n.nro_norma, t_x.nombre_tipo as tipo_norma, t_d.nro_540, t_d.observaciones, t_t.id_programa, m_p.nombre as programa, t_t.porc,m_c.costo_diario, case when t_d.check_presup=0 then 'NO' else 'SI' end as check_presup,'NO' as licencia,t_d.estado,\n// 0 as dias_lic, case when t_d.desde<='\".$pdia.\"' then ( case when (t_d.hasta>='\".$udia.\"' or t_d.hasta is null ) then (((cast('\".$udia.\"' as date)-cast('\".$pdia.\"' as date))+1)) else ((t_d.hasta-'\".$pdia.\"')+1) end ) else (case when (t_d.hasta>='\".$udia.\"' or t_d.hasta is null) then ((('\".$udia.\"')-t_d.desde+1)) else ((t_d.hasta-t_d.desde+1)) end ) end as dias_des \n// FROM designacion as t_d LEFT OUTER JOIN categ_siu as t_cs ON (t_d.cat_mapuche = t_cs.codigo_siu) \n// LEFT OUTER JOIN categ_estatuto as t_ce ON (t_d.cat_estat = t_ce.codigo_est) \n// LEFT OUTER JOIN norma as t_n ON (t_d.id_norma = t_n.id_norma) \n// LEFT OUTER JOIN tipo_emite as t_m ON (t_n.emite_norma = t_m.cod_emite) \n// LEFT OUTER JOIN tipo_norma_exp as t_x ON (t_x.cod_tipo = t_n.tipo_norma) \n// LEFT OUTER JOIN tipo_emite as t_te ON (t_d.emite_cargo_gestion = t_te.cod_emite)\n// LEFT OUTER JOIN departamento as t_d3 ON (t_d.id_departamento = t_d3.iddepto) \n// LEFT OUTER JOIN area as t_a ON (t_d.id_area = t_a.idarea) \n// LEFT OUTER JOIN orientacion as t_o ON (t_d.id_orientacion = t_o.idorient and t_o.idarea=t_a.idarea)\n// LEFT OUTER JOIN imputacion as t_t ON (t_d.id_designacion = t_t.id_designacion) \n// LEFT OUTER JOIN mocovi_programa as m_p ON (t_t.id_programa = m_p.id_programa) \n// LEFT OUTER JOIN mocovi_periodo_presupuestario m_e ON (m_e.anio=\".$anio.\")\".\n// \"LEFT OUTER JOIN mocovi_costo_categoria as m_c ON (t_d.cat_mapuche = m_c.codigo_siu and m_c.id_periodo=m_e.id_periodo),\n// docente as t_d1,\n// caracter as t_c,\n// unidad_acad as t_ua,\n// novedad as t_no \n// \n// WHERE t_d.id_docente = t_d1.id_docente\n// AND t_d.carac = t_c.id_car \n// AND t_d.uni_acad = t_ua.sigla \n// AND t_d.tipo_desig=1 \n// AND t_no.id_designacion=t_d.id_designacion\n// AND (((t_no.tipo_nov=2 or t_no.tipo_nov=5 ) AND (t_no.tipo_norma is null or t_no.tipo_emite is null or t_no.norma_legal is null))\n// OR (t_no.tipo_nov=1 or t_no.tipo_nov=4))\n// )\n// UNION\n// (SELECT distinct t_d.id_designacion, trim(t_d1.apellido)||', '||t_d1.nombre as docente_nombre, t_d1.legajo, t_d.nro_cargo, t_d.anio_acad, t_d.desde, t_d.hasta, t_d.cat_mapuche, t_cs.descripcion as cat_mapuche_nombre, t_d.cat_estat, t_d.dedic, t_c.descripcion as carac,t_d3.descripcion as id_departamento,t_a.descripcion as id_area, t_o.descripcion as id_orientacion, t_d.uni_acad, t_m.quien_emite_norma as emite_norma, t_n.nro_norma, t_x.nombre_tipo as tipo_norma, t_d.nro_540, t_d.observaciones, t_t.id_programa, m_p.nombre as programa, t_t.porc,m_c.costo_diario, case when t_d.check_presup=0 then 'NO' else 'SI' end as check_presup,'NO' as licencia,t_d.estado,\n// sum((case when (t_no.desde>'\".$udia.\"' or (t_no.hasta is not null and t_no.hasta<'\".$pdia.\"')) then 0 else (case when t_no.desde<='\".$pdia.\"' then ( case when (t_no.hasta is null or t_no.hasta>='\".$udia.\"' ) then (((cast('\".$udia.\"' as date)-cast('\".$pdia.\"' as date))+1)) else ((t_no.hasta-'\".$pdia.\"')+1) end ) else (case when (t_no.hasta is null or t_no.hasta>='\".$udia.\"' ) then ((('\".$udia.\"')-t_no.desde+1)) else ((t_no.hasta-t_no.desde+1)) end ) end )end)*t_no.porcen ) as dias_lic,\n// case when t_d.desde<='\".$pdia.\"' then ( case when (t_d.hasta>='\".$udia.\"' or t_d.hasta is null ) then (((cast('\".$udia.\"' as date)-cast('\".$pdia.\"' as date))+1)) else ((t_d.hasta-'\".$pdia.\"')+1) end ) else (case when (t_d.hasta>='\".$udia.\"' or t_d.hasta is null) then ((('\".$udia.\"')-t_d.desde+1)) else ((t_d.hasta-t_d.desde+1)) end ) end as dias_des \n// FROM designacion as t_d LEFT OUTER JOIN categ_siu as t_cs ON (t_d.cat_mapuche = t_cs.codigo_siu) \n// LEFT OUTER JOIN categ_estatuto as t_ce ON (t_d.cat_estat = t_ce.codigo_est) \n// LEFT OUTER JOIN norma as t_n ON (t_d.id_norma = t_n.id_norma) \n// LEFT OUTER JOIN tipo_emite as t_m ON (t_n.emite_norma = t_m.cod_emite) \n// LEFT OUTER JOIN tipo_norma_exp as t_x ON (t_x.cod_tipo = t_n.tipo_norma) \n// LEFT OUTER JOIN tipo_emite as t_te ON (t_d.emite_cargo_gestion = t_te.cod_emite)\n// LEFT OUTER JOIN departamento as t_d3 ON (t_d.id_departamento = t_d3.iddepto) \n// LEFT OUTER JOIN area as t_a ON (t_d.id_area = t_a.idarea) \n// LEFT OUTER JOIN orientacion as t_o ON (t_d.id_orientacion = t_o.idorient and t_o.idarea=t_a.idarea)\n// LEFT OUTER JOIN imputacion as t_t ON (t_d.id_designacion = t_t.id_designacion) \n// LEFT OUTER JOIN mocovi_programa as m_p ON (t_t.id_programa = m_p.id_programa) \n// LEFT OUTER JOIN mocovi_periodo_presupuestario m_e ON (m_e.anio=\".$anio.\")\".\n// \"LEFT OUTER JOIN mocovi_costo_categoria as m_c ON (t_d.cat_mapuche = m_c.codigo_siu and m_c.id_periodo=m_e.id_periodo),\n// docente as t_d1,\n// caracter as t_c,\n// unidad_acad as t_ua,\n// novedad as t_no \n// \n// WHERE t_d.id_docente = t_d1.id_docente\n// \tAND t_d.carac = t_c.id_car \n// \tAND t_d.uni_acad = t_ua.sigla \n// \tAND t_d.tipo_desig=1 \n// \tAND t_no.id_designacion=t_d.id_designacion \n// \tAND (t_no.tipo_nov=2 or t_no.tipo_nov=5) \n// \tAND t_no.tipo_norma is not null \n// \tAND t_no.tipo_emite is not null \n// \tAND t_no.norma_legal is not null\n// GROUP BY t_d.id_designacion,docente_nombre,t_d1.legajo,t_d.nro_cargo,anio_acad, t_d.desde, t_d.hasta, t_d.cat_mapuche, cat_mapuche_nombre, cat_estat, dedic,t_c.descripcion , t_d3.descripcion , t_a.descripcion , t_o.descripcion ,t_d.uni_acad, t_m.quien_emite_norma, t_n.nro_norma, t_x.nombre_tipo , t_d.nro_540, t_d.observaciones, m_p.nombre, t_t.id_programa, t_t.porc,m_c.costo_diario, check_presup, licencia,t_d.estado \t\n// )\".\n //--sino tiene novedad entonces dias_lic es 0 case when t_no.id_novedad is null \n //--si tiene novedad tipo 2,5 y no tiene norma entonces dias_lic es 0\n $sql=\" SELECT distinct t_d.id_designacion,t_d.por_permuta,t_d.tipo_desig, trim(t_d1.apellido)||', '||t_d1.nombre as docente_nombre, t_d1.legajo, t_d.nro_cargo, t_d.anio_acad, t_d.desde, t_d.hasta, t_d.cat_mapuche, t_cs.descripcion as cat_mapuche_nombre, t_d.cat_estat, t_d.dedic, t_c.descripcion as carac, t_d3.descripcion as id_departamento,t_a.descripcion as id_area, t_o.descripcion as id_orientacion, t_d.uni_acad, t_m.quien_emite_norma as emite_norma, t_n.nro_norma, t_x.nombre_tipo as tipo_norma, t_d.nro_540, t_d.observaciones, t_t.id_programa, m_p.nombre as programa, t_t.porc,m_c.costo_diario, case when t_d.check_presup=0 then 'NO' else 'SI' end as check_presup,'NO' as licencia,t_d.estado,\n sum(case when t_no.id_novedad is null then 0 else (case when (t_no.desde>'\".$udia.\"' or (t_no.hasta is not null and t_no.hasta<'\".$pdia.\"')) then 0 else (case when t_no.desde<='\".$pdia.\"' then ( case when (t_no.hasta is null or t_no.hasta>='\".$udia.\"' ) then (((cast('\".$udia.\"' as date)-cast('\".$pdia.\"' as date))+1)) else ((t_no.hasta-'\".$pdia.\"')+1) end ) else (case when (t_no.hasta is null or t_no.hasta>='\".$udia.\"' ) then ((('\".$udia.\"')-t_no.desde+1)) else ((t_no.hasta-t_no.desde+1)) end ) end )end)*t_no.porcen end) as dias_lic,\n case when t_d.desde<='\".$pdia.\"' then ( case when (t_d.hasta>='\".$udia.\"' or t_d.hasta is null ) then (((cast('\".$udia.\"' as date)-cast('\".$pdia.\"' as date))+1)) else ((t_d.hasta-'\".$pdia.\"')+1) end ) else (case when (t_d.hasta>='\".$udia.\"' or t_d.hasta is null) then ((('\".$udia.\"')-t_d.desde+1)) else ((t_d.hasta-t_d.desde+1)) end ) end as dias_des \n FROM designacion as t_d \n LEFT OUTER JOIN categ_siu as t_cs ON (t_d.cat_mapuche = t_cs.codigo_siu) \n LEFT OUTER JOIN categ_estatuto as t_ce ON (t_d.cat_estat = t_ce.codigo_est) \n LEFT OUTER JOIN norma as t_n ON (t_d.id_norma = t_n.id_norma) \n LEFT OUTER JOIN tipo_emite as t_m ON (t_n.emite_norma = t_m.cod_emite) \n LEFT OUTER JOIN tipo_norma_exp as t_x ON (t_x.cod_tipo = t_n.tipo_norma) \n LEFT OUTER JOIN tipo_emite as t_te ON (t_d.emite_cargo_gestion = t_te.cod_emite)\n LEFT OUTER JOIN departamento as t_d3 ON (t_d.id_departamento = t_d3.iddepto) \n LEFT OUTER JOIN area as t_a ON (t_d.id_area = t_a.idarea) \n LEFT OUTER JOIN orientacion as t_o ON (t_d.id_orientacion = t_o.idorient and t_o.idarea=t_a.idarea)\n LEFT OUTER JOIN imputacion as t_t ON (t_d.id_designacion = t_t.id_designacion) \n LEFT OUTER JOIN mocovi_programa as m_p ON (t_t.id_programa = m_p.id_programa) \n LEFT OUTER JOIN mocovi_periodo_presupuestario m_e ON (m_e.anio=\".$anio.\")\n LEFT OUTER JOIN mocovi_costo_categoria as m_c ON (t_d.cat_mapuche = m_c.codigo_siu and m_c.id_periodo=m_e.id_periodo)\n LEFT OUTER JOIN novedad t_no ON (t_d.id_designacion=t_no.id_designacion and t_no.tipo_nov in (2,5) and t_no.tipo_norma is not null \n \t\t\t\t\tand t_no.tipo_emite is not null \n \t\t\t\t\tand t_no.norma_legal is not null \n \t\t\t\t\tand t_no.desde<='\".$udia.\"' and t_no.hasta>='\".$pdia.\"'),\n docente as t_d1,\n caracter as t_c,\n unidad_acad as t_ua \n WHERE t_d.id_docente = t_d1.id_docente\n AND t_d.carac = t_c.id_car \n AND t_d.uni_acad = t_ua.sigla \n AND t_d.tipo_desig=1 \n GROUP BY t_d.id_designacion,t_d.por_permuta,t_d.tipo_desig,docente_nombre,t_d1.legajo,t_d.nro_cargo,anio_acad, t_d.desde, t_d.hasta, t_d.cat_mapuche, cat_mapuche_nombre, cat_estat, dedic,t_c.descripcion , t_d3.descripcion , t_a.descripcion , t_o.descripcion ,t_d.uni_acad, t_m.quien_emite_norma, t_n.nro_norma, t_x.nombre_tipo , t_d.nro_540, t_d.observaciones, m_p.nombre, t_t.id_programa, t_t.porc,m_c.costo_diario, check_presup, licencia,t_d.estado \t\".\n\n \" UNION\n (SELECT distinct t_d.id_designacion,0 as por_permuta,t_d.tipo_desig, 'RESERVA'||': '||t_r.descripcion as docente_nombre, 0, t_d.nro_cargo, t_d.anio_acad, t_d.desde, t_d.hasta, t_d.cat_mapuche, t_cs.descripcion as cat_mapuche_nombre, t_d.cat_estat, t_d.dedic, t_c.descripcion as carac, t_d3.descripcion as id_departamento, t_a.descripcion as id_area, t_o.descripcion as id_orientacion, t_d.uni_acad, t_m.quien_emite_norma as emite_norma, t_n.nro_norma, t_x.nombre_tipo as tipo_norma, t_d.nro_540, t_d.observaciones, t_t.id_programa, m_p.nombre as programa, t_t.porc,m_c.costo_diario, case when t_d.check_presup=0 then 'NO' else 'SI' end as check_presup,'NO' as licencia,t_d.estado,\n 0 as dias_lic,\n case when t_d.desde<='\".$pdia.\"' then ( case when (t_d.hasta>='\".$udia.\"' or t_d.hasta is null ) then (((cast('\".$udia.\"' as date)-cast('\".$pdia.\"' as date))+1)) else ((t_d.hasta-'\".$pdia.\"')+1) end ) else (case when (t_d.hasta>='\".$udia.\"' or t_d.hasta is null) then ((('\".$udia.\"')-t_d.desde+1)) else ((t_d.hasta-t_d.desde+1)) end ) end as dias_des \n FROM designacion as t_d LEFT OUTER JOIN categ_siu as t_cs ON (t_d.cat_mapuche = t_cs.codigo_siu) \n LEFT OUTER JOIN categ_estatuto as t_ce ON (t_d.cat_estat = t_ce.codigo_est) \n LEFT OUTER JOIN norma as t_n ON (t_d.id_norma = t_n.id_norma) \n LEFT OUTER JOIN tipo_emite as t_m ON (t_n.emite_norma = t_m.cod_emite) \n LEFT OUTER JOIN tipo_norma_exp as t_x ON (t_x.cod_tipo = t_n.tipo_norma) \n LEFT OUTER JOIN tipo_emite as t_te ON (t_d.emite_cargo_gestion = t_te.cod_emite)\n LEFT OUTER JOIN departamento as t_d3 ON (t_d.id_departamento = t_d3.iddepto) \n LEFT OUTER JOIN area as t_a ON (t_d.id_area = t_a.idarea) \n LEFT OUTER JOIN orientacion as t_o ON (t_d.id_orientacion = t_o.idorient and t_o.idarea=t_a.idarea)\n LEFT OUTER JOIN imputacion as t_t ON (t_d.id_designacion = t_t.id_designacion) \n LEFT OUTER JOIN mocovi_programa as m_p ON (t_t.id_programa = m_p.id_programa) \n LEFT OUTER JOIN mocovi_periodo_presupuestario m_e ON (m_e.anio=\".$anio.\")\".\n \"LEFT OUTER JOIN mocovi_costo_categoria as m_c ON (t_d.cat_mapuche = m_c.codigo_siu and m_c.id_periodo=m_e.id_periodo),\n caracter as t_c,\n unidad_acad as t_ua,\n reserva as t_r \n \n WHERE t_d.carac = t_c.id_car \n \tAND t_d.uni_acad = t_ua.sigla \n \tAND t_d.tipo_desig=2 \n \tAND t_d.id_reserva = t_r.id_reserva \t\n )\";\n //esto es para las designaciones que tienen mas de un departamento,area,orientacion\n $sql2=\"SELECT distinct sub1.id_designacion,sub1.por_permuta,sub1.tipo_desig,sub1.docente_nombre,sub1.legajo,sub1.nro_cargo,sub1.anio_acad,sub1.desde,sub1.hasta,sub1.cat_mapuche, sub1.cat_mapuche_nombre,\n sub1.cat_estat, sub1.dedic, sub1.carac,case when sub2.id_designacion is not null then sub2.dpto else sub1.id_departamento end as id_departamento,case when sub2.id_designacion is not null then sub2.area else sub1.id_area end as id_area,case when sub2.id_designacion is not null then sub2.orientacion else sub1.id_orientacion end as id_orientacion\n , sub1.uni_acad, sub1.emite_norma, sub1.nro_norma, sub1.tipo_norma, sub1.nro_540, sub1.observaciones, sub1.id_programa, sub1.programa, sub1.porc, sub1.costo_diario, sub1.check_presup, sub1.licencia, sub1.estado, sub1.dias_lic, sub1.dias_des\n FROM (\".$sql.\")sub1\"\n . \" LEFT OUTER JOIN (select d.id_designacion,excepcion_departamento(a.id_designacion)as dpto,excepcion_area(a.id_designacion) as area,excepcion_orientacion(a.id_designacion) as orientacion\n from designacion d,dao_designa a \n where d.desde <='\".$udia.\"' and (d.hasta>='\".$pdia.\"' or d.hasta is null)\n and a.id_designacion=d.id_designacion)sub2 ON (sub1.id_designacion=sub2.id_designacion)\";\n return $sql2;\n }", "public function tax(): float;", "function sumarServiciosxTareas2($servicio_id)\n\t{\n\t\treturn \"SELECT SUM(tareas.valor) as number2\nFROM tareas, servicios, tareas_as_servicios \nWHERE tareas.tarea_id = tareas_as_servicios.tarea_id \nand servicios.servicio_id = tareas_as_servicios.servicio_id \nAND servicios.servicio_id = $servicio_id\";\n\t}", "function pnh_getreceiptttl_valuebytype($type=0)\r\n\t{\r\n\t\tif($type==0)\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,f.franchise_name,a.name AS admin,sum(receipt_amount) as total FROM pnh_t_receipt_info r JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id LEFT OUTER JOIN king_admin a ON a.id=r.created_by WHERE r.status=0 AND r.is_active=1 and is_submitted=0 \")->row_array();\r\n\t\tif($type==1 )\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,f.franchise_name,a.name AS admin,sum(receipt_amount) as total FROM pnh_t_receipt_info r JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id LEFT OUTER JOIN king_admin a ON a.id=r.created_by WHERE r.status=0 AND r.is_active=1 AND date(from_unixtime(instrument_date)) <= curdate()and is_submitted=0 ORDER BY instrument_date asc\")->row_array();\r\n\t\tif($type==2 )\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,f.franchise_name,a.name AS admin,sum(receipt_amount) as total FROM pnh_t_receipt_info r JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id LEFT OUTER JOIN king_admin a ON a.id=r.created_by WHERE r.status=0 AND r.is_active=1 AND date(from_unixtime(instrument_date)) > curdate()and is_submitted=0 ORDER BY instrument_date asc\")->row_array();\r\n\t\tif($type==3)\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,DATE_FORMAT(r.activated_on,'%d/%m/%Y')as activated_on,f.franchise_name,a.name AS admin,d.username AS activated_by,sum(receipt_amount) as total FROM pnh_t_receipt_info r JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id LEFT OUTER JOIN king_admin a ON a.id=r.created_by LEFT OUTER JOIN king_admin d ON d.id=r.activated_by WHERE r.status=1 AND r.is_active=1 and (is_submitted=1 or r.activated_on!=0) and r.is_active=1 ORDER BY activated_on desc\")->row_array();\r\n\t\tif($type==4)\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,b.bank_name AS submit_bankname,s.name AS submittedby,a.name AS admin,f.franchise_name,d.remarks AS submittedremarks,d.submitted_on,sum(receipt_amount) as total,r.created_on FROM pnh_t_receipt_info r LEFT JOIN `pnh_m_deposited_receipts`d ON d.receipt_id=r.receipt_id LEFT JOIN `pnh_m_bank_info` b ON b.id=d.bank_id LEFT JOIN king_admin s ON s.id=d.submitted_by JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id left outer join king_admin a on a.id=r.created_by WHERE r.is_submitted=1 AND r.status=0 and r.is_active=1 order by d.submitted_on desc\")->row_array();\r\n\t\tif($type==5)\r\n\t\t{\r\n\t\t\t$sql = \"SELECT r.*,f.franchise_name,a.name AS admin,d.username AS activated_by ,c.cancel_reason,c.cancelled_on,sum(receipt_amount) as total \r\n\t\t\t\t\t\tFROM pnh_t_receipt_info r \r\n\t\t\t\t\t\tJOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id \r\n\t\t\t\t\t\tleft JOIN `pnh_m_deposited_receipts`c ON c.receipt_id=r.receipt_id\r\n\t\t\t\t\t\tLEFT OUTER JOIN king_admin a ON a.id=r.created_by \r\n\t\t\t\t\t\tLEFT OUTER JOIN king_admin d ON d.id=r.activated_by \r\n\t\t\t\t\t\tWHERE r.status in (2,3) AND r.is_active=1 AND r.is_active=1 \r\n\t\t\t\t\t\tORDER BY cancelled_on DESC\";\r\n\t\t\t$total_value=$this->db->query($sql,$tid)->row_array();\r\n\t\t}\t\r\n\t\treturn $total_value;\r\n\t}", "function get_listado_estactual($filtro=array())\n\t{ \n $concat='';\n if (isset($filtro['anio']['valor'])) {\n \t$udia=dt_mocovi_periodo_presupuestario::ultimo_dia_periodo_anio($filtro['anio']['valor']);\n $pdia=dt_mocovi_periodo_presupuestario::primer_dia_periodo_anio($filtro['anio']['valor']);\n\t\t} \n //que sea una designacion correspondiente al periodo seleccionado o anulada dentro del periodo \n $where=\" WHERE ((a.desde <= '\".$udia.\"' and (a.hasta >= '\".$pdia.\"' or a.hasta is null)) or (a.desde='\".$pdia.\"' and a.hasta is not null and a.hasta<a.desde))\";\n $where2=\" WHERE 1=1 \";//es para filtrar por estado. Lo hago al final de todo\n if (isset($filtro['uni_acad'])) {\n $concat=quote($filtro['uni_acad']['valor']);\n switch ($filtro['uni_acad']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.uni_acad = \".quote($filtro['uni_acad']['valor']);break;\n case 'es_distinto_de': $where.= \" AND a.uni_acad <> \".quote($filtro['uni_acad']['valor']);break;\n }\n }\n //si el usuario esta asociado a un perfil de datos le aplica igual a su UA\n $con=\"select sigla from unidad_acad \";\n $con = toba::perfil_de_datos()->filtrar($con);\n $resul=toba::db('designa')->consultar($con);\n if(count($resul)<=1){//es usuario de una unidad academica\n $where.=\" and a.uni_acad = \".quote($resul[0]['sigla']);\n $concat=quote($resul[0]['sigla']);//para hacer el update de baja\n }\n if (isset($filtro['iddepto'])) {\n switch ($filtro['iddepto']['condicion']) {\n case 'es_igual_a': $where.= \" AND iddepto =\" .$filtro['iddepto']['valor'];break;\n case 'es_distinto_de': $where.= \" AND iddepto <>\" .$filtro['iddepto']['valor'];break;\n }\n }\n if (isset($filtro['por_permuta'])) {\n switch ($filtro['por_permuta']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.por_permuta =\" .$filtro['por_permuta']['valor'];break;\n case 'es_distinto_de': $where.= \" AND a.por_permuta <>\" .$filtro['por_permuta']['valor'];break;\n }\n }\n if (isset($filtro['carac']['valor'])) {\n switch ($filtro['carac']['valor']) {\n case 'R':$c=\"'Regular'\";break;\n case 'O':$c=\"'Otro'\";break;\n case 'I':$c=\"'Interino'\";break;\n case 'S':$c=\"'Suplente'\";break;\n default:\n break;\n }\n switch ($filtro['carac']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.carac=\".$c;break;\n case 'es_distinto_de': $where.= \" AND a.carac<>\".$c;break;\n }\t\n }\n if (isset($filtro['estado'])) {\n switch ($filtro['estado']['condicion']) {\n case 'es_igual_a': $where2.= \" and est like '\".$filtro['estado']['valor'].\"%'\";break;\n case 'es_distinto_de': $where2.= \" and est not like '\".$filtro['estado']['valor'].\"%'\";break;\n }\n }\n if (isset($filtro['legajo'])) {\n switch ($filtro['legajo']['condicion']) {\n case 'es_igual_a': $where.= \" and legajo = \".$filtro['legajo']['valor'];break;\n case 'es_mayor_que': $where.= \" and legajo > \".$filtro['legajo']['valor'];break;\n case 'es_mayor_igual_que': $where.= \" and legajo >= \".$filtro['legajo']['valor'];break;\n case 'es_menor_que': $where.= \" and legajo < \".$filtro['legajo']['valor'];break;\n case 'es_menor_igual_que': $where.= \" and legajo <= \".$filtro['legajo']['valor'];break;\n case 'es_distinto_de': $where.= \" and legajo <> \".$filtro['legajo']['valor'];break;\n case 'entre': $where.= \" and legajo >= \".$filtro['legajo']['valor']['desde'].\" and legajo <=\".$filtro['legajo']['valor']['hasta'];break;\n }\n } \n if (isset($filtro['docente_nombre'])) {\n switch ($filtro['docente_nombre']['condicion']) {\n case 'contiene': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('%\".$filtro['docente_nombre']['valor'].\"%')\";break;\n case 'no_contiene': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) not like LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'comienza_con': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('\".$filtro['docente_nombre']['valor'].\"%')\";break;\n case 'termina_con': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('%\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'es_igual': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) == LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'es_distinto': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) <> LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n }\n } \n if (isset($filtro['programa'])) {\n $sql=\"select * from mocovi_programa where id_programa=\".$filtro['programa']['valor'];\n $resul=toba::db('designa')->consultar($sql);\n switch ($filtro['programa']['condicion']) {\n case 'es_igual_a': $where.= \" AND programa =\".quote($resul[0]['nombre']);break;\n case 'es_distinto_de': $where.= \" AND programa <>\".quote($resul[0]['nombre']);break;\n }\n } \n if (isset($filtro['tipo_desig'])) {\n switch ($filtro['tipo_desig']['condicion']) {\n case 'es_igual_a': $where.=\" AND a.tipo_desig=\".$filtro['tipo_desig']['valor'];break;\n case 'es_distinto_de': $where.=\" AND a.tipo_desig <>\".$filtro['tipo_desig']['valor'];break;\n }\n }\n if (isset($filtro['anulada'])) {\n switch ($filtro['anulada']['valor']) {\n case '0': $where.=\" AND not (a.hasta is not null and a.hasta<a.desde)\";break;\n case '1': $where.=\" AND a.hasta is not null and a.hasta<a.desde \";break;\n }\n } \n if (isset($filtro['cat_estat'])) {\n switch ($filtro['cat_estat']['condicion']) {\n case 'es_igual_a': $where2.= \" and cat_estat=\".quote($filtro['cat_estat']['valor']);break;\n case 'es_distinto_de': $where2.= \" and cat_estat <>\".quote($filtro['cat_estat']['valor']);break;\n }\n }\n if (isset($filtro['dedic'])) {\n switch ($filtro['dedic']['condicion']) {\n case 'es_igual_a': $where2.= \" and dedic=\".$filtro['dedic']['valor'];break;\n case 'es_distinto_de': $where2.= \" and dedic<>\".$filtro['dedic']['valor'];break;\n }\n } \n //me aseguro de colocar en estado B todas las designaciones que tienen baja\n if($concat!=''){ \n $sql2=\" update designacion a set estado ='B' \"\n . \" where estado<>'B' and a.uni_acad=\".$concat\n .\" and exists (select * from novedad b\n where a.id_designacion=b.id_designacion \n and (b.tipo_nov=1 or b.tipo_nov=4))\";\n }\n \n //designaciones sin licencia UNION designaciones c/licencia sin norma UNION designaciones c/licencia c norma UNION reservas\n $sql=$this->armar_consulta($pdia,$udia,$filtro['anio']['valor']);\n\t\t//si el estado de la designacion es B entonces le pone estado B, si es <>B se fija si tiene licencia sin goce o cese\n// $sql= \"select id_designacion,docente_nombre,legajo,nro_cargo,anio_acad,desde,hasta,cat_mapuche,cat_mapuche_nombre,cat_estat,dedic,carac,check_presup,id_departamento,id_area,id_orientacion,uni_acad,emite_norma,nro_norma,tipo_norma,nro_540,observaciones,estado,porc,dias_lic,programa,costo_vale as costo,est,expediente,nro from(\"\n// . \"select sub2.*,case when t_no.tipo_nov in (1,4) then 'B('||coalesce(t_no.tipo_norma,'')||':'||coalesce(t_no.norma_legal,'')||')' else case when t_no.tipo_nov in (2,5) then 'L('||t_no.tipo_norma||':'||t_no.norma_legal||')' else sub2.estado end end as est,t_i.expediente,case when d.tipo_desig=2 then costo_reserva(d.id_designacion,costo,\".$filtro['anio']['valor'].\") else costo end as costo_vale \"\n// . \" ,case when t_nor.id_norma is null then '' else case when t_nor.link is not null or t_nor.link <>'' then '<a href='||chr(39)||t_nor.link||chr(39)|| ' target='||chr(39)||'_blank'||chr(39)||'>'||t_nor.nro_norma||'</a>' else cast(t_nor.nro_norma as text) end end as nro \"\n// . \"from (\"\n// .\"select sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde, sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo,max(t_no.id_novedad) as id_novedad from (\"\n// .\"select distinct b.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, b.desde, b.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,emite_norma, b.nro_norma,b.tipo_norma,nro_540,b.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,case when (dias_des-dias_lic)>=0 then ((dias_des-dias_lic)*costo_diario*porc/100) else 0 end as costo\"\n// .\" from (\"\n// .\" select a.id_designacion,a.docente_nombre,a.legajo,a.nro_cargo,a.anio_acad, a.desde, a.hasta,a.cat_mapuche, a.cat_mapuche_nombre,a.cat_estat,a.dedic,a.carac,b.a.id_departamento, a.id_area,a.id_orientacion, a.uni_acad, a.emite_norma, a.nro_norma,a.tipo_norma,a.nro_540,a.observaciones,a.estado,programa,porc,a.costo_diario,check_presup,licencia,a.dias_des,a.dias_lic\".\n// \" from (\".$sql.\") a\"\n// .$where \n// .\") b \"\n// . \" )sub\"\n// . \" LEFT OUTER JOIN novedad t_no ON (sub.id_designacion=t_no.id_designacion and t_no.desde<='\".$udia.\"' and (t_no.hasta is null or t_no.hasta>='\".$pdia.\"' ))\"\n// . \" GROUP BY sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde,sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo\" \n// . \")sub2\"//obtengo el id_novedad maximo\n// . \" LEFT OUTER JOIN novedad t_no on (t_no.id_novedad=sub2.id_novedad)\"//con el id_novedad maximo obtengo la novedad que predomina\n// .\" LEFT JOIN impresion_540 t_i ON (nro_540=t_i.id)\"//para agregar el expediente \n// .\" LEFT OUTER JOIN designacion d ON (sub2.id_designacion=d.id_designacion)\"//como no tengo el id de la norma tengo que volver a hacer join\n// .\" LEFT OUTER JOIN norma t_nor ON (d.id_norma=t_nor.id_norma)\"\n// . \")sub3\"\n// .$where2\n// . \" order by docente_nombre,desde\"; \n $sql= \"select id_designacion,docente_nombre,legajo,nro_cargo,anio_acad,desde,hasta,cat_mapuche,cat_mapuche_nombre,cat_estat,dedic,carac,check_presup,id_departamento,id_area,id_orientacion,uni_acad,emite_norma,nro_norma,tipo_norma,nro_540,tkd,observaciones,estado,porc,dias_lic,programa,costo_vale as costo,est,expediente,nro from(\"\n . \"select sub2.*,sub2.nro_540||'/'||t_i.anio as tkd,case when t_no.tipo_nov in (1,4) then 'B('||coalesce(t_no.tipo_norma,'')||':'||coalesce(t_no.norma_legal,'')||')' else case when t_no.tipo_nov in (2,5) then 'L('||t_no.tipo_norma||':'||t_no.norma_legal||')' else sub2.estado end end as est,t_i.expediente,case when d.tipo_desig=2 then costo_reserva(d.id_designacion,costo,\".$filtro['anio']['valor'].\") else costo end as costo_vale \"\n . \" ,case when t_nor.id_norma is null then '' else case when t_nor.link is not null or t_nor.link <>'' then '<a href='||chr(39)||t_nor.link||chr(39)|| ' target='||chr(39)||'_blank'||chr(39)||'>'||t_nor.nro_norma||'</a>' else cast(t_nor.nro_norma as text) end end as nro \"\n . \"from (\"\n .\"select sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde, sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo,max(t_no.id_novedad) as id_novedad from (\"\n .\"select distinct b.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, b.desde, b.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,emite_norma, b.nro_norma,b.tipo_norma,nro_540,b.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,case when (dias_des-dias_lic)>=0 then ((dias_des-dias_lic)*costo_diario*porc/100) else 0 end as costo\"\n .\" from (\"\n .\" select a.id_designacion,a.por_permuta,a.docente_nombre,a.legajo,a.nro_cargo,a.anio_acad, a.desde, a.hasta,a.cat_mapuche, a.cat_mapuche_nombre,a.cat_estat,a.dedic,a.carac,t.iddepto,a.id_departamento, a.id_area,a.id_orientacion, a.uni_acad, a.emite_norma, a.nro_norma,a.tipo_norma,a.nro_540,a.observaciones,a.estado,programa,porc,a.costo_diario,a.check_presup,licencia,a.dias_des,a.dias_lic\".\n \" from (\".$sql.\") a\"\n . \" INNER JOIN designacion d ON (a.id_designacion=d.id_designacion)\"\n . \" LEFT OUTER JOIN departamento t ON (t.iddepto=d.id_departamento)\"\n .$where \n .\") b \"\n . \" )sub\"\n . \" LEFT OUTER JOIN novedad t_no ON (sub.id_designacion=t_no.id_designacion and t_no.desde<='\".$udia.\"' and (t_no.hasta is null or t_no.hasta>='\".$pdia.\"' ))\"\n . \" GROUP BY sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde,sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo\" \n . \")sub2\"//obtengo el id_novedad maximo\n . \" LEFT OUTER JOIN novedad t_no on (t_no.id_novedad=sub2.id_novedad)\"//con el id_novedad maximo obtengo la novedad que predomina\n .\" LEFT JOIN impresion_540 t_i ON (nro_540=t_i.id)\"//para agregar el expediente \n .\" LEFT OUTER JOIN designacion d ON (sub2.id_designacion=d.id_designacion)\"//como no tengo el id de la norma tengo que volver a hacer join\n .\" LEFT OUTER JOIN norma t_nor ON (d.id_norma=t_nor.id_norma)\"\n . \")sub3\"\n .$where2\n . \" order by docente_nombre,desde\"; \n return toba::db('designa')->consultar($sql);\n\t}", "public function get_bill_detail_vat_tax($bill_id,$type) {\r\n\t\t$query = $this->db->get_where('bill_detail', array('bill_id' => $bill_id,'type'=>$type));\r\n $result = $query->result_array();\r\n\t\treturn $result;\r\n \r\n\t}", "function calcular_cotizacion(){\n\t\t$producto=$_POST['producto'];\n\t\t$plan=$_POST['plan'];\n\t\t$temporada=$_POST['temp'];\n\t\t$fecha_llegada=$_POST['llegada'];\n\t\t\t$this->desde=$_POST['llegada'];\n\t\t$fecha_salida=$_POST['salida'];\n\t\t\t$this->hasta=$_POST['salida'];\n\t\t\n\t\t$sql=\"SELECT * FROM producto, temporadas2, habitaciones2 WHERE id_pro='$producto' AND temporadas2.id_alojamiento='$producto' AND temporadas2.id='$temporada' AND temporadas2.id=habitaciones2.id_temporada AND habitaciones2.id='$plan'\";\n\t\t\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado = mysql_fetch_array($consulta);\n\t\t\n\t\t//echo \"Noches: \".$noches;\n\t\t$arreglo_datos=\"\";\n\t\t$adultos=\"\"; $infantes=\"\"; $ninos=\"\";\n\t\t$i=1;\n\t\t$temp=\"\";\n\t\t$adultos+=$_POST['numero_adultos'.$i];\n\t\t\t$temp[]=$_POST['numero_adultos'.$i];\n\t\t$infantes+=$_POST['ninos_a'.$i];\n\t\t\t$temp[]=$_POST['ninos_a'.$i];\n\t\t$ninos+=$_POST['ninos_b'.$i];\n\t\t\t$temp[]=$_POST['ninos_b'.$i];\n\t\t$temp[]=$resultado['precio'];\n\t\t$temp[]=$resultado['precio_ninos'];\n\t\t$temp[]=$resultado['precio_ninos2'];\n\t\t$arreglo_dato[]=$temp;\n\t\t\n\t\t$this->listado=$arreglo_dato;\n\t\t$_SESSION['personas']=$arreglo_dato;\n\t\t//print_r($this->listado);\n\t\t\n\t\t$numero_personas=$adultos+$infantes+$ninos;\n\t\t$fee=1000;\n\t\n\t\t\t//cotizamos con precio completo\n\t\t\t$total_adulto=($resultado['precio']*$adultos);\n\t\t\t$total_infantes=($resultado['precio_ninos']*$infantes);\n\t\t\t$total_ninos=($resultado['precio_ninos2']*$ninos);\n\t\t\t\n\t\t\t$subtotal=$total_adulto+$total_infantes+$total_ninos;\n\t\t\t\t$this->subtotal=$subtotal;\n\t\t\t$comision=$fee;\n\t\t\t\t$this->comision=$comision;\n\t\t\t$total=$subtotal+$comision;\n\t\t\t\t$this->total=$total;\n\t\t\t\n\t\t\t/*echo \"Monto Adulto: \".$total_adulto.\"<br />\";\n\t\t\techo \"Monto Infantes: \".$total_infantes.\"<br />\";\n\t\t\techo \"Monto Ni&ntilde;os: \".$total_ninos.\"<br />\";\n\t\t\techo \"Subtotal: \".$subtotal.\"<br />\";\n\t\t\techo \"Comision: \".$comision.\"<br />\";\n\t\t\techo \"Total: \".$total.\"<br /><br />\";*/\n\n\t\t\n\t\t$observaciones=$_POST['comentario'];\n\t\t$this->condiciones=$_POST['comentario'];\n\t\t$this->mensaje2=\"si\";\n\t}", "function m_tampil_soal_terisi($where, $nipg, $id_sub){\n\t\t$data = $this->db->query(\"SELECT\n\t\trk.jawaban, rk.id_kuesioner, rk.id_sub,\n\t\trk.id_sk, sk.soal_kuesioner\n\t\tFROM tb_respon_kuesioner as rk\n\t\tJOIN tb_soal_kuesioner as sk\n\t\tON rk.id_sk = sk.id_sk\n\t\tWHERE rk.id_kuesioner = $where AND rk.nipg = $nipg AND rk.id_sub = $id_sub\n\t\t\");\n\t\treturn $data;\n\t}", "public function buscarEstudiante() {\n\n $sql = \"SELECT D.tipodocumento, D.nombrecortodocumento, E.codigocarrera,\n EG.numerodocumento, EG.idestudiantegeneral, EG.nombresestudiantegeneral, \n EG.apellidosestudiantegeneral, EG.expedidodocumento, EG.codigogenero, \n EG.ciudadresidenciaestudiantegeneral, EG.fechanacimientoestudiantegeneral, EG.direccionresidenciaestudiantegeneral, \n EG.telefonoresidenciaestudiantegeneral, EG.emailestudiantegeneral, D.nombredocumento\n\t\tFROM \n estudiantegeneral EG\n\t\tINNER JOIN estudiante E ON ( E.idestudiantegeneral = EG.idestudiantegeneral )\n\t\tINNER JOIN documento D ON ( D.tipodocumento = EG.tipodocumento )\n\t\tWHERE\n E.codigoestudiante = ? \";\n /* FIN MODIFICACION */\n\n $this->persistencia->crearSentenciaSQL($sql);\n $this->persistencia->setParametro(0, $this->getCodigoEstudiante(), false);\n\n $this->persistencia->ejecutarConsulta();\n if ($this->persistencia->getNext()) {\n $this->setIdEstudiante($this->persistencia->getParametro(\"idestudiantegeneral\"));\n $this->setNumeroDocumento($this->persistencia->getParametro(\"numerodocumento\"));\n $this->setNombreEstudiante($this->persistencia->getParametro(\"nombresestudiantegeneral\"));\n $this->setApellidoEstudiante($this->persistencia->getParametro(\"apellidosestudiantegeneral\"));\n $this->setExpedicion($this->persistencia->getParametro(\"expedidodocumento\"));\n $this->setFechaNacimiento($this->persistencia->getParametro(\"fechanacimientoestudiantegeneral\"));\n $this->setDireccion($this->persistencia->getParametro(\"direccionresidenciaestudiantegeneral\"));\n $this->setTelefono($this->persistencia->getParametro(\"telefonoresidenciaestudiantegeneral\"));\n $this->setEmail($this->persistencia->getParametro(\"emailestudiantegeneral\"));\n\n $carrera = new Carrera(null);\n $carrera->setCodigoCarrera($this->persistencia->getParametro(\"codigocarrera\"));\n $this->setCarrera($carrera);\n\n\n $tipoDocumento = new TipoDocumento(null);\n $tipoDocumento->setIniciales($this->persistencia->getParametro(\"tipodocumento\"));\n $tipoDocumento->setDescripcion($this->persistencia->getParametro(\"nombrecortodocumento\"));\n $tipoDocumento->setNombreDocumento($this->persistencia->getParametro(\"nombredocumento\"));\n\n $genero = new Genero(null);\n $genero->setCodigo($this->persistencia->getParametro(\"codigogenero\"));\n\n $ciudad = new Ciudad(null);\n $ciudad->setId($this->persistencia->getParametro(\"ciudadresidenciaestudiantegeneral\"));\n\n $this->setCiudad($ciudad);\n $this->setGenero($genero);\n $this->setTipoDocumento($tipoDocumento);\n }\n\n $this->persistencia->freeResult();\n }", "function verTipoPago_df($acceso,$tipo_tp){\n\t$cad=opcion(0,_(\"Seleccione...\"));\n\t$acceso->objeto->ejecutarSql(\"select *from tipo_pago_df where status_pago='ACTIVO' and tipo_tp='$tipo_tp' order By tipo_pago\");\n\twhile ($row=row($acceso))\n\t{\n\t\t$cad=$cad.opcion(trim($row[\"id_tipo_pago\"]),trim($row[\"tipo_pago\"]));\n\t}\n\treturn $cad;\t\n}", "function pnh_getreceipttttl_valuebytypefran($type=0,$fid=false)\r\n\t{\r\n\t\r\n\t\tif($type==0)\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,sum(receipt_amount) as total,f.franchise_name,a.name AS admin FROM pnh_t_receipt_info r JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id LEFT OUTER JOIN king_admin a ON a.id=r.created_by WHERE r.status=0 AND r.is_active=1 and is_submitted=0 and f.franchise_id=? ORDER BY instrument_date DESC\",$fid)->row_array();\r\n\t\tif($type==1 )\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,sum(receipt_amount) as total,f.franchise_name,a.name AS admin FROM pnh_t_receipt_info r JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id LEFT OUTER JOIN king_admin a ON a.id=r.created_by WHERE r.status=0 AND r.is_active=1 AND date(from_unixtime(instrument_date)) <= curdate() and is_submitted=0 and f.franchise_id=? ORDER BY instrument_date asc\",$fid)->row_array();\r\n\t\tif($type==2 )\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,sum(receipt_amount) as total,DATE_FORMAT(r.activated_on,'%d/%m/%Y')as activated_on,f.franchise_name,a.name AS admin FROM pnh_t_receipt_info r JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id LEFT OUTER JOIN king_admin a ON a.id=r.created_by WHERE r.status=0 AND r.is_active=1 AND date(from_unixtime(instrument_date)) > curdate() and is_submitted=0 and f.franchise_id=? ORDER BY instrument_date asc\",$fid)->row_array();\r\n\t\tif($type==3)\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,DATE_FORMAT(r.activated_on,'%d/%m/%Y')as activated_on,f.franchise_name,a.name AS admin,d.username AS activated_by,sum(receipt_amount) as total FROM pnh_t_receipt_info r JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id LEFT OUTER JOIN king_admin a ON a.id=r.created_by LEFT OUTER JOIN king_admin d ON d.id=r.activated_by WHERE r.status=1 AND r.is_active=1 and (is_submitted=1 or r.activated_on!=0) and r.is_active=1 and r.franchise_id=? ORDER BY activated_on desc\",$fid)->row_array();\r\n\t\tif($type==4)\r\n\t\t\t$total_value=$this->db->query(\"SELECT r.*,sum(receipt_amount) as total,b.bank_name AS submit_bankname,s.name AS submittedby,a.name AS admin,f.franchise_name,d.remarks AS submittedremarks,d.submitted_on,sum(receipt_amount) as total,r.created_on FROM pnh_t_receipt_info r LEFT JOIN `pnh_m_deposited_receipts`d ON d.receipt_id=r.receipt_id LEFT JOIN `pnh_m_bank_info` b ON b.id=d.bank_id LEFT JOIN king_admin s ON s.id=d.submitted_by JOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id left outer join king_admin a on a.id=r.created_by WHERE f.franchise_id=? and r.is_submitted=1 AND r.status=0 and r.is_active=1 order by d.submitted_on desc\",$fid)->row_array();\r\n\t\tif($type==5)\r\n\t\t{\r\n\t\t\t$sql = \"SELECT r.*,f.franchise_name,a.name AS admin,d.username AS activated_by ,c.cancel_reason,c.cancelled_on,sum(receipt_amount) as total \r\n\t\t\t\t\t\tFROM pnh_t_receipt_info r \r\n\t\t\t\t\t\tJOIN pnh_m_franchise_info f ON f.franchise_id=r.franchise_id \r\n\t\t\t\t\t\tleft JOIN `pnh_m_deposited_receipts`c ON c.receipt_id=r.receipt_id\r\n\t\t\t\t\t\tLEFT OUTER JOIN king_admin a ON a.id=r.created_by \r\n\t\t\t\t\t\tLEFT OUTER JOIN king_admin d ON d.id=r.activated_by \r\n\t\t\t\t\t\tWHERE r.status =2 AND r.is_active=1 AND r.is_active=1 \r\n\t\t\t\t\t\tand r.franchise_id = ? \r\n\t\t\t\t\t\tORDER BY activated_on DESC\";\r\n\t\t\t$total_value=$this->db->query($sql,$fid)->row_array();\r\n\t\t}\t\r\n\t\treturn $total_value;\r\n\t}", "public function getTaxes()\n {\n $t = TransModPPM::getInstance();\n return [\n ['id' => 'N', 'name' => $t->ld('Without VAT')],\n ['id' => 'Y', 'name' => $t->ld('With VAT')],\n ];\n }", "function tep_get_tax_rate($class_id, $country_id = -1, $zone_id = -1) {\n\n \n//Eversun mod for sppc and qty price breaks\n// global $customer_zone_id, $customer_country_id;\n global $customer_zone_id, $customer_country_id, $sppc_customer_group_tax_exempt;\n\n if(!tep_session_is_registered('sppc_customer_group_tax_exempt')) {\n $customer_group_tax_exempt = '0';\n } else {\n $customer_group_tax_exempt = $sppc_customer_group_tax_exempt;\n }\n\n if ($customer_group_tax_exempt == '1') {\n return 0;\n }\n//Eversun mod end for sppc and qty price breaks\n if ( ($country_id == -1) && ($zone_id == -1) ) {\n if (!tep_session_is_registered('customer_id')) {\n $country_id = STORE_COUNTRY;\n $zone_id = STORE_ZONE;\n } else {\n $country_id = $customer_country_id;\n $zone_id = $customer_zone_id;\n }\n }\n\n $tax_query = tep_db_query(\"select sum(tax_rate) as tax_rate from \" . TABLE_TAX_RATES . \" tr left join \" . TABLE_ZONES_TO_GEO_ZONES . \" za on (tr.tax_zone_id = za.geo_zone_id) left join \" . TABLE_GEO_ZONES . \" tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = '0' or za.zone_country_id = '\" . (int)$country_id . \"') and (za.zone_id is null or za.zone_id = '0' or za.zone_id = '\" . (int)$zone_id . \"') and tr.tax_class_id = '\" . (int)$class_id . \"' group by tr.tax_priority\");\n if (tep_db_num_rows($tax_query)) {echo \"}}}}{{{{{\";\n $tax_multiplier = 1.0;\n while ($tax = tep_db_fetch_array($tax_query)) {\n $tax_multiplier *= 1.0 + ($tax['tax_rate'] / 100);\n }\n return ($tax_multiplier - 1.0) * 100;\n } else {\n return 0;\n }\n }", "public function getSubtotalInclTax();", "function tache_synthese_dossier($dossier_tmp)\r\n{\r\n\t// Init\r\n\tglobal $objet;\r\n\t$tache_synthese_dossier = $sql_selection_dossiers = \"\";\r\n\t$arborescence = arborescence($objet[\"tache_dossier\"], $dossier_tmp[\"id_dossier\"]);\r\n\tforeach($arborescence as $dossier_tmp2)\t\t{ $sql_selection_dossiers .= $dossier_tmp2[\"id_dossier\"].\",\"; }\r\n\t$sql_selection_dossiers = \"FROM gt_tache WHERE id_dossier in (\".substr($sql_selection_dossiers,0,-1).\")\";\r\n\t// Recup des infos\r\n\tif(db_valeur(\"SELECT count(*) \".$sql_selection_dossiers)>0)\r\n\t{\r\n\t\t$tache_tmp1 = db_ligne(\"SELECT SUM(budget_disponible) as budget_disponible, SUM(budget_engage) as budget_engage, SUM(charge_jour_homme) as charge_jour_homme \".$sql_selection_dossiers);\r\n\t\t$tache_tmp2 = db_ligne(\"SELECT MIN(date_debut) as date_debut, MAX(date_fin) as date_fin \".$sql_selection_dossiers);\r\n\t\t$tache_tmp = array_merge($tache_tmp1, $tache_tmp2);\r\n\t\t$tache_tmp[\"devise\"]\t\t\t\t\t= db_valeur(\"SELECT devise \".$sql_selection_dossiers);\r\n\t\t$tache_tmp[\"avancement\"]\t\t\t\t= db_valeur(\"SELECT ROUND(AVG(avancement)) as avancement \".$sql_selection_dossiers.\" and avancement > 0 \");\r\n\t\t$tache_tmp[\"avancement_moyen_pondere\"]\t= db_valeur(\"SELECT ROUND(SUM(charge_jour_homme*avancement)/SUM(charge_jour_homme)) as avancement \".$sql_selection_dossiers.\" and avancement > 0 and charge_jour_homme > 0 \");\r\n\t\t$tache_synthese_dossier .= tache_budget($tache_tmp, \"dossier\");\r\n\t\t$tache_synthese_dossier .= tache_barre_avancement_charge($tache_tmp, \"dossier\");\r\n\t\t$tache_synthese_dossier .= tache_debut_fin($tache_tmp);\r\n\t\treturn $tache_synthese_dossier;\r\n\t}\r\n}", "function listarTramitesAjustables(){\n\t\t$this->procedimiento='pre.ft_partida_ejecucion_sel';\n\t\t$this->transaccion='PRE_LISTRAPE_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\n\t\t$this->setParametro('fecha_ajuste','fecha_ajuste','date');\n\t\t$this->captura('id_gestion','int4');\n $this->captura('nro_tramite','varchar');\n $this->captura('codigo','varchar');\n\t\t$this->captura('id_moneda','int4');\n\t\t$this->captura('desc_moneda','varchar');\n\t\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 selectTaxDataOld($taxCode) {\n \n // query preparation\n $select = 'ASATZ, DATUM, NSATZ, BEMERKUNG';\n $from = $this->getTableName('STEUER');\n $where = 'CODE LIKE '.$this->gsaDbObj->fullQuoteStr($taxCode, $from);\n $groupBy = '';\n $orderBy = '';\n $limit = '';\n \n // exec query using TYPO3 DB API\n $res = $this->gsaDbObj->exec_SELECTquery($select, $from, $where, $groupBy, $orderBy, $limit);\n if ($res == false) {\n throw new tx_pttools_exception('Query failed', 1, $this->gsaDbObj->sql_error());\n }\n \n $a_row = $this->gsaDbObj->sql_fetch_assoc($res);\n $this->gsaDbObj->sql_free_result($res);\n \n // if enabled, do charset conversion of all non-binary string data \n if ($this->charsetConvEnabled == 1) {\n $a_row = tx_pttools_div::iconvArray($a_row, $this->gsaCharset, $this->siteCharset);\n }\n \n trace($a_row); \n return $a_row;\n \n }", "function nodeTaxTermField(&$node, $field, $value){\n\t\t\n \t\t//split piped value in array\n \t\t$values = explode('|', $value);\n \t\tsort($values);\n\n\n \t\t$thisFieldsPossibleTids = $this->taxInfo['possibleTidValues'][$field];\n \t\t$vocab_machine_name = $this->taxInfo['vocab_machine_name'][$field];\n \t\t$vocab_human_name = $this->taxInfo['vocab_human_name'][$field];\n \t\t\n \t\t//passions is a special case. The ebs_leaflets_final table\n \t\t//'passions' field contains piped names (not tids)\n \t\tif ($field == 'field_passions'):\n \t\t//dsm($values);\n \t\t\t//convert to tids\n \t\t\t$valuesTids = array();\n \t\t\n \t\t\tforeach($values as $key => $value):\n \t\t\t\n\t \t\t\tif (strlen($value) > 0)://adjacent pipes or no values at all\n\t\t \t\t\t$terms = taxonomy_get_term_by_name($value, $vocab_machine_name);\n\t\t \t\t\t$term = array_shift($terms);\n\t \t\t\t\n\t \t\t\t\tif (isset($term) && is_numeric($term->tid)): \n\t \t\t\t\t\t$valuesTids[] = $term->tid;\n\t \t\t\t\telse:\n\t\t \t\t\t\t$this->log[] = get_class($this).\": Couldn't find \\\"\".$value.\"\\\" in \".$vocab_human_name.\" taxonomy for \".$node->field_leaflet_code['und'][0]['value'].\" \".$node->title;\n\t \t\t\t\tendif;\t\t\t\n\t\t\t\tendif;\n\t\t\t\t\n \t\t\tendforeach;\n \t\t\t \t\t\t \t\t\t\n \t\t\t$values = $valuesTids;\n\n \t\tendif;\n\n \t\t//Remove duff values\n \t\tforeach ($values as $key => $value):\n \t\t\t$badValue = false;\n \t\t\tif (strlen($value) > 0 && !in_array($value, $thisFieldsPossibleTids)):\n\n\t \t\t\t$badValue = true;\n \t\t\t$this->log[] = get_class($this).\": Couldn't find \\\"\".$value.\"\\\" in \".$vocab_human_name.\" taxonomy for \".$node->field_leaflet_code['und'][0]['value'].\" \".$node->title;\n\t \t\tendif;\n\t \t\t\n\t \t\tif (strlen($value) == 0):\n\t \t\t\t$badValue = true;\n\n\t \t\tendif;\n\t \t\t\n\t \t\tif ($badValue == true):\n\t \t\t\tunset($values[$key]);\n\t \t\tendif;\n\n\t \t\t\n \t\tendforeach;\n \t\t\n \t\t\n \t\t\n \t \t\t \t\t\t\t\n \t\tif (!empty($node->nid)){\n \t\t\t//its an existing node...\n \t\t\t\n \t\t\tif (!isset($node->{$field}[$node->language][0]['tid']) && count($values)> 0){\n \t\t\t\t//...but for some reason the existing node had no values set\n \t\t\t\t$this->nodeNeedsUpdate[$node->nid] = true;\n \t\t\t\t//dsm(__FUNCTION__.\" flagging \".$node->nid);\n \t\t\t\t//dsm($node->{$field}[$node->language][0]['tid'].\" \".$value.\" \".$field);\n \t\t\t}\n \t\t\t\n \t\t\tif ((isset($node->{$field}[$node->language][0]['tid']) &&\t(!$this->sameTaxTermValues($node, $field, $values))) ){\n \t\t\t\t//...with amended incoming values to existing values\n \t\t\t\t$this->nodeNeedsUpdate[$node->nid] = true;\n \t\t\t\t//dsm(__FUNCTION__.\" flagging \".$node->nid);\n \t\t\t\t//dsm($node->{$field}[$node->language][0]['tid'].\" \".$value.\" \".$field);\n \t\t\t}\n \t\t}\n \t\t\n \t\tunset($node->{$field}[$node->language]);\n\n \t\tif (count($values) > 0){\n \t\t\tforeach ($values as $key => $value):\n \t\t\t\t//if (strlen($value) > 0):\n \t\t\t\t$node->{$field}[$node->language][$key]['tid'] = $value;\n \t\t\t\t//endif;\n \t\t\tendforeach;\n \t\t}\n \t}", "public function datatable_transaksi_kas_petugas()\n\t{\n\t\t$aColumns = array( '','trx_date','account_cash_code','account_teller_code','mfi_trx_gl_cash.trx_gl_cash_type','mfi_trx_gl_cash.amount','mfi_trx_gl_cash.description','');\n\t\t\t\t\n\t\t/* \n\t\t * Paging\n\t\t */\n\t\t$sLimit = \"\";\n\t\tif ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )\n\t\t{\n\t\t\t$sLimit = \" OFFSET \".intval( $_GET['iDisplayStart'] ).\" LIMIT \".\n\t\t\t\tintval( $_GET['iDisplayLength'] );\n\t\t}\n\t\t\n\t\t/*\n\t\t * Ordering\n\t\t */\n\t\t$sOrder = \"\";\n\t\tif ( isset( $_GET['iSortCol_0'] ) )\n\t\t{\n\t\t\t$sOrder = \"ORDER BY \";\n\t\t\tfor ( $i=0 ; $i<intval( $_GET['iSortingCols'] ) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $_GET[ 'bSortable_'.intval($_GET['iSortCol_'.$i]) ] == \"true\" )\n\t\t\t\t{\n\t\t\t\t\t$sOrder .= \"\".$aColumns[ intval( $_GET['iSortCol_'.$i] ) ].\" \".\n\t\t\t\t\t\t($_GET['sSortDir_'.$i]==='asc' ? 'asc' : 'desc') .\", \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$sOrder = substr_replace( $sOrder, \"\", -2 );\n\t\t\tif ( $sOrder == \"ORDER BY\" )\n\t\t\t{\n\t\t\t\t$sOrder = \"\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* \n\t\t * Filtering\n\t\t */\n\t\t$sWhere = \"\";\n\t\tif ( isset($_GET['sSearch']) && $_GET['sSearch'] != \"\" )\n\t\t{\n\t\t\t$sWhere = \"WHERE (\";\n\t\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t\t\t$sWhere .= \"LOWER(CAST(\".$aColumns[$i].\" AS VARCHAR)) LIKE '%\".strtolower( $_GET['sSearch'] ).\"%' OR \";\n\t\t\t}\n\t\t\t$sWhere = substr_replace( $sWhere, \"\", -3 );\n\t\t\t$sWhere .= ')';\n\t\t}\n\t\t\n\t\t/* Individual column filtering */\n\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t{\n\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t{\n\t\t\t\tif ( isset($_GET['bSearchable_'.$i]) && $_GET['bSearchable_'.$i] == \"true\" && $_GET['sSearch_'.$i] != '' )\n\t\t\t\t{\n\t\t\t\t\tif ( $sWhere == \"\" )\n\t\t\t\t\t{\n\t\t\t\t\t\t$sWhere = \"WHERE \";\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$sWhere .= \" AND \";\n\t\t\t\t\t}\n\t\t\t\t\t$sWhere .= \"LOWER(CAST(\".$aColumns[$i].\" AS VARCHAR)) LIKE '%\".strtolower($_GET['sSearch_'.$i]).\"%' \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$rResult \t\t\t= $this->model_transaction->datatable_transaksi_kas_petugas($sWhere,$sOrder,$sLimit); // query get data to view\n\t\t$rResultFilterTotal = $this->model_transaction->datatable_transaksi_kas_petugas($sWhere); // get number of filtered data\n\t\t$iFilteredTotal \t= count($rResultFilterTotal); \n\t\t$rResultTotal \t\t= $this->model_transaction->datatable_transaksi_kas_petugas(); // get number of all data\n\t\t$iTotal \t\t\t= count($rResultTotal);\t\n\t\t\n\t\t/*\n\t\t * Output\n\t\t */\n\t\t$output = array(\n\t\t\t\"sEcho\" => intval($_GET['sEcho']),\n\t\t\t\"iTotalRecords\" => $iTotal,\n\t\t\t\"iTotalDisplayRecords\" => $iFilteredTotal,\n\t\t\t\"aaData\" => array()\n\t\t);\n\t\t\n\t\tforeach($rResult as $aRow)\n\t\t{\n\t\t\t$row = array();\n\t\t\tif ($aRow['trx_gl_cash_type']==1) \n\t\t\t{\n\t\t\t\t$jenis_trx = \"droping kas\";\n\t\t\t} \n\t\t\telse if ($aRow['trx_gl_cash_type']==2) \n\t\t\t{\n\t\t\t\t$jenis_trx = \"setoran rembug\";\n\t\t\t}\n\t\t\telse if ($aRow['trx_gl_cash_type']==3) \n\t\t\t{\n\t\t\t\t$jenis_trx = \"penarikan rembug\";\n\t\t\t}\n\t\t\telse if ($aRow['trx_gl_cash_type']==4) \n\t\t\t{\n\t\t\t\t$jenis_trx = \"setor ke teller\";\n\t\t\t}\n\t\t\t\n\t\t\t$row[] = '<input type=\"checkbox\" value=\"'.$aRow['trx_gl_cash_id'].'\" id=\"checkbox\" class=\"checkboxes\" >';\n\t\t\t$row[] = $aRow['trx_date'];\n\t\t\t$row[] = $aRow['kode_kas_petugas'];\n\t\t\t$row[] = $aRow['kode_kas_teller'];\n\t\t\t$row[] = $jenis_trx;\n\t\t\t$row[] = '<div align=\"right\">'.number_format($aRow['amount'],0,',','.').'</div>';\n\t\t\t$row[] = $aRow['description'];\n\t\t\t$row[] = '<a href=\"javascript:;\" trx_gl_cash_id=\"'.$aRow['trx_gl_cash_id'].'\" id=\"link-edit\">Edit</a>';\n\n\t\t\t$output['aaData'][] = $row;\n\t\t}\n\t\t\n\t\techo json_encode( $output );\n\t}", "function obtnerUosEpsDetalleAdjudicado(){\n $this->procedimiento='adq.f_cotizacion_ime';\n $this->transaccion='ADQ_OBEPUO_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_cotizacion','id_cotizacion','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "function get_listado_vigentes($agente,$filtro=array())\n\t{\n $udia=dt_mocovi_periodo_presupuestario::ultimo_dia_periodo(2);//utlimo deia del periodo presupuestando\n $pdia=dt_mocovi_periodo_presupuestario::primer_dia_periodo(1);//primer dia del periodo actual\n\t\t$where = array();\n //[activo] => Array ( [condicion] => es_igual_a [valor] => 0 )\n\t\tif (isset($filtro['activo'])) {\n if($filtro['activo']['valor']==1){//activo\n $where[]=\"t_d.desde <= '\".$udia.\"' and (t_d.hasta >= '\".$pdia.\"' or t_d.hasta is null)\";\n }else{//no activo\n $where[]=\"not (t_d.desde <= '\".$udia.\"' and (t_d.hasta >= '\".$pdia.\"' or t_d.hasta is null))\";\n }\t\n }else{//por defecto lo ordena por fecha de inicio\n $where[]=\"t_d.desde <= '\".$udia.\"' and (t_d.hasta >= '\".$pdia.\"' or t_d.hasta is null)\";\n }\n if (isset($filtro['anulada'])) {\n if($filtro['anulada']['valor']==1){//anulada\n $where[]=\"(t_d.hasta is not null and t_d.hasta<t_d.desde)\";\n }else{//no anuladas\n $where[]=\" not (t_d.hasta is not null and t_d.hasta<t_d.desde) \";\n }\n }\n\t\t\n // [desde] => Array ( [condicion] => es_igual_a [valor] => 2015-08-18 )\n if (isset($filtro['desde'])) {\n switch ($filtro['desde']['condicion']) {\n case 'es_igual_a':$where[] = \"t_d.desde = '\".$filtro['desde']['valor'].\"'\";break;\n case 'es_distinto_de':$where[] = \"t_d.desde <> '\".$filtro['desde']['valor'].\"'\";break;\n case 'desde':$where[] = \"t_d.desde >= '\".$filtro['desde']['valor'].\"'\";break;\n case 'hasta':$where[] = \"t_d.desde < '\".$filtro['desde']['valor'].\"'\";break;\n case 'entre':$where[] = \"(t_d.desde >= '\".$filtro['desde']['valor']['desde'].\"' and t_d.desde<='\".$filtro['desde']['valor']['hasta'].\"')\";break;\n }\n\t\t\t\n\t\t}\n\t\tif (isset($filtro['hasta'])) {\n switch ($filtro['hasta']['condicion']) {\n case 'es_igual_a':$where[] = \"t_d.hasta = '\".$filtro['hasta']['valor'].\"'\";break;\n case 'es_distinto_de':$where[] = \"t_d.hasta <> '\".$filtro['hasta']['valor'].\"'\";break;\n case 'desde':$where[] = \"t_d.hasta >= '\".$filtro['hasta']['valor'].\"'\";break;\n case 'hasta':$where[] = \"t_d.hasta < '\".$filtro['hasta']['valor'].\"'\";break;\n case 'entre':$where[] = \"(t_d.hasta >= '\".$filtro['hasta']['valor']['desde'].\"' and t_d.hasta<='\".$filtro['desde']['valor']['hasta'].\"')\";break;\n }\n\t\t\t\n\t\t}\n\t\tif (isset($filtro['cat_mapuche'])) {\n switch ($filtro['cat_mapuche']['condicion']) {\n case 'contiene':$where[] = \"cat_mapuche ILIKE \".quote(\"%{$filtro['cat_mapuche']['valor']}%\");break;\n case 'no_contiene':$where[] = \"cat_mapuche NOT ILIKE \".quote(\"%{$filtro['cat_mapuche']['valor']}%\");break;\n case 'comienza_con':$where[] = \"cat_mapuche ILIKE \".quote(\"{$filtro['cat_mapuche']['valor']}%\");break;\n case 'termina_con':$where[] = \"cat_mapuche ILIKE \".quote(\"%{$filtro['cat_mapuche']['valor']}\");break;\n case 'es_igual_a':$where[] = \"cat_mapuche = \".quote(\"{$filtro['cat_mapuche']['valor']}\");break;\n case 'es_distinto_de':$where[] = \"cat_mapuche <> \".quote(\"{$filtro['cat_mapuche']['valor']}\");break;\n }\t\n\t\t}\n if (isset($filtro['dedic'])) {\n switch ($filtro['dedic']['condicion']) {\n case 'es_igual_a':$where[] = \"t_d.dedic = \".$filtro['dedic']['valor'];break;\n case 'es_distinto_de':$where[] = \"t_d.dedic <> \".$filtro['dedic']['valor'];break;\n }\t\n\t\t}\n if (isset($filtro['carac'])) {\n switch ($filtro['carac']['condicion']) {\n case 'es_igual_a':$where[] = \"t_d.carac = '\".$filtro['carac']['valor'].\"'\";break;\n case 'es_distinto_de':$where[] = \"t_d.carac <> '\".$filtro['carac']['valor'].\"'\";break;\n }\t\n\t\t}\n if (isset($filtro['cat_estat'])) {\n \t$where[] = \"cat_estat = \".quote(\"{$filtro['cat_estat']['valor']}\");\n\t\t}\n\t\t$sql = \"SELECT distinct \n\t\t\tt_d.id_designacion,\n\t\t\tt_d1.nombre as id_docente_nombre,\n\t\t\tt_d.nro_cargo,\n\t\t\tt_d.anio_acad,\n\t\t\tt_d.desde,\n\t\t\tt_d.hasta,\n t_d.cat_mapuche,\n t_d.cat_estat,\n\t\t\tt_cs.descripcion as cat_mapuche_nombre,\n\t\t\tt_ce.descripcion as cat_estat_nombre,\n\t\t\tt_d2.descripcion as dedic,\n\t\t\tt_c.descripcion as carac,\n\t\t\tt_ua.descripcion as uni_acad_nombre,\n\t\t\tt_d3.descripcion as id_departamento,\n\t\t\tt_a.descripcion as id_area,\n t_d.uni_acad,\n\t\t\tt_o.descripcion as id_orientacion,\n\t\t\t(t_n.nro_norma||'/'||cast(EXTRACT(YEAR from t_n.fecha) as text)) as norma,\n\t\t\tt_e.nro_exp as id_expediente_nombre,\n\t\t\tt_i.descripcion as tipo_incentivo_nombre,\n\t\t\tt_di.descripcion as dedi_incen_nombre,\n\t\t\tt_cc.descripcion as cic_con_nombre,\n\t\t\tt_d.ord_gestion,\n\t\t\tt_te.quien_emite_norma as emite_cargo_gestion_nombre,\n\t\t\tt_d.nro_gestion,\n--case when t_d.hasta is null then case when t_d.desde<'\".$pdia.\"' then case when (t_no.desde <= '\".$udia.\"' and (t_no.hasta >= '\".$pdia.\"' or t_no.hasta is null)) then 'SI' else 'NO' end\n -- else case when (t_no.desde <= '\".$udia.\"' and (t_no.hasta >= t_d.desde or t_no.hasta is null)) then 'SI' else 'NO' end \n -- end\n\t--\t\t else case when t_d.desde<'\".$pdia.\"' then case when (t_no.desde <= t_d.hasta and (t_no.hasta >= '\".$pdia.\"' or t_no.hasta is null)) then 'SI' else 'NO' end\n\t--\t\t else case when (t_no.desde <= t_d.hasta and (t_no.hasta >= t_d.desde or t_no.hasta is null)) then 'SI' else 'NO' end\n\t--\t\t end\n -- end as lic,\n\t\t\tt_d.observaciones,t_v.vinc,STRING_AGG(to_char(t_no.desde,'DD/MM/YYYY')||'-'||to_char(t_no.hasta,'DD/MM/YYYY'),' Y ') as lic\n\t\tFROM\n\t\t\tdesignacion as t_d \n LEFT OUTER JOIN categ_siu as t_cs ON (t_d.cat_mapuche = t_cs.codigo_siu)\n\t\t\tLEFT OUTER JOIN (select * from novedad order by desde,hasta) t_no ON (t_d.id_designacion=t_no.id_designacion and t_no.tipo_nov in (2,5) and t_no.desde<='\".$udia.\"' and (t_no.hasta>'\".$pdia.\"' or t_no.hasta is null))\n LEFT OUTER JOIN categ_estatuto as t_ce ON (t_d.cat_estat = t_ce.codigo_est)\n\t\t\tLEFT OUTER JOIN norma as t_n ON (t_d.id_norma = t_n.id_norma)\n\t\t\tLEFT OUTER JOIN expediente as t_e ON (t_d.id_expediente = t_e.id_exp)\n\t\t\tLEFT OUTER JOIN incentivo as t_i ON (t_d.tipo_incentivo = t_i.id_inc)\n\t\t\tLEFT OUTER JOIN dedicacion_incentivo as t_di ON (t_d.dedi_incen = t_di.id_di)\n\t\t\tLEFT OUTER JOIN cic_conicef as t_cc ON (t_d.cic_con = t_cc.id)\n\t\t\tLEFT OUTER JOIN tipo_emite as t_te ON (t_d.emite_cargo_gestion = t_te.cod_emite)\n LEFT OUTER JOIN departamento as t_d3 ON (t_d.id_departamento = t_d3.iddepto)\n LEFT OUTER JOIN area as t_a ON (t_d.id_area = t_a.idarea)\n LEFT OUTER JOIN orientacion as t_o ON (t_d.id_orientacion = t_o.idorient and t_o.idarea=t_a.idarea)\n LEFT OUTER JOIN vinculo as t_v ON (t_d.id_designacion = t_v.desig),\n\t\t\tdocente as t_d1,\n\t\t\tdedicacion as t_d2,\n\t\t\tcaracter as t_c,\n\t\t\tunidad_acad as t_ua\n \n\t\tWHERE\n\t\t\tt_d.id_docente = t_d1.id_docente\n\t\t\tAND t_d.dedic = t_d2.id_ded\n\t\t\tAND t_d.carac = t_c.id_car\n\t\t\tAND t_d.uni_acad = t_ua.sigla\".\n \" AND t_d.id_docente=\".$agente. \n \" GROUP BY t_d.id_designacion,t_d1.nombre,t_d.nro_cargo,t_d.anio_acad,t_d.desde,t_d.hasta,t_d.cat_mapuche,t_d.cat_estat,t_cs.descripcion,t_ce.descripcion,\n\t\t\tt_d2.descripcion,\n\t\t\tt_c.descripcion,\n\t\t\tt_ua.descripcion,\n\t\t\tt_d3.descripcion,\n\t\t\tt_a.descripcion,\n t_d.uni_acad,\n\t\t\tt_o.descripcion,\n\t\t\tt_n.nro_norma,t_n.fecha,\n\t\t\tt_e.nro_exp,\n\t\t\tt_i.descripcion,\n\t\t\tt_di.descripcion,\n\t\t\tt_cc.descripcion,\n\t\t\tt_d.ord_gestion,\n\t\t\tt_te.quien_emite_norma,\n\t\t\tt_d.nro_gestion,t_d.observaciones,t_v.vinc \" . \n\t\t \" ORDER BY desde desc\";\n \n $sql = toba::perfil_de_datos()->filtrar($sql);\n \n\t\tif (count($where)>0) {\n\t\t\t$sql = sql_concatenar_where($sql, $where);\n\t\t}\n \n\t\treturn toba::db('designa')->consultar($sql);\n \n\t}", "function gr_tipo1($_idrespuesta,$valor){\n \n $tableRpta=$this->_tablerpta;\n $g_sql='';\n \n if(!empty($valor)){\n $_datarespt=\"TO_DATE(:valor,'\".Yii::$app->fmtfechasql.\"')\";\n }else{\n $_datarespt=\":valor\";\n $valor=null;\n }\n \n if(empty($_idrespuesta) and isset($valor)){\n $g_sql=\"INSERT INTO $tableRpta ([[ra_fecha]],[[id_conjunto_respuesta]],[[id_pregunta]],[[id_tpregunta]],[[id_capitulo]],[[id_formato]],[[id_conjunto_pregunta]],[[id_version]], [[id_junta]]) VALUES ($_datarespt, :idconjrpta, :idpregunta, :idtpregunta, :idcapitulo, :idformato,:idconjprta,:idversion, :idjunta)\";\n }\n else if(!empty($_idrespuesta) and isset($valor)){\n $g_sql=\"UPDATE $tableRpta SET [[ra_fecha]] = $_datarespt,[[id_conjunto_respuesta]] = :idconjrpta,[[id_pregunta]] = :idpregunta ,[[id_tpregunta]] = :idtpregunta,[[id_capitulo]] = :idcapitulo,[[id_formato]] = :idformato,[[id_conjunto_pregunta]] = :idconjprta,[[id_version]] = :idversion, [[id_junta]]= :idjunta WHERE [[id_respuesta]] = \".$_idrespuesta;\n }\n else if(!empty($_idrespuesta) and empty($valor)){\n $g_sql=\"UPDATE $tableRpta SET [[ra_fecha]] = $_datarespt,[[id_conjunto_respuesta]] = :idconjrpta,[[id_pregunta]] = :idpregunta ,[[id_tpregunta]] = :idtpregunta,[[id_capitulo]] = :idcapitulo,[[id_formato]] = :idformato,[[id_conjunto_pregunta]] = :idconjprta,[[id_version]] = :idversion, [[id_junta]]= :idjunta WHERE [[id_respuesta]] = \".$_idrespuesta;\n }else{\n $g_sql=\"\";\n } \n \n $_valor = $valor;\n return [$g_sql,$_valor];\n }", "function getTitulos() {\r\n //arreglo para remplazar los titulos de las columnas\r\n $titulos_campos['ivg_id'] = INVENTARIO_GRUPO;\r\n $tirulos_campos['ivg_nombre'] = INVENTARIO_GRUPO;\r\n\r\n $titulos_campos['ine_id'] = INVENTARIO_EQUIPO;\r\n $titulos_campos['ine_nombre'] = INVENTARIO_NOMBRE_EQUIPO;\r\n $titulos_campos['ine_reposicion'] = INVENTARIO_EQUIPO_REPOSICION;\r\n\r\n $titulos_campos['ies_id'] = INVENTARIO_ESTADO;\r\n $titulos_campos['ies_nombre'] = INVENTARIO_NOMBRE_ESTADO;\r\n\r\n $titulos_campos['inm_id'] = INVENTARIO_MARCA;\r\n $titulos_campos['inm_nombre'] = INVENTARIO_MARCA;\r\n\r\n $tirulos_campos['obc_id'] = OBLIGACION_CLAUSULA;\r\n $tirulos_campos['obc_nombre'] = OBLIGACION_CLAUSULA;\r\n\r\n $tirulos_campos['oco_id'] = OBLIGACION_COMPONENTE;\r\n $tirulos_campos['oco_nombre'] = OBLIGACION_COMPONENTE;\r\n\r\n $titulos_campos['dti_id'] = DOCUMENTO_TIPO;\r\n\t $titulos_campos['dti_nombre'] = DOCUMENTO_TIPO;\r\n \t\t$titulos_campos['dti_estado'] = DOCUMENTO_ESTADO_CONTROL;\r\n \t\t$titulos_campos['dti_responsable'] = DOCUMENTO_RESPONSABLE_CONTROL;\r\n\r\n \t\t$titulos_campos['dot_id'] = DOCUMENTO_TEMA;\r\n \t\t$titulos_campos['dot_nombre'] = DOCUMENTO_TEMA;\r\n\r\n \t\t$titulos_campos['dos_id'] = DOCUMENTO_SUBTEMA;\r\n \t\t$titulos_campos['dos_nombre'] = DOCUMENTO_SUBTEMA;\r\n\r\n \t\t$titulos_campos['doa_id'] = DOCUMENTO_RESPONSABLE;\r\n \t\t$titulos_campos['doa_nombre'] = DOCUMENTO_RESPONSABLE;\r\n \t\t$titulos_campos['doa_sigla'] = DOCUMENTO_SIGLA;\r\n\r\n \t\t$titulos_campos['tib_nombre'] = DOCUMENTO_BUSQUEDA;\r\n\r\n \t\t$titulos_campos['doe_nombre'] = DOCUMENTO_ESTADOS;\r\n \t\t$titulos_campos['der_nombre'] = DOCUMENTO_ESTADO_RESPUESTA;\r\n \t\t$titulos_campos['see_nombre'] = SEGUIMIENTO_ESTADOS;\r\n \t\t$titulos_campos['ces_nombre'] = COMPROMISO_ESTADOS;\r\n\r\n \t\t$titulos_campos['dta_id'] = DOCUMENTO_TIPO_ACTOR;\r\n \t\t$titulos_campos['dta_nombre'] = DOCUMENTO_TIPO_ACTOR;\r\n\r\n \t\t$titulos_campos['rpr_nombre'] = PROBABILIDAD;\r\n \t\t$titulos_campos['rpr_valor'] = PROBABILIDAD_VALOR;\r\n\r\n \t\t$titulos_campos['rca_nombre'] = CATEGORIA;\r\n \t\t$titulos_campos['rca_minimo'] = CATEGORIA_MINIMO;\r\n \t\t$titulos_campos['rca_maximo'] = CATEGORIA_MAXIMO;\r\n\r\n \t\t$titulos_campos['rim_nombre'] = IMPACTO;\r\n \t\t$titulos_campos['rim_valor'] = IMPACTO_VALOR;\r\n\r\n \t\t$titulos_campos['rer_id'] = COD_ROL;\r\n \t\t$titulos_campos['rer_nombre'] = COD_ROL;\r\n\r\n\t $titulos_campos['dep_id'] = COD_DEPARTAMENTO;\r\n\t $titulos_campos['dep_nombre'] = NOMBRE_DEPARTAMENTO;\r\n\r\n\t $titulos_campos['dpr_id'] = COD_DEPARTAMENTO_REGION;\r\n\t $titulos_campos['dpr_nombre'] = NOMBRE_DEPARTAMENTO_REGION;\r\n\r\n \t\t$titulos_campos['mun_id'] = COD_MUNICIPIO;\r\n \t\t$titulos_campos['mun_nombre'] = NOMBRE_MUNICIPIO;\r\n \t\t$titulos_campos['mun_poblacion'] = POB_MUNICIPIO;\r\n\r\n $titulos_campos['tia_nombre'] = TIPO_ACTOR;\r\n\r\n $titulos_campos['ope_id'] = OPERADOR;\r\n $titulos_campos['ope_nombre'] = OPERADOR_NOMBRE;\r\n $titulos_campos['ope_sigla'] = OPERADOR_SIGLA;\r\n \t\t$titulos_campos['ope_contrato_no'] = OPERADOR_CONTRATO_NRO;\r\n \t\t$titulos_campos['ope_contrato_valor'] = OPERADOR_CONTRATO_VALOR;\r\n\r\n return $titulos_campos;\r\n }", "public function getBusquedaAvisosPerformance ($array, $defaultFiltro, $procesarBusquedaTipo)\r\n {\r\n // Validamos si es busqueda por modulo o por avisos\r\n if (isset($array['mod']) && ($array['mod'] == $defaultFiltro)) {\r\n // Procesamos la busqueda por aviso\r\n if ($procesarBusquedaTipo == 'CENTRAL' && $procesarBusquedaTipo == 'PRUEBA-BORRAR') {\r\n // Realizamos el proceso rapido\r\n return $this->getAdapter()->fetchAll(\r\n 'EXECUTE KO_SP_BUSQUEDA_CENTRAL ?, ?, ?',\r\n array(\r\n ($array['q'] == $defaultFiltro) ? '':$array['q'] . '*',\r\n ($array['categs'] == $defaultFiltro) ? -1:$array['categs'],\r\n ($array['adulto'] == $defaultFiltro) ? 0:$array['adulto']\r\n )\r\n );\r\n } else {\r\n // Realizamos el proceso de filtrados\r\n return $this->getAdapter()->fetchAll(\r\n 'EXECUTE KO_SP_BUSQUEDA_FILTRO ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?',\r\n array(\r\n ($array['id'] == $defaultFiltro) ? -1:$array['id'],\r\n ($array['q'] == $defaultFiltro) ? '':$array['q'] . '*',\r\n ($array['exclude'] == $defaultFiltro) ? '':$array['exclude'],\r\n ($array['categs'] == $defaultFiltro) ? -1:$array['categs'],\r\n ($array['usuario'] == $defaultFiltro) ? '':$array['usuario'],\r\n ($array['apodo'] == $defaultFiltro) ? '':$array['apodo'],\r\n ($array['tv'] == $defaultFiltro) ? -1:$array['tv'],\r\n ($array['rep'] == $defaultFiltro) ? -1:$array['rep'],\r\n ($array['pmin'] == $defaultFiltro) ? -1:$array['pmin'],\r\n ($array['pmax'] == $defaultFiltro) ? -1:$array['pmax'],\r\n ($array['ubic'] == $defaultFiltro) ? -1:$array['ubic'],\r\n ($array['tm'] == $defaultFiltro) ? -1:$array['tm'],\r\n ($array['tp'] == $defaultFiltro) ? -1:$array['tp'],\r\n ($array['ta'] == $defaultFiltro) ? -1:$array['ta'],\r\n ($array['mod'] == $defaultFiltro) ? -1:$array['mod'],\r\n ($array['ord'] == $defaultFiltro) ? -1:$array['ord'],\r\n ($array['page'] == $defaultFiltro) ? 1:$array['page'],\r\n ($array['nr'] == $defaultFiltro) ? 30:$array['nr'],\r\n ($array['adulto'] == $defaultFiltro) ? 0:$array['adulto']\r\n )\r\n );\r\n }\r\n } else {\r\n // Procesamos la busqueda por modulos\r\n return $this->getAdapter()->fetchAll(\r\n 'EXECUTE KO_SP_BUSQUEDA_FILTRO_MODULOS ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?\r\n , ?',\r\n array(($array['id'] == $defaultFiltro) ? -1:$array['id'],\r\n ($array['q'] == $defaultFiltro) ? '':$array['q'] . '*',\r\n ($array['exclude'] == $defaultFiltro) ? '':$array['exclude'],\r\n ($array['categs'] == $defaultFiltro) ? -1:$array['categs'],\r\n ($array['usuario'] == $defaultFiltro) ? '':$array['usuario'],\r\n ($array['apodo'] == $defaultFiltro) ? '':$array['apodo'],\r\n ($array['tv'] == $defaultFiltro) ? -1:$array['tv'],\r\n ($array['rep'] == $defaultFiltro) ? -1:$array['rep'],\r\n ($array['pmin'] == $defaultFiltro) ? -1:$array['pmin'],\r\n ($array['pmax'] == $defaultFiltro) ? -1:$array['pmax'],\r\n ($array['ubic'] == $defaultFiltro) ? -1:$array['ubic'],\r\n ($array['tm'] == $defaultFiltro) ? -1:$array['tm'],\r\n ($array['tp'] == $defaultFiltro) ? -1:$array['tp'],\r\n ($array['ta'] == $defaultFiltro) ? -1:$array['ta'],\r\n ($array['mod'] == $defaultFiltro) ? -1:$array['mod'],\r\n ($array['ord'] == $defaultFiltro) ? -1:$array['ord'],\r\n ($array['page'] == $defaultFiltro) ? 1:$array['page'],\r\n ($array['nr'] == $defaultFiltro) ? 30:$array['nr'],\r\n ($array['adulto'] == $defaultFiltro) ? 0:$array['adulto']\r\n )\r\n );\r\n }\r\n }", "function listar_valores($tipo, $id){\n $contratista = \"\";\n $contratante = \"\";\n \n // Si viene algun dato y es contratista\n if ($tipo == \"contratista\" && $id != \"\") {\n $contratista = \"AND c.Fk_Id_Terceros = {$id}\";\n }\n \n // Si viene algun dato y es contratista\n if ($tipo == \"contratante\" && $id != \"\") {\n $contratista = \"AND c.Fk_Id_Terceros_Contratante = {$id}\";\n }\n\n $sql =\n \"SELECT\n c.Pk_Id_Contrato,\n c.Numero,\n c.Objeto,\n tc.Nombre AS Contratante,\n tbl_terceros.Nombre AS Contratista,\n c.Fecha_Inicial,\n c.Fecha_Vencimiento,\n c.Plazo AS Plazo_Inicial,\n c.Valor_Inicial,\n (\n SELECT\n ifnull(SUM(contratos_pagos.Valor_Pago), 0)\n FROM\n contratos\n LEFT JOIN contratos_pagos ON contratos_pagos.Fk_Id_Contratos = contratos.Pk_Id_Contrato\n WHERE\n contratos.Pk_Id_Contrato = c.Pk_Id_Contrato\n GROUP BY\n contratos.Pk_Id_Contrato\n ) AS Pagado,\n (\n SELECT\n IFNULL(SUM(adiciones.Plazo), 0)\n FROM\n contratos_adiciones AS adiciones\n WHERE\n adiciones.Fk_Id_Contrato = c.Pk_Id_Contrato\n ) AS Plazo_Adiciones,\n (\n SELECT\n IFNULL(\n SUM(contratos_adiciones.Valor),\n 0\n )\n FROM\n contratos_adiciones\n WHERE\n contratos_adiciones.Fk_Id_Contrato = c.Pk_Id_Contrato\n ) AS Valor_Adiciones,\n tbl_estados.Estado,\n tcc.Nombre AS CentroCosto\n FROM\n contratos AS c\n LEFT JOIN tbl_terceros ON c.Fk_Id_Terceros = tbl_terceros.Pk_Id_Terceros\n LEFT JOIN tbl_estados ON c.Fk_Id_Estado = tbl_estados.Pk_Id_Estado\n LEFT JOIN tbl_terceros AS tc ON c.Fk_Id_Terceros_Contratante = tc.Pk_Id_Terceros\n INNER JOIN tbl_terceros AS tcc ON tcc.Pk_Id_Terceros = c.Fk_Id_Terceros_CentrodeCostos\n WHERE c.Fk_Id_Proyecto = {$this->session->userdata('Fk_Id_Proyecto')}\n {$contratista}\n ORDER BY\n c.Fk_Id_Estado ASC,\n c.Fecha_Inicial DESC\";\n\n //Se retorna la consulta\n return $this->db->query($sql)->result();\n }", "public function mencari_tf_query($data=array())\n{\n\tfor ($i=0; $i <count($data) ; $i++) { \n\t\tif ($i==0) {\n\t\t\t$term_query = array_unique($data[$i][1]);//menghilangkan data kembar dari data query form\n\t\t}\n\t}\n\t$j=0;\n\tforeach ($term_query as $value) {\n\t\t$query[$j] = $value;\n\t\t$j++;\n\t}\n\t//batas term\n\t//mencari tf\n\tfor ($m=0; $m <count($data) ; $m++) { \n\t\tfor ($n=0; $n <count($query) ; $n++) { \n\t\t// foreach ($term_query as $kunci => $isi) {\n\t\t\t\t$angka = (in_array($query[$n], $data[$m][1])) ? 1 : 0 ;\n\t\t\t\t$tf[$m][$n]=array(\"nilai_tf\"=>$angka);\n\t\t\t// }\n\t\t}\t\t\n\t}//batas mencari tf\n\treturn $tf;\n}", "public function parse_tax_query(&$q)\n {\n }", "abstract public function getTaxPercent();", "public function getTaxAmount();", "public function painelRelatoriosGeralAnalise($where = array(), $order = array(), $tamanho = -1, $inicio = -1, $qtdeTotal = false)\n {\n $select = $this->select();\n $select->setIntegrityCheck(false);\n $select->from(\n array('p' => $this->_name),\n array(\n new Zend_Db_Expr(\"\n p.idPronac,\n p.AnoProjeto+p.Sequencial AS Pronac,\n p.NomeProjeto,\n pr.Descricao AS Produto,\n p.DtProtocolo As DtPrimeiroEnvio,\n d.DtEnvio AS DtUltimoEnvio,\n d.DtDistribuicao,\n d.dtDevolucao,\n DATEDIFF(day, d.DtEnvio, isnull(d.DtDistribuicao,GETDATE())) AS QtdeDiasParaDistribuir,\n CASE\n WHEN d.DtDevolucao is null\n THEN DATEDIFF(day, d.DtDistribuicao, GETDATE())\n WHEN d.DtDevolucao is not null\n THEN DATEDIFF(day, d.DtDistribuicao, d.DtDevolucao)\n WHEN Situacao = 'B14'\n THEN DATEDIFF(day, d.DtDistribuicao, GETDATE()) - DATEDIFF(day, p.dtSituacao, GETDATE())\n END as QtdeDiasParaParecAnalisar,\n CASE\n WHEN d.DtDevolucao is not null and d.DtRetorno is null AND d.FecharAnalise=0\n THEN DATEDIFF(day, d.DtDevolucao,GETDATE())\n END as QtdeDiasDevolvidosParaCoord,\n ISNULL(n.Descricao,'') AS Parecerista,\n p.DtInicioExecucao,\n p.DtFimExecucao,\n DATEDIFF(day,GETDATE(),\n p.DtInicioExecucao) AS QtdeDiasVencido,\n CASE\n WHEN dbo.fnchecarDiligencia(p.idPronac) = 0\n THEN 'Sem Dilig�ncia'\n WHEN dbo.fnchecarDiligencia(p.idPronac) = 1\n THEN 'Diligenciado'\n WHEN dbo.fnchecarDiligencia(p.idPronac) = 2\n THEN 'Dilig�ncia Respondida'\n END AS Diligencia,\n o.Sigla as Vinculada\n \")\n )\n );\n $select->joinInner(\n array('d' => 'tbDistribuirParecer'),\n 'p.idPronac = d.idPronac',\n array(''),\n 'SAC.dbo'\n );\n $select->joinInner(\n array('o' => 'Orgaos'),\n 'd.idOrgao = o.codigo',\n array(''),\n 'SAC.dbo'\n );\n $select->joinLeft(\n array('n' => 'Nomes'),\n 'd.idAgenteParecerista = n.idAgente',\n array(''),\n $this->getSchema('agentes')\n );\n $select->joinLeft(\n array('pr' => 'Produto'),\n 'd.idProduto = pr.Codigo',\n array(''),\n 'SAC.dbo'\n );\n $select->where('d.TipoAnalise in (?)', array(1, 3));\n $select->where('d.stEstado = ?', 0);\n $select->where('p.Situacao in (?)', array('B11', 'B14'));\n $select->where('d.FecharAnalise = ?', 0);\n\n //adiciona quantos filtros foram enviados\n foreach ($where as $coluna => $valor) {\n $select->where($coluna, $valor);\n }\n\n if ($qtdeTotal) {\n return $this->fetchAll($select)->count();\n }\n\n //adicionando linha order ao select\n $select->order($order);\n\n // paginacao\n if ($tamanho > -1) {\n $tmpInicio = 0;\n if ($inicio > -1) {\n $tmpInicio = $inicio;\n }\n $select->limit($tamanho, $tmpInicio);\n }\n\n return $this->fetchAll($select);\n }", "public function product_tax_listcount($product, $f_date, $t_date, $vendor, $sp_tax1,$sp_tax2,$sp_tax3,$sp_tax4,$sp_tax5,$pp_tax1,$pp_tax2,$pp_tax3,$pp_tax4,$pp_tax5){\n\t\t$user_info = $this->session->userdata('logged_user');\n $user_id = $user_info['user_id'];\n\t\t$rolename = singleDbTableRow($user_id)->rolename;\n\t\t$email = singleDbTableRow($user_id)->email;\n\t\t\n\t\t$condition=\"\";\n\t\t\n\t\tif($product !='')\n\t\t{\n\t\t\t$condition.=\"product = '\".$product.\"'\";\n\t\t}\n\t\t\n\t\tif($sp_tax1 !='')\n\t\t{\n\t\t\tif($condition != \"\"){\n\t\t\t\t$condition.=\"AND sp_tax1 = '\".$sp_tax1.\"'\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$condition.=\"sp_tax1 = '\".$sp_tax1.\"'\";\n\t\t\t}\n\t\t}\n\t\tif($sp_tax2 !='')\n\t\t{\n\t\t\tif($condition != \"\"){\n\t\t\t\t$condition.=\"AND sp_tax2 = '\".$sp_tax2.\"'\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$condition.=\"sp_tax2 = '\".$sp_tax2.\"'\";\n\t\t\t}\n\t\t}\n\t\tif($sp_tax3 !='')\n\t\t{\n\t\t\tif($condition != \"\"){\n\t\t\t\t$condition.=\"AND sp_tax3 = '\".$sp_tax3.\"'\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$condition.=\"sp_tax3 = '\".$sp_tax3.\"'\";\n\t\t\t}\n\t\t}\n\t\tif($sp_tax4 !='')\n\t\t{\n\t\t\tif($condition != \"\"){\n\t\t\t\t$condition.=\"AND sp_tax4 = '\".$sp_tax4.\"'\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$condition.=\"sp_tax4 = '\".$sp_tax4.\"'\";\n\t\t\t}\n\t\t}\n\t\tif($sp_tax5 !='')\n\t\t{\n\t\t\tif($condition != \"\"){\n\t\t\t\t$condition.=\"AND sp_tax5 = '\".$sp_tax5.\"'\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$condition.=\"sp_tax5 = '\".$sp_tax5.\"'\";\n\t\t\t}\n\t\t}\n\t\t\n\t\tif($pp_tax1 !='')\n\t\t{\n\t\t\tif($condition != \"\"){\n\t\t\t\t$condition.=\"AND pp_tax1 = '\".$pp_tax1.\"'\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$condition.=\"pp_tax1 = '\".$pp_tax1.\"'\";\n\t\t\t}\n\t\t}\n\t\tif($pp_tax2 !='')\n\t\t{\n\t\t\tif($condition != \"\"){\n\t\t\t\t$condition.=\"AND pp_tax2 = '\".$pp_tax2.\"'\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$condition.=\"pp_tax2 = '\".$pp_tax2.\"'\";\n\t\t\t}\n\t\t}\n\t\t\n\t\tif($pp_tax3 !='')\n\t\t{\n\t\t\tif($condition != \"\"){\n\t\t\t\t$condition.=\"AND pp_tax3 = '\".$pp_tax3.\"'\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$condition.=\"pp_tax3 = '\".$pp_tax3.\"'\";\n\t\t\t}\n\t\t}\n\t\t\n\t\tif($pp_tax4 !='')\n\t\t{\n\t\t\tif($condition != \"\"){\n\t\t\t\t$condition.=\"AND pp_tax4 = '\".$pp_tax4.\"'\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$condition.=\"pp_tax4 = '\".$pp_tax4.\"'\";\n\t\t\t}\n\t\t}\n\t\tif($pp_tax5 !='')\n\t\t{\n\t\t\tif($condition != \"\"){\n\t\t\t\t$condition.=\"AND pp_tax5 = '\".$pp_tax5.\"'\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$condition.=\"pp_tax5 = '\".$pp_tax5.\"'\";\n\t\t\t}\n\t\t}\n\t\t\n\t\tif($f_date !='' && $t_date !='')\n\t\t\t{\n\t\t\t\t$start_fdt = new DateTime($f_date);\n\t\t\t\t$start_from = $start_fdt->format('Y-m-d');\n\t\t\t\t\n\t\t\t\t$start_tdt = new DateTime($t_date);\n\t\t\t\t$start_to = $start_tdt->format('Y-m-d');\n\t\t\t}\n\t\t\n\t\tif($f_date !='' && $t_date !=''){\n\t\t\tif($condition != \"\"){\n\t\t\t\t\n\t\t\t\t$condition.=\" AND DATE(FROM_UNIXTIME(datetime)) >= '\".$start_from.\"' AND DATE(FROM_UNIXTIME(datetime)) <= '\".$start_to.\"'\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$condition.=\"DATE(FROM_UNIXTIME(datetime)) >= '\".$start_from.\"' AND DATE(FROM_UNIXTIME(datetime)) <= '\".$start_to.\"'\";\n\t\t\t}\n\t\t}\n\t\t\n\t\tif($vendor !='')\n\t\t{\n\t\t\tif($condition != \"\"){\n\t\t\t\t$condition.=\"AND added_by = '\".$vendor.\"'\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$condition.=\"added_by = '\".$vendor.\"'\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tif($condition !='')\n\t\t{\n\t\t\t$where_array =$condition;\n\t\t\t$query = $this->db->where($where_array )->count_all_results('smb_stock');\n\t\t}\n\t\n\t\t\telse\n\t\t{\n\t\t\t$query = $this->db->count_all_results('smb_stock');\n\t\t}\n\t\t\n return $query;\n }", "public function getTotalVehicleTax($conditions='') {\n \n $query = \"\tSELECT\tmax(busNoValidTill) AS busNoValidTill,\n\t\t\t\t\t\t\tmax(passengerTaxValidTill) AS passengerTaxValidTill,\n\t\t\t\t\t\t\tmax(roadTaxValidTill) AS roadTaxValidTill,\n\t\t\t\t\t\t\tmax(pollutionCheckValidTill) AS pollutionCheckValidTill,\n\t\t\t\t\t\t\tmax(passingValidTill) AS passingValidTill,\n\t\t\t\t\t\t\tb.busNo \n\t\t\t FROM\tbus_entries be,\n\t\t\t\t\t\t\tbus b\n\t\t\t\t\tWHERE\tbe.busId = b.busId\n\t\t\t\t\tAND\t\tb.isActive = 1\n\t\t\t\t\t\t\t$conditions\n\t\t\t\t\t\t\tGROUP BY b.busId\";\n return SystemDatabaseManager::getInstance()->executeQuery($query,\"Query: $query\");\n }" ]
[ "0.66550237", "0.6265659", "0.6242223", "0.6144572", "0.6118079", "0.6059821", "0.5950713", "0.5885671", "0.5866491", "0.5849872", "0.58299667", "0.5793177", "0.5777902", "0.57726985", "0.5766309", "0.57435226", "0.5730709", "0.5709373", "0.57048285", "0.5688068", "0.56801844", "0.566887", "0.5666248", "0.56402457", "0.5635889", "0.56221455", "0.5597094", "0.5588911", "0.5580799", "0.5580318", "0.5578749", "0.5553618", "0.5542211", "0.5539605", "0.5536953", "0.55213946", "0.55062497", "0.54928577", "0.54877245", "0.54580325", "0.54554456", "0.5441659", "0.5441278", "0.54374164", "0.5417229", "0.54094785", "0.54017395", "0.53936887", "0.53878605", "0.538347", "0.53716576", "0.5364665", "0.5363553", "0.53611594", "0.53603977", "0.5352898", "0.53514516", "0.53448296", "0.5340533", "0.53316534", "0.53270584", "0.5326274", "0.53246486", "0.5323706", "0.53231174", "0.5317328", "0.53149277", "0.53141063", "0.53081614", "0.5298702", "0.52985305", "0.5294098", "0.5289699", "0.52863973", "0.52791065", "0.5277973", "0.52741283", "0.5268295", "0.5266221", "0.52650285", "0.525428", "0.5251888", "0.5248705", "0.5240343", "0.52402335", "0.5230463", "0.5219774", "0.52185196", "0.52183", "0.52156025", "0.5210604", "0.52105325", "0.52090585", "0.5205156", "0.52048665", "0.52031666", "0.51961255", "0.5194693", "0.518961", "0.5189371" ]
0.63616866
1
/ Filtro para verificar quando tempo demorou a entrega para ser realizada
function getFiltroTempoEntrega($get,$where = " 1 = 1"){ if(isset($get['hrini']) && isset($get['hrfim'])){ $hrIni = $get['hrini']; $hrFim = $get['hrfim']; if (!empty($hrIni) && !empty($hrFim)){ return $where .= " AND TO_CHAR(EXTRACT(HOUR from NUMTODSINTERVAL((to_date(DtFim,'YYYYMMDDHH24MISS') - to_date(DtIni,'YYYYMMDDHH24MISS')),'DAY')),'FM00') ||':' || TO_CHAR(EXTRACT(Minute from NUMTODSINTERVAL((to_date(DtFim,'YYYYMMDDHH24MISS') - to_date(DtIni,'YYYYMMDDHH24MISS')),'DAY')),'FM00') BETWEEN '{$hrIni}' AND '{$hrFim}'"; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkTimeEnd(): bool;", "public function reiniciarMedio($tiempo) {\n $tiempo2 = $tiempo->time();\n $hora = date('H', $tiempo2);\n $minutos = date('i', $tiempo2);\n $segundos = date('s', $tiempo2);\n\n if ($hora == '00' && $minutos == '00' && $segundos == '00')\n {\n $this->vecesUsado = 0;\n return TRUE;\n }\n else\n {\n return FALSE;\n }\n }", "function VerifyTime() {\r\n $current = time();\r\n // check if the session has expired\r\n $this->err_level = 16;\r\n $this->err = \"Verify expire. LastUsed: \" . (string)$this->sessdata[\"lastused\"] . \" ExpireTime: \" . (string)$this->expire_time . \" Current: \" . (string)$current ;\r\n $this->err_no = 0;\r\n $this->DbgAddSqlLog();\r\n if ($this->sessdata[\"lastused\"]+$this->expire_time<$current) {\r\n return 0;\r\n }\r\n return 1;\r\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 }", "public function checkTimestamps()\n {\n return false;\n }", "public function hasTimeLimitReached(): bool;", "public function hasTime() {\n\n return $this->getDateType()!==DateTime::DATE;\n\n }", "public function hasLogintime(){\n return $this->_has(2);\n }", "public function hasTime(){\n return $this->_has(3);\n }", "public function needUpdate()\n\t{\n\t\treturn ($this->getLastUpdate() == null || time() - $this->getLastUpdate()->format('U') > 1 * 60);\n\t}", "public function hasCreatetime(){\n return $this->_has(1);\n }", "protected abstract function shouldBeTimestamped(): bool;", "public function hasRelivetime(){\n return $this->_has(3);\n }", "public function hasTime(){\n return $this->_has(6);\n }", "public function is_expired() {\n\t\treturn $this->data['created_at'] + HOUR_IN_SECONDS < ITSEC_Core::get_current_time_gmt();\n\t}", "public function hasCTime(){\n return $this->_has(6);\n }", "public function isExpired() {}", "public function isInTimeout();", "public function hasExpiretime(){\n return $this->_has(4);\n }", "public function isExpired()\n {\n $dataTimeSec = $this->getTime() / 1000;\n\n return ($dataTimeSec < time());\n }", "public function hasLastTime(){\n return $this->_has(18);\n }", "public function has_time() {\n return in_array( $this->duration_unit, array( 'hour', 'minute' ) );\n }", "public function isExpired()\n {\n // todo: Implement transaction expiration check\n // for example, if transaction is active and passed TIMEOUT milliseconds after its creation, then it is expired\n return $this->state == self::STATE_CREATED && Format::datetime2timestamp($this->create_time) - time() > self::TIMEOUT;\n }", "public function is_time()\n {\n }", "function timeout() {\n $q = Doctrine_Query::create()\n ->update('Zim_Model_User u')\n ->set('u.timedout', '?', '1')\n ->where(\"u.updated_at <= ?\", date('Y-m-d H:i:s', time()- $this->getVar('timeout_period', 30)));\n $q->execute();\n return;\n }", "public function comprobarSaldo($cantidad){ //en cantidad le pasaremos lo que se le va a cobrar\n if($this->time - $cantidad < -300){\n return false;\n }else{\n return true;\n }\n\n }", "abstract protected function isRealTime();", "private function checkIfTimeLeft()\r\n {\r\n if($this->expireDateTime < strtotime(\"now\"))\r\n {\r\n generic::successEncDisplay(\"Emails have been sent out, however, there are a number of emails to be sent, and the server run out of time.\");\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "public function hasExpired(){\n if($this->isIndefinied())\n return false;\n\n \\Log::info('Hoy'.print_r(Carbon::now(),true));\n \\Log::info('Expira'.print_r(Carbon::parse($this->expires_on),true));\n return (bool) Carbon::now()->greaterThan(Carbon::parse($this->expires_on));\n }", "public function is_expired()\n {\n }", "function cacheObjectTimedOut ()\n {\n if ($this->cacheObjectExists()) {\n if (time() - filemtime($this->cacheObjectId) > $this->timeout) {\n $return = TRUE;\n } else {\n $return = FALSE;\n }\n } else {\n $return = TRUE;\n }\n\n return $return;\n }", "private function isTimeLimitReached() \n {\n return $this->timeLimit < (microtime(true) - $this->startTime);\n }", "public function isExpired(): bool;", "public function validateExpirationTime()\n\t\t{\n\t\t\t// Variabel som ska innehålla tiden från filen.\n\t\t\t$correctTime = \"\";\n\t\t\t\n\t\t\t// Öppnar filen, läser igenom den och sparar värdet i $correctTime, för att sedan stänga filen.\n\t\t\t$file = fopen('cookieExpirationTime.txt','r');\n\t\t\twhile ($line = fgets($file))\n\t\t\t{\n\t\t\t $correctTime = $line;\n\t\t\t}\n\t\t\tfclose($file);\n\t\t\t\n\t\t\t// Om tiden från filen är större än just precis nu...\n\t\t\tif(intval($correctTime) > time())\n\t\t\t{\n\t\t\t\t// Returnera true, kakan är fortfarande giltig.\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Annars kalla på felmeddelandet, kakans levnadstid är över.\n\t\t\t\t$this->cookieException();\n\t\t\t}\n\t\t}", "public function onPrePersist()\n {\n $this->fechaUltimaModificacion = new \\DateTime(\"now\");\n }", "private function check_media_meta_process_time(){\n\n\t $current_process_time = microtime(1) - $this->sl_time_ini_media_meta_process;\n\n\t if ($current_process_time >= $this->max_media_meta_execution_time){\n\n\t $this->end_media_meta_process = true;\n\n\t }\n\n\t}", "public function isExpire(){\n\t\t$duedate = new DateTime($this->duedate);\n\t\t$today = new DateTime(\"now\");\n\t\t\n\t\tif($duedate < $today) \n\t\t\treturn true;\n\t\treturn false;\n\t}", "abstract protected function isExpired();", "private function getRealFinishedTimestamp()\n {\n return RealCharger :: transactionInfo( $this -> charger_transaction_id ) -> transStop / 1000;\n }", "public function hasEndtime(){\n return $this->_has(8);\n }", "public function isExpired ()\n {\n return $this->getExpirationDate()->getTimestamp() < time();\n }", "function checkTime($date){\n\t\t$time=$date;\n\t\t$check=$time+(60*30);//60 seg y 30 min\n\t\tif(time()>$check){\n\t\t\treturn true; //true si ya se han cumplido los 30min\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public function isExpired() :bool\n {\n return ($this->expires < time());\n }", "public function isExpired()\n {\n return $this->expireAt < new DateTime();\n }", "public function isExpired();", "public function isExpired();", "public function isExpired();", "public function isExpired();", "public function isExpired();", "public function isExpired();", "public function isExpired();", "public function isTime();", "public function should_run()\n\t{\n\t\treturn $this->config['delete_pms_last_gc'] < time() - $this->config['delete_pms_gc'];\n\t}", "public function calculate_time(){\n\t\t\n\t\t$time_zone = new DateTimeZone('Asia/Colombo');\n\t\t\n\t\t$current_time = new DateTime(\"now\",$time_zone);\n\t\t$temp = $current_time->format(\"Y/m/28 06:00:00\");\n\n\t\t$end_time = new DateTime($temp,$time_zone);\n\t\n//\t\techo date_format($current_time,\"Y/m/d H:i:s\").\"<br>\";\n//\t\techo date_format($end_time,\"Y/m/d H:i:s\").\"<br>\";\n\n\t\t$file = 'timer.txt';\n\t\t\n\t\tif($end_time<$current_time){\n\n\t\t\tif($this->run_once_check($file)){\n\t\t\t\t//run the program\n\t\t\t}\n\t\t}\n\t\telseif(file_exists($file)){\n\t\t\t$this->delete_file($file);\n\t\t}\n\n\t}", "function verificarSolapamiento($horario, $duracion, $idTeatroNuevaFuncion){\r\n $funcionTeatro = new FuncionTeatro('', '', '', '', '');\r\n $coleccionFuncionesTeatro = $funcionTeatro->listar(\"\");\r\n $cine = new Cine('','','','','','','');\r\n $coleccionCines = $cine->listar(\"\");\r\n $musical = new Musical('','','','','','','');\r\n $coleccionMusicales = $musical->listar(\"\");\r\n\r\n $retorno = false;\r\n\r\n list($horaFuncion, $minutosFuncion) = explode(\":\", $horario); //Extraigo la hora y los minutos separados por el \":\"\r\n $hora = intval($horaFuncion); //Convierto la hora de string a entero\r\n $minutos = intval($minutosFuncion); //Convierto los minutos de string a entero\r\n\r\n $horarioInicioFuncion = (($hora * 60) + $minutos); //Convierto el horario de INICIO de la nueva funcion a minutos\r\n $horarioCierreFuncion = $horarioInicioFuncion + $duracion; //Horario de CIERRE de la nueva funcion\r\n\r\n $horarioFuncionNueva = array('inicio'=>$horarioInicioFuncion, 'cierre'=>$horarioCierreFuncion);\r\n\r\n $coleccionHorarios = [];\r\n\r\n //Sumo los horarios de cada tipo\r\n $coleccionHorarios = armarColeccionHorarios($coleccionFuncionesTeatro, $idTeatroNuevaFuncion, $coleccionHorarios);\r\n $coleccionHorarios = armarColeccionHorarios($coleccionCines, $idTeatroNuevaFuncion, $coleccionHorarios);\r\n $coleccionHorarios = armarColeccionHorarios($coleccionMusicales, $idTeatroNuevaFuncion, $coleccionHorarios);\r\n\r\n if (count($coleccionHorarios)>0){\r\n $horarioDisponible = verificarHorario($horarioFuncionNueva, $coleccionHorarios);\r\n if ($horarioDisponible){\r\n $retorno = true;\r\n }\r\n } else {\r\n $retorno = true;\r\n }\r\n\r\n return $retorno;\r\n}", "public function has_expired()\n\t{\n\t\treturn $this->until < time();\n\t}", "public function hasBepro2Time(){\n return $this->_has(4);\n }", "public function isExpiring() {\n return $this->expiration - time() < 22 * 24 * 3600;\n }", "function set_timecreated() {\n $this->timecreated = time();\n return true;\n }", "public function realTimestamps() {\n\t\treturn false;\n\t}", "public function haveTime(){\n\t\tif($this->mCallbackHaveTime){\n\t\t\treturn call_user_func_array($this->mCallbackHaveTime, [$this]);\n\t\t}\n\t\treturn microtime(true) - $this->fStartTime < $this->fStepTime;\n\t}", "function checkTime($stmt, $i){\n\t\tif(floatval(self::$data[$i]['Time']) < floatval($stmt['sequenceStart']) || floatval(self::$data[$i]['Time']) > floatval($stmt['sequenceStart']) + floatval($stmt['sequenceLength']) ){\n\t\t\t$arr = array('success' => 3, 'error_msg' => 'Wrong values');\n\t\t\techo json_encode($arr);\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "public function getModTime(): int;", "public function onPreUpdate()\n {\n $this->fechaUltimaModificacion = new \\DateTime(\"now\");\n }", "public function populateTimestamp()\n {\n $this->exists = true;\n $this->timestamp = 1;\n }", "function preUpdate(){\n $this->alteradoEm = new \\DateTime('now');\n $this->alteradoEm->setTimezone(new \\DateTimeZone('America/Sao_Paulo'));\n }", "public function hasClearTime(){\n return $this->_has(2);\n }", "static public function mdlActualizarTiempoProcesoAdquisicion($tabla){\r\n\r\n\t\t\t$stmt = Conexion::conectar()->prepare(\"UPDATE $tabla set tiempoProceso = TIMEDIFF(fechaTermino,fechaRecepcion)\");\r\n\r\n\t\t\tif ($stmt -> execute()) {\r\n\r\n\t\t\t\treturn \"ok\";\r\n\r\n\t\t\t}else {\r\n\r\n\t\t\t\treturn \"error\";\r\n\r\n\t\t\t}\r\n\t\t\t$stmt -> close();\r\n\r\n\t\t\t$stmt = null;\r\n\r\n\r\n\t}", "public function check()\n {\n return time()%2==1; // condition\n }", "public function isExpired(): bool\n {\n return $this->expires != 0 && $this->expires < time();\n }", "public function hasLocalEndTime(){\n return $this->_has(5);\n }", "protected static function checkIfSpecifiedTimePassed()\n {\n $passed = false;\n $specified_time = env('APIMO_TIME_SYNC');\n $now = time();\n $last_sync_time = self::queryLastSyncTimeOnDb();\n if (($now - $specified_time) > $last_sync_time) {\n $passed = true;\n }\n\n return $passed;\n }", "function getModificationTime() ;", "public function HasExpires()\r\n {\r\n return $this->Expires != SoftEtherConverter::LocalEpoch;\r\n }", "public function hasExpired() {\n return $this->getExpirationTime() <= time();\n }", "public function hasExpired() {\n return $this->getExpirationTime() <= time();\n }", "protected function diffTokenTimeExpire()\n {\n $tokenLife = $this->tokenTime + $this->tokenExpire;\n\n return ($tokenLife < time()) ? false : true;\n }", "protected function beforeSave() {\n if (parent::beforeSave()) {\n $this->create_time = time();\n return true;\n }\n }", "public function testElapsed() {\n // Stop the timer\n $this->timer->stop();\n\n // Get the elapsed time\n $elapsed_time = $this->timer->get_elapsed();\n\n // It should be less than a second\n $this->assertTrue( $elapsed_time > 0 && $elapsed_time < 1 );\n }", "public function hasStarttime(){\n return $this->_has(2);\n }", "public function hasLockTime()\n {\n return $this->lock_time !== null;\n }", "private function expiredSession() {\r\n\r\n if (time()>$this->forcedExpire) return true;\r\n else return false;\r\n }", "public function is_expired() {\n\t\treturn $this->get_expires() < time();\n\t}", "public function isExpired()\n\t{\n\t\tif (!$this->exists())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($this->isRedeemed())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\t$now = \\Date::of('now')->toSql();\n\n\t\tif ($this->get('expires')\n\t\t && $this->get('expires') != $this->_db->getNullDate()\n\t\t && $this->get('expires') <= $now)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function missaoUltimosTrintaDiasRealizadas()\r\n {\r\n try\r\n {\r\n $resposta = $this->conexao->Conectar()->prepare(\"SELECT * FROM tbmissao \"\r\n . \" WHERE data BETWEEN DATE_SUB(NOW(), INTERVAL 30 DAY) AND NOW() \"\r\n . \" AND status = '1'\");\r\n if($resposta->execute())\r\n {\r\n return $resposta->fetchAll(PDO::FETCH_ASSOC);\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }\r\n catch (PDOException $e)\r\n {\r\n return $e->getMenssage();\r\n }\r\n }", "function isExpired(string $name, int $time): bool;", "protected function isTimeLimit(): bool\n {\n return (microtime(true) - $this->startTime) > $this->options->timeLimit;\n }", "public function hasPartinTime(){\n return $this->_has(1);\n }", "public function wasLockTimeout() {\n\t\treturn false;\n\t}", "function getLifeTime();", "public function hasBepro1Time(){\n return $this->_has(3);\n }", "public function checkSyncDate(): bool\n {\n /** @var FileInfoImage $item */\n $item = $this->current();\n $date2 = $item->getSyncDateXmp();\n if ($date2 === null) {\n\n return true;\n } else {\n $date1 = DateTime::createFromFormat('U', $this->getMTime());\n\n return $date1 > $date2;\n }\n }", "protected function hasExpired()\r\n {\r\n return isset($this->_session[$this->_timeoutKey]) && $this->_session[$this->_timeoutKey] < time();\r\n }", "public function isTime() : bool {\n return $this->isMinute() && $this->isHour() && $this->isDayOfMonth() && $this->isMonth() && $this->isDayOfWeek();\n }", "public function hasCleartime(){\n return $this->_has(2);\n }", "public function isExpired()\n {\n return ! is_null($this->expiration) &&\n Carbon::now()\n ->gte($this->expiration);\n }", "public function onPrePersist()\n {\n $this->fechaCreacion = new \\DateTime(\"now\");\n }", "public function getIsExpired(): bool\n {\n $expirationDuration = $this->getExpireDuration();\n if ($expirationDuration === null) {\n return false;\n }\n\n return time() >= ($this->createTimestamp + $expirationDuration);\n }", "public function isFresh($timestamp = null);", "public function hasKernelTime(){\n return $this->_has(1);\n }", "public function isExpired()\n {\n if (!$this->expiration) {\n return false;\n }\n\n return $this->expiration < new DateTime();\n }" ]
[ "0.63694793", "0.63483495", "0.62706685", "0.616596", "0.59991634", "0.59857655", "0.59786695", "0.59433407", "0.5919058", "0.59103733", "0.59041274", "0.587384", "0.58679867", "0.58649194", "0.5863719", "0.5855342", "0.5834939", "0.5824358", "0.5796377", "0.57929236", "0.5766188", "0.5756125", "0.57500327", "0.574982", "0.5749662", "0.5737381", "0.5714055", "0.5711416", "0.56974655", "0.56863993", "0.56645936", "0.5660756", "0.5645888", "0.56304204", "0.5626042", "0.5623375", "0.5621925", "0.561784", "0.5612942", "0.5608724", "0.5592488", "0.55863774", "0.55799204", "0.5576802", "0.55708385", "0.55708385", "0.55708385", "0.55708385", "0.55708385", "0.55708385", "0.55708385", "0.55373544", "0.5533519", "0.5531774", "0.5518518", "0.5518294", "0.5515879", "0.5511027", "0.5506961", "0.5504023", "0.550282", "0.5501718", "0.55002946", "0.5493113", "0.548099", "0.5476584", "0.54750645", "0.5468618", "0.54542375", "0.5450581", "0.54496026", "0.54444087", "0.5440437", "0.5437339", "0.5436992", "0.5436992", "0.5424883", "0.54245555", "0.541682", "0.5396214", "0.53958815", "0.5392498", "0.5391634", "0.53862774", "0.53861994", "0.53844285", "0.53686434", "0.53678626", "0.53658783", "0.5363821", "0.5360367", "0.53599924", "0.5359629", "0.5359374", "0.53585804", "0.5352585", "0.53476095", "0.5341983", "0.5341972", "0.53415716", "0.53414184" ]
0.0
-1
Filtro utilizado para as empresa
function getFiltroEmpresa($get,$where = "1 = 1"){ if(isset($get['cdFilial']) ){ $CdFilial = $get['cdFilial']; if(!empty($CdFilial)){ return $where .= " AND CDFILIALENTREGA IN ($CdFilial) "; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filtrarListaAlumnos($tipo_filtro, $valor)\n {\n //`al`.`carrera_especialidad`\n $filtro = \"\";\n switch ($tipo_filtro){\n case \"1\":\n //Filtro por sexo\n $filtro = \" AND p.sexo = \".$valor;\n break;\n case \"2\":\n //Filtro por municipio\n $filtro = \" AND al.id_municipio = \".$valor;\n break;\n case \"3\":\n //Filtro por por estatus de la cuenta (activa/inactva)\n $filtro = \" AND p.estatus = \".$valor;\n break;\n case \"4\":\n //Filtro por por Id de iniversidad\n $filtro = \" AND al.id_universidad = \".$valor;\n break;\n case \"5\":\n //Filtro por tipo de procedenceia\n $filtro = \" AND al.tipo_procedencia = \".$valor;\n break;\n case \"6\":\n //Filtro por carrera\n $filtro = \" AND al.carrera_especialidad = \".$valor;\n break;\n default:\n $filtro = \"\";\n break;\n }\n $query = \"SELECT \n al.id_alumno, p.nombre, p.app, \n p.apm, p.telefono, p.sexo, \n p.estatus AS estatus_p, al.id_municipio, \n al.id_universidad, al.id_persona, \n al.matricula, al.nombre_uni, al.carrera_especialidad, \n al.email, al.fecha_registro, al.perfil_image, al.estatus \n AS estatus_al, tp.id_tipo_procedencia, tp.tipo_procedencia\n FROM alumno al,persona p , tipo_procedencia tp\n WHERE al.id_persona = p.id_persona \n AND al.id_tipo_procedencia_fk = tp.id_tipo_procedencia\n AND p.estatus = 1 \".$filtro.\" ORDER BY `p`.`nombre` ASC\";\n $this->connect();\n $result = $this->getData($query);\n $this->close();\n return $result;\n }", "protected function setFiltroBusqueda()\n {\n \tsfLoader::loadHelpers('Date');\n\n \t$parcial = '';\n \t$modulo = $this->getModuleName();\n\n\t\t$this->cajaBsq = $this->getRequestParameter('caja_busqueda');\n\t\t$this->desdeBsq = $this->getRequestParameter('desde_busqueda');\n\t\t$this->hastaBsq = $this->getRequestParameter('hasta_busqueda');\n\t\t$this->ambitoBsq= $this->getRequestParameter('ambito_busqueda');\n\t\t\n\t\tif (!empty($this->cajaBsq)) {\n\t\t\t$parcial .= \" AND (titulo LIKE '%$this->cajaBsq%')\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowcaja', $this->cajaBsq);\n\t\t}\n\t\tif (!empty($this->desdeBsq)) {\n\t\t\t$parcial .= \" AND fecha >= '\".format_date($this->desdeBsq,'d').\"'\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowdesde', $this->desdeBsq);\n\t\t}\n\t\tif (!empty($this->hastaBsq)) {\n\t\t\t$parcial .= \" AND fecha <= '\".format_date($this->hastaBsq,'d').\"'\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowhasta', $this->hastaBsq);\n\t\t}\n\t\tif (!empty($this->ambitoBsq)) {\n\t\t\t$parcial .= \" AND ambito = '$this->ambitoBsq'\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowambito', $this->ambitoBsq);\n\t\t}\n\t\t//\n\t\tif (!empty($parcial)) {\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowfilter', $parcial);\n\t\t} else {\n\t\t\tif ($this->hasRequestParameter('btn_buscar')) {\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowfilter');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowcaja');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowdesde');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowhasta');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowambito');\n\t\t\t} else {\n\t\t\t\t$parcial = $this->getUser()->getAttribute($modulo.'_nowfilter');\n\t\t\t\t$this->cajaBsq = $this->getUser()->getAttribute($modulo.'_nowcaja');\n\t\t\t\t$this->desdeBsq = $this->getUser()->getAttribute($modulo.'_nowdesde');\n\t\t\t\t$this->hastaBsq = $this->getUser()->getAttribute($modulo.'_nowhasta');\n\t\t\t\t$this->ambitoBsq= $this->getUser()->getAttribute($modulo.'_nowambito');\n\t\t\t}\n\t\t}\n\t\tif ($this->hasRequestParameter('btn_quitar')){\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowfilter');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowcaja');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowdesde');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowhasta');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowambito');\n\t\t\t$parcial = \"\";\n\t\t\t$this->cajaBsq = '';\n\t\t\t$this->desdeBsq = '';\n\t\t\t$this->hastaBsq = '';\n\t\t\t$this->ambitoBsq= '';\n\t\t}\n\t\t$this->roles = UsuarioRol::getRepository()->getRolesByUser($this->getUser()->getAttribute('userId'),1);\n\t\t$finalFilter = 'deleted = 0'.$parcial;\n\n\t\tif (!Common::array_in_array(array('1'=>'1', '2'=>'2'), $this->roles)) {\n\t\t\t$finalFilter .= ' AND destacada = 1';\n\t\t}\n\t\treturn $finalFilter;\n }", "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n $filters = [];\n\n TSession::setValue(__CLASS__.'_filter_data', NULL);\n TSession::setValue(__CLASS__.'_filters', NULL);\n\n if (isset($data->exemplar_id) AND ( (is_scalar($data->exemplar_id) AND $data->exemplar_id !== '') OR (is_array($data->exemplar_id) AND (!empty($data->exemplar_id)) )) )\n {\n\n $filters[] = new TFilter('exemplar_id', '=', $data->exemplar_id);// create the filter \n }\n\n if (isset($data->leitor_id) AND ( (is_scalar($data->leitor_id) AND $data->leitor_id !== '') OR (is_array($data->leitor_id) AND (!empty($data->leitor_id)) )) )\n {\n\n $filters[] = new TFilter('leitor_id', '=', $data->leitor_id);// create the filter \n }\n\n if (isset($data->dt_emprestimo) AND ( (is_scalar($data->dt_emprestimo) AND $data->dt_emprestimo !== '') OR (is_array($data->dt_emprestimo) AND (!empty($data->dt_emprestimo)) )) )\n {\n\n $filters[] = new TFilter('dt_emprestimo', '>=', $data->dt_emprestimo);// create the filter \n }\n\n if (isset($data->dt_emprestimo_final) AND ( (is_scalar($data->dt_emprestimo_final) AND $data->dt_emprestimo_final !== '') OR (is_array($data->dt_emprestimo_final) AND (!empty($data->dt_emprestimo_final)) )) )\n {\n\n $filters[] = new TFilter('dt_emprestimo', '<=', $data->dt_emprestimo_final);// create the filter \n }\n\n if (isset($data->dt_previsao) AND ( (is_scalar($data->dt_previsao) AND $data->dt_previsao !== '') OR (is_array($data->dt_previsao) AND (!empty($data->dt_previsao)) )) )\n {\n\n $filters[] = new TFilter('dt_previsao', '>=', $data->dt_previsao);// create the filter \n }\n\n if (isset($data->dt_prevista_final) AND ( (is_scalar($data->dt_prevista_final) AND $data->dt_prevista_final !== '') OR (is_array($data->dt_prevista_final) AND (!empty($data->dt_prevista_final)) )) )\n {\n\n $filters[] = new TFilter('dt_previsao', '<=', $data->dt_prevista_final);// create the filter \n }\n\n if (isset($data->dt_devolucao) AND ( (is_scalar($data->dt_devolucao) AND $data->dt_devolucao !== '') OR (is_array($data->dt_devolucao) AND (!empty($data->dt_devolucao)) )) )\n {\n\n $filters[] = new TFilter('dt_devolucao', '>=', $data->dt_devolucao);// create the filter \n }\n\n if (isset($data->dt_devolucao_final) AND ( (is_scalar($data->dt_devolucao_final) AND $data->dt_devolucao_final !== '') OR (is_array($data->dt_devolucao_final) AND (!empty($data->dt_devolucao_final)) )) )\n {\n\n $filters[] = new TFilter('dt_devolucao', '<=', $data->dt_devolucao_final);// create the filter \n }\n\n $param = array();\n $param['offset'] = 0;\n $param['first_page'] = 1;\n\n // fill the form with data again\n $this->form->setData($data);\n\n // keep the search data in the session\n TSession::setValue(__CLASS__.'_filter_data', $data);\n TSession::setValue(__CLASS__.'_filters', $filters);\n\n $this->onReload($param);\n }", "protected function setFiltroBusqueda()\n {\n \tsfLoader::loadHelpers('Date');\n \t$parcial = '';\n \t$modulo = $this->getModuleName();\n\n\t\t$this->cajaBsq = $this->getRequestParameter('caja_busqueda');\n\t\t$this->categoriaBsq = $this->getRequestParameter('archivo_d_o[categoria_organismo_id]');\n\t\t$this->subcategoriaBsq = $this->getRequestParameter('archivo_d_o[subcategoria_organismo_id]');\n\t\t$this->organismoBsq = $this->getRequestParameter('archivo_d_o[organismo_id]');\n\t\t$this->documentacionBsq = $this->getRequestParameter('archivo_d_o[documentacion_organismo_id]');\n\t\t$this->desdeBsq = $this->getRequestParameter('desde_busqueda');\n\t\t$this->hastaBsq = $this->getRequestParameter('hasta_busqueda');\n\t\t\n\n\t\tif (!empty($this->cajaBsq)) {\n\t\t\t$parcial .= \" AND (ao.nombre LIKE '%$this->cajaBsq%')\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowcaja', $this->cajaBsq);\n\t\t}\n\t\tif (!empty($this->categoriaBsq)) {\n\t\t\t$parcial .= \" AND ao.categoria_organismo_id =\".$this->categoriaBsq ;\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowcategoria', $this->categoriaBsq);\n\t\t}\n\t\tif (!empty($this->subcategoriaBsq)) {\n\t\t\t$parcial .= \" AND ao.subcategoria_organismo_id =\".$this->subcategoriaBsq ;\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowsubcategoria', $this->subcategoriaBsq);\n\t\t}\n\t\tif (!empty($this->organismoBsq)) {\n\t\t\t$parcial .= \" AND ao.organismo_id =\".$this->organismoBsq ;\n\t\t\t$this->getUser()->setAttribute($modulo.'_noworganismos', $this->organismoBsq);\n\t\t}\n\t\tif (!empty($this->documentacionBsq)) {\n\t\t\t$parcial .= \" AND ao.documentacion_organismo_id =\".$this->documentacionBsq ;\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowdocumentacion', $this->documentacionBsq);\n\t\t}\n\t\tif (!empty($this->desdeBsq)) {\n\t\t\t$parcial .= \" AND ao.fecha >= '\".format_date($this->desdeBsq,'d').\"'\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowdesde', $this->desdeBsq);\n\t\t}\n\t\tif (!empty($this->hastaBsq)) {\n\t\t\t$parcial .= \" AND ao.fecha <= '\".format_date($this->hastaBsq,'d').\"'\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowhasta', $this->hastaBsq);\n\t\t}\n\n\n\t\tif (!empty($parcial)) {\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowfilter', $parcial);\n\t\t} else {\n\t\t\tif ($this->hasRequestParameter('btn_buscar')) {\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowfilter');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowcaja');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowdesde');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowhasta');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowcategoria');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowsubcategoria');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_noworganismos');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowdocumentacion');\n\t\t\t} else {\n\t\t\t\t$parcial = $this->getUser()->getAttribute($modulo.'_nowfilter');\n\t\t\t\t$this->cajaBsq = $this->getUser()->getAttribute($modulo.'_nowcaja');\n\t\t\t\t$this->desdeBsq = $this->getUser()->getAttribute($modulo.'_nowdesde');\n\t\t\t\t$this->hastaBsq = $this->getUser()->getAttribute($modulo.'_nowhasta');\n\t\t\t\t$this->hastaBsq = $this->getUser()->getAttribute($modulo.'_nowcategoria');\n\t\t\t\t$this->hastaBsq = $this->getUser()->getAttribute($modulo.'_nowsubcategoria');\n\t\t\t\t$this->hastaBsq = $this->getUser()->getAttribute($modulo.'_noworganismos');\n\t\t\t\t$this->hastaBsq = $this->getUser()->getAttribute($modulo.'_nowdocumentacion');\n\t\t\t}\n\t\t} \n\n\t\t\n\t\tif ($this->hasRequestParameter('btn_quitar')){\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowfilter');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowcaja');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowdesde');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowhasta');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowcategoria');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowsubcategoria');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_noworganismos');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowdocumentacion');\n\t\t\t$parcial=\"\";\n\t\t\t$this->cajaBsq = \"\";\n\t\t\t$this->categoriaBsq = '';\n\t\t\t$this->subcategoriaBsq = '';\n\t\t\t$this->organismoBsq = '';\n\t\t\t$this->documentacionBsq = '';\n\t\t\t$this->desdeBsq = '';\n\t\t\t$this->hastaBsq = '';\n\t\t}\n\t\t$organismos = Organismo::IdDeOrganismo($this->getUser()->getAttribute('userId'),1);\n $this->roles = UsuarioRol::getRepository()->getRolesByUser($this->getUser()->getAttribute('userId'),1);\n\t\tif(Common::array_in_array(array('1'=>'1', '2'=>'2', '6'=>'6'), $this->roles))\n\t\t{\n\t\t\treturn \"ao.deleted=0\".$parcial.\" AND (do.owner_id = \".$this->getUser()->getAttribute('userId').\" OR do.estado != 'guardado')\";\n\t\t}\n\t\telse\n\t\t{\n $responsables = ArchivoDO::getUSerREsponsables();\n return \"ao.deleted=0\".$parcial.\" AND ao.organismo_id IN \".$organismos.\" AND (do.owner_id = \".$this->getUser()->getAttribute('userId').\" OR do.estado != 'guardado') AND (ao.owner_id \".$responsables.\" OR do.confidencial != 1 OR ao.owner_id = \".$this->getUser()->getAttribute('userId').\")\";\n }\n\t\t \n\n }", "public function busquda_Filtro($_Palabra,$_Orden,$_Estado,$_Calificaciones,$_Certificaciones,$_Asociaciones,$IDEMpresa){\n\t\t//primero verifico en que ordern las voy a solicitar\n\t\tif($_Orden===''){\n\t\t\t$_Orden=\"\";\n\t\t}else if($_Orden==='az'){\n\t\t\t$_Orden=\" order by Razon_Social asc\";\n\t\t}else if($_Orden==='za'){\n\t\t\t$_Orden=\" order by Razon_Social desc\";\n\t\t}\n\t\t$_Resultadosr=$this->db->query(\"SELECT IDEmpresa FROM empresa WHERE Razon_Social LIKE '%$_Palabra%'\");\n\t\t$_Resultadosr=$_Resultadosr->result_array();\n\t\t\n\t\t//busco en su nombre comercial\n\t\t$_Resultadosnc=$this->db->query(\"SELECT IDEmpresa FROM empresa WHERE Nombre_Comer LIKE '%$_Palabra%'\");\n\t\t$_Resultadosnc=$_Resultadosnc->result_array();\n\n\t\t//busco por su rfc\n\t\t$_Resultadosrfc=$this->db->query(\"SELECT IDEmpresa FROM empresa WHERE RFC LIKE '%$_Palabra%' \");\n\t\t$_Resultadosrfc=$_Resultadosrfc->result_array();\n\n\t\t//busco por su descripcion\n\t\t$_Resultadosprefil=$this->db->query(\"SELECT IDEmpresa FROM empresa WHERE Perfil LIKE '%$_Palabra%' \");\n\t\t$_Resultadosprefil=$_Resultadosprefil->result_array();\n\t\t\n\t\t//buscos por sus productos y servicios\n\t\t$_Resultadospprod=$this->db->query(\"SELECT IDEmpresa FROM productos WHERE Producto LIKE '%$_Palabra%'\");\n\t\t$_Resultadospprod=$_Resultadospprod->result_array();\n\t\t\n\n\t\t//buscos por sus productos y servicios de su descripcion\n\t\t$_Resultadospprodd=$this->db->query(\"SELECT IDEmpresa FROM productos WHERE Descripcion LIKE '%$_Palabra%'\");\n\t\t$_Resultadospprodd=$_Resultadospprodd->result_array();\n\t\t\n\n\t\n\t\n\n\t\t//buscos por sus marca\n\t\t$_Resultadosmarcas=$this->db->query(\"SELECT IDEmpresa FROM marcas WHERE Marca LIKE '%$_Palabra%'\");\n\t\t$_Resultadosmarcas=$_Resultadosmarcas->result_array();\n\n\t\t//buscos por sus normas de calidad\n\t\t$_Resultadosnormas=$this->db->query(\"SELECT IDEmpresa FROM normascalidad WHERE Norma LIKE '%$_Palabra%'\");\n\t\t$_Resultadosnormas=$_Resultadosnormas->result_array();\n\n\t\t// ahohora tengo que unir todos los resultados en un solo array para obtener sus datos\n\t\t$todos=array_merge($_Resultadosr, $_Resultadosnc,$_Resultadosrfc,$_Resultadosprefil,$_Resultadospprod,$_Resultadospprodd,$_Resultadosmarcas,$_Resultadosnormas);\n\t\t\n\t\t$_Resultados=[];\n\t\t//ahora elimino los repetidos\n\t\tforeach($todos as $empresa){\n\t\t\t$bandera=false;\n\t\t\t$resulta=in_array_r($empresa[\"IDEmpresa\"],$_Resultados);\n\t\t\tif($resulta===false){\n\t\t\t\tarray_push($_Resultados,array(\"IDEmpresa\"=>$empresa[\"IDEmpresa\"]));\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\t// ahora obtengo el filtro de estados\n\t\tif($_Estado!==''){\n\t\t\tforeach($_Resultados as $keys=>$_empresa){\n\t\t\t\t$_datos_empresa=$this->Datos_Empresa($_empresa[\"IDEmpresa\"]);\n\t\t\t\tif($_datos_empresa[\"Estado\"]!==$_Estado){\n\t\t\t\t\tunset($_Resultados[$keys]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$_Resultados = array_values($_Resultados);\n\n\t\t\n\t\t// ahora obtengo el filtro de Certificaciones\n\t\tif($_Certificaciones===TRUE){\n\t\t\tforeach($_Resultados as $keys=>$_empresa){\n\t\t\t\t$_datos_empresa=$this->Datos_certificaciones($_empresa[\"IDEmpresa\"]);\n\t\t\t\tif(count($_datos_empresa)===0){\n\t\t\t\t\tunset($_Resultados[$keys]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$_Resultados = array_values($_Resultados);\n\n\t\t\n\t\t// ahora obtengo el filtro de Asociaciones\n\t\tif($_Asociaciones===TRUE){\n\t\t\tforeach($_Resultados as $keys=>$_empresa){\n\t\t\t\t$_datos_empresa=$this->Datos_Asociaciones($_empresa[\"IDEmpresa\"]);\n\t\t\t\tif(count($_datos_empresa)===0){\n\t\t\t\t\tunset($_Resultados[$keys]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$_Resultados = array_values($_Resultados);\n\t\n\t\t$_Datos=[];\n\t\t\n\t\tif($_Calificaciones!==\"\"){\n\t\t\t$_DatosCalificaciones=explode('-',$_Calificaciones);\n\t\t\t\n\t\t\tforeach($_Resultados as $_Empresa){\n\t\t\t\t$_DatosEmpresa=$this->Datos_Empresa($_Empresa[\"IDEmpresa\"]);\n\t\t\t\t$_DatosNormas=$this->Model_Norma->getall($_Empresa[\"IDEmpresa\"]);\n\t\t\t\t$_seguida = $this->Model_Follow->getfollowtrue($IDEMpresa,$_Empresa[\"IDEmpresa\"]);\n\t\t\t\t$ImagenCliente= $this->Model_Imagen->ImagenGen($_Empresa[\"IDEmpresa\"],'cliente');\n\t\t\t\t$ImagenProveedor= $this->Model_Imagen->ImagenGen($_Empresa[\"IDEmpresa\"],'proveedor');\n\t\t\t\t$_total=$this->db->query(\"SELECT COUNT('*') AS total FROM tbcalificaciones where IDEmpresaReceptor='\".$_Empresa[\"IDEmpresa\"].\"'\");\n\t\t\t\t$_total=$_total->row_array();\n\t\t\t\tif((int)$_total[\"total\"]>=(int)$_DatosCalificaciones[0] && (int)$_total[\"total\"]<=(int)$_DatosCalificaciones[1] ){\n\t\t\t\t\tarray_push(\n\t\t\t\t\t\t$_Datos,\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\"IDEmpresa\"=>$_DatosEmpresa[\"IDEmpresa\"],\n\t\t\t\t\t\t\t\"Razon_Social\"=>$_DatosEmpresa[\"Razon_Social\"],\n\t\t\t\t\t\t\t\"RFC\"=>$_DatosEmpresa[\"RFC\"],\n\t\t\t\t\t\t\t\"Nombre_Comer\"=>$_DatosEmpresa[\"Nombre_Comer\"],\n\t\t\t\t\t\t\t\"Perfil\"=>$_DatosEmpresa[\"Perfil\"],\n\t\t\t\t\t\t\t\"Logo\"=>$_DatosEmpresa[\"Logo\"],\n\t\t\t\t\t\t\t\"Banner\"=>$_DatosEmpresa[\"Banner\"],\n\t\t\t\t\t\t\t\"Normas\"=>$_DatosNormas,\n\t\t\t\t\t\t\t\"Follow\"=>$_seguida,\n\t\t\t\t\t\t\t\"ImagenCliente\"=>$ImagenCliente,\n\t\t\t\t\t\t\t\"ImagenProveedor\"=>$ImagenProveedor\n\t\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t}else{\n\t\t\tforeach($_Resultados as $_Empresa){\n\t\t\t\t\n\t\t\t\t$_DatosEmpresa=$this->Datos_Empresa($_Empresa[\"IDEmpresa\"]);\n\t\t\t\t$_DatosNormas=$this->Model_Norma->getall($_Empresa[\"IDEmpresa\"]);\n\t\t\t\t$_seguida = $this->Model_Follow->getfollowtrue($IDEMpresa,$_Empresa[\"IDEmpresa\"]);\n\t\t\t\t$ImagenCliente= $this->Model_Imagen->ImagenGen($_Empresa[\"IDEmpresa\"],'cliente');\n\t\t\t\t$ImagenProveedor= $this->Model_Imagen->ImagenGen($_Empresa[\"IDEmpresa\"],'proveedor');\n\t\t\t\t$_total=$this->db->query(\"SELECT COUNT('*') AS total FROM tbcalificaciones where IDEmpresaReceptor='\".$_Empresa[\"IDEmpresa\"].\"'\");\n\t\t\t\tarray_push($_Datos,\n\t\t\t\tarray(\n\t\t\t\t\t\"IDEmpresa\"=>$_DatosEmpresa[\"IDEmpresa\"],\n\t\t\t\t\t\"Razon_Social\"=>$_DatosEmpresa[\"Razon_Social\"],\n\t\t\t\t\t\"RFC\"=>$_DatosEmpresa[\"RFC\"],\n\t\t\t\t\t\"Nombre_Comer\"=>$_DatosEmpresa[\"Nombre_Comer\"],\n\t\t\t\t\t\"Perfil\"=>$_DatosEmpresa[\"Perfil\"],\n\t\t\t\t\t\"Logo\"=>$_DatosEmpresa[\"Logo\"],\n\t\t\t\t\t\"Banner\"=>$_DatosEmpresa[\"Banner\"],\n\t\t\t\t\t\"Normas\"=>$_DatosNormas,\n\t\t\t\t\t\"Follow\"=>$_seguida,\n\t\t\t\t\t\"ImagenCliente\"=>$ImagenCliente,\n\t\t\t\t\t\"ImagenProveedor\"=>$ImagenProveedor\n\t\t\t\t));\n\t\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn $_Datos;\t\t\n\t}", "function filterBy_S_A_F_E($SEDE, $AREA, $FACULTAD, $ESCUELA,$TABLE_I)\n{\n global $mysqli;\n $TINS = $TABLE_I;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,fac_iia,esc_iia,car_iia,fac_iiia,esc_iiia,car_iiia\n FROM \" .$TINS. \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? \");\n $parametros = array(\"iiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "function iniciarFiltro(&$filtro) {\n\n if (isset($_GET['order']))\n $filtro->order($_GET['order']);\n $filtro->nombres[] = 'Nombre';\n $filtro->valores[] = array('input', 'nombre', $filtro->filtro('nombre'));\n $filtro->nombres[] = 'Descripci&oacute;n';\n $filtro->valores[] = array('input', 'descripcion', $filtro->filtro('descripcion'));\n }", "public function filtro($bus,$tip) {\n $this->buscar=$bus;\n $this->tipo=$tip;\n \n switch ($this->tipo){\n case 'apellido': $this->consulta=$this->con->query(\"SELECT * FROM usuarios WHERE apellido LIKE '%$this->buscar%' ORDER BY apellido ASC, nombre ASC\");\n break;\n case 'dni': $this->consulta=$this->con->query(\"SELECT * FROM usuarios WHERE dni = '$this->buscar'\");\n break;\n case 'telefono': $this->consulta=$this->con->query(\"SELECT * FROM usuarios WHERE telefono = '$this->buscar' ORDER BY apellido ASC, nombre ASC\");\n }\n $this->i=1;\n while($this->datos= $this->consulta->fetch_array()) {\n ?>\n <tr>\n <td>\n <b><?php echo $this->i;?></b>\n <img src=\"fotos/<?php echo $this->datos['idUsuario'];?>\" width=\"50px\"> \n </td>\n <td><?php echo $this->datos['apellido'].\", \".$this->datos['nombre'];?></td>\n <td><?php echo $this->datos['usuario'];?></td>\n <td><?php echo $this->datos['dni'];?></td>\n <td><?php echo $this->datos['edad'];?></td>\n <td><?php echo $this->datos['domicilio'];?></td>\n <td><?php echo $this->datos['telefono'];?></td>\n <td><?php echo $this->datos['email'];?></td>\n <td><?php echo $this->datos['sexo'];?></td>\n <td><?php echo $this->datos['privilegio'];?></td>\n <td>\n <div class=\"row\">\n <a class=\"btn btn-success btn-sm\" href=\"formmodificar.php?idUsuario=<?php echo $this->datos['idUsuario'];?>\"><i class=\"material-icons\">create</i></a>\n <a class=\"btn btn-danger btn-sm\" onclick=\"return confirm('¿Desea eliminar este registro?')\" href=\"formeliminar.php?idUsuario=<?php echo $this->datos['idUsuario'];?>\"><i class=\"material-icons\">delete</i></a>\n </div>\n </td>\n </tr> \n <?php \n $this->i++;\n }\n $this->con->close();\n }", "function filterBy_S_A_F_E_C($SEDE, $AREA, $FACULTAD, $ESCUELA, $CARRERA,$TABLE_I)\n{\n global $mysqli;\n $TINS = $TABLE_I;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,fac_iia,esc_iia,car_iia,fac_iiia,esc_iiia,car_iiia\n FROM \" .$TINS. \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? AND car_ia = ? \");\n $parametros = array(\"iiiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA, &$CARRERA);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "function listarEmpresa(){\n\t\t$this->procedimiento='dir.f_empresa_sel';\n\t\t$this->transaccion='DIR_EMP_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_empresa','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('tipo_sociedad','varchar');\n\t\t$this->captura('actividad','text');\n\t\t$this->captura('actividad_esp','varchar');\n\t\t$this->captura('nit','varchar');\n\t\t$this->captura('actividad_gral','varchar');\n\t\t$this->captura('domicilio','text');\n\t\t$this->captura('matricula','int8');\n\t\t$this->captura('renovado','int4');\n\t\t$this->captura('actividad_prim','varchar');\n\t\t$this->captura('nombre','varchar');\n\t\t$this->captura('departamento','varchar');\n\t\t$this->captura('telefono','varchar');\n\t\t$this->captura('municipio','varchar');\n\t\t$this->captura('estado_matricula','varchar');\n\t\t$this->captura('mail','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\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "private function busquedaUsuarios($filter = array()) {\n $usuarios = new \\Modelos\\userPosix($this->dn, $this->pswd, 'central' );\n $atributos = array('uid','cn','title','o', 'ou','mail', 'telephoneNumber');\n $filtro = empty($filter) ? array(\"cn\"=>\"NOT (root OR nobody)\") : array_merge($filter, array(\"cn\"=>\"NOT (root OR nobody)\"));\n $datos = $usuarios->search($filtro, $atributos, \"dc=sv\");\n $this->parametros['errorLdap'] = $usuarios->getErrorLdap();\n return $datos; \n }", "private static function _getFilter() {}", "public function filtrarclientes(){\n\n $this->request->allowMethod(['get']);\n \n $keyword = $this->request->query('keyword');\n $activo = $this->request->query('activo');\n\n $condiciones = array();\n\n $condiciones['name like '] = '%'.$keyword.'%';\n\n if($activo){\n $condiciones['borrado = '] = false;\n }\n \n $query = $this->Clientes->find('all', [\n 'conditions' => $condiciones,\n 'order' => [\n 'Clientes.id' => 'ASC'\n ],\n 'limit' => 100\n ]);\n\n $clientes = $this->paginate($query);\n $this->set(compact('clientes'));\n $this->set('_serialize', 'clientes');\n }", "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n $filters = [];\n\n if (count($data->relatorio_id) == 0)\n { \n TTransaction::open('bedevops');\n $conn = TTransaction::get();\n $result = $conn->query('SELECT * FROM relatorio WHERE user_id = '.TSession::getValue(\"userid\").' ORDER BY id DESC LIMIT 4');\n $objects = $result->fetchAll(PDO::FETCH_CLASS, \"stdClass\");\n foreach ($objects as $value) {\n array_push($data->relatorio_id,$value->id);\n }\n TTransaction::close();\n } \n\n TSession::setValue(__CLASS__.'_filter_data', NULL);\n TSession::setValue(__CLASS__.'_filters', NULL);\n\n if (isset($data->categoria_id) AND ( (is_scalar($data->categoria_id) AND $data->categoria_id !== '') OR (is_array($data->categoria_id) AND (!empty($data->categoria_id)) )) )\n {\n\n $filters[] = new TFilter('categoria_id', '=', $data->categoria_id);// create the filter \n }\n\n if (count($data->relatorio_id) <= 4)\n {\n if (isset($data->relatorio_id) AND ( (is_scalar($data->relatorio_id) AND $data->relatorio_id !== '') OR (is_array($data->relatorio_id) AND (!empty($data->relatorio_id)) )) )\n {\n\n $filters[] = new TFilter('relatorio_id', 'in', $data->relatorio_id);// create the filter \n }\n } else {\n throw new Exception('Selecione no máximo 4 relatórios!');\n }\n\n // fill the form with data again\n $this->form->setData($data);\n\n // keep the search data in the session\n TSession::setValue(__CLASS__.'_filter_data', $data);\n TSession::setValue(__CLASS__.'_filters', $filters);\n }", "function filter_TR_By_S_A_F_E($SEDE, $AREA, $FACULTAD, $ESCUELA,$TABLE_R)\n{\n global $mysqli;\n $TRES = $TABLE_R;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,ps,pca,pcg,gatb,verbal,numer,indice FROM \" .$TRES. \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? \");\n $parametros = array(\"iiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "public function filtrar(){\n\n \t\t$sql=\"select * from __________ where ;\";\n \t return $this->ejecutar($sql); \n\n }", "function filter_TR_By_S_A_F_E_C($SEDE, $AREA, $FACULTAD, $ESCUELA, $CARRERA,$TABLE_R)\n{\n global $mysqli;\n $TRES = $TABLE_R;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio))AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,ps,pca,pcg,gatb,verbal,numer,indice FROM \" .$TRES. \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? AND car_ia = ? \");\n $parametros = array(\"iiiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA, &$CARRERA);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "function filterByS_A_F($SEDE, $AREA, $FACULTAD,$TABLE_I)\n{\n global $mysqli;\n $TINS = $TABLE_I;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,fac_iia,esc_iia,car_iia,fac_iiia,esc_iiia,car_iiia\n FROM \" .$TINS. \" where sede = ? AND area_i = ? AND fac_ia = ?\");\n $parametros = array(\"iii\", &$SEDE, &$AREA, &$FACULTAD);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "public function consultaEmpresas() {\n\t\t\treturn $this->entidad->getRepository('\\Entidades\\Expertos\\UsuariosEmpresa')->findBy(array('estado' => 1));\n\t\t}", "private function filterByPermission(){\n\n }", "function get_all_empresas($filtrar_aseguradoras = TRUE) {\n $this->db->select();\n $this->db->from(\"empresas\");\n if( $filtrar_aseguradoras ) {\n \t$this->db->where('tipo_empresa_id !=', 4); //SE FILTRAN LAS ASEGURADORAS\n \t}\n $query = $this->db->get();\n \n if ($query->num_rows() > 0) return $query;\n return NULL;\n }", "public function filtering();", "public function filter_get()\n {\n //obteniendo parametros filtro\n $ciudades = $this->input->get(\"cities\", true);\n $categorias = $this->input->get(\"categories\", true);\n $distance = $this->input->get(\"distance\", true);\n $current_position = $this->input->get(\"current\", true);\n\n $services = [];\n $filtered = false;\n if ($categorias) {\n $filtered = true;\n $services = $this->filterBySubcategories($categorias);\n $services = $this->filterByCitiesFiltered($ciudades, $filtered, $services);\n } else {\n if ($ciudades) {\n $services = $this->filterByCitiesFiltered($ciudades, false, null);\n $filtered = true;\n }\n }\n if ($current_position && $distance) {\n $services = $this->filterByDistance($distance, $current_position, $filtered, $services);\n }\n $result[\"data\"] = $services;\n $this->set_response($result, REST_Controller::HTTP_OK);\n }", "public function filtro($dados) {\n\n $data_de = $dados[\"data_de\"];\n $data_ate = $dados[\"data_ate\"];\n $id_usuario = $dados['id_usuario'];\n \n $param = \"\";\n \n if ($data_de != NULL && $data_ate != NULL):\n $objDateFormat = $this->DateFormat;\n $data_de = $objDateFormat->date_mysql($data_de);\n $data_ate = $objDateFormat->date_mysql($data_ate);\n \n $param .= \"and DATE(c.data) BETWEEN '$data_de' AND '$data_ate'\"; \n \n endif;\n \n\n if ($dados[\"id_usuario\"] != NULL):\n $param .= \" and c.id_usuario = $id_usuario\";\n\n endif;\n \n\n \n $query = $this->db->query(\"select c.data,p.codigo,u.login,f.nome,c.valor_venda,c.percentual,(c.valor_venda/100) * c.percentual as 'receber' from fin_comissao c\n inner join com_pedidos p\n on(c.id_pedido = p.id_pedido)\n inner join acesso_usuarios u\n on(c.id_usuario = u.id_usuario)\n inner join rh_colaboradores f\n on(u.id_colaborador = f.id_colaborador) \".$param.\" and p.faturado = 1 \");\n \n $result = $query->result_array();\n\n return $result;\n \n }", "private function loadFilters() {\n\n // buscando usuários\n $companyId = $this->Session->read('CompanyLoggedIn.Company.id');\n $params = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n 'CompaniesUser.user_id'\n ),\n 'conditions' => array(\n 'CompaniesUser.status' => 'ACTIVE'\n )\n )\n );\n $userIds = $this->Utility->urlRequestToGetData('companies', 'list', $params);\n if (!empty($userIds) && empty($userIds ['status'])) {\n $_SESSION ['addOffer'] ['userIds'] = $userIds;\n\n // conta público alvo\n $this->offerFilters ['target'] = count($userIds);\n\n // busca os filtros\n foreach ($this->offerFilters as $key => $value) {\n if ($key == 'gender') {\n $Paramsgenero = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n \"COUNT(User.id) AS count\",\n \"User.gender AS filter\"\n ),\n 'group' => array(\n \"User.gender\"\n ),\n 'order' => array(\n 'COUNT(User.id)' => 'DESC'\n )\n ),\n 'User' => array()\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $Paramsgenero);\n } else if ($key == 'age_group') {\n // busca faixa etária\n $query = \"SELECT\n\t\t\t\t\t SUM(IF(age < 20,1,0)) AS '{$this->ageGroupRangeKeys['0_20']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 20 AND 29,1,0)) AS '{$this->ageGroupRangeKeys['20_29']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 30 AND 39,1,0)) AS '{$this->ageGroupRangeKeys['30_39']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 40 AND 49,1,0)) AS '{$this->ageGroupRangeKeys['40_49']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 50 AND 59,1,0)) AS '{$this->ageGroupRangeKeys['50_59']}',\n\t\t\t\t\t SUM(IF(age >=60, 1, 0)) AS '{$this->ageGroupRangeKeys['60_120']}',\n\t\t\t\t\t SUM(IF(age IS NULL, 1, 0)) AS '{$this->ageGroupRangeKeys['empty']}'\n\t\t\t\t\t\tFROM (SELECT YEAR(CURDATE())-YEAR(birthday) AS age FROM facebook_profiles) AS derived\";\n\n $filterParams = array(\n 'FacebookProfile' => array(\n 'query' => $query\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'query', $filterParams);\n } else {\n $filterParams = array(\n 'FacebookProfile' => array(\n 'fields' => array(\n \"COUNT(FacebookProfile.{$key}) AS count\",\n \"FacebookProfile.{$key} AS filter\"\n ),\n 'conditions' => array(\n 'FacebookProfile.user_id' => $userIds\n ),\n 'group' => array(\n \"FacebookProfile.{$key}\"\n ),\n 'order' => array(\n \"FacebookProfile.{$key}\" => 'ASC'\n )\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $filterParams);\n }\n if (!empty($filter) && empty($filter ['status'])) {\n $this->offerFilters [$key] = $this->formatOfferFilters($filter);\n }\n }\n return $this->offerFilters;\n } else {\n $this->Session->setFlash('Houve um problema para carregar os filtros. Tente novamente.');\n }\n }", "function get_elecciones_criterio(){\r\n\r\n\t\tif (isset($_GET['term'])) {\r\n\t\t\t$filtro = $_GET['term'];\r\n\t\t}else{\r\n\t\t\t$filtro = $this->input->get(\"filtro\");\r\n\t\t}\r\n\r\n\t\t$datos = $this->Elecciones_model->get_elecciones_by_criterio($filtro);\r\n\r\n\t\tif (isset($_GET['term'])) {\r\n\t\t\t\r\n\t\t\tforeach ($datos as $dato) {\r\n\t\t\t\t$new_row['label']=htmlentities(stripslashes($dato['desc_eleccion']));\r\n\t\t\t\t$new_row['value']=htmlentities(stripslashes($dato['ideleccion']));\r\n\t\t\t\t$row_set[] = $new_row; //build an array\r\n\t\t\t}\r\n\t\t\r\n\t\t\techo json_encode($row_set);\r\n\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\techo json_encode($datos);\r\n\t\t}\r\n\r\n\t}", "function getPago($filter) {\n \n $where = \" WHERE Id_pago LIKE :Id_pago OR Estatus LIKE :Estatus\";\n $array = array(\n 'Id_pago' => '%' . $filter . '%',\n 'Estatus' => '%' . $filter . '%',\n );\n $columns = \"`Id_pago`, `Nombre`, `Email`, `Fecha_anterior`, `Pago`, `Proxima_fecha`, `Estatus`, `Id_cliente`\";\n return $this->db->select1($columns, \"pagos\", $where, $array);\n }", "function getCliente($filter) {\n $where = \" WHERE Id_cliente LIKE :Id_cliente OR Nombre LIKE :Nombre OR Apellido_paterno LIKE :Apellido_paterno\";\n $array = array(\n 'Id_cliente' => '%' . $filter . '%',\n 'Nombre' => '%' . $filter . '%',\n 'Apellido_paterno' => '%' . $filter . '%',\n );\n\n $columns = \"Id_cliente, Nombre, Apellido_paterno, Apellido_materno, Email, Edad, Fecha_inicio, Folio\";\n //Retorname el valor de acuerdo a los parametros que estan arriba\n return $this->db->select1($columns, \"clientes\", $where, $array);\n }", "private function filtrarPersonas() {\n $aFil = array();\n $aPer = $this->aDatosPersonas;\n $fHom = $this->filtroHombre;\n $fMuj = $this->filtroMujer;\n $fOtr = $this->filtroOtro; \n $fCor = $this->filtroCorreo; \n $fEnv = $this->filtroEnvios;\n $fTel = $this->filtroTelefono;\n $fNot = $this->filtroNotas;\n $fPro = $this->filtroPropietario;\n \n // array('cod'=>array(0 apellidos, 1 nombre, 2 sexo, 3 codusu, 4 correo, 5 envios, 6 telefono, 7 notas)...)\n foreach ($aPer as $per => $aPersona) {\n $bOK = TRUE;\n if ($fHom == 'S' || $fMuj == 'S' || $fOtr == 'S') {\n $bOK = (($fHom == 'S' && $aPersona[2] == 'H') || ($fMuj == 'S' && $aPersona[2] == 'M') || ($fOtr == 'S' && $aPersona[2] == '')) ? TRUE : FALSE;\n }\n if ($fCor == 'S') {\n $bOK = ($fCor == 'S' && !$aPersona[4]) ? FALSE : $bOK;\n }\n if ($fEnv == 'S') {\n $bOK = ($fEnv == 'S' && !$aPersona[5]) ? FALSE : $bOK;\n }\n if ($fTel == 'S') {\n $bOK = ($fTel == 'S' && !$aPersona[6]) ? FALSE : $bOK;\n }\n if ($fNot == 'S') {\n $bOK = ($fNot == 'S' && !$aPersona[7]) ? FALSE : $bOK;\n }\n if ($fPro == 'S') {\n $bOK = (!$this->esPropietario($per)) ? FALSE : $bOK;\n }\n if ($bOK) {\n $aFil[$per] = $aPersona;\n }\n }\n $this->aFiltradas = $aFil;\n }", "public function buscar() \n {\n \n if($buscar = \\Request::get('q')){\n $personas= Persona:: where(function($query) use ($buscar){\n $query->where('nombre','LIKE', \"%$buscar%\")->orWhere('cedula','LIKE',\"%$buscar%\")\n ->orWhere('tipo','LIKE',\"%$buscar%\")->orWhere('apellido','LIKE',\"%$buscar%\");\n\n })->paginate(20);\n }\n\n return $personas; //retorna toda la consulta\n }", "function criterios($nombre, $seleccionado) {\r\n $etiquetas = array(\"Código del Usuario\", \"Alias\");\r\n $valores = array(\"usuario\", \"alias\");\r\n return($this->select($nombre, $etiquetas, $valores, $seleccionado, \"\"));\r\n }", "function rec_empresa_list(){\n\t\t}", "public function filtro($conexao){\n $query = \"select * from empresa_startup where (segmento_principal like ? or segmento_secundario like ?) and estado like ? and publico_alvo like ? and cep like ? and cargo_funcao like ?;\";\n $stmt = $conexao->prepare($query);\n $stmt->execute([\"%{$this->getSegmentoPricipal()}%\",\"%{$this->getSegmentoSecundario()}%\",\"%{$this->getEstado()}%\",\"%{$this->getPublicoAlvo()}%\",\"%{$this->getCep()}%\",\"%{$this->getCargoFuncao()}%\"]);\n $startup = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return json_encode($startup,JSON_PRETTY_PRINT);\n\n }", "function filter_TR_By_S_A_F($SEDE, $AREA, $FACULTAD,$TABLE_R)\n{\n global $mysqli;\n $TRES = $TABLE_R;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,ps,pca,pcg,gatb,verbal,numer,indice FROM \" .$TRES. \" where sede = ? AND area_i = ? AND fac_ia = ?\");\n $parametros = array(\"iii\", &$SEDE, &$AREA, &$FACULTAD);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "function get_listado_estactual($filtro=array())\n\t{ \n $concat='';\n if (isset($filtro['anio']['valor'])) {\n \t$udia=dt_mocovi_periodo_presupuestario::ultimo_dia_periodo_anio($filtro['anio']['valor']);\n $pdia=dt_mocovi_periodo_presupuestario::primer_dia_periodo_anio($filtro['anio']['valor']);\n\t\t} \n //que sea una designacion correspondiente al periodo seleccionado o anulada dentro del periodo \n $where=\" WHERE ((a.desde <= '\".$udia.\"' and (a.hasta >= '\".$pdia.\"' or a.hasta is null)) or (a.desde='\".$pdia.\"' and a.hasta is not null and a.hasta<a.desde))\";\n $where2=\" WHERE 1=1 \";//es para filtrar por estado. Lo hago al final de todo\n if (isset($filtro['uni_acad'])) {\n $concat=quote($filtro['uni_acad']['valor']);\n switch ($filtro['uni_acad']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.uni_acad = \".quote($filtro['uni_acad']['valor']);break;\n case 'es_distinto_de': $where.= \" AND a.uni_acad <> \".quote($filtro['uni_acad']['valor']);break;\n }\n }\n //si el usuario esta asociado a un perfil de datos le aplica igual a su UA\n $con=\"select sigla from unidad_acad \";\n $con = toba::perfil_de_datos()->filtrar($con);\n $resul=toba::db('designa')->consultar($con);\n if(count($resul)<=1){//es usuario de una unidad academica\n $where.=\" and a.uni_acad = \".quote($resul[0]['sigla']);\n $concat=quote($resul[0]['sigla']);//para hacer el update de baja\n }\n if (isset($filtro['iddepto'])) {\n switch ($filtro['iddepto']['condicion']) {\n case 'es_igual_a': $where.= \" AND iddepto =\" .$filtro['iddepto']['valor'];break;\n case 'es_distinto_de': $where.= \" AND iddepto <>\" .$filtro['iddepto']['valor'];break;\n }\n }\n if (isset($filtro['por_permuta'])) {\n switch ($filtro['por_permuta']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.por_permuta =\" .$filtro['por_permuta']['valor'];break;\n case 'es_distinto_de': $where.= \" AND a.por_permuta <>\" .$filtro['por_permuta']['valor'];break;\n }\n }\n if (isset($filtro['carac']['valor'])) {\n switch ($filtro['carac']['valor']) {\n case 'R':$c=\"'Regular'\";break;\n case 'O':$c=\"'Otro'\";break;\n case 'I':$c=\"'Interino'\";break;\n case 'S':$c=\"'Suplente'\";break;\n default:\n break;\n }\n switch ($filtro['carac']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.carac=\".$c;break;\n case 'es_distinto_de': $where.= \" AND a.carac<>\".$c;break;\n }\t\n }\n if (isset($filtro['estado'])) {\n switch ($filtro['estado']['condicion']) {\n case 'es_igual_a': $where2.= \" and est like '\".$filtro['estado']['valor'].\"%'\";break;\n case 'es_distinto_de': $where2.= \" and est not like '\".$filtro['estado']['valor'].\"%'\";break;\n }\n }\n if (isset($filtro['legajo'])) {\n switch ($filtro['legajo']['condicion']) {\n case 'es_igual_a': $where.= \" and legajo = \".$filtro['legajo']['valor'];break;\n case 'es_mayor_que': $where.= \" and legajo > \".$filtro['legajo']['valor'];break;\n case 'es_mayor_igual_que': $where.= \" and legajo >= \".$filtro['legajo']['valor'];break;\n case 'es_menor_que': $where.= \" and legajo < \".$filtro['legajo']['valor'];break;\n case 'es_menor_igual_que': $where.= \" and legajo <= \".$filtro['legajo']['valor'];break;\n case 'es_distinto_de': $where.= \" and legajo <> \".$filtro['legajo']['valor'];break;\n case 'entre': $where.= \" and legajo >= \".$filtro['legajo']['valor']['desde'].\" and legajo <=\".$filtro['legajo']['valor']['hasta'];break;\n }\n } \n if (isset($filtro['docente_nombre'])) {\n switch ($filtro['docente_nombre']['condicion']) {\n case 'contiene': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('%\".$filtro['docente_nombre']['valor'].\"%')\";break;\n case 'no_contiene': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) not like LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'comienza_con': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('\".$filtro['docente_nombre']['valor'].\"%')\";break;\n case 'termina_con': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('%\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'es_igual': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) == LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'es_distinto': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) <> LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n }\n } \n if (isset($filtro['programa'])) {\n $sql=\"select * from mocovi_programa where id_programa=\".$filtro['programa']['valor'];\n $resul=toba::db('designa')->consultar($sql);\n switch ($filtro['programa']['condicion']) {\n case 'es_igual_a': $where.= \" AND programa =\".quote($resul[0]['nombre']);break;\n case 'es_distinto_de': $where.= \" AND programa <>\".quote($resul[0]['nombre']);break;\n }\n } \n if (isset($filtro['tipo_desig'])) {\n switch ($filtro['tipo_desig']['condicion']) {\n case 'es_igual_a': $where.=\" AND a.tipo_desig=\".$filtro['tipo_desig']['valor'];break;\n case 'es_distinto_de': $where.=\" AND a.tipo_desig <>\".$filtro['tipo_desig']['valor'];break;\n }\n }\n if (isset($filtro['anulada'])) {\n switch ($filtro['anulada']['valor']) {\n case '0': $where.=\" AND not (a.hasta is not null and a.hasta<a.desde)\";break;\n case '1': $where.=\" AND a.hasta is not null and a.hasta<a.desde \";break;\n }\n } \n if (isset($filtro['cat_estat'])) {\n switch ($filtro['cat_estat']['condicion']) {\n case 'es_igual_a': $where2.= \" and cat_estat=\".quote($filtro['cat_estat']['valor']);break;\n case 'es_distinto_de': $where2.= \" and cat_estat <>\".quote($filtro['cat_estat']['valor']);break;\n }\n }\n if (isset($filtro['dedic'])) {\n switch ($filtro['dedic']['condicion']) {\n case 'es_igual_a': $where2.= \" and dedic=\".$filtro['dedic']['valor'];break;\n case 'es_distinto_de': $where2.= \" and dedic<>\".$filtro['dedic']['valor'];break;\n }\n } \n //me aseguro de colocar en estado B todas las designaciones que tienen baja\n if($concat!=''){ \n $sql2=\" update designacion a set estado ='B' \"\n . \" where estado<>'B' and a.uni_acad=\".$concat\n .\" and exists (select * from novedad b\n where a.id_designacion=b.id_designacion \n and (b.tipo_nov=1 or b.tipo_nov=4))\";\n }\n \n //designaciones sin licencia UNION designaciones c/licencia sin norma UNION designaciones c/licencia c norma UNION reservas\n $sql=$this->armar_consulta($pdia,$udia,$filtro['anio']['valor']);\n\t\t//si el estado de la designacion es B entonces le pone estado B, si es <>B se fija si tiene licencia sin goce o cese\n// $sql= \"select id_designacion,docente_nombre,legajo,nro_cargo,anio_acad,desde,hasta,cat_mapuche,cat_mapuche_nombre,cat_estat,dedic,carac,check_presup,id_departamento,id_area,id_orientacion,uni_acad,emite_norma,nro_norma,tipo_norma,nro_540,observaciones,estado,porc,dias_lic,programa,costo_vale as costo,est,expediente,nro from(\"\n// . \"select sub2.*,case when t_no.tipo_nov in (1,4) then 'B('||coalesce(t_no.tipo_norma,'')||':'||coalesce(t_no.norma_legal,'')||')' else case when t_no.tipo_nov in (2,5) then 'L('||t_no.tipo_norma||':'||t_no.norma_legal||')' else sub2.estado end end as est,t_i.expediente,case when d.tipo_desig=2 then costo_reserva(d.id_designacion,costo,\".$filtro['anio']['valor'].\") else costo end as costo_vale \"\n// . \" ,case when t_nor.id_norma is null then '' else case when t_nor.link is not null or t_nor.link <>'' then '<a href='||chr(39)||t_nor.link||chr(39)|| ' target='||chr(39)||'_blank'||chr(39)||'>'||t_nor.nro_norma||'</a>' else cast(t_nor.nro_norma as text) end end as nro \"\n// . \"from (\"\n// .\"select sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde, sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo,max(t_no.id_novedad) as id_novedad from (\"\n// .\"select distinct b.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, b.desde, b.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,emite_norma, b.nro_norma,b.tipo_norma,nro_540,b.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,case when (dias_des-dias_lic)>=0 then ((dias_des-dias_lic)*costo_diario*porc/100) else 0 end as costo\"\n// .\" from (\"\n// .\" select a.id_designacion,a.docente_nombre,a.legajo,a.nro_cargo,a.anio_acad, a.desde, a.hasta,a.cat_mapuche, a.cat_mapuche_nombre,a.cat_estat,a.dedic,a.carac,b.a.id_departamento, a.id_area,a.id_orientacion, a.uni_acad, a.emite_norma, a.nro_norma,a.tipo_norma,a.nro_540,a.observaciones,a.estado,programa,porc,a.costo_diario,check_presup,licencia,a.dias_des,a.dias_lic\".\n// \" from (\".$sql.\") a\"\n// .$where \n// .\") b \"\n// . \" )sub\"\n// . \" LEFT OUTER JOIN novedad t_no ON (sub.id_designacion=t_no.id_designacion and t_no.desde<='\".$udia.\"' and (t_no.hasta is null or t_no.hasta>='\".$pdia.\"' ))\"\n// . \" GROUP BY sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde,sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo\" \n// . \")sub2\"//obtengo el id_novedad maximo\n// . \" LEFT OUTER JOIN novedad t_no on (t_no.id_novedad=sub2.id_novedad)\"//con el id_novedad maximo obtengo la novedad que predomina\n// .\" LEFT JOIN impresion_540 t_i ON (nro_540=t_i.id)\"//para agregar el expediente \n// .\" LEFT OUTER JOIN designacion d ON (sub2.id_designacion=d.id_designacion)\"//como no tengo el id de la norma tengo que volver a hacer join\n// .\" LEFT OUTER JOIN norma t_nor ON (d.id_norma=t_nor.id_norma)\"\n// . \")sub3\"\n// .$where2\n// . \" order by docente_nombre,desde\"; \n $sql= \"select id_designacion,docente_nombre,legajo,nro_cargo,anio_acad,desde,hasta,cat_mapuche,cat_mapuche_nombre,cat_estat,dedic,carac,check_presup,id_departamento,id_area,id_orientacion,uni_acad,emite_norma,nro_norma,tipo_norma,nro_540,tkd,observaciones,estado,porc,dias_lic,programa,costo_vale as costo,est,expediente,nro from(\"\n . \"select sub2.*,sub2.nro_540||'/'||t_i.anio as tkd,case when t_no.tipo_nov in (1,4) then 'B('||coalesce(t_no.tipo_norma,'')||':'||coalesce(t_no.norma_legal,'')||')' else case when t_no.tipo_nov in (2,5) then 'L('||t_no.tipo_norma||':'||t_no.norma_legal||')' else sub2.estado end end as est,t_i.expediente,case when d.tipo_desig=2 then costo_reserva(d.id_designacion,costo,\".$filtro['anio']['valor'].\") else costo end as costo_vale \"\n . \" ,case when t_nor.id_norma is null then '' else case when t_nor.link is not null or t_nor.link <>'' then '<a href='||chr(39)||t_nor.link||chr(39)|| ' target='||chr(39)||'_blank'||chr(39)||'>'||t_nor.nro_norma||'</a>' else cast(t_nor.nro_norma as text) end end as nro \"\n . \"from (\"\n .\"select sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde, sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo,max(t_no.id_novedad) as id_novedad from (\"\n .\"select distinct b.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, b.desde, b.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,emite_norma, b.nro_norma,b.tipo_norma,nro_540,b.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,case when (dias_des-dias_lic)>=0 then ((dias_des-dias_lic)*costo_diario*porc/100) else 0 end as costo\"\n .\" from (\"\n .\" select a.id_designacion,a.por_permuta,a.docente_nombre,a.legajo,a.nro_cargo,a.anio_acad, a.desde, a.hasta,a.cat_mapuche, a.cat_mapuche_nombre,a.cat_estat,a.dedic,a.carac,t.iddepto,a.id_departamento, a.id_area,a.id_orientacion, a.uni_acad, a.emite_norma, a.nro_norma,a.tipo_norma,a.nro_540,a.observaciones,a.estado,programa,porc,a.costo_diario,a.check_presup,licencia,a.dias_des,a.dias_lic\".\n \" from (\".$sql.\") a\"\n . \" INNER JOIN designacion d ON (a.id_designacion=d.id_designacion)\"\n . \" LEFT OUTER JOIN departamento t ON (t.iddepto=d.id_departamento)\"\n .$where \n .\") b \"\n . \" )sub\"\n . \" LEFT OUTER JOIN novedad t_no ON (sub.id_designacion=t_no.id_designacion and t_no.desde<='\".$udia.\"' and (t_no.hasta is null or t_no.hasta>='\".$pdia.\"' ))\"\n . \" GROUP BY sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde,sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo\" \n . \")sub2\"//obtengo el id_novedad maximo\n . \" LEFT OUTER JOIN novedad t_no on (t_no.id_novedad=sub2.id_novedad)\"//con el id_novedad maximo obtengo la novedad que predomina\n .\" LEFT JOIN impresion_540 t_i ON (nro_540=t_i.id)\"//para agregar el expediente \n .\" LEFT OUTER JOIN designacion d ON (sub2.id_designacion=d.id_designacion)\"//como no tengo el id de la norma tengo que volver a hacer join\n .\" LEFT OUTER JOIN norma t_nor ON (d.id_norma=t_nor.id_norma)\"\n . \")sub3\"\n .$where2\n . \" order by docente_nombre,desde\"; \n return toba::db('designa')->consultar($sql);\n\t}", "function materialFiltrados($b){\n //Construimos la consulta\n $sql=\"SELECT e.id, nombre, apellidos, materiales,fecha_entrega,talla, cantidad\n FROM empleados e inner join material_entregado m on e.id = m.empleado\n WHERE concat(nombre, ' ', apellidos) like '%\".$b.\"%' order by nombre\";\n //Realizamos la consulta\n $resultado=$this->realizarConsulta($sql);\n if($resultado!=null){\n //Montamos la tabla de resultados\n $tabla=[];\n while($fila=$resultado->fetch_assoc()){\n $tabla[]=$fila;\n }\n return $tabla;\n }else{\n return null;\n }\n }", "public function showfilter(Request $request)\n { \n $helper = new Helper();\n $msg = [\"message\"=>\"Nenhuma agenda foi encontrada para o filtro executado!\"];\n\n if ($request->datade && $request->dataate){\n $msg = $this->user->WhereBetween('datainicio', [$helper->FormatDate($request->datade), $helper->FormatDate($request->dataate)]);\n \n if (count($msg) == 0){\n $msg = [\"message\"=>\"Nenhuma agenda foi encontrada para o filtro executado!\"];\n }\n }\n \n return response()->json($msg);\n }", "function LocalidadFilter( $Filter )\n {\n if( !empty($Filter->Loc) ) \n {\n $Loc = $Filter->Loc;\n return 'AND pLoc=\"'.$Loc.'\" ';\n }\n \n if( isset( $Filter->Prov ) ) \n return 'AND pProv='.$Filter->Prov.' ';\n\n return ''; \n }", "public function indexForFilter(){\n $user = $this->_ap_right_check();\n if(!$user){\n return;\n }\n $query = $this->{$this->main_model}->find();\n $this->CommonQuery->build_common_query($query,$user,[]); \n $q_r = $query->all();\n $items = array();\n foreach($q_r as $i){\n array_push($items,array(\n 'id' => $i->id, \n 'text' => $i->name\n ));\n } \n\n $this->set(array(\n 'items' => $items,\n 'success' => true,\n '_serialize' => array('items','success')\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}", "public function searchAvisos() {\n // should not be searched.\n \n $nombre = \"\";\n $apellido = \"\";\n $nombres = explode(\" \",$this->cliente_nombre);\n if(count($nombres) == 1){\n $nombre = $this->cliente_nombre;\n $apellido = $this->cliente_nombre;\n }\n elseif(count($nombres) == 2){\n $nombre = $nombres[0];\n $apellido = $nombres[1];\n }\n \n $criteria = new CDbCriteria;\n $criteria->with = array('departamento', 'tipoContrato', 'cliente');\n $criteria->join .= 'join departamento as d on d.id = t.departamento_id '\n . ' join propiedad as p on p.id = d.propiedad_id'\n . ' join tipo_contrato as tipo on tipo.id = t.tipo_contrato_id '\n . ' join cliente as c on c.id = t.cliente_id '\n . ' join usuario as u on u.id = c.usuario_id ';\n \n $arreglo = explode(\" \",$this->cliente_nombre);\n $nombreApellido = array();\n foreach($arreglo as $palabra){\n if(trim($palabra)!= ''){\n $nombreApellido[]=$palabra;\n }\n }\n $criteriaNombreUser1 = new CDbCriteria();\n $palabras = count($nombreApellido);\n if($palabras == 1){\n $busqueda = $nombreApellido[0];\n if(trim($busqueda) != ''){\n $criteriaNombreUser1->compare('u.nombre',$busqueda,true);\n $criteriaNombreUser1->compare('u.apellido',$busqueda,true,'OR');\n }\n }\n\n if($palabras == 2){\n $nombre = $nombreApellido[0];\n $apellido = $nombreApellido[1];\n $criteriaNombreUser1->compare('u.nombre',$nombre,true);\n $criteriaNombreUser1->compare('u.apellido',$apellido,true);\n }\n\n $criteria->compare('folio', $this->folio);\n $criteria->mergeWith($criteriaNombreUser1,'AND');\n \n $criteria->compare('fecha_inicio', Tools::fixFecha($this->fecha_inicio), true);\n $criteria->compare('p.nombre', $this->propiedad_nombre, true);\n $criteria->compare('d.numero', $this->depto_nombre, true);\n $criteria->compare('c.rut', $this->cliente_rut, true);\n $criteria->compare('t.vigente', 1);\n \n \n if(Yii::app()->user->rol == 'cliente'){\n $cliente = Cliente::model()->findByAttributes(array('usuario_id'=>Yii::app()->user->id));\n if($cliente!=null){\n $criteria->compare('t.cliente_id',$cliente->id);\n }\n else{\n $criteria->compare('t.cliente_id',-1);\n }\n }\n \n if(Yii::app()->user->rol == 'propietario'){\n $criteriaPropietario = new CDbCriteria();\n $contratos = Contrato::model()->relacionadosConPropietario(Yii::app()->user->id);\n foreach($contratos as $contrato_id){\n $criteriaPropietario->compare('t.id', $contrato_id, false,'OR'); \n }\n $criteria->mergeWith($criteriaPropietario,'AND');\n }\n \n \n \n \n \n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'sort' => array(\n 'attributes' => array(\n 'depto_nombre' => array(\n 'asc' => 'd.numero',\n 'desc' => 'd.numero DESC',\n ),\n 'tipo_nombre' => array(\n 'asc' => 'tipo.nombre',\n 'desc' => 'tipo.nombre DESC',\n ),\n 'cliente_rut' => array(\n 'asc' => 'c.rut',\n 'desc' => 'c.rut DESC',\n ),\n 'cliente_nombre' => array(\n 'asc' => 'u.apellido,u.nombre',\n 'desc' => 'u.apellido DESC,u.nombre DESC',\n ),\n 'propiedad_nombre' => array(\n 'asc' => 'p.nombre',\n 'desc' => 'p.nombre DESC',\n ),\n '*',\n ),\n ),\n ));\n }", "public function applyFilterSearchAgencias($agencias,$filter)\n {\n \n $filter=strtoupper($filter);\n $result=array();\n foreach ($agencias as $a) {\n \n if(preg_match('/'.$filter.'/',strtoupper($a->getNombre())) ||\n preg_match('/'.$filter.'/',strtoupper($a->getRuc())) ||\n preg_match('/'.$filter.'/',strtoupper($a->getEmail())) ||\n preg_match('/'.$filter.'/',strtoupper($a->getTelefono())) || \n preg_match('/'.$filter.'/',strtoupper($a->getCiudad()->getNombre()))) \n \n {\n $result[]= $a;\n }\n \n \n }\n return $result;\n }", "public static function pesquisaTodos($request){\n $externa = \"https://www.seminovosbh.com.br/resultadobusca/index/\";\n\n //Filtro veículo\n if($request->veiculo == \"carro\")\n $externa .= \"veiculo/carro/\";\n if($request->veiculo == \"moto\")\n $externa .= \"veiculo/moto/\";\n if($request->veiculo == \"caminhao\")\n $externa .= \"veiculo/caminhao/\";\n \n //Filtro estado de conservação\n if($request->estado_conservacao == \"0km\")\n $externa .= \"estado-conservacao/0km/\";\n if($request->estado_conservacao == \"seminovo\")\n $externa .= \"estado-conservacao/seminovo/\";\n\n //Filtro de marca e modelo\n $externa .= \"marca/\".$request->marca.\"/\";\n $externa .= \"modelo/\".$request->modelo.\"/\";\n\n //Filtro de cidade\n if(isset($request->cidade))\n $externa .= \"cidade/\".$request->cidade.\"/\";\n \n //Filtro de valores\n if(isset($request->valor1) && isset($request->valor2))\n $externa .= \"valor1/\".$request->valor1.\"/valor2/\".$request->valor2.\"/\";\n \n //Filtro de anos\n if(isset($request->ano1) && isset($request->ano2))\n $externa .= \"ano1/\".$request->ano1.\"/ano2/\".$request->ano2.\"/\";\n \n //Filtro de tipo de usuário\n if($request->usuario == \"particular\")\n $externa .= \"usuario/particular/\";\n else if($request->usuario == \"revenda\")\n $externa .= \"usuario/revenda/\";\n else \n $externa .= \"usuario/todos/\";\n \n //Maior quantidade de registros possíveis\n $externa .= \"qtdpag/50/\";\n\n //Escolhe a página\n if(isset($request->pagina))\n $externa .= \"pagina/\".$request->pagina.\"/\";\n \n //Extrai os dados da página e retira deles a lista de carros resultante\n $resultados = file_get_contents($externa);\n $resultados_filtro = explode('<dd class=\"titulo-busca\">', $resultados);\n unset($resultados_filtro[0]);\n\n //Pega a quantidade total de páginas da consulta\n $aux1 = explode('<strong class=\"total\">', $resultados);\n $aux2 = explode('</strong>', $aux1[1]);\n $totalPaginas = $aux2[0];\n\n //Cria o array que será utilizado como retorno e informa na primeira posição qual a quantidade de páginas para o usuário navegar entre os resultados\n $compilado = array();\n $compilado[0] = array(\"totalpaginas\" => $totalPaginas);\n $i = 1;\n\n //Para cada resultado, separa-se o título e o código do anúncio para utilizar no outro endpoint \n foreach($resultados_filtro as $resultado){\n $resto = explode('</dd>', $resultado);\n $linha = $resto[0];\n\n $arrayCodigo = explode('/', $linha);\n $codigo = $arrayCodigo[1].\"/\".$arrayCodigo[2].\"/\".$arrayCodigo[3].\"/\".$arrayCodigo[4].\"/\".$arrayCodigo[5].\"/\";\n\n $aux1 = explode('<h4>', $linha);\n $aux2 = explode('</h4>', $aux1[1]);\n $titulo = strip_tags($aux2[0]);\n\n $compilado[$i] = array(\"codigo\"=> $codigo, \"titulo\" => $titulo);\n $i++;\n }\n\n return response()->json($compilado, 200);\n }", "public function search(Request $request)\n {\n // Search terms\n $filter = $request -> input('filtro');\n $search = $request -> input('fecha');\n\n // Retrieval of the data according to the search terms\n if($filter == \"pendientes\" || $filter == \"Pendientes\" || $filter == \"pendiente\" || $filter == \"Pendiente\")\n {\n $estufas = Estufa::where([\n ['id_user','=', $request->user()->id],\n ['estado','=', 'Pendiente'],\n ['fecha', 'LIKE', '%' . $search . '%'],\n ['tipo_tarea','=','Reparacion']\n ])->get();\n }\n else if($filter == \"terminadas\" || $filter == \"Terminadas\" || $filter == \"terminado\" || $filter == \"Terminado\")\n {\n $estufas = Estufa::where([\n ['id_user','=', $request->user()->id],\n ['estado','=', 'Terminado'],\n ['fecha', 'LIKE', '%' . $search . '%'],\n ['tipo_tarea','=','Reparacion']\n ])->get();\n } else \n {\n return \"No se encontró ningun registro\";\n }\n\n \n // Construyo respuesta\n $respuesta = array();\n $respuesta['estufas'] = $estufas;\n\n // Envió respuesta\n return $respuesta;\n }", "private function iniciarFiltros($consultas = null) {\n $filtros = array();\n $filtros['categoria'] = '';\n $filtros['preco'] = '';\n $filtros['estado'] = '';\n if (is_array($consultas)){\n $filtros = $consultas;\n }\n return $filtros;\n }", "public function usuarios()\n {\n $parametros = Input::only('term');\n\n $data = SisUsuario::with(\"SisUsuariosGrupos\", \"SisUsuariosContactos\")->where(function($query) use ($parametros) {\n $query->where('nombre','LIKE',\"%\".$parametros['term'].\"%\")\n ->orWhere('email','LIKE',\"%\".$parametros['term'].\"%\");\n });\n\n $data = $data->get();\n return $this->respuestaVerTodo($data);\n }", "public function buscar() \n {\n \n if($buscar = \\Request::get('q')){\n $lineas= Linea:: where(function($query) use ($buscar){\n $query->where('nombre','LIKE', \"%$buscar%\")->orWhere('rif','LIKE',\"%$buscar%\")\n ->orWhere('estado','LIKE',\"%$buscar%\")->orWhere('municipio','LIKE',\"%$buscar%\")\n ->orWhere('tipo_ruta','LIKE',\"%$buscar%\");\n\n })->paginate(20);\n }\n\n return $lineas; //retorna toda la consulta\n }", "public function executeSearch_contact(sfWebRequest $request)\n{\n //por ahora solo x el email\n \n $name_or_email = $request->getParameter('data');\n $group_id = $request->getParameter('workGroup');\n $current_user = $this->getUser()->getAttribute(sfConfig::get('app_session_current_user'), null);\n //reviso si la session existe\n if($current_user!=null){\n $criterio_user = new Criteria();\n $criterio_user->add(DetalleGrupoTrabajoScPeer::EMAIL,'%'.$name_or_email.'%',Criteria::LIKE);\n $criterio_user->add(GrupoTrabajoScPeer::OWNER_ID,$current_user->getId());\n $criterio_user->add(GrupoTrabajoScPeer::ID,$group_id);\n $criterio_user->addJoin(DetalleGrupoTrabajoScPeer::GRUPO_ID,GrupoTrabajoScPeer::ID);\n $list_results = DetalleGrupoTrabajoScPeer::doSelect($criterio_user);\n $this->results = $list_results;\n return sfView::SUCCESS; \n }else{\n return sfView::ERROR;\n } \n\n \n }", "public function filtro($dataForm)\n {\n try {\n if ($dataForm['tipo'] == 'id') {\n $escolas = Escola::where('id', '=', $dataForm['search'])->paginate(10);\n } else if ($dataForm['tipo'] == 'nome') {\n $filtro = '%' . $dataForm['search'] . '%';\n $escolas = Escola::where('name', 'like', $filtro)->paginate(10);\n } else if ($dataForm['tipo'] == 'usuario') {\n $filtro = $dataForm['search'];\n $escolas = [User::where('username', '=', $filtro)->first()->escola];\n } else if ($dataForm['tipo'] == 'email') {\n $filtro = '%' . $dataForm['search'] . '%';\n $escolas = Escola::where('email', 'like', $filtro)->paginate(10);\n }\n return $escolas;\n } catch (\\Exception $e) {\n return \"ERRO: \" . $e->getMessage();\n }\n }", "function filter($request) {\n\t\t//$model = singleton($this->modelClass);\n\t\t$context = $this->dataObject->getDefaultSearchContext();\n\t\t$value = $request->getVar('q');\n\t\t$results = $context->getResults(array(\"Name\"=>$value));\n\t\theader(\"Content-Type: text/plain\");\n\t\tforeach($results as $result) {\n\t\t\techo $result->Name . \"\\n\";\n\t\t}\t\t\n\t}", "private function filters() {\n\n\n\t}", "public function filtro($dataForm)\n {\n try {\n if ($dataForm['tipo'] == 'id') {\n $escolas = Escola::where('id', '=', $dataForm['search'])->paginate(10);\n } else if ($dataForm['tipo'] == 'nome') {\n $filtro = '%' . $dataForm['search'] . '%';\n $escolas = Escola::where('name', 'like', $filtro)->paginate(10);\n } else if ($dataForm['tipo'] == 'usuario') {\n $filtro = $dataForm['search'];\n $escolas = [User::where('username', '=', $filtro)->first()->escola];\n } else if ($dataForm['tipo'] == 'qnt') {\n $filtro = '%' . $dataForm['search'] . '%';\n $projetos = Projeto::all()\n ->where('ano', '=', intval(date(\"Y\")));\n foreach($projetos as $projeto) {\n $id[] = $projeto->escola_id;\n }\n $escolas = Escola::whereNotIn('id', $id)\n ->paginate(10);\n }\n return $escolas;\n } catch (\\Exception $e) {\n return abort(600, '1200');\n }\n }", "public function buscarFuncionarioPorCampo($campo, $filtro){\n \n $query = \"SELECT Usuario.*, Funcionario.* FROM Usuario JOIN Funcionario \n ON Usuario.idUsuario = Funcionario.idUsuario\"; //criação da query base\n\n if(isset($campo) && isset($filtro)){ //verifica se os filtros foram especificados\n if(strcmp($campo, nome) || strcmp($campo, sobrenome) || strcmp($campo, email)){ //verifica se o campo corresponde a nome, sobrenome ou email\n $query .= \" WHERE Usuario.nome LIKE '%'.'.$campo.'.'%'\"; //adicionar filtro de nome, sobrenome ou email à query\n }else if(strcmp($campo, matricula)){ //verifica se o campo corresponde a matricula\n $query .= \" WHERE Funcionario.matricula = $campo\"; //adiciona filtro de matricula à query\n }else{\n return array(); //retorna um array vazio caso o campo não seja encontrado\n }\n }\n\n /*Caso não seja especificados filtros retorna todos os funcionarios*/\n\n $result = $this->PDO->query($query); //executa a query\n\n $funcionarios = array(); //cria array para armazenar os resultados da consulta\n\n if(!empty($result) && $result->rowCount() > 0){ //verifica se existem resultados para consulta\n foreach($result->fetchAll() as $item){ //percorre as tuplas retornadas pela consulta\n $funcionarios[] = new funcionario( //cria um novo funcionario e add uma array, apartir dos dados obtidos\n isset($item['idUsuario'])?utf8_encode($item['idUsuario']):null,\n isset($item['email'])?utf8_encode($item['email']):null,\n isset($item['nome'])?utf8_encode($item['nome']):null,\n isset($item['sobrenome'])?utf8_encode($item['sobrenome']):null,\n isset($item['senha'])?utf8_encode($item['senha']):null,\n isset($item['cadastroConfirmado'])?utf8_encode($item['cadastroConfirmado']):null,\n isset($item['tipoUsuario'])?utf8_encode($item['tipoUsuario']):null,\n isset($item['matricula'])?utf8_encode($item['matricula']):null,\n isset($item['funcao'])?utf8_encode($item['funcao']):null,\n isset($item['cadastroObra'])?utf8_encode($item['cadastroObra']):null,\n isset($item['gerenciaObra'])?utf8_encode($item['gerenciaObra']):null,\n isset($item['remocaoObra'])?utf8_encode($item['remocaoObra']):null,\n isset($item['cadastroNoticia'])?utf8_encode($item['cadastroNoticia']):null, \n isset($item['gerenciaNoticia'])?utf8_encode($item['gerenciaNoticia']):null,\n isset($item['remocaoNoticia'])?utf8_encode($item['remocaoNoticia']):null,\n isset($item['backup'])?utf8_encode($item['backup']):null\n );\n }\n }\n\n return $funcionarios; //retorna os resultados\n }", "public function buscar_comprobantes($tipo_oper = 'V', $filter = NULL, $number_items = '', $offset = '')\n {\n $compania = $this->somevar['compania'];\n\n $where = '';\n\n if (isset($filter->fechai) && $filter->fechai != '' && isset($filter->fechaf) && $filter->fechaf != '')\n $where = ' and cp.CRED_Fecha BETWEEN \"' . human_to_mysql($filter->fechai) . '\" AND \"' . human_to_mysql($filter->fechaf) . '\"';\n\n if (isset($filter->serie) && $filter->serie != '')\n $where .= ' and cp.CRED_Serie=\"' . $filter->serie . '\"';\n\n if (isset($filter->numero) && $filter->numero != '')\n $where .= ' AND cp.CRED_Numero=\"'.$filter->numero.'\"';\n\n if ($tipo_oper != 'C') {\n if (isset($filter->cliente) && $filter->cliente != '')\n $where .= ' and cp.CLIP_Codigo=' . $filter->cliente;\n } else {\n if (isset($filter->proveedor) && $filter->proveedor != '')\n $where .= ' and cp.PROVP_Codigo=' . $filter->proveedor;\n }\n \n #if (isset($filter->producto) && $filter->producto != '')\n # $where .= ' and cpd.PROD_Codigo=' . $filter->producto;\n\n if (isset($filter->CRED_TipoNota) && $filter->CRED_TipoNota != '')\n $where .= \" and cp.CRED_TipoNota = '$filter->CRED_TipoNota'\";\n\n $limit = \"\";\n\n if ((string)$offset != '' && $number_items != '') {\n $limit = 'LIMIT ' . $offset . ',' . $number_items;\n }\n\n $sql = \"SELECT cp.CRED_Fecha,\n cp.CRED_TipoOperacion,\n cp.CRED_Codigo,\n cp.CRED_Serie,\n cp.CRED_Numero,\n (SELECT CLIC_CodigoUsuario FROM cji_cliente WHERE cji_cliente.CLIP_Codigo = cp.CLIP_Codigo LIMIT 1) as CLIC_CodigoUsuario,\n (CASE \" . ($tipo_oper != 'C' ? \"c.CLIC_TipoPersona\" : \"c.PROVC_TipoPersona\") . \" WHEN '1'THEN e.EMPRC_RazonSocial ELSE CONCAT(pe.PERSC_Nombre , ' ', pe.PERSC_ApellidoPaterno, ' ', pe.PERSC_ApellidoMaterno) end) nombre,\n m.MONED_Simbolo,\n cp.CRED_total,\n cp.CRED_FlagEstado,\n cp.CRED_Flag,\n cp.CRED_TipoDocumento_inicio,\n cp.CRED_TipoDocumento_fin,\n cp.CRED_ComproInicio,\n cp.CRED_ComproFin,\n cp.CRED_NumeroInicio,\n cp.CRED_NumeroFin,\n cp.CRED_Observacion\n FROM cji_nota cp\n LEFT JOIN cji_moneda m ON m.MONED_Codigo=cp.MONED_Codigo\n \" . ($tipo_oper != 'C' ? \"LEFT JOIN cji_cliente c ON c.CLIP_Codigo=cp.CLIP_Codigo\" : \"INNER JOIN cji_proveedor c ON c.PROVP_Codigo=cp.PROVP_Codigo\") . \"\n LEFT JOIN cji_persona pe ON pe.PERSP_Codigo=c.PERSP_Codigo AND \" . ($tipo_oper != 'C' ? \"c.CLIC_TipoPersona\" : \"c.PROVC_TipoPersona\") . \" = '0'\n LEFT JOIN cji_empresa e ON e.EMPRP_Codigo=c.EMPRP_Codigo AND \" . ($tipo_oper != 'C' ? \"c.CLIC_TipoPersona\" : \"c.PROVC_TipoPersona\") . \" = '1'\n WHERE cp.CRED_TipoOperacion='\" . $tipo_oper . \"'\n \n AND cp.COMPP_Codigo =\" . $compania . \" \" . $where . \"\n ORDER BY cp.CRED_FechaRegistro DESC \" . $limit; //cp.CPC_Serie DESC, cp.CPC_Numero DESC\n\n # AND cp.CRED_FlagEstado = 1 OLD\n $query = $this->db->query($sql);\n\n if ($query->num_rows > 0) {\n foreach ($query->result() as $fila) {\n $data[] = $fila;\n }\n return $data;\n }\n return array();\n }", "function buscarTipoUsuario(){\n\t$queryUsuario = sprintf(\"SELECT id_usuario, nombre_usuario,\n CONCAT_WS(' ', nombre_empleado, apellido) AS nombre,\n clave_filtro,\n\t\t(CASE clave_filtro\n\t\t\t WHEN 1 THEN 'Ventas'\t\t\n WHEN 2 THEN 'Ventas'\n\t\t\t WHEN 4 THEN 'Postventa'\n WHEN 5 THEN 'Postventa'\n WHEN 6 THEN 'Postventa'\n WHEN 7 THEN 'Postventa'\n WHEN 8 THEN 'Postventa'\n WHEN 26 THEN 'Postventa'\n WHEN 400 THEN 'Postventa'\n\t\tEND) AS tipo\n \n\tFROM pg_usuario\n\t\tINNER JOIN pg_empleado ON pg_usuario.id_empleado = pg_empleado.id_empleado\n\t\tINNER JOIN pg_cargo_departamento ON pg_empleado.id_cargo_departamento = pg_cargo_departamento.id_cargo_departamento\n\tWHERE id_usuario = %s \",\n\tvalTpDato($_SESSION['idUsuarioSysGts'],\"int\"));\n\t\n\t$rsUsuario = mysql_query($queryUsuario);\n\tif (!$rsUsuario) return array(false, mysql_error().\"\\nError Nro: \".mysql_errno().\"\\nLine: \".__LINE__.\"\\n\".$queryUsuario);\n\t$row = mysql_fetch_array($rsUsuario);\n\n\treturn array(true, $row['tipo']);\n}", "public function filtro(Request $request, $filtro){\n if($request->user()->can('add_proveedor')){\n\n $proveedor = Proveedor::filtro($filtro);\n ResponseController::set_data(['provedores'=>$proveedor]);\n return ResponseController::response('OK');\n }\n ResponseController::set_errors(true);\n ResponseController::set_messages('Usuario sin permiso');\n return ResponseController::response('UNAUTHORIZED');\n\n }", "function listaEmpleado($pageNum = 0, $campOrd = \"\", $tpOrd = \"\", $valBusq = \"\", $maxRows = 10, $totalRows = NULL){\n\t\n\t$objResponse = new xajaxResponse();\n\n\t$valCadBusq = explode(\"|\", $valBusq);\n\t$startRow = $pageNum * $maxRows;\n\t\n\t$cond = (strlen($sqlBusq) > 0) ? \" AND \" : \" WHERE \";\n\t$sqlBusq .= $cond.sprintf(\"activo = 1\");\n\n\tif ($valCadBusq[0] != \"-1\" && $valCadBusq[0] != \"\") {\n\t\t$cond = (strlen($sqlBusq) > 0) ? \" AND \" : \" WHERE \";\n\t\t$sqlBusq .= $cond.sprintf(\"id_empresa = %s\", \n\t\t\tvalTpDato($valCadBusq[0], \"int\"));\n\t}\n\t\n\t\n\t$result = buscarTipoUsuario();\n\tif ($result[0] != true) return $objResponse->alert($result[1]);\n\t$tipoEmpleado = ($result[1] != NULL) ? $result[1] : $valCadBusq[1];\n\t\n\tswitch ($tipoEmpleado) {\n\t\tcase \"Ventas\":\n\t\t\t$cond = (strlen($sqlBusq) > 0) ? \" AND \" : \" WHERE \";\n\t\t\t$sqlBusq .= $cond.sprintf(\"clave_filtro IN (1, 2, 20) AND\n\t\t\tactivo = 1\");\n\t\tbreak;\n\t\t\t\n\t\tcase \"Postventa\":\n\t\t\t$cond = (strlen($sqlBusq) > 0) ? \" AND \" : \" WHERE \";\n\t\t\t$sqlBusq .= $cond.sprintf(\"clave_filtro IN (4, 5, 6, 7, 8, 25, 26, 400) AND\n\t\t\tactivo = 1\");\n\t\tbreak;\n\t}\n\t\n\tif ($valCadBusq[2] != \"-1\" && $valCadBusq[2] != \"\") {\n\t\t$cond = (strlen($sqlBusq) > 0) ? \" AND \" : \" WHERE \";\n\t\t$sqlBusq .= $cond.sprintf(\"(vw_pg_empleado.cedula LIKE %s\n\t\t\t\t\t\t\t\t\t\tOR vw_pg_empleado.nombre_empleado LIKE %s\n\t\t\t\t\t\t\t\t\t\tOR vw_pg_empleado.nombre_cargo LIKE %s)\", \n\t\t\t\t\t\t\t\tvalTpDato(\"%\".$valCadBusq[2].\"%\", \"text\"), \n\t\t\t\t\t\t\t\tvalTpDato(\"%\".$valCadBusq[2].\"%\", \"text\"), \n\t\t\t\t\t\t\t\tvalTpDato(\"%\".$valCadBusq[2].\"%\", \"text\"));\n\t}\n\t\n\t$cond = (strlen($sqlBusq) > 0) ? \" AND \" : \" WHERE \";\n\t$sqlBusq .= $cond.sprintf(\"vw_pg_empleado.id_empleado NOT IN (SELECT crm_int.id_empleado FROM crm_integrantes_equipos crm_int)\");\n\t\n\t$query = sprintf(\"SELECT\n\t\t\t\t\t\t\tvw_pg_empleado.id_empleado, \n\t\t\t\t\t\t\tvw_pg_empleado.cedula, \n\t\t\t\t\t\t\tvw_pg_empleado.nombre_empleado, \n\t\t\t\t\t\t\tvw_pg_empleado.nombre_cargo\n\t\t\t\t\t\tFROM vw_pg_empleados vw_pg_empleado %s\", \n\t\t\t\t$sqlBusq);\n\t\t\t\t\t\t\n\t$sqlOrd = ($campOrd != \"\") ? sprintf(\" ORDER BY %s %s\", $campOrd, $tpOrd) : \"\";\n\t\n\t$queryLimit = sprintf(\"%s %s LIMIT %d OFFSET %d\", $query, $sqlOrd, $maxRows, $startRow);\n\n\t$rsLimit = mysql_query($queryLimit);\n\tif (!$rsLimit) return $objResponse->alert(mysql_error().\"\\n\\nLine: \".__LINE__);\n\tif ($totalRows == NULL) {\n\t\t$rs = mysql_query($query);\n\t\tif (!$rs) return $objResponse->alert(mysql_error().\"\\n\\nLine: \".__LINE__);\n\t\t$totalRows = mysql_num_rows($rs);\n\t}\n\t\n\t$totalPages = ceil($totalRows/$maxRows)-1;\n\t\n\t$htmlTblIni .= \"<table border=\\\"0\\\" width=\\\"100%\\\">\";\n\t$htmlTh .= \"<tr align=\\\"center\\\" class=\\\"tituloColumna\\\">\";\n\t\t$htmlTh .= \"<td></td>\";\n\t\t$htmlTh .= ordenarCampo(\"xajax_listaEmpleado\", \"10%\", $pageNum, \"id_empleado\", $campOrd, $tpOrd, $valBusq, $maxRows, htmlentities(\"Id\"));\n\t\t$htmlTh .= ordenarCampo(\"xajax_listaEmpleado\", \"18%\", $pageNum, \"cedula\", $campOrd, $tpOrd, $valBusq, $maxRows, htmlentities(\"C.I. / R.I.F.\"));\n\t\t$htmlTh .= ordenarCampo(\"xajax_listaEmpleado\", \"36%\", $pageNum, \"nombre_empleado\", $campOrd, $tpOrd, $valBusq, $maxRows, htmlentities(\"Nombre Empleado\"));\n\t\t$htmlTh .= ordenarCampo(\"xajax_listaEmpleado\", \"36%\", $pageNum, \"vw_pg_empleado.nombre_cargo\", $campOrd, $tpOrd, $valBusq, $maxRows, htmlentities(\"Nombre Cargo\"));\n\t$htmlTh .= \"</tr>\";\n\t\n\twhile ($row = mysql_fetch_assoc($rsLimit)) {\n\t\t$clase = (fmod($contFila, 2) == 0) ? \"trResaltar4\" : \"trResaltar5\";\n\t\t$contFila++;\n\t\t\n\t\tswitch($valCadBusq[3]){\n\t\t\tcase \"asignarJefeEquipo\":\n\t\t\t\t$click = sprintf(\"byId('butCancelarJefeEquipo').click(); xajax_asignarJefeEquipo(%s);\",$row['id_empleado']);\n\t\t\tbreak;\n\t\t\tdefault: \n\t\t\t\t$click = sprintf(\"xajax_insertarIntegrante(%s,xajax.getFormValues('fomrEquipo')); RecorrerForm('frmLstEmpleado','disabled',true);\",$row['id_empleado']);\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t$htmlTb .= \"<tr align=\\\"left\\\" class=\\\"\".$clase.\"\\\" height=\\\"24\\\">\";\n\t\t\t$htmlTb .= sprintf(\"<td>\".\"<button id=\\\"btnEmpleado%s\\\" class=\\\"close\\\" type=\\\"button\\\" onclick=\\\"%s \\\" title=\\\"Seleccionar Empleado\\\"><img src=\\\"../img/iconos/ico_aceptar.gif\\\"/></button>\".\"</td>\",\n\t\t\t\t$row['id_empleado'],$click); //EL BOTON PARA SELECCIONAR\n\t\t\t$htmlTb .= \"<td align=\\\"center\\\">\".$row['id_empleado'].\"</td>\";\n\t\t\t$htmlTb .= \"<td align=\\\"center\\\">\".$row['cedula'].\"</td>\";\n\t\t\t$htmlTb .= \"<td>\".utf8_encode($row['nombre_empleado']).\"</td>\";\n\t\t\t$htmlTb .= \"<td>\".utf8_encode($row['nombre_cargo']).\"</td>\";\n\t\t$htmlTb .= \"</tr>\";\n\t}\n\t\n\t$htmlTf = \"<tr>\";\n\t\t$htmlTf .= \"<td align=\\\"center\\\" colspan=\\\"5\\\">\";\n\t\t\t$htmlTf .= \"<table border=\\\"0\\\" cellpadding=\\\"0\\\" cellspacing=\\\"0\\\" width=\\\"100%\\\">\";\n\t\t\t$htmlTf .= \"<tr class=\\\"tituloCampo\\\">\";\n\t\t\t\t$htmlTf .= \"<td align=\\\"right\\\" class=\\\"textoNegrita_10px\\\">\";\n\t\t\t\t\t$htmlTf .= sprintf(\"Mostrando %s de %s Registros&nbsp;\", \n\t\t\t\t\t\t$contFila, \n\t\t\t\t\t\t$totalRows);\n\t\t\t\t\t$htmlTf .= \"<input name=\\\"valBusq\\\" id=\\\"valBusq\\\" type=\\\"hidden\\\" value=\\\"\".$valBusq.\"\\\"/>\";\n\t\t\t\t\t$htmlTf .= \"<input name=\\\"campOrd\\\" id=\\\"campOrd\\\" type=\\\"hidden\\\" value=\\\"\".$campOrd.\"\\\"/>\";\n\t\t\t\t\t$htmlTf .= \"<input name=\\\"tpOrd\\\" id=\\\"tpOrd\\\" type=\\\"hidden\\\" value=\\\"\".$tpOrd.\"\\\"/>\";\n\t\t\t\t$htmlTf .= \"</td>\";\n\t\t\t\t$htmlTf .= \"<td align=\\\"center\\\" class=\\\"tituloColumna\\\" width=\\\"210\\\">\";\n\t\t\t\t\t$htmlTf .= \"<table border=\\\"0\\\" cellpadding=\\\"0\\\" cellspacing=\\\"0\\\">\";\n\t\t\t\t\t$htmlTf .= \"<tr align=\\\"center\\\">\";\n\t\t\t\t\t\t$htmlTf .= \"<td width=\\\"25\\\">\";\n\t\t\t\t\t\tif ($pageNum > 0) {\n\t\t\t\t\t\t\t$htmlTf .= sprintf(\"<a class=\\\"puntero\\\" onclick=\\\"xajax_listaEmpleado(%s, '%s', '%s', '%s', %s);\\\">%s</a>\", \n\t\t\t\t\t\t\t\t0, $campOrd, $tpOrd, $valBusq, $maxRows, \"<img src=\\\"../img/iconos/ico_reg_pri_crm.gif\\\"/>\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$htmlTf .= \"</td>\";\n\t\t\t\t\t\t$htmlTf .= \"<td width=\\\"25\\\">\";\n\t\t\t\t\t\tif ($pageNum > 0) { \n\t\t\t\t\t\t\t$htmlTf .= sprintf(\"<a class=\\\"puntero\\\" onclick=\\\"xajax_listaEmpleado(%s, '%s', '%s', '%s', %s);\\\">%s</a>\", \n\t\t\t\t\t\t\t\tmax(0, $pageNum - 1), $campOrd, $tpOrd, $valBusq, $maxRows, \"<img src=\\\"../img/iconos/ico_reg_ant_crm.gif\\\"/>\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$htmlTf .= \"</td>\";\n\t\t\t\t\t\t$htmlTf .= \"<td width=\\\"100\\\">\";\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$htmlTf .= sprintf(\"<select id=\\\"pageNum\\\" name=\\\"pageNum\\\" onchange=\\\"xajax_listaEmpleado(%s, '%s', '%s', '%s', %s)\\\">\", \n\t\t\t\t\t\t\t\t\"this.value\", $campOrd, $tpOrd, $valBusq, $maxRows);\n\t\t\t\t\t\t\tfor ($nroPag = 0; $nroPag <= $totalPages; $nroPag++) {\n\t\t\t\t\t\t\t\t\t$htmlTf.=\"<option value=\\\"\".$nroPag.\"\\\"\";\n\t\t\t\t\t\t\t\t\tif ($pageNum == $nroPag) {\n\t\t\t\t\t\t\t\t\t\t$htmlTf.=\"selected=\\\"selected\\\"\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$htmlTf.= \">\".($nroPag + 1).\" / \".($totalPages + 1).\"</option>\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$htmlTf .= \"</select>\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t$htmlTf .= \"</td>\";\n\t\t\t\t\t\t$htmlTf .= \"<td width=\\\"25\\\">\";\n\t\t\t\t\t\tif ($pageNum < $totalPages) {\n\t\t\t\t\t\t\t$htmlTf .= sprintf(\"<a class=\\\"puntero\\\" onclick=\\\"xajax_listaEmpleado(%s, '%s', '%s', '%s', %s);\\\">%s</a>\", \n\t\t\t\t\t\t\t\tmin($totalPages, $pageNum + 1), $campOrd, $tpOrd, $valBusq, $maxRows, \"<img src=\\\"../img/iconos/ico_reg_sig_crm.gif\\\"/>\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$htmlTf .= \"</td>\";\n\t\t\t\t\t\t$htmlTf .= \"<td width=\\\"25\\\">\";\n\t\t\t\t\t\tif ($pageNum < $totalPages) {\n\t\t\t\t\t\t\t$htmlTf .= sprintf(\"<a class=\\\"puntero\\\" onclick=\\\"xajax_listaEmpleado(%s, '%s', '%s', '%s', %s);\\\">%s</a>\", \n\t\t\t\t\t\t\t\t$totalPages, $campOrd, $tpOrd, $valBusq, $maxRows, \"<img src=\\\"../img/iconos/ico_reg_ult_crm.gif\\\"/>\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$htmlTf .= \"</td>\";\n\t\t\t\t\t$htmlTf .= \"</tr>\";\n\t\t\t\t\t$htmlTf .= \"</table>\";\n\t\t\t\t$htmlTf .= \"</td>\";\n\t\t\t$htmlTf .= \"</tr>\";\n\t\t\t$htmlTf .= \"</table>\";\n\t\t$htmlTf .= \"</td>\";\n\t$htmlTf .= \"</tr>\";\n\t\n\t$htmlTblFin .= \"</table>\";\n\t\n\tif (!($totalRows > 0)) {\n\t\t$htmlTb .= \"<td colspan=\\\"5\\\">\";\n\t\t\t$htmlTb .= \"<table cellpadding=\\\"0\\\" cellspacing=\\\"0\\\" class=\\\"divMsjError\\\" width=\\\"100%\\\">\";\n\t\t\t$htmlTb .= \"<tr>\";\n\t\t\t\t$htmlTb .= \"<td width=\\\"25\\\"><img src=\\\"../img/iconos/ico_fallido.gif\\\" width=\\\"25\\\"/></td>\";\n\t\t\t\t$htmlTb .= \"<td align=\\\"center\\\">No se encontraron registros</td>\";\n\t\t\t$htmlTb .= \"</tr>\";\n\t\t\t$htmlTb .= \"</table>\";\n\t\t$htmlTb .= \"</td>\";\n\t}\n\t\n\t$objResponse->assign(\"tdLisJefeEquipo\",\"innerHTML\",$htmlTblIni.$htmlTf.$htmlTh.$htmlTb.$htmlTf.$htmlTblFin);\n\t\n\treturn $objResponse;\n}", "public function buscarUsuarios(){\n\t\t}", "public function _populateFiltros($data){\n\t\t$this->_objectFilter = new Model_Aclusuariosonline();\n\t\tif($data == null)return;\n\t\t$this->setPerezoso(false);\n\t\t$this->_objectFilter = $this->_populate($data);\n\t\tif(array_key_exists(\"buscar\", $data)) $this->_objectFilter->set_Fbuscar($data[\"buscar\"]);\n\t\tif(array_key_exists(\"sort\", $data) && strlen($data[\"sort\"]) > 1)\t$this->_objectFilter->addOrderBy($data[\"sort\"]);\n\t}", "function filterByS($SEDE,$TABLE_I)\n{\n global $mysqli;\n $TINS = $TABLE_I;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,fac_iia,esc_iia,car_iia,fac_iiia,esc_iiia,car_iiia\n FROM \" .$TINS. \" where sede = ?\");\n $parametros = array('i', &$SEDE);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "public function select($usuario_has_hojaruta);", "public function consultar($filtro, $codigoModalidadAcademica = NULL) {\n $estudiantes = array();\n\n /* Modified Diego Rivera <[email protected]>\n * Se añade filtor 105(Admitido que no Ingreso) en S.codigosituacioncarreraestudiante NOT IN (100, 101, 102, 103, 108, 109, 112, 302, 400 ) \n * Since October 5,2017\n */\n $sql = \"\n SELECT DISTINCT\n P.idplanestudio,\n EG.idestudiantegeneral,\n E.codigoestudiante,\n CONCAT( EG.apellidosestudiantegeneral, ' ', EG.nombresestudiantegeneral ) AS Nombre,\n C.nombrecarrera,\n PR.semestreprematricula,\n PR.codigoestadoprematricula,\n C.codigocarrera,\n FG.FechaMaximaCumplimiento,\n MAX( PR.codigoperiodo ) AS codigoperiodo,\n FG.FechaGradoId,\n EG.EstadoActualizaDato,\n E.codigosituacioncarreraestudiante,\n FG.TipoGradoId \n FROM\n estudiantegeneral EG\n INNER JOIN estudiante E ON ( E.idestudiantegeneral = EG.idestudiantegeneral )\n INNER JOIN carrera C ON ( C.codigocarrera = E.codigocarrera )\n INNER JOIN facultad F ON ( F.codigofacultad = C.codigofacultad )\n LEFT JOIN prematricula PR ON ( PR.codigoestudiante = E.codigoestudiante )\n LEFT JOIN detalleprematricula DP ON ( DP.idprematricula = PR.idprematricula )\n INNER JOIN planestudio P ON ( P.codigocarrera = C.codigocarrera )\n INNER JOIN planestudioestudiante PE ON ( PE.idplanestudio = P.idplanestudio AND PE.codigoestudiante = E.codigoestudiante AND PE.codigoestadoplanestudioestudiante != 200 )\n INNER JOIN situacioncarreraestudiante S ON ( S.codigosituacioncarreraestudiante = E.codigosituacioncarreraestudiante )\n INNER JOIN FechaGrado FG ON ( FG.CarreraId = C.codigocarrera ) \n WHERE\n S.codigosituacioncarreraestudiante NOT IN ( 100, 101, 102, 103, 108, 109, 112, 302, 400, 105 ) \n AND (\n PR.semestreprematricula BETWEEN ( IF ( C.codigocarrera = 1186, P.cantidadsemestresplanestudio - 9, P.cantidadsemestresplanestudio - 3 ) ) \n AND P.cantidadsemestresplanestudio \n OR E.semestre = P.cantidadsemestresplanestudio \n ) \";\n\n if (empty($codigoModalidadAcademica) || $codigoModalidadAcademica == 200 || $codigoModalidadAcademica == 800) {\n $sql .= \" AND ( DP.codigoestadodetalleprematricula IN (10,30,20) OR DP.codigoestadodetalleprematricula IS NULL )\";\n }\n $sql .= $filtro;\n $sql .= \" AND E.codigoestudiante NOT IN ( \n SELECT\n R.codigoestudiante\n FROM \n registrograduado R\n WHERE\n R.codigoestudiante = E.codigoestudiante AND R.codigoestado = 100\n UNION\n SELECT \n RG.EstudianteId\n FROM \n RegistroGrado RG\n WHERE\n RG.EstudianteId = E.codigoestudiante AND RG.CodigoEstado = 100\";\n \n if (isset($_POST[\"cmbTipoGrado\"]) && $_POST[\"cmbTipoGrado\"] == 1) {\n $sql .= \" UNION\n SELECT\n DC.EstudianteId\n FROM\n DetalleAcuerdoActa DC\n INNER JOIN AcuerdoActa AC ON ( AC.AcuerdoActaId = DC.AcuerdoActaId )\n INNER JOIN FechaGrado FGR ON (FGR.FechaGradoId = AC.FechaGradoId )\n WHERE\n DC.EstudianteId = E.codigoestudiante AND FGR.TipoGradoId = 2 AND DC.CodigoEstado = 100\";\n }\n if (isset($_POST[\"cmbTipoGrado\"]) && $_POST[\"cmbTipoGrado\"] == 2) {\n $sql .= \" UNION\n SELECT\n DC.EstudianteId\n FROM\n DetalleAcuerdoActa DC\n INNER JOIN AcuerdoActa AC ON (\n AC.AcuerdoActaId = DC.AcuerdoActaId\n )\n INNER JOIN FechaGrado FGR ON (FGR.FechaGradoId = AC.FechaGradoId )\n WHERE\n DC.EstudianteId = E.codigoestudiante\n AND FGR.TipoGradoId = 1\n AND DC.CodigoEstado = 100\";\n }\n $sql .= \")\n GROUP BY E.codigoestudiante\n ORDER BY EG.apellidosestudiantegeneral ASC\";\n \n $this->persistencia->crearSentenciaSQL($sql);\n $this->persistencia->ejecutarConsulta();\n while ($this->persistencia->getNext()) {\n \n $estudiante = new Estudiante($this->persistencia);\n $estudiante->setIdEstudiante($this->persistencia->getParametro(\"idestudiantegeneral\"));\n $estudiante->setCodigoEstudiante($this->persistencia->getParametro(\"codigoestudiante\"));\n $estudiante->setNombreEstudiante($this->persistencia->getParametro(\"Nombre\"));\n $estudiante->setEstadoActualizaDato($this->persistencia->getParametro(\"EstadoActualizaDato\"));\n\n $situacionCarreraEstudiante = new SituacionCarreraEstudiante(null);\n $situacionCarreraEstudiante->setCodigoSituacion($this->persistencia->getParametro(\"codigosituacioncarreraestudiante\"));\n\n $fechaGrado = new FechaGrado(null);\n $fechaGrado->setIdFechaGrado($this->persistencia->getParametro(\"FechaGradoId\"));\n $fechaGrado->setFechaMaxima($this->persistencia->getParametro(\"FechaMaximaCumplimiento\"));\n\n $tipoGrado = new TipoGrado(null);\n $tipoGrado->setIdTipoGrado($this->persistencia->getParametro(\"TipoGradoId\"));\n\n $carrera = new Carrera(null);\n $carrera->setCodigoCarrera($this->persistencia->getParametro(\"codigocarrera\"));\n $carrera->setNombreCarrera($this->persistencia->getParametro(\"nombrecarrera\"));\n\n $fechaGrado->setCarrera($carrera);\n $fechaGrado->setTipoGrado($tipoGrado);\n\n $estudiante->setFechaGrado($fechaGrado);\n $estudiante->setSituacionCarreraEstudiante($situacionCarreraEstudiante);\n\n $preMatricula = new PreMatricula(null);\n $preMatricula->setSemestrePreMatricula($this->persistencia->getParametro(\"semestreprematricula\"));\n\n $periodo = new Periodo(null);\n $periodo->setCodigo($this->persistencia->getParametro(\"codigoperiodo\"));\n $preMatricula->setPeriodo($periodo);\n\n $estudiante->setPreMatricula($preMatricula);\n $estudiantes[count($estudiantes)] = $estudiante;\n }\n $this->persistencia->freeResult();\n\n return $estudiantes;\n }", "public function mostrar(Request $request)\n\t{\n\t\t//crear un array en el que se incluiran los filtros actuales, para ser mostrados junto a la lista de resultados\n\t\t$filtrosActivos = array();\n\n\n\t\t//declarar el query en formato SQL para cada uno de los parametros, como un string\n\t\t//el string siguiente seria \"fecha BETWEEN CAST('{fecha1}' AS DATE) AND CAST('{fecha2}' AS DATE)\"\n\t\t$queryFechas = \"fecha BETWEEN CAST('\" . $request->input('fecha1') . \"' AS DATE) AND CAST('\" . $request->input('fecha2') . \"' AS DATE)\";\n\t\tarray_push($filtrosActivos, (\"Desde \" . $request->input('fecha1') . \" hasta \" . $request->input('fecha2')));\n\n\t\t//crear el query para el numero de empleado y designar la etiqueta del filtro\n\t\tif($request->input('empleado') == 'null') $queryEmpleado = \"\"; //string vacio si no se define un empleado\n\t\telse {\n\t\t\t$empleado = EmpleadoCt::find($request->input('empleado'));\n\t\t\t$queryEmpleado = \" AND idEmpleadoCt = '\" . $request->input('empleado') .\"'\";\n\t\t\tarray_push($filtrosActivos, (\"Empleado: \" . strtoupper($empleado->ap_paterno) . \" \" . strtoupper($empleado->ap_materno) . \", \" . strtoupper($empleado->nombres)));\n\t\t}\n\n\t\t$query = $queryFechas . $queryEmpleado;\n\n\t\t$checadas = ChecadaCt::whereRaw($query)->get();\n\n\t\t//obtener un array en el cual almacenar los nombres de los empleados\n\t\t$empleadosPorChecada = array();\n\t\tforeach($checadas as $checada){\n\t\t\t$empleado = EmpleadoCt::where('idEmpleadoCt', $checada->idEmpleadoCt)->first(); //obtener al empleado\n\n\t\t\t$empleadosPorChecada[$checada->idChecadaCt] = $empleado->ap_paterno . \" \" . $empleado->ap_materno . \", \" . $empleado->nombres; //agregarlo al arreglo\n\t\t}\n\n\t\t$empleados = EmpleadoCt::all(); //obtener a los empleados para usarlos como filtro de busqueda\n\t\t$parametros = ['empleados' => $empleados, 'checadas' => $checadas, 'filtrosActivos' => $filtrosActivos, 'empleadosPorChecada' => $empleadosPorChecada];\n\t\treturn view('empleados_ct/buscar_checadas_ct')->with('parametros',$parametros);\n\t}", "public function queryAll($campos=\"*\",$criterio=\"\");", "public function listaEmpresa($autorizado,$empresa)\n {\n $conexao=Conexao::getConnection();\n $result=array();\n $sql =\"SELECT '' CodEmpresa,'=>Selecionar Empresa<=' Empresa \";\n $sql.=\"UNION ALL \";\n \n $sql.=\"SELECT DISTINCT \";\n $sql.=\" empresa.cod_empresa CodEmpresa ,des_empresa Empresa \";\n $sql.=\" FROM tb_setores_autorizados setorautorizado \";\n \n $sql.=\" inner join tb_empresas empresa on\";\n $sql.=\" setorautorizado.cod_empresa=empresa.cod_empresa \";\n \n \n if ($autorizado!=\"\")\n {\n $sql.= \" WHERE cod_autorizado=?\";\n $smtm=$conexao -> prepare($sql);\n \n $smtm->bindValue(1,$autorizado);\n \n }\n elseif ($codEmpresa != \"\" )\n {\n $sql.= \" WHERE cod_autorizado=? AND \";\n $sql.= \" cod_empresa =?\";\n \n $smtm=$conexao -> prepare($sql);\n \n $smtm->bindValue(1,$autorizado);\n $smtm->bindValue(2,$empresa);\n \n }\n \n $smtm->execute();\n $result=$smtm->fetchAll(PDO::FETCH_ASSOC);\n $conexao=null;\n\n $html=\"\";\n foreach ($result as $key=>$coluna){\n\n if ( $key=='' )\n {\n $html.='<option disabled selected value=\"'. $coluna[\"CodEmpresa\"] .'\">' .$coluna[\"Empresa\"] .\"</option>\"; \n }\n else\n {\n $html.='<option value=\"'. $coluna[\"CodEmpresa\"] .'\">' .$coluna[\"Empresa\"] .\"</option>\"; \n }\n }\n return $html;\n\n }", "public function filtroContrato($contrato){\n $path = '../python_scraper/ofertas_trabajo.json';\n $json = file_get_contents($path);\n $array = json_decode($json);\n\n $filtrado = array_filter($array, function($val) use ($contrato) { \n return $val -> contrato == $contrato;\n });\n\n return response() -> json($filtrado); \n }", "public function filterAndShow(Request $request)\n { \n \n $filter=$request['busqueda'];\n $sedes=Sede::where('nombre','LIKE','%'. $filter .'%')\n ->orwhere('telefono','LIKE','%'. $filter .'%')\n ->orwhere('departamento','LIKE','%'. $filter .'%')\n ->orwhere('provincia','LIKE','%'. $filter .'%')\n ->orwhere('distrito','LIKE','%'. $filter .'%')\n ->orwhere('direccion','LIKE','%'. $filter .'%')\n ->orwhere('referencia','LIKE','%'. $filter .'%')\n ->orwhere('nombre_contacto','LIKE','%'. $filter .'%')\n ->orwhere('capacidad_maxima','LIKE','%'. $filter .'%')\n ->orwhere('capacidad_socio','LIKE','%'. $filter .'%')\n ->orwhere('estado','LIKE','%'. $filter .'%')->get();\n \n return view('admin-general.sede.index', compact('sedes'));\n \n }", "function filtre($user,$valeur){\n\t\t\t\t\t\t\t//$employers = Employe::trouve_tous_filtre($taille,$diplome,$specialite,$wilaya,$groupe);\n\t\t\t\t\t\t\t$employers = Employe::trouve_recherche($valeur);\n\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\t\t\t\t\t\t\t\t</label></center>\n <div class=\"panel-body\">\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t<div class=\"scrollable0\" id=\"scrol\" > \n\t\t\t\t\t\t\t\t <table id=\"table0\" class=\"table table-responsive\" style=\"direction:rtl;text-align:left;marging-bottom:50px !important\" >\n\t\t\t\t\t\t\t\t\t\t\n <thead>\n <tr>\n\t\t\t\t\t\t\t\t\t\t\t<?php if($user->type==\"administrateur\"){?>\n <th >Mouvement</th>\n <th >Photo</th>\n\t\t\t\t\t\t\t\t\t\t\t\t<?php }?>\n\t\t\t\t\t\t\t\t\t\t\t\t<?php if($user->type==\"DGSS-RH\"){?>\n <th >Dossier</th>\n\t\t\t\t\t\t\t\t\t\t\t\t<?php }?>\n\t\t\t\t\t\t\t\t\t\t\t\t<th>Identitie juridique</th>\n\t\t\t\t\t\t\t\t\t\t\t\t<th>Type d'établissement</th>\n\t\t\t\t\t\t\t\t\t\t\t\t<th>Specialite</th>\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<th>Date de naissance</th>\n\t\t\t\t\t\t\t\t\t\t\t\t<th>Prenom d'employer </th>\n\t\t\t\t\t\t\t\t\t\t\t\t<th>Nom d'employer </th>\n\t\t\t\t\t\t\t\t\t\t\t\t<th>N°ord </th>\n \n </tr>\n </thead>\n\t\t\t\t\t\t\t\t\t\t <tbody>\n\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t$i1=1;\n\t\t\t\t\t\t\t\t\t$len = count($employers);\n\t\t\t\t\t\t\t\tforeach($employers as $employer){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif($employer->type_employe==-1){\n\t\t\t\t\t\t\t\t\t$erreur=0;\t\t\t$erreur1=0;\t$erreur2=0;$erreur3=0;$erreur4=0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n$date=date('Y');\t\n$date_n=substr($employer->date_nais_employe,0,4);\t\n\nif(($date-$date_n)<18 or ($date-$date_n)>70){\n$erreur1=1;\t\n}\t\t\t\t\n\tif($employer->diplome==0 ){\n$erreur2=2;\t\n}\nif($employer->specialite==0){\n$erreur3=3;\t\n}\nif($employer->type_etablissement==0){\n$erreur4=4;\t\n}\t\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t <strong><tr style=\"<?php if($erreur==1 or $erreur==2 or $erreur==3 or $erreur==4){ ?> color:#000; background:#0f9a1a2e; <?php }else {?>color:#000;background:#0f9a1a2e;<?php } ?>\" id =\"<?php echo htmlspecialchars_decode($employer->id_employe); ?>\"> \n\t\t\t\t\t\t\t\t\t\t\t<?php if($user->type==\"DGSS-RH\"){?>\n\t\t\t\t\t\t\t\t\t\t\t<td><a style=\"font-size:12px\" href=\"detail_employer.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Detail l'employé\">Detail </a></td>\n\t\t\t\t\t\t\t\t\t\t\t<?php }?>\n\n\t\t\t\t\t\t\t\t\t\t\t\t<?php if($user->type==\"administrateur\"){?>\n\t\t\t\t\t\t\t\t\t\t\t\t<td style=\"background:#0D9E1C\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"btn-group\" >\n\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\" style=\" width:150px;color:green\"><i class=\"fa fa-cog\" ></i><b> Gestion Dossier</b> </button>\n <ul class=\"dropdown-menu\" role=\"menu\" style=\"\">\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<li><a style=\"font-size:12px\" href=\"ajouter_autre_employe.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Ajouter autre employés a cette structure \">Ajouter</a></li>\n\t\t\t\t\t\t\t\t\t\t\t\t<li> <a style=\"font-size:12px\" href=\"edit_employer_pere.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Modifier l'employé\"> Modifier</a></li>\n\t\t\t\t\t\t\t\t\t\t\t\t<li><a style=\"font-size:12px\" href=\"affiliation.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Photo et affiliation\">Photo et affiliation </a></li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<li><a style=\"font-size:12px\" href=\"transfere.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Transfère de locale\">Transfère </a></li>\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<li><a style=\"font-size:12px\" href=\"detail_employer.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Detail l'employé\">Detail </a></li>\n\t\t\t\t\t\t\t\t\t\t\t\t<li><a style=\"font-size:12px\" onClick=\"delete_row('<?php echo $employer->id_employe;?>');change_message_per();\" target=\"_blank\" data-toggle=\"tooltip\" title=\"archivé l'employé\">Classé</a></li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><a style=\"font-size:12px\" href=\"fin_relation.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Fin de relation de travail\">Fin de Contrat </a></li>\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t <?php }?>\n\t\t\t\t\t\t\t\t\t\t\t \t <td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<?php \n\t\t\t\t\t\t\t\t\t\t\t\t\t$src_photo=\"\";\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($affiliation=Affiliation::trouve_par_id($employer->id_employe))\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\t$src_photo=\"doc_pdf/\".$affiliation->photo;\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<img class='img-responcive pull-right' type='image' id='photo' src='<?php if($src_photo!=''){ echo $src_photo; } else { ?> http://placehold.it/100 <?php } ?>' width='40' height='40' onClick='affiche(this)'/>\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</td> \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 <td> <?php echo $employer->identite_jurdique; ?></td>\n\t\t\t\t\t\t\t\t\t\t\t\t <td <?php if($erreur4==4){ ?> style=\"background:red;color:#fff;text-align:center \" <?php } ?>>\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<?php\n\t\t\t\t\t\t\t\t\t\t\t\tif($etablissement=Etablissement::trouve_par_id($employer->type_etablissement))\n\t\t\t\t\t\t\t\t\t\t\t\techo stripcslashes(htmlspecialchars_decode($etablissement->type_etab)); else echo \"VIDE\"; ?></td>\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 <td <?php if($erreur3==3){ ?> style=\"background:red;color:#fff;text-align:center \" <?php } ?> > <?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif($specialite=Specialite::trouve_par_id($employer->specialite))\n\t\t\t\t\t\t\t\t\t\t\t\t\techo (htmlspecialchars_decode($specialite->nom_specialite)); else echo \"VIDE\"; ?></td>\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 <td <?php if($erreur1==1 and $employer->nais_valide==0){ ?> style=\"color:#fff; background:red;\" <?php } ?>><?php echo htmlspecialchars_decode($employer->date_nais_employe); ?></td>\n <td><?php echo htmlspecialchars_decode($employer->prenom_employe); ?></td> \n\t\t\t\t\t\t\t\t\t\t\t <td><?php echo htmlspecialchars_decode($employer->nom_employe); ?></td>\n\n\t\t\t\t\t\t\t\t\t\t\t<td><?php echo $i1; ?></td>\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\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\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\n \n \n \n </tr></strong>\n\t\t\t\t\t\t\t\t\t<?php ++$i1; }\n\n if($employer->type_employe==0){\n\t\t\t\t\t\t\t\t\t $erreur=0;\t\t$erreur1=0;\t$erreur2=0;$erreur3=0;$erreur4=0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n$date=date('Y');\t\n$date_n=substr($employer->date_nais_employe,0,4);\t\n\nif(($date-$date_n)<18 or ($date-$date_n)>70){\n$erreur1=1;\t\n}\t\t\t\t\n\tif($employer->diplome==0 ){\n$erreur2=2;\t\n}\nif($employer->specialite==0){\n$erreur3=3;\t\n}\nif($employer->type_etablissement==0){\n$erreur4=4;\t\n}\t\n\t?>\n\t\t\t\t\t\t\t\t\t\t <b><tr style=\" <?php if($erreur==1 or $erreur==2 or $erreur==3 or $erreur==4){ ?> color:#000; background:#0f9a1a2e; <?php }else { ?> color:#000;background:#0f9a1a2e; <?php } ?>\" id =\"<?php echo htmlspecialchars_decode($employer->id_employe); ?>\"> \n\t\t\t\t\t\t\t\t\t\t\t<?php if($user->type==\"DGSS-RH\"){?>\n\t\t\t\t\t\t\t\t\t\t\t<td><a style=\"font-size:12px\" href=\"detail_employer.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Detail l'employé\">Detail </a></td>\n\t\t\t\t\t\t\t\t\t\t\t<?php }?>\n\t\t\t\t\t\t\t\t\t\t\t<?php if($user->type == 'administrateur'){?>\n\t\t\t\t\t\t\t\t\t\t\t<td style=\"background:#0D9E1C\">\n\t\t\t\t\t\t\t\t\t\t\t <span>\n\t\t\t\t\t\t\t\t\t\t\t <div class=\"btn-group\" >\n\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\" style=\" width:150px;color:green\"><i class=\"fa fa-cog\" ></i><b> Gestion Dossier</b> </button>\n <ul class=\"dropdown-menu\" role=\"menu\" style=\"\">\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<li><a style=\"font-size:12px\" href=\"ajouter_autre_employe.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Ajouter autre employés a cette structure \">Ajouter</a></li>\n\n\t\t\t\t\t\t\t\t\t\t\t\t<li><a style=\"font-size:12px\" href=\"edit_employer.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Modifier l'employé\">Modifier</a></li>\n\t\t\t\t\t\t\t\t\t\t\t\t<li><a style=\"font-size:12px\" href=\"affiliation.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Photo et affiliation\">Photo et affiliation </a></li>\n \n\t\t\t\t\t\t\t\t\t\t\t\t\t<li><a style=\"font-size:12px\" href=\"transfere.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Transfère de locale\">Transfère </a></li>\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<li><a style=\"font-size:12px\" href=\"detail_employer.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Detail l'employé\">Detail </a></li>\n\t\t\t\t\t\t\t\t\t\t\t\t <li><a style=\"font-size:12px\" onClick=\"delete_row('<?php echo $employer->id_employe;?>');change_message();\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Classé l'employé\">Classé</a></li>\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><a style=\"font-size:12px\" href=\"fin_relation.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Fin de relation de travail\">Fin de Contrat </a></li>\n\t\t\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<?php }?>\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t <td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<?php \n\t\t\t\t\t\t\t\t\t\t\t\t\t$src_photo=\"\";\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($affiliation=Affiliation::trouve_par_id($employer->id_employe))\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\t$src_photo=\"doc_pdf/\".$affiliation->photo;\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<img class='img-responcive pull-right' type='image' id='photo' src='<?php if($src_photo!=''){ echo $src_photo; } else { ?> http://placehold.it/100 <?php } ?>' width='40' height='40' onClick='affiche(this)'/>\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</td> \t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t <td> <?php echo $employer->identite_jurdique; ?></td>\n\t\t\t\t\t\t\t\t\t\t\t <td <?php if($erreur4==4){ ?> style=\"background:red;color:#fff;text-align:center \" <?php } ?>>\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<?php\n\t\t\t\t\t\t\t\t\t\t\t\tif($etablissement=Etablissement::trouve_par_id($employer->type_etablissement))\n\t\t\t\t\t\t\t\t\t\t\t\techo stripcslashes(htmlspecialchars_decode($etablissement->type_etab)); else echo \"VIDE\"; ?></td>\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 <td <?php if($erreur3==3){ ?> style=\"background:red;color:#fff;text-align:center \" <?php } ?> > <?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif($specialite=Specialite::trouve_par_id($employer->specialite))\n\t\t\t\t\t\t\t\t\t\t\t\t\techo (htmlspecialchars_decode($specialite->nom_specialite)); else echo \"VIDE\"; ?></td>\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 <td <?php if($erreur1==1 and $employer->nais_valide==0){ ?> style=\"color:#fff; background:red;\" <?php } ?>><?php echo htmlspecialchars_decode($employer->date_nais_employe); ?></td>\n <td><?php echo htmlspecialchars_decode($employer->prenom_employe); ?></td> \n\t\t\t\t\t\t\t\t\t\t\t<td><?php echo htmlspecialchars_decode($employer->nom_employe); ?></td>\n\n\t\t\t\t\t\t\t\t\t\t\t<td><?php echo $i1;?></td>\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\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 \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\n\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 \n \n \n \n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t++$i1;\n}\n\n\n if($employer->type_employe!=0 && $employer->type_employe!=-1){\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\n\t\t\t\t\t\t\t\t\t\t\t\n\t$erreur1=0;\t$erreur2=0;$erreur3=0;$erreur4=0;$erreur=0;\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n$date=date('Y');\t\n$date_n=substr($employer->date_nais_employe,0,4);\t\n\nif(($date-$date_n)<18 or ($date-$date_n)>70){\n$erreur1=1;\t\n}\t\t\t\t\n\tif($employer->diplome==0 ){\n$erreur2=2;\t\n}\nif($employer->specialite==0){\n$erreur3=3;\t\n}\nif($employer->type_etablissement==0){\n$erreur4=4;\t\n}\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t?>\n \n <tr style=\"<?php if($erreur==1 or $erreur==2 or $erreur==3 or $erreur==4){ ?> color:#000; background:#fff; <?php }else {?> color:#000; background:#fff;<?php } ?> \" id =\"<?php echo htmlspecialchars_decode($employer->id_employe); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t <?php if($user->type==\"DGSS-RH\"){?>\n\t\t\t\t\t\t\t\t\t\t\t<td><a style=\"font-size:12px\" href=\"detail_employer.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Detail l'employé\">Detail </a></td>\n\t\t\t\t\t\t\t\t\t\t\t<?php }?>\n\t\t\t\t\t\t\t\t\t\t\t <?php if($user->type == 'administrateur'){?>\n\t\t\t\t\t\t\t\t\t\t\t <td style=\"background:#0D9E1C\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"btn-group\" >\n\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\" style=\" width:150px;color:green\"><i class=\"fa fa-cog\" ></i><b> Gestion Dossier</b> </button>\n <ul class=\"dropdown-menu\" role=\"menu\" >\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 <li> <a style=\"font-size:12px\" href=\"edit_employer.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Modifier l'employé\">Modifier</a></li>\n\t\t\t\t\t\t\t\t\t\t\t <li><a style=\"font-size:12px\" href=\"affiliation.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Photo et affiliation\">Photo et affiliation </a></li>\n \t<li><a style=\"font-size:12px\" href=\"detail_employer.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Detail l'employé\">Detail </a></li>\n <li><a style=\"font-size:12px\" onClick=\"delete_row('<?php echo $employer->id_employe;?>');change_message();\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Classé l'employé\">Classé</a></li>\n\t\t\t\t\t\t\t<li><a style=\"font-size:12px\" href=\"fin_relation_fis.php?id_employe=<?php echo $employer->id_employe;?>\" target=\"_blank\" data-toggle=\"tooltip\" title=\"Fin de relation de travail\">Fin de Contrat </a></li>\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</ul>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<?php }?>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<?php \n\t\t\t\t\t\t\t\t\t\t\t\t\t$src_photo=\"\";\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($affiliation=Affiliation::trouve_par_id($employer->id_employe))\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\t$src_photo=\"doc_pdf/\".$affiliation->photo;\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<img class='img-responcive pull-right' type='image' id='photo' src='<?php if($src_photo!=''){ echo $src_photo; } else { ?> http://placehold.it/100 <?php } ?>' width='40' height='40' onClick='affiche(this)'/>\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</td> \n\t\t\t\t\t\t\t\t\t\t\t\t<td> <?php echo $employer->identite_jurdique; ?></td>\n\t\t\t\t\t\t\t\t\t\t\t <td <?php if($erreur4==4){ ?> style=\"background:red;color:#fff;text-align:center \" <?php } ?>>\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<?php\n\t\t\t\t\t\t\t\t\t\t\t\tif($etablissement=Etablissement::trouve_par_id($employer->type_etablissement))\n\t\t\t\t\t\t\t\t\t\t\t\techo stripcslashes(htmlspecialchars_decode($etablissement->type_etab)); else echo \"VIDE\"; ?></td>\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 <td <?php if($erreur3==3){ ?> style=\"background:red;color:#fff;text-align:center \" <?php } ?> > <?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif($specialite=Specialite::trouve_par_id($employer->specialite))\n\t\t\t\t\t\t\t\t\t\t\t\t\techo (htmlspecialchars_decode($specialite->nom_specialite)); else echo \"VIDE\"; ?></td>\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 <td <?php if($erreur1==1 and $employer->nais_valide==0){ ?> style=\"color:#fff; background:red;\" <?php } ?>><?php echo htmlspecialchars_decode($employer->date_nais_employe); ?></td>\n <td><?php echo htmlspecialchars_decode($employer->prenom_employe); ?></td> \n\t\t\t\t\t\t\t\t\t\t\t <td><?php echo htmlspecialchars_decode($employer->nom_employe); ?></td>\n\t\t\t\t\t\t\t\t\t\t\t<td><?php echo $i1; ?></td>\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\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 \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\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t \n \n \n \n \n </tr>\n <?php\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t++$i1;\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\t}\n\t\t\t\t\t\t\t\t/*if($i1>=$len-1){\n\t\t\t\t\t\t\t\techo \"<script> alert(\".$i1.\");</script>\";\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif($i1<$len-1){\n\t\t\t\t\t\t\t//\techo \"<script> document.getElementById('mb-load').style.visibility='visible';</script>\";\t\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t\n ?> \n </tbody>\n\t\t\t\t\t\t\t\t\t\t\n </table>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n<?php \n\n}", "public function filter();", "function simbolos_por_palabra_con_filtro($palabra,$id_tipo_palabra,$id_tipo_simbolo,$registrado,$marco,$contraste,$tipo_letra,$mayusculas,$minusculas,$castellano,$ruso,$rumano,$arabe,$chino,$bulgaro,$polaco,$ingles,$frances,$catalan) {\n\t\n\t\tif ($registrado==false) {\n\t\t\t$mostrar_registradas=\"AND simbolos.registrado=0\";\n\t\t}\n\t\t\n\t\tif ($tipo_letra==99) { $sql_tipo_letra=''; } \n\t\telse { $sql_tipo_letra='AND (simbolos.sup_font='.$tipo_letra.' OR simbolos.inf_font='.$tipo_letra.')'; }\n\t\t\n\t\tif ($minusculas == 1 && $mayusculas == 1) {\n\t\t \t$sql_mayusculas='AND (simbolos.inf_mayusculas=1 OR simbolos.inf_mayusculas=0)';\n\t\t} elseif ($minusculas == 1) { \n\t\t $sql_mayusculas='AND (simbolos.inf_mayusculas=0)';\n\t\t} elseif ($mayusculas == 1) { \n\t\t\t$sql_mayusculas='AND (simbolos.inf_mayusculas=1)';\n\t\t} elseif ($minusculas == 0 && $mayusculas == 0) { \n\t\t\t$sql_mayusculas='AND (simbolos.inf_mayusculas=1 OR simbolos.inf_mayusculas=0)';\n\t\t}\n\t\t\n\t\t\n\t\tif ($castellano==0 &&($ruso==1 || $rumano==1 || $arabe==1 || $chino==1 || $bulgaro==1 || $polaco==1 || $ingles==1 || $frances==1 || $catalan==1)) { \n\t\t\n\t\t\t$sql_idioma_superior='AND simbolos.sup_con_texto=0 ';\n\t\t\t$sql_idioma_inferior='AND (simbolos.inf_idioma=99999 ';\n\t\t\t\t\tif ($castellano==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=0 '; } \n\t\t\t\t\tif ($ruso==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=1 '; } \n\t\t\t\t\tif ($rumano==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=2 '; } \n\t\t\t\t\tif ($arabe==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=3 '; } \n\t\t\t\t\tif ($chino==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=4 '; } \n\t\t\t\t\tif ($bulgaro==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=5 '; } \n\t\t\t\t\tif ($polaco==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=6 '; } \n\t\t\t\t\tif ($ingles==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=7 '; }\n\t\t\t\t\tif ($frances==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=8 '; }\n\t\t\t\t\tif ($catalan==1) { $sql_idioma_inferior.='OR simbolos.inf_idioma=9 '; } \n\t\t\t$sql_idioma_inferior.= ' )';\n\t\t\t$sql_tipo_letra=''; \t\t\t\n\t\t\n\t\t} elseif ($castellano==1) { \n\t\t\n\t\t\tif ($ruso==1 || $rumano==1 || $arabe==1 || $chino==1 || $bulgaro==1 || $polaco==1 || $ingles==1 || $frances==1 || $catalan==1) {\n\t\t\t\n\t\t\t$sql_idioma_inferior='AND simbolos.inf_idioma=0 ';\n\t\t\t$sql_idioma_superior='AND (simbolos.inf_idioma=99999 ';\n\t\t\t\t\tif ($ruso==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=1 '; } \n\t\t\t\t\tif ($rumano==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=2 '; } \n\t\t\t\t\tif ($arabe==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=3 '; } \n\t\t\t\t\tif ($chino==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=4 '; } \n\t\t\t\t\tif ($bulgaro==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=5 '; } \n\t\t\t\t\tif ($polaco==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=6 '; } \n\t\t\t\t\tif ($ingles==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=7 '; }\n\t\t\t\t\tif ($frances==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=8 '; }\n\t\t\t\t\tif ($catalan==1) { $sql_idioma_superior.='OR simbolos.sup_idioma=9 '; } \n\t\t\t$sql_idioma_superior.= ' )';\n\t\t\t\n\t\t\t} elseif ($ruso==0 && $rumano==0 && $arabe==0 && $chino==0 && $bulgaro==0 && $polaco==0 && $ingles==0 && $frances==0 && $catalan==0) {\n\t\t\t\n\t\t\t\t$sql_idioma_superior='AND simbolos.sup_con_texto=0 ';\n\t\t\t\t$sql_idioma_inferior='AND simbolos.inf_idioma=0 ';\n\t\t\t\n\t\t\t}\n\t\t\n\t\t} elseif ($castellano==0 && $ruso==0 && $rumano==0 && $arabe==0 && $chino==0 && $bulgaro==0 && $polaco==0 && $ingles==0 && $frances==0 && $catalan==0) {\n\t\t\n\t\t\t$sql_idioma_inferior='';\n\t\t\t$sql_idioma_inferior='';\n\t\t}\n\t\t\n\t\tif ($id_tipo_palabra==99) { $sql_tipo_palabra=''; } \n\t\telse { $sql_tipo_palabra='AND palabras.id_tipo_palabra='.$id_tipo_palabra.''; }\n\t\t\n\t\tif ($marco==99) { $sql_marco=''; } \n\t\telse { $sql_marco='AND simbolos.marco='.$marco.''; }\n\t\t\n\t\tif ($contraste==99) { $sql_contraste=''; } \n\t\telse { $sql_contraste='AND simbolos.contraste='.$contraste.''; }\n\t\t\n\t\tif ($id_tipo_simbolo==99) { $sql_tipo_simbolo='AND simbolos.id_tipo_simbolo=tipos_simbolos.id_tipo'; } \n\t\telse { $sql_tipo_simbolo='AND simbolos.id_tipo_simbolo='.$id_tipo_simbolo.' AND tipos_simbolos.id_tipo='.$id_tipo_simbolo.''; }\n\t\t\n\t\t$query = \"SELECT simbolos.*, palabras.*, tipos_simbolos.*\n\t\tFROM simbolos, palabras, tipos_simbolos\n\t\tWHERE simbolos.id_palabra=palabras.id_palabra\n\t\tAND palabras.palabra LIKE '%$palabra%'\n\t\t$sql_tipo_simbolo\n\t\t$sql_tipo_palabra\n\t\t$sql_marco\n\t\t$sql_contraste\n\t\t$sql_tipo_letra\n\t\t$sql_mayusculas\n\t\t$sql_idioma_inferior\n\t\t$sql_idioma_superior\n\t\t$mostrar_registradas\n\t\tORDER BY palabras.palabra asc\";\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 searchAReajustar() {\n // should not be searched.\n \n $nombre = \"\";\n $apellido = \"\";\n $nombres = explode(\" \",$this->cliente_nombre);\n if(count($nombres) == 1){\n $nombre = $this->cliente_nombre;\n $apellido = $this->cliente_nombre;\n }\n elseif(count($nombres) == 2){\n $nombre = $nombres[0];\n $apellido = $nombres[1];\n }\n \n $criteria = new CDbCriteria;\n $criteria->with = array('departamento', 'tipoContrato', 'cliente');\n $criteria->join .= 'join departamento as d on d.id = t.departamento_id '\n . ' join propiedad as p on p.id = d.propiedad_id'\n . ' join tipo_contrato as tipo on tipo.id = t.tipo_contrato_id '\n . ' join cliente as c on c.id = t.cliente_id '\n . ' join usuario as u on u.id = c.usuario_id ';\n \n $arreglo = explode(\" \",$this->cliente_nombre);\n $nombreApellido = array();\n foreach($arreglo as $palabra){\n if(trim($palabra)!= ''){\n $nombreApellido[]=$palabra;\n }\n }\n $criteriaNombreUser1 = new CDbCriteria();\n $palabras = count($nombreApellido);\n if($palabras == 1){\n $busqueda = $nombreApellido[0];\n if(trim($busqueda) != ''){\n $criteriaNombreUser1->compare('u.nombre',$busqueda,true);\n $criteriaNombreUser1->compare('u.apellido',$busqueda,true,'OR');\n }\n }\n\n if($palabras == 2){\n $nombre = $nombreApellido[0];\n $apellido = $nombreApellido[1];\n $criteriaNombreUser1->compare('u.nombre',$nombre,true);\n $criteriaNombreUser1->compare('u.apellido',$apellido,true);\n }\n\n $criteria->compare('folio', $this->folio);\n $criteria->mergeWith($criteriaNombreUser1,'AND');\n \n $criteria->compare('fecha_inicio', Tools::fixFecha($this->fecha_inicio), true);\n $criteria->compare('p.nombre', $this->propiedad_nombre, true);\n $criteria->compare('d.numero', $this->depto_nombre, true);\n $criteria->compare('c.rut', $this->cliente_rut, true);\n $criteria->compare('t.vigente', 1);\n //$criteria->compare('t.reajusta', 1);\n \n \n if(Yii::app()->user->rol == 'cliente'){\n $cliente = Cliente::model()->findByAttributes(array('usuario_id'=>Yii::app()->user->id));\n if($cliente!=null){\n $criteria->compare('t.cliente_id',$cliente->id);\n }\n else{\n $criteria->compare('t.cliente_id',-1);\n }\n }\n \n $criteriaReajustan = new CDbCriteria();\n $reajustan = $this->reajustanProximoMes();\n $criteriaReajustan->addInCondition('t.id', $reajustan);\n $criteria->mergeWith($criteriaReajustan,'AND');\n \n \n if(Yii::app()->user->rol == 'propietario'){\n $criteriaPropietario = new CDbCriteria();\n $contratos = Contrato::model()->relacionadosConPropietario(Yii::app()->user->id);\n foreach($contratos as $contrato_id){\n $criteriaPropietario->compare('t.id', $contrato_id, false,'OR'); \n }\n $criteria->mergeWith($criteriaPropietario,'AND');\n }\n \n \n \n \n \n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'sort' => array(\n 'attributes' => array(\n 'depto_nombre' => array(\n 'asc' => 'd.numero',\n 'desc' => 'd.numero DESC',\n ),\n 'tipo_nombre' => array(\n 'asc' => 'tipo.nombre',\n 'desc' => 'tipo.nombre DESC',\n ),\n 'cliente_rut' => array(\n 'asc' => 'c.rut',\n 'desc' => 'c.rut DESC',\n ),\n 'cliente_nombre' => array(\n 'asc' => 'u.apellido,u.nombre',\n 'desc' => 'u.apellido DESC,u.nombre DESC',\n ),\n 'propiedad_nombre' => array(\n 'asc' => 'p.nombre',\n 'desc' => 'p.nombre DESC',\n ),\n '*',\n ),\n ),\n ));\n }", "public function examenes_aplicarFiltrosExamenes($fechaInicial, $fechaFinal, $usuarios, $idExamen, $idPropietario, $paciente){\n \t\n\t\t\t$resultado = array();\n\t\t\t//$adicionQuery = \"WHERE 1 \";\n\t\t\t\n\t\t\tif($idExamen != '0'){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$adicionQuery = \" INNER JOIN tb_examenDetalle AS DE ON DE.idExamen = E.idExamen\n\t\t\t\t\t\t\t\t INNER JOIN tb_listadoExamenes AS LE ON LE.idListadoExamen = DE.idListadoExamen\n\t\t\t\t\t\t\t\t WHERE LE.idListadoExamen = '$idExamen' \";\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}else{\n\t\t\t\t$adicionQuery = \"WHERE 1 \";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tif($usuarios != \"\"){\t\t\t\t\n\t\t\t\t\n\t\t\t\t$adicionQuery = \" AND E.idUsuario = '$usuarios' \";\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif($fechaInicial != \"\" AND $fechaFinal != \"\"){\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \"AND ( E.fecha BETWEEN '$fechaInicial' AND '$fechaFinal')\";\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\n\t\t\tif($idPropietario != \"0\"){\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \" AND P.idPropietario = '$idPropietario' \";\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif($paciente != \"\"){\n\t\t\t\t\n\t\t\t\t$adicionQuery .= \" AND E.idMascota = '$paciente' \";\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t$query = \" SELECT \n\t\t\t\t\t\t\tE.idExamen, \n\t\t\t\t\t\t\tE.fecha,\n\t\t\t\t\t\t\tDATE_FORMAT(E.hora, '%H:%i') AS hora,\n\t\t\t\t\t\t\tE.observaciones,\n\t\t\t\t\t\t\tE.idMascota,\n\t\t\t\t\t\t\tE.idUsuario,\n\t\t\t\t\t\t\tE.idSucursal,\n\t\t\t\t\t\t\tM.nombre AS nombreMascota,\n\t\t\t\t\t\t M.sexo AS sexoMascota,\n\t\t\t\t\t\t P.identificacion AS identificacionPropietario,\n\t\t\t\t\t\t P.nombre AS nombrePropietario,\n\t\t\t\t\t\t P.apellido AS apellidoPropietario,\n\t\t\t\t\t\t P.telefono,\n\t\t\t\t\t\t SU.nombre AS nombreSucursal,\n\t\t\t\t\t\t U.nombre AS nombreUsuario,\n\t\t\t\t\t\t U.apellido AS apellidoUsuario\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t tb_examenes AS E\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_mascotas AS M ON E.idMascota = M.idMascota\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_propietarios AS P ON P.idPropietario = M.idPropietario\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_sucursales AS SU ON SU.idSucursal = E.idSucursal\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_usuarios AS U ON U.idUsuario = E.idUsuario\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t\".$adicionQuery.\"\n\t\t\t\t\t\t\n\t\t\t\t\t\tGROUP BY (E.idExamen)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tORDER BY (E.idExamen) DESC; \";\n\t\t\t\t\t\t\n\t\t\t$conexion = parent::conexionCliente();\n\t\t\t\n\t\t\tif($res = $conexion->query($query)){\n\t \n\t /* obtener un array asociativo */\n\t while ($filas = $res->fetch_assoc()) {\n\t $resultado[] = $filas;\n\t }\n\t \n\t /* liberar el conjunto de resultados */\n\t $res->free();\n\t \n\t }\n\t\n\t return $resultado;\n\t\t\t\n\t\t\t\n }", "function inasistencias($filtro){\n\t\t\tif(empty($filtro))\n\t\t\t\treturn FALSE;\n\t\t\t\t\n\t\t\t$sql = \"\";\n\t\t\tif(isset($filtro['cedula'])){\n\t\t\t\treturn TAsistencia::inasistenciasPorEstudiante($filtro['cedula']);\n\t\t\t}elseif(isset($filtro['cod_programa'])){\n\t\t\t\t$cod_programa = q($filtro['cod_programa']);\n\t\t\t\t$sql = \" SELECT cedula, fullname, genero, edad(fecha_nacimiento), \".\n\t\t\t\t\t\t\t\t \" a.telefono, a.tel_celular, cod_curso, nombre_curso, cod_motivo, inasistencias \".\n\t\t\t\t\t\t\t \" FROM vi_inasistencias JOIN a_persona a USING(cedula)\".\n\t\t\t\t\t\t\t \" WHERE cod_programa = '$cod_programa'\";\n\t\t\t\t\t\t\t\t\n\t\t\t}elseif(isset($filtro['cod_curso'])){\n\t\t\t\t$cod_curso = q($filtro['cod_curso']);\n\t\t\t\t$sql = \" SELECT cedula, fullname, genero, edad(fecha_nacimiento),\".\n\t\t\t\t\t\t\t\t \" a.telefono, tel_celular, cod_motivo, inasistencias \".\n\t\t\t\t\t\t\t \" FROM vi_inasistencias JOIN a_persona a USING(cedula) \".\n\t\t\t\t\t\t\t \" WHERE cod_curso = '$cod_curso'\";\n\t\t\t}\n\t\t\t$estudiantes = DB::table_query($sql);\n\t\t\tif($estudiantes == null)\n\t\t\treturn array();\n\t\t\n\t\t\t$reporte = array();\n\t\t\tforeach($estudiantes as $estudiante){\n\t\t\t\t$cedula = $estudiante['cedula'];\n\t\t\t\tif(!isset($reporte[$cedula])){\n\t\t\t\t\t$reporte[$cedula] = subarray($estudiante,'fullname','telefono','genero','edad', 'tel_celular');\n\t\t\t\t\t$reporte[$cedula]['inasistencias'] = array();\n\t\t\t\t\tif(isset($estudiante['cod_curso'])){\n\t\t\t\t\t\t$reporte[$cedula]['cod_curso'] = $estudiante['cod_curso'];\n\t\t\t\t\t\t$reporte[$cedula]['nombre_curso'] = $estudiante['nombre_curso'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$reporte[$cedula]['inasistencias'][$estudiante['cod_motivo']] = $estudiante['inasistencias'];\n\t\t\t}\n\t\t\treturn $reporte;\n\t\t}", "public function inicializacionBusqueda()\r\n {\r\n $dataEmpCli = array();\r\n $filterEmpCli = array();\r\n\r\n try {\r\n\r\n foreach ($this->getEmpresaTable()->getEmpresaProvReport() as $empresa) {\r\n $dataEmpCli[$empresa->id] = $empresa->NombreComercial.' - '.$empresa->RazonSocial.' - '.$empresa->Ruc;\r\n $filterEmpCli[$empresa->id] = [$empresa->id];\r\n }\r\n\r\n } catch (\\Exception $ex) {\r\n $dataEmpCli = array();\r\n }\r\n\r\n $formulario['prov'] = $dataEmpCli;\r\n $filtro['prov'] = array_keys($filterEmpCli);\r\n return array($formulario, $filtro);\r\n }", "public function index(Request $request)\n {\n $vista=\"empresa\";\n if ($request)\n {\n $query=trim($request->get('searchText'));\n $empresa=DB::table('Empresa')->where('Nombre','LIKE','%'.$query.'%')\n ->where('condicion','=','1')\n ->orderBy('ID_empresa','asc')\n -> paginate(14);\n return view('revolution.empresa.index',[\"empresa\"=>$empresa,\"searchText\"=>$query])->with('vista',$vista);\n }\n \n }", "public function getVPOperationUsers($filter = array())\n {\n //$vp_ops_dept = 54;\n $vp_ops_dept = $this->em->getRepository(\"HrisAdminBundle:JobTitle\")->findBy(array('name'=> 'VP Operations'));\n \n $query = 'select d from HrisWorkforceBundle:Employee d where d.job_title = :code';\n $opts = $this->em ->createQuery($query)\n ->setParameter('code', $vp_ops_dept) \n ->getResult();\n\n $list_opts = array();\n foreach ($opts as $item)\n $list_opts[$item->getID()] = $item->getFirstName().' '.$item->getLastName();\n\n return $list_opts;\n }", "public function getFilterPatient(Request $request)\n {\n $search='%'.$request->search.'%';\n $patient = Patient::leftJoin('triaje', 'paciente_id_paciente', '=','paciente.id_paciente')\n ->select('paciente.*' ,'triaje.fech_update')\n ->where('paciente.pac_name', 'like', $search)\n ->orderBy('id_paciente', 'desc')\n ->paginate(10);\n return $patient;\n }", "public function CleanFilter(){\n\t\t$this->_objectFilter = new Model_Aclusuariosonline();\n\t}", "public function resultados($bus){\n $this->busqueda=$bus;\n $this->consulta= $this->con->query(\"SELECT * FROM usuarios WHERE apellido like '%$this->busqueda%'\");\n if($this->busqueda==''){\n \n }else{\n \n \n ?>\n <table class=\"table table-bordered table-striped table-hover\">\n <thead>\n <tr class=\"bg-blue\">\n <th>APELLIDO Y NOMBRE</th>\n <th>DNI</th>\n <th>EDAD</th>\n <th>DIRECCIÓN</th>\n <th>CONTACTO</th>\n </tr>\n </thead>\n <tbody>\n <?php\n while($this->datos= $this->consulta->fetch_array()){\n ?>\n <tr>\n <td><?php echo $this->datos['apellido'].', '.$this->datos['nombre'] ?></td>\n <td><?php echo $this->datos['dni']?></td>\n <td><?php echo $this->datos['edad'] ?></td>\n <td><?php echo $this->datos['domicilio'] ?></td>\n <td><?php echo $this->datos['email']?></td>\n </tr>\n <?php\n }\n ?>\n </tbody>\n </table> \n <?php \n } \n }", "public function getPresidentUsers($filter = array())\n {\n //$vp_ops_dept = 54;\n $vp_ops_dept = $this->em->getRepository(\"HrisAdminBundle:JobTitle\")->findBy(array('name'=> 'President/CEO'));\n \n $query = 'select d from HrisWorkforceBundle:Employee d where d.job_title = :code';\n $opts = $this->em ->createQuery($query)\n ->setParameter('code', $vp_ops_dept) \n ->getResult();\n\n $list_opts = array();\n foreach ($opts as $item)\n $list_opts[$item->getID()] = $item->getFirstName().' '.$item->getLastName();\n\n return $list_opts;\n }", "private function loadOfferFilters() {\n\n // buscando usuários\n $companyId = $this->Session->read('CompanyLoggedIn.Company.id');\n $params = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n 'CompaniesUser.user_id'\n ),\n 'conditions' => array(\n 'CompaniesUser.company_id' => $companyId,\n 'CompaniesUser.status' => 'ACTIVE'\n )\n )\n );\n $userIds = $this->Utility->urlRequestToGetData('companies', 'list', $params);\n\n if (!empty($userIds) && empty($userIds ['status'])) {\n $_SESSION ['addOffer'] ['userIds'] = $userIds;\n\n // conta público alvo\n $this->offerFilters ['target'] = count($userIds);\n\n // busca os filtros\n foreach ($this->offerFilters as $key => $value) {\n if ($key == 'gender') {\n $Paramsgenero = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n \"COUNT(User.id) AS count\",\n \"User.gender AS filter\"\n ),\n 'group' => array(\n \"User.gender\"\n ),\n 'conditions' => array(\n 'CompaniesUser.company_id' => $companyId,\n 'CompaniesUser.status' => 'ACTIVE'\n ),\n 'order' => array(\n 'COUNT(User.id)' => 'DESC'\n )\n ),\n 'User' => array()\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $Paramsgenero);\n } else if ($key == 'age_group') {\n // busca faixa etária\n $query = \"SELECT\n\t\t\t\t\t SUM(IF(age < 20,1,0)) AS '{$this->ageGroupRangeKeys['0_20']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 20 AND 29,1,0)) AS '{$this->ageGroupRangeKeys['20_29']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 30 AND 39,1,0)) AS '{$this->ageGroupRangeKeys['30_39']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 40 AND 49,1,0)) AS '{$this->ageGroupRangeKeys['40_49']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 50 AND 59,1,0)) AS '{$this->ageGroupRangeKeys['50_59']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 60 AND 120,1, 0)) AS '{$this->ageGroupRangeKeys['60_120']}',\n\t\t\t\t\t SUM(IF(age >= 121, 1, 0)) AS '{$this->ageGroupRangeKeys['empty']}'\n\t\t\t\t\t\tFROM (SELECT YEAR(CURDATE())-YEAR(birthday) AS age FROM users as a, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcompanies_users as b where a.id=b.user_id and b.status='ACTIVE' and b.company_id = {$this->Session->read('CompanyLoggedIn.Company.id')}) AS derived\";\n\n $filterParams = array(\n 'FacebookProfile' => array(\n 'query' => $query\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'query', $filterParams);\n } else {\n $filterParams = array(\n 'FacebookProfile' => array(\n 'fields' => array(\n \"COUNT(FacebookProfile.{$key}) AS count\",\n \"FacebookProfile.{$key} AS filter\"\n ),\n 'conditions' => array(\n 'FacebookProfile.user_id' => $userIds\n ),\n 'group' => array(\n \"FacebookProfile.{$key}\"\n ),\n 'order' => array(\n \"FacebookProfile.{$key}\" => 'ASC'\n )\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $filterParams);\n }\n if (!empty($filter) && empty($filter ['status'])) {\n $this->offerFilters [$key] = $this->formatOfferFilters($filter);\n }\n }\n return $this->offerFilters;\n } else {\n $this->Session->setFlash('Houve um problema para carregar os filtros. Tente novamente.');\n }\n }", "function filter_TREPORTE_By_S_A_F($SEDE, $AREA, $FACULTAD, $state, $row, $index)\n{\n global $mysqli;\n $TR = \"resultados2017\";\n $addQuery = \"ORDER BY \" . $row . \" \" . $index;\n $lastQuery = \"limit 20\";\n\n //SET QUERY\n //1 to send at main table\n //2 to send at the report\n\n if ($state == 1) {\n $query = new Query($mysqli, \"SELECT apellido,nombre,(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,sede,areap,ps,gatb,pca,indice,verbal,numer FROM \" . $TR . \" where sede = ? AND area_i = ? AND fac_ia = ? limit 20\");\n $parametros = array(\"iii\", &$SEDE, &$AREA, &$FACULTAD);\n $data = $query->getresults($parametros);\n\n } elseif ($state == 2) {\n $query = new Query($mysqli, \"SELECT apellido,nombre,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,sede,areap,ps,gatb,pca,indice,verbal,numer FROM \" . $TR . \" where sede = ? AND area_i = ? AND fac_ia = ? \" . $addQuery);\n $parametros = array(\"iii\", &$SEDE, &$AREA, &$FACULTAD);\n $data = $query->getresults($parametros);\n\n } else {\n //error\n }\n\n//return\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "function f_filtro($cadena)\n {\n return $this->conexion->real_escape_string($cadena);\n }", "function get_materias_equipo($filtro=array()){\n $where=\" WHERE 1=1 \";\n $where2=\" WHERE 1=1 \";\n if (isset($filtro['anio'])) {\n $where.= \" and anio= \".quote($filtro['anio']['valor']);\n }\n if (isset($filtro['carrera'])) {\n switch ($filtro['carrera']['condicion']) {\n case 'contiene':$where2.= \" and carrera ILIKE \".quote(\"%{$filtro['carrera']['valor']}%\");break;\n case 'no_contiene':$where2.= \" and carrera NOT ILIKE \".quote(\"%{$filtro['carrera']['valor']}%\");break;\n case 'comienza_con':$where2.= \"and carrera ILIKE \".quote(\"{$filtro['carrera']['valor']}%\");break;\n case 'termina_con':$where2.= \"and carrera ILIKE \".quote(\"%{$filtro['carrera']['valor']}\");break;\n case 'es_igual_a':$where2.= \" and carrera = \".quote(\"{$filtro['carrera']['valor']}\");break;\n case 'es_distinto_de':$where2.= \" and carrera <> \".quote(\"{$filtro['carrera']['valor']}\");break;\n }\t\n\t }\n if (isset($filtro['legajo'])) {\n $where2.= \" and legajo = \".quote($filtro['legajo']['valor']);\n }\n if (isset($filtro['vencidas'])) {\n $pdia = dt_mocovi_periodo_presupuestario::primer_dia_periodo_anio($filtro['anio']['valor']);\n $udia = dt_mocovi_periodo_presupuestario::ultimo_dia_periodo_anio($filtro['anio']['valor']);\n switch ($filtro['vencidas']['valor']) {\n //sin las designaciones vencidas, es decir solo vigentes\n case 1:$where.= \" and desde<='\".$udia.\"' and ( hasta>='\".$pdia.\"' or hasta is null )\";break;\n case 0:$where.= \" and not(desde<='\".$udia.\"' and ( hasta>='\".$pdia.\"' or hasta is null ))\";break;\n }\n }\n// if (isset($filtro['carrera'])) {\n// $where2.= \" and carrera= \".quote($filtro['carrera']['valor']);\n// }\n //si el usuario esta asociado a un perfil de datos\n $con=\"select sigla from unidad_acad \";\n $con = toba::perfil_de_datos()->filtrar($con);\n $resul=toba::db('designa')->consultar($con);\n if(count($resul)<=1){//es usuario de una unidad academica\n $where.=\" and uni_acad = \".quote($resul[0]['sigla']);\n }else{\n //print_r($filtro);exit;\n if (isset($filtro['uni_acad'])) {\n $where.= \" and uni_acad= \".quote($filtro['uni_acad']['valor']);\n }\n }\n \n $sql=\"select * from (select \n case when conj='sin_conj' then desc_materia else desc_mat_conj end as materia,\n case when conj='sin_conj' then cod_siu else cod_conj end as cod_siu,\n case when conj='sin_conj' then cod_carrera else car_conj end as carrera,\n case when conj='sin_conj' then ordenanza else ord_conj end as ordenanza,\n docente_nombre,legajo,cat_est,id_designacion,modulo,rol,periodo,id_conjunto\n from(\n select sub5.uni_acad,trim(d.apellido)||', '||trim(d.nombre) as docente_nombre,d.legajo,cat_est,sub5.id_designacion,carac,t_mo.descripcion as modulo,case when trim(rol)='NE' then 'Aux' else 'Resp' end as rol,p.descripcion as periodo,\n case when sub5.desc_materia is not null then 'en_conj' else 'sin_conj' end as conj,id_conjunto,\n m.desc_materia,m.cod_siu,pl.cod_carrera,pl.ordenanza,\n sub5.desc_materia as desc_mat_conj,sub5.cod_siu as cod_conj,sub5.cod_carrera as car_conj,sub5.ordenanza as ord_conj\n from(\n\n select sub2.id_designacion,sub2.id_materia,sub2.id_docente,sub2.id_periodo,sub2.modulo,sub2.carga_horaria,sub2.rol,sub2.observacion,cat_est,dedic,carac,desde,hasta,sub2.uni_acad,sub2.id_departamento,sub2.id_area,sub2.id_orientacion,sub4.desc_materia ,sub4.cod_carrera,sub4.ordenanza,sub4.cod_siu,sub3.id_conjunto\n from (select distinct * from (\n select distinct a.anio,b.id_designacion,b.id_docente,a.id_periodo,a.modulo,a.carga_horaria,a.rol,a.observacion,a.id_materia,b.uni_acad,cat_estat||dedic as cat_est,dedic,carac,desde,hasta,b.id_departamento,b.id_area,b.id_orientacion\n from asignacion_materia a, designacion b\n where a.id_designacion=b.id_designacion\n and not (b.hasta is not null and b.hasta<=b.desde)\n )sub1\n --where uni_acad='CRUB' and anio=2020 \n \".$where .\") sub2 \n left outer join \n ( select t_c.id_conjunto,t_p.anio,t_c.id_periodo,t_c.ua,t_e.id_materia\n from en_conjunto t_e,conjunto t_c, mocovi_periodo_presupuestario t_p\n WHERE t_e.id_conjunto=t_c.id_conjunto and t_p.id_periodo=t_c.id_periodo_pres \n )sub3 on (sub3.ua=sub2.uni_acad and sub3.id_periodo=sub2.id_periodo and sub3.anio=sub2.anio and sub3.id_materia=sub2.id_materia)\n left outer join (select t_e.id_conjunto,t_e.id_materia,t_m.desc_materia,t_m.cod_siu,t_p.cod_carrera,t_p.uni_acad,t_p.ordenanza\n from en_conjunto t_e,materia t_m ,plan_estudio t_p\n where t_e.id_materia=t_m.id_materia\n and t_p.id_plan=t_m.id_plan)sub4 on sub4.id_conjunto=sub3.id_conjunto\n\n\n\n )sub5\n LEFT OUTER JOIN docente d ON d.id_docente=sub5.id_docente\n LEFT OUTER JOIN periodo p ON p.id_periodo=sub5.id_periodo\n LEFT OUTER JOIN modulo t_mo ON sub5.modulo=t_mo.id_modulo\n LEFT OUTER JOIN materia m ON m.id_materia=sub5.id_materia\n LEFT OUTER JOIN plan_estudio pl ON pl.id_plan=m.id_plan\n )sub6)sub\n $where2\n order by id_conjunto,materia,docente_nombre\";\n return toba::db('designa')->consultar($sql);\n }", "public function indexEmpresas(Request $request)\n { \n $fullUrl = $request->fullUrl();\n $id_empresa = substr($fullUrl, -1); \n \n if (auth()->user()->hasRole('superAdmin')) {\n if ($id_empresa != 's' ) { \n $users = User::select('users.id', 'users.nombre', 'users.email', 'users.anulado')\n ->orderBy('users.id')\n ->join('cat_usuarioempresa', 'cat_usuarioempresa.USER_ID', '=', 'users.id')\n ->join('cat_empresa', 'cat_empresa.ID', '=', 'cat_usuarioempresa.EMPRESA_ID') \n ->where('cat_usuarioempresa.ANULADO', '=', 0)\n ->where('cat_empresa.ID', '=', $id_empresa)\n ->paginate(10);\n // dd($users); \n } \n } else {\n $empresa_id = Session::get('empresa');\n $users = User::select('users.id', 'users.nombre', 'users.email', 'users.anulado')\n ->orderBy('users.id')\n ->join('cat_usuarioempresa', 'cat_usuarioempresa.USER_ID', '=', 'users.id')\n ->join('cat_empresa', 'cat_empresa.ID', '=', 'cat_usuarioempresa.EMPRESA_ID')\n //->where('users.anulado', '=', 0)\n ->where('cat_usuarioempresa.ANULADO', '=', 0)\n ->where('cat_usuarioempresa.EMPRESA_ID', '=', $empresa_id)\n ->paginate(10); \n }\n return view('usuarios.index', compact('users', 'id_empresa'));\n }", "public function mostrar(Request $request)\n\t{\n\t\t//crear un array en el que se incluiran los filtros actuales, para ser mostrados junto a la lista de resultados\n\t\t$filtrosActivos = array();\n\n\n\t\t//declarar el query en formato SQL para cada uno de los parametros, como un string\n\t\t//el string siguiente seria \"fecha BETWEEN CAST('{fecha1}' AS DATE) AND CAST('{fecha2}' AS DATE)\"\n\t\t$queryFechas = \"fecha BETWEEN CAST('\" . $request->input('fecha1') . \"' AS DATE) AND CAST('\" . $request->input('fecha2') . \"' AS DATE)\";\n\t\tarray_push($filtrosActivos, (\"Desde \" . $request->input('fecha1') . \" hasta \" . $request->input('fecha2')));\n\n\t\t//crear el query para el numero de empleado y designar la etiqueta del filtro\n\t\tif($request->input('empleado') == 'null') $queryEmpleado = \"\"; //string vacio si no se define un empleado\n\t\telse {\n\t\t\t$empleado = Empleado::find($request->input('empleado'));\n\t\t\t$queryEmpleado = \" AND idEmpleado = '\" . $request->input('empleado') . \"'\";\n\t\t\tarray_push($filtrosActivos, (\"Empleado: \" . strtoupper($empleado->ap_paterno) . \" \" . strtoupper($empleado->ap_materno) . \", \" . strtoupper($empleado->nombres)));\n\t\t}\n\n\t\t//crear query para el id de cliente y designar la etiqueta del filtro\n\t\tif($request->input('cliente') == 'null') $queryCliente = \"\"; //string vacio si no se define un cliente\n\t\telse {\n\t\t\t$cliente = Cliente::where('idCliente', $request->input('cliente'))->first();\n\t\t\t$queryCliente = \" AND idCliente = '\" . $request->input('cliente') . \"'\";\n\t\t\tarray_push($filtrosActivos, (\"Empresa: \" . $cliente->nombre));\n\t\t}\n\n\t\t//crear query para el id de turno y designar la etiqueta del filtro\n\t\tif($request->input('turno') == 'null') $queryTurno = \"\"; //string vacio si no se define cliente\n\t\telse {\n\t\t\t$turno = Turno::where('idTurno', $request->input('turno'))->first();\n\t\t\t$queryTurno = \" AND idTurno = '\" . $request->input('turno') . \"'\";\n\t\t\tarray_push($filtrosActivos, (\"Turno: \" . $turno->hora_entrada . \" a \" . $turno->hora_salida));\n\t\t}\n\n\n\t\t//unir los queries en un solo string\n\t\t$query = $queryFechas . $queryEmpleado . $queryCliente . $queryTurno;\n\n\t\t//ejecutar el query resultante\n\t\t$checadas = Checada::whereRaw($query)->get();\n\n\t\t//agregar todos los parametros necesarios para los filtros y los resultados de la busqueda\n\t\t$empleados = Empleado::where('contratable', true)->get();\n\t\t$clientes = Cliente::all();\n\t\t$turnos = Turno::all();\n\n\t\t//enlistar los filtros activos para la busqueda\n\n\t\t//un array en el que se guardaran los nombres de empleado y de los clientes. El indice sera el idChecada\n\t\t$empleadosPorChecada = array();\n\t\t$clientesPorChecada = array();\n\n\t\tforeach($checadas as $checada){\n\t\t\t$clientesPorChecada[$checada->idChecada] = Cliente::where('idCliente', $checada->idCliente)->first()->nombre; //obtener el cliente\n\t\t\t$empleado = Empleado::where('idEmpleado', $checada->idEmpleado)->first(); //obtener al empleado\n\n\t\t\t$empleadosPorChecada[$checada->idChecada] = $empleado->ap_paterno . \" \" . $empleado->ap_materno . \", \" . $empleado->nombres; //agregarlo al arreglo\n\t\t}\n\n\n\t\t$parametros = ['empleados' => $empleados, 'clientes' => $clientes, 'turnos' => $turnos, 'checadas' => $checadas, 'filtrosActivos' => $filtrosActivos, 'empleadosPorChecada' => $empleadosPorChecada, 'clientesPorChecada' => $clientesPorChecada];\n\t\treturn view('empleados/buscar_checada')->with('parametros',$parametros);\n\t}", "public function ReporterFilterData($value)\n {\n $em = $this->getEntityManager();\n if ($value == 'Display All') {\n $qb1 = $em->createQueryBuilder();\n $qb1->select('u.id,up.name,up.employeeId,up.email');\n $qb1->from('Vlreleases\\UserBundle\\Entity\\User', 'u');\n $qb1->innerJoin('u.personalProfile', 'up');\n $result1 = $qb1->getQuery()->getResult();\n return $result1;\n } \n else {\n $qb = $em->createQueryBuilder();\n $qb->select('DISTINCT ur.id');\n $qb->from('Vlreleases\\UserBundle\\Entity\\User', 'u');\n $qb->innerJoin('u.reportingPersons', 'ur');\n if ($value == 'Non Jyo')\n $qb->where(\"u.id !='14'\");\n elseif ($value == 'Jyo')\n $qb->where(\"u.id = '14'\");\n $result = $qb->getQuery()->getResult();\n\n for ($i = '0'; $i < sizeof($result); $i++) {\n $id = $result[$i]['id'];\n $qb1 = $em->createQueryBuilder();\n $qb1->select('u.id,up.name,up.employeeId,up.email');\n $qb1->from('Vlreleases\\UserBundle\\Entity\\User', 'u');\n $qb1->innerJoin('u.personalProfile', 'up');\n $qb1->where(\"u.id='$id'\");\n $finalResult[$i] = $qb1->getQuery()->getResult();\n }\n \n return $finalResult;\n }\n }", "public function condicionesFiltros($filtros = null)\n\t{\n\t\t$condiciones\t\t= array();\n\t\tif ( ! empty($filtros['filtro']) )\n\t\t{\n\t\t\t// LIBRE\n\t\t\tif ( ! empty($filtros['filtro']['buscar']) )\n\t\t\t{\n\t\t\t\t// Cuando la busqueda libre es un numero\n\t\t\t\tif ( is_numeric($filtros['filtro']['buscar']) )\n\t\t\t\t{\n\t\t\t\t\tarray_push($condiciones, array(\n\t\t\t\t\t\t'OR'\t=> array(\n\t\t\t\t\t\t\t'Compra.id'\t\t\t\t\t=> $filtros['filtro']['buscar'],\n\t\t\t\t\t\t\t'Compra.total'\t\t\t\t=> $filtros['filtro']['buscar'],\n\t\t\t\t\t\t\t'Usuario.celular'\t\t\t=> $filtros['filtro']['buscar'],\n\t\t\t\t\t\t)\n\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tarray_push($condiciones, array(\n\t\t\t\t\t\t'OR'\t=> array(\n\t\t\t\t\t\t\t'[Usuario].[nombre] + [Usuario].[apellido_paterno] + [Usuario].[apellido_materno] + [Usuario].[email] LIKE' => sprintf('%%%s%%', $filtros['filtro']['buscar'])\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// FECHA INICIAL\n\t\t\tif ( ! empty( $filtros['filtro']['fecha_min']) )\n\t\t\t{\n\t\t\t\t/** Se agrega la condicion al arreglo */\n\t\t\t\tarray_push($condiciones, array(\n\t\t\t\t\t'OR'\t=> array(\n\t\t\t\t\t\t'Compra.created >='\t\t=> sprintf('%s 00:00:00', $filtros['filtro']['fecha_min'])\n\t\t\t\t\t)\n\t\t\t\t));\n\t\t\t}\n\t\t\t// FECHA FINAL\n\t\t\tif ( ! empty( $filtros['filtro']['fecha_max']) )\n\t\t\t{\n\t\t\t\t/** Se agrega la condicion al arreglo */\n\t\t\t\tarray_push($condiciones, array(\n\t\t\t\t\t'OR'\t=> array(\n\t\t\t\t\t\t'Compra.created <= '\t=> sprintf('%s 23:59:59', $filtros['filtro']['fecha_max'])\n\t\t\t\t\t)\n\t\t\t\t));\n\t\t\t}\n\t\t\t// ESTADO COMPRA\n\t\t\tif ( ! empty( $filtros['filtro']['estado']) )\n\t\t\t{\n\t\t\t\tarray_push($condiciones, array(\n\t\t\t\t\t'OR'\t=> array(\n\t\t\t\t\t\t'Compra.estado_compra_id'\t=> $filtros['filtro']['estado']\n\t\t\t\t\t)\n\t\t\t\t));\n\t\t\t}\n\t\t\t// RANGO ID\n\t\t\tif ( ! empty($filtros['filtro']['oc_min']) )\n\t\t\t{\n\t\t\t\tarray_push($condiciones, array(\n\t\t\t\t\t'AND'\t=> array(\n\t\t\t\t\t\t'Compra.id >='\t\t=> $filtros['filtro']['oc_min'],\n\t\t\t\t\t\t'Compra.id <='\t\t=> $filtros['filtro']['oc_max']\n\t\t\t\t\t)\n\t\t\t\t));\n\t\t\t}\n\t\t\t// RANGO VALOR\n\t\t\tif ( ! empty($filtros['filtro']['monto_min']) )\n\t\t\t{\n\t\t\t\tarray_push($condiciones, array(\n\t\t\t\t\t'AND'\t=> array(\n\t\t\t\t\t\t'Compra.total >='\t\t=> $filtros['filtro']['monto_min'],\n\t\t\t\t\t\t'Compra.total <='\t\t=> $filtros['filtro']['monto_max']\n\t\t\t\t\t)\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\t\tif ( ! empty($condiciones) )\n\t\t{\n\t\t\treturn $condiciones;\n\t\t}\n\t\treturn false;\n\t}", "public function setFiltroEnvios($fil='') {\n $this->filtroEnvios = $this->arreglarFiltro($fil);\n $this->filtrarPersonas();\n }", "public function noticiasActivas(){\r\n\t$objDatos = new clsDatos();\r\n\t$sql=\"select * from noticias where activo='1' order by fecha DESC\";\r\n\t$res = $objDatos->filtroListado($sql);\r\n\treturn $res;\r\n}", "public function filterAction()\r\n {\r\n \t/*\r\n \t * form needs to include:\r\n \t * \r\n \t * user id\r\n \t * task category\r\n \t * client id\r\n \t * project id\r\n \t * start date\r\n \t * end date\r\n \t */\r\n $this->view->allUsers = $this->userService->getUserList();\r\n $task = new Task();\r\n $this->view->categories = $task->constraints['category']->getValues();\r\n $this->view->clients = $this->clientService->getClients();\r\n \t $this->view->projects = new ArrayObject();\r\n $this->renderView('timesheet/filter.php'); \t\r\n }", "function filter_TREPORTE_By_S_A_F_E($SEDE, $AREA, $FACULTAD, $ESCUELA, $state, $row, $index)\n{\n global $mysqli;\n $TR = \"resultados2017\";\n $addQuery = \"ORDER BY \" . $row . \" \" . $index;\n $lastQuery = \"limit 20\";\n\n //SET QUERY\n //1 to send at main table\n //2 to send at the report\n\n if ($state == 1) {\n $query = new Query($mysqli, \"SELECT apellido,nombre,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,sede,areap,ps,gatb,pca,indice,verbal,numer FROM \" . $TR . \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? limit 20 \");\n $parametros = array(\"iiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA);\n $data = $query->getresults($parametros);\n\n } elseif ($state == 2) {\n $query = new Query($mysqli, \"SELECT apellido,nombre,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,sede,areap,ps,gatb,pca,indice,verbal,numer FROM \" . $TR . \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? \" . $addQuery);\n $parametros = array(\"iiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA);\n $data = $query->getresults($parametros);\n\n } else {\n //error\n }\n\n//return\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "public function personas()\n {\n $parametros = Input::only('term');\n\n $acompaniantes = Acompaniantes::select('personas_id')->get();\n\n $data = Personas::with('municipios','localidades','derechohabientes', 'estados_embarazos')->whereNotIn('id', $acompaniantes)\n ->where(function($query) use ($parametros) {\n $query->where('id','LIKE',\"%\".$parametros['term'].\"%\");\n });\n\n $data = $data->get();\n return $this->respuestaVerTodo($data);\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 }", "public function listar(Request $request)\n {\n $this->validate($request,[\n 'filtros' => 'required',\n ]);\n $filtros = json_decode($request->get('filtros'));\n $filtros = null;\n $users=User::when($filtros, function ($query, $filtros)\n {\n foreach ($filtros as $criterio => $filtro) {\n $query = $query->where(function ($query) use ($filtro, $criterio)\n {\n foreach ($filtro as $buscar) {\n $query = $query->orWhere($criterio,'like','%'.$buscar.'%');\n }\n });\n }\n return $query;\n })\n ->orderBy('id','desc')->get();\n \n return $users;\n }", "public function consultasAction($limit,$plato_tipo=null, $platid=null) \n {\n if($plato_tipo==null or $platid==null )\n {$texto = 'en_destaque:si'; \n $palabraBuscar = isset($texto) ? $texto : false;\n $query = \"($palabraBuscar) AND (en_destaque:si)\";\n $fq = array(\n 'sort' => 'random_' . uniqid() . ' asc, puntuacion desc',\n 'fq' => 'en_estado:activo AND restaurant_estado:activo ',\n 'wt' => 'json'\n );}\n else{$texto = 'plato_tipo:'.$plato_tipo; \n $palabraBuscar = isset($texto) ? $texto : false;\n $query = \"($palabraBuscar) AND (en_destaque:si)\";\n $fq = array(\n 'sort' => 'random_' . uniqid() . ' asc, puntuacion desc',\n 'fq' => 'en_estado:activo AND restaurant_estado:activo AND -id:'.$platid ,\n 'wt' => 'json'\n );} \n $resultados = false;\n if ($query) {\n $solr = \\Classes\\Solr::getInstance()->getSolr();\n if (get_magic_quotes_gpc() == 1) {\n $query = stripslashes($query);}\n try { $resultados = $solr->search($query, 0, $limit, $fq);\n // var_dump(count($resultados->response->docs));exit;\n } catch (Exception $e) {\n echo (\"<div>ingrese algun valor</div>\"); }} \n \n return $resultados->response->docs; \n }", "function listarSolicitacoesBusca($solicitacao,$cliente){\r\n\r\n require 'conexao.php';\r\n\r\n $sql = \"SELECT * FROM tb_solicitacao\r\n INNER JOIN tb_cliente ON solcliid = cliid\r\n INNER JOIN tb_servico ON solserid = serid\r\n\r\n WHERE solcliid = $cliente AND (solstatus = 'Pendente' OR solstatus = 'Aguardando Autônomo') AND (soldata LIKE '%\".$solicitacao.\"%' OR serdescricao OR '%\".$solicitacao.\"%' OR solstatus LIKE '%\".$solicitacao.\"%' )\";\r\n\r\n $result = mysqli_query($con,$sql) or die(mysqli_error($con));\r\n\r\n $valida = mysqli_num_rows($result);\r\n\r\n if($valida > 0){\r\n return $result;\r\n\r\n }else{\r\n\r\n return false;\r\n }\r\n}", "function filter($request){\r\n global $context;\r\n $i= new $this->model;\r\n\r\n if(!$this->authRequired){\r\n $i->supperUser();\r\n }\r\n\r\n foreach($request->get as $key=>$value){\r\n if($i->field_exists($key)){\r\n $i->where($key,$value);\r\n }\r\n }\r\n\r\n $data=$i->get();\r\n\r\n if($request->UseApi() ){\r\n json_success(\"Success\",$data);//where(['id','<','50'])->orderBy('id','desc')->limit(2,1)->\r\n }else{\r\n return $this->view(compact('data'));\r\n }\r\n }", "function listarTramitesAjustables(){\n\t\t$this->procedimiento='pre.ft_partida_ejecucion_sel';\n\t\t$this->transaccion='PRE_LISTRAPE_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\n\t\t$this->setParametro('fecha_ajuste','fecha_ajuste','date');\n\t\t$this->captura('id_gestion','int4');\n $this->captura('nro_tramite','varchar');\n $this->captura('codigo','varchar');\n\t\t$this->captura('id_moneda','int4');\n\t\t$this->captura('desc_moneda','varchar');\n\t\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 filtroProvincia($provincia){\n $path = '../python_scraper/ofertas_trabajo.json';\n $json = file_get_contents($path);\n $array = json_decode($json);\n\n $filtrado = array_filter($array, function($val) use ($provincia) { \n return $val -> localidad == $provincia;\n });\n\n return response() -> json($filtrado); \n }" ]
[ "0.6547165", "0.6509606", "0.65028065", "0.64058983", "0.637555", "0.6325661", "0.63012654", "0.6282521", "0.62425196", "0.6237797", "0.6194856", "0.6154795", "0.6150095", "0.6121487", "0.6112989", "0.6094773", "0.60873294", "0.6065891", "0.60560966", "0.6051112", "0.60350245", "0.6004207", "0.5984788", "0.5946201", "0.59430885", "0.59395874", "0.5934827", "0.59336776", "0.5929484", "0.59212846", "0.5919229", "0.5914986", "0.5914635", "0.5914327", "0.5913588", "0.5909949", "0.58918864", "0.588992", "0.5884287", "0.5882464", "0.5877935", "0.58747435", "0.58658254", "0.58522815", "0.58443874", "0.58388656", "0.5835214", "0.5831856", "0.5829847", "0.5819797", "0.58141494", "0.5799754", "0.5779588", "0.5776407", "0.5775714", "0.5759218", "0.5754107", "0.57521677", "0.5749208", "0.57367826", "0.57217604", "0.57168466", "0.57158256", "0.5715812", "0.57148653", "0.57120687", "0.5708702", "0.56942815", "0.5694006", "0.5687892", "0.56835616", "0.568121", "0.568092", "0.5675866", "0.5675709", "0.5675591", "0.5673768", "0.56735575", "0.5668377", "0.56668615", "0.5660087", "0.5659445", "0.5655789", "0.5651664", "0.5642372", "0.5636854", "0.5628667", "0.5619933", "0.56197536", "0.56195486", "0.56188595", "0.56164515", "0.56126064", "0.56107676", "0.5608088", "0.5602045", "0.5601121", "0.559989", "0.5599528", "0.5599296" ]
0.6578873
0
Lista todas as entregas baixadas via 0800
function infoEntregas0800($page = 1,$order = 'DTINI DESC'){ //Filtros Where's : D - Data , S - String, T - Tipo Ocorrência, Te - Tempo de Entrega, Emp - Código da empresa de Entrega $whereD = (String) null; $whereS = (String) null; $whereT = (String) null; $whereTe = (String) null; $whereEmp = (String) null; $where = (String) null; $sqlPagination = (String) null; $get = $this->input->get(); if(isset($get['sqlPagination'])){ $sqlPagination = $get['sqlPagination'] ; } //Verifica se existe paginação ou se é um novo filtro if(empty(trim($sqlPagination))){ //Where com as String, Filtro like $whereS = $this->getFiltroWhereString($get); //Where com as Datas da ocorrências - (Inicio e Fim) $whereD = $this->getFiltroDate($get,$whereS)? $this->getFiltroDate($get,$whereS) : $whereS; //Where com os Tipo de Ocorrência 1- Inicio de Entrega 3- Entrega Normal 5- Problema na Entrega $whereT = $this->getFiltroTipoOcorrencia($get, $whereD)? $this->getFiltroTipoOcorrencia($get, $whereD) :$whereD ; //Where com o tempo de demora da Entrega $whereTe = $this->getFiltroTempoEntrega($get,$whereT)? $this->getFiltroTempoEntrega($get,$whereT) : $whereT; //Where pelas empresas de entrega $whereEmp = $this->getFiltroEmpresa($get,$whereTe)? $this->getFiltroEmpresa($get,$whereTe) : $whereTe; //Where Pelas Taxas TDE ou TDA $where = $this->getFiltroTiposTaxa($get,$whereEmp)? $this->getFiltroTiposTaxa($get,$whereEmp) : $whereEmp ; if($this->verifica_gatilho('FILTRO_CENTRAL')){ if(!empty($this->input->get()['CDEMPRESA'])){ foreach($this->input->get()['CDEMPRESA'] as $k => $cdEmp){ if($k == 0){ $empresa = $cdEmp; }else{ $empresa .= ",$cdEmp"; } } $where .= " AND CDEMPRESADESTINO in ($empresa) "; } }else{ $where .= " AND CDEMPRESADESTINO = {$this->sessao['filial']} "; } if($where == "1 = 1"){ $this->dados['sqlPagination'] = ""; }else{ $this->dados['sqlPagination'] = base64_encode($where); } }else{ $where = base64_decode($sqlPagination); $this->dados['sqlPagination'] = base64_encode($where); } $this->db->query("ALTER SESSION SET NLS_DATE_FORMAT = 'DD/MM/YYYY HH24:MI:SS'"); $lista = $this->infoentregas0800_model->getAllEntregas() ->setWhere($where) ->paginateOracle($page,10,$order) ->go(); $rowcount = $this->infoentregas0800_model->getAllEntregas() ->setWhere($where) ->count() ->go(); $this->db->query("ALTER SESSION SET NLS_DATE_FORMAT = 'DD/MM/YYYY HH24:MI:SS'"); $this->dados['filtro'] = (!empty($get['filtro'])) ? $get['filtro'] : array(); $this->dados['titulo'] = 'Central de Entregas'; $this->dados['lista'] = $lista; $this->dados['total'] = $rowcount; $this->dados['filiais'] = $this->softran_oracle->empresas(); $this->dados['FILTRO_CENTRAL'] = $this->verifica_gatilho('FILTRO_CENTRAL'); //Metodo Utilizado para relizar a paginação $this->dados['paginacao'] = $this->configurePagination(10, $rowcount, "cce_entregas0800/infoEntregas0800") ; $this->render('infoEntregas0800'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function obtenerViajesplusAbonados();", "function enumerate(){\n $res=array();\n // lista de los macs del laboratorio\n for($i=134;$i<=148;$i++) array_push($res,sprintf(\"l%03d\",$i));\n $this->myLogger->trace(\"mac list: \".json_encode($res));\n return $res;\n }", "function get_xtal_list() {\n $crystals= array();\n for ($i=1; $i<1701; $i++){\n $crystals[$i]=$i;\n }\n\n return ($crystals);\n}", "public function obtenerViajesplus();", "public function getInstrucoes();", "function get_entradas_boni_list($offset, $per_page, $ubicacion)\n\t{\n\t\t$u = new Entrada();\n\t\t$sql=\"select distinct(e.pr_facturas_id), e.id as id1, e.fecha, sum(costo_total) as importe_factura, pr.razon_social as proveedor,prf.folio_factura, prf.pr_pedido_id, ef.tag as espacio_fisico, eg.tag as estatus from entradas as e left join cproveedores as pr on pr.id=e.cproveedores_id left join pr_facturas as prf on prf.id=e.pr_facturas_id left join espacios_fisicos as ef on ef.id=e.espacios_fisicos_id left join estatus_general as eg on eg.id=e.estatus_general_id where e.espacios_fisicos_id=$ubicacion and e.estatus_general_id=1 and ctipo_entrada=9 group by e.id, e.fecha, pr.razon_social, prf.folio_factura, prf.pr_pedido_id, ef.tag, eg.tag, e.pr_facturas_id, e.cproveedores_id order by e.fecha desc limit $per_page offset $offset\";\n\n\t\t//Buscar en la base de datos\n\t\t$u->query($sql);\n\t\tif($u->c_rows > 0){\n\t\t\treturn $u;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "public function getEntradas(){\n\n $oDaoMatOrdemItem = db_utils::getDao('matordemitem');\n $sWhereOrdemCompra = \"m81_codtipo in (19, 12) and m52_codordem = {$this->iCodigoOrdem}\";\n $sSqlMatOrdemItem = $oDaoMatOrdemItem->sql_query_entradas( null, \"*\", null, $sWhereOrdemCompra);\n $rsMatOrdemItem = $oDaoMatOrdemItem->sql_record($sSqlMatOrdemItem);\n\n $aItensEntrada = array();\n if ($oDaoMatOrdemItem->numrows > 0) {\n\n $iTotalItens = $oDaoMatOrdemItem->numrows;\n for ($iRowItem = 0; $iRowItem < $iTotalItens; $iRowItem++) {\n\n $oDadosMatOrdemItem = db_utils::fieldsMemory($rsMatOrdemItem, $iRowItem);\n $oItem = new Item($oDadosMatOrdemItem->m70_codmatmater);\n $oAlmoxarifado = new Almoxarifado($oDadosMatOrdemItem->m80_coddepto);\n $oTipoMovimentacao = TipoMovimentacaoEstoqueRepository::getTipoMovimentaoPorCodigo($oDadosMatOrdemItem->m81_codtipo);\n\n $oMovimentacaoItem = new MovimentacaoItem($oItem);\n $oMovimentacaoItem->setQuantidade($oDadosMatOrdemItem->m52_quant);\n $oMovimentacaoItem->setQuantidadeEntrada($oDadosMatOrdemItem->m71_quant);\n $oMovimentacaoItem->setValor($oDadosMatOrdemItem->m71_valor);\n $oMovimentacaoItem->setAlmoxarifado($oAlmoxarifado);\n $oMovimentacaoItem->setTipoMovimentacao($oTipoMovimentacao);\n\n $aItensEntrada[] = $oMovimentacaoItem;\n\n }\n }\n return $aItensEntrada;\n }", "function getAllLeaflets(){\n\t\t//$queryEbsLeaflets = db_select('ebs_leaflets_final_static', 'elf')\n\t\t$queryEbsLeaflets = db_select('ebs_leaflets_final', 'elf')\n\t\t->fields('elf');\n\t\t//->condition('leaflet_code', 'L16302');//Plastering\n\t\t//->range(0,10);\n\t\t$results = $queryEbsLeaflets->execute();\n\t\t//dsm($results->rowCount());\n\t\t\n\t\tforeach ($results as $row) :\n\t\t\t$this->leaflets[$row->leaflet_code] = $row;\n\t\tendforeach;\n\t\t\n\t}", "public function Registro_0990()\n {\n $this->Sped->criarEncerramentoBloco('0', '0990', \"0990\");\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}", "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}", "public function listarPacientes(){\n\t\t\t$list= oci_parse($conn,\"BEGIN Nombre_paquete.NOmbre.funvion(Aqui los values) END \");\n\t\t\t// $list= oci_parse($conn,\"SELECT * FROM CITAS\");\n\t\t\toci_execute($list);\n\t\t}", "public function allAnnonce(){\n $annonces=$this->repAnnonce->findBy(['disponibilite' =>'1']);\n return $annonces;\n }", "function getAllFromProizvod(){\n\t\treturn $this->ime . \"&nbsp\" . $this->imeProizvođača . \"&nbsp\" \n\t\t. $this->prezimeProizvođača . \"&nbsp\" . $this->cijena;\n\t}", "function listaEstablecimientos() {\n\t\t$establecimiento = new Establecimiento();\n\t\treturn $establecimiento->listar();\n\t}", "public function H990()\n {\n $this->Sped->criarEncerramentoBloco('0', 'H990', \"H990\");\n }", "function listarBoletaGarantiaDevuelta(){\r\n\t\t$this->procedimiento='leg.ft_boleta_garantia_dev_sel';\r\n\t\t$this->transaccion='LG_POBODEV_SEL';\r\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\r\n\t\t\t\t\r\n\t\t$this->captura('id_anexo','int4');\r\n\t\t$this->captura('estado_reg','varchar');\r\n\t\t$this->captura('agencia','varchar');\r\n\t\t$this->captura('nro_documento','varchar'); \r\n\t\t$this->captura('fecha_desde','date');\r\n\t\t$this->captura('fecha_fin_uso','date');\r\n\t\t$this->captura('moneda','varchar');\r\n\t\t$this->captura('asegurado','numeric');\r\n\t\t$this->captura('estado','varchar');\r\n\t\t$this->captura('codigo_noiata','varchar');\r\n\t\t$this->captura('codigo','varchar');\r\n\t\t$this->captura('fecha_hasta','date');\r\n\t\t$this->captura('fecha_corte','date');\r\n\t\t$this->captura('codigo_int','varchar');\r\n\t\t$this->captura('fecha_notif','date');\r\n\t\t$this->captura('tipo','varchar');\r\n\t\t$this->captura('numero','varchar');\r\n\t\t$this->captura('tipo_agencia','varchar');\r\n\t\t$this->captura('banco','varchar');\r\n\t\t$this->captura('usr_reg','varchar');\r\n\t\t$this->captura('usr_mod','varchar');\r\n\t\t$this->captura('id_usuario_reg','int4');\r\n\t\t$this->captura('id_usuario_mod','int4');\r\n\t\t$this->captura('observaciones','text');\r\n\t\t$this->captura('id_agencia','int4');\r\n\t\t$this->captura('estado_contrato','varchar');\r\n\t\t$this->captura('id_proceso_wf','integer');\r\n\t\t$this->captura('id_estado_wf','integer');\r\n\t\t$this->captura('nro_hoja_ruta','integer');\r\n\t\t$this->captura('id_contrato','integer');\r\n\t\t$this->captura('id_gestion','integer');\r\n\t\t$this->captura('gestion','integer');\r\n\t\t$this->captura('id_proveedor','integer');\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\t\t\r\n\t\t//echo($this->consulta);exit;\r\n\t\t$this->ejecutarConsulta();\r\n\t\t\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "function lista_examen()\r\n\t{ \r\n\t\t$c=0; \r\n\t\t$sql=\"SELECT * FROM texamen where estatus='1' and tipo='$this->tipoExamen' order by id_examen\";\t\t\r\n\t\t $cursor=parent::ejecuta_sql($sql);\r\n\t\t if($row= parent::proxima_tupla($cursor))\r\n\t\t {\r\n\t\t\t DO\r\n\t\t\t {\r\n\t\t\t\t$fila[$c][1]=$row[\"id_examen\"];\t\t\t\r\n\t\t\t\t$fila[$c][2]=$row[\"descripcion\"];\r\n\t\t\t\t$fila[$c][3]=$row[\"tipo\"];\t\t\r\n\t\t\t\t\r\n\t\t\t\t$c++;\t\t\t\t \r\n\t\t\t }WHILE($row= parent::proxima_tupla($cursor));\r\n\t\t }\r\n\t\tif ( $fila>0 )\r\n\t\t\treturn $fila;\r\n\t\telse\r\n\t\t\treturn -1;\r\n\t\t\t\r\n\t\tparent::cerrar_bd();\r\n\t}", "function get_entradas_boni_gral_list($offset, $per_page, $ubicacion)\n\t{\n\t\t$u = new Entrada();\n\t\t$sql=\"select distinct(e.pr_facturas_id), e.id as id1, e.fecha, sum(costo_total) as importe_factura, pr.razon_social as proveedor,prf.folio_factura, prf.pr_pedido_id, ef.tag as espacio_fisico, eg.tag as estatus from entradas as e left join cproveedores as pr on pr.id=e.cproveedores_id left join pr_facturas as prf on prf.id=e.pr_facturas_id left join espacios_fisicos as ef on ef.id=e.espacios_fisicos_id left join estatus_general as eg on eg.id=e.estatus_general_id where e.estatus_general_id=1 and ctipo_entrada=9 group by e.id, e.fecha, pr.razon_social, prf.folio_factura, prf.pr_pedido_id, ef.tag, eg.tag, e.pr_facturas_id, e.cproveedores_id order by e.fecha desc limit $per_page offset $offset\";\n\n\t\t//Buscar en la base de datos\n\t\t$u->query($sql);\n\t\tif($u->c_rows > 0){\n\t\t\treturn $u;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "function rec_empresa_list(){\n\t\t}", "public function getRealContenidos() {\r\n// FROM contenidos c1 \r\n// JOIN contenidos c2 ON c1.padre=c2.id \r\n// JOIN contenidos c3 ON c2.padre=c3.id \r\n// ORDER BY c1.nombre ASC';\r\n\t\t\t\t$sql = 'SELECT c1.* \r\n FROM contenidos c1 \r\n WHERE padre = 0 \r\n ORDER BY c1.nombre ASC';\r\n \r\n return $this->getList(new SqlQuery($sql));\r\n \r\n }", "public function getWholinemeList(){\n return $this->_get(2);\n }", "function list_all_numbers()\n {\n $pdo = PDO2::getInstance();\n \n $query = $pdo->prepare(\"SELECT * FROM tbl_numbers\");\n $query->execute();\n \n $tbx=array();\n $i=0;\n while ($row = $query->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_NEXT))\n {\n $tbx[$i]['number']=$row[0];\n $tbx[$i]['usr_id']=$row[1];\n $i=$i+1;\n }\n return $tbx;\n }", "function list_all() {\n $ssql = \"select nombre from TBL_FRONTS where estado=\" . I_ACTIVE;\n $this->DBobj->loadRS($ssql);\n if (!$this->DBobj->noEmpty)\n return null;\n $i = 0;\n $list = array();\n while ($idV = $this->DBobj->get_vector()) {\n $list[$i] = $this->objsCache->get_object(get_class(), $idV[0]);\n $i++;\n }\n return $list;\n }", "public function getAtividadesComplementares() {\n\n $oDaoMatriculaAc = new cl_turmaacmatricula();\n $iCodigoAluno = $this->oMatricula->getAluno()->getCodigoAluno();\n $iAnoCalendario = $this->oMatricula->getTurma()->getCalendario()->getAnoExecucao();\n $iEscola = $this->oMatricula->getTurma()->getEscola()->getCodigo();\n $sWhere = \"ed269_aluno = {$iCodigoAluno}\";\n $sWhere .= \" and ed52_i_ano = {$iAnoCalendario}\";\n\n $aAtividadesComplementares = array();\n\n $sSqlMatriculaAluno = $oDaoMatriculaAc->sql_query_turma(null, \"*\", null, $sWhere);\n $rsMatriculaAluno = $oDaoMatriculaAc->sql_record($sSqlMatriculaAluno);\n\n if ($rsMatriculaAluno && $oDaoMatriculaAc->numrows > 0) {\n\n $iTurmasAc = $oDaoMatriculaAc->numrows;\n for ($i = 0; $i < $iTurmasAc; $i++) {\n\n $oDadosTurmaComplementar = db_utils::fieldsMemory($rsMatriculaAluno, $i);\n $oEscola = EscolaRepository::getEscolaByCodigo($oDadosTurmaComplementar->ed268_i_escola);\n\n $iCodigoTurma = $oDadosTurmaComplementar->ed268_i_codigo;\n $iTipoTurma = $oDadosTurmaComplementar->ed268_i_tipoatend;\n $oDadosAtendimento = $oDadosTurmaComplementar->ed268_c_aee;\n $oTurmaComplementar = new stdclass();\n $oTurmaComplementar->nome_turma = utf8_encode($oDadosTurmaComplementar->ed268_c_descr);\n $oTurmaComplementar->codigo_turma = utf8_encode($oDadosTurmaComplementar->ed268_i_codigo);\n $oTurmaComplementar->turno_turma = utf8_encode($oDadosTurmaComplementar->ed15_c_nome);\n $oTurmaComplementar->escola = utf8_encode($oEscola->getNome());\n $oTurmaComplementar->tipo_turma = $iTipoTurma;\n $oTurmaComplementar->atividades = $this->getAtividades($iCodigoTurma, $iTipoTurma, $oDadosAtendimento);\n $oTurmaComplementar->aProfissionais = $this->getProfessoresVinculadosTurmaAtividadeComplementar($oDadosTurmaComplementar->ed268_i_codigo);\n $aAtividadesComplementares[] = $oTurmaComplementar;\n }\n }\n return $aAtividadesComplementares;\n }", "static function getEntradasHoy() {\n\n $ped = new PedidosCab();\n $tablaPedidos = $ped->getDataBaseName() . \".\" . $ped->getTableName();\n $prov = new Proveedores();\n $tablaProveedores = $prov->getDataBaseName() . \".\" . $prov->getTableName();\n\n $rows = array();\n $hoy = date('Y-m-d');\n\n $em = new EntityManager($ped->getConectionName());\n if ($em->getDbLink()) {\n $query = \"select a.PrimaryKeyMD5 as PrimaryKeyMD5,IDPedido,Fecha,RazonSocial,TotalBases from {$tablaPedidos} as a left join {$tablaProveedores} as c on a.IDProveedor=c.IDProveedor where (IDEstado='1') and FechaEntrega='{$hoy}' order by Fecha ASC\";\n $em->query($query);\n $rows = $em->fetchResult();\n }\n unset($em);\n unset($ped);\n unset($prov);\n\n return $rows;\n }", "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Xps_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Xps_cms_prepend\", \"entier\", \"get_cms_prepend\", \"set_cms_prepend\");\n\t$laListeChamps[]=new dbChamp(\"Xps_cms_site\", \"entier\", \"get_cms_site\", \"set_cms_site\");\n\treturn($laListeChamps);\n}", "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 }", "function get_alloptions_110()\n {\n }", "static public function __hx__list () {\n\t\treturn [\n\t\t\t0 => 'BackOff',\n\t\t\t3 => 'Clog',\n\t\t\t1 => 'Finish',\n\t\t\t2 => 'Resume',\n\t\t];\n\t}", "public function listarbiofinCE(){\n $stmt = $this->objPDO->prepare(\"SELECT b.id_biopsia,b.num_biopsia,b.fecha_ingreso,db.fecha_informe,(e.emp_nombres||' '||e.emp_appaterno||' '||e.emp_apmaterno) as medico,\n list(m.descr_muestra)as muestras from sisanatom.biopsia b \n inner join sisanatom.detalle_bioce db on b.id_biopsia=db.id_biopsia\n inner join sisanatom.muestras_biopsia mb on b.id_biopsia=mb.id_biopsia inner join empleados e on b.patologo_responsable=e.emp_id\n inner join sisanatom.muestra m on m.id_muestra=mb.id_muestrarem\n where b.estado_biopsia=3 and b.condicion_biopsia='A'\n group by b.id_biopsia,b.num_biopsia,b.fecha_ingreso,db.fecha_informe,medico\");\n $stmt->execute();\n $pacientes = $stmt->fetchAll(PDO::FETCH_OBJ);\n return $pacientes;\n }", "function all_get(){\n $akhir = $this->get('akhir');\n\n $allwaktu = $this->db->query(\"SELECT id_waktu FROM waktu WHERE mulai <= \".$akhir.\"-1 AND selesai > \".$akhir.\"-1\")->result();\n $this->response(array('result' => $allwaktu));\n }", "public function getList()\r\n {\r\n // Le résultat sera un tableau d'instances de Sponsor.\r\n\r\n\t$entrainements = array();\r\n\r\n $q = $this->_db->query(\"SELECT id, jour, heure_debut as heureDebut, heure_fin as heureFin, lieu FROM entrainement\");\r\n //$q->execute();\r\n\r\n while ($donnees = $q->fetch(PDO::FETCH_ASSOC))\r\n {\r\n $entrainements[] = new BoEntrainement($donnees);\r\n }\r\n\r\n return $entrainements;\r\n }", "function cargar_cuenta_de_ingreso() {\n $sql = \"SELECT id_plan_contable,cuenta_plan_contable,descripcion_plan_contable,cargar_plan_contable,abonar_plan_contable,transferencia_plan_contable FROM prosic_plan_contable WHERE cuenta_plan_contable LIKE '7%' ORDER BY cuenta_plan_contable\";\n $result = $this->Consulta_Mysql($sql);\n return $result;\n }", "function listarSolicitudMayor500000(){\n\t\t$this->procedimiento='mat.ft_solicitud_mayor_500000_sel';\n\t\t$this->transaccion='MAT_SMI_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_solicitud','int4');\n\t\t$this->captura('id_proceso_wf','int4');\n\t\t$this->captura('nro_po','varchar');\n\t\t$this->captura('fecha_solicitud','date');\n\t\t$this->captura('funcionario','text');\n\t\t$this->captura('fecha_po','date');\n\t\t$this->captura('monto_dolares','numeric');\n\t\t$this->captura('nro_tramite','varchar');\n\t\t$this->captura('proveedor','varchar');\n\t\t$this->captura('monto_bolivianos','numeric');\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 getLocalizacao()\n{\n global $conn;\n\n $whrFiltro = null;\n $listUf = array();\n $sqluf = \"SELECT adb_uf, COUNT(upr_id) `num`\n FROM `\".TP.\"_usuario_produto`\n LEFT JOIN \".TP.\"_address_book\n ON adb_usr_id=upr_usr_id\n INNER JOIN \".TP.\"_produto\n ON pro_id=upr_pro_id\n WHERE upr_status=1\n {$whrFiltro}\n GROUP BY adb_uf\n ORDER BY upr_timestamp DESC\";\n if (!$resuf = $conn->prepare($sqluf))\n echo __FUNCTION__.$conn->error;\n else {\n\n $resuf->bind_result($uf, $num);\n $resuf->execute();\n\n $i=0;\n while ($resuf->fetch()) {\n $ufmin = strtolower($uf);\n $estado = estadoFromUF($uf);\n\n $listUf[$i]['id'] = empty($ufmin) ? 'none': $ufmin;\n $listUf[$i]['titulo'] = $estado.' ('.$num.')';\n $listUf[$i]['num'] = $num;\n\n $i++;\n }\n\n return $listUf;\n\n $resuf->close();\n }\n}", "static function listaClanaka(){\n\t\trequire_once(MODEL_ABS.'DB_DAO/Broker_baze.php');\n\t\trequire_once(MODEL_ABS.'DB_DAO/Clanak.php');\n\t\t\n\t\t$broker=new Broker();\n\t\t$clanak=new Clanak($broker);\n\t\t(isset($_GET['pag'])) ? $pag=$_GET['pag'] : $pag=0;\n\t\t(isset($_GET['korak'])) ? $korak=$_GET['korak'] : $korak=5;\n\t\t\n\t\t$rezultat['clanci']=$clanak->limitClanci($pag,$korak);\n\t\t$br_clanaka=$clanak->brojanjeClanaka();\n\t\t$rezultat['pags']=ceil($br_clanaka/$korak);\n\t\t$rezultat['pag']=$pag;\n\t\t\n\t\treturn $rezultat;\n\t}", "public function possederListerTous()\n\t{\n\t\t// votre code ici\n\t\treturn Gestion::lister(\"Posseder\");//type array\n\t}", "public function showList() {\n\t \treturn 0;\n\t }", "function getIndicesCouverture($list_agence) {\n\n global $dbHandler;\n global $global_monnaie,$global_id_agence;\n\n $db = $dbHandler->openConnection();\n $DATA['nombre_credits'] = 0;\n $DATA['encours_brut'] = 0;\n $DATA['nombre_epargne'] = 0;\n $DATA['total_epargne'] = 0;\n $DATA['taux_renouvellement_credits'] = 0;\n $DATA['first_credit_moyen'] = 0;\n $DATA['first_credit_median'] = 0;\n $DATA['credit_moyen'] = 0;\n $DATA['credit_median'] = 0;\n $DATA['epargne_moyen_cpte'] = 0;\n $DATA['epargne_median_cpte'] = 0;\n $DATA['epargne_moyen_client'] = 0;\n $DATA['epargne_median_client'] = 0;\n foreach($list_agence as $key_id_ag =>$value) {\n //Parcours des agences\n setGlobalIdAgence($key_id_ag);\n // Nombre de crédits actifs\n $sql = \"SELECT COUNT(*) FROM ad_dcr WHERE id_ag=$global_id_agence AND etat = 5 OR etat = 7 OR etat = 13 OR etat = 14 OR etat = 15\";\n\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n\n $row = $result->fetchrow();\n $nombre_credits = $row[0];\n\n // Encours brut\n $sql = \"SELECT SUM(calculeCV(solde_cap, devise, '$global_monnaie')) FROM ad_etr, ad_dcr, adsys_produit_credit WHERE ad_etr.id_ag=$global_id_agence AND ad_etr.id_ag=ad_dcr.id_ag AND ad_dcr.id_ag=adsys_produit_credit.id_ag AND ad_etr.id_doss = ad_dcr.id_doss AND ad_dcr.id_prod = adsys_produit_credit.id AND (ad_dcr.etat = 5 OR ad_dcr.etat = 7 OR ad_dcr.etat = 13 OR ad_dcr.etat = 14 OR ad_dcr.etat = 15)\";\n\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n\n $row = $result->fetchrow();\n $encours_brut = $row[0];\n\n // Nombre de comptes d'épargne\n $sql = \"SELECT COUNT(*) FROM ad_cpt WHERE id_ag=$global_id_agence AND id_prod <> 2 AND id_prod <> 3 AND etat_cpte <> 2 \";\n\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n\n $row = $result->fetchrow();\n $nombre_epargne = $row[0];\n\n // Volume total d'épargne\n $sql = \"SELECT SUM(calculeCV(solde, devise, '$global_monnaie')) FROM ad_cpt WHERE id_ag=$global_id_agence AND id_prod <> 2 AND id_prod <> 3 AND etat_cpte <> 2 AND solde <> 0\";\n\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n\n $row = $result->fetchrow();\n $total_epargne = $row[0];\n\n // Nombre de crédits relais consentis\n $sql = \"SELECT count(id_doss) FROM ad_dcr a WHERE (a.id_ag=$global_id_agence) AND (a.etat = 5 OR a.etat = 7 OR a.etat = 13 OR a.etat = 14 OR a.etat = 15) AND a.date_etat BETWEEN date_trunc('year', current_date) AND current_date AND EXISTS (SELECT id_doss FROM ad_dcr b WHERE b.id_ag=$global_id_agence AND b.etat = 6 and b.date_etat < a.date_etat AND a.id_client = b.id_client)\";\n\n $result = $db->query($sql);\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n $row = $result->fetchrow();\n $credits_relais = $row[0];\n\n // Crédits remboursés\n $sql = \"SELECT count(id_doss) FROM ad_dcr WHERE id_ag=$global_id_agence AND etat = 6 AND date_etat BETWEEN date_trunc('year', current_date) AND current_date\";\n\n $result = $db->query($sql);\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n $row = $result->fetchrow();\n $credits_rembourses = $row[0];\n\n // Calcul du taux\n if ($credits_rembourses > 0) {\n $taux_renouvellement_credits = $credits_relais / $credits_rembourses;\n } else {\n $taux_renouvellement_credits = NULL;\n }\n\n // Moyenne premiers crédits\n $sql = \"SELECT AVG(calculeCV(cre_mnt_octr, devise, '$global_monnaie')) FROM ad_dcr a, adsys_produit_credit b WHERE a.id_ag=$global_id_agence AND a.id_ag=b.id_ag AND a.id_prod = b.id AND (a.etat = 5 OR a.etat = 7 OR a.etat = 13 OR a.etat = 14 OR a.etat = 15) AND cre_date_debloc BETWEEN date_trunc('year', current_date) AND current_date AND NOT EXISTS (SELECT id_doss FROM ad_dcr b WHERE b.id_ag=$global_id_agence AND b.etat = 6 AND b.date_etat < a.cre_date_debloc AND a.id_client = b.id_client)\";\n\n $result = $db->query($sql);\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n $row = $result->fetchrow();\n $first_credit_moyen = $row[0];\n\n // Médiane premiers crédits\n $sql = \"SELECT calculeCV(cre_mnt_octr, devise, '$global_monnaie') FROM ad_dcr a, adsys_produit_credit b WHERE a.id_ag=$global_id_agence AND a.id_ag=b.id_ag AND a.id_prod = b.id AND (a.etat = 5 OR a.etat = 7 OR a.etat = 13 OR a.etat = 14 OR a.etat = 15) AND cre_date_debloc BETWEEN date_trunc('year', current_date) AND current_date AND NOT EXISTS (SELECT id_doss FROM ad_dcr b WHERE b.id_ag=$global_id_agence AND b.etat = 6 AND b.date_etat < a.cre_date_debloc AND a.id_client = b.id_client) ORDER BY calculeCV(cre_mnt_octr, devise, '$global_monnaie')\";\n\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n\n $tableauCredit = array();\n while ($row = $result->fetchrow()) {\n array_push($tableauCredit, $row[0]);\n }\n\n $taille = sizeof($tableauCredit);\n if ($taille == 0) {\n $first_credit_median = NULL;\n }\n elseif ($taille % 2 == 1) {\n $first_credit_median = $tableauCredit[($taille -1) / 2];\n }\n else {\n $first_credit_median = ($tableauCredit[($taille) / 2] + $tableauCredit[($taille / 2) - 1]) / 2;\n }\n\n // Moyenne crédit\n $sql = \"SELECT AVG(calculeCV(cre_mnt_octr, devise, '$global_monnaie')) FROM ad_dcr a, adsys_produit_credit b WHERE a.id_ag=$global_id_agence AND a.id_ag=b.id_ag AND a.id_prod = b.id AND (a.etat = 5 OR a.etat = 7 OR a.etat = 13 OR a.etat = 14 OR a.etat = 15) AND cre_date_debloc BETWEEN date_trunc('year', current_date) AND current_date\";\n\n $result = $db->query($sql);\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n $row = $result->fetchrow();\n $credit_moyen = $row[0];\n\n // Médiane crédit\n $sql = \"SELECT calculeCV(cre_mnt_octr, devise, '$global_monnaie') FROM ad_dcr a, adsys_produit_credit b WHERE a.id_ag=$global_id_agence AND a.id_ag=b.id_ag AND a.id_prod = b.id AND (etat = 5 OR etat = 7 OR etat = 13 OR etat = 14 OR etat = 15)\n ORDER BY calculeCV(cre_mnt_octr, devise, '$global_monnaie')\";\n\n $result = $db->query($sql);\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n\n $tableauCredit = array();\n while ($row = $result->fetchrow()) {\n array_push($tableauCredit, $row[0]);\n }\n\n $taille = sizeof($tableauCredit);\n if ($taille == 0) {\n $credit_median = NULL;\n }\n elseif ($taille % 2 == 1) {\n $credit_median = $tableauCredit[($taille -1) / 2];\n }\n else {\n $credit_median = ($tableauCredit[($taille) / 2] + $tableauCredit[($taille / 2) - 1]) / 2;\n }\n\n // Moyenne épargne par compte\n $sql = \"SELECT AVG(calculeCV(solde, devise, '$global_monnaie')) FROM ad_cpt WHERE id_ag=$global_id_agence AND id_prod <> 2 AND id_prod <> 3 AND etat_cpte <> 2 AND solde <> 0\";\n\n $result = $db->query($sql);\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n $row = $result->fetchrow();\n $epargne_moyen_cpte = $row[0];\n\n // Médiane épargne par compte\n $sql = \"SELECT calculeCV(solde, devise, '$global_monnaie') FROM ad_cpt WHERE id_ag=$global_id_agence AND id_prod <> 2 AND id_prod <> 3 AND etat_cpte <> 2 AND solde <> 0 ORDER BY calculeCV(solde, devise, '$global_monnaie')\";\n\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n\n $tableauCredits = array ();\n while ($row = $result->fetchrow()) {\n array_push($tableauCredits, $row[0]);\n }\n\n $taille = sizeof($tableauCredits);\n if ($taille == 0) {\n $epargne_median_cpte = NULL;\n }\n elseif ($taille % 2 == 1) {\n $epargne_median_cpte = $tableauCredits[($taille -1) / 2];\n }\n else {\n $epargne_median_cpte = ($tableauCredits[($taille) / 2] + $tableauCredits[($taille / 2) - 1]) / 2;\n }\n\n // Moyenne épargne par client\n $sql = \"SELECT AVG(t.sum) FROM (SELECT SUM(calculeCV(solde, devise, '$global_monnaie')) FROM ad_cpt WHERE id_ag=$global_id_agence AND id_prod <> 2 AND id_prod <> 3 AND etat_cpte <> 2 AND solde <> 0 GROUP BY id_titulaire) AS t\";\n\n $result = $db->query($sql);\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n $row = $result->fetchrow();\n $epargne_moyen_client = $row[0];\n\n // Médiane épargne par client\n $sql = \"SELECT SUM(calculeCV(solde, devise, '$global_monnaie')) AS solde, id_titulaire FROM ad_cpt WHERE id_ag=$global_id_agence AND id_prod <> 2 AND id_prod <> 3 AND solde <> 0 GROUP BY id_titulaire ORDER BY solde\";\n\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n\n $tableauEpargne = array();\n while ($row = $result->fetchrow()) {\n array_push($tableauEpargne, $row[0]);\n }\n\n $taille = sizeof($tableauEpargne);\n if ($taille == 0) {\n $epargne_median_client = NULL;\n }\n elseif ($taille % 2 == 1) {\n $epargne_median_client = $tableauEpargne[($taille -1) / 2];\n }\n else {\n $epargne_median_client = ($tableauEpargne[($taille) / 2] + $tableauEpargne[($taille / 2) - 1]) / 2;\n }\n\n // Tableau de données\n $DATA['nombre_credits'] += $nombre_credits;\n $DATA['encours_brut'] += $encours_brut;\n $DATA['nombre_epargne'] += $nombre_epargne;\n $DATA['total_epargne'] += $total_epargne;\n $DATA['taux_renouvellement_credits'] += $taux_renouvellement_credits;\n $DATA['first_credit_moyen'] += $first_credit_moyen;\n $DATA['first_credit_median'] += $first_credit_median;\n $DATA['credit_moyen'] += $credit_moyen;\n $DATA['credit_median'] += $credit_median;\n $DATA['epargne_moyen_cpte'] += $epargne_moyen_cpte;\n $DATA['epargne_median_cpte'] += $epargne_median_cpte;\n $DATA['epargne_moyen_client'] += $epargne_moyen_client;\n $DATA['epargne_median_client'] += $epargne_median_client;\n }\n $dbHandler->closeConnection(true);\n\n return $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}", "public function getFullAccountList() {\n\t\t$result = $this->db->queryFetch(\"SELECT \"._CLMN_MEMBID_.\", \"._CLMN_USERNM_.\", \"._CLMN_EMAIL_.\" FROM \"._TBL_MI_.\" ORDER BY \"._CLMN_MEMBID_.\" ASC\");\n\t\tif(!is_array($result)) return;\n\t\treturn $result;\n\t}", "public function get_entries_u() {\n\t\t$this->db->select('oznaka, lokacija, brm, irm');\n\t\t$query = $this->db->get('sale');\n\t\tif ($query->num_rows() > 0) {\n foreach ($query->result() as $temp) {\n $array[] = $temp;\n }\n\t\t\treturn $array;\n\t\t}\n\t}", "function TieuChuan_List(){\n\t\t$sql = \"SELECT * FROM dvt_ks_tieuchuan ORDER BY idTC\";\n\t\t$rs = mysql_query($sql) or die(mysql_error());\n\t\treturn $rs;\n\t}", "public function List_client_Physique(){\n $req = self::list(\"SELECT * FROM client_physique\");\n return $req;\n }", "function getPalabrasTweetsExtendida($palabra,$listaPalabras,$cantidadPalabrasExtendida,$client){\n\t\n\t# Consulta sobre palabra\n\t$listaPalabrasExtendidas =\"\";\n\t$contador = 0;\n\tprint_r(\"------------------------------------------------------------------------------\\n\");\n\tprint_r(\"La consulta con la palabra: \".$palabra.\" ha tenido \".getHitsConsulta($palabra, $client).\" resultados.\\n\");\n\tforeach($listaPalabras as $key => $val){\n\t\tif($val>0 && $val<10 && $contador<$cantidadPalabrasExtendida){\n\t\t\t$listaPalabrasExtendidas=$listaPalabrasExtendidas.\" \".$key;\n\t\t\thitsQueryExtendida($palabra,$listaPalabrasExtendidas,$client);\n\t\t\t$contador++;\n\t\t}\n\t}\n}", "function getAbonnes() {\n global $serv;\n $req = \"SELECT * FROM abonnes;\";\n $res = db_execSQL($req,$serv);\n\t\t\n\t\t$recherche = array();\n\t\twhile($result = mysql_fetch_assoc($res)) {\n\t\t\t$recherche[] = $result;\n\t\t}\n\t\treturn $recherche;\n }", "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}", "static public function getAllEngins()\n {\n $stmt=DB::connect()->prepare('SELECT * FROM type_vehicule');\n $stmt->execute();\n return $stmt->fetchAll();\n $stmt->closeCursor();\n $stmt=null;\n }", "public function getItens() {\n\n if (count($this->aItens) == 0) {\n\n $oDaoMatOrdemItem = db_utils::getDao('matordemitem');\n $sSqlItens = $oDaoMatOrdemItem->sql_query_ordcons(null, 'm52_codlanc', null, \"m52_codordem = \".$this->getCodigoOrdem());\n $rsMatOrdemItem = $oDaoMatOrdemItem->sql_record($sSqlItens);\n\n if ($oDaoMatOrdemItem->erro_status == \"0\") {\n throw new BusinessException(_M(self::URL_MENSAGEM.\"itens_nao_encontrados\"));\n }\n\n for ($iRowItem = 0; $iRowItem < $oDaoMatOrdemItem->numrows; $iRowItem++){\n\n $iCodigoItemOrdemDeCompra = db_utils::fieldsMemory($rsMatOrdemItem, $iRowItem)->m52_codlanc;\n $this->aItens[] = new ItemOrdemDeCompra($iCodigoItemOrdemDeCompra);\n }\n }\n return $this->aItens;\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager(\"ms_haberes_web\");\n\n $entities = $em->getRepository('LiquidacionesCuposAnualesBundle:Liquidaciones')->findAll();\n\n return array(\n 'entities' => $entities,\n );\n }", "public function listAllEfectiva()\n {\n $query = $this->em->createQuery(\n 'SELECT r\n FROM App\\Entities\\Razon r\n WHERE r.id < 7\n order by r.id');\n\n try {\n return $query->getResult();\n }\n catch(\\Doctrine\\ORM\\NoResultException $e) {\n return NULL;\n }\n }", "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Xdc_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Xdc_cms_description\", \"entier\", \"get_cms_description\", \"set_cms_description\");\n\t$laListeChamps[]=new dbChamp(\"Xdc_classe\", \"entier\", \"get_classe\", \"set_classe\");\n\t$laListeChamps[]=new dbChamp(\"Xdc_classeid\", \"entier\", \"get_classeid\", \"set_classeid\");\n\treturn($laListeChamps);\n}", "public function listar_asignados_controlador(/*$privilegio,$codigo*/){\n\t\t\t\t\t\n\t\t\t\t\t$tabla=\"\";\n\n\t\t\t\t\t$consulta=\"SELECT *,T1.hardwareqr FROM hardware as T1, hardware_ingreso as T2, estado_info_hardware as T3, estado_asignacion_hardware as T4, tipo_hardware as T5, marca_hardware as T6, modelo_hardware as T7, color_hardware as T8, informe_ingreso_hardware as T9, empleados as T10, cargo as T11, departemento as T12, empresa as T13 WHERE T1.hiserie=T2.hiserie AND T2.estadoinfoharcodigo=T3.estadoinfoharcodigo AND T3.estadoinfoharnombre='APROBADO' AND T2.estadoasigharcodigo=T4.estadoasigharcodigo AND T4.estadoasigharnombre='ASIGNADO' AND T2.tipohardwarecodigo=T5.tipohardwarecodigo AND T2.marcahardwarecodigo=T6.marcahardwarecodigo AND T2.modelohardwarecodigo=T7.modelohardwarecodigo AND T2.colorhardwarecodigo=T8.colorhardwarecodigo AND T2.icodigo=T9.icodigo AND T1.empleadocodigo=T10.empleadocodigo AND T10.cargocodigo=T11.cargocodigo AND T11.departamentocodigo=T12.departamentocodigo AND T12.empresacodigo=T13.empresacodigo\n\t\t\t\t\t\";\n\n\t\t\t\t\t$conexion = mainModel::conectar();\n\t\t\t\t\t$datos = $conexion->query($consulta);\n\t\t\t\t\t$datos= $datos->fetchAll();\n\n\t\t\t\t\t\n\t\t\t//InicioTabla_______________________________________________________________\n\t\t\t\t\t$tabla.='\n\t\t\t\t\t\n\t\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t<th>#</th>\n\t\t\t\t\t<th>COD. DE INVENTARIO</th>\n\t\t\t\t\t<th>SERIE DEL HARDWARE</th>\n\t\t\t\t\t<th>CÓDIGO QR DEL HARDWARE ASIGNADO</th>\n\t\t\t\t\t<th>HARDWARE DE INGRESO</th>\n\t\t\t\t\t<th>MARCA DE HARDWARE</th>\n\t\t\t\t\t<th>MODELO DE HARDWARE</th>\n\t\t\t\t\t<th>COLOR DE HARDWARE</th>\n\t\t\t\t\t<th>FECHA DE INGRESO</th>\n\t\t\t\t\t\n\t\t\t\t\t';\n\t\t\t\t\t\t//if ($privilegio<=2) {\n\t\t\t\t\t$tabla.='\n\t\t\t\t\t<th>ACCIONES</th>\n\t\t\t\t\t\n\t\t\t\t\t';\n\t\t\t\t\t\t//}\n\t\t\t\t\t\t//if ($privilegio==1) {\n\t\t\t\t\t\n\t\t\t\t\t\t//}\n\t\t\t\t\t$tabla.='</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>';\n\t\t\t\t\t\n\t\t\t\t\t$contador=0;\n\t\t\t\t\tforeach ($datos as $rows) {\n\t\t\t\t\t\t$contador=$contador+1;\n\t\t\t\t\t\t$a=$rows['hardwareqr'];\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>'.$contador.'</td>\n\t\t\t\t\t\t<td>'.$rows['hiserie'].'</td>\n\t\t\t\t\t\t<td>'.$rows['serireexterno'].'</td>\n\t\t\t\t\t\t<td>'.$a.'</td>\n\t\t\t\t\t\t<td>'.$rows['tipohardwarenombre'].'</td>\n\t\t\t\t\t\t<td>'.$rows['marcahardwarenombre'].'</td>\n\t\t\t\t\t\t<td>'.$rows['modelohardwarenombre'].'</td>\n\t\t\t\t\t\t<td>'.$rows['colorhardwarenombre'].'</td>\n\t\t\t\t\t\t<td>'.$rows['hifecha'].'</td>\n\t\t\t\t\t\t';\n\t\t\t\t\t\t//if ($privilegio<=2) {\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t<form method=\"POST\" action=\"'.SERVERURL.'asignadosinfo/\">\n\t\t\t\t\t\t<input type=\"hidden\" value=\"'.trim($rows['hiserie']).'\" name=\"codigo\">\n\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary\"> Información</button>\n\t\t\t\t\t\t</form> \n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t';\n\n\t\t\t\t\t\t//}\n\t\t\t\t\t\t//if ($privilegio==1) {\n\t\t\t\t\t\t\t/*$tabla.='\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<form action=\"'.SERVERURL.'ajax/administradorAjax.php\" method=\"POST\" class=\"FormularioAjax\" data-form=\"delete\" entype=\"multipart/form-data\" autocomplete=\"off\">\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"codigo-del\" value=\"'.mainModel::encryption($rows['CuentaCodigo']).'\"></input>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"privilegio-admin\" value=\"'.mainModel::encryption($privilegio).'\"></input>\n\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-danger btn-raised btn-xs\">\n\t\t\t\t\t\t\t\t\t\t<i class=\"zmdi zmdi-delete\"></i>\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<div class=\"RespuestaAjax\"></div>\n\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t';*/\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t';\n\t\t\t\t\t\t//$contador++;\n\t\t\t\t//}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t';\n\t\t\t//Fin Tabla__________________________________________________________________\n\t\t\t\t\t\treturn $tabla;\n\t\t\t\t\t}", "function get_export_list(){\n\n\t\t$output = array();\n\n\t\t$query = \"SELECT lead_id FROM leads_pending\n\t\tWHERE sent_fes = 0\n\t\tLIMIT 60000; \";\n\n\t\tif ($result = mysql_query($query, $this->conn)){\n\t\t\twhile($row = mysql_fetch_assoc($result)){\n\t\t\t\t$output[] = $row['lead_id'];\n\t\t\t}\n\t\t}else{\n\t\t\t$this->display(\"Query failed: $query\" . mysql_error($this->conn));\n\t\t}\n\n\t\treturn $output;\n\t}", "public function listar_asignacion_controlador(/*$privilegio,$codigo*/){\n\t\n\t$tabla=\"\";\n\n\t//Consulta para la busqueda de asignación de hardware \n\t//Para la búsqueda se utilizo una tabla dinamica de la plantilla de Gentellas Master\n\t$consulta=\"SELECT *,T1.hiserie FROM hardware_ingreso as T1, estado_info_hardware as T2, estado_asignacion_hardware as T3, tipo_hardware as T4, marca_hardware as T5, modelo_hardware as T6, color_hardware as T7, informe_ingreso_hardware as T8 WHERE T1.estadoinfoharcodigo=T2.estadoinfoharcodigo AND T2.estadoinfoharnombre='APROBADO' AND T1.estadoasigharcodigo=T3.estadoasigharcodigo AND T3.estadoasigharnombre='NO ASIGNADO' AND T1.tipohardwarecodigo=T4.tipohardwarecodigo AND T1.marcahardwarecodigo=T5.marcahardwarecodigo AND T1.modelohardwarecodigo=T6.modelohardwarecodigo AND T1.colorhardwarecodigo=T7.colorhardwarecodigo AND T1.icodigo=T8.icodigo\n\t\";\n\n\t$conexion = mainModel::conectar();\n\t$datos = $conexion->query($consulta);\n\t$datos= $datos->fetchAll();\n\n\t\n\t\t\t//InicioTabla_______________________________________________________________\n\t$tabla.='\n\t\n\t<thead>\n\t<tr>\n\t<th>#</th>\n\t<th>COD. DE INVENTARIO</th>\n\t<th>SERIE DEL HARDWARE</th>\n\t<th>TIPO DE HARDWARE</th>\n\t<th>MARCA DE HARDWARE</th>\n\t<th>MODELO DE HARDWARE</th>\n\t<th>COLOR DE HARDWARE</th>\n\t<th>FECHA DE INGRESO</th>\n\t\n\t';\n\t\t\t\t\t\t//if ($privilegio<=2) {\n\t$tabla.='\n\t<th>ACCIONES</th>\n\t\n\t';\n\t\t\t\t\t\t//}\n\t\t\t\t\t\t//if ($privilegio==1) {\n\t\n\t\t\t\t\t\t//}\n\t$tabla.='</tr>\n\t</thead>\n\t<tbody>';\n\t\n\t$contador=0;\n\tforeach ($datos as $rows) {\n\t\t$contador=$contador+1;\n\t\t$a=$rows['hiserie'];\n\t\t$tabla.='\n\t\t<tr>\n\t\t<td>'.$contador.'</td>\n\t\t<td>'.$a.'</td>\n\t\t<td>'.$rows['serireexterno'].'</td>\n\t\t<td>'.$rows['tipohardwarenombre'].'</td>\n\t\t<td>'.$rows['marcahardwarenombre'].'</td>\n\t\t<td>'.$rows['modelohardwarenombre'].'</td>\n\t\t<td>'.$rows['colorhardwarenombre'].'</td>\n\t\t<td>'.$rows['hifecha'].'</td>\n\t\t';\n\t\t\t\t\t\t//if ($privilegio<=2) {\n\t\t$tabla.='\n\t\t<td>\n\t\t<form method=\"POST\" action=\"'.SERVERURL.'asignacioninfo/\">\n\t\t<input type=\"hidden\" value=\"'.($a).'\" name=\"codigo\">\n\t\t<button type=\"submit\" class=\"btn btn-primary\"><i class=\"fa fa-folder-open-o\"></i> Ingresar</button>\n\t\t</form> \n\t\t</td>\n\n\t\t\n\t\t';\n\n\t\t\t\t\t\t//}\n\t\t\t\t\t\t//if ($privilegio==1) {\n\t\t\t\t\t\t\t/*$tabla.='\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<form action=\"'.SERVERURL.'ajax/administradorAjax.php\" method=\"POST\" class=\"FormularioAjax\" data-form=\"delete\" entype=\"multipart/form-data\" autocomplete=\"off\">\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"codigo-del\" value=\"'.mainModel::encryption($rows['CuentaCodigo']).'\"></input>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"privilegio-admin\" value=\"'.mainModel::encryption($privilegio).'\"></input>\n\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-danger btn-raised btn-xs\">\n\t\t\t\t\t\t\t\t\t\t<i class=\"zmdi zmdi-delete\"></i>\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<div class=\"RespuestaAjax\"></div>\n\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t';*/\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t';\n\t\t\t\t\t\t//$contador++;\n\t\t\t\t//}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t';\n\t\t\t//Fin Tabla__________________________________________________________________\n\t\t\t\t\t\treturn $tabla;\n\t\t\t\t\t}", "public function getEtapasNaEscola() {\n\n $aEtapas = array();\n $oDaoCensoEtapas = db_utils::getDao(\"censoetapamodal\");\n $sCamposEtapasNaEscola = \"ed273_i_sequencia as codigo, \";\n $sCamposEtapasNaEscola .= \"ed273_i_codigo as codigo_Seq, \";\n $sCamposEtapasNaEscola .= \"ed273_i_modalidade as modalidade, \";\n $sCamposEtapasNaEscola .= \"ed273_c_etapa \";\n\n $sSqlEtapaModal = $oDaoCensoEtapas->sql_query(\"\", $sCamposEtapasNaEscola, \"ed273_i_sequencia\", \"\");\n $rsEtapaNaEscola = $oDaoCensoEtapas->sql_record($sSqlEtapaModal);\n $aEtapas = db_utils::getCollectionByRecord($rsEtapaNaEscola);\n $oDaoMatricula = db_utils::getDao(\"matricula\");\n foreach ($aEtapas as $oEtapa) {\n\n $sCamposModalidade = \" serie.ed11_i_codcenso as codigoetapa\";\n $oEtapa->etapa_na_escola = '0';\n $sWhereModalidade = \" turma.ed57_i_escola = {$this->iCodigoEscola} \";\n $sWhereModalidade .= \" AND calendario.ed52_i_ano = {$this->iAnoCenso}\";\n $sWhereModalidade .= \" AND ed60_c_situacao = 'MATRICULADO' \";\n $sWhereModalidade .= \" AND serie.ed11_i_codcenso in ({$oEtapa->ed273_c_etapa}) \";\n $sWhereModalidade .= \" AND ensino.ed10_i_tipoensino = {$oEtapa->modalidade}\";\n $sWhereModalidade .= \" AND ed60_d_datamatricula <= '{$this->dtBaseCenso}'\";\n $sSqlModalidade = $oDaoMatricula->sql_query(\"\", $sCamposModalidade, \"\", $sWhereModalidade);\n\n $rsModalidades = $oDaoMatricula->sql_record($sSqlModalidade);\n if ($oDaoMatricula->numrows > 0) {\n $oEtapa->etapa_na_escola = 1;\n }\n }\n return $aEtapas;\n }", "private function f_ListarValidado(){\n $lobj_AccesoZona = new cls_AccesoZona;\n //creo la peticion\n $pet = array(\n 'operacion' => 'buscarZonas',\n 'codigo_usuario' => $_SESSION['Con']['Nombre']\n );\n //guardo los datos en el objeto y gestiono para obtener una respuesta\n $lobj_AccesoZona->setPeticion($pet);\n $zona = $lobj_AccesoZona->gestionar();\n $cadenaBusqueda = ' where codigo_zona in(';\n if($zona['success'] == 1){\n for($x = 0;$x < count($zona['registros']) - 1; $x++){\n $cadenaBusqueda .= $zona['registros'][$x].',';\n }\n $cadenaBusqueda .= $zona['registros'][count($zona['registros']) - 1].' ';\n }\n $cadenaBusqueda .= \") \";\n $cadenaBusqueda .= ($this->aa_Atributos['valor']=='')?'':\"and nombre_finca like '%\".$this->aa_Atributos['valor'].\"%'\";\n $ls_SqlBase=\"SELECT * FROM agronomia.vfinca $cadenaBusqueda\";\n $orden = ' order by codigo_productor,letra';\n $ls_Sql = $this->f_ArmarPaginacion($ls_SqlBase,$orden);\n $x=0;\n $la_respuesta=array();\n $this->f_Con();\n $lr_tabla=$this->f_Filtro($ls_Sql);\n while($la_registros=$this->f_Arreglo($lr_tabla)){\n $la_respuesta[$x]['codigo']=$la_registros['codigo_productor'];\n $la_respuesta[$x]['nombre']=$la_registros['codigo_productor'].'-'.$la_registros['letra'];\n $la_respuesta[$x]['id_finca']=$la_registros['id_finca'];\n $x++;\n }\n $this->f_Cierra($lr_tabla);\n $this->f_Des();\n $this->aa_Atributos['registros'] = $la_respuesta;\n $lb_Enc=($x == 0)?false:true;\n return $lb_Enc;\n }", "public function queryAll(){\n\t\t$sql = 'SELECT * FROM cbt_jadwal_ujian';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "function listarViajeroInterno(){\n\t\t$this->procedimiento='obingresos.ft_viajero_interno_sel';\n\t\t$this->transaccion='OBING_CVI_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_viajero_interno','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('codigo_voucher','varchar');\n\t\t$this->captura('mensaje','varchar');\n\t\t$this->captura('estado','varchar');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('usuario_ai','varchar');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t\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 indexAction()\n {\n $em = $this->getDoctrine()->getEntityManager();\n\n $entities = $em->getRepository('Area4CampeonatoBundle:Partido')->findAll();\n //$e_h_p = $em->getRepository('Area4CampeonatoBundle:Equipo_has_Partido')->findAll();\n\n return array('entities' => $entities);\n }", "public function getEntriesList(){\n return $this->_get(2);\n }", "function cuentabancos(){\n\t\t\t$sql=$this->query(\"select m.IdPoliza,m.Cuenta,c.description,c.manual_code\n\t\t\tfrom cont_movimientos m,cont_polizas p,cont_accounts c,cont_config conf\n\t\t\twhere m.cuenta=c.account_id and c.currency_id=2 \n\t\t\tand c.`main_father`=conf.CuentaBancos and p.idtipopoliza!=3 and m.TipoMovto not like '%M.E%'\n\t\t\tand m.IdPoliza=p.id and p.activo=1 and m.Activo=1 group by m.Cuenta\n\t\t\t\");\n\t\t\treturn $sql;\n\t\t}", "public function fetchAll()\n {\n $query = $this->em->createQuery(\"\n SELECT\n ccb.id,\n usr.nome corretor,\n con.nome contato ,\n ccb.dataBloqueio,\n ccb.status\n FROM\n {$this->repository} ccb\n JOIN crm\\Entity\\Usuarios usr WITH ccb.corretor = usr.id\n JOIN crm\\Entity\\Contatos con WITH ccb.contato = con.id\"\n );\n $results = $query->getResult();\n if(!is_null($results)) {\n return $results;\n }\n return new ApiProblem('404', \"Recurso n�o localizado\");\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 getLocalizacaoFromClassificados()\n{\n global $conn;\n\n $whrFiltro = null;\n $listUf = array();\n $sqluf = \"SELECT adb_uf, COUNT(ucl_id) `num`\n FROM `\".TP.\"_usuario_classificado`\n LEFT JOIN \".TP.\"_address_book\n ON adb_usr_id=ucl_usr_id\n WHERE ucl_status=1\n {$whrFiltro}\n GROUP BY adb_uf\n ORDER BY ucl_timestamp DESC\";\n if (!$resuf = $conn->prepare($sqluf))\n echo __FUNCTION__.$conn->error;\n else {\n\n $resuf->bind_result($uf, $num);\n $resuf->execute();\n\n $i=0;\n while ($resuf->fetch()) {\n $ufmin = strtolower($uf);\n $estado = estadoFromUF($uf);\n\n $listUf[$i]['id'] = empty($ufmin) ? 'none': $ufmin;\n $listUf[$i]['titulo'] = $estado.' ('.$num.')';\n $listUf[$i]['num'] = $num;\n\n $i++;\n }\n\n return $listUf;\n\n $resuf->close();\n }\n}", "function getAllCargos(){\n\t\t\tDB_DataObject::debugLevel(0);\n\t\t\t$obj = DB_DataObject::Factory('VenCargo');\n\t\t\t$data=false;\n\t\t\t$obj->find();\n\t\t\t$i=0;\n\t\t\twhile($obj->fetch()){\n\t\t\t\t$data[$i]['idCargo']=$obj->idCargo;\n\t\t\t\t$data[$i]['nombre']=utf8_encode($obj->nombre);\n\t\t\t\t$data[$i]['estado']=$obj->estado;\n\t\t\t\t$data[$i]['fechaMod']=$obj->fechaMod;\n\t\t\t\t$data[$i]['fecha']=$obj->fecha;\t\n\t\t\t\t$i++;\t\t\n\t\t\t}\n\t\t\t$obj->free();\n\t\t\t//printVar($data,'getAllCargos');\n\t\t\treturn $data;\n\t\t}", "function Listeconsommation()\n\t{\n\t\t$cnn = getConnexion('tpi-fictif');\n\t\t$i = 0;\n\t\t//Permet de savoir plus facilement si login correct ou pas\n\t\t$consom = [];\n\t\t$stmt = $cnn -> prepare('SELECT `ID`, `Nom`, `Prix` FROM `consommation`');\n\t\t$stmt -> execute();\n\t\t//Remplissange tab 2 dimensions pour avoir les infos qu'on souhaite\n\t\t//Passage en param plus facile\n\t\twhile ($row = $stmt->fetch(PDO::FETCH_OBJ)) {\n\t\t\t$consom[$i][0] = $row->ID;\n\t\t\t$consom[$i][1] = $row->Nom;\n\t\t\t$consom[$i][2] = $row->Prix;\n\t\t\t$i++;\n\t\t}\n\t\tif(!empty($consom))\n\t\t{\n\t\t\treturn $consom;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public function listAll() \n { \n $tipoEncargados = $this->tipoEncargadoDao->listAll();\n $tipoEncargadoArreglo = array();\n foreach ( $tipoEncargados as $indice => $tipoEncargado ){\n $arreglo = array(\n 'id' => $tipoEncargado->getId(),\n 'etiqueta' => $tipoEncargado->getEtiqueta()\n );\n $tipoEncargadoArreglo[] = $arreglo;\n } \n return response( $tipoEncargadoArreglo , 200)->header('Content-Type', 'application/json');\n }", "public function ListarCreditos()\n{\n\tself::SetNames();\n\t$sql =\"SELECT \n\tventas.idventa, ventas.codventa, ventas.totalpago, ventas.statusventa, abonoscreditos.fechaabono, SUM(abonoscreditos.montoabono) as abonototal, clientes.codcliente, clientes.cedcliente, clientes.nomcliente, clientes.tlfcliente, clientes.emailcliente, cajas.nrocaja\n\tFROM\n\t(ventas LEFT JOIN abonoscreditos ON ventas.codventa=abonoscreditos.codventa) LEFT JOIN clientes ON \n\tclientes.codcliente=ventas.codcliente LEFT JOIN cajas ON ventas.codcaja = cajas.codcaja WHERE ventas.tipopagove ='CREDITO' GROUP BY ventas.codventa\";\n\n\tforeach ($this->dbh->query($sql) as $row)\n\t{\n\t\t$this->p[] = $row;\n\t}\n\treturn $this->p;\n\t$this->dbh=null;\n}", "public function listar_liberados_controlador(/*$privilegio,$codigo*/){\n\t\t\t\t\t\n\t\t\t\t\t$tabla=\"\";\n\t\t\t\t\t//Consulta para la busqueda de reasignación de hardware \n\t\t\t\t\t//Para la búsqueda se utilizo una tabla dinamica de la plantilla de Gentellas Master\n\t\t\t\t\t$consulta=\"SELECT *,T1.hardwareqr FROM hardware as T1, hardware_ingreso as T2, estado_info_hardware as T3, estado_asignacion_hardware as T4, tipo_hardware as T5, marca_hardware as T6, modelo_hardware as T7, color_hardware as T8, informe_ingreso_hardware as T9, empleados as T10, cargo as T11, departemento as T12, empresa as T13 WHERE T1.hiserie=T2.hiserie AND T2.estadoinfoharcodigo=T3.estadoinfoharcodigo AND T3.estadoinfoharnombre='APROBADO' AND T2.estadoasigharcodigo=T4.estadoasigharcodigo AND T4.estadoasigharnombre='NO REASIGNADO' AND T2.tipohardwarecodigo=T5.tipohardwarecodigo AND T2.marcahardwarecodigo=T6.marcahardwarecodigo AND T2.modelohardwarecodigo=T7.modelohardwarecodigo AND T2.colorhardwarecodigo=T8.colorhardwarecodigo AND T2.icodigo=T9.icodigo AND T1.empleadocodigo=T10.empleadocodigo AND T10.cargocodigo=T11.cargocodigo AND T11.departamentocodigo=T12.departamentocodigo AND T12.empresacodigo=T13.empresacodigo\n\t\t\t\t\t\";\n\n\t\t\t\t\t$conexion = mainModel::conectar();\n\t\t\t\t\t$datos = $conexion->query($consulta);\n\t\t\t\t\t$datos= $datos->fetchAll();\n\n\t\t\t\t\t\n\t\t\t//InicioTabla_______________________________________________________________\n\t\t\t\t\t$tabla.='\n\t\t\t\t\t\n\t\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t<th>#</th>\n\t\t\t\t\t<th>COD. DE INVENTARIO</th>\n\t\t\t\t\t<th>SERIE DEL HARDWARE</th>\n\t\t\t\t\t<th>TIPO DE HARDWARE</th>\n\t\t\t\t\t<th>MARCA DE HARDWARE</th>\n\t\t\t\t\t<th>MODELO DE HARDWARE</th>\n\t\t\t\t\t<th>COLOR DE HARDWARE</th>\n\t\t\t\t\t<th>FECHA DE INGRESO</th>\n\t\t\t\t\t\n\t\t\t\t\t';\n\t\t\t\t\t\t//if ($privilegio<=2) {\n\t\t\t\t\t$tabla.='\n\t\t\t\t\t<th>ACCIONES</th>\n\t\t\t\t\t\n\t\t\t\t\t';\n\t\t\t\t\t\t//}\n\t\t\t\t\t\t//if ($privilegio==1) {\n\t\t\t\t\t\n\t\t\t\t\t\t//}\n\t\t\t\t\t$tabla.='</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>';\n\t\t\t\t\t\n\t\t\t\t\t$contador=0;\n\t\t\t\t\tforeach ($datos as $rows) {\n\t\t\t\t\t\t$contador=$contador+1;\n\t\t\t\t\t\t$a=$rows['hiserie'];\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>'.$contador.'</td>\n\t\t\t\t\t\t<td>'.$rows['hiserie'].'</td>\n\t\t\t\t\t\t<td>'.$rows['serireexterno'].'</td>\n\t\t\t\t\t\t<td>'.$rows['tipohardwarenombre'].'</td>\n\t\t\t\t\t\t<td>'.$rows['marcahardwarenombre'].'</td>\n\t\t\t\t\t\t<td>'.$rows['modelohardwarenombre'].'</td>\n\t\t\t\t\t\t<td>'.$rows['colorhardwarenombre'].'</td>\n\t\t\t\t\t\t<td>'.$rows['hifecha'].'</td>\n\t\t\t\t\t\t';\n\t\t\t\t\t\t//if ($privilegio<=2) {\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t<form method=\"POST\" action=\"'.SERVERURL.'reasignacioninfo/\">\n\t\t\t\t\t\t<input type=\"hidden\" value=\"'.($a).'\" name=\"codigo\">\n\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary\"><i class=\"fa fa-folder-open-o\"></i> Ingresar</button>\n\t\t\t\t\t\t</form> \n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t';\n\n\t\t\t\t\t\t//}\n\t\t\t\t\t\t//if ($privilegio==1) {\n\t\t\t\t\t\t\t/*$tabla.='\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<form action=\"'.SERVERURL.'ajax/administradorAjax.php\" method=\"POST\" class=\"FormularioAjax\" data-form=\"delete\" entype=\"multipart/form-data\" autocomplete=\"off\">\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"codigo-del\" value=\"'.mainModel::encryption($rows['CuentaCodigo']).'\"></input>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"privilegio-admin\" value=\"'.mainModel::encryption($privilegio).'\"></input>\n\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-danger btn-raised btn-xs\">\n\t\t\t\t\t\t\t\t\t\t<i class=\"zmdi zmdi-delete\"></i>\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<div class=\"RespuestaAjax\"></div>\n\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t';*/\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t';\n\t\t\t\t\t\t//$contador++;\n\t\t\t\t//}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t';\n\t\t\t//Fin Tabla__________________________________________________________________\n\t\t\t\t\t\treturn $tabla;\n\t\t\t\t\t}", "function ListeUtilisateurs(){\r\n\t\t$conn = mysqli_connect(\"localhost\", \"root\", \"\", \"bddfinale\");\r\n\t\t$requete=\"SELECT Pseudo FROM allinformations\";\r\n\t\t$ligne= mysqli_query($conn, $requete);\r\n\t\t$n = mysqli_num_rows($ligne);\r\n\t\t$Tab =array();\t\r\n\t\tif ($n > 0) {\r\n\t\t\twhile ($TabLigne = mysqli_fetch_assoc($ligne)) { \r\n\t\t\t\t$Tab[] = $TabLigne[\"Pseudo\"];\r\n\t\t\t} \r\n\t\t}\t\t\r\n\t\treturn $Tab;\r\n\t\tmysqli_close($conn);\r\n\t\t}", "function getLittles() {\n $members = Member::getMembersFromQuery(sprintf(\"SELECT * FROM `users` WHERE `big`= %d ORDER BY `pi` DESC;\"),$this->id);\n }", "function nice_get_entries()\n\t{\n\t\t$_m=$GLOBALS['SITE_DB']->query_select('f_welcome_emails',array('*'));\n\t\t$entries=new ocp_tempcode();\n\t\tforeach ($_m as $m)\n\t\t{\n\t\t\t$entries->attach(form_input_list_entry(strval($m['id']),false,$m['w_name']));\n\t\t}\n\n\t\treturn $entries;\n\t}", "public static function listarNucleo(){\n\t\t$conn = new Conexao();\n\n\t\t$sql = \"SELECT * FROM NUCLEO where status = 0\";\t\t\n\t\t$resultado = $conn->consultarTabela($sql, null);\n\n\t\treturn $resultado;\n\t}", "function get_listado_acc_cent() /// Obtiene un Listado de las acciones centralizadas\r\n{\r\n\t$query=\"SELECT acciones_centralizadas.cod_ac, acciones_centralizadas.denominacion_ac, acciones_centralizadas.id_ac\r\nFROM (acciones_centralizadas INNER JOIN acciones_especificas ON acciones_centralizadas.id_ac = acciones_especificas.id_ac) INNER JOIN un_ejec_locales ON acciones_especificas.id_ae = un_ejec_locales.id_ae\r\nGROUP BY acciones_centralizadas.cod_ac, acciones_centralizadas.denominacion_ac, acciones_centralizadas.id_ac, un_ejec_locales.s_ext\r\nHAVING (((un_ejec_locales.s_ext)='\".$_SESSION['s_ext'].\"'))\r\nORDER BY acciones_centralizadas.cod_ac;\";\r\n\t\r\n\t$resulta=queryDB($query);\r\n\tif (!$resulta){ echo \"ERROR CONSULTANDO BASE DE DATOS\";return false;}\r\n\t$a=array('0'); $b=array('[Seleccione]');\r\n\twhile ($c= pg_fetch_assoc($resulta)) \r\n\t{\r\n\t\tarray_push($a,$c['id_ac']) ; \r\n\t\tarray_push($b,$c['cod_ac'].\" \".$c['denominacion_ac']);\r\n\t}\t\r\n\t$acc_cent_list=array_combine($a,$b);\r\n\treturn $acc_cent_list;\r\n}", "public function getShownpcsList(){\n return $this->_get(29);\n }", "function get_all_continents($obj = '')\n{\n\t$continent_result = $obj->db->query($obj->Query_reader->get_query_by_code('get_continents_list', array()));\n\t\n\treturn $continent_result->result_array();\n}", "function getChambreListId(){\n try {\n $sql = 'select id_chambre, numero_chambre from chambre_hospitalisation order by id_chambre desc';\n $resilt = $this->executeRequete($sql)->fetchAll();\n return $resilt;\n //var_dump($resilt);\n } catch (Exception $ex) {\n echo $ex->getMessage();\n }\n }", "public function importFromOraDB() {\n $main_db_ip = System::getInstance()->get('ORA_DB_HXWEB_IP');\n $main_db_port = System::getInstance()->get('ORA_DB_HXWEB_PORT');\n $latency = pingDomain($main_db_ip, $main_db_port);\n \n // not reachable\n if ($latency > 999 || $latency == '') {\n Logger::getInstance()->error(__METHOD__.': 無法連線主DB,無法進行匯入收件字快取資料庫。');\n return false;\n }\n\n $db = new OraDB();\n $sql = \"select * from MOIADM.RKEYN_ALL t\";\n $db->parse($sql);\n $db->execute();\n $rows = $db->fetchAll();\n $this->clean();\n $count = 0;\n foreach ($rows as $row) {\n $this->replace($row);\n $count++;\n }\n\n Logger::getInstance()->info(__METHOD__.': 匯入 '.$count.' 筆資料。 【RKEYN_ALL.db、RKEYN_ALL table】');\n\n return $count;\n }", "function listarTablaInstancia(){\n\t\t$this->procedimiento='wf.ft_tabla_instancia_sel';\n\t\t$this->transaccion='WF_TABLAINS_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\n\t\t$this->setParametro('id_tabla','id_tabla','integer');\n\t\t$this->setParametro('historico','historico','varchar');\n\t\t$this->setParametro('tipo_estado','tipo_estado','varchar');\n\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_' . $_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['bd_nombre_tabla'],'int4');\n\t\t\n\t\tif ($_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['vista_tipo'] == 'maestro') {\n\t\t\t\t\n\t\t\t$this->captura('estado','varchar');\n\t\t\t$this->captura('id_estado_wf','int4');\n\t\t\t$this->captura('id_proceso_wf','int4');\n\t\t\t$this->captura('obs','text');\n\t\t\t$this->captura('nro_tramite','varchar');\n\t\t}\n\t\t\n\t\tforeach ($_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['columnas'] as $value) {\n\t\t\t\n\t\t\t$this->captura($value['bd_nombre_columna'],$value['bd_tipo_columna']);\t\t\n\t\t\t//campos adicionales\n\t\t\tif ($value['bd_campos_adicionales'] != '' && $value['bd_campos_adicionales'] != null) {\n\t\t\t\t$campos_adicionales = explode(',', $value['bd_campos_adicionales']);\n\t\t\t\t\n\t\t\t\tforeach ($campos_adicionales as $campo_adicional) {\n\t\t\t\t\t\n\t\t\t\t\t$valores = explode(' ', $campo_adicional);\n\t\t\t\t\t$this->captura($valores[1],$valores[2]);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t$this->captura('estado_reg','varchar');\t\t\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t\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 get_all_cajeros()\n { \n $this->parametros = array();\n $this->sp = \"str_consultacajeros\";\n $this->executeSPConsulta();\n\n if (count($this->rows)<=0){\n $this->mensaje=\"No existen niveles economicos en la BD.\";\n array_pop($rol);\n array_push($rol, array(0 => -1, \n 1 => 'Seleccione...',\n 3 => ''));\n\t\t\t\n }else{\n $rol = array();\n\n array_pop($rol);\n array_push($rol, array(0 => -1, \n 1 => 'Seleccione...',\n 3 => ''));\n\t\t\t\n foreach($this->rows as $niveles_economicos){\n array_push($rol, array_values($niveles_economicos));\n }\n\n $this->rows = $rol;\n unset($rol);\n }\n }", "public function queryAll(){\n\t\t$sql = 'SELECT * FROM cbt_nomor_peserta';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('GarnetTaxiBeBundle:Ligne')->findAll();\n\n return array(\n 'entities' => $entities,\n );\n }", "function listarUcedifobracivil(){\n\t\t$this->procedimiento='snx.ft_ucedifobracivil_sel';\n\t\t$this->transaccion='SNX_UDOC_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_ucedifobracivil','int4');\n\t\t$this->captura('id_ucedifsubgrupo','int4');\n\t\t$this->captura('cantidadobracivil','numeric');\n\t\t$this->captura('id_obracivilmoe','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('usuario_ai','varchar');\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');\t\t\n\t\t$this->captura('desc_obracivilmoe','varchar');\n\t\t$this->captura('unidad','varchar');\t\t\n\t\t$this->captura('valortotalrlp','numeric');\n\t\t$this->captura('valortotalrcb','numeric');\t\n\t\t$this->captura('valortotalrsc','numeric');\t\t\n\t\t$this->captura('preciounitariorlp','numeric');\n\t\t$this->captura('preciounitariorcb','numeric');\n\t\t$this->captura('preciounitariorsc','numeric');\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 getAllVisiteurs(){\r\n\t\t$req =\"select * from visiteur where comptable=0\";\r\n\t\t\r\n\t\t$res = PdoGsb::$monPdo->query($req);\r\n\t\t$lesVisiteurs =array();\r\n\t\t$laLigne = $res->fetch();\r\n\t\twhile($laLigne != null)\t{\r\n\t\t\t$selection = $laLigne['id'];\r\n $nom=$laLigne['nom'];\r\n $prenom=$laLigne['prenom'];\r\n\t\t\t$lesVisiteurs[\"$selection\"]=array(\r\n \"id\"=>\"$selection\",\r\n \"nom\"=>\"$nom\",\r\n \"prenom\"=>\"$prenom\"\r\n );\r\n\t\t\t$laLigne = $res->fetch(); \t\t\r\n\t\t}\r\n\t\treturn $lesVisiteurs;\r\n\t}", "public function buscar_xll_habilitados()\n\t{\n\t\tis_logged_in_or_exit($this);\n\t\t\n\t\t$list_clase = $this->clase_model->buscar_all_habilitados();\n\t\t\n\t\t$data = array('hecho' => 'SI', 'list_clase' => $list_clase);\n\t\techo json_encode($data);\n\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 buscarArticulosSEA() {\n $rawData = array();\n $obj_con = new cls_Base();\n $conApp = $obj_con->conexionServidor();\n $sql = \"SELECT COD_ART,DES_COM,COD_LIN,COD_TIP,COD_MAR,EXI_TOT,PAUX_03,P_PROME,P_COSTO \"\n . \" FROM \" . $obj_con->BdServidor . \".IG0020 WHERE EST_LOG=1 AND EXI_TOT>0 \";\n $sentencia = $conApp->query($sql);\n //return $sentencia->fetch_assoc();\n if ($sentencia->num_rows > 0) {\n while ($fila = $sentencia->fetch_assoc()) {//Array Asociativo\n $rawData[] = $fila;\n }\n }\n return $rawData;\n }", "function ambil_paket_list(){\r\n\t\t\r\n\t\t$query = isset($_POST['query']) ? $_POST['query'] : \"\";\r\n\t\t$start = (integer) (isset($_POST['start']) ? $_POST['start'] : $_GET['start']);\r\n\t\t$end = (integer) (isset($_POST['limit']) ? $_POST['limit'] : $_GET['limit']);\r\n\t\t$result=$this->m_master_ambil_paket->ambil_paket_list($query,$start,$end);\r\n\t\techo $result;\r\n\t}", "function SHOWALL(){\n\n $stmt = $this->db->prepare(\"SELECT * FROM centro\");\n $stmt->execute();\n $centros_db = $stmt->fetchAll(PDO::FETCH_ASSOC);\n $allcentros = array(); //array para almacenar los datos de todos los centros\n\n //Recorremos todos las filas de centros devueltas por la sentencia sql\n foreach ($centros_db as $centro){\n //Introducimos uno a uno los grupos recuperados de la BD\n array_push($allcentros,\n new CENTRO_Model(\n $centro['centro_id'],$centro['nombre_centro'],$centro['edificio_centro']\n )\n );\n }\n return $allcentros;\n }", "public static function getReceta(){\n return array(\"LENTEJA\"=>200, \"LONGANIZA VEGANA\"=>1);\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 queryAll(){\n\t\t$sql = 'SELECT * FROM telefonos';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "public function queryAll(){\n\t\t$sql = 'SELECT * FROM cbt_soal_siswa';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "public function index()\n {\n $bitacoras = Bitacora::all();\n foreach ($bitacoras as $bitacora) {\n $bitacora->atributos = json_decode($bitacora->atributos);\n $asunto = Asunto::find($bitacora->id_asunto);\n $usuarioSesion = Empleado::find($bitacora->id_usuario_sesion);\n $persona = Persona::find($usuarioSesion->id_persona);\n $bitacora->asunto = $asunto;\n $usuarioSesion->persona = $persona;\n $bitacora->usuario_sesion = $usuarioSesion;\n unset($bitacora->id_asunto);\n unset($bitacora->id_usuario_sesion);\n unset($usuarioSesion->id_persona);\n }\n return $bitacoras;\n }", "function get_entradas_contabilidad_sin_list($offset, $per_page,$estatus)\n\t{\n\t\t$u = new Entrada();\n\t\t$sql=\"select distinct(e.pr_facturas_id) as pr_facturas_id, prf.fecha, date(prf.fecha) as fecha, prf.fecha_pago, ( prf.monto_total - prf.descuento ) as importe_factura, pr.razon_social as proveedor,prf.folio_factura, prf.pr_pedido_id, ef.tag as espacio_fisico, eg.tag as estatus, m1.tag as marca, prf.validacion_contable, cel.tag as estatus_traspaso\n\t\tfrom entradas as e \".\n\t\t\"left join cproveedores as pr on pr.id=e.cproveedores_id left join pr_facturas as prf on prf.id=e.pr_facturas_id \n\t\tleft join cmarcas_productos as m1 on m1.id=prf.cmarca_id left join espacios_fisicos as ef on ef.id=prf.espacios_fisicos_id \n\t\tleft join estatus_general as eg on eg.id=e.estatus_general_id \".\n\t\t\"left join lotes_pr_facturas as lf on lf.pr_factura_id=prf.id \".\n\t\t\"left join cestatus_lotes as cel on cel.id=lf.cestatus_lote_id \".\n\t\t\"where prf.estatus_general_id=1 and ctipo_entrada=1 and prf.usuario_validador_id=0\n\t\tgroup by e.pr_facturas_id, prf.fecha, pr.razon_social, prf.folio_factura, prf.pr_pedido_id, ef.tag, eg.tag, e.pr_facturas_id, e.cproveedores_id, m1.tag, prf.fecha_pago, prf.monto_total, prf.validacion_contable,prf.descuento, cel.tag \".\n\t\t\"order by prf.fecha desc limit $per_page offset $offset\";\n\n\t\t//Buscar en la base de datos\n\t\t$u->query($sql);\n\t\tif($u->c_rows > 0){\n\t\t\treturn $u;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t}", "function getMobileNew()\n {\n $query = \"select * from {$this->table} where Theloai_idTheloai = 2 and visibleOnHome = 1 limit 4\";\n $pre = $this->db->prepare($query);\n $pre->execute();\n $data = $pre->fetchAll(PDO::FETCH_ASSOC);\n $pre->closeCursor();\n return $data;\n }", "public function getAllConstituents(){\n $stmt = $this->con->prepare(\"SELECT * FROM constituency ORDER BY constituency ASC\");\n $stmt->execute();\n $constituents = $stmt->get_result();\n $stmt->close();\n return $constituents;\n }", "public function equipementachatListerTous()\n\t{\n\t\t// votre code ici\n\t\treturn Gestion::lister(\"EquipementAchat\");//type array\n\t}" ]
[ "0.6282678", "0.5924413", "0.5824439", "0.5788062", "0.5613868", "0.55007523", "0.54808223", "0.5459141", "0.5451651", "0.5419016", "0.5411023", "0.5407867", "0.5376258", "0.53749317", "0.536743", "0.53540385", "0.53480756", "0.53298396", "0.53290784", "0.53140175", "0.5309111", "0.527799", "0.5261757", "0.52289367", "0.52128685", "0.5201867", "0.5197771", "0.5197401", "0.51889145", "0.51784277", "0.5175871", "0.5175283", "0.51730853", "0.5169594", "0.5159757", "0.5158066", "0.5153888", "0.5151365", "0.5147699", "0.51368856", "0.5132395", "0.51323676", "0.51295304", "0.51258075", "0.51132095", "0.51088864", "0.51078326", "0.5102443", "0.50995773", "0.50969446", "0.50909346", "0.5090913", "0.50835514", "0.5081489", "0.5080992", "0.5079455", "0.5072437", "0.50702816", "0.506527", "0.50642663", "0.50563294", "0.5052146", "0.5051136", "0.505059", "0.504907", "0.50469136", "0.5041594", "0.5039506", "0.5037385", "0.5035557", "0.50277585", "0.5023844", "0.5023258", "0.50192887", "0.5018882", "0.50188327", "0.50166583", "0.5015658", "0.5014712", "0.501366", "0.5013572", "0.5013308", "0.50119597", "0.50085104", "0.50069106", "0.50062865", "0.5000786", "0.4997475", "0.49944308", "0.49929476", "0.49808678", "0.49794945", "0.49766535", "0.49763972", "0.49755216", "0.49731955", "0.49625528", "0.49620378", "0.4960838", "0.4956634" ]
0.5310875
20
Insert a new recipe into database. Performs 3 insert operations on 'recipe', 'ingredients', and 'directions' tables.
public function createNewRecipe($data) { // Get id of new recipe $this->db->query('SELECT rid FROM recipes WHERE rid=(SELECT MAX(rid) FROM recipes)'); $this->db->execute(); $row = $this->db->single(); // Increment recipe id $newRecipeID = $row->rid + 1; // Upload image and return path $imgPath = $this->uploadImage($newRecipeID, $data['uid'], $data['img']); // Prepare sql query for new recipe entry $this->db->query('INSERT INTO recipes (rid,title,ownerid,description,prepTime,servingSize,imagePath,link) VALUES(:rid,:title,:uid,:description,:prepTime,:servingSize,:imagePath,:link);'); // Bind values for prepared statement $this->db->bind(':rid', $newRecipeID); $this->db->bind(':uid', $data['uid']); $this->db->bind(':title', $data['title']); $this->db->bind(':description', $data['description']); $this->db->bind(':prepTime', $data['prepTime']); $this->db->bind(':servingSize', $data['servingSize']); $this->db->bind(':imagePath', $imgPath); $this->db->bind(':link', $data['link']); // Execute query try { $this->db->execute(); } catch (PDOException $e) { echo '</br>FAILED recipe: ' . $e->getMessage() . '</br>'; return false; } // Insert ingredients $ingredQueryArray = $this->convertIngredientsFormat($newRecipeID, $data['ingredients']); $ingredQueryString = 'INSERT INTO ingredients (rid,ingredientid,value) VALUES ' . implode(", ", $ingredQueryArray) . ';'; // echo $ingredQueryString; $this->db->query($ingredQueryString); // Bind all values in ingredients query for($i = 0; $i < count($ingredQueryArray); $i++) { $this->db->bind(':value' . ($i + 1), $data['ingredients'][$i]); } // Execute query try { $this->db->execute(); } catch (PDOException $e) { echo '</br>FAILED ingredients: ' . $e->getMessage() . '</br>'; return false; } // Insert directions $direcQueryArray = $this->convertDirectionsFormat($newRecipeID, $data['directions']); $direcQueryString = 'INSERT INTO directions (rid,stepNum,description) VALUES ' . implode(", ", $direcQueryArray) . ';'; // echo $direcQueryString; $this->db->query($direcQueryString); // Bind all values in ingredients query for($i = 0; $i < count($direcQueryArray); $i++) { $this->db->bind(':value' . ($i + 1), $data['directions'][$i]); } // Execute query try { $this->db->execute(); } catch (PDOException $e) { echo '</br>FAILED directions: ' . $e->getMessage() . '</br>'; return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function insert() {\n\t\tglobal $db_table_recipes, $DB_LINK, $g_rb_recipe_id_seq, $LangUI;\n\t\t// do the Insert\n\t\t$sql = \"INSERT INTO $db_table_recipes\n\t\t\t\t\t\t(recipe_name,\n\t\t\t\t\t\t recipe_ethnic,\n\t\t\t\t\t\t recipe_base,\n\t\t\t\t\t\t recipe_course,\n\t\t\t\t\t\t recipe_prep_time,\n\t\t\t\t\t\t recipe_difficulty,\n\t\t\t\t\t\t recipe_directions,\n\t\t\t\t\t\t recipe_comments,\n\t\t\t\t\t\t recipe_serving_size,\n\t\t\t\t\t\t recipe_source,\n\t\t\t\t\t\t recipe_source_desc,\n\t\t\t\t\t\t recipe_modified,\n\t\t\t\t\t\t recipe_system,\n\t\t\t\t\t\t recipe_private,\n\t\t\t\t\t\t recipe_user)\n\t\t\t\t\tVALUES\n\t\t\t\t\t\t('\".$DB_LINK->addq($this->name, get_magic_quotes_gpc()).\"',\n\t\t\t\t\t\t \".$DB_LINK->addq($this->ethnic, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t \".$DB_LINK->addq($this->base, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t \".$DB_LINK->addq($this->course, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t \".$DB_LINK->addq($this->prep_time, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t \".$DB_LINK->addq($this->difficulty, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t '\".$DB_LINK->addq($this->directions, get_magic_quotes_gpc()).\"',\n\t\t\t\t\t\t '\".$DB_LINK->addq($this->comments, get_magic_quotes_gpc()).\"',\n\t\t\t\t\t\t \".$DB_LINK->addq($this->serving_size, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t \".$DB_LINK->addq($this->source, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t '\".$DB_LINK->addq($this->source_desc, get_magic_quotes_gpc()).\"',\n\t\t\t\t\t\t $this->modified,\n\t\t\t\t\t\t '\".$DB_LINK->addq($this->unitSystem, get_magic_quotes_gpc()).\"',\n\t\t\t\t\t\t '\".$DB_LINK->addq($this->private, get_magic_quotes_gpc()).\"',\n\t\t\t\t\t\t '\".$DB_LINK->addq($this->user, get_magic_quotes_gpc()).\"')\";\n\t\t$rc = $DB_LINK->Execute($sql);\n\t\tDBUtils::checkResult($rc, $LangUI->_('Recipe Successfully created') . \": \". $this->name,\n\t\t\t$LangUI->_('There was an error inserting the recipe'), $sql);\n\t\t// retrieve incremented sequence value\n\t\t$this->id = DBUtils::getSequenceValue($g_rb_recipe_id_seq);\n\t\treturn $this->id;\n\t}", "public function insert($recipe){\n $query = $this->db\n ->prepare('INSERT INTO recipes\n (name, directions, servings, source, notes, householdId)\n VALUES (?, ?, ?, ?, ?, ?)\n ');\n\n // @ operator to suppress bind_param asking for variables by reference\n // See: https://stackoverflow.com/questions/13794976/mysqli-prepared-statement-complains-that-only-variables-should-be-passed-by-ref\n @$query->bind_param(\"ssissi\",\n $recipe->getName(),\n $recipe->getDirections(),\n $recipe->getServings(),\n $recipe->getSource(),\n $recipe->getNotes(),\n //(new Session())->get('user')->getId(),\n (new Session())->get('user')->getCurrHousehold()->getId()\n\n );\n\n //$query->insert_id should return the id of the newly inserted row.\n $bool = $query->execute();\n\n if($bool) {\n $recipe->setId($query->insert_id);\n }\n else {\n $error = $query->error;\n echo \"\\n\" . __CLASS__ .\"::\" . __FUNCTION__ . \":\" . $error . \"\\n\";\n\n }\n\n return $bool;\n }", "function insertRecipe($title, $description, $ingredients, $instructions,\r\n $time, $measure, $image, $category)\r\n {\r\n //define query\r\n $query = 'INSERT INTO recipe\r\n (title, description, ingredients, instructions, \r\n time, measure, image, date_created, category)\r\n VALUES\r\n (:title, :description, :ingredients, :instructions, \r\n :time, :measure, :image, NOW(), :category)';\r\n\r\n //prepare statement\r\n $statement = $this->_db->prepare($query);\r\n\r\n //bind parameters\r\n $statement->bindParam(':title', $title, PDO::PARAM_STR);\r\n $statement->bindParam(':description', $description, PDO::PARAM_STR);\r\n $statement->bindParam(':ingredients', $ingredients, PDO::PARAM_STR);\r\n $statement->bindParam(':instructions', $instructions, PDO::PARAM_STR);\r\n $statement->bindParam(':time', $time, PDO::PARAM_STR);\r\n $statement->bindParam(':measure', $measure, PDO::PARAM_STR);\r\n $statement->bindParam(':image', $image, PDO::PARAM_STR);\r\n $statement->bindParam(':category', $category, PDO::PARAM_STR);\r\n\r\n //execute statement\r\n $statement->execute();\r\n\r\n return $this->_db->lastInsertId();\r\n }", "public function run()\n {\n foreach( self::$to_be_inserted as $entry ) {\n DB::table('recipe')->insert([\n 'name' => $entry['name'],\n ]);\n }\n }", "public function add_recipe($_POST)\n\t{\n\t\t$mysqli = $this->connect();\n\t\t\n\t\t//Make sure everything is formatted correctly.\n\t\t$recipe = $this->sanitize_data($_POST);\n\t\t\n\t\tif ($stmt = $mysqli->prepare(\"INSERT ? (recipe_title, recipe_image, recipe_desc, ingredients) VALUES (?, ?, ?, ?)\"))\n\t\t{\t\n\t\t\t//Once the query is prepared, set the parameters\n\t\t\t$stmt->bind_param('sssss', $this->table_name, $recipe['title'], $recipe['image'], $recipe['desc'], $recipe['ingredients']);\n\t\t\t$stmt->execute();\n\t\t\t$stmt->close();\n\t\t}else{\n\t\t\tdie('Could not prepare SQL statement.');\n\t\t}\n\t\t\n\t\t//We're done with the db\n\t\t$mysqli->close();\n\t\t\n\t\treturn true;\t\n\t}", "public function run()\n {\n \\DB::table('recipes')->insert([\n [\n 'name' => '',\n 'body' => '',\n 'recipe_category_id' => '',\n 'date_id' => '',\n 'difficulty_id' => '',\n 'howto_id' => '',\n 'feeling_id' => '',\n 'taste_id' => '',\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ], \n ]);\n }", "function addRecipe($name,$url,$img,$time,$instructions){\n\t @mysql_query(\"INSERT INTO Recipes VALUES (0,'$name','$url','$img', '$time', '$instructions')\");\n\t}", "public function run()\n {\n DB::table('steps')->insert(array(\n array('description' => '1', 'recipes_id' => '1'),\n array('description' => '2', 'recipes_id' => '1'),\n array('description' => '3', 'recipes_id' => '1'),\n array('description' => '4', 'recipes_id' => '1'),\n array('description' => '5', 'recipes_id' => '1'),\n array('description' => '6', 'recipes_id' => '1'),\n array('description' => '1', 'recipes_id' => '2'),\n array('description' => '2', 'recipes_id' => '2'),\n array('description' => '3', 'recipes_id' => '2'),\n array('description' => '4', 'recipes_id' => '2'),\n array('description' => '5', 'recipes_id' => '2'),\n array('description' => '6', 'recipes_id' => '2'),\n array('description' => '1', 'recipes_id' => '3'),\n array('description' => '2', 'recipes_id' => '3'),\n array('description' => '3', 'recipes_id' => '3'),\n array('description' => '4', 'recipes_id' => '3'),\n array('description' => '5', 'recipes_id' => '3'),\n array('description' => '6', 'recipes_id' => '3'),\n ));\n }", "public function run()\n {\n $now = Carbon::now();\n DB::table( 'recipes' )->insert( [\n 'user_id' => '2',\n 'name' => 'Grilled Cheese Sandwich',\n 'description' => 'This is a recipe for a basic grilled cheese sandwich.',\n 'source' => 'Patrick',\n 'prep_time' => '5',\n 'cook_time' => '5',\n 'servings' => '1',\n 'serving_size' => 'sandwich',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n\n DB::table( 'ingredients' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '1',\n 'name' => '2 slices of bread',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'ingredients' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '2',\n 'name' => '2 slices of pre-packaged cheese singles',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'ingredients' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '3',\n 'name' => '3 tablespoons of buttery spread',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '1',\n 'name' => 'Pre-heat griddle or pan to medium heat.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '2',\n 'name' => 'Spread butter on one side of each slice of bread.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '3',\n 'name' => 'When cooking surface is hot, place one slice of bread butter-side down on surface.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '4',\n 'name' => 'Place two cheese slices on the toasting bread and place 2nd slice of bread, butter side up, on top.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '5',\n 'name' => 'When bottom bread is browned nicely (golden color), flip sandwich over so top-butter is now down on the cooking surface.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '6',\n 'name' => 'Let sandwich cook until the 2nd side is browned.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '7',\n 'name' => 'Remove sandwich from heat and serve immediately.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n }", "protected static function POST_add() {\n\t\tif(isset($_POST['name']) && $name = trim($_POST['name'])) {\n\t\t\t$complexity = isset($_POST['complexity']) ? +trim($_POST['complexity']) : 0;\n\t\t\t$servings = isset($_POST['servings']) ? +trim($_POST['servings']) : 0;\n\t\t\t$instructions = isset($_POST['instructions']) ? trim($_POST['instructions']) : '';\n\t\t\tif($db = self::RequireLatestDatabase())\n\t\t\t\tif($ins = $db->prepare('insert into recipe (name, complexity, servings, instructions) values (?, ?, ?, ?)'))\n\t\t\t\t\tif($ins->bind_param('siis', $name, $complexity, $servings, $instructions))\n\t\t\t\t\t\tif($ins->execute()) {\n\t\t\t\t\t\t\t$id = $db->insert_id;\n\t\t\t\t\t\t\t$ins->close();\n\t\t\t\t\t\t\tif($recipe = self::fromID($id, $db))\n\t\t\t\t\t\t\t\tself::Success($recipe);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tself::NotFound(\"Unable to look up recipe by ID $id after adding as $name.\");\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\tself::DatabaseError('Error executing recipe add', $ins);\n\t\t\t\t\telse\n\t\t\t\t\t\tself::DatabaseError('Error binding parameters to add recipe', $ins);\n\t\t\t\telse\n\t\t\t\t\tself::DatabaseError('Error preparing to add recipe', $db);\n\t\t} else\n\t\t\tself::NeedMoreInfo('Name is required to add a recipe.');\n\t}", "public function run()\n {\n DB::table('recipes')->insert([\n [\n 'title' => 'Breakfast',\n 'subject' => 'Omlet',\n 'category' => 'Breakfast',\n 'recipe' => 'two eggs smashed together, roughly',\n 'tips' => 'Make it hard',\n 'image' => 'macaroni.jpg',\n 'author_id' => 1\n ],\n [\n 'title' => 'Lunch',\n 'subject' => 'Steak',\n 'category' => 'Lunch',\n 'recipe' => 'two steaks baked together',\n 'tips' => 'Messy, huh?',\n 'image' => 'macaroni.jpg',\n 'author_id' => 1\n ],\n [\n 'title' => 'Dinner',\n 'subject' => 'Soup',\n 'category' => 'Dinner',\n 'recipe' => 'get something from AH and just put it in the pot.',\n 'tips' => 'Make it hard',\n 'image' => 'macaroni.jpg',\n 'author_id' => 1\n ]\n ]);\n }", "public function run()\n {\n \n\n \\DB::table('recipe_ingridents')->delete();\n \n \\DB::table('recipe_ingridents')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'recipe_id' => '1',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 tablespoons butter',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 1 => \n array (\n 'id' => 2,\n 'recipe_id' => '1',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '3 tablespoons extra virgin olive oil',\n 'displayNote' => '\\'3 tablespoons extra virgin <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 2 => \n array (\n 'id' => 3,\n 'recipe_id' => '1',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small diced onion',\n 'displayNote' => '\\'1 small diced <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 3 => \n array (\n 'id' => 4,\n 'recipe_id' => '1',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '4 cloves garlic, minced ',\n 'displayNote' => '\\'4 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 4 => \n array (\n 'id' => 5,\n 'recipe_id' => '1',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pinch crushed red pepper flakes',\n 'displayNote' => '\\'1 pinch crushed red pepper flakes\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 5 => \n array (\n 'id' => 6,\n 'recipe_id' => '1',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '1 tablespoon lemon juice',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> juice\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 6 => \n array (\n 'id' => 7,\n 'recipe_id' => '1',\n 'ingrident' => 'oregano',\n 'amount' => NULL,\n 'note' => '1 teaspoon oregano',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/oregano\\\\\\'>oregano</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 7 => \n array (\n 'id' => 8,\n 'recipe_id' => '1',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 teaspoon basil',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 8 => \n array (\n 'id' => 9,\n 'recipe_id' => '1',\n 'ingrident' => 'old bay seasoning',\n 'amount' => NULL,\n 'note' => '1 tablespoon Old Bay Seasoning',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/old-bay-seasoning\\\\\\'>old bay seasoning</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 9 => \n array (\n 'id' => 10,\n 'recipe_id' => '1',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 cans minced/chopped clams, with juice ',\n 'displayNote' => '\\'3 cans minced/chopped clams, with juice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 10 => \n array (\n 'id' => 11,\n 'recipe_id' => '1',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '1 teaspoon parsley',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 11 => \n array (\n 'id' => 12,\n 'recipe_id' => '1',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => ' parmesan cheese',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 12 => \n array (\n 'id' => 13,\n 'recipe_id' => '1',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb linguine or 1 lb thin spaghetti',\n 'displayNote' => '\\'1 lb linguine or 1 lb thin spaghetti\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 13 => \n array (\n 'id' => 14,\n 'recipe_id' => '2',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '3/4 cup vegetable oil',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 14 => \n array (\n 'id' => 15,\n 'recipe_id' => '2',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '1/4 cup cider vinegar',\n 'displayNote' => '\\'1/4 cup cider <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 15 => \n array (\n 'id' => 16,\n 'recipe_id' => '2',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 tablespoons water',\n 'displayNote' => '\\'2 tablespoons water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 16 => \n array (\n 'id' => 17,\n 'recipe_id' => '2',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1 teaspoon minced garlic',\n 'displayNote' => '\\'1 teaspoon minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 17 => \n array (\n 'id' => 18,\n 'recipe_id' => '2',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 teaspoons sugar',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 18 => \n array (\n 'id' => 19,\n 'recipe_id' => '2',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons salt',\n 'displayNote' => '\\'1 1/2 teaspoons salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 19 => \n array (\n 'id' => 20,\n 'recipe_id' => '2',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 20 => \n array (\n 'id' => 21,\n 'recipe_id' => '2',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1 teaspoon grated parmesan cheese',\n 'displayNote' => '\\'1 teaspoon grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:12',\n 'updated_at' => '2019-01-07 02:04:12',\n ),\n 21 => \n array (\n 'id' => 22,\n 'recipe_id' => '3',\n 'ingrident' => 'chicken thighs',\n 'amount' => NULL,\n 'note' => '8 chicken thighs, skin on ',\n 'displayNote' => '\\'8 <a href=\\\\\\'/ingridients/chicken-thighs\\\\\\'>chicken thighs</a> , skin on \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 22 => \n array (\n 'id' => 23,\n 'recipe_id' => '3',\n 'ingrident' => 'soy sauce',\n 'amount' => NULL,\n 'note' => '1/2 cup soy sauce',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/soy-sauce\\\\\\'>soy sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 23 => \n array (\n 'id' => 24,\n 'recipe_id' => '3',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/2 cup minced green onion',\n 'displayNote' => '\\'1/2 cup minced green <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 24 => \n array (\n 'id' => 25,\n 'recipe_id' => '3',\n 'ingrident' => 'sesame oil',\n 'amount' => NULL,\n 'note' => '3 tablespoons sesame oil',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/sesame-oil\\\\\\'>sesame oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 25 => \n array (\n 'id' => 26,\n 'recipe_id' => '3',\n 'ingrident' => 'honey',\n 'amount' => NULL,\n 'note' => '3 tablespoons honey',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/honey\\\\\\'>honey</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 26 => \n array (\n 'id' => 27,\n 'recipe_id' => '3',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 teaspoons minced garlic or 1/4 teaspoon garlic powder',\n 'displayNote' => '\\'2 teaspoons minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> or 1/4 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 27 => \n array (\n 'id' => 28,\n 'recipe_id' => '3',\n 'ingrident' => 'ginger',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon ground ginger',\n 'displayNote' => '\\'1/4 teaspoon ground <a href=\\\\\\'/ingridients/ginger\\\\\\'>ginger</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 28 => \n array (\n 'id' => 29,\n 'recipe_id' => '3',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon black pepper',\n 'displayNote' => '\\'1/4 teaspoon black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 29 => \n array (\n 'id' => 30,\n 'recipe_id' => '4',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '2 lbs lean ground beef',\n 'displayNote' => '\\'2 lbs lean <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 30 => \n array (\n 'id' => 31,\n 'recipe_id' => '4',\n 'ingrident' => 'bread',\n 'amount' => NULL,\n 'note' => '8 -10 slices white bread, broken into small 1/2 inch pieces (or you can use rolls or any stale bread you have and want to use up)',\n 'displayNote' => '\\'8 -10 slices white <a href=\\\\\\'/ingridients/bread\\\\\\'>bread</a> , broken into small 1/2 inch pieces (or you can use rolls or any stale <a href=\\\\\\'/ingridients/bread\\\\\\'>bread</a> you have and want to use up)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 31 => \n array (\n 'id' => 32,\n 'recipe_id' => '4',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs, slightly beaten ',\n 'displayNote' => '\\'2 eggs, slightly beaten \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 32 => \n array (\n 'id' => 33,\n 'recipe_id' => '4',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon garlic powder (or to taste)',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder (or to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 33 => \n array (\n 'id' => 34,\n 'recipe_id' => '4',\n 'ingrident' => 'italian seasoning',\n 'amount' => NULL,\n 'note' => '1 teaspoon italian seasoning (or to taste)',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/italian-seasoning\\\\\\'>italian seasoning</a> (or to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 34 => \n array (\n 'id' => 35,\n 'recipe_id' => '4',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '2 teaspoons parsley flakes (or to taste)',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> flakes (or to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 35 => \n array (\n 'id' => 36,\n 'recipe_id' => '4',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1/4-1/2 cup grated parmesan cheese (or Locatelli)',\n 'displayNote' => '\\'1/4-1/2 cup grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese (or locatelli)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 36 => \n array (\n 'id' => 37,\n 'recipe_id' => '4',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 -2 teaspoon salt',\n 'displayNote' => '\\'1 -2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 37 => \n array (\n 'id' => 38,\n 'recipe_id' => '4',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4-1/2 teaspoon black pepper',\n 'displayNote' => '\\'1/4-1/2 teaspoon black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 38 => \n array (\n 'id' => 39,\n 'recipe_id' => '4',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => ' olive oil (for frying) or vegetable oil (for frying)',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil (for frying) or <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> (for frying)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 39 => \n array (\n 'id' => 40,\n 'recipe_id' => '5',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 chicken breasts',\n 'displayNote' => '\\'4 chicken breasts\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 40 => \n array (\n 'id' => 41,\n 'recipe_id' => '5',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1 tablespoon instant minced garlic',\n 'displayNote' => '\\'1 tablespoon instant minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 41 => \n array (\n 'id' => 42,\n 'recipe_id' => '5',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '2 tablespoons olive oil',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 42 => \n array (\n 'id' => 43,\n 'recipe_id' => '5',\n 'ingrident' => 'spinach',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) bag spinach (frozen works great)',\n 'displayNote' => '\\'1 (16 ounce) bag <a href=\\\\\\'/ingridients/spinach\\\\\\'>spinach</a> (frozen works great)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 43 => \n array (\n 'id' => 44,\n 'recipe_id' => '5',\n 'ingrident' => 'feta',\n 'amount' => NULL,\n 'note' => '1 cup feta cheese',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/feta\\\\\\'>feta</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 44 => \n array (\n 'id' => 45,\n 'recipe_id' => '5',\n 'ingrident' => 'bread',\n 'amount' => NULL,\n 'note' => '2 cups seasoned bread crumbs',\n 'displayNote' => '\\'2 cups seasoned <a href=\\\\\\'/ingridients/bread\\\\\\'>bread</a> crumbs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 45 => \n array (\n 'id' => 46,\n 'recipe_id' => '5',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/2 cup butter (melted)',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> (melted)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 46 => \n array (\n 'id' => 47,\n 'recipe_id' => '6',\n 'ingrident' => 'chicken wings',\n 'amount' => NULL,\n 'note' => '3 lbs chicken wings',\n 'displayNote' => '\\'3 lbs <a href=\\\\\\'/ingridients/chicken-wings\\\\\\'>chicken wings</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 47 => \n array (\n 'id' => 48,\n 'recipe_id' => '6',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '2 tablespoons olive oil',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 48 => \n array (\n 'id' => 49,\n 'recipe_id' => '6',\n 'ingrident' => 'soy sauce',\n 'amount' => NULL,\n 'note' => '1/2 cup soy sauce',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/soy-sauce\\\\\\'>soy sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 49 => \n array (\n 'id' => 50,\n 'recipe_id' => '6',\n 'ingrident' => 'ketchup',\n 'amount' => NULL,\n 'note' => '2 tablespoons ketchup',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/ketchup\\\\\\'>ketchup</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 50 => \n array (\n 'id' => 51,\n 'recipe_id' => '6',\n 'ingrident' => 'honey',\n 'amount' => NULL,\n 'note' => '1 cup honey',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/honey\\\\\\'>honey</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 51 => \n array (\n 'id' => 52,\n 'recipe_id' => '6',\n 'ingrident' => 'clove',\n 'amount' => NULL,\n 'note' => '1 garlic clove, minced, to taste ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> <a href=\\\\\\'/ingridients/clove\\\\\\'>clove</a> , minced, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 52 => \n array (\n 'id' => 53,\n 'recipe_id' => '6',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pinch salt',\n 'displayNote' => '\\'1 pinch salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 53 => \n array (\n 'id' => 54,\n 'recipe_id' => '6',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pinch ground black pepper',\n 'displayNote' => '\\'1 pinch ground black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 54 => \n array (\n 'id' => 55,\n 'recipe_id' => '7',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 1/2 cups all-purpose flour',\n 'displayNote' => '\\'2 1/2 cups all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 55 => \n array (\n 'id' => 56,\n 'recipe_id' => '7',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 tablespoon baking powder',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 56 => \n array (\n 'id' => 57,\n 'recipe_id' => '7',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 57 => \n array (\n 'id' => 58,\n 'recipe_id' => '7',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '8 tablespoons cold unsalted butter, cut up ',\n 'displayNote' => '\\'8 tablespoons cold unsalted <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , cut up \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 58 => \n array (\n 'id' => 59,\n 'recipe_id' => '7',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup granulated sugar (use 1/3 for slightly sweeter scones)',\n 'displayNote' => '\\'1/4 cup granulated <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> (use 1/3 for slightly sweeter scones)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 59 => \n array (\n 'id' => 60,\n 'recipe_id' => '7',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '2/3 cup milk',\n 'displayNote' => '\\'2/3 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 60 => \n array (\n 'id' => 61,\n 'recipe_id' => '8',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 medium potatoes',\n 'displayNote' => '\\'4 medium potatoes\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:54',\n 'updated_at' => '2019-01-07 02:05:54',\n ),\n 61 => \n array (\n 'id' => 62,\n 'recipe_id' => '8',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup sour cream (I use fat-free and no one knows the difference!)',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> (i use fat-free and no one knows the difference!)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:54',\n 'updated_at' => '2019-01-07 02:05:54',\n ),\n 62 => \n array (\n 'id' => 63,\n 'recipe_id' => '8',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1/4 cup milk',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 63 => \n array (\n 'id' => 64,\n 'recipe_id' => '8',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup margarine',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 64 => \n array (\n 'id' => 65,\n 'recipe_id' => '8',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '1/2 cup shredded sharp cheddar cheese',\n 'displayNote' => '\\'1/2 cup shredded sharp <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 65 => \n array (\n 'id' => 66,\n 'recipe_id' => '8',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 66 => \n array (\n 'id' => 67,\n 'recipe_id' => '8',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 67 => \n array (\n 'id' => 68,\n 'recipe_id' => '8',\n 'ingrident' => 'bacon',\n 'amount' => NULL,\n 'note' => '4 slices bacon, crisp and crumbled (or 1 c. real bacon bits)',\n 'displayNote' => '\\'4 slices <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> , crisp and crumbled (or 1 c. real <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> bits)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 68 => \n array (\n 'id' => 69,\n 'recipe_id' => '9',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs',\n 'displayNote' => '\\'2 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:57',\n 'updated_at' => '2019-01-07 02:05:57',\n ),\n 69 => \n array (\n 'id' => 70,\n 'recipe_id' => '9',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '3/4 cup vegetable oil',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 70 => \n array (\n 'id' => 71,\n 'recipe_id' => '9',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 71 => \n array (\n 'id' => 72,\n 'recipe_id' => '9',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 72 => \n array (\n 'id' => 73,\n 'recipe_id' => '9',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 cups flour',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 73 => \n array (\n 'id' => 74,\n 'recipe_id' => '9',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '2 teaspoons cinnamon',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 74 => \n array (\n 'id' => 75,\n 'recipe_id' => '9',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 75 => \n array (\n 'id' => 76,\n 'recipe_id' => '9',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 76 => \n array (\n 'id' => 77,\n 'recipe_id' => '9',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 cups peeled chopped apples',\n 'displayNote' => '\\'4 cups peeled chopped apples\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 77 => \n array (\n 'id' => 78,\n 'recipe_id' => '10',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup oatmeal',\n 'displayNote' => '\\'1/2 cup oatmeal\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:00',\n 'updated_at' => '2019-01-07 02:06:00',\n ),\n 78 => \n array (\n 'id' => 79,\n 'recipe_id' => '10',\n 'ingrident' => 'cottage cheese',\n 'amount' => NULL,\n 'note' => '1/2 cup cottage cheese',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/cottage-cheese\\\\\\'>cottage cheese</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:00',\n 'updated_at' => '2019-01-07 02:06:00',\n ),\n 79 => \n array (\n 'id' => 80,\n 'recipe_id' => '10',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:00',\n 'updated_at' => '2019-01-07 02:06:00',\n ),\n 80 => \n array (\n 'id' => 81,\n 'recipe_id' => '10',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '4 egg whites',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> whites\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:00',\n 'updated_at' => '2019-01-07 02:06:00',\n ),\n 81 => \n array (\n 'id' => 82,\n 'recipe_id' => '11',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:03',\n 'updated_at' => '2019-01-07 02:06:03',\n ),\n 82 => \n array (\n 'id' => 83,\n 'recipe_id' => '11',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 3/4 cups flour',\n 'displayNote' => '\\'1 3/4 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:03',\n 'updated_at' => '2019-01-07 02:06:03',\n ),\n 83 => \n array (\n 'id' => 84,\n 'recipe_id' => '11',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup baking cocoa (dutch process or dark cocoa preferably)',\n 'displayNote' => '\\'3/4 cup baking cocoa (dutch process or dark cocoa preferably)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:03',\n 'updated_at' => '2019-01-07 02:06:03',\n ),\n 84 => \n array (\n 'id' => 85,\n 'recipe_id' => '11',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons baking powder',\n 'displayNote' => '\\'1 1/2 teaspoons <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 85 => \n array (\n 'id' => 86,\n 'recipe_id' => '11',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons baking soda',\n 'displayNote' => '\\'1 1/2 teaspoons <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 86 => \n array (\n 'id' => 87,\n 'recipe_id' => '11',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 87 => \n array (\n 'id' => 88,\n 'recipe_id' => '11',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs',\n 'displayNote' => '\\'2 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 88 => \n array (\n 'id' => 89,\n 'recipe_id' => '11',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 89 => \n array (\n 'id' => 90,\n 'recipe_id' => '11',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '1/2 cup vegetable oil',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 90 => \n array (\n 'id' => 91,\n 'recipe_id' => '11',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 teaspoons vanilla extract',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> extract\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 91 => \n array (\n 'id' => 92,\n 'recipe_id' => '11',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4-1 cup boiling water (see note below)',\n 'displayNote' => '\\'3/4-1 cup boiling water (see note below)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 92 => \n array (\n 'id' => 93,\n 'recipe_id' => '12',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1 1/4 cups butter or 1 1/4 cups margarine, softened ',\n 'displayNote' => '\\'1 1/4 cups <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or 1 1/4 cups <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 93 => \n array (\n 'id' => 94,\n 'recipe_id' => '12',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 94 => \n array (\n 'id' => 95,\n 'recipe_id' => '12',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 large eggs',\n 'displayNote' => '\\'2 large eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 95 => \n array (\n 'id' => 96,\n 'recipe_id' => '12',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 teaspoons vanilla extract',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> extract\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 96 => \n array (\n 'id' => 97,\n 'recipe_id' => '12',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 cups all-purpose flour',\n 'displayNote' => '\\'2 cups all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 97 => \n array (\n 'id' => 98,\n 'recipe_id' => '12',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup cocoa',\n 'displayNote' => '\\'3/4 cup cocoa\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:07',\n 'updated_at' => '2019-01-07 02:06:07',\n ),\n 98 => \n array (\n 'id' => 99,\n 'recipe_id' => '12',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:07',\n 'updated_at' => '2019-01-07 02:06:07',\n ),\n 99 => \n array (\n 'id' => 100,\n 'recipe_id' => '12',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:07',\n 'updated_at' => '2019-01-07 02:06:07',\n ),\n 100 => \n array (\n 'id' => 101,\n 'recipe_id' => '12',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '2 cups peanut butter chips (12 oz. pkg.) or 2 cups semi-sweet chocolate chips (12 oz. pkg.)',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> (12 oz. pkg.) or 2 cups semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> (12 oz. pkg.)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:07',\n 'updated_at' => '2019-01-07 02:06:07',\n ),\n 101 => \n array (\n 'id' => 102,\n 'recipe_id' => '13',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/2 cup butter, softened (you can use margarine but the flavor will not be the same)',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , softened (you can use <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> but the flavor will not be the same)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:09',\n 'updated_at' => '2019-01-07 02:06:09',\n ),\n 102 => \n array (\n 'id' => 103,\n 'recipe_id' => '13',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 2/3 cups confectioners\\' sugar, sifted ',\n 'displayNote' => '\\'2 2/3 cups confectioners\\\\\\' <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , sifted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:09',\n 'updated_at' => '2019-01-07 02:06:09',\n ),\n 103 => \n array (\n 'id' => 104,\n 'recipe_id' => '13',\n 'ingrident' => 'half and half',\n 'amount' => NULL,\n 'note' => '1/3 cup half-and-half cream (can use unwhipped whipping cream in place of half and half) or 1/3 cup milk (can use unwhipped whipping cream in place of half and half)',\n 'displayNote' => '\\'1/3 cup half-and-half <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> (can use unwhipped whipping <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> in place of <a href=\\\\\\'/ingridients/half-and-half\\\\\\'>half and half</a> ) or 1/3 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> (can use unwhipped whipping <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> in place of <a href=\\\\\\'/ingridients/half-and-half\\\\\\'>half and half</a> )\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:09',\n 'updated_at' => '2019-01-07 02:06:09',\n ),\n 104 => \n array (\n 'id' => 105,\n 'recipe_id' => '13',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons vanilla',\n 'displayNote' => '\\'1 1/2 teaspoons <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:09',\n 'updated_at' => '2019-01-07 02:06:09',\n ),\n 105 => \n array (\n 'id' => 106,\n 'recipe_id' => '13',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:10',\n 'updated_at' => '2019-01-07 02:06:10',\n ),\n 106 => \n array (\n 'id' => 107,\n 'recipe_id' => '13',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup unsweetened cocoa powder, sifted (for light)',\n 'displayNote' => '\\'1/3 cup unsweetened cocoa powder, sifted (for light)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:10',\n 'updated_at' => '2019-01-07 02:06:10',\n ),\n 107 => \n array (\n 'id' => 108,\n 'recipe_id' => '13',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup unsweetened cocoa powder, sifted (for medium)',\n 'displayNote' => '\\'1/2 cup unsweetened cocoa powder, sifted (for medium)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:10',\n 'updated_at' => '2019-01-07 02:06:10',\n ),\n 108 => \n array (\n 'id' => 109,\n 'recipe_id' => '13',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup unsweetened cocoa powder, sifted (for dark rich)',\n 'displayNote' => '\\'3/4 cup unsweetened cocoa powder, sifted (for dark rich)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:10',\n 'updated_at' => '2019-01-07 02:06:10',\n ),\n 109 => \n array (\n 'id' => 110,\n 'recipe_id' => '14',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 110 => \n array (\n 'id' => 111,\n 'recipe_id' => '14',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/2 cup butter',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 111 => \n array (\n 'id' => 112,\n 'recipe_id' => '14',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 large egg',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 112 => \n array (\n 'id' => 113,\n 'recipe_id' => '14',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 113 => \n array (\n 'id' => 114,\n 'recipe_id' => '14',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 1/2 cups flour',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 114 => \n array (\n 'id' => 115,\n 'recipe_id' => '14',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons cinnamon',\n 'displayNote' => '\\'1 1/2 teaspoons <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 115 => \n array (\n 'id' => 116,\n 'recipe_id' => '14',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 116 => \n array (\n 'id' => 117,\n 'recipe_id' => '14',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon salt',\n 'displayNote' => '\\'1/4 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:12',\n 'updated_at' => '2019-01-07 02:06:12',\n ),\n 117 => \n array (\n 'id' => 118,\n 'recipe_id' => '14',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => ' cinnamon sugar',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:12',\n 'updated_at' => '2019-01-07 02:06:12',\n ),\n 118 => \n array (\n 'id' => 119,\n 'recipe_id' => '15',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 garlic cloves, minced ',\n 'displayNote' => '\\'2 <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> cloves, minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 119 => \n array (\n 'id' => 120,\n 'recipe_id' => '15',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '6 tablespoons light olive oil',\n 'displayNote' => '\\'6 tablespoons light <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 120 => \n array (\n 'id' => 121,\n 'recipe_id' => '15',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 teaspoon dried basil',\n 'displayNote' => '\\'1 teaspoon dried <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 121 => \n array (\n 'id' => 122,\n 'recipe_id' => '15',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 122 => \n array (\n 'id' => 123,\n 'recipe_id' => '15',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon ground black pepper',\n 'displayNote' => '\\'1 teaspoon ground black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 123 => \n array (\n 'id' => 124,\n 'recipe_id' => '15',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '1 tablespoon lemon juice',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> juice\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 124 => \n array (\n 'id' => 125,\n 'recipe_id' => '15',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '1 tablespoon fresh parsley, chopped ',\n 'displayNote' => '\\'1 tablespoon fresh <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 125 => \n array (\n 'id' => 126,\n 'recipe_id' => '15',\n 'ingrident' => 'salmon',\n 'amount' => NULL,\n 'note' => '2 (6 ounce) salmon fillets',\n 'displayNote' => '\\'2 (6 ounce) <a href=\\\\\\'/ingridients/salmon\\\\\\'>salmon</a> fillets\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 126 => \n array (\n 'id' => 127,\n 'recipe_id' => '16',\n 'ingrident' => 'oreo',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) package Oreo cookies, crushed ',\n 'displayNote' => '\\'1 (16 ounce) package <a href=\\\\\\'/ingridients/oreo\\\\\\'>oreo</a> <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> , crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:19',\n 'updated_at' => '2019-01-07 02:06:19',\n ),\n 127 => \n array (\n 'id' => 128,\n 'recipe_id' => '16',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 (8 ounce) package cream cheese, softened ',\n 'displayNote' => '\\'1 (8 ounce) package <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:19',\n 'updated_at' => '2019-01-07 02:06:19',\n ),\n 128 => \n array (\n 'id' => 129,\n 'recipe_id' => '16',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 (24 ounce) package white chocolate bark',\n 'displayNote' => '\\'1 (24 ounce) package white <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> bark\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:19',\n 'updated_at' => '2019-01-07 02:06:19',\n ),\n 129 => \n array (\n 'id' => 130,\n 'recipe_id' => '16',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 (24 ounce) package chocolate bark',\n 'displayNote' => '\\'1 (24 ounce) package <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> bark\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:19',\n 'updated_at' => '2019-01-07 02:06:19',\n ),\n 130 => \n array (\n 'id' => 131,\n 'recipe_id' => '17',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 1/2 cups potatoes, peeled and diced (I keep mine with the peel)',\n 'displayNote' => '\\'3 1/2 cups potatoes, peeled and diced (i keep mine with the peel)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 131 => \n array (\n 'id' => 132,\n 'recipe_id' => '17',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1/3 cup celery, diced ',\n 'displayNote' => '\\'1/3 cup <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> , diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 132 => \n array (\n 'id' => 133,\n 'recipe_id' => '17',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/3 cup onion, finely chopped ',\n 'displayNote' => '\\'1/3 cup <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , finely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 133 => \n array (\n 'id' => 134,\n 'recipe_id' => '17',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '1 cup chopped carrot',\n 'displayNote' => '\\'1 cup chopped <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 134 => \n array (\n 'id' => 135,\n 'recipe_id' => '17',\n 'ingrident' => 'ham',\n 'amount' => NULL,\n 'note' => '1 -2 cup ham, diced and cooked ',\n 'displayNote' => '\\'1 -2 cup <a href=\\\\\\'/ingridients/ham\\\\\\'>ham</a> , diced and cooked \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 135 => \n array (\n 'id' => 136,\n 'recipe_id' => '17',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '3 1/4 cups chicken broth or 3 1/4 cups ham stock',\n 'displayNote' => '\\'3 1/4 cups <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> or 3 1/4 cups <a href=\\\\\\'/ingridients/ham\\\\\\'>ham</a> stock\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 136 => \n array (\n 'id' => 137,\n 'recipe_id' => '17',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '2 tablespoons chicken bouillon granules (omit if using chicken broth)',\n 'displayNote' => '\\'2 tablespoons chicken <a href=\\\\\\'/ingridients/bouillon\\\\\\'>bouillon</a> granules (omit if using <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> )\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 137 => \n array (\n 'id' => 138,\n 'recipe_id' => '17',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' salt (to taste)',\n 'displayNote' => '\\' salt (to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 138 => \n array (\n 'id' => 139,\n 'recipe_id' => '17',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon pepper',\n 'displayNote' => '\\'1 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 139 => \n array (\n 'id' => 140,\n 'recipe_id' => '17',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '5 tablespoons butter',\n 'displayNote' => '\\'5 tablespoons <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 140 => \n array (\n 'id' => 141,\n 'recipe_id' => '17',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '5 tablespoons flour',\n 'displayNote' => '\\'5 tablespoons <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 141 => \n array (\n 'id' => 142,\n 'recipe_id' => '17',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '2 cups milk',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 142 => \n array (\n 'id' => 143,\n 'recipe_id' => '17',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '2 cups cheddar cheese, shredded ',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese, shredded \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 143 => \n array (\n 'id' => 144,\n 'recipe_id' => '18',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '1 1/2 lbs ground beef',\n 'displayNote' => '\\'1 1/2 lbs <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 144 => \n array (\n 'id' => 145,\n 'recipe_id' => '18',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '2 tablespoons olive oil',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 145 => \n array (\n 'id' => 146,\n 'recipe_id' => '18',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 medium onion, chopped ',\n 'displayNote' => '\\'1 medium <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 146 => \n array (\n 'id' => 147,\n 'recipe_id' => '18',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 cloves garlic, minced (to taste)',\n 'displayNote' => '\\'2 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced (to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 147 => \n array (\n 'id' => 148,\n 'recipe_id' => '18',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 bay leaves',\n 'displayNote' => '\\'2 bay leaves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 148 => \n array (\n 'id' => 149,\n 'recipe_id' => '18',\n 'ingrident' => 'oregano',\n 'amount' => NULL,\n 'note' => '1 teaspoon oregano',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/oregano\\\\\\'>oregano</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 149 => \n array (\n 'id' => 150,\n 'recipe_id' => '18',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 teaspoon dried basil',\n 'displayNote' => '\\'1 teaspoon dried <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 150 => \n array (\n 'id' => 151,\n 'recipe_id' => '18',\n 'ingrident' => 'italian seasoning',\n 'amount' => NULL,\n 'note' => '1 teaspoon italian seasoning',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/italian-seasoning\\\\\\'>italian seasoning</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 151 => \n array (\n 'id' => 152,\n 'recipe_id' => '18',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt (, or to taste)',\n 'displayNote' => '\\'1 teaspoon salt (, or to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 152 => \n array (\n 'id' => 153,\n 'recipe_id' => '18',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' ground pepper',\n 'displayNote' => '\\' ground pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 153 => \n array (\n 'id' => 154,\n 'recipe_id' => '18',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '1 (6 ounce) can tomato paste',\n 'displayNote' => '\\'1 (6 ounce) can <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> paste\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 154 => \n array (\n 'id' => 155,\n 'recipe_id' => '18',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '2 (16 ounce) cans tomato sauce',\n 'displayNote' => '\\'2 (16 ounce) cans <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 155 => \n array (\n 'id' => 156,\n 'recipe_id' => '18',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (28 ounce) can diced tomatoes',\n 'displayNote' => '\\'1 (28 ounce) can diced tomatoes\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 156 => \n array (\n 'id' => 157,\n 'recipe_id' => '18',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '8 ounces fresh mushrooms, sliced and sauteed in butter ',\n 'displayNote' => '\\'8 ounces fresh mushrooms, sliced and sauteed in <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 157 => \n array (\n 'id' => 158,\n 'recipe_id' => '18',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => ' parmesan cheese, freshly grated ',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese, freshly grated \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 158 => \n array (\n 'id' => 159,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:28',\n 'updated_at' => '2019-01-07 02:06:28',\n ),\n 159 => \n array (\n 'id' => 160,\n 'recipe_id' => '19',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 cups all-purpose flour',\n 'displayNote' => '\\'2 cups all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:28',\n 'updated_at' => '2019-01-07 02:06:28',\n ),\n 160 => \n array (\n 'id' => 161,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:28',\n 'updated_at' => '2019-01-07 02:06:28',\n ),\n 161 => \n array (\n 'id' => 162,\n 'recipe_id' => '19',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 162 => \n array (\n 'id' => 163,\n 'recipe_id' => '19',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '2 teaspoons baking soda',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 163 => \n array (\n 'id' => 164,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup unsweetened cocoa powder',\n 'displayNote' => '\\'3/4 cup unsweetened cocoa powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 164 => \n array (\n 'id' => 165,\n 'recipe_id' => '19',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 165 => \n array (\n 'id' => 166,\n 'recipe_id' => '19',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '1 cup vegetable oil',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 166 => \n array (\n 'id' => 167,\n 'recipe_id' => '19',\n 'ingrident' => 'coffee',\n 'amount' => NULL,\n 'note' => '1 cup hot coffee',\n 'displayNote' => '\\'1 cup hot <a href=\\\\\\'/ingridients/coffee\\\\\\'>coffee</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 167 => \n array (\n 'id' => 168,\n 'recipe_id' => '19',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 168 => \n array (\n 'id' => 169,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 large eggs',\n 'displayNote' => '\\'2 large eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 169 => \n array (\n 'id' => 170,\n 'recipe_id' => '19',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 170 => \n array (\n 'id' => 171,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 171 => \n array (\n 'id' => 172,\n 'recipe_id' => '19',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 172 => \n array (\n 'id' => 173,\n 'recipe_id' => '19',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '5 tablespoons all-purpose flour',\n 'displayNote' => '\\'5 tablespoons all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 173 => \n array (\n 'id' => 174,\n 'recipe_id' => '19',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/2 cup butter, softened ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 174 => \n array (\n 'id' => 175,\n 'recipe_id' => '19',\n 'ingrident' => 'shortening',\n 'amount' => NULL,\n 'note' => '1/2 cup shortening',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/shortening\\\\\\'>shortening</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 175 => \n array (\n 'id' => 176,\n 'recipe_id' => '19',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 176 => \n array (\n 'id' => 177,\n 'recipe_id' => '19',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 177 => \n array (\n 'id' => 178,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '6 large green peppers',\n 'displayNote' => '\\'6 large green peppers\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 178 => \n array (\n 'id' => 179,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb beef, Ground ',\n 'displayNote' => '\\'1 lb beef, ground \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 179 => \n array (\n 'id' => 180,\n 'recipe_id' => '20',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/2 cup onion, Chopped ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 180 => \n array (\n 'id' => 181,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) can tomatoes, diced ',\n 'displayNote' => '\\'1 (16 ounce) can tomatoes, diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 181 => \n array (\n 'id' => 182,\n 'recipe_id' => '20',\n 'ingrident' => 'rice',\n 'amount' => NULL,\n 'note' => '1/2 cup long grain rice, any available rice is fine it may affect cooking time though ',\n 'displayNote' => '\\'1/2 cup long grain <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> , any available <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> is fine it may affect cooking time though \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 182 => \n array (\n 'id' => 183,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup water',\n 'displayNote' => '\\'1 cup water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 183 => \n array (\n 'id' => 184,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 184 => \n array (\n 'id' => 185,\n 'recipe_id' => '20',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '1 teaspoon Worcestershire sauce',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 185 => \n array (\n 'id' => 186,\n 'recipe_id' => '20',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '1 cup cheddar cheese, Shredded (about 4 ounces)',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese, shredded (about 4 ounces)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 186 => \n array (\n 'id' => 187,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 -1 1/2 lb cubed beef stew meat',\n 'displayNote' => '\\'1 -1 1/2 lb cubed beef stew meat\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 187 => \n array (\n 'id' => 188,\n 'recipe_id' => '21',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/2 cup flour',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 188 => \n array (\n 'id' => 189,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons salt',\n 'displayNote' => '\\'1 1/2 teaspoons salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 189 => \n array (\n 'id' => 190,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon pepper',\n 'displayNote' => '\\'1/2 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 190 => \n array (\n 'id' => 191,\n 'recipe_id' => '21',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '1/4 cup vegetable oil',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 191 => \n array (\n 'id' => 192,\n 'recipe_id' => '21',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion, chopped fine ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped fine \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 192 => \n array (\n 'id' => 193,\n 'recipe_id' => '21',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '1 carrot, chopped fine ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> , chopped fine \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 193 => \n array (\n 'id' => 194,\n 'recipe_id' => '21',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1/4 cup finely chopped celery, with a few minced leaves ',\n 'displayNote' => '\\'1/4 cup finely chopped <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> , with a few minced leaves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 194 => \n array (\n 'id' => 195,\n 'recipe_id' => '21',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '1 tablespoon dried parsley',\n 'displayNote' => '\\'1 tablespoon dried <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 195 => \n array (\n 'id' => 196,\n 'recipe_id' => '21',\n 'ingrident' => 'thyme',\n 'amount' => NULL,\n 'note' => '1 pinch thyme',\n 'displayNote' => '\\'1 pinch <a href=\\\\\\'/ingridients/thyme\\\\\\'>thyme</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 196 => \n array (\n 'id' => 197,\n 'recipe_id' => '21',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '3 1/2 cups beef broth',\n 'displayNote' => '\\'3 1/2 cups <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 197 => \n array (\n 'id' => 198,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 medium potatoes, diced ',\n 'displayNote' => '\\'2 medium potatoes, diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 198 => \n array (\n 'id' => 199,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 carrots, diced ',\n 'displayNote' => '\\'2 carrots, diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 199 => \n array (\n 'id' => 200,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 onions, diced ',\n 'displayNote' => '\\'2 onions, diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 200 => \n array (\n 'id' => 201,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 201 => \n array (\n 'id' => 202,\n 'recipe_id' => '22',\n 'ingrident' => 'mayonnaise',\n 'amount' => NULL,\n 'note' => '1 cup mayonnaise',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/mayonnaise\\\\\\'>mayonnaise</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 202 => \n array (\n 'id' => 203,\n 'recipe_id' => '22',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '2 tablespoons vinegar',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 203 => \n array (\n 'id' => 204,\n 'recipe_id' => '22',\n 'ingrident' => 'mustard',\n 'amount' => NULL,\n 'note' => '1 tablespoon mustard',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/mustard-1\\\\\\'>mustard</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 204 => \n array (\n 'id' => 205,\n 'recipe_id' => '22',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 teaspoon sugar',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 205 => \n array (\n 'id' => 206,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 206 => \n array (\n 'id' => 207,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 207 => \n array (\n 'id' => 208,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 lb macaroni, cooked and drained ',\n 'displayNote' => '\\'1/2 lb macaroni, cooked and drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 208 => \n array (\n 'id' => 209,\n 'recipe_id' => '22',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1 cup sliced celery',\n 'displayNote' => '\\'1 cup sliced <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 209 => \n array (\n 'id' => 210,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup chopped green pepper',\n 'displayNote' => '\\'1/2 cup chopped green pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 210 => \n array (\n 'id' => 211,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup chopped red pepper',\n 'displayNote' => '\\'1/2 cup chopped red pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 211 => \n array (\n 'id' => 212,\n 'recipe_id' => '22',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/2 cup chopped green onion',\n 'displayNote' => '\\'1/2 cup chopped green <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 212 => \n array (\n 'id' => 213,\n 'recipe_id' => '23',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (14 1/2 ounce) can tomatoes and green chilies',\n 'displayNote' => '\\'1 (14 1/2 ounce) can tomatoes and green chilies\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 213 => \n array (\n 'id' => 214,\n 'recipe_id' => '23',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (14 1/2 ounce) can whole canned tomatoes (plus the juice)',\n 'displayNote' => '\\'1 (14 1/2 ounce) can whole canned tomatoes (plus the juice)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 214 => \n array (\n 'id' => 215,\n 'recipe_id' => '23',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 teaspoons jalapenos (canned,diced, not pickled)',\n 'displayNote' => '\\'4 teaspoons jalapenos (canned,diced, not pickled)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 215 => \n array (\n 'id' => 216,\n 'recipe_id' => '23',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/4 cup yellow onion (diced)',\n 'displayNote' => '\\'1/4 cup yellow <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> (diced)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 216 => \n array (\n 'id' => 217,\n 'recipe_id' => '23',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1/2-3/4 teaspoon garlic salt',\n 'displayNote' => '\\'1/2-3/4 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 217 => \n array (\n 'id' => 218,\n 'recipe_id' => '23',\n 'ingrident' => 'cumin',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon cumin',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/cumin\\\\\\'>cumin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 218 => \n array (\n 'id' => 219,\n 'recipe_id' => '23',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon sugar',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 219 => \n array (\n 'id' => 220,\n 'recipe_id' => '24',\n 'ingrident' => 'tea',\n 'amount' => NULL,\n 'note' => '6 regular tea bags',\n 'displayNote' => '\\'6 regular <a href=\\\\\\'/ingridients/tea\\\\\\'>tea</a> bags\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 220 => \n array (\n 'id' => 221,\n 'recipe_id' => '24',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1/8 teaspoon baking soda',\n 'displayNote' => '\\'1/8 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 221 => \n array (\n 'id' => 222,\n 'recipe_id' => '24',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 cups boiling water',\n 'displayNote' => '\\'2 cups boiling water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 222 => \n array (\n 'id' => 223,\n 'recipe_id' => '24',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 1/2-2 cups sugar',\n 'displayNote' => '\\'1 1/2-2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 223 => \n array (\n 'id' => 224,\n 'recipe_id' => '24',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '6 cups cold water',\n 'displayNote' => '\\'6 cups cold water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 224 => \n array (\n 'id' => 225,\n 'recipe_id' => '25',\n 'ingrident' => 'cracker',\n 'amount' => NULL,\n 'note' => '1 1/2 cups graham cracker crumbs',\n 'displayNote' => '\\'1 1/2 cups graham <a href=\\\\\\'/ingridients/cracker\\\\\\'>cracker</a> crumbs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:53',\n 'updated_at' => '2019-01-07 02:06:53',\n ),\n 225 => \n array (\n 'id' => 226,\n 'recipe_id' => '25',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '5 tablespoons butter, melted ',\n 'displayNote' => '\\'5 tablespoons <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:53',\n 'updated_at' => '2019-01-07 02:06:53',\n ),\n 226 => \n array (\n 'id' => 227,\n 'recipe_id' => '25',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar, plus ',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , plus \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:53',\n 'updated_at' => '2019-01-07 02:06:53',\n ),\n 227 => \n array (\n 'id' => 228,\n 'recipe_id' => '25',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 tablespoon sugar',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 228 => \n array (\n 'id' => 229,\n 'recipe_id' => '25',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '3 (8 ounce) packages cream cheese',\n 'displayNote' => '\\'3 (8 ounce) packages <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 229 => \n array (\n 'id' => 230,\n 'recipe_id' => '25',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 230 => \n array (\n 'id' => 231,\n 'recipe_id' => '25',\n 'ingrident' => 'pumpkin',\n 'amount' => NULL,\n 'note' => '1 cup canned pumpkin',\n 'displayNote' => '\\'1 cup canned <a href=\\\\\\'/ingridients/pumpkin\\\\\\'>pumpkin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 231 => \n array (\n 'id' => 232,\n 'recipe_id' => '25',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 eggs',\n 'displayNote' => '\\'3 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 232 => \n array (\n 'id' => 233,\n 'recipe_id' => '25',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon cinnamon',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 233 => \n array (\n 'id' => 234,\n 'recipe_id' => '25',\n 'ingrident' => 'nutmeg',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon nutmeg',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/nutmeg\\\\\\'>nutmeg</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 234 => \n array (\n 'id' => 235,\n 'recipe_id' => '25',\n 'ingrident' => 'allspice',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon allspice',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/allspice\\\\\\'>allspice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 235 => \n array (\n 'id' => 236,\n 'recipe_id' => '25',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => ' whipped cream',\n 'displayNote' => '\\' whipped <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 236 => \n array (\n 'id' => 237,\n 'recipe_id' => '26',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/3 cup flour',\n 'displayNote' => '\\'1/3 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 237 => \n array (\n 'id' => 238,\n 'recipe_id' => '26',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 238 => \n array (\n 'id' => 239,\n 'recipe_id' => '26',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 239 => \n array (\n 'id' => 240,\n 'recipe_id' => '26',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 1/2 lbs boneless beef short ribs',\n 'displayNote' => '\\'2 1/2 lbs boneless beef short ribs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 240 => \n array (\n 'id' => 241,\n 'recipe_id' => '26',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/4 cup butter',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 241 => \n array (\n 'id' => 242,\n 'recipe_id' => '26',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 cup chopped onion',\n 'displayNote' => '\\'1 cup chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 242 => \n array (\n 'id' => 243,\n 'recipe_id' => '26',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '1 cup beef broth',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 243 => \n array (\n 'id' => 244,\n 'recipe_id' => '26',\n 'ingrident' => 'red wine',\n 'amount' => NULL,\n 'note' => '3/4 cup red wine vinegar',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/red-wine\\\\\\'>red wine</a> <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 244 => \n array (\n 'id' => 245,\n 'recipe_id' => '26',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup brown sugar',\n 'displayNote' => '\\'3/4 cup brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 245 => \n array (\n 'id' => 246,\n 'recipe_id' => '26',\n 'ingrident' => 'chili sauce',\n 'amount' => NULL,\n 'note' => '1/4 cup chili sauce',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/chili-sauce\\\\\\'>chili sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 246 => \n array (\n 'id' => 247,\n 'recipe_id' => '26',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 tablespoons catsup',\n 'displayNote' => '\\'2 tablespoons catsup\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 247 => \n array (\n 'id' => 248,\n 'recipe_id' => '26',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '2 tablespoons Worcestershire sauce',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 248 => \n array (\n 'id' => 249,\n 'recipe_id' => '26',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 tablespoons minced garlic',\n 'displayNote' => '\\'2 tablespoons minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 249 => \n array (\n 'id' => 250,\n 'recipe_id' => '26',\n 'ingrident' => 'chili powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon chili powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/chili-powder\\\\\\'>chili powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:59',\n 'updated_at' => '2019-01-07 02:06:59',\n ),\n 250 => \n array (\n 'id' => 251,\n 'recipe_id' => '27',\n 'ingrident' => 'cereal',\n 'amount' => NULL,\n 'note' => '9 cups Chex cereal (any kind)',\n 'displayNote' => '\\'9 cups chex <a href=\\\\\\'/ingridients/cereal\\\\\\'>cereal</a> (any kind)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 251 => \n array (\n 'id' => 252,\n 'recipe_id' => '27',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 cup semi-sweet chocolate chips or 6 ounces semi-sweet chocolate chips, melted ',\n 'displayNote' => '\\'1 cup semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> or 6 ounces semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 252 => \n array (\n 'id' => 253,\n 'recipe_id' => '27',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => '1/2 cup smooth peanut butter, melted ',\n 'displayNote' => '\\'1/2 cup smooth <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 253 => \n array (\n 'id' => 254,\n 'recipe_id' => '27',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/4 cup butter, melted ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 254 => \n array (\n 'id' => 255,\n 'recipe_id' => '27',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 -2 teaspoon vanilla',\n 'displayNote' => '\\'1 -2 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 255 => \n array (\n 'id' => 256,\n 'recipe_id' => '27',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 1/2 cups powdered sugar',\n 'displayNote' => '\\'1 1/2 cups powdered <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 256 => \n array (\n 'id' => 257,\n 'recipe_id' => '28',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 large ripe bananas',\n 'displayNote' => '\\'3 large ripe bananas\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 257 => \n array (\n 'id' => 258,\n 'recipe_id' => '28',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup sugar',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 258 => \n array (\n 'id' => 259,\n 'recipe_id' => '28',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 egg, slightly beaten ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> , slightly beaten \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 259 => \n array (\n 'id' => 260,\n 'recipe_id' => '28',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/3 cup melted butter',\n 'displayNote' => '\\'1/3 cup melted <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 260 => \n array (\n 'id' => 261,\n 'recipe_id' => '28',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup blueberries',\n 'displayNote' => '\\'1 cup blueberries\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 261 => \n array (\n 'id' => 262,\n 'recipe_id' => '28',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:05',\n 'updated_at' => '2019-01-07 02:07:05',\n ),\n 262 => \n array (\n 'id' => 263,\n 'recipe_id' => '28',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:05',\n 'updated_at' => '2019-01-07 02:07:05',\n ),\n 263 => \n array (\n 'id' => 264,\n 'recipe_id' => '28',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:05',\n 'updated_at' => '2019-01-07 02:07:05',\n ),\n 264 => \n array (\n 'id' => 265,\n 'recipe_id' => '28',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 1/2 cups flour',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:05',\n 'updated_at' => '2019-01-07 02:07:05',\n ),\n 265 => \n array (\n 'id' => 266,\n 'recipe_id' => '29',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => '1 cup peanut butter (your choice, smooth or chunky)',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> (your choice, smooth or chunky)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:07',\n 'updated_at' => '2019-01-07 02:07:07',\n ),\n 266 => \n array (\n 'id' => 267,\n 'recipe_id' => '29',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup granulated sugar',\n 'displayNote' => '\\'1 cup granulated <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:07',\n 'updated_at' => '2019-01-07 02:07:07',\n ),\n 267 => \n array (\n 'id' => 268,\n 'recipe_id' => '29',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 large egg',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:07',\n 'updated_at' => '2019-01-07 02:07:07',\n ),\n 268 => \n array (\n 'id' => 269,\n 'recipe_id' => '29',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => ' sugar, for rolling ',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , for rolling \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:07',\n 'updated_at' => '2019-01-07 02:07:07',\n ),\n 269 => \n array (\n 'id' => 270,\n 'recipe_id' => '30',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 (10 1/2 ounce) can campbells French onion soup',\n 'displayNote' => '\\'1 (10 1/2 ounce) can campbells french <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> soup\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:09',\n 'updated_at' => '2019-01-07 02:07:09',\n ),\n 270 => \n array (\n 'id' => 271,\n 'recipe_id' => '30',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '1 1/2 lbs ground beef',\n 'displayNote' => '\\'1 1/2 lbs <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:09',\n 'updated_at' => '2019-01-07 02:07:09',\n ),\n 271 => \n array (\n 'id' => 272,\n 'recipe_id' => '30',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup dry breadcrumbs',\n 'displayNote' => '\\'1/2 cup dry breadcrumbs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 272 => \n array (\n 'id' => 273,\n 'recipe_id' => '30',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 egg',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 273 => \n array (\n 'id' => 274,\n 'recipe_id' => '30',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon salt',\n 'displayNote' => '\\'1/4 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 274 => \n array (\n 'id' => 275,\n 'recipe_id' => '30',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/8 teaspoon ground black pepper, to taste ',\n 'displayNote' => '\\'1/8 teaspoon ground black pepper, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 275 => \n array (\n 'id' => 276,\n 'recipe_id' => '30',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 tablespoon all-purpose flour',\n 'displayNote' => '\\'1 tablespoon all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 276 => \n array (\n 'id' => 277,\n 'recipe_id' => '30',\n 'ingrident' => 'ketchup',\n 'amount' => NULL,\n 'note' => '1/4 cup ketchup',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/ketchup\\\\\\'>ketchup</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 277 => \n array (\n 'id' => 278,\n 'recipe_id' => '30',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '1 -3 teaspoon Worcestershire sauce, to taste ',\n 'displayNote' => '\\'1 -3 teaspoon <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 278 => \n array (\n 'id' => 279,\n 'recipe_id' => '30',\n 'ingrident' => 'mustard',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon mustard powder',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/mustard-1\\\\\\'>mustard</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 279 => \n array (\n 'id' => 280,\n 'recipe_id' => '30',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup water',\n 'displayNote' => '\\'1/4 cup water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 280 => \n array (\n 'id' => 281,\n 'recipe_id' => '31',\n 'ingrident' => 'potato',\n 'amount' => NULL,\n 'note' => '1 large potato, per person ',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/potato\\\\\\'>potato</a> , per person \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 281 => \n array (\n 'id' => 282,\n 'recipe_id' => '31',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped celery, per person (include leaves)',\n 'displayNote' => '\\'1/4 cup chopped <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> , per person (include leaves)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 282 => \n array (\n 'id' => 283,\n 'recipe_id' => '31',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped onion, per person ',\n 'displayNote' => '\\'1/4 cup chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , per person \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 283 => \n array (\n 'id' => 284,\n 'recipe_id' => '31',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/4-1/2 cup half-and-half or 1/4-1/2 cup cream',\n 'displayNote' => '\\'1/4-1/2 cup half-and-half or 1/4-1/2 cup <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 284 => \n array (\n 'id' => 285,\n 'recipe_id' => '31',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' salt and pepper, to taste ',\n 'displayNote' => '\\' salt and pepper, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 285 => \n array (\n 'id' => 286,\n 'recipe_id' => '32',\n 'ingrident' => 'mushroom',\n 'amount' => NULL,\n 'note' => '1 (10 3/4 ounce) can condensed cream of mushroom soup',\n 'displayNote' => '\\'1 (10 3/4 ounce) can condensed <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> of <a href=\\\\\\'/ingridients/mushroom\\\\\\'>mushroom</a> soup\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 286 => \n array (\n 'id' => 287,\n 'recipe_id' => '32',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1/4 cup milk',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 287 => \n array (\n 'id' => 288,\n 'recipe_id' => '32',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/8 teaspoon black pepper',\n 'displayNote' => '\\'1/8 teaspoon black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 288 => \n array (\n 'id' => 289,\n 'recipe_id' => '32',\n 'ingrident' => 'green beans',\n 'amount' => NULL,\n 'note' => '2 (14 1/2 ounce) cans cut green beans, drained ',\n 'displayNote' => '\\'2 (14 1/2 ounce) cans cut <a href=\\\\\\'/ingridients/green-beans\\\\\\'>green beans</a> , drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 289 => \n array (\n 'id' => 290,\n 'recipe_id' => '32',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 1/3 cups French-fried onions (French\\'s)',\n 'displayNote' => '\\'1 1/3 cups french-fried onions (french\\\\\\'s)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 290 => \n array (\n 'id' => 291,\n 'recipe_id' => '33',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1 tablespoon butter',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 291 => \n array (\n 'id' => 292,\n 'recipe_id' => '33',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/2 cup finely chopped onion',\n 'displayNote' => '\\'1/2 cup finely chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 292 => \n array (\n 'id' => 293,\n 'recipe_id' => '33',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1/3 cup finely chopped celery',\n 'displayNote' => '\\'1/3 cup finely chopped <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 293 => \n array (\n 'id' => 294,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon ground pepper',\n 'displayNote' => '\\'1/2 teaspoon ground pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 294 => \n array (\n 'id' => 295,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 295 => \n array (\n 'id' => 296,\n 'recipe_id' => '33',\n 'ingrident' => 'peas',\n 'amount' => NULL,\n 'note' => '3/4 cup frozen peas',\n 'displayNote' => '\\'3/4 cup frozen <a href=\\\\\\'/ingridients/peas\\\\\\'>peas</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 296 => \n array (\n 'id' => 297,\n 'recipe_id' => '33',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '3/4 cup carrot (I use the pre-cut matchstick carrots)',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> (i use the pre-cut matchstick <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> s)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 297 => \n array (\n 'id' => 298,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '8 ounces sliced mushrooms',\n 'displayNote' => '\\'8 ounces sliced mushrooms\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 298 => \n array (\n 'id' => 299,\n 'recipe_id' => '33',\n 'ingrident' => 'sherry',\n 'amount' => NULL,\n 'note' => '1/2 cup white wine (or sherry)',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/white-wine\\\\\\'>white wine</a> (or <a href=\\\\\\'/ingridients/sherry\\\\\\'>sherry</a> )\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 299 => \n array (\n 'id' => 300,\n 'recipe_id' => '33',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/2 cup flour',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 300 => \n array (\n 'id' => 301,\n 'recipe_id' => '33',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '4 cups chicken broth (or turkey broth)',\n 'displayNote' => '\\'4 cups <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> (or <a href=\\\\\\'/ingridients/turkey\\\\\\'>turkey</a> broth)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 301 => \n array (\n 'id' => 302,\n 'recipe_id' => '33',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1 cup parmesan cheese (divided)',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese (divided)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 302 => \n array (\n 'id' => 303,\n 'recipe_id' => '33',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '4 ounces light cream cheese (low fat)',\n 'displayNote' => '\\'4 ounces light <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> (low fat)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 303 => \n array (\n 'id' => 304,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (8 ounce) package thin spaghetti (cooked)',\n 'displayNote' => '\\'1 (8 ounce) package thin spaghetti (cooked)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 304 => \n array (\n 'id' => 305,\n 'recipe_id' => '33',\n 'ingrident' => 'turkey',\n 'amount' => NULL,\n 'note' => '2 cups turkey meat, cooked and shredded (or chicken)',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/turkey\\\\\\'>turkey</a> meat, cooked and shredded (or chicken)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 305 => \n array (\n 'id' => 306,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup breadcrumbs (I use panko)',\n 'displayNote' => '\\'1/2 cup breadcrumbs (i use panko)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 306 => \n array (\n 'id' => 307,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb beef stew meat',\n 'displayNote' => '\\'1 lb beef stew meat\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:31',\n 'updated_at' => '2019-01-07 02:07:31',\n ),\n 307 => \n array (\n 'id' => 308,\n 'recipe_id' => '34',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:31',\n 'updated_at' => '2019-01-07 02:07:31',\n ),\n 308 => \n array (\n 'id' => 309,\n 'recipe_id' => '34',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '3 celery ribs',\n 'displayNote' => '\\'3 <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> ribs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 309 => \n array (\n 'id' => 310,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '10 baby carrots (or a couple regular carrots)',\n 'displayNote' => '\\'10 baby carrots (or a couple regular carrots)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 310 => \n array (\n 'id' => 311,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 potatoes (peeled if you like)',\n 'displayNote' => '\\'2 potatoes (peeled if you like)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 311 => \n array (\n 'id' => 312,\n 'recipe_id' => '34',\n 'ingrident' => 'corn',\n 'amount' => NULL,\n 'note' => '1 cup frozen corn',\n 'displayNote' => '\\'1 cup frozen <a href=\\\\\\'/ingridients/corn\\\\\\'>corn</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 312 => \n array (\n 'id' => 313,\n 'recipe_id' => '34',\n 'ingrident' => 'peas',\n 'amount' => NULL,\n 'note' => '1 cup frozen peas',\n 'displayNote' => '\\'1 cup frozen <a href=\\\\\\'/ingridients/peas\\\\\\'>peas</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 313 => \n array (\n 'id' => 314,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 (14 ounce) cans diced tomatoes (I use salt-free)',\n 'displayNote' => '\\'2 (14 ounce) cans diced tomatoes (i use salt-free)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 314 => \n array (\n 'id' => 315,\n 'recipe_id' => '34',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '3 1/2 cups beef broth (or 2 14-oz cans)',\n 'displayNote' => '\\'3 1/2 cups <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> (or 2 14-oz cans)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 315 => \n array (\n 'id' => 316,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 small bay leaves',\n 'displayNote' => '\\'2 small bay leaves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 316 => \n array (\n 'id' => 317,\n 'recipe_id' => '34',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 teaspoons garlic powder',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 317 => \n array (\n 'id' => 318,\n 'recipe_id' => '34',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '2 tablespoons olive oil (or any cooking oil)',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil (or any cooking oil)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 318 => \n array (\n 'id' => 319,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 cups water',\n 'displayNote' => '\\'4 cups water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 319 => \n array (\n 'id' => 320,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 teaspoons hot pepper sauce',\n 'displayNote' => '\\'2 teaspoons hot pepper sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 320 => \n array (\n 'id' => 321,\n 'recipe_id' => '35',\n 'ingrident' => 'flax',\n 'amount' => NULL,\n 'note' => '2 tablespoons ground flax seeds',\n 'displayNote' => '\\'2 tablespoons ground <a href=\\\\\\'/ingridients/flax\\\\\\'>flax</a> seeds\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 321 => \n array (\n 'id' => 322,\n 'recipe_id' => '35',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '6 tablespoons water',\n 'displayNote' => '\\'6 tablespoons water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 322 => \n array (\n 'id' => 323,\n 'recipe_id' => '35',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 cup all-purpose flour',\n 'displayNote' => '\\'1 cup all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 323 => \n array (\n 'id' => 324,\n 'recipe_id' => '35',\n 'ingrident' => 'cornmeal',\n 'amount' => NULL,\n 'note' => '1 cup cornmeal',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/cornmeal\\\\\\'>cornmeal</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 324 => \n array (\n 'id' => 325,\n 'recipe_id' => '35',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup sugar',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 325 => \n array (\n 'id' => 326,\n 'recipe_id' => '35',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '4 teaspoons baking powder',\n 'displayNote' => '\\'4 teaspoons <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:37',\n 'updated_at' => '2019-01-07 02:07:37',\n ),\n 326 => \n array (\n 'id' => 327,\n 'recipe_id' => '35',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 teaspoon table salt',\n 'displayNote' => '\\'3/4 teaspoon table salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:37',\n 'updated_at' => '2019-01-07 02:07:37',\n ),\n 327 => \n array (\n 'id' => 328,\n 'recipe_id' => '35',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup soymilk',\n 'displayNote' => '\\'1 cup soymilk\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:37',\n 'updated_at' => '2019-01-07 02:07:37',\n ),\n 328 => \n array (\n 'id' => 329,\n 'recipe_id' => '35',\n 'ingrident' => 'canola oil',\n 'amount' => NULL,\n 'note' => '1/4 cup canola oil',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/canola-oil\\\\\\'>canola oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:37',\n 'updated_at' => '2019-01-07 02:07:37',\n ),\n 329 => \n array (\n 'id' => 330,\n 'recipe_id' => '36',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '1/4 cup balsamic vinegar',\n 'displayNote' => '\\'1/4 cup balsamic <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 330 => \n array (\n 'id' => 331,\n 'recipe_id' => '36',\n 'ingrident' => 'soy sauce',\n 'amount' => NULL,\n 'note' => '1/4 cup soy sauce',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/soy-sauce\\\\\\'>soy sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 331 => \n array (\n 'id' => 332,\n 'recipe_id' => '36',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '2 tablespoons Worcestershire sauce',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 332 => \n array (\n 'id' => 333,\n 'recipe_id' => '36',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '1/4 cup olive oil',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 333 => \n array (\n 'id' => 334,\n 'recipe_id' => '36',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 garlic cloves, Crushed ',\n 'displayNote' => '\\'2 <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> cloves, crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 334 => \n array (\n 'id' => 335,\n 'recipe_id' => '36',\n 'ingrident' => 'rosemary',\n 'amount' => NULL,\n 'note' => '1 teaspoon rosemary',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/rosemary\\\\\\'>rosemary</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 335 => \n array (\n 'id' => 336,\n 'recipe_id' => '36',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon fresh ground black pepper',\n 'displayNote' => '\\'1/4 teaspoon fresh ground black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 336 => \n array (\n 'id' => 337,\n 'recipe_id' => '36',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 lbs london broil beef (approx)',\n 'displayNote' => '\\'2 lbs london broil beef (approx)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 337 => \n array (\n 'id' => 338,\n 'recipe_id' => '37',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 fresh garlic cloves, minced then crushed ',\n 'displayNote' => '\\'2 fresh <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> cloves, minced then crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 338 => \n array (\n 'id' => 339,\n 'recipe_id' => '37',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon salt',\n 'displayNote' => '\\'1/4 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 339 => \n array (\n 'id' => 340,\n 'recipe_id' => '37',\n 'ingrident' => 'mustard',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons Dijon mustard (Grey poupon)',\n 'displayNote' => '\\'1 1/2 teaspoons dijon <a href=\\\\\\'/ingridients/mustard-1\\\\\\'>mustard</a> (grey poupon)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 340 => \n array (\n 'id' => 341,\n 'recipe_id' => '37',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '1/2 cup extra virgin olive oil',\n 'displayNote' => '\\'1/2 cup extra virgin <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 341 => \n array (\n 'id' => 342,\n 'recipe_id' => '37',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '2 tablespoons fresh lemon juice (not bottled)',\n 'displayNote' => '\\'2 tablespoons fresh <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> juice (not bottled)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 342 => \n array (\n 'id' => 343,\n 'recipe_id' => '37',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon sugar',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 343 => \n array (\n 'id' => 344,\n 'recipe_id' => '37',\n 'ingrident' => 'red wine',\n 'amount' => NULL,\n 'note' => '5 tablespoons red wine vinegar',\n 'displayNote' => '\\'5 tablespoons <a href=\\\\\\'/ingridients/red-wine\\\\\\'>red wine</a> <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 344 => \n array (\n 'id' => 345,\n 'recipe_id' => '37',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon basil leaves',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> leaves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 345 => \n array (\n 'id' => 346,\n 'recipe_id' => '37',\n 'ingrident' => 'oregano',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon oregano leaves',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/oregano\\\\\\'>oregano</a> leaves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 346 => \n array (\n 'id' => 347,\n 'recipe_id' => '38',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 eggs',\n 'displayNote' => '\\'4 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 347 => \n array (\n 'id' => 348,\n 'recipe_id' => '38',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 348 => \n array (\n 'id' => 349,\n 'recipe_id' => '38',\n 'ingrident' => 'pumpkin',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) can pumpkin',\n 'displayNote' => '\\'1 (16 ounce) can <a href=\\\\\\'/ingridients/pumpkin\\\\\\'>pumpkin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 349 => \n array (\n 'id' => 350,\n 'recipe_id' => '38',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla extract',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> extract\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 350 => \n array (\n 'id' => 351,\n 'recipe_id' => '38',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '1 1/4 cups vegetable oil (yes, 1 1/4 cups)',\n 'displayNote' => '\\'1 1/4 cups <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> (yes, 1 1/4 cups)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 351 => \n array (\n 'id' => 352,\n 'recipe_id' => '38',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '3 cups flour',\n 'displayNote' => '\\'3 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 352 => \n array (\n 'id' => 353,\n 'recipe_id' => '38',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '2 teaspoons baking soda',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 353 => \n array (\n 'id' => 354,\n 'recipe_id' => '38',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '2 teaspoons baking powder',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 354 => \n array (\n 'id' => 355,\n 'recipe_id' => '38',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '2 teaspoons cinnamon',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 355 => \n array (\n 'id' => 356,\n 'recipe_id' => '38',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 356 => \n array (\n 'id' => 357,\n 'recipe_id' => '38',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '12 ounces semi-sweet chocolate chips (Regular or mini, I like mini best)',\n 'displayNote' => '\\'12 ounces semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> (regular or mini, i like mini best)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 357 => \n array (\n 'id' => 358,\n 'recipe_id' => '39',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (9 ounce) box barilla no-boil lasagna noodles',\n 'displayNote' => '\\'1 (9 ounce) box barilla no-boil lasagna noodles\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 358 => \n array (\n 'id' => 359,\n 'recipe_id' => '39',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs',\n 'displayNote' => '\\'2 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 359 => \n array (\n 'id' => 360,\n 'recipe_id' => '39',\n 'ingrident' => 'ricotta',\n 'amount' => NULL,\n 'note' => '1 (15 ounce) container ricotta cheese',\n 'displayNote' => '\\'1 (15 ounce) container <a href=\\\\\\'/ingridients/ricotta\\\\\\'>ricotta</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 360 => \n array (\n 'id' => 361,\n 'recipe_id' => '39',\n 'ingrident' => 'mozzarella',\n 'amount' => NULL,\n 'note' => '4 cups shredded mozzarella cheese',\n 'displayNote' => '\\'4 cups shredded <a href=\\\\\\'/ingridients/mozzarella\\\\\\'>mozzarella</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 361 => \n array (\n 'id' => 362,\n 'recipe_id' => '39',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1/2 cup parmesan cheese',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 362 => \n array (\n 'id' => 363,\n 'recipe_id' => '39',\n 'ingrident' => 'sausage',\n 'amount' => NULL,\n 'note' => '1 lb ground beef or 1 lb sausage, browned ',\n 'displayNote' => '\\'1 lb <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> or 1 lb <a href=\\\\\\'/ingridients/sausage\\\\\\'>sausage</a> , browned \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:58',\n 'updated_at' => '2019-01-07 02:07:58',\n ),\n 363 => \n array (\n 'id' => 364,\n 'recipe_id' => '39',\n 'ingrident' => 'pasta',\n 'amount' => NULL,\n 'note' => '2 (24 ounce) jars spaghetti sauce or 2 (24 ounce) jars pasta sauce',\n 'displayNote' => '\\'2 (24 ounce) jars spaghetti sauce or 2 (24 ounce) jars <a href=\\\\\\'/ingridients/pasta\\\\\\'>pasta</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:58',\n 'updated_at' => '2019-01-07 02:07:58',\n ),\n 364 => \n array (\n 'id' => 365,\n 'recipe_id' => '39',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => ' parsley (to garnish)',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> (to garnish)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:58',\n 'updated_at' => '2019-01-07 02:07:58',\n ),\n 365 => \n array (\n 'id' => 366,\n 'recipe_id' => '40',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 cups all-purpose flour',\n 'displayNote' => '\\'2 cups all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 366 => \n array (\n 'id' => 367,\n 'recipe_id' => '40',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 tablespoon baking powder',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 367 => \n array (\n 'id' => 368,\n 'recipe_id' => '40',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 368 => \n array (\n 'id' => 369,\n 'recipe_id' => '40',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 tablespoons butter',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 369 => \n array (\n 'id' => 370,\n 'recipe_id' => '40',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 370 => \n array (\n 'id' => 371,\n 'recipe_id' => '41',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 371 => \n array (\n 'id' => 372,\n 'recipe_id' => '41',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup margarine',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 372 => \n array (\n 'id' => 373,\n 'recipe_id' => '41',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1/2 cup milk',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 373 => \n array (\n 'id' => 374,\n 'recipe_id' => '41',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => '1 cup peanut butter',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 374 => \n array (\n 'id' => 375,\n 'recipe_id' => '41',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 375 => \n array (\n 'id' => 376,\n 'recipe_id' => '41',\n 'ingrident' => 'rolled oats',\n 'amount' => NULL,\n 'note' => '3 cups rolled oats (old fashioned)',\n 'displayNote' => '\\'3 cups <a href=\\\\\\'/ingridients/rolled-oats\\\\\\'>rolled oats</a> (old fashioned)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 376 => \n array (\n 'id' => 377,\n 'recipe_id' => '42',\n 'ingrident' => 'haddock',\n 'amount' => NULL,\n 'note' => '4 cod fish fillets or 4 haddock fillets',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/cod\\\\\\'>cod</a> <a href=\\\\\\'/ingridients/fish-fillets\\\\\\'>fish fillets</a> or 4 <a href=\\\\\\'/ingridients/haddock\\\\\\'>haddock</a> fillets\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 377 => \n array (\n 'id' => 378,\n 'recipe_id' => '42',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '6 ounces plain flour',\n 'displayNote' => '\\'6 ounces plain <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 378 => \n array (\n 'id' => 379,\n 'recipe_id' => '42',\n 'ingrident' => 'bicarbonate of soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon bicarbonate of soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/bicarbonate-of-soda\\\\\\'>bicarbonate of soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 379 => \n array (\n 'id' => 380,\n 'recipe_id' => '42',\n 'ingrident' => 'beer',\n 'amount' => NULL,\n 'note' => '1 (8 fluid ounce) bottle british beer, Small ',\n 'displayNote' => '\\'1 (8 fluid ounce) bottle british <a href=\\\\\\'/ingridients/beer\\\\\\'>beer</a> , small \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 380 => \n array (\n 'id' => 381,\n 'recipe_id' => '42',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '1/2 lemon, juice of',\n 'displayNote' => '\\'1/2 <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> , juice of\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 381 => \n array (\n 'id' => 382,\n 'recipe_id' => '42',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' salt & pepper',\n 'displayNote' => '\\' salt & pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 382 => \n array (\n 'id' => 383,\n 'recipe_id' => '42',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => ' extra flour',\n 'displayNote' => '\\' extra <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 383 => \n array (\n 'id' => 384,\n 'recipe_id' => '42',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 lbs potatoes, peeled & chipped ',\n 'displayNote' => '\\'3 lbs potatoes, peeled & chipped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 384 => \n array (\n 'id' => 385,\n 'recipe_id' => '42',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' good quality cooking fat or oil',\n 'displayNote' => '\\' good quality cooking fat or oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 385 => \n array (\n 'id' => 386,\n 'recipe_id' => '43',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/2 cup butter',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 386 => \n array (\n 'id' => 387,\n 'recipe_id' => '43',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '8 ounces cream cheese',\n 'displayNote' => '\\'8 ounces <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 387 => \n array (\n 'id' => 388,\n 'recipe_id' => '43',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '8 ounces half-and-half cream',\n 'displayNote' => '\\'8 ounces half-and-half <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 388 => \n array (\n 'id' => 389,\n 'recipe_id' => '43',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1/4 cup parmesan cheese',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 389 => \n array (\n 'id' => 390,\n 'recipe_id' => '43',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1 teaspoon garlic powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 390 => \n array (\n 'id' => 391,\n 'recipe_id' => '43',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' black pepper (to taste)',\n 'displayNote' => '\\' black pepper (to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 391 => \n array (\n 'id' => 392,\n 'recipe_id' => '44',\n 'ingrident' => 'rice',\n 'amount' => NULL,\n 'note' => '1 1/2 cups long grain brown rice',\n 'displayNote' => '\\'1 1/2 cups long grain brown <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:30',\n 'updated_at' => '2019-01-07 02:08:30',\n ),\n 392 => \n array (\n 'id' => 393,\n 'recipe_id' => '44',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 1/2 cups water',\n 'displayNote' => '\\'2 1/2 cups water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:30',\n 'updated_at' => '2019-01-07 02:08:30',\n ),\n 393 => \n array (\n 'id' => 394,\n 'recipe_id' => '44',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1 tablespoon unsalted butter',\n 'displayNote' => '\\'1 tablespoon unsalted <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:30',\n 'updated_at' => '2019-01-07 02:08:30',\n ),\n 394 => \n array (\n 'id' => 395,\n 'recipe_id' => '44',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:30',\n 'updated_at' => '2019-01-07 02:08:30',\n ),\n 395 => \n array (\n 'id' => 396,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '5 large potatoes, cut in bite sized chunks ',\n 'displayNote' => '\\'5 large potatoes, cut in bite sized chunks \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 396 => \n array (\n 'id' => 397,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb kielbasa, sliced ',\n 'displayNote' => '\\'1 lb kielbasa, sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 397 => \n array (\n 'id' => 398,\n 'recipe_id' => '45',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 cup chopped onion',\n 'displayNote' => '\\'1 cup chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 398 => \n array (\n 'id' => 399,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup chopped green pepper',\n 'displayNote' => '\\'1 cup chopped green pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 399 => \n array (\n 'id' => 400,\n 'recipe_id' => '45',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '2 tablespoons vegetable oil',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 400 => \n array (\n 'id' => 401,\n 'recipe_id' => '45',\n 'ingrident' => 'oregano',\n 'amount' => NULL,\n 'note' => '1 teaspoon oregano',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/oregano\\\\\\'>oregano</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 401 => \n array (\n 'id' => 402,\n 'recipe_id' => '45',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 teaspoon basil',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 402 => \n array (\n 'id' => 403,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 403 => \n array (\n 'id' => 404,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 404 => \n array (\n 'id' => 405,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 1/2 cups water',\n 'displayNote' => '\\'1 1/2 cups water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 405 => \n array (\n 'id' => 406,\n 'recipe_id' => '45',\n 'ingrident' => 'american cheese',\n 'amount' => NULL,\n 'note' => '1 1/2 cups shredded American cheese',\n 'displayNote' => '\\'1 1/2 cups shredded <a href=\\\\\\'/ingridients/american-cheese\\\\\\'>american cheese</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 406 => \n array (\n 'id' => 407,\n 'recipe_id' => '46',\n 'ingrident' => 'jello',\n 'amount' => NULL,\n 'note' => '2 Jello Instant Vanilla Pudding Mix (small packages)',\n 'displayNote' => '\\'2 <a href=\\\\\\'/ingridients/jello\\\\\\'>jello</a> instant <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> <a href=\\\\\\'/ingridients/pudding-mix\\\\\\'>pudding mix</a> (small packages)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:39',\n 'updated_at' => '2019-01-07 02:08:39',\n ),\n 407 => \n array (\n 'id' => 408,\n 'recipe_id' => '46',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '3 cups milk',\n 'displayNote' => '\\'3 cups <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:39',\n 'updated_at' => '2019-01-07 02:08:39',\n ),\n 408 => \n array (\n 'id' => 409,\n 'recipe_id' => '46',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '8 ounces non-dairy whipped topping',\n 'displayNote' => '\\'8 ounces non-dairy whipped topping\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:39',\n 'updated_at' => '2019-01-07 02:08:39',\n ),\n 409 => \n array (\n 'id' => 410,\n 'recipe_id' => '46',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) box graham crackers (you will have some leftovers)',\n 'displayNote' => '\\'1 (16 ounce) box graham crackers (you will have some leftovers)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:39',\n 'updated_at' => '2019-01-07 02:08:39',\n ),\n 410 => \n array (\n 'id' => 411,\n 'recipe_id' => '46',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 (15 ounce) container chocolate frosting',\n 'displayNote' => '\\'1 (15 ounce) container <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/frosting\\\\\\'>frosting</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:40',\n 'updated_at' => '2019-01-07 02:08:40',\n ),\n 411 => \n array (\n 'id' => 412,\n 'recipe_id' => '47',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '4 cups flour',\n 'displayNote' => '\\'4 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:47',\n 'updated_at' => '2019-01-07 02:08:47',\n ),\n 412 => \n array (\n 'id' => 413,\n 'recipe_id' => '47',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:47',\n 'updated_at' => '2019-01-07 02:08:47',\n ),\n 413 => \n array (\n 'id' => 414,\n 'recipe_id' => '47',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:47',\n 'updated_at' => '2019-01-07 02:08:47',\n ),\n 414 => \n array (\n 'id' => 415,\n 'recipe_id' => '47',\n 'ingrident' => 'yogurt',\n 'amount' => NULL,\n 'note' => '2 cups plain low-fat yogurt',\n 'displayNote' => '\\'2 cups plain low-fat <a href=\\\\\\'/ingridients/yogurt\\\\\\'>yogurt</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:47',\n 'updated_at' => '2019-01-07 02:08:47',\n ),\n 415 => \n array (\n 'id' => 416,\n 'recipe_id' => '48',\n 'ingrident' => 'shortening',\n 'amount' => NULL,\n 'note' => '1/2 cup shortening',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/shortening\\\\\\'>shortening</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 416 => \n array (\n 'id' => 417,\n 'recipe_id' => '48',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 1/2 cups sugar',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 417 => \n array (\n 'id' => 418,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs',\n 'displayNote' => '\\'2 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 418 => \n array (\n 'id' => 419,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 ounces red food coloring',\n 'displayNote' => '\\'2 ounces red food coloring\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 419 => \n array (\n 'id' => 420,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 tablespoons cocoa (heaping)',\n 'displayNote' => '\\'2 tablespoons cocoa (heaping)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 420 => \n array (\n 'id' => 421,\n 'recipe_id' => '48',\n 'ingrident' => 'buttermilk',\n 'amount' => NULL,\n 'note' => '1 cup buttermilk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/buttermilk\\\\\\'>buttermilk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 421 => \n array (\n 'id' => 422,\n 'recipe_id' => '48',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 1/4 cups cake flour',\n 'displayNote' => '\\'2 1/4 cups cake <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 422 => \n array (\n 'id' => 423,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 423 => \n array (\n 'id' => 424,\n 'recipe_id' => '48',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 424 => \n array (\n 'id' => 425,\n 'recipe_id' => '48',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 425 => \n array (\n 'id' => 426,\n 'recipe_id' => '48',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '1 teaspoon vinegar',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 426 => \n array (\n 'id' => 427,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 427 => \n array (\n 'id' => 428,\n 'recipe_id' => '48',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '3 tablespoons flour',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 428 => \n array (\n 'id' => 429,\n 'recipe_id' => '48',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 429 => \n array (\n 'id' => 430,\n 'recipe_id' => '48',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 430 => \n array (\n 'id' => 431,\n 'recipe_id' => '48',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 431 => \n array (\n 'id' => 432,\n 'recipe_id' => '48',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1 cup butter (must be butter)',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> (must be <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> )\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 432 => \n array (\n 'id' => 433,\n 'recipe_id' => '49',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '15 large dried chilies (such as Anaheim, New Mexico, California, or pasilla)',\n 'displayNote' => '\\'15 large dried chilies (such as anaheim, new mexico, california, or pasilla)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:56',\n 'updated_at' => '2019-01-07 02:08:56',\n ),\n 433 => \n array (\n 'id' => 434,\n 'recipe_id' => '49',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '4 -5 garlic cloves',\n 'displayNote' => '\\'4 -5 <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> cloves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:56',\n 'updated_at' => '2019-01-07 02:08:56',\n ),\n 434 => \n array (\n 'id' => 435,\n 'recipe_id' => '49',\n 'ingrident' => 'cumin',\n 'amount' => NULL,\n 'note' => '2 teaspoons ground cumin',\n 'displayNote' => '\\'2 teaspoons ground <a href=\\\\\\'/ingridients/cumin\\\\\\'>cumin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:56',\n 'updated_at' => '2019-01-07 02:08:56',\n ),\n 435 => \n array (\n 'id' => 436,\n 'recipe_id' => '49',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:56',\n 'updated_at' => '2019-01-07 02:08:56',\n ),\n 436 => \n array (\n 'id' => 437,\n 'recipe_id' => '49',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 teaspoons all-purpose flour',\n 'displayNote' => '\\'2 teaspoons all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:57',\n 'updated_at' => '2019-01-07 02:08:57',\n ),\n 437 => \n array (\n 'id' => 438,\n 'recipe_id' => '49',\n 'ingrident' => 'shortening',\n 'amount' => NULL,\n 'note' => '2 teaspoons olive oil or 2 teaspoons melted shortening',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil or 2 teaspoons melted <a href=\\\\\\'/ingridients/shortening\\\\\\'>shortening</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:57',\n 'updated_at' => '2019-01-07 02:08:57',\n ),\n 438 => \n array (\n 'id' => 439,\n 'recipe_id' => '50',\n 'ingrident' => 'cauliflower',\n 'amount' => NULL,\n 'note' => '1 head cauliflower or 1 head equal amount of pre-cut commercially prepped cauliflower',\n 'displayNote' => '\\'1 head <a href=\\\\\\'/ingridients/cauliflower\\\\\\'>cauliflower</a> or 1 head equal amount of pre-cut commercially prepped <a href=\\\\\\'/ingridients/cauliflower\\\\\\'>cauliflower</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:00',\n 'updated_at' => '2019-01-07 02:09:00',\n ),\n 439 => \n array (\n 'id' => 440,\n 'recipe_id' => '50',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '4 tablespoons olive oil',\n 'displayNote' => '\\'4 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:00',\n 'updated_at' => '2019-01-07 02:09:00',\n ),\n 440 => \n array (\n 'id' => 441,\n 'recipe_id' => '50',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt, to taste ',\n 'displayNote' => '\\'1 teaspoon salt, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:00',\n 'updated_at' => '2019-01-07 02:09:00',\n ),\n 441 => \n array (\n 'id' => 442,\n 'recipe_id' => '51',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '2 lbs ground beef',\n 'displayNote' => '\\'2 lbs <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 442 => \n array (\n 'id' => 443,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 cups chopped onions',\n 'displayNote' => '\\'2 cups chopped onions\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 443 => \n array (\n 'id' => 444,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 cups beef stock',\n 'displayNote' => '\\'4 cups beef stock\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 444 => \n array (\n 'id' => 445,\n 'recipe_id' => '51',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '2 (8 ounce) cans tomato sauce',\n 'displayNote' => '\\'2 (8 ounce) cans <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 445 => \n array (\n 'id' => 446,\n 'recipe_id' => '51',\n 'ingrident' => 'chili powder',\n 'amount' => NULL,\n 'note' => '2 -3 tablespoons chili powder',\n 'displayNote' => '\\'2 -3 tablespoons <a href=\\\\\\'/ingridients/chili-powder\\\\\\'>chili powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 446 => \n array (\n 'id' => 447,\n 'recipe_id' => '51',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '2 tablespoons apple cider vinegar',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/apple\\\\\\'>apple</a> cider <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 447 => \n array (\n 'id' => 448,\n 'recipe_id' => '51',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '2 teaspoons Worcestershire sauce',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 448 => \n array (\n 'id' => 449,\n 'recipe_id' => '51',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1/2 ounce grated unsweetened chocolate or 2 3/4 tablespoons cocoa',\n 'displayNote' => '\\'1/2 ounce grated unsweetened <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> or 2 3/4 tablespoons cocoa\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 449 => \n array (\n 'id' => 450,\n 'recipe_id' => '51',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 teaspoons instant minced garlic',\n 'displayNote' => '\\'2 teaspoons instant minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 450 => \n array (\n 'id' => 451,\n 'recipe_id' => '51',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1 teaspoon ground cinnamon',\n 'displayNote' => '\\'1 teaspoon ground <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 451 => \n array (\n 'id' => 452,\n 'recipe_id' => '51',\n 'ingrident' => 'cumin',\n 'amount' => NULL,\n 'note' => '1 teaspoon ground cumin',\n 'displayNote' => '\\'1 teaspoon ground <a href=\\\\\\'/ingridients/cumin\\\\\\'>cumin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 452 => \n array (\n 'id' => 453,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 453 => \n array (\n 'id' => 454,\n 'recipe_id' => '51',\n 'ingrident' => 'cayenne',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon ground red pepper or 1/2 teaspoon cayenne pepper',\n 'displayNote' => '\\'1/2 teaspoon ground red pepper or 1/2 teaspoon <a href=\\\\\\'/ingridients/cayenne\\\\\\'>cayenne</a> pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 454 => \n array (\n 'id' => 455,\n 'recipe_id' => '51',\n 'ingrident' => 'allspice',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon ground allspice',\n 'displayNote' => '\\'1/4 teaspoon ground <a href=\\\\\\'/ingridients/allspice\\\\\\'>allspice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 455 => \n array (\n 'id' => 456,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon ground cloves',\n 'displayNote' => '\\'1/4 teaspoon ground cloves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 456 => \n array (\n 'id' => 457,\n 'recipe_id' => '51',\n 'ingrident' => 'bay leaf',\n 'amount' => NULL,\n 'note' => '1 bay leaves or 1/8 teaspoon bay leaf powder',\n 'displayNote' => '\\'1 bay leaves or 1/8 teaspoon <a href=\\\\\\'/ingridients/bay-leaf\\\\\\'>bay leaf</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 457 => \n array (\n 'id' => 458,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 458 => \n array (\n 'id' => 459,\n 'recipe_id' => '51',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => ' chopped onion',\n 'displayNote' => '\\' chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 459 => \n array (\n 'id' => 460,\n 'recipe_id' => '51',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => ' finely shredded cheddar cheese (certainly NOT optional)',\n 'displayNote' => '\\' finely shredded <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese (certainly not optional)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 460 => \n array (\n 'id' => 461,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' kidney bean',\n 'displayNote' => '\\' kidney bean\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 461 => \n array (\n 'id' => 462,\n 'recipe_id' => '52',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '2/3 cup butter or 2/3 cup margarine',\n 'displayNote' => '\\'2/3 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or 2/3 cup <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 462 => \n array (\n 'id' => 463,\n 'recipe_id' => '52',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 1/2 cups sugar (reduce to 1-1/4 cups for a less sweeter taste)',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> (reduce to 1-1/4 cups for a less sweeter taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 463 => \n array (\n 'id' => 464,\n 'recipe_id' => '52',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup water',\n 'displayNote' => '\\'1/4 cup water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 464 => \n array (\n 'id' => 465,\n 'recipe_id' => '52',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '4 cups semi-sweet chocolate chips, divided (32 ounces)',\n 'displayNote' => '\\'4 cups semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> , divided (32 ounces)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 465 => \n array (\n 'id' => 466,\n 'recipe_id' => '52',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 teaspoons vanilla',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 466 => \n array (\n 'id' => 467,\n 'recipe_id' => '52',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 eggs',\n 'displayNote' => '\\'4 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 467 => \n array (\n 'id' => 468,\n 'recipe_id' => '52',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 1/2 cups flour',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 468 => \n array (\n 'id' => 469,\n 'recipe_id' => '52',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon baking soda',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 469 => \n array (\n 'id' => 470,\n 'recipe_id' => '52',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 470 => \n array (\n 'id' => 471,\n 'recipe_id' => '53',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 (8 ounce) package cream cheese, at room temperature ',\n 'displayNote' => '\\'1 (8 ounce) package <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , at room temperature \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 471 => \n array (\n 'id' => 472,\n 'recipe_id' => '53',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 green onions, chopped about 1/2 cup ',\n 'displayNote' => '\\'2 green onions, chopped about 1/2 cup \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 472 => \n array (\n 'id' => 473,\n 'recipe_id' => '53',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped fresh parsley',\n 'displayNote' => '\\'1/4 cup chopped fresh <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 473 => \n array (\n 'id' => 474,\n 'recipe_id' => '53',\n 'ingrident' => 'horseradish',\n 'amount' => NULL,\n 'note' => '2 tablespoons prepared horseradish, drained ',\n 'displayNote' => '\\'2 tablespoons prepared <a href=\\\\\\'/ingridients/horseradish\\\\\\'>horseradish</a> , drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 474 => \n array (\n 'id' => 475,\n 'recipe_id' => '53',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon salt',\n 'displayNote' => '\\'1/4 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 475 => \n array (\n 'id' => 476,\n 'recipe_id' => '53',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon garlic powder',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:08',\n 'updated_at' => '2019-01-07 02:09:08',\n ),\n 476 => \n array (\n 'id' => 477,\n 'recipe_id' => '53',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '8 ounces deli roast beef, sliced ',\n 'displayNote' => '\\'8 ounces deli roast beef, sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:08',\n 'updated_at' => '2019-01-07 02:09:08',\n ),\n 477 => \n array (\n 'id' => 478,\n 'recipe_id' => '53',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 10-inch flour tortillas, cheese flavoured are nice ',\n 'displayNote' => '\\'2 10-inch <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> tortillas, cheese flavoured are nice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:08',\n 'updated_at' => '2019-01-07 02:09:08',\n ),\n 478 => \n array (\n 'id' => 479,\n 'recipe_id' => '54',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup margarine',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 479 => \n array (\n 'id' => 480,\n 'recipe_id' => '54',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small sweet onion, chopped ',\n 'displayNote' => '\\'1 small sweet <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 480 => \n array (\n 'id' => 481,\n 'recipe_id' => '54',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 small green pepper, chopped ',\n 'displayNote' => '\\'1 small green pepper, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 481 => \n array (\n 'id' => 482,\n 'recipe_id' => '54',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 -3 medium tomatoes, chopped ',\n 'displayNote' => '\\'2 -3 medium tomatoes, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 482 => \n array (\n 'id' => 483,\n 'recipe_id' => '54',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (24 ounce) bag frozen hash brown potatoes',\n 'displayNote' => '\\'1 (24 ounce) bag frozen hash brown potatoes\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 483 => \n array (\n 'id' => 484,\n 'recipe_id' => '54',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '12 eggs, beaten ',\n 'displayNote' => '\\'12 eggs, beaten \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 484 => \n array (\n 'id' => 485,\n 'recipe_id' => '54',\n 'ingrident' => 'sausage',\n 'amount' => NULL,\n 'note' => '1/2 lb cooked crumbled bacon or 1/2-1 lb sausage',\n 'displayNote' => '\\'1/2 lb cooked crumbled <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> or 1/2-1 lb <a href=\\\\\\'/ingridients/sausage\\\\\\'>sausage</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 485 => \n array (\n 'id' => 486,\n 'recipe_id' => '54',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '3 cups cheddar cheese, shredded ',\n 'displayNote' => '\\'3 cups <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese, shredded \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 486 => \n array (\n 'id' => 487,\n 'recipe_id' => '55',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 lbs cross-rib roasts',\n 'displayNote' => '\\'2 lbs cross-rib roasts\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 487 => \n array (\n 'id' => 488,\n 'recipe_id' => '55',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '2 tablespoons balsamic vinegar',\n 'displayNote' => '\\'2 tablespoons balsamic <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 488 => \n array (\n 'id' => 489,\n 'recipe_id' => '55',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 tablespoons minced garlic',\n 'displayNote' => '\\'2 tablespoons minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 489 => \n array (\n 'id' => 490,\n 'recipe_id' => '55',\n 'ingrident' => 'thyme',\n 'amount' => NULL,\n 'note' => '2 teaspoons dried thyme',\n 'displayNote' => '\\'2 teaspoons dried <a href=\\\\\\'/ingridients/thyme\\\\\\'>thyme</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 490 => \n array (\n 'id' => 491,\n 'recipe_id' => '55',\n 'ingrident' => 'rosemary',\n 'amount' => NULL,\n 'note' => '1 teaspoon dried rosemary',\n 'displayNote' => '\\'1 teaspoon dried <a href=\\\\\\'/ingridients/rosemary\\\\\\'>rosemary</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 491 => \n array (\n 'id' => 492,\n 'recipe_id' => '55',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tablespoon salt',\n 'displayNote' => '\\'1 tablespoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 492 => \n array (\n 'id' => 493,\n 'recipe_id' => '55',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon pepper',\n 'displayNote' => '\\'1 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 493 => \n array (\n 'id' => 494,\n 'recipe_id' => '55',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '1 tablespoon olive oil',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 494 => \n array (\n 'id' => 495,\n 'recipe_id' => '56',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\' 1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 495 => \n array (\n 'id' => 496,\n 'recipe_id' => '56',\n 'ingrident' => 'salmon',\n 'amount' => NULL,\n 'note' => '1 pkg. (4 oz.) smoked salmon, chopped ',\n 'displayNote' => '\\'1 pkg. (4 oz.) smoked <a href=\\\\\\'/ingridients/salmon\\\\\\'>salmon</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 496 => \n array (\n 'id' => 497,\n 'recipe_id' => '56',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/2 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 497 => \n array (\n 'id' => 498,\n 'recipe_id' => '56',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped red onion s ',\n 'displayNote' => '\\'1/4 cup chopped red <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 498 => \n array (\n 'id' => 499,\n 'recipe_id' => '56',\n 'ingrident' => 'dill',\n 'amount' => NULL,\n 'note' => '1 Tbsp. dill weed ',\n 'displayNote' => '\\'1 tbsp. <a href=\\\\\\'/ingridients/dill\\\\\\'>dill</a> weed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 499 => \n array (\n 'id' => 500,\n 'recipe_id' => '57',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 3 Tbsp. MINUTE Tapioca ',\n 'displayNote' => '\\' 3 tbsp. minute tapioca \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n ));\n \\DB::table('recipe_ingridents')->insert(array (\n 0 => \n array (\n 'id' => 501,\n 'recipe_id' => '57',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '2 cups milk ',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n 1 => \n array (\n 'id' => 502,\n 'recipe_id' => '57',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 egg, separated ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> , separated \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n 2 => \n array (\n 'id' => 503,\n 'recipe_id' => '57',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '6 Tbsp. sugar, divided ',\n 'displayNote' => '\\'6 tbsp. <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n 3 => \n array (\n 'id' => 504,\n 'recipe_id' => '57',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n 4 => \n array (\n 'id' => 505,\n 'recipe_id' => '58',\n 'ingrident' => 'avocado',\n 'amount' => NULL,\n 'note' => ' 1 fully ripe avocado, cut in half, divided ',\n 'displayNote' => '\\' 1 fully ripe <a href=\\\\\\'/ingridients/avocado\\\\\\'>avocado</a> , cut in half, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:05',\n 'updated_at' => '2019-01-07 02:34:05',\n ),\n 5 => \n array (\n 'id' => 506,\n 'recipe_id' => '58',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:05',\n 'updated_at' => '2019-01-07 02:34:05',\n ),\n 6 => \n array (\n 'id' => 507,\n 'recipe_id' => '58',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:05',\n 'updated_at' => '2019-01-07 02:34:05',\n ),\n 7 => \n array (\n 'id' => 508,\n 'recipe_id' => '58',\n 'ingrident' => 'taco seasoning',\n 'amount' => NULL,\n 'note' => '2 Tbsp. (1/2 of 1.25-oz. pkg.) TACO BELL® Taco Seasoning Mix ',\n 'displayNote' => '\\'2 tbsp. (1/2 of 1.25-oz. pkg.) taco bellâ® <a href=\\\\\\'/ingridients/taco-seasoning\\\\\\'>taco seasoning</a> mix \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:05',\n 'updated_at' => '2019-01-07 02:34:05',\n ),\n 8 => \n array (\n 'id' => 509,\n 'recipe_id' => '58',\n 'ingrident' => 'salsa',\n 'amount' => NULL,\n 'note' => '3 Tbsp. TACO BELL® Thick & Chunky Salsa ',\n 'displayNote' => '\\'3 tbsp. taco bellâ® thick & chunky <a href=\\\\\\'/ingridients/salsa\\\\\\'>salsa</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:06',\n 'updated_at' => '2019-01-07 02:34:06',\n ),\n 9 => \n array (\n 'id' => 510,\n 'recipe_id' => '58',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '1 small tomato, chopped ',\n 'displayNote' => '\\'1 small <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:06',\n 'updated_at' => '2019-01-07 02:34:06',\n ),\n 10 => \n array (\n 'id' => 511,\n 'recipe_id' => '58',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '3/4 cup KRAFT Shredded Mild Cheddar Cheese ',\n 'displayNote' => '\\'3/4 cup kraft shredded mild <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:06',\n 'updated_at' => '2019-01-07 02:34:06',\n ),\n 11 => \n array (\n 'id' => 512,\n 'recipe_id' => '58',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 green onions, sliced ',\n 'displayNote' => '\\'2 green onions, sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:06',\n 'updated_at' => '2019-01-07 02:34:06',\n ),\n 12 => \n array (\n 'id' => 513,\n 'recipe_id' => '59',\n 'ingrident' => 'pie crust',\n 'amount' => NULL,\n 'note' => ' 1/2 pkg. (15 oz.) ready-to-use refrigerated pie crust s (1 crust) ',\n 'displayNote' => '\\' 1/2 pkg. (15 oz.) ready-to-use refrigerated <a href=\\\\\\'/ingridients/pie-crust\\\\\\'>pie crust</a> s (1 crust) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:14',\n 'updated_at' => '2019-01-07 02:34:14',\n ),\n 13 => \n array (\n 'id' => 514,\n 'recipe_id' => '59',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '2 pkg. (4 oz. each) BAKER&#39;S Semi-Sweet Chocolate, broken into pieces ',\n 'displayNote' => '\\'2 pkg. (4 oz. each) baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , broken into pieces \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:15',\n 'updated_at' => '2019-01-07 02:34:15',\n ),\n 14 => \n array (\n 'id' => 515,\n 'recipe_id' => '59',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/4 cup (1/2 stick) butter, softened ',\n 'displayNote' => '\\'1/4 cup (1/2 stick) <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:15',\n 'updated_at' => '2019-01-07 02:34:15',\n ),\n 15 => \n array (\n 'id' => 516,\n 'recipe_id' => '59',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup firmly packed brown sugar ',\n 'displayNote' => '\\'3/4 cup firmly packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:17',\n 'updated_at' => '2019-01-07 02:34:17',\n ),\n 16 => \n array (\n 'id' => 517,\n 'recipe_id' => '59',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '3 egg s ',\n 'displayNote' => '\\'3 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:17',\n 'updated_at' => '2019-01-07 02:34:17',\n ),\n 17 => \n array (\n 'id' => 518,\n 'recipe_id' => '59',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:17',\n 'updated_at' => '2019-01-07 02:34:17',\n ),\n 18 => \n array (\n 'id' => 519,\n 'recipe_id' => '59',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/4 cup flour ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:18',\n 'updated_at' => '2019-01-07 02:34:18',\n ),\n 19 => \n array (\n 'id' => 520,\n 'recipe_id' => '59',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup chopped PLANTERS Walnuts ',\n 'displayNote' => '\\'1 cup chopped planters walnuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:18',\n 'updated_at' => '2019-01-07 02:34:18',\n ),\n 20 => \n array (\n 'id' => 521,\n 'recipe_id' => '59',\n 'ingrident' => 'walnut',\n 'amount' => NULL,\n 'note' => '1/2 cup PLANTERS Walnut Halves ',\n 'displayNote' => '\\'1/2 cup planters <a href=\\\\\\'/ingridients/walnut-1\\\\\\'>walnut</a> halves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:18',\n 'updated_at' => '2019-01-07 02:34:18',\n ),\n 21 => \n array (\n 'id' => 522,\n 'recipe_id' => '60',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => ' 46 vanilla wafers, divided ',\n 'displayNote' => '\\' 46 <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> wafers, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:24',\n 'updated_at' => '2019-01-07 02:34:24',\n ),\n 22 => \n array (\n 'id' => 523,\n 'recipe_id' => '60',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup chopped PLANTERS Pecans ',\n 'displayNote' => '\\'1/2 cup chopped planters pecans \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:25',\n 'updated_at' => '2019-01-07 02:34:25',\n ),\n 23 => \n array (\n 'id' => 524,\n 'recipe_id' => '60',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/3 cup packed brown sugar ',\n 'displayNote' => '\\'1/3 cup packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:25',\n 'updated_at' => '2019-01-07 02:34:25',\n ),\n 24 => \n array (\n 'id' => 525,\n 'recipe_id' => '60',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1 tsp. ground cinnamon ',\n 'displayNote' => '\\'1 tsp. ground <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:25',\n 'updated_at' => '2019-01-07 02:34:25',\n ),\n 25 => \n array (\n 'id' => 526,\n 'recipe_id' => '60',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 Tbsp. butter, melted ',\n 'displayNote' => '\\'3 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 26 => \n array (\n 'id' => 527,\n 'recipe_id' => '60',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 pkg. (3.4 oz. each) JELL-O Vanilla Flavor Instant Pudding ',\n 'displayNote' => '\\'2 pkg. (3.4 oz. each) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 27 => \n array (\n 'id' => 528,\n 'recipe_id' => '60',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '2 cups cold milk ',\n 'displayNote' => '\\'2 cups cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 28 => \n array (\n 'id' => 529,\n 'recipe_id' => '60',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) COOL WHIP Whipped Topping, thawed, divided ',\n 'displayNote' => '\\'1 tub (8 oz.) cool whip whipped topping, thawed, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 29 => \n array (\n 'id' => 530,\n 'recipe_id' => '60',\n 'ingrident' => 'banana',\n 'amount' => NULL,\n 'note' => '4 banana s (1 lb.), sliced ',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/banana\\\\\\'>banana</a> s (1 lb.), sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 30 => \n array (\n 'id' => 531,\n 'recipe_id' => '60',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:27',\n 'updated_at' => '2019-01-07 02:34:27',\n ),\n 31 => \n array (\n 'id' => 532,\n 'recipe_id' => '60',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup granulated sugar ',\n 'displayNote' => '\\'1/4 cup granulated <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:27',\n 'updated_at' => '2019-01-07 02:34:27',\n ),\n 32 => \n array (\n 'id' => 533,\n 'recipe_id' => '61',\n 'ingrident' => 'puff pastry',\n 'amount' => NULL,\n 'note' => ' 1 frozen puff pastry sheet (1/2 of 17-1/4-oz. pkg.), thawed ',\n 'displayNote' => '\\' 1 frozen <a href=\\\\\\'/ingridients/puff-pastry\\\\\\'>puff pastry</a> sheet (1/2 of 17-1/4-oz. pkg.), thawed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:36',\n 'updated_at' => '2019-01-07 02:34:36',\n ),\n 33 => \n array (\n 'id' => 534,\n 'recipe_id' => '61',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:36',\n 'updated_at' => '2019-01-07 02:34:36',\n ),\n 34 => \n array (\n 'id' => 535,\n 'recipe_id' => '61',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/3 cup powdered sugar ',\n 'displayNote' => '\\'1/3 cup powdered <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:37',\n 'updated_at' => '2019-01-07 02:34:37',\n ),\n 35 => \n array (\n 'id' => 536,\n 'recipe_id' => '61',\n 'ingrident' => 'apple',\n 'amount' => NULL,\n 'note' => '2 Tbsp. apple juice ',\n 'displayNote' => '\\'2 tbsp. <a href=\\\\\\'/ingridients/apple\\\\\\'>apple</a> juice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:37',\n 'updated_at' => '2019-01-07 02:34:37',\n ),\n 36 => \n array (\n 'id' => 537,\n 'recipe_id' => '61',\n 'ingrident' => 'berries',\n 'amount' => NULL,\n 'note' => '3 cups mixed assorted berries (blackberries, raspberries and sliced strawberries) ',\n 'displayNote' => '\\'3 cups mixed assorted <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> (black <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> , rasp <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> and sliced straw <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> ) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:37',\n 'updated_at' => '2019-01-07 02:34:37',\n ),\n 37 => \n array (\n 'id' => 538,\n 'recipe_id' => '61',\n 'ingrident' => 'apple',\n 'amount' => NULL,\n 'note' => '2 Tbsp. apple jelly, melted, cooled ',\n 'displayNote' => '\\'2 tbsp. <a href=\\\\\\'/ingridients/apple\\\\\\'>apple</a> jelly, melted, cooled \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:37',\n 'updated_at' => '2019-01-07 02:34:37',\n ),\n 38 => \n array (\n 'id' => 539,\n 'recipe_id' => '62',\n 'ingrident' => 'bacon',\n 'amount' => NULL,\n 'note' => ' 6 slices OSCAR MAYER Bacon, chopped ',\n 'displayNote' => '\\' 6 slices oscar mayer <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:47',\n 'updated_at' => '2019-01-07 02:34:47',\n ),\n 39 => \n array (\n 'id' => 540,\n 'recipe_id' => '62',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small onion, chopped ',\n 'displayNote' => '\\'1 small <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:47',\n 'updated_at' => '2019-01-07 02:34:47',\n ),\n 40 => \n array (\n 'id' => 541,\n 'recipe_id' => '62',\n 'ingrident' => 'clove',\n 'amount' => NULL,\n 'note' => '1 clove garlic, minced ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/clove\\\\\\'>clove</a> <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:47',\n 'updated_at' => '2019-01-07 02:34:47',\n ),\n 41 => \n array (\n 'id' => 542,\n 'recipe_id' => '62',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '3 cans (14-1/2 oz. each) fat-free reduced-sodium chicken broth ',\n 'displayNote' => '\\'3 cans (14-1/2 oz. each) fat-free reduced-sodium <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:47',\n 'updated_at' => '2019-01-07 02:34:47',\n ),\n 42 => \n array (\n 'id' => 543,\n 'recipe_id' => '62',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 lb. dry lentils, sorted, washed ',\n 'displayNote' => '\\'1/2 lb. dry lentils, sorted, washed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 43 => \n array (\n 'id' => 544,\n 'recipe_id' => '62',\n 'ingrident' => 'potato',\n 'amount' => NULL,\n 'note' => '1/2 lb. red potato (1 large potato), chopped ',\n 'displayNote' => '\\'1/2 lb. red <a href=\\\\\\'/ingridients/potato\\\\\\'>potato</a> (1 large <a href=\\\\\\'/ingridients/potato\\\\\\'>potato</a> ), chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 44 => \n array (\n 'id' => 545,\n 'recipe_id' => '62',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '3 small carrot s (1/4 lb.), chopped ',\n 'displayNote' => '\\'3 small <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> s (1/4 lb.), chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 45 => \n array (\n 'id' => 546,\n 'recipe_id' => '62',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 OSCAR MAYER Wieners, cut into 1/4-inch-thick slices ',\n 'displayNote' => '\\'3 oscar mayer wieners, cut into 1/4-inch-thick slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 46 => \n array (\n 'id' => 547,\n 'recipe_id' => '62',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/2 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 47 => \n array (\n 'id' => 548,\n 'recipe_id' => '63',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => ' 1/4 cup KRAFT Original Barbecue Sauce ',\n 'displayNote' => '\\' 1/4 cup kraft original <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 48 => \n array (\n 'id' => 549,\n 'recipe_id' => '63',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '3 Tbsp. fat-free reduced-sodium beef broth ',\n 'displayNote' => '\\'3 tbsp. fat-free reduced-sodium <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 49 => \n array (\n 'id' => 550,\n 'recipe_id' => '63',\n 'ingrident' => 'beef sirloin',\n 'amount' => NULL,\n 'note' => '1 lb. boneless beef sirloin steak, cut into strips ',\n 'displayNote' => '\\'1 lb. boneless <a href=\\\\\\'/ingridients/beef-sirloin\\\\\\'>beef sirloin</a> steak, cut into strips \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 50 => \n array (\n 'id' => 551,\n 'recipe_id' => '63',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small onion, sliced ',\n 'displayNote' => '\\'1 small <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 51 => \n array (\n 'id' => 552,\n 'recipe_id' => '63',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '1 large carrot, thinly sliced ',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> , thinly sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 52 => \n array (\n 'id' => 553,\n 'recipe_id' => '63',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 Tbsp. oil ',\n 'displayNote' => '\\'1 tbsp. oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:56',\n 'updated_at' => '2019-01-07 02:34:56',\n ),\n 53 => \n array (\n 'id' => 554,\n 'recipe_id' => '63',\n 'ingrident' => 'rice',\n 'amount' => NULL,\n 'note' => '2 cups hot cooked long-grain white rice ',\n 'displayNote' => '\\'2 cups hot cooked long-grain white <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:56',\n 'updated_at' => '2019-01-07 02:34:56',\n ),\n 54 => \n array (\n 'id' => 555,\n 'recipe_id' => '64',\n 'ingrident' => 'peach',\n 'amount' => NULL,\n 'note' => ' 1/2 cup peach preserves ',\n 'displayNote' => '\\' 1/2 cup <a href=\\\\\\'/ingridients/peach\\\\\\'>peach</a> preserves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:02',\n 'updated_at' => '2019-01-07 02:35:02',\n ),\n 55 => \n array (\n 'id' => 556,\n 'recipe_id' => '64',\n 'ingrident' => 'adobo sauce',\n 'amount' => NULL,\n 'note' => '1 (or more if desired) canned chipotle peppers in adobo sauce, finely diced ',\n 'displayNote' => '\\'1 (or more if desired) canned <a href=\\\\\\'/ingridients/chipotle\\\\\\'>chipotle</a> peppers in <a href=\\\\\\'/ingridients/adobo-sauce\\\\\\'>adobo sauce</a> , finely diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:02',\n 'updated_at' => '2019-01-07 02:35:02',\n ),\n 56 => \n array (\n 'id' => 557,\n 'recipe_id' => '64',\n 'ingrident' => 'clove',\n 'amount' => NULL,\n 'note' => '1 large garlic clove, crushed ',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> <a href=\\\\\\'/ingridients/clove\\\\\\'>clove</a> , crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 57 => \n array (\n 'id' => 558,\n 'recipe_id' => '64',\n 'ingrident' => 'pork',\n 'amount' => NULL,\n 'note' => '1 pork tenderloin (1 lb.) ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/pork-1\\\\\\'>pork</a> tenderloin (1 lb.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 58 => \n array (\n 'id' => 559,\n 'recipe_id' => '64',\n 'ingrident' => 'chorizo',\n 'amount' => NULL,\n 'note' => '8 oz. pork Mexican chorizo sausage ',\n 'displayNote' => '\\'8 oz. <a href=\\\\\\'/ingridients/pork-1\\\\\\'>pork</a> mexican <a href=\\\\\\'/ingridients/chorizo\\\\\\'>chorizo</a> <a href=\\\\\\'/ingridients/sausage\\\\\\'>sausage</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 59 => \n array (\n 'id' => 560,\n 'recipe_id' => '64',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) PHILADELPHIA Garden Vegetable Cream Cheese Spread ',\n 'displayNote' => '\\'1 tub (8 oz.) philadelphia garden vegetable <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> spread \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 60 => \n array (\n 'id' => 561,\n 'recipe_id' => '64',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 oz. KRAFT Mexican Style Finely Shredded Four Cheese ',\n 'displayNote' => '\\'3 oz. kraft mexican style finely shredded four cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 61 => \n array (\n 'id' => 562,\n 'recipe_id' => '64',\n 'ingrident' => 'bacon',\n 'amount' => NULL,\n 'note' => '1 lb. sliced bacon, divided ',\n 'displayNote' => '\\'1 lb. sliced <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 62 => \n array (\n 'id' => 563,\n 'recipe_id' => '64',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/3 cup brown sugar ',\n 'displayNote' => '\\'1/3 cup brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 63 => \n array (\n 'id' => 564,\n 'recipe_id' => '64',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' dash ground black pepper ',\n 'displayNote' => '\\' dash ground black pepper \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 64 => \n array (\n 'id' => 565,\n 'recipe_id' => '65',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => ' 1 Tbsp. butter or margarine ',\n 'displayNote' => '\\' 1 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 65 => \n array (\n 'id' => 566,\n 'recipe_id' => '65',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) fresh mushrooms, finely chopped ',\n 'displayNote' => '\\'1 pkg. (8 oz.) fresh mushrooms, finely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 66 => \n array (\n 'id' => 567,\n 'recipe_id' => '65',\n 'ingrident' => 'chive',\n 'amount' => NULL,\n 'note' => '1/2 cup PHILADELPHIA Chive & Onion Cream Cheese Spread ',\n 'displayNote' => '\\'1/2 cup philadelphia <a href=\\\\\\'/ingridients/chive\\\\\\'>chive</a> & <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> spread \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 67 => \n array (\n 'id' => 568,\n 'recipe_id' => '65',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Grated Parmesan Cheese ',\n 'displayNote' => '\\'1/4 cup kraft grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 68 => \n array (\n 'id' => 569,\n 'recipe_id' => '65',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 can (8 oz.) refrigerated crescent dinner rolls ',\n 'displayNote' => '\\'1 can (8 oz.) refrigerated crescent dinner rolls \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 69 => \n array (\n 'id' => 570,\n 'recipe_id' => '65',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '2 tsp. finely chopped fresh parsley ',\n 'displayNote' => '\\'2 tsp. finely chopped fresh <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 70 => \n array (\n 'id' => 571,\n 'recipe_id' => '66',\n 'ingrident' => 'salad greens',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (5 oz.) torn salad greens ',\n 'displayNote' => '\\' 1 pkg. (5 oz.) torn <a href=\\\\\\'/ingridients/salad-greens\\\\\\'>salad greens</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:15',\n 'updated_at' => '2019-01-07 02:35:15',\n ),\n 71 => \n array (\n 'id' => 572,\n 'recipe_id' => '66',\n 'ingrident' => 'mandarin',\n 'amount' => NULL,\n 'note' => '1 can (11 oz.) mandarin oranges, drained ',\n 'displayNote' => '\\'1 can (11 oz.) <a href=\\\\\\'/ingridients/mandarin\\\\\\'>mandarin</a> oranges, drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:15',\n 'updated_at' => '2019-01-07 02:35:15',\n ),\n 72 => \n array (\n 'id' => 573,\n 'recipe_id' => '66',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup fresh raspberries ',\n 'displayNote' => '\\'1 cup fresh raspberries \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:15',\n 'updated_at' => '2019-01-07 02:35:15',\n ),\n 73 => \n array (\n 'id' => 574,\n 'recipe_id' => '66',\n 'ingrident' => 'mozzarella',\n 'amount' => NULL,\n 'note' => '1 cup KRAFT 2% Milk Shredded Mozzarella Cheese ',\n 'displayNote' => '\\'1 cup kraft 2% <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> shredded <a href=\\\\\\'/ingridients/mozzarella\\\\\\'>mozzarella</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:16',\n 'updated_at' => '2019-01-07 02:35:16',\n ),\n 74 => \n array (\n 'id' => 575,\n 'recipe_id' => '66',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup PLANTERS Sliced Almonds, toasted ',\n 'displayNote' => '\\'1/3 cup planters sliced almonds, toasted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:16',\n 'updated_at' => '2019-01-07 02:35:16',\n ),\n 75 => \n array (\n 'id' => 576,\n 'recipe_id' => '66',\n 'ingrident' => 'vinaigrette dressing',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Lite Raspberry Vinaigrette Dressing ',\n 'displayNote' => '\\'1/4 cup kraft lite <a href=\\\\\\'/ingridients/raspberry\\\\\\'>raspberry</a> <a href=\\\\\\'/ingridients/vinaigrette-dressing\\\\\\'>vinaigrette dressing</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:16',\n 'updated_at' => '2019-01-07 02:35:16',\n ),\n 76 => \n array (\n 'id' => 577,\n 'recipe_id' => '67',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 7 graham crackers, finely crushed (about 1 cup) ',\n 'displayNote' => '\\' 7 graham crackers, finely crushed (about 1 cup) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 77 => \n array (\n 'id' => 578,\n 'recipe_id' => '67',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 Tbsp. butter, melted ',\n 'displayNote' => '\\'3 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 78 => \n array (\n 'id' => 579,\n 'recipe_id' => '67',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup plus 3 Tbsp. sugar, divided ',\n 'displayNote' => '\\'1 cup plus 3 tbsp. <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 79 => \n array (\n 'id' => 580,\n 'recipe_id' => '67',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '4 pkg. (8 oz. each) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'4 pkg. (8 oz. each) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 80 => \n array (\n 'id' => 581,\n 'recipe_id' => '67',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 81 => \n array (\n 'id' => 582,\n 'recipe_id' => '67',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 Tbsp. vanilla ',\n 'displayNote' => '\\'1 tbsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 82 => \n array (\n 'id' => 583,\n 'recipe_id' => '67',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '4 egg s ',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 83 => \n array (\n 'id' => 584,\n 'recipe_id' => '67',\n 'ingrident' => 'pineapple',\n 'amount' => NULL,\n 'note' => '1 can (8 oz.) pineapple tidbits in juice, very well drained ',\n 'displayNote' => '\\'1 can (8 oz.) <a href=\\\\\\'/ingridients/pineapple\\\\\\'>pineapple</a> tidbits in juice, very well drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 84 => \n array (\n 'id' => 585,\n 'recipe_id' => '67',\n 'ingrident' => 'pineapple',\n 'amount' => NULL,\n 'note' => '1/2 cup pineapple preserves ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/pineapple\\\\\\'>pineapple</a> preserves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 85 => \n array (\n 'id' => 586,\n 'recipe_id' => '68',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 3 cups boiling water ',\n 'displayNote' => '\\' 3 cups boiling water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 86 => \n array (\n 'id' => 587,\n 'recipe_id' => '68',\n 'ingrident' => 'raspberry',\n 'amount' => NULL,\n 'note' => '2 pkg. (3 oz. each) JELL-O Raspberry Flavor Gelatin ',\n 'displayNote' => '\\'2 pkg. (3 oz. each) jell-o <a href=\\\\\\'/ingridients/raspberry\\\\\\'>raspberry</a> flavor gelatin \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 87 => \n array (\n 'id' => 588,\n 'recipe_id' => '68',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pkg. (12 oz.) frozen red raspberries (Do not thaw.) ',\n 'displayNote' => '\\'1 pkg. (12 oz.) frozen red raspberries (do not thaw.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 88 => \n array (\n 'id' => 589,\n 'recipe_id' => '68',\n 'ingrident' => 'angel food',\n 'amount' => NULL,\n 'note' => '1 pkg. (7.5 oz.) round prepared angel food cake, cut into 21 thin slices ',\n 'displayNote' => '\\'1 pkg. (7.5 oz.) round prepared <a href=\\\\\\'/ingridients/angel-food\\\\\\'>angel food</a> cake, cut into 21 thin slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 89 => \n array (\n 'id' => 590,\n 'recipe_id' => '68',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1 cup thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 90 => \n array (\n 'id' => 591,\n 'recipe_id' => '69',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 5 tart apples, peeled, sliced (about 6 cups) ',\n 'displayNote' => '\\' 5 tart apples, peeled, sliced (about 6 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 91 => \n array (\n 'id' => 592,\n 'recipe_id' => '69',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 pkg. (1.0 oz.) JELL-O Vanilla Flavor Sugar Free Fat Free Instant Pudding ',\n 'displayNote' => '\\'1 pkg. (1.0 oz.) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> free fat free instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 92 => \n array (\n 'id' => 593,\n 'recipe_id' => '69',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup sugar ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 93 => \n array (\n 'id' => 594,\n 'recipe_id' => '69',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1/2 tsp. ground cinnamon ',\n 'displayNote' => '\\'1/2 tsp. ground <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 94 => \n array (\n 'id' => 595,\n 'recipe_id' => '69',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup water ',\n 'displayNote' => '\\'1/3 cup water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 95 => \n array (\n 'id' => 596,\n 'recipe_id' => '69',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 Tbsp. butter ',\n 'displayNote' => '\\'3 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 96 => \n array (\n 'id' => 597,\n 'recipe_id' => '69',\n 'ingrident' => 'pecan',\n 'amount' => NULL,\n 'note' => '1-1/2 cups cranberry-pecan granola ',\n 'displayNote' => '\\'1-1/2 cups <a href=\\\\\\'/ingridients/cranberry\\\\\\'>cranberry</a> - <a href=\\\\\\'/ingridients/pecan\\\\\\'>pecan</a> granola \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 97 => \n array (\n 'id' => 598,\n 'recipe_id' => '70',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\' 1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:40',\n 'updated_at' => '2019-01-07 02:35:40',\n ),\n 98 => \n array (\n 'id' => 599,\n 'recipe_id' => '70',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/2 cup packed brown sugar ',\n 'displayNote' => '\\'1/2 cup packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:40',\n 'updated_at' => '2019-01-07 02:35:40',\n ),\n 99 => \n array (\n 'id' => 600,\n 'recipe_id' => '70',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1/2 tsp. vanilla ',\n 'displayNote' => '\\'1/2 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:40',\n 'updated_at' => '2019-01-07 02:35:40',\n ),\n 100 => \n array (\n 'id' => 601,\n 'recipe_id' => '70',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 large apples, cut into quarters ',\n 'displayNote' => '\\'2 large apples, cut into quarters \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:40',\n 'updated_at' => '2019-01-07 02:35:40',\n ),\n 101 => \n array (\n 'id' => 602,\n 'recipe_id' => '70',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup PLANTERS Slivered Almonds ',\n 'displayNote' => '\\'1/4 cup planters slivered almonds \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:41',\n 'updated_at' => '2019-01-07 02:35:41',\n ),\n 102 => \n array (\n 'id' => 603,\n 'recipe_id' => '71',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 2-1/4 lb. apricots, peeled, sliced (about 6 cups) ',\n 'displayNote' => '\\' 2-1/4 lb. apricots, peeled, sliced (about 6 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 103 => \n array (\n 'id' => 604,\n 'recipe_id' => '71',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup granulated sugar ',\n 'displayNote' => '\\'3/4 cup granulated <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 104 => \n array (\n 'id' => 605,\n 'recipe_id' => '71',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup MINUTE Tapioca ',\n 'displayNote' => '\\'1/4 cup minute tapioca \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 105 => \n array (\n 'id' => 606,\n 'recipe_id' => '71',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/2 cup flour ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 106 => \n array (\n 'id' => 607,\n 'recipe_id' => '71',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup packed brown sugar ',\n 'displayNote' => '\\'1/4 cup packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 107 => \n array (\n 'id' => 608,\n 'recipe_id' => '71',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup cold butter or margarine, cut up ',\n 'displayNote' => '\\'1/4 cup cold <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> , cut up \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 108 => \n array (\n 'id' => 609,\n 'recipe_id' => '71',\n 'ingrident' => 'pie crust',\n 'amount' => NULL,\n 'note' => '1 ready-to-use refrigerated pie crust (1/2 of 14.1-oz. pkg.) ',\n 'displayNote' => '\\'1 ready-to-use refrigerated <a href=\\\\\\'/ingridients/pie-crust\\\\\\'>pie crust</a> (1/2 of 14.1-oz. pkg.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 109 => \n array (\n 'id' => 610,\n 'recipe_id' => '72',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => ' 1/2 cup chicken broth ',\n 'displayNote' => '\\' 1/2 cup <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 110 => \n array (\n 'id' => 611,\n 'recipe_id' => '72',\n 'ingrident' => 'italian dressing',\n 'amount' => NULL,\n 'note' => '1/2 cup KRAFT Zesty Italian Dressing, divided ',\n 'displayNote' => '\\'1/2 cup kraft zesty <a href=\\\\\\'/ingridients/italian-dressing\\\\\\'>italian dressing</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 111 => \n array (\n 'id' => 612,\n 'recipe_id' => '72',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/2 cup coarsely chopped fresh cilantro ',\n 'displayNote' => '\\'1/2 cup coarsely chopped fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 112 => \n array (\n 'id' => 613,\n 'recipe_id' => '72',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup PLANTERS Dry Roasted Peanuts ',\n 'displayNote' => '\\'1/2 cup planters dry roasted peanuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 113 => \n array (\n 'id' => 614,\n 'recipe_id' => '72',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 whole serrano chile, stem removed ',\n 'displayNote' => '\\'1 whole serrano chile, stem removed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 114 => \n array (\n 'id' => 615,\n 'recipe_id' => '72',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion, chopped ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 115 => \n array (\n 'id' => 616,\n 'recipe_id' => '72',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 small boneless skinless chicken breasts (1 lb.) ',\n 'displayNote' => '\\'4 small boneless skinless chicken breasts (1 lb.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 116 => \n array (\n 'id' => 617,\n 'recipe_id' => '72',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 lb. mushrooms, sliced ',\n 'displayNote' => '\\'1/2 lb. mushrooms, sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 117 => \n array (\n 'id' => 618,\n 'recipe_id' => '72',\n 'ingrident' => 'rice',\n 'amount' => NULL,\n 'note' => '2 cups hot cooked long-grain white rice ',\n 'displayNote' => '\\'2 cups hot cooked long-grain white <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 118 => \n array (\n 'id' => 619,\n 'recipe_id' => '72',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/4 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/4 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 119 => \n array (\n 'id' => 620,\n 'recipe_id' => '73',\n 'ingrident' => 'black beans',\n 'amount' => NULL,\n 'note' => ' 1 can (15 oz.) black beans, rinsed ',\n 'displayNote' => '\\' 1 can (15 oz.) <a href=\\\\\\'/ingridients/black-beans\\\\\\'>black beans</a> , rinsed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:56',\n 'updated_at' => '2019-01-07 02:35:56',\n ),\n 120 => \n array (\n 'id' => 621,\n 'recipe_id' => '73',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup MIRACLE WHIP Dressing ',\n 'displayNote' => '\\'1/2 cup miracle whip dressing \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:56',\n 'updated_at' => '2019-01-07 02:35:56',\n ),\n 121 => \n array (\n 'id' => 622,\n 'recipe_id' => '73',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/2 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 122 => \n array (\n 'id' => 623,\n 'recipe_id' => '73',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 can (4 oz.) chopped green chiles, drained ',\n 'displayNote' => '\\'1 can (4 oz.) chopped green chiles, drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 123 => \n array (\n 'id' => 624,\n 'recipe_id' => '73',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '2 Tbsp. chopped cilantro ',\n 'displayNote' => '\\'2 tbsp. chopped <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 124 => \n array (\n 'id' => 625,\n 'recipe_id' => '73',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1 tsp. garlic powder ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 125 => \n array (\n 'id' => 626,\n 'recipe_id' => '73',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => 'Few drops hot pepper sauce ',\n 'displayNote' => '\\'few drops hot pepper sauce \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 126 => \n array (\n 'id' => 627,\n 'recipe_id' => '74',\n 'ingrident' => 'oreo',\n 'amount' => NULL,\n 'note' => ' 20 OREO Cookies, finely crushed (about 2 cups) ',\n 'displayNote' => '\\' 20 <a href=\\\\\\'/ingridients/oreo\\\\\\'>oreo</a> <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> , finely crushed (about 2 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 127 => \n array (\n 'id' => 628,\n 'recipe_id' => '74',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/4 cup butter, melted ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 128 => \n array (\n 'id' => 629,\n 'recipe_id' => '74',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '2 pkg. (8 oz. each) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'2 pkg. (8 oz. each) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 129 => \n array (\n 'id' => 630,\n 'recipe_id' => '74',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/2 cup sugar ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 130 => \n array (\n 'id' => 631,\n 'recipe_id' => '74',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 131 => \n array (\n 'id' => 632,\n 'recipe_id' => '74',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) COOL WHIP Whipped Topping, thawed, divided ',\n 'displayNote' => '\\'1 tub (8 oz.) cool whip whipped topping, thawed, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 132 => \n array (\n 'id' => 633,\n 'recipe_id' => '74',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '2 oz. BAKER&#39;S Semi-Sweet Chocolate ',\n 'displayNote' => '\\'2 oz. baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 133 => \n array (\n 'id' => 634,\n 'recipe_id' => '75',\n 'ingrident' => 'corn',\n 'amount' => NULL,\n 'note' => ' 2 ears corn on the cob, husks and silk removed ',\n 'displayNote' => '\\' 2 ears <a href=\\\\\\'/ingridients/corn\\\\\\'>corn</a> on the cob, husks and silk removed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 134 => \n array (\n 'id' => 635,\n 'recipe_id' => '75',\n 'ingrident' => 'squash',\n 'amount' => NULL,\n 'note' => '2 small yellow squash, each cut lengthwise into 3 slices ',\n 'displayNote' => '\\'2 small yellow <a href=\\\\\\'/ingridients/squash\\\\\\'>squash</a> , each cut lengthwise into 3 slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 135 => \n array (\n 'id' => 636,\n 'recipe_id' => '75',\n 'ingrident' => 'zucchini',\n 'amount' => NULL,\n 'note' => '2 small zucchini, each cut lengthwise into 3 slices ',\n 'displayNote' => '\\'2 small <a href=\\\\\\'/ingridients/zucchini\\\\\\'>zucchini</a> , each cut lengthwise into 3 slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 136 => \n array (\n 'id' => 637,\n 'recipe_id' => '75',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '2 tomato es, chopped ',\n 'displayNote' => '\\'2 <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> es, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 137 => \n array (\n 'id' => 638,\n 'recipe_id' => '75',\n 'ingrident' => 'italian dressing',\n 'amount' => NULL,\n 'note' => '1/3 cup KRAFT Zesty Italian Dressing ',\n 'displayNote' => '\\'1/3 cup kraft zesty <a href=\\\\\\'/ingridients/italian-dressing\\\\\\'>italian dressing</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 138 => \n array (\n 'id' => 639,\n 'recipe_id' => '75',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '2 Tbsp. lemon juice ',\n 'displayNote' => '\\'2 tbsp. <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> juice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:11',\n 'updated_at' => '2019-01-07 02:36:11',\n ),\n 139 => \n array (\n 'id' => 640,\n 'recipe_id' => '75',\n 'ingrident' => 'clove',\n 'amount' => NULL,\n 'note' => '1 clove garlic, minced ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/clove\\\\\\'>clove</a> <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:11',\n 'updated_at' => '2019-01-07 02:36:11',\n ),\n 140 => \n array (\n 'id' => 641,\n 'recipe_id' => '75',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '3 Tbsp. KRAFT Grated Parmesan Cheese ',\n 'displayNote' => '\\'3 tbsp. kraft grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:11',\n 'updated_at' => '2019-01-07 02:36:11',\n ),\n 141 => \n array (\n 'id' => 642,\n 'recipe_id' => '75',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '2 Tbsp. chopped fresh basil ',\n 'displayNote' => '\\'2 tbsp. chopped fresh <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:11',\n 'updated_at' => '2019-01-07 02:36:11',\n ),\n 142 => \n array (\n 'id' => 643,\n 'recipe_id' => '77',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\' 1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 143 => \n array (\n 'id' => 644,\n 'recipe_id' => '77',\n 'ingrident' => 'oreo',\n 'amount' => NULL,\n 'note' => '36 OREO Cookies, finely crushed ',\n 'displayNote' => '\\'36 <a href=\\\\\\'/ingridients/oreo\\\\\\'>oreo</a> <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> , finely crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 144 => \n array (\n 'id' => 645,\n 'recipe_id' => '77',\n 'ingrident' => 'jam',\n 'amount' => NULL,\n 'note' => '1/4 cup raspberry jam ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/raspberry\\\\\\'>raspberry</a> <a href=\\\\\\'/ingridients/jam\\\\\\'>jam</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 145 => \n array (\n 'id' => 646,\n 'recipe_id' => '77',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped dried cranberries ',\n 'displayNote' => '\\'1/4 cup chopped dried cranberries \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 146 => \n array (\n 'id' => 647,\n 'recipe_id' => '77',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 oz. BAKER&#39;S White Chocolate, melted ',\n 'displayNote' => '\\'1 oz. baker&#39;s white <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 147 => \n array (\n 'id' => 648,\n 'recipe_id' => '77',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 drops red food coloring ',\n 'displayNote' => '\\'2 drops red food coloring \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 148 => \n array (\n 'id' => 649,\n 'recipe_id' => '77',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '4 pkg. (4 oz. each) BAKER&#39;S Semi-Sweet Chocolate, broken into pieces, melted ',\n 'displayNote' => '\\'4 pkg. (4 oz. each) baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , broken into pieces, melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:24',\n 'updated_at' => '2019-01-07 02:36:24',\n ),\n 149 => \n array (\n 'id' => 650,\n 'recipe_id' => '78',\n 'ingrident' => 'cake mix',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (2-layer size) spice cake mix ',\n 'displayNote' => '\\' 1 pkg. (2-layer size) spice <a href=\\\\\\'/ingridients/cake-mix\\\\\\'>cake mix</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:31',\n 'updated_at' => '2019-01-07 02:36:31',\n ),\n 150 => \n array (\n 'id' => 651,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup water ',\n 'displayNote' => '\\'1 cup water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:31',\n 'updated_at' => '2019-01-07 02:36:31',\n ),\n 151 => \n array (\n 'id' => 652,\n 'recipe_id' => '78',\n 'ingrident' => 'pumpkin',\n 'amount' => NULL,\n 'note' => '1 cup canned pumpkin ',\n 'displayNote' => '\\'1 cup canned <a href=\\\\\\'/ingridients/pumpkin\\\\\\'>pumpkin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 152 => \n array (\n 'id' => 653,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup oil ',\n 'displayNote' => '\\'1/3 cup oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 153 => \n array (\n 'id' => 654,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 eggs ',\n 'displayNote' => '\\'3 eggs \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 154 => \n array (\n 'id' => 655,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup chopped PLANTERS Walnuts ',\n 'displayNote' => '\\'3/4 cup chopped planters walnuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 155 => \n array (\n 'id' => 656,\n 'recipe_id' => '78',\n 'ingrident' => 'neufchatel',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) PHILADELPHIA Neufchatel Cheese, softened ',\n 'displayNote' => '\\'1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/neufchatel\\\\\\'>neufchatel</a> cheese, softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 156 => \n array (\n 'id' => 657,\n 'recipe_id' => '78',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/3 cup packed dark brown sugar ',\n 'displayNote' => '\\'1/3 cup packed dark brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 157 => \n array (\n 'id' => 658,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup thawed COOL WHIP LITE Whipped Topping ',\n 'displayNote' => '\\'1 cup thawed cool whip lite whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 158 => \n array (\n 'id' => 659,\n 'recipe_id' => '79',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => ' 1/2 cup KRAFT Original Barbecue Sauce ',\n 'displayNote' => '\\' 1/2 cup kraft original <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:36',\n 'updated_at' => '2019-01-07 02:36:36',\n ),\n 159 => \n array (\n 'id' => 660,\n 'recipe_id' => '79',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '10 arbol chiles, stemmed ',\n 'displayNote' => '\\'10 arbol chiles, stemmed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:36',\n 'updated_at' => '2019-01-07 02:36:36',\n ),\n 160 => \n array (\n 'id' => 661,\n 'recipe_id' => '79',\n 'ingrident' => 'ham',\n 'amount' => NULL,\n 'note' => '4 slices OSCAR MAYER Baked Cooked Ham ',\n 'displayNote' => '\\'4 slices oscar mayer baked cooked <a href=\\\\\\'/ingridients/ham\\\\\\'>ham</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:37',\n 'updated_at' => '2019-01-07 02:36:37',\n ),\n 161 => \n array (\n 'id' => 662,\n 'recipe_id' => '79',\n 'ingrident' => 'shrimp',\n 'amount' => NULL,\n 'note' => '1 lb. uncooked deveined peeled large shrimp ',\n 'displayNote' => '\\'1 lb. uncooked deveined peeled large <a href=\\\\\\'/ingridients/shrimp\\\\\\'>shrimp</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:37',\n 'updated_at' => '2019-01-07 02:36:37',\n ),\n 162 => \n array (\n 'id' => 663,\n 'recipe_id' => '79',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '2 Tbsp. KRAFT Grated Parmesan Cheese ',\n 'displayNote' => '\\'2 tbsp. kraft grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:37',\n 'updated_at' => '2019-01-07 02:36:37',\n ),\n 163 => \n array (\n 'id' => 664,\n 'recipe_id' => '80',\n 'ingrident' => 'coffee',\n 'amount' => NULL,\n 'note' => ' 1 cup brewed MAXWELL HOUSE Vanilla Flavored Coffee, chilled ',\n 'displayNote' => '\\' 1 cup brewed maxwell house <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavored <a href=\\\\\\'/ingridients/coffee\\\\\\'>coffee</a> , chilled \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 164 => \n array (\n 'id' => 665,\n 'recipe_id' => '80',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '4 triangles (1/3 of 3.52-oz bar) TOBLERONE Swiss Dark or Milk Chocolate with Honey and Almond Nougat, coarsely chopped ',\n 'displayNote' => '\\'4 triangles (1/3 of 3.52-oz bar) toblerone swiss dark or <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> with <a href=\\\\\\'/ingridients/honey\\\\\\'>honey</a> and <a href=\\\\\\'/ingridients/almond-1\\\\\\'>almond</a> nougat, coarsely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 165 => \n array (\n 'id' => 666,\n 'recipe_id' => '80',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 cups vanilla ice cream, softened ',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 166 => \n array (\n 'id' => 667,\n 'recipe_id' => '80',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '6 Tbsp. thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'6 tbsp. thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 167 => \n array (\n 'id' => 668,\n 'recipe_id' => '80',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '3/4 tsp. grated BAKER&#39;S Semi-Sweet Chocolate ',\n 'displayNote' => '\\'3/4 tsp. grated baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 168 => \n array (\n 'id' => 669,\n 'recipe_id' => '81',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 1-1/2 cups water ',\n 'displayNote' => '\\' 1-1/2 cups water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:55',\n 'updated_at' => '2019-01-07 02:36:55',\n ),\n 169 => \n array (\n 'id' => 670,\n 'recipe_id' => '81',\n 'ingrident' => 'lime',\n 'amount' => NULL,\n 'note' => '1/4 cup fresh lime juice ',\n 'displayNote' => '\\'1/4 cup fresh <a href=\\\\\\'/ingridients/lime\\\\\\'>lime</a> juice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:55',\n 'updated_at' => '2019-01-07 02:36:55',\n ),\n 170 => \n array (\n 'id' => 671,\n 'recipe_id' => '81',\n 'ingrident' => 'lemonade',\n 'amount' => NULL,\n 'note' => '1 pkt. CRYSTAL LIGHT PURE On The Go Lemonade Flavor Drink Mix ',\n 'displayNote' => '\\'1 pkt. crystal light pure on the go <a href=\\\\\\'/ingridients/lemonade\\\\\\'>lemonade</a> flavor drink mix \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:55',\n 'updated_at' => '2019-01-07 02:36:55',\n ),\n 171 => \n array (\n 'id' => 672,\n 'recipe_id' => '81',\n 'ingrident' => 'watermelon',\n 'amount' => NULL,\n 'note' => '5 cups seedless watermelon cubes (1 inch) ',\n 'displayNote' => '\\'5 cups seedless <a href=\\\\\\'/ingridients/watermelon\\\\\\'>watermelon</a> cubes (1 inch) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:55',\n 'updated_at' => '2019-01-07 02:36:55',\n ),\n 172 => \n array (\n 'id' => 673,\n 'recipe_id' => '82',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => ' 1 red onion, divided ',\n 'displayNote' => '\\' 1 red <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 173 => \n array (\n 'id' => 674,\n 'recipe_id' => '82',\n 'ingrident' => 'cabbage',\n 'amount' => NULL,\n 'note' => '2 cups <u>each shredded green and red cabbage ',\n 'displayNote' => '\\'2 cups <u>each shredded green and red <a href=\\\\\\'/ingridients/cabbage\\\\\\'>cabbage</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 174 => \n array (\n 'id' => 675,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup MIRACLE WHIP Dressing ',\n 'displayNote' => '\\'1/4 cup miracle whip dressing \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 175 => \n array (\n 'id' => 676,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 bottle (19.5 oz.) <i>Heinz BBQ Sauce Texas Bold & Spicy, divided ',\n 'displayNote' => '\\'1 bottle (19.5 oz.) <i>heinz bbq sauce texas bold & spicy, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 176 => \n array (\n 'id' => 677,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 Tbsp. oil ',\n 'displayNote' => '\\'1 tbsp. oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 177 => \n array (\n 'id' => 678,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 beef brisket (3 lb.), trimmed ',\n 'displayNote' => '\\'1 beef brisket (3 lb.), trimmed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 178 => \n array (\n 'id' => 679,\n 'recipe_id' => '82',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '1 can (14.5 oz.) fat-free reduced-sodium beef broth ',\n 'displayNote' => '\\'1 can (14.5 oz.) fat-free reduced-sodium <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 179 => \n array (\n 'id' => 680,\n 'recipe_id' => '82',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 cloves garlic, minced ',\n 'displayNote' => '\\'2 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 180 => \n array (\n 'id' => 681,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '12 kaiser roll s, partially split ',\n 'displayNote' => '\\'12 kaiser roll s, partially split \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 181 => \n array (\n 'id' => 682,\n 'recipe_id' => '83',\n 'ingrident' => 'pork',\n 'amount' => NULL,\n 'note' => ' 3 lb. pork baby back ribs ',\n 'displayNote' => '\\' 3 lb. <a href=\\\\\\'/ingridients/pork-1\\\\\\'>pork</a> baby back ribs \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 182 => \n array (\n 'id' => 683,\n 'recipe_id' => '83',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup water ',\n 'displayNote' => '\\'1/2 cup water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 183 => \n array (\n 'id' => 684,\n 'recipe_id' => '83',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => '1 cup KRAFT Original Barbecue Sauce ',\n 'displayNote' => '\\'1 cup kraft original <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 184 => \n array (\n 'id' => 685,\n 'recipe_id' => '83',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/2 cup fresh cilantro leaves ',\n 'displayNote' => '\\'1/2 cup fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> leaves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 185 => \n array (\n 'id' => 686,\n 'recipe_id' => '83',\n 'ingrident' => 'adobo sauce',\n 'amount' => NULL,\n 'note' => '1 canned chipotle pepper in adobo sauce ',\n 'displayNote' => '\\'1 canned <a href=\\\\\\'/ingridients/chipotle\\\\\\'>chipotle</a> pepper in <a href=\\\\\\'/ingridients/adobo-sauce\\\\\\'>adobo sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 186 => \n array (\n 'id' => 687,\n 'recipe_id' => '83',\n 'ingrident' => 'orange',\n 'amount' => NULL,\n 'note' => '2 tsp. orange zest ',\n 'displayNote' => '\\'2 tsp. <a href=\\\\\\'/ingridients/orange\\\\\\'>orange</a> zest \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 187 => \n array (\n 'id' => 688,\n 'recipe_id' => '84',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 2 Tbsp. oil ',\n 'displayNote' => '\\' 2 tbsp. oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 188 => \n array (\n 'id' => 689,\n 'recipe_id' => '84',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb. beef top round steak, cut into 1/2-inch pieces ',\n 'displayNote' => '\\'1 lb. beef top round steak, cut into 1/2-inch pieces \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 189 => \n array (\n 'id' => 690,\n 'recipe_id' => '84',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '1 lb. extra-lean ground beef ',\n 'displayNote' => '\\'1 lb. extra-lean <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 190 => \n array (\n 'id' => 691,\n 'recipe_id' => '84',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion, finely chopped ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , finely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 191 => \n array (\n 'id' => 692,\n 'recipe_id' => '84',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup A.1. Dry Rub Bold Original ',\n 'displayNote' => '\\'1/4 cup a.1. dry rub bold original \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 192 => \n array (\n 'id' => 693,\n 'recipe_id' => '84',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '3 cloves garlic, minced ',\n 'displayNote' => '\\'3 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 193 => \n array (\n 'id' => 694,\n 'recipe_id' => '84',\n 'ingrident' => 'kidney beans',\n 'amount' => NULL,\n 'note' => '2 cans (16 oz. each) kidney beans, rinsed ',\n 'displayNote' => '\\'2 cans (16 oz. each) <a href=\\\\\\'/ingridients/kidney-beans\\\\\\'>kidney beans</a> , rinsed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 194 => \n array (\n 'id' => 695,\n 'recipe_id' => '84',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2-1/2 cups undrained canned no-salt-added diced tomatoes ',\n 'displayNote' => '\\'2-1/2 cups undrained canned no-salt-added diced tomatoes \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 195 => \n array (\n 'id' => 696,\n 'recipe_id' => '84',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => '1 bottle (18 oz.) KRAFT Hickory Smoke Barbecue Sauce ',\n 'displayNote' => '\\'1 bottle (18 oz.) kraft hickory smoke <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 196 => \n array (\n 'id' => 697,\n 'recipe_id' => '84',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '3/4 cup KRAFT Shredded Cheddar Cheese ',\n 'displayNote' => '\\'3/4 cup kraft shredded <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 197 => \n array (\n 'id' => 698,\n 'recipe_id' => '85',\n 'ingrident' => 'oreo',\n 'amount' => NULL,\n 'note' => ' 24 OREO Cookies, divided ',\n 'displayNote' => '\\' 24 <a href=\\\\\\'/ingridients/oreo\\\\\\'>oreo</a> <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 198 => \n array (\n 'id' => 699,\n 'recipe_id' => '85',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 pt. (2 cups) chocolate ice cream ',\n 'displayNote' => '\\'1 pt. (2 cups) <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 199 => \n array (\n 'id' => 700,\n 'recipe_id' => '85',\n 'ingrident' => 'fudge',\n 'amount' => NULL,\n 'note' => '1 cup hot fudge ice cream topping ',\n 'displayNote' => '\\'1 cup hot <a href=\\\\\\'/ingridients/fudge\\\\\\'>fudge</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 200 => \n array (\n 'id' => 701,\n 'recipe_id' => '85',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 pt. (2 cups) vanilla ice cream ',\n 'displayNote' => '\\'1 pt. (2 cups) <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 201 => \n array (\n 'id' => 702,\n 'recipe_id' => '85',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1 cup thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 202 => \n array (\n 'id' => 703,\n 'recipe_id' => '86',\n 'ingrident' => 'cracker',\n 'amount' => NULL,\n 'note' => ' 1-1/2 cups graham cracker crumbs ',\n 'displayNote' => '\\' 1-1/2 cups graham <a href=\\\\\\'/ingridients/cracker\\\\\\'>cracker</a> crumbs \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 203 => \n array (\n 'id' => 704,\n 'recipe_id' => '86',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3 Tbsp. sugar ',\n 'displayNote' => '\\'3 tbsp. <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 204 => \n array (\n 'id' => 705,\n 'recipe_id' => '86',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/3 cup butter or margarine, melted ',\n 'displayNote' => '\\'1/3 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 205 => \n array (\n 'id' => 706,\n 'recipe_id' => '86',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '4 pkg. (8 oz. each) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'4 pkg. (8 oz. each) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 206 => \n array (\n 'id' => 707,\n 'recipe_id' => '86',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar ',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 207 => \n array (\n 'id' => 708,\n 'recipe_id' => '86',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 208 => \n array (\n 'id' => 709,\n 'recipe_id' => '86',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '4 egg s ',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 209 => \n array (\n 'id' => 710,\n 'recipe_id' => '86',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) COOL WHIP Whipped Topping (Do not thaw.) ',\n 'displayNote' => '\\'1 tub (8 oz.) cool whip whipped topping (do not thaw.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 210 => \n array (\n 'id' => 711,\n 'recipe_id' => '86',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '6 oz. BAKER&#39;S Bittersweet Chocolate ',\n 'displayNote' => '\\'6 oz. baker&#39;s bittersweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 211 => \n array (\n 'id' => 712,\n 'recipe_id' => '86',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup fresh raspberries ',\n 'displayNote' => '\\'1 cup fresh raspberries \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 212 => \n array (\n 'id' => 713,\n 'recipe_id' => '87',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => ' 1 Tbsp. butter ',\n 'displayNote' => '\\' 1 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 213 => \n array (\n 'id' => 714,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 small Gala apples, peeled, chopped (about 3 cups) ',\n 'displayNote' => '\\'3 small gala apples, peeled, chopped (about 3 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 214 => \n array (\n 'id' => 715,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '25 KRAFT Caramels ',\n 'displayNote' => '\\'25 kraft caramels \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 215 => \n array (\n 'id' => 716,\n 'recipe_id' => '87',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 can (12 oz.) evaporated milk, divided ',\n 'displayNote' => '\\'1 can (12 oz.) evaporated <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 216 => \n array (\n 'id' => 717,\n 'recipe_id' => '87',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 can (14 oz.) sweetened condensed milk ',\n 'displayNote' => '\\'1 can (14 oz.) sweetened condensed <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 217 => \n array (\n 'id' => 718,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 eggs ',\n 'displayNote' => '\\'4 eggs \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 218 => \n array (\n 'id' => 719,\n 'recipe_id' => '87',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 219 => \n array (\n 'id' => 720,\n 'recipe_id' => '87',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1/2 tsp. ground cinnamon ',\n 'displayNote' => '\\'1/2 tsp. ground <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:36',\n 'updated_at' => '2019-01-07 02:37:36',\n ),\n 220 => \n array (\n 'id' => 721,\n 'recipe_id' => '87',\n 'ingrident' => 'bread',\n 'amount' => NULL,\n 'note' => '3/4 lb. unsliced white bread, cut into 1-inch cubes (about 8 cups) ',\n 'displayNote' => '\\'3/4 lb. unsliced white <a href=\\\\\\'/ingridients/bread\\\\\\'>bread</a> , cut into 1-inch cubes (about 8 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:36',\n 'updated_at' => '2019-01-07 02:37:36',\n ),\n 221 => \n array (\n 'id' => 722,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup dried cranberries ',\n 'displayNote' => '\\'1/2 cup dried cranberries \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:36',\n 'updated_at' => '2019-01-07 02:37:36',\n ),\n 222 => \n array (\n 'id' => 723,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1 cup thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:36',\n 'updated_at' => '2019-01-07 02:37:36',\n ),\n 223 => \n array (\n 'id' => 724,\n 'recipe_id' => '88',\n 'ingrident' => 'cookie dough',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (16.5 oz.) refrigerated chocolate chip cookie dough, divided ',\n 'displayNote' => '\\' 1 pkg. (16.5 oz.) refrigerated <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> chip <a href=\\\\\\'/ingridients/cookie-dough\\\\\\'>cookie dough</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 224 => \n array (\n 'id' => 725,\n 'recipe_id' => '88',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 pkg. (3.4 oz.) JELL-O Vanilla Flavor Instant Pudding ',\n 'displayNote' => '\\'1 pkg. (3.4 oz.) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 225 => \n array (\n 'id' => 726,\n 'recipe_id' => '88',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup cold milk ',\n 'displayNote' => '\\'1 cup cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 226 => \n array (\n 'id' => 727,\n 'recipe_id' => '88',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => '1/3 cup creamy peanut butter, divided ',\n 'displayNote' => '\\'1/3 cup creamy <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 227 => \n array (\n 'id' => 728,\n 'recipe_id' => '88',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1-1/2 cups thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1-1/2 cups thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 228 => \n array (\n 'id' => 729,\n 'recipe_id' => '88',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 oz. BAKER&#39;S Semi-Sweet Chocolate ',\n 'displayNote' => '\\'1 oz. baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 229 => \n array (\n 'id' => 730,\n 'recipe_id' => '88',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 Tbsp. chopped PLANTERS COCKTAIL Peanuts ',\n 'displayNote' => '\\'2 tbsp. chopped planters cocktail peanuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 230 => \n array (\n 'id' => 731,\n 'recipe_id' => '89',\n 'ingrident' => 'italian dressing',\n 'amount' => NULL,\n 'note' => ' 1/4 cup KRAFT Zesty Italian Dressing ',\n 'displayNote' => '\\' 1/4 cup kraft zesty <a href=\\\\\\'/ingridients/italian-dressing\\\\\\'>italian dressing</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:44',\n 'updated_at' => '2019-01-07 02:37:44',\n ),\n 231 => \n array (\n 'id' => 732,\n 'recipe_id' => '89',\n 'ingrident' => 'pork',\n 'amount' => NULL,\n 'note' => '1-1/2 lb. pork tenderloin, cut into bite-size pieces ',\n 'displayNote' => '\\'1-1/2 lb. <a href=\\\\\\'/ingridients/pork-1\\\\\\'>pork</a> tenderloin, cut into bite-size pieces \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 232 => \n array (\n 'id' => 733,\n 'recipe_id' => '89',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion, chopped ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 233 => \n array (\n 'id' => 734,\n 'recipe_id' => '89',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 cloves garlic, minced ',\n 'displayNote' => '\\'2 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 234 => \n array (\n 'id' => 735,\n 'recipe_id' => '89',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped fresh cilantro, divided ',\n 'displayNote' => '\\'1/4 cup chopped fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 235 => \n array (\n 'id' => 736,\n 'recipe_id' => '89',\n 'ingrident' => 'pinto beans',\n 'amount' => NULL,\n 'note' => '2 cans (15 oz. each) pinto beans, rinsed, divided ',\n 'displayNote' => '\\'2 cans (15 oz. each) <a href=\\\\\\'/ingridients/pinto-beans\\\\\\'>pinto beans</a> , rinsed, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 236 => \n array (\n 'id' => 737,\n 'recipe_id' => '89',\n 'ingrident' => 'salsa',\n 'amount' => NULL,\n 'note' => '1 jar (16 oz.) green salsa ',\n 'displayNote' => '\\'1 jar (16 oz.) green <a href=\\\\\\'/ingridients/salsa\\\\\\'>salsa</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 237 => \n array (\n 'id' => 738,\n 'recipe_id' => '89',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '1 can (14.5 oz.) fat-free reduced-sodium chicken broth ',\n 'displayNote' => '\\'1 can (14.5 oz.) fat-free reduced-sodium <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 238 => \n array (\n 'id' => 739,\n 'recipe_id' => '89',\n 'ingrident' => 'corn',\n 'amount' => NULL,\n 'note' => '1 cup frozen corn ',\n 'displayNote' => '\\'1 cup frozen <a href=\\\\\\'/ingridients/corn\\\\\\'>corn</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 239 => \n array (\n 'id' => 740,\n 'recipe_id' => '89',\n 'ingrident' => 'chips',\n 'amount' => NULL,\n 'note' => '2 cups coarsely crushed tortilla chips ',\n 'displayNote' => '\\'2 cups coarsely crushed tortilla <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 240 => \n array (\n 'id' => 741,\n 'recipe_id' => '89',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/2 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 241 => \n array (\n 'id' => 742,\n 'recipe_id' => '89',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup KRAFT Mexican Style Finely Shredded Four Cheese ',\n 'displayNote' => '\\'1/2 cup kraft mexican style finely shredded four cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 242 => \n array (\n 'id' => 743,\n 'recipe_id' => '90',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => ' 1/4 cup KRAFT Thick & Spicy Barbecue Sauce ',\n 'displayNote' => '\\' 1/4 cup kraft thick & spicy <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 243 => \n array (\n 'id' => 744,\n 'recipe_id' => '90',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 Tbsp. maple-flavored or pancake syrup ',\n 'displayNote' => '\\'2 tbsp. maple-flavored or pancake syrup \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 244 => \n array (\n 'id' => 745,\n 'recipe_id' => '90',\n 'ingrident' => 'orange',\n 'amount' => NULL,\n 'note' => '1/4 tsp. orange zest ',\n 'displayNote' => '\\'1/4 tsp. <a href=\\\\\\'/ingridients/orange\\\\\\'>orange</a> zest \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 245 => \n array (\n 'id' => 746,\n 'recipe_id' => '90',\n 'ingrident' => 'salmon',\n 'amount' => NULL,\n 'note' => '1 skin-on salmon fillet (1 lb.) ',\n 'displayNote' => '\\'1 skin-on <a href=\\\\\\'/ingridients/salmon\\\\\\'>salmon</a> fillet (1 lb.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 246 => \n array (\n 'id' => 747,\n 'recipe_id' => '90',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 Tbsp. chopped fresh basil ',\n 'displayNote' => '\\'1 tbsp. chopped fresh <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 247 => \n array (\n 'id' => 748,\n 'recipe_id' => '91',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (3.4 oz.) JELL-O Vanilla Flavor Instant Pudding ',\n 'displayNote' => '\\' 1 pkg. (3.4 oz.) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:58',\n 'updated_at' => '2019-01-07 02:37:58',\n ),\n 248 => \n array (\n 'id' => 749,\n 'recipe_id' => '91',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup cold milk ',\n 'displayNote' => '\\'1 cup cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:58',\n 'updated_at' => '2019-01-07 02:37:58',\n ),\n 249 => \n array (\n 'id' => 750,\n 'recipe_id' => '91',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1-1/2 cups thawed COOL WHIP LITE Whipped Topping ',\n 'displayNote' => '\\'1-1/2 cups thawed cool whip lite whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:58',\n 'updated_at' => '2019-01-07 02:37:58',\n ),\n 250 => \n array (\n 'id' => 751,\n 'recipe_id' => '91',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '16 cinnamon graham cracker s, broken in half (32 squares) ',\n 'displayNote' => '\\'16 <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> graham <a href=\\\\\\'/ingridients/cracker\\\\\\'>cracker</a> s, broken in half (32 squares) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:58',\n 'updated_at' => '2019-01-07 02:37:58',\n ),\n 251 => \n array (\n 'id' => 752,\n 'recipe_id' => '92',\n 'ingrident' => 'ground chicken',\n 'amount' => NULL,\n 'note' => ' 1 lb. lean ground chicken ',\n 'displayNote' => '\\' 1 lb. lean <a href=\\\\\\'/ingridients/ground-chicken\\\\\\'>ground chicken</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 252 => \n array (\n 'id' => 753,\n 'recipe_id' => '92',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 yellow onion, chopped ',\n 'displayNote' => '\\'1 yellow <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 253 => \n array (\n 'id' => 754,\n 'recipe_id' => '92',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 cloves garlic, minced ',\n 'displayNote' => '\\'2 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 254 => \n array (\n 'id' => 755,\n 'recipe_id' => '92',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 can (28 oz.) diced tomatoes, undrained ',\n 'displayNote' => '\\'1 can (28 oz.) diced tomatoes, undrained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 255 => \n array (\n 'id' => 756,\n 'recipe_id' => '92',\n 'ingrident' => 'black beans',\n 'amount' => NULL,\n 'note' => '1 can (15.5 oz.) black beans, rinsed ',\n 'displayNote' => '\\'1 can (15.5 oz.) <a href=\\\\\\'/ingridients/black-beans\\\\\\'>black beans</a> , rinsed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 256 => \n array (\n 'id' => 757,\n 'recipe_id' => '92',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 green pepper, chopped ',\n 'displayNote' => '\\'1 green pepper, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 257 => \n array (\n 'id' => 758,\n 'recipe_id' => '92',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => '1/3 cup KRAFT Sweet & Spicy Barbecue Sauce ',\n 'displayNote' => '\\'1/3 cup kraft sweet & spicy <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 258 => \n array (\n 'id' => 759,\n 'recipe_id' => '92',\n 'ingrident' => 'chili powder',\n 'amount' => NULL,\n 'note' => '1 Tbsp. chili powder ',\n 'displayNote' => '\\'1 tbsp. <a href=\\\\\\'/ingridients/chili-powder\\\\\\'>chili powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 259 => \n array (\n 'id' => 760,\n 'recipe_id' => '92',\n 'ingrident' => 'chipotle',\n 'amount' => NULL,\n 'note' => '1 tsp. chipotle chile pepper powder ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/chipotle\\\\\\'>chipotle</a> chile pepper powder \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 260 => \n array (\n 'id' => 761,\n 'recipe_id' => '92',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped fresh cilantro ',\n 'displayNote' => '\\'1/4 cup chopped fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 261 => \n array (\n 'id' => 762,\n 'recipe_id' => '92',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup KRAFT Mexican Style Shredded Four Cheese with a TOUCH OF PHILADELPHIA ',\n 'displayNote' => '\\'3/4 cup kraft mexican style shredded four cheese with a touch of philadelphia \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 262 => \n array (\n 'id' => 763,\n 'recipe_id' => '92',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 green onions, chopped ',\n 'displayNote' => '\\'2 green onions, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 263 => \n array (\n 'id' => 764,\n 'recipe_id' => '93',\n 'ingrident' => 'fudge',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (0.74 oz) mini fudge-covered shortbread cookies ',\n 'displayNote' => '\\' 1 pkg. (0.74 oz) mini <a href=\\\\\\'/ingridients/fudge\\\\\\'>fudge</a> -covered shortbread <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:11',\n 'updated_at' => '2019-01-07 02:38:11',\n ),\n 264 => \n array (\n 'id' => 765,\n 'recipe_id' => '93',\n 'ingrident' => 'marshmallow',\n 'amount' => NULL,\n 'note' => '8 JET-PUFFED Miniature Marshmallow s ',\n 'displayNote' => '\\'8 jet-puffed miniature <a href=\\\\\\'/ingridients/marshmallow\\\\\\'>marshmallow</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:11',\n 'updated_at' => '2019-01-07 02:38:11',\n ),\n 265 => \n array (\n 'id' => 766,\n 'recipe_id' => '94',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => ' 12 peanut butter sandwich cookie s ',\n 'displayNote' => '\\' 12 <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> sandwich cookie s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 266 => \n array (\n 'id' => 767,\n 'recipe_id' => '94',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 pkg. (4 oz.) BAKER&#39;S White Chocolate, melted ',\n 'displayNote' => '\\'1 pkg. (4 oz.) baker&#39;s white <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 267 => \n array (\n 'id' => 768,\n 'recipe_id' => '94',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 Tbsp. red colored sugar ',\n 'displayNote' => '\\'2 tbsp. red colored <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 268 => \n array (\n 'id' => 769,\n 'recipe_id' => '94',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '24 miniature semi-sweet chocolate chips ',\n 'displayNote' => '\\'24 miniature semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 269 => \n array (\n 'id' => 770,\n 'recipe_id' => '94',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => 'decorations: 12 <u>each small red and white hard candies ',\n 'displayNote' => '\\'decorations: 12 <u>each small red and white hard candies \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 270 => \n array (\n 'id' => 771,\n 'recipe_id' => '95',\n 'ingrident' => 'pie crust',\n 'amount' => NULL,\n 'note' => ' 1 ready-to-use refrigerated pie crust (1/2 of 14.1-oz. pkg.) ',\n 'displayNote' => '\\' 1 ready-to-use refrigerated <a href=\\\\\\'/ingridients/pie-crust\\\\\\'>pie crust</a> (1/2 of 14.1-oz. pkg.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 271 => \n array (\n 'id' => 772,\n 'recipe_id' => '95',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 tsp. flour, divided ',\n 'displayNote' => '\\'2 tsp. <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 272 => \n array (\n 'id' => 773,\n 'recipe_id' => '95',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '3 egg s ',\n 'displayNote' => '\\'3 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 273 => \n array (\n 'id' => 774,\n 'recipe_id' => '95',\n 'ingrident' => 'corn',\n 'amount' => NULL,\n 'note' => '1 cup light corn syrup ',\n 'displayNote' => '\\'1 cup light <a href=\\\\\\'/ingridients/corn\\\\\\'>corn</a> syrup \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 274 => \n array (\n 'id' => 775,\n 'recipe_id' => '95',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar ',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 275 => \n array (\n 'id' => 776,\n 'recipe_id' => '95',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '2 Tbsp. butter, melted ',\n 'displayNote' => '\\'2 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 276 => \n array (\n 'id' => 777,\n 'recipe_id' => '95',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 277 => \n array (\n 'id' => 778,\n 'recipe_id' => '95',\n 'ingrident' => 'pecan',\n 'amount' => NULL,\n 'note' => '1 cup PLANTERS Pecan Halves ',\n 'displayNote' => '\\'1 cup planters <a href=\\\\\\'/ingridients/pecan\\\\\\'>pecan</a> halves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 278 => \n array (\n 'id' => 779,\n 'recipe_id' => '95',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '2 oz. BAKER&#39;S Semi-Sweet Chocolate, coarsely chopped ',\n 'displayNote' => '\\'2 oz. baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , coarsely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:20',\n 'updated_at' => '2019-01-07 02:38:20',\n ),\n 279 => \n array (\n 'id' => 780,\n 'recipe_id' => '95',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 tsp. coarse sea salt ',\n 'displayNote' => '\\'1/2 tsp. coarse sea salt \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:20',\n 'updated_at' => '2019-01-07 02:38:20',\n ),\n 280 => \n array (\n 'id' => 781,\n 'recipe_id' => '96',\n 'ingrident' => 'beef sirloin',\n 'amount' => NULL,\n 'note' => ' 1 beef sirloin steak (3/4 lb.), 3/4 inch thick ',\n 'displayNote' => '\\' 1 <a href=\\\\\\'/ingridients/beef-sirloin\\\\\\'>beef sirloin</a> steak (3/4 lb.), 3/4 inch thick \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 281 => \n array (\n 'id' => 782,\n 'recipe_id' => '96',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 Tbsp. A.1. Original Sauce ',\n 'displayNote' => '\\'2 tbsp. a.1. original sauce \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 282 => \n array (\n 'id' => 783,\n 'recipe_id' => '96',\n 'ingrident' => 'mayonnaise',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Mayo with Olive Oil Reduced Fat Mayonnaise ',\n 'displayNote' => '\\'1/4 cup kraft mayo with <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil reduced fat <a href=\\\\\\'/ingridients/mayonnaise\\\\\\'>mayonnaise</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 283 => \n array (\n 'id' => 784,\n 'recipe_id' => '96',\n 'ingrident' => 'ranch dressing',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Lite Ranch Dressing ',\n 'displayNote' => '\\'1/4 cup kraft lite <a href=\\\\\\'/ingridients/ranch-dressing\\\\\\'>ranch dressing</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 284 => \n array (\n 'id' => 785,\n 'recipe_id' => '96',\n 'ingrident' => 'horseradish',\n 'amount' => NULL,\n 'note' => '2 tsp. KRAFT Prepared Horseradish ',\n 'displayNote' => '\\'2 tsp. kraft prepared <a href=\\\\\\'/ingridients/horseradish\\\\\\'>horseradish</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 285 => \n array (\n 'id' => 786,\n 'recipe_id' => '96',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '8 cups loosely packed chopped romaine lettuce ',\n 'displayNote' => '\\'8 cups loosely packed chopped romaine lettuce \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 286 => \n array (\n 'id' => 787,\n 'recipe_id' => '96',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '1 tomato, cut into wedges ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> , cut into wedges \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 287 => \n array (\n 'id' => 788,\n 'recipe_id' => '96',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small red onion, cut into thin wedges ',\n 'displayNote' => '\\'1 small red <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , cut into thin wedges \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 288 => \n array (\n 'id' => 789,\n 'recipe_id' => '96',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '1/2 cup KRAFT 2% Milk Shredded Sharp Cheddar Cheese ',\n 'displayNote' => '\\'1/2 cup kraft 2% <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> shredded sharp <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 289 => \n array (\n 'id' => 790,\n 'recipe_id' => '97',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => ' 1 container (1.5 qt.) vanilla ice cream, slightly softened ',\n 'displayNote' => '\\' 1 container (1.5 qt.) <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> , slightly softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 290 => \n array (\n 'id' => 791,\n 'recipe_id' => '97',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '6 sugar cones, divided ',\n 'displayNote' => '\\'6 <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> cones, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 291 => \n array (\n 'id' => 792,\n 'recipe_id' => '97',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 pkg. (4 oz.) BAKER&#39;S Semi-Sweet Chocolate ',\n 'displayNote' => '\\'1 pkg. (4 oz.) baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 292 => \n array (\n 'id' => 793,\n 'recipe_id' => '97',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 Tbsp. oil ',\n 'displayNote' => '\\'1 tbsp. oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 293 => \n array (\n 'id' => 794,\n 'recipe_id' => '97',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped PLANTERS Dry Roasted Peanuts ',\n 'displayNote' => '\\'1/4 cup chopped planters dry roasted peanuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 294 => \n array (\n 'id' => 795,\n 'recipe_id' => '98',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 1 tub (8 oz.) COOL WHIP Whipped Topping, thawed ',\n 'displayNote' => '\\' 1 tub (8 oz.) cool whip whipped topping, thawed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 295 => \n array (\n 'id' => 796,\n 'recipe_id' => '98',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '40 vanilla wafers, divided ',\n 'displayNote' => '\\'40 <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> wafers, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 296 => \n array (\n 'id' => 797,\n 'recipe_id' => '98',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 pkg. (3.4 oz. each) JELL-O Vanilla Flavor Instant Pudding ',\n 'displayNote' => '\\'2 pkg. (3.4 oz. each) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 297 => \n array (\n 'id' => 798,\n 'recipe_id' => '98',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '3-1/2 cups cold milk ',\n 'displayNote' => '\\'3-1/2 cups cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 298 => \n array (\n 'id' => 799,\n 'recipe_id' => '98',\n 'ingrident' => 'berries',\n 'amount' => NULL,\n 'note' => '2 cups mixed berries (blueberries, raspberries, sliced fresh strawberries) ',\n 'displayNote' => '\\'2 cups mixed <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> (blue <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> , rasp <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> , sliced fresh straw <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> ) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 299 => \n array (\n 'id' => 800,\n 'recipe_id' => '99',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => ' 1 lb. lean ground beef ',\n 'displayNote' => '\\' 1 lb. lean <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:36',\n 'updated_at' => '2019-01-07 02:38:36',\n ),\n 300 => \n array (\n 'id' => 801,\n 'recipe_id' => '99',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup sliced fresh mushrooms ',\n 'displayNote' => '\\'1 cup sliced fresh mushrooms \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:36',\n 'updated_at' => '2019-01-07 02:38:36',\n ),\n 301 => \n array (\n 'id' => 802,\n 'recipe_id' => '99',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1-1/4 cups milk ',\n 'displayNote' => '\\'1-1/4 cups <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:36',\n 'updated_at' => '2019-01-07 02:38:36',\n ),\n 302 => \n array (\n 'id' => 803,\n 'recipe_id' => '99',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup water ',\n 'displayNote' => '\\'1 cup water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:36',\n 'updated_at' => '2019-01-07 02:38:36',\n ),\n 303 => \n array (\n 'id' => 804,\n 'recipe_id' => '99',\n 'ingrident' => 'velveeta',\n 'amount' => NULL,\n 'note' => '1 pkg. (11.6 oz.) VELVEETA CHEESY SKILLETS Dinner Kit Creamy Beef Stroganoff ',\n 'displayNote' => '\\'1 pkg. (11.6 oz.) <a href=\\\\\\'/ingridients/velveeta\\\\\\'>velveeta</a> cheesy skillets dinner kit creamy beef stroganoff \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:37',\n 'updated_at' => '2019-01-07 02:38:37',\n ),\n 304 => \n array (\n 'id' => 805,\n 'recipe_id' => '100',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => ' 2 baked 8-inch round vanilla cake layers, cooled ',\n 'displayNote' => '\\' 2 baked 8-inch round <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> cake layers, cooled \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 305 => \n array (\n 'id' => 806,\n 'recipe_id' => '100',\n 'ingrident' => 'strawberry',\n 'amount' => NULL,\n 'note' => '1 pkg (3 oz.) JELL-O Strawberry Flavor Gelatin ',\n 'displayNote' => '\\'1 pkg (3 oz.) jell-o <a href=\\\\\\'/ingridients/strawberry\\\\\\'>strawberry</a> flavor gelatin \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 306 => \n array (\n 'id' => 807,\n 'recipe_id' => '100',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 cups boiling water ',\n 'displayNote' => '\\'2 cups boiling water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 307 => \n array (\n 'id' => 808,\n 'recipe_id' => '100',\n 'ingrident' => 'banana',\n 'amount' => NULL,\n 'note' => '1 pkg (3.4 oz.) JELL-O Banana Cream Flavor Instant Pudding ',\n 'displayNote' => '\\'1 pkg (3.4 oz.) jell-o <a href=\\\\\\'/ingridients/banana\\\\\\'>banana</a> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 308 => \n array (\n 'id' => 809,\n 'recipe_id' => '100',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup cold milk ',\n 'displayNote' => '\\'1 cup cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 309 => \n array (\n 'id' => 810,\n 'recipe_id' => '100',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) Extra Creamy COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1 tub (8 oz.) extra creamy cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 310 => \n array (\n 'id' => 811,\n 'recipe_id' => '100',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '*hocolate shavings, banana slices, cherry with stem, chocolate drizzle to decorate (optional) ',\n 'displayNote' => '\\'*hocolate shavings, <a href=\\\\\\'/ingridients/banana\\\\\\'>banana</a> slices, <a href=\\\\\\'/ingridients/cherry\\\\\\'>cherry</a> with stem, <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> drizzle to decorate (optional) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 311 => \n array (\n 'id' => 812,\n 'recipe_id' => '101',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 2 cups boiling water ',\n 'displayNote' => '\\' 2 cups boiling water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:52',\n 'updated_at' => '2019-01-07 02:38:52',\n ),\n 312 => \n array (\n 'id' => 813,\n 'recipe_id' => '101',\n 'ingrident' => 'strawberry',\n 'amount' => NULL,\n 'note' => '2 pkg. (3 oz. each) JELL-O Strawberry Flavor Gelatin ',\n 'displayNote' => '\\'2 pkg. (3 oz. each) jell-o <a href=\\\\\\'/ingridients/strawberry\\\\\\'>strawberry</a> flavor gelatin \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:52',\n 'updated_at' => '2019-01-07 02:38:52',\n ),\n 313 => \n array (\n 'id' => 814,\n 'recipe_id' => '101',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 cups ice cubes ',\n 'displayNote' => '\\'4 cups ice cubes \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:52',\n 'updated_at' => '2019-01-07 02:38:52',\n ),\n 314 => \n array (\n 'id' => 815,\n 'recipe_id' => '101',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup bear-shaped gummy candies (2 oz.) ',\n 'displayNote' => '\\'1/3 cup bear-shaped gummy candies (2 oz.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:52',\n 'updated_at' => '2019-01-07 02:38:52',\n ),\n 315 => \n array (\n 'id' => 816,\n 'recipe_id' => '103',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => ' 1 lb. lean ground beef ',\n 'displayNote' => '\\' 1 lb. lean <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 316 => \n array (\n 'id' => 817,\n 'recipe_id' => '103',\n 'ingrident' => 'bacon',\n 'amount' => NULL,\n 'note' => '4 slices OSCAR MAYER Bacon ',\n 'displayNote' => '\\'4 slices oscar mayer <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 317 => \n array (\n 'id' => 818,\n 'recipe_id' => '103',\n 'ingrident' => 'pepper jack',\n 'amount' => NULL,\n 'note' => '4 KRAFT Big Slice Pepper Jack Cheese Slice s ',\n 'displayNote' => '\\'4 kraft big slice <a href=\\\\\\'/ingridients/pepper-jack\\\\\\'>pepper jack</a> cheese slice s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 318 => \n array (\n 'id' => 819,\n 'recipe_id' => '103',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 kaiser roll s, split ',\n 'displayNote' => '\\'4 kaiser roll s, split \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 319 => \n array (\n 'id' => 820,\n 'recipe_id' => '103',\n 'ingrident' => 'chipotle',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Chipotle Aioli ',\n 'displayNote' => '\\'1/4 cup kraft <a href=\\\\\\'/ingridients/chipotle\\\\\\'>chipotle</a> aioli \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 320 => \n array (\n 'id' => 821,\n 'recipe_id' => '103',\n 'ingrident' => 'avocado',\n 'amount' => NULL,\n 'note' => '1 avocado, cut into 12 slices ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/avocado\\\\\\'>avocado</a> , cut into 12 slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 321 => \n array (\n 'id' => 822,\n 'recipe_id' => '103',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/2 cup coarsely chopped fresh cilantro ',\n 'displayNote' => '\\'1/2 cup coarsely chopped fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:04',\n 'updated_at' => '2019-01-07 02:39:04',\n ),\n 322 => \n array (\n 'id' => 823,\n 'recipe_id' => '104',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => ' 2 pkg. (4 oz. each) BAKER&#39;S Semi-Sweet Chocolate, broken into pieces ',\n 'displayNote' => '\\' 2 pkg. (4 oz. each) baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , broken into pieces \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 323 => \n array (\n 'id' => 824,\n 'recipe_id' => '104',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup (1/2 stick) butter or margarine, softened ',\n 'displayNote' => '\\'1/4 cup (1/2 stick) <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 324 => \n array (\n 'id' => 825,\n 'recipe_id' => '104',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup firmly packed brown sugar ',\n 'displayNote' => '\\'3/4 cup firmly packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 325 => \n array (\n 'id' => 826,\n 'recipe_id' => '104',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '3 egg s ',\n 'displayNote' => '\\'3 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 326 => \n array (\n 'id' => 827,\n 'recipe_id' => '104',\n 'ingrident' => 'coffee',\n 'amount' => NULL,\n 'note' => '2 tsp. MAXWELL HOUSE Instant Coffee ',\n 'displayNote' => '\\'2 tsp. maxwell house instant <a href=\\\\\\'/ingridients/coffee\\\\\\'>coffee</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 327 => \n array (\n 'id' => 828,\n 'recipe_id' => '104',\n 'ingrident' => 'rum',\n 'amount' => NULL,\n 'note' => '1 tsp. rum extract ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/rum\\\\\\'>rum</a> extract \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 328 => \n array (\n 'id' => 829,\n 'recipe_id' => '104',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/4 cup flour ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 329 => \n array (\n 'id' => 830,\n 'recipe_id' => '104',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup chopped PLANTERS Walnuts ',\n 'displayNote' => '\\'1 cup chopped planters walnuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 330 => \n array (\n 'id' => 831,\n 'recipe_id' => '104',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 unbaked 9-inch pastry shell ',\n 'displayNote' => '\\'1 unbaked 9-inch pastry shell \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 331 => \n array (\n 'id' => 832,\n 'recipe_id' => '104',\n 'ingrident' => 'walnut',\n 'amount' => NULL,\n 'note' => '1/2 cup PLANTERS Walnut Halves ',\n 'displayNote' => '\\'1/2 cup planters <a href=\\\\\\'/ingridients/walnut-1\\\\\\'>walnut</a> halves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n ));\n \n \n }", "public function run()\n {\n DB::table('countries')->truncate();\n DB::table('ingredients')->truncate();\n DB::table('facts')->truncate();\n DB::table('recipes')->truncate();\n DB::table('ingredient_recipe')->truncate();\n DB::table('country_recipe')->truncate();\n\n //data from file DataProvider.php (same folder) => if you want to add recipes to seeder go there\n $data_recipes = DataProvider::getRecipes();\n $countries = DataProvider::getCountries();\n\n //this fills DB with Countries\n foreach ($countries as $iteration) {\n $country = new Country;\n $country->name = $iteration[\"name\"];\n $country->flag = strtolower($iteration[\"flag\"]);\n $country->save();\n }\n\n\n //fill DB with recipes from array $data_recipes\n foreach ($data_recipes as $food) {\n $recipe = new Recipe;\n\n $recipe->name = $food[\"name\"];\n $recipe->instructions = $food[\"instructions\"];\n $recipe->image = $food[\"image\"];\n $recipe->isVegan = $food[\"isVegan\"];\n $recipe->isVegetarian = $food[\"isVegetarian\"];\n $recipe->isLactoseFree = $food[\"isLactoseFree\"];\n $recipe->isGlutenFree = $food[\"isGlutenFree\"];\n $recipe->isNutFree = $food[\"isNutFree\"];\n $recipe->save();\n\n foreach ($food[\"countries\"] as $coun) {\n //we need to get country ID to save it to recipe_coutry table\n $country_generated = Country::where(\"name\", $coun)->first();\n $recipe->countries()->attach($country_generated->id);\n }\n\n foreach ($food[\"ingredients\"] as $ingr) {\n //we need to know if the ingredient is already in the DB if not, it is stored\n $ingredient_generated = Ingredient::where(\"name\", $ingr[2])->first();\n if (!$ingredient_generated) {\n $ingredient = new Ingredient;\n $ingredient->name = $ingr[2];\n $ingredient->save();\n } else {\n $ingredient = $ingredient_generated;\n $ingredient->save();\n }\n\n\n //actually filling the intermediate table ingredient_recipe (notice syntax in attach() method)\n $recipe->ingredients()->attach($ingredient->id, [\"quantity\" => $ingr[0], \"measurement\" => $ingr[1]]);\n }\n }\n }", "public function saveRecipe(Recipe $recipe)\n {\n $data = array(\n 'instructions' => $recipe->instructions,\n 'description' => $recipe->description,\n 'recipeName' => $recipe->recipeName,\n 'duration' => $recipe->duration,\n 'difficultyID' => $recipe->difficultyID,\n 'createUserID' => $recipe->createUserID,\n );\n\n $id = (int) $recipe->recipeID;\n if ($id == 0) {\n $this->tableGateway->insert($data);\n //set ID of newly inserted entity\n $id = $this->tableGateway->lastInsertValue;\n } else {\n if ($this->getRecipe($id)) {\n $this->tableGateway->update($data, array('recipeID' => $id));\n } else {\n throw new \\Exception('Recipe id does not exist');\n }\n }\n return $id;\n }", "public function run()\n {\n DB::table('recipes')->insert([\n array(\n 'user_id' => '1',\n 'video_id' => '1',\n 'category_id' => '2',\n 'featured' => 'http://206.189.33.253/storage/features/loaf_o.jpg',\n 'title' => 'Loaf Bread',\n 'sponge' => json_encode([\n 'Montana Spring Hard Flour 60 Bakers% or 600g',\n 'Instant Yeast 0.8 Bakers% or 8g',\n 'Water 60 Bakers% or 360g',\n ]),\n 'dough' => json_encode([\n 'Montana Spring Hard Flour 40 Bakers% or 400g',\n 'Water 48 Bakers% or 120g',\n 'Instant Yeast 0.2 Bakers% or 2g',\n 'Skim Milk 0.4 Bakers% or 40g',\n 'Salt 1.5 Bakers% or 15g',\n 'Sugar 16 Bakers% or 15g',\n 'Shortening 4 Bakers% or 40g',\n 'Bread Improver 0.4 Bakers% or 4g'\n ]),\n 'procedure' => json_encode([\n 'To make the sponge: In a small bowl, combine Montana Hard Flour and instant yeast. In the bowl of the mixer with the spiral attachment, mix the blended flour and yeast with water. Knead on speed 1 to combine. Place the kneaded dough in a lightly greased bowl, cover with plastic wrap and set aside to ferment for 3 hours.',\n 'To make the dough: In a small bowl, combine Montana Hard Flour, instant yeast, bread improver and skim milk powder and set aside. In separate bowl, dissolve salt and sugar in water. In the bowl of the mixer, place the combined dry ingredients and the sugar and salt solution and mix with the spiral attachment and add the sponge gradually and the shortening to combine and knead on speed 2 until the dough is smooth and elastic, about 10 to 12 minutes.',\n 'Place the kneaded dough in a lightly greased bowl, cover with plastic wrap and allow to rest for 10 minutes',\n 'While resting, grease the loaf bread molder ',\n 'Divide the dough into 700 grams, round, sheet and shape it into a log. Place it in a lightly greased 15”x4.0”x3.5” loaf pan.',\n 'Cover the pan, and let the dough rise for 1 hour and 30 minutes, till it’s 1” under the rim of the pan. Towards the end of the rising time, preheat the oven to 150˚C.',\n 'Bake the bread for 35 to 45 minutes',\n 'Remove the bread from the oven, and turn it out onto a rack to cool. When completely cool, wrap in plastic and store at room temperature.',\n ]),\n 'created_at' => Carbon\\Carbon::now(),\n 'updated_at' => Carbon\\Carbon::now(),\n ),\n array(\n 'user_id' => '1',\n 'video_id' => '2',\n 'category_id' => '2',\n 'featured' => 'http://206.189.33.253/storage/features/whole_wheat_o.jpg',\n 'title' => 'Whole Wheat Bread',\n 'sponge' => json_encode([\n 'Montana Spring Hard Flour 70 Bakers% or 700g',\n 'Instant Yeast 1.5 Bakers% or 15g',\n 'Water 60 Bakers% or 420g',\n ]),\n 'dough' => json_encode([\n 'Whole Wheat Flour 30 Bakers% or 300g',\n 'Water 48 Bakers% or 60g',\n 'Salt 1.5 Bakers% or 15g',\n 'Brown Sugar 8 Bakers% or 80g',\n 'Honey 6 Bakers% or 60g',\n 'Shortening 4 Bakers% or 40g',\n 'Milk Powder 4 Bakers% or 40g',\n 'Molasses 2 Bakers% or 20g',\n 'Improver 0.4 Bakers% or 4g'\n ]),\n 'procedure' => json_encode([\n 'To make the sponge: In a small bowl, combine Montana Hard Flour and instant yeast. In the bowl of the mixer with the spiral attachment, mix the blended flour and yeast with water. Knead on speed 1 to combine. Place the kneaded dough in a lightly greased bowl, cover with plastic wrap and set aside to ferment for 3 hours.',\n 'To make the dough: In a small bowl, combine Best Quality Whole Wheat Flour, bread improver and skim milk powder and set aside. In separate bowl, dissolve brown sugar and salt in water and add the molasses and honey. In the bowl of the mixer, place the combined dry ingredients and the sugar and salt solution with molasses and honey then mix with the spiral attachment and add the sponge gradually and the shortening to combine and knead on speed 2 until the dough is smooth and elastic, about 8 to 10 minutes.',\n 'Place the kneaded dough in a lightly greased bowl, cover with plastic wrap and allow to rest for 10 minutes',\n 'While resting, grease the loaf bread molder',\n 'Divide the dough into 550 grams, round, sheet and shape it into a log. Place it in a lightly greased 12”x3.5”x3” loaf pan and brush it with egg wash then sprinkle it with oatmeal.',\n 'Let the dough rise for 1 hour and 30 minutes. Towards the end of the rising time, preheat the oven to 150˚C.',\n 'Bake the bread for 35 to 45 minutes.',\n 'Remove the bread from the oven, and turn it out onto a rack to cool. When completely cool, wrap in plastic and store at room temperature.',\n ]),\n 'created_at' => Carbon\\Carbon::now(),\n 'updated_at' => Carbon\\Carbon::now(),\n ),\n array(\n 'user_id' => '1',\n 'video_id' => '3',\n 'category_id' => '2',\n 'featured' => 'http://206.189.33.253/storage/features/french_bread_o.jpg',\n 'title' => 'French Bread',\n 'sponge' => json_encode([\n 'empty'\n ]),\n 'dough' => json_encode([\n 'Montana Spring Hard Flour 100 Bakers% or 1000g',\n 'Water 57 Bakers% or 570g',\n 'Instant Yeast, Low Sugar 1.0 Bakers% or 10g',\n 'White Sugar 1.0 Bakers% or 10g',\n 'Salt 2.0 Bakers% or 20g',\n 'Improver 0.6 Bakers% or 6g',\n ]),\n 'procedure' => json_encode([\n 'In a small bowl, combine Montana Hard Flour, instant yeast, and bread improver and set aside. In separate bowl, dissolve salt and sugar in water. In the bowl of the mixer, place the combined dry ingredients and the sugar and salt solution and mix with the spiral attachment and the shortening to combine and knead on speed 2 until the dough is smooth and elastic, about 10 to 12 minutes.',\n 'Place the kneaded dough in a lightly greased bowl, cover with plastic wrap and allow to ferment for 1 hour.',\n 'While fermenting, grease the French bread molder ',\n 'Divide the dough into 300 grams, pre-mold the dough, allows to rest for 15 minutes. ',\n 'Sheet and shape it into a log. Place it in a lightly greased french bread molder.',\n 'Let the dough rise for 1 hour and 30 minutes. Towards the end of the rising time, preheat the oven to 200˚C.',\n 'Bake the bread for 20 to 25 minutes with steam for the first 10 seconds of baking.',\n 'Remove the bread from the oven, and turn it out onto a rack to cool. When completely cool, wrap in plastic and store at room temperature.',\n ]),\n 'created_at' => Carbon\\Carbon::now(),\n 'updated_at' => Carbon\\Carbon::now(),\n ),\n array(\n 'user_id' => '1',\n 'video_id' => '4',\n 'category_id' => '2',\n 'featured' => 'http://206.189.33.253/storage/features/burger_o.jpg',\n 'title' => 'Burger Buns',\n 'sponge' => json_encode([\n 'empty'\n ]),\n 'dough' => json_encode([\n 'Montana Spring Hard Flour 100 Bakers% or 1000g',\n 'Water 50 Bakers% or 500g',\n 'Instant Yeast 1 Bakers% or 10g',\n 'Sugar 15 Bakers% or 150g',\n 'Salt 1.5 Bakers% or 15g',\n 'Milk Powder 4 Bakers% or 40g',\n 'Bread Improvers 0.4 Bakers% or 4g',\n 'Shortening 8 Bakers% or 80g'\n ]),\n 'procedure' => json_encode([\n 'In a small bowl, combine Montana Hard Flour, instant yeast, bread improver and milk powder and set aside. In separate bowl, dissolve salt and sugar in water. In the bowl of the mixer, place the combined dry ingredients and the sugar and salt solution and mix with the spiral attachment and the shortening to combine and knead on speed 2 until the dough is smooth and elastic, about 10 to 12 minutes.',\n 'Place the kneaded dough in a lightly greased bowl, cover with plastic wrap and allow to rest for 10 minutes',\n 'While resting, grease the burger buns molder.',\n 'Divide the dough into 50 grams, round. Place it in a lightly greased burger bun molder.',\n 'Cover the pan, and let the dough rise for 1 hour. Towards the end of the rising time, preheat the oven to 170˚C.',\n 'Bake the bread for 12 to 15 minutes.',\n 'Remove the bread from the oven, and turn it out onto a rack to cool. When completely cool, wrap in plastic and store at room temperature.',\n ]),\n 'created_at' => Carbon\\Carbon::now(),\n 'updated_at' => Carbon\\Carbon::now(),\n ),\n ]);\n }", "public function run()\n {\n DB::table('ingredient')->insert([\n [\n 'recipe_id' => 1,\n 'ingredient_name' => 'ほうれん草',\n 'ingredient_detail' => '2束',\n 'ingredient_num' => 1,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n [\n 'recipe_id' => 1,\n 'ingredient_name' => '人参',\n 'ingredient_detail' => '1/2本',\n 'ingredient_num' => 2,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n [\n 'recipe_id' => 1,\n 'ingredient_name' => '卵',\n 'ingredient_detail' => '2個',\n 'ingredient_num' => 3,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n [\n 'recipe_id' => 1,\n 'ingredient_name' => 'マヨネーズ',\n 'ingredient_detail' => '大さじ1/2',\n 'ingredient_num' => 4,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n [\n 'recipe_id' => 1,\n 'ingredient_name' => 'ごま油',\n 'ingredient_detail' => '大さじ1',\n 'ingredient_num' => 5,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n [\n 'recipe_id' => 1,\n 'ingredient_name' => '鶏がらスープの素',\n 'ingredient_detail' => '小さじ1',\n 'ingredient_num' => 6,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n [\n 'recipe_id' => 1,\n 'ingredient_name' => '塩コショウ',\n 'ingredient_detail' => '適量',\n 'ingredient_num' => 7,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n ]);\n }", "public function insert() {\r\n\r\n\t\t// Does the Genre object already have an ID?\r\n\t\tif ( !is_null( $this->id ) ) trigger_error ( \"Genre::insert(): Attempt to insert an Genre object that already has its ID property set (to $this->id).\", E_USER_ERROR );\r\n\r\n\t\t// Insert the Genre\r\n\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\r\n\t\t$sql = \"INSERT INTO :table ( id, name ) VALUES ( :id, :name )\";\r\n\t\t$st = $conn->prepare ( $sql );\r\n\t\t$st->bindValue( \":table\", DB_TBL_GENRE, PDO::PARAM_STR );\r\n\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t$st->bindValue( \":name\", $this->name, PDO::PARAM_STR );\r\n\t\t$st->execute();\r\n\t\t$this->id = $conn->lastInsertId();\r\n\t\t$conn = null;\r\n\t}", "function addInstruction($recipe,$instruction){\n\t\t\t$str_query=\"INSERT INTO cuisine_instruction SET recipe_id='$recipe', instruction='$instruction'\";\n\t\t\treturn $this->query($str_query);\n\t\t}", "public function install()\n\t{\n\t\t\n\t\t$mysqli = $this->connect();\n\t\t\t\n\t\t$ingredients_setup = \"\n\t\tCREATE TABLE `\".$this->table_name.\"` (\n\t\t `recipe_id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t `recipe_title` varchar(200) DEFAULT NULL,\n\t\t `recipe_image` text,\n\t\t `recipe_desc` text,\n\t\t `ingredients` varchar(128) DEFAULT NULL,\n\t\t PRIMARY KEY (`recipe_id`)\n\t\t) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;\n\t\t\";\n\t\t\n\t\tif($q = $mysqli->query($ingredients_setup)) :\n\t\t\techo 'Created Table: ' . $this->table_name;\n\t\telse:\n\t\t\tdie('Error: Could not create table');\n\t\tendif;\n\t\t\n\t}", "public function run()\n {\n DB::table('recipes')->insert(array(\n array('id'=>'1', 'name' => 'Pasta', 'description' => '\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiatnulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\"', 'category' => 'Dinner', 'image' => 'default.png', 'users_id' => '1'),\n array('id'=>'2','name' => 'Trifle', 'description' => '\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiatnulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\"', 'category' => 'Dessert', 'image' => 'default.png', 'users_id' => '1'),\n array('id'=>'3','name' => 'Pizza', 'description' => '\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiatnulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\"', 'category' => 'Dinner', 'image' => 'default.png', 'users_id' => '1'),\n\n ));\n }", "public function run()\n {\n DB::insert(\"INSERT INTO ingredients (id, name, measurement, category) VALUES (1,'Coconut Oil','tbsp',6),(2,'Onion(s)','',1),(3,'Garlic','cloves',1),(4,'Tomato(es)','',1),(5,'Oregano','tbsp',6),(6,'Olive Oil','tsp',6),(7,'Minced Beef','g',2),(8,'Beef Stock','cube(s)',6),(9,'Tomato Puree','tbsp',6),(10,'Lasagne Sheet(s)','',3),(14,'Tomato Ketchup','tbsp',6),(15,'Brown Penne Pasta','g',3),(16,'Parmesan Cheese','',4),(17,'Chicken Breast(s)','',2),(18,'Margarine','g',4),(19,'Curry Powder','tsp',6),(20,'Caster Sugar','tsp',6),(21,'Mustard Powder','tsp',6),(22,'Plain Flour','g',3),(23,'Sweet Chutney','tbsp',6),(24,'Worcestershire Sauce','tbsp',6),(25,'Rice','g',3),(26,'Red Pepper(s)','',1),(27,'Spring Onion(s)','',1),(28,'Beansprout(s)','g',1),(29,'Noodles','g',3),(30,'Oyster Sauce','tbsp',6),(31,'Canned Chopped Tomatoes','g',1),(32,'Red Wine','ml',6),(34,'Fast Action Yeast','g',3),(35,'Extra-Virgin Olive Oil','tbsp',6),(38,'Cheddar Cheese','g',4),(39,'Pizza Toppings','',6),(40,'Water','ml',5),(41,'Soy Sauce','tbsp',6),(42,'Sesame Oil','tsp',6),(43,'Fresh ginger','tsp',1),(44,'Sirloin Steak','g',2),(45,'Sesame Seeds','tbsp',3),(46,'Carrot(s)','',1),(47,'Mangetout','g',1),(48,'Mushrooms','g',1),(49,'Hoisin Sauce','tbsp',6),(50,'Garlic Butter','g',6),(51,'Breadcrumbs','g',3),(52,'New Potato(es)','',3),(53,'Peas','g',1),(54,'Baby Corn','',1),(55,'Wholemeal Wrap','',3),(56,'Cooked Chicken','g',2),(57,'Roasted Red Pepper','',1),(58,'Spinach','handful(s)',1),(59,'Wholemeal Flatbread','',3),(60,'Yellow Pepper(s)','',1),(61,'Leafy Salad','',1),(62,'Ground Black Pepper','',6),(63,'Chilli Flakes','',1),(64,'Sour Cream','tbsp',6),(65,'Broccoli','',1),(66,'Honey','tsp',4),(67,'Chinese 5 Spices','tsp',6),(68,'Sweetcorn','g',1),(69,'Sweet Potato(es)','',3),(70,'Potato(es)','',3),(71,'Mixed Herbs','',6),(72,'Pork Chop(s)','',2),(73,'Apple Sauce','tbsp',6),(74,'Mustard','tsp',1),(75,'Milk','ml',4),(76,'Kidney Beans','g',2),(77,'Brown Rice','g',3),(78,'Baby Carrots','',1),(79,'Bacon Rasher(s)','',2),(80,'Cajun Spice','g',6),(81,'Granary Bread','Slice(s)',3),(82,'Haddock Fillet(s)','',2),(83,'Butter/Margarine','g',4),(84,'Turkey Mince','g',2),(85,'Yoghurt','tbsp',4),(86,'Cayenne Pepper','g',1),(87,'Paprika','g',6),(88,'Dried Parsley','tsp',1),(89,'Tabasco Sauce','tsp',6),(90,'Burger Bun(s)','',3)\");\n }", "public function run()\n {\n DB::table('type_recipes')->insert([\n ['name' => 'Entrée'],\n ['name' => 'Plat'],\n ['name' => 'Dessert'],\n ['name' => 'Accompagnement'],\n ['name' => 'Amuse-bouche'],\n ['name' => 'Boisson'],\n ['name' => 'Confiserie'],\n ['name' => 'Sauce'],\n ['name' => 'Astuce'],\n ]);\n }", "function buildIngredientRecipe($ingredientName, $recipeName, $quantity) {\n global $conn;\n // Determine ingredientID\n $sql = \"SELECT ingredientID FROM ingredient WHERE ingredientName='\" . $ingredientName . \"'\";\n $result = $conn->query($sql);\n $record = $result->fetch_assoc();\n $ingredientID = $record['ingredientID'];\n\n // Determine recipeID\n $sql = \"SELECT recipeID FROM recipe WHERE recipeName='\" . $recipeName . \"'\";\n $result = $conn->query($sql);\n $record = $result->fetch_assoc();\n $recipeID = $record['recipeID'];\n\n // Check to make sure ingredient isn't already in the recipe\n $sql = \"SELECT recipeID FROM ingredientRecipe WHERE recipeID = \" . $recipeID\n . \" AND ingredientID = \" . $ingredientID;\n if ($result = $conn->query($sql)) {\n // determine number of rows result set\n $rowCount = $result->num_rows;\n if($rowCount > 0) {\n echo \"Ingredient \" . $ingredientID\n . \" is already in recipe \"\n . $recipeID . \"<br />\";\n } else { // Not a duplicate\n $sql = \"INSERT INTO ingredientRecipe (recipeID, ingredientID, quantity)\n VALUES ('\" . $recipeID . \"', '\" . $ingredientID . \"', '\" . $quantity . \"')\";\n runQuery($sql, \"Insert ingredient \" . $ingredientID . \" into recipe \" . $recipeID, true);\n }\n }\n }", "public function insert()\n\t{\n\t\t$crud = $this->crud->data([\n\t\t\t'first_name' => $_POST['first_name'],\n\t\t\t'last_name' => $_POST['last_name'],\n\t\t]);\n\t\t$crud->insert();\n\t\t$this->redirect('crud');\n\t}", "protected function insert()\n\t{\n\t\t$this->autofill();\n\n\t\tparent::insert();\n\n\t}", "public function addAction(){\n\t\t$recipe = new Recipe();\n\t\t\n\t\t//adding meal\n\t\tif ($this->_request->isPost()) {\n\t\n\t\t\t$data = $this->_validateRecipe();\n\t\t\t//if no errors validating fields add recipe\n\t\t\tif ($this->view->errorMsg == null) {\n\t\t\t\t//make sure recipe with this name does not already exist\n\t\t\t\t$where = array(\n\t\t\t\t\t$recipe->getAdapter()->quoteInto('user_id = ?', $this->session->user_id),\n\t\t\t\t\t$recipe->getAdapter()->quoteInto('title = ?', $data['recipe']['title']),\n\t\t\t\t\t'status is null'\n\t\t\t\t);\n\t\t\t\t$recipe_row = $recipe->fetchRow($where);\n\t\t\t\tif($recipe_row != null){\n\t\t\t\t\t$this->view->errorMsg = 'Meal \"'.$data['recipe']['title'].'\" already exists, please use a different title.';\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t\t//add recipe\n\t\t\t\t\t$recipe_id = $recipe->insert($data['recipe']);\n\t\t\t\t\t$recipe->recipe_id = $recipe_id;\n\t\t\t\t\t\n\t\t\t\t\t//add ingredients and quantities\n\t\t\t\t\t$this->_saveRecipexQuantityxIngredient($recipe_id, $data); \n\t\t\n\t\t\t\t\t//if successful, redirect to meals page\n\t\t\t\t \t$this->_redirect($this->baseUrl.'/meals');\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t$this->view->recipe_data = $data;\t\t\n\t\t}\n\t\n\n\t\t//populate amounts and ingredients for autocomplete textfields (COPY&PASTE = YUCK!)\n \t$ingredient_arr = array();\n \t$ingredient = new Ingredient();\n \t\n\t\t//$ingredient_rs = $ingredient->fetchAll();\n\t\t//select only ingredients of a single user\n\t\t$select = $ingredient->select()->setIntegrityCheck(false);\n\t\t$select\n\t\t\t->distinct()\n\t\t\t->from('ingredient')\n\t\t\t->join('recipexquantityxingredient', 'ingredient.ingredient_id = recipexquantityxingredient.ingredient_id', array()) //empty array will choose no columns from the joined table\n\t\t\t->join('recipe', 'recipexquantityxingredient.recipe_id = recipe.recipe_id', array())\n\t\t\t->join('user', 'recipe.user_id = user.user_id', array())\n\t\t\t->where(\"user.user_id = '\".$this->session->user_id.\"'\");\n\t\t$ingredient_rs = $ingredient->fetchAll($select);\n\t\t\n\t\t$i = 0;\n\t\twhile($ingredient_rs->valid()){\n\t\t\t$ingredient = $ingredient_rs->current();\n\t\t\t$ingredient_arr[$i] = $ingredient->name;\n\t\t\t$i++;\n\t\t\t$ingredient_rs->next();\n\t\t}\n \t$this->view->ingredient_data = $ingredient_arr;\n\t\n \t$amount_arr = array();\n \t$quantity = new Quantity();\n \t//select only quantities of a single user\n \t//$quantity_rs = $quantity->fetchAll();\n \t$select = $quantity->select()->setIntegrityCheck(false);\n \t$select\n \t->distinct()\n \t->from('quantity')\n \t->join('recipexquantityxingredient', 'quantity.quantity_id = recipexquantityxingredient.quantity_id', array()) //empty array will choose no columns from the joined table\n \t->join('recipe', 'recipexquantityxingredient.recipe_id = recipe.recipe_id', array())\n \t->join('user', 'recipe.user_id = user.user_id', array())\n \t->where(\"user.user_id = '\".$this->session->user_id.\"'\");\n \t$quantity_rs = $quantity->fetchAll($select);\n \t\n\t\t$i = 0;\n\t\twhile($quantity_rs->valid()){\n\t\t\t$amount = $quantity_rs->current();\n\t\t\tif($amount->measure != null) $amount_arr[$i] = $this->_convertd2f($amount->amount).' '.$amount->measure;\n\t\t\telse $amount_arr[$i] = $amount->amount;\n\t\t\t$i++;\n\t\t\t$quantity_rs->next();\n\t\t}\n \t$this->view->amount_data = $amount_arr;\n \t\n \t\n \t\n \t// additional view fields required by form\n\t\t$this->view->action = 'add';\n }", "public function run()\n {\n DB::table('cars')->insert($this->getSeeds());\n }", "public function store(Request $request)\n {\n $id = \\DB::transaction(function() use($request) {\n $recipe = new Recipe($request->all());\n $recipe->user_id = \\Auth::id();\n $recipe->save();\n\n $ingredientLists = $request->get(\"ingredientLists\");\n foreach($ingredientLists as $list) {\n if($list[\"name\"] === null) {\n $list[\"name\"] = \"\";\n }\n $ingredientList = new RecipeIngredientList($list);\n $ingredientList->recipe_id = $recipe->id;\n $ingredientList->save();\n\n foreach($list[\"ingredients\"] as $ingredient) {\n $ingr = new RecipeIngredient($ingredient);\n $ingr->recipe_ingredient_list_id = $ingredientList->id;\n $ingr->save();\n }\n }\n\n $steps = $request->get(\"steps\");\n foreach($steps as $step) {\n if($step[\"title\"] === null) {\n $step[\"title\"] = \"\";\n }\n $recipeStep = new RecipeStep($step);\n $recipeStep->recipe_id = $recipe->id;\n $recipeStep->save();\n }\n\n return $recipe->id;\n });\n\n return response()->json($id);\n }", "function insert() {\n\t\t$sql = \"INSERT INTO lessons\n\t\t\t\tVALUES (?, ?, ?, ?, ?)\";\n\t\t\n\t\t$this->db->query($sql, array($this->lessons_id, $this->name, $this->date, $this->active, $this->rank));\n\t\t$this->last_insert_id = $this->db->insert_id();\t\t\n\t\t\n\t}", "public function run()\n {\n \n DB::table('recipes')->insert([\n 'name'=> 'Corned Beef & CabbageCorned Beef & Cabbage',\n 'source'=> 'That is the traditional beef in New England.',\n 'preparation_time'=> '10',\n 'instructions'=> 'Place brisket in a large Dutch oven and cover withwater. Add spice packet, bay leaves, and thyme and place on medium-high heat. Bring to a boil, then reduce to a simmer. Cook until tender, checking every 30 minutes and adding water if needed, until beef is tender, about 3 hours. Add potatoes and carrots and bring back up to a boil. Cook for 15 minutes, then add cabbage and boil 5 minutes more. Remove meat and drain vegetables. Let meat rest 10 minutes before slicing.',\n 'hour'=> '01'\n\n ]);\n }", "public function run()\n {\n //\n DB::table('orders')->insert([\n [\n 'name' => 'Pancakes',\n \t'recipe_id' => 1, ],\n [\n \t'name' => 'Donuts',\n \t'recipe_id' => 2,\n ],\n [\n 'name' => 'Cakey',\n 'recipe_id' => 1,\n ]\n ]);\n }", "public function run()\n {\n $path = public_path() . '/../database/recipe-data.csv';\n $parser = new Parser();\n $csv = $parser->toArray($path);\n\n foreach ($csv as $row) {\n DB::table('recipes')->insert($row);\n }\n }", "public function store(Request $request, $recipe_id)\n {\n $instruction = new Instruction;\n $instruction->recipe_id = $recipe_id;\n $instruction->description = $request->description;\n $instruction->save();\n\n \n }", "public function insert() {\n\t\ttry {\n\t\t\t$this->validateInsert();\n\n\t\t\tif (!$this->id) {\n\t\t\t\t$this->id = $this->context->connection->generateId();\n\t\t\t}\n\n\t\t\t$sth = $this->context->connection->prepare(\n\t\t\t\t\"INSERT INTO list_item_definition (\n\t\t\t\t\tinstance_id, list_item_definition_id, sequence_no, application_definition_id,\n\t\t\t\t\tpage_definition_id, title, icon, php_key, title_width,\n\t\t\t\t\ttitle_label\n\t\t\t\t) VALUES (\n\t\t\t\t\t:instId, :id, 0, :appDefId,\n\t\t\t\t\t:pageDefId, :title, :icon, :phpSelector, :titleWidth,\n\t\t\t\t\t:titleLabel\n\t\t\t\t)\");\n\n\t\t\t$this->context->connection->bindInstance($sth);\n\t\t\t$sth->bindValue(\":id\", $this->id, \\PDO::PARAM_INT);\n\t\t\t$sth->bindValue(\n\t\t\t\t\":appDefId\", $this->applicationDefinitionId, \\PDO::PARAM_INT);\n\t\t\t$sth->bindValue(\n\t\t\t\t\":pageDefId\", $this->pageDefinitionId, \\PDO::PARAM_INT);\n\t\t\t$sth->bindValue(\":title\", $this->title, \\PDO::PARAM_STR);\n\t\t\t$sth->bindValue(\":icon\", $this->icon, \\PDO::PARAM_STR);\n\t\t\t$sth->bindValue(\n\t\t\t\t\":phpSelector\", $this->phpSelector, \\PDO::PARAM_STR);\n\t\t\t$sth->bindValue(\":titleWidth\", $this->titleWidth, \\PDO::PARAM_INT);\n\t\t\t$sth->bindValue(\":titleLabel\", $this->titleLabel, \\PDO::PARAM_STR);\n\n\t\t\t$sth->execute();\n\n\t\t\t\\Scrivo\\SequenceNo::position($this->context, \"list_item_definition\",\n\t\t\t\t\"application_definition_id\", $this->id, \\Scrivo\\SequenceNo::MOVE_LAST);\n\n\t\t} catch(\\PDOException $e) {\n\t\t\tthrow new \\Scrivo\\ResourceException($e);\n\t\t}\n\t}", "public function run()\n {\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '0',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => '2 Row Malt',\n\t\t]);\n\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Munich Malt',\n\t\t]);\n\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Wheat Malt',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Dextrin Malt',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Rye Malt',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Black Patent',\n\t\t]);\n\t\t\n\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Chocolate Malt',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Crystal Malt 120L',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Crystal Malt 150L',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Crystal Malt 20L',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Crystal Malt 40L',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Crystal Malt 80L',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Roast Barley 350L',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Roast Barley 500L',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Special Roast 50L',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Victory Malt',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'America',\n\t\t\t'name' => 'Wheat Berries',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Flaked',\n\t\t\t'name' => 'Flaked Barley',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Flaked',\n\t\t\t'name' => 'Flaked Maize',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Flaked',\n\t\t\t'name' => 'Flaked Oats',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Flaked',\n\t\t\t'name' => 'Flaked Rice',\n\t\t]);\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Flaked',\n\t\t\t'name' => 'Rice Hulls',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Flaked',\n\t\t\t'name' => 'Flaked Rye',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Flaked',\n\t\t\t'name' => 'Flaked Wheat',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Belgian',\n\t\t\t'name' => 'Aromatic Malt',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Belgian',\n\t\t\t'name' => 'Biscuit',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Belgian',\n\t\t\t'name' => 'CaraMunich 55L',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Belgian',\n\t\t\t'name' => 'CaraVienne 35L',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Belgian',\n\t\t\t'name' => 'Pils Malt',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Belgian',\n\t\t\t'name' => 'Special B',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Belgian',\n\t\t\t'name' => 'Kiln Coffee Malt',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'British',\n\t\t\t'name' => 'Amber Malt',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'British',\n\t\t\t'name' => 'British Crystal 55L',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'British',\n\t\t\t'name' => 'Brown Malt',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'British',\n\t\t\t'name' => 'Carastan 35L',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'British',\n\t\t\t'name' => 'Pale Malt',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'British',\n\t\t\t'name' => 'Peated Malt',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'British',\n\t\t\t'name' => 'Torrified Wheat',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Canadian',\n\t\t\t'name' => 'Gambrinus Pale',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'Canadian',\n\t\t\t'name' => 'Honey Malt',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'German',\n\t\t\t'name' => 'Acidulated Malt',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'German',\n\t\t\t'name' => 'Carafa Malt',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'German',\n\t\t\t'name' => 'Cara Rye',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'German',\n\t\t\t'name' => 'Cara Wheat',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'German',\n\t\t\t'name' => 'Chocolate Rye',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'German',\n\t\t\t'name' => 'Chocolate Wheat',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'German',\n\t\t\t'name' => 'Caramel Pils Carafoam',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'German',\n\t\t\t'name' => 'Carahell Light Chrystal 10L',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'German',\n\t\t\t'name' => 'Caramunich 55L',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'German',\n\t\t\t'name' => 'Melanoidin Malt',\n\t\t]);\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'German',\n\t\t\t'name' => 'Pils Malt Weyermann',\n\t\t]);\t\t\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '1',\n\t\t\t'grain_type' => 'German',\n\t\t\t'name' => 'Vienna Malt',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Amarillo',\n\t\t]);\n\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Cascade',\n\t\t]);\n\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Centennial',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Chinook',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Citra',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Columbus',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Chrystal',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Saaz',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Fuggles',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Golding',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Hallertauer',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Liberty',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Magnum',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Mosaic',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Mt. Hood',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Nor. Brewer',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Nugget',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Perle',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Simcoe',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Sorachi Ace',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Sterling',\n\t\t]);\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Tettnanger',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Warrior',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '2',\n\t\t\t'name' => 'Willamette',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Ale Yeast-Belgian Saison',\n\t\t]);\n\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Ale Yeast-CDC Cask Conditioning',\n\t\t]);\n\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Ale Yeast-Muntons',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Ale Yeast-Nottingham',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Ale Yeast-Safale 04',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Ale Yeast-Safale 05 Amer Ale',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Ale Yeast-Safbrew 06 Wheat',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Ale Yeast-Windsor',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Lager Yeast-Vierka',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1007-Ale German',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1010-Am Wheat',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1028-Ale London',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1056-Ale American',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1084-Ale Irish',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1098-Ale British',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1214-Belgian Abbey',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1272-American II',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1275-Thames Valley Ale',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1318-London III',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1332-Northwest',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1388-Bel Strong',\n\t\t]);\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1728-Scottish Ale',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 1968-London Spec',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 2007-Lager Pilsner',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 2035-Lager American',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 2112-Lager California',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 2124-Lager Bohemian',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 2206-Lager Bavarian',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 2308-Lager Munich',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 2565-Kolsch',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 3056-Bav. Wheat',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 3068-Wheinstephen',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast 3944-Belgian White',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '3',\n\t\t\t'name' => 'Wyeast Pacman-Rogue',\n\t\t]);\t\t\t\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '4',\n\t\t\t'name' => 'Candi Sugar-Clear',\n\t\t]);\n\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '4',\n\t\t\t'name' => 'Candi Sugar-Dark',\n\t\t]);\n\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '4',\n\t\t\t'name' => 'Candi Sugar Liquid 180L',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '4',\n\t\t\t'name' => 'Candi Sugar Liquid 45L',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '4',\n\t\t\t'name' => 'Candi Sugar Liquid 90L',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '4',\n\t\t\t'name' => 'Candi Sugar Liquid 1-Simplicity',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '4',\n\t\t\t'name' => 'Corn Sugar',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '4',\n\t\t\t'name' => 'Wildflower Honey',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '4',\n\t\t\t'name' => 'Lactose',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '4',\n\t\t\t'name' => 'Malto-Dextrin',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '4',\n\t\t\t'name' => 'Rice Syrup-Solid',\n\t\t]);\t\n\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => '5.2 ph Stabilizer',\n\t\t]);\n\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => '5.2 ph Stabilizer',\n\t\t]);\n\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Amylase Enzyme',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Bitter Orange Peel',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Brewing Salts-Burton',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Cacao Nibs',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Calcium Chloride',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Carbonation Drops',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Cinnamon Stick',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Clarity Firm',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Coriander Seed',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Elderberries-Dried',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Elderflowers',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'FermCap',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Dried Ginger',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Grapefruit Peel',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Gypsum',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Heading Powder',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Heather Tips',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Irish Moss Flakes',\n\t\t]);\n\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Dry Isinglass Finings',\n\t\t]);\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Juniper Berries',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Lactic Acid',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Lemon Peel',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Brewers Licorice',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Dried Licorice Root',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Lime Peel',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Paradise Seed',\n\t\t]);\t\t\t\n\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Indian Sarsaparilla',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Spruce Essence',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Star Anise',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Sweet Orange Peel',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Vanilla Bean',\n\t\t]);\t\t\t\n\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Whirlfloc',\n\t\t]);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Wintergreen Leaves',\n\t\t]);\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tDB::table('ingredients')->insert([\n\t\t\t'created_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'updated_at' => Carbon\\Carbon::now()->toDateTimeString(),\n\t\t\t'type' => '5',\n\t\t\t'name' => 'Wormwood',\n\t\t]);\t\n\t}", "public function insert()\n {\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $columlList = \" (\";\n $valuelList = \" (\";\n foreach ($this->attributes as $column => $value) {\n $columlList .= $column . \", \";\n $valuelList .= \":\".$column . \", \";\n }\n $columlList = str_last_replace(\", \", \")\", $columlList);\n $valuelList = str_last_replace(\", \", \")\", $valuelList);\n $sqlQuery = \"INSERT INTO \" . $this->table . $columlList . \" VALUES\" . $valuelList;\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n #println($sqlQuery, \"blue\");\n }\n }", "public function insert($attributes);", "public function save($recipe){\n\n $success = false;\n if($recipe->getId() && $this->find($recipe->getId()))\n {\n $success = $this->update($recipe);\n }\n else {\n $success = $this->insert($recipe);\n }\n\n return $success;\n }", "public function run()\n {\n DB::table('ingredients')->insert([\n\n\n //Dairy\n\n\n ['ingredient' => 'Butter',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Egg',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Milk',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Parmesan',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Cheddar',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Sour cream',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Cream cheese',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Mozzarella',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Cream',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Butter Milk',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Feta',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Ricotta',\n 'category_id' => '1'\n ],\n ['ingredients' => 'grated cheese',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Goat cheece',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Powdered milk',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Brie',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Ghee',\n 'category_id' => '1'\n ],\n ['ingredients' => 'Creme fraiche',\n 'category_id' => '1'\n ],\n ['ingredient' => 'Mascarpone',\n 'category_id' => '1'\n ],\n ['ingredient' => 'Halloumi',\n 'category_id' => '1'\n ],\n ['ingredient' => 'Paneer',\n 'category_id' => '1'\n ],\n [ 'ingredient' => 'Margarine',\n 'category_id' => '1'\n ],\n [ 'ingredient' => 'Coconut milk',\n 'category_id' => '1'\n ],\n [ 'ingredient' => 'Almond milk',\n 'category_id' => '1'\n ],\n [ 'ingredient' => 'Soy milk',\n 'category_id' => '1'\n ],\n [ 'ingredient' => 'Rice milk',\n 'category_id' => '1'\n ],\n [ 'ingredient' => 'Hemp milk',\n 'category_id' => '1'\n ],\n [ 'ingredient' => 'Non dairy creamer',\n 'category_id' => '1'\n ],\n\n //Vegetables\n\n\n ['ingredient' => 'Onion',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Garlic',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Tomato',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Potato',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Carrot',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Bell pepper',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Basil',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Parsley',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Broccoli',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Corn',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Spinach',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Mushroom',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Green beans',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Ginger',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Chilli pepper',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Celery',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Rosemary',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Salad green',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Cucumber',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Pickle',\n 'category_id' => '2'\n ],\n ['ingredient' => 'avocado',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Zucchini',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Cilantro',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Olive',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Asparagus',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Cabbage',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Cauliflower',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Dill',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Kale',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Mixed vegetable',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Pumpkin',\n 'category_id' => '2'\n ],\n ['ingredient' => 'squash',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Mint',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Scallion',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Shallot',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Eggplant',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Beet',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Butternut squash',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Horseradish',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Leek',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Caper',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Brussels Sprout',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Artichoke heart',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Chia seeds',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Radish',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Sauerkraut',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Artichoke',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Sweet pepper',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Arugula',\n 'category_id' => '2'\n ],\n ['ingredient' => 'spaghetti squash',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Capsicum',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Bok Choy',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Okra',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Yam',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Fennel',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Snow peas',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Bean sprouts',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Seaweed',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Chard',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Collard',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Piniento',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Watercress',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Tomatillo',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Rocket',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Mustard greens',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Endive',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Jicama',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Kohlrabi',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Butternut',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Celery root',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Daikon',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Radicchio',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Porcini',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Cress',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Water chestnut',\n 'category_id' => '2'\n ],\n\n ['ingredient' => 'Dulse',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Micro greens',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Burdock',\n 'category_id' => '2'\n ],\n ['ingredient' => 'Chayote',\n 'category_id' => '2'\n ],\n\n\n //Fruits\n\n\n ['ingredient' => 'Lemon',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Apple',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Banana',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Lime',\n 'category_id' => '3'\n ],\n ['ingredient' => 'strawberry',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Orange',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Pineapple',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Blueberry',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Raisin',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Coconut',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Grape',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Peach',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Raspberry',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Cranberry',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Mango',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Pear',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Blackberry',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Cherry',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Date',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Watermelon',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Berries',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Kiwi',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Grapefruit',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Mandarin',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Craisins',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Cantaloupe',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Plum',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Apricot',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Clementine',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Prunes',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Apple butter',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Pomegranate',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Nectarine',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Fig',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Tangerine',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Papaya',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Rhubarb',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Sultanas',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Plantain',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Currant',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Passion fruit',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Guava',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Persimmons',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Lychee',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Lingonberry',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Tangelos',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Kumquat',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Boysenberry',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Star fruit',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Quince',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Honeydew',\n 'category_id' => '3'\n ],\n ['ingredient' => 'Crabapples',\n 'category_id' => '3'\n ],\n\n\n //Backing and Grains\n\n\n [ 'ingredient' => 'Rice',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Pasta',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Flour',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Bread',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Baking powder',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Baking soda',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Bread crumbs',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Cornstarch',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Rolled oats',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Noodle',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Flour tortillas',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Pancake mix',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Yeast',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Cracker',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Quinoa',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Brown rice',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Cornmeal',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Self rising flour',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Cake mix',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Saltines',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Popcorn',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Macaroni cheese mix',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Corn tortillas',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Ramen',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Cereal',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Biscuits',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Stuffing mix',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Couscous',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Pie crust',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Bisquick',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Chips',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Angel hair',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Coconut flake',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Bread flour',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Croutons',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Lasagne',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Pizza dough',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Bagel',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Puff pastry',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Hot dog bun',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Barley',\n 'category_id_id' => '4'\n ],\n [ 'ingredient' => 'Multigrain bread',\n 'category_id_id' => '4'\n ],\n [ 'ingredient' => 'Potato flakes',\n 'category_id_id' => '4'\n ],\n [ 'ingredient' => 'Pretzel',\n 'category_id_id' => '4'\n ],\n [ 'ingredient' => 'Cornbread',\n 'category_id_id' => '4'\n ],\n [ 'ingredient' => 'English muffin',\n 'category_id_id' => '4'\n ],\n [ 'ingredient' => 'Cornflour',\n 'category_id_id' => '4'\n ],\n [ 'ingredient' => 'Crescent roll dough',\n 'category_id_id' => '4'\n ],\n [ 'ingredient' => 'Cream of wheat',\n 'category_id_id' => '4'\n ],\n [ 'ingredient' => 'Coconut flour',\n 'category_id_id' => '4'\n ],\n [ 'ingredient' => 'Pita',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Risotto',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Muffin mix',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Bicarbonate of soda',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Ravioli',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Wheat',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Rice flour',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Polenta',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Baguette',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Gnocchi',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Vermicelli',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Semolina',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Wheat germ',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Buckwheat',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Croissants',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Bread dough',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Filo dough',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Yeast flake',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Pierogi',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Matzo meal',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Rye',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Tapioca flour',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Shortcrust pastry',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Potato starch',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Breadsticks',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Ciabatta',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Spelt',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Angel food',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Tapioca starch',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Starch',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Whole wheat flour',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Gram flour',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Sourdough starter',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Wafer',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Bran',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Challah',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Sponge cake',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Malt extract',\n 'category_id' => '4'\n ],\n [ 'ingredient' => 'Sorghum flour',\n 'category_id' => '4'\n ],\n\n\n //Sweeteners\n\n\n [ 'ingredient' => 'Sugar',\n 'category_id' => '5'\n ],\n [ 'ingredient' => 'Brown sugar',\n 'category_id' => '5'\n ],\n [ 'ingredient' => 'Honey',\n 'category_id' => '5'\n ],\n [ 'ingredient' => 'Confectioners sugar',\n 'category_id' => '5'\n ],\n [ 'ingredient' => 'Maple syrup',\n 'category_id' => '5'\n ],\n [ 'ingredient' => 'Corn syrup',\n 'category_id' => '5'\n ],\n [ 'ingredient' => 'Molasses',\n 'category_id' => '5'\n ],\n [ 'ingredient' => 'Artificial sweetener',\n 'category_id' => '5'\n ],\n [ 'ingredient' => 'Agave nectar',\n 'category_id' => '5'\n ],\n\n\n //Spices\n\n\n [ 'ingredient' => 'Cinnamon',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Vanilla',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Garlic powder',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Paprika',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Oregano',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Chili powder',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Red pepper flake',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Cumin',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Cayenne',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Italian seasoning',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Thyme',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'onion powder',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Nutmeg',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Ground nutmeg',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Curry powder',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Bay leaf',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Taco seasoning',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Sage',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Clove',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Allspice',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Turmeric',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Chive',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Peppercorn',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Ground coriander',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Cajun seasoning',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Coriander',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Celery salt',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Vanilla essence',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Herbs',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Steak seasoning',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Poultry seasoning',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Chile powder',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Cardamom',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Italian herbs',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Tarragon',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Garam masala',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Marjoram',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Mustard seed',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Celery seed',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Chinese five spice',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Italian spice',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Saffron',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Onion flake',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Herbes de provence',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Chipotle',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Dill seed',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Fennel seed',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Caraway',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Cacao',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Star anise',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Savory',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Chili paste',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Tamarind',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Aniseed',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Fenugreek',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Lavender',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Old bay seasoning',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Lemon balm',\n 'category_id' => '6'\n ],\n\n // new ingredients\n [ 'ingredient' => 'Salt and Pepper',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Salt',\n 'category_id' => '6'\n ],\n [ 'ingredient' => 'Black Pepper',\n 'category_id' => '6'\n ],\n\n\n //Meats\n\n\n [ 'ingredient' => 'Chicken breast',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Ground beef',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Bacon',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Sausage',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Beef steak',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Ham',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Hot dog',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Pork chops',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Chicken thighs',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Ground turkey',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Cooked chicken',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Turkey',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Pork',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Pepperoni',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Whole chicken',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Chicken leg',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Ground pork',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Chorizo',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Chicken wings',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Beef roast',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Polish sausage',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Salami',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Pork roast',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Ground chicken',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Pork ribs',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Spam',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Venison',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Pork shoulder',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Bologna',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Bratwurst',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Prosciutto',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Lamb',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Corned beef',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Chicken roast',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Lamb chops',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Pancetta',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Ground lamb',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Beef ribs',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Duck',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Pork belly',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Beef liver',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Leg of lamb',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Canadian bacon',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Beef shank',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Veal',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Chicken giblets',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Cornish hen',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Lamb shoulder',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Lamb shank',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Ground veal',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Pastrami',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Sliced turkey',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Pork loin',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Beef suet',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Veal cutlet',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Lamb loin',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Marrow bones',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Goose',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Chicken tenders',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Veal chops',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Quail',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Pheasant',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Lamb liver',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Moose',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Turkey liver',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Pork liver',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Veal shank',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Foie gras',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Beef sirloin',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Liver sausage',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Sweetbread',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Ostrich',\n 'category_id' => '7'\n ],\n [ 'ingredient' => 'Soppressata',\n 'category_id' => '7'\n ],\n\n\n //Fish\n\n\n [ 'ingredient' => 'Canned tuna',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Salmon',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Tilapia',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Fish fillets',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Cod',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Canned salmon',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Anchovy',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Smoked salmon',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Sardines',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Tuna steak',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Whitefish',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Halibut',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Trout',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Haddock',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Flounder',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Catfish',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Mahi mahi',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Mackerel',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Sole',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Sea bass',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Red snapper',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Swordfish',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Pollock',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Herring',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Perch',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Grouper',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Caviar',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Monkfish',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Rockfish',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Lemon sole',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Pike',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Barramundi',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Eel',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Bluefish',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Carp',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Cuttlefish',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Pompano',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Arctic char',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'John dory',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Marlin',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Amberjack',\n 'category_id' => '8'\n ],\n [ 'ingredient' => 'Sturgeon',\n 'category_id' => '8'\n ],\n\n\n //Seafood\n\n\n [ 'ingredient' => 'Shrimp',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Crab',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Prawns',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Scallop',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Clam',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Lobster',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Mussel',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Oyster',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Squid',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Calamari',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Crawfish',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Octopus',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Cockle',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Conch',\n 'category_id' => '9'\n ],\n [ 'ingredient' => 'Sea urchin',\n 'category_id' => '9'\n ],\n\n\n //Condiments\n\n\n [ 'ingredient' => 'Mayonnaise',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Ketchup',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Mustard',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Vinegar',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Soy sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Balsamic vinegar',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Worcestershire',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Hot sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Barbecue sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Ranch dressing',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Wine vinegar',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Apple cider vinegar',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Cider vinegar',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Italian dressing',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Rice vinegar',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Salad dressing',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Tabasco',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Fish sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Teriyaki',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Steak sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Iahini',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Enchilada sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Vinaigrette dressing',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Oyster sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Honey mustard',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Sriracha',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Caesar dressing',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Taco sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Mirin',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Blue cheese dressing',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Sweet and sour sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Thousand island',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Picante sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Buffalo sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'French dressing',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Tartar sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Cocktail sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Marsala',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Adobo sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Tzatziki sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Sesame dressing',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Ponzu',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Duck sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Pickapeppa sauce',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Yuzu juice',\n 'category_id' => '10'\n ],\n [ 'ingredient' => 'Cream sauce',\n 'category_id' => '10'\n ],\n\n\n // Sauces\n\n\n [ 'ingredient' => 'Tomato sauce',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Tomato paste',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Salsa',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Pesto',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Alfredo sauce',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Beef gravy',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Curry paste',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Chicken gravy',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Cranberry sauce',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Turkey gravy',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Mushroom gravy',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Sausage gravy',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Onion gravy',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Cream gravy',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Pork gravy',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Tomato gravy',\n 'category_id' => '11'\n ],\n [ 'ingredient' => 'Giblet gravy',\n 'category_id' => '11'\n ],\n\n\n //Oils\n\n\n [ 'ingredient' => 'Olive oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Vegetable oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Cooking spray',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Canola oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Shortening',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Sesame oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Coconut oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Peanut oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Sunflower oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Lard',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Grape seed oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Corn oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Almond oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Avocado oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Safflower oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Walnut oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Hazelnut oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Palm oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Soybean oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Mustard oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Pistachio oil',\n 'category_id' => '12'\n ],\n [ 'ingredient' => 'Soya oil',\n 'category_id' => '12'\n ],\n\n\n //Seasonings\n\n\n [ 'ingredient' => 'Bouillon',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Ground ginger',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Sesame seed',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Cream of tartar',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Chili sauce',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Soya sauce',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Apple cider',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Hoisin sauce',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Liquid smoke',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Rice wine',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Vegetable bouillon',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Poppy seed',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Balsamic glaze',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Miso',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Wasabi',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Fish stock',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Rose water',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Pickling salt',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Champagne vinegar',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Bbq rub',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Jamaican jerk spice',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Accent seasoning',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Pickling spice',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Mustard powder',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Mango powder',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Adobo seasoning',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Kasuri methi',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Caribbean jerk seasoning',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Brine',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Matcha powder',\n 'category_id' => '13'\n ],\n [ 'ingredient' => 'Cassia',\n 'category_id' => '13'\n ],\n\n\n //Legumes\n\n\n [ 'ingredient' => 'Green beans',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Peas',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Black beans',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Chickpea',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Lentil',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Refried beans',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Hummus',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Chili beans',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Lima beans',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Kidney beans',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Pinto beans',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Edamame',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Split peas',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Snap peas',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Soybeans',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Cannellini beans',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Navy beans',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'French beans',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Red beans',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Great northern beans',\n 'category_id' => '14'\n ],\n [ 'ingredient' => 'Fava beans',\n 'category_id' => '14'\n ],\n\n\n //Alcohol\n\n\n [ 'ingredient' => 'White wine',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Beer',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Red wine',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Vodka',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Rum',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Whiskey',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Tequila',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Sherry',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Bourbon',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Cooking wine',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Whisky',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Liqueur',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Brandy',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Gin',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Kahlua',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Irish cream',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Triple sec',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Champagne',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Amaretto',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Cabernet sauvignon',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Vermouth',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Bitters',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Maraschino',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Sake',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Grand marnier',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Masala',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Dessert wine',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Schnapps',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Port wine',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Sparkling wine',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Cognac',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Chocolate liqueur',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Burgundy wine',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Limoncello',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Creme de menthe',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Bloody mary',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Raspberry liquor',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Curacao',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Frangelico',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Shaoxing wine',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Absinthe',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Madeira wine',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Ouzo',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Anisette',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Grappa',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Ciclon',\n 'category_id' => '15'\n ],\n [ 'ingredient' => 'Drambuie',\n 'category_id' => '15'\n ],\n\n\n //Soup\n\n\n [ 'ingredient' => 'Chicken broth',\n 'category_id' => '16'\n ],\n [ 'ingredient' => 'Mushroom soup',\n 'category_id' => '16'\n ],\n [ 'ingredient' => 'Beef broth',\n 'category_id' => '16'\n ],\n [ 'ingredient' => 'Tomato soup',\n 'category_id' => '16'\n ],\n [ 'ingredient' => 'Vegetable stock',\n 'category_id' => '16'\n ],\n [ 'ingredient' => 'Chicken soup',\n 'category_id' => '16'\n ],\n [ 'ingredient' => 'Onion soup',\n 'category_id' => '16'\n ],\n [ 'ingredient' => 'Vegetable soup',\n 'category_id' => '16'\n ],\n [ 'ingredient' => 'Celery soup',\n 'category_id' => '16'\n ],\n [ 'ingredient' => 'Dashi',\n 'category_id' => '16'\n ],\n [ 'ingredient' => 'Lamb stock',\n 'category_id' => '16'\n ],\n [ 'ingredient' => 'Pork stock',\n 'category_id' => '16'\n ],\n [ 'ingredient' => 'Veal stock',\n 'category_id' => '16'\n ],\n\n\n //Nuts\n\n\n [ 'ingredient' => 'Peanut butter',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Almond',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Walnut',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Pecan',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Peanut',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Cashew',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Flax',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Pine nut',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Pistachio',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Almond meal',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Hazelnut',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Macadamia',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Almond paste',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Chestnut',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Praline',\n 'category_id' => '17'\n ],\n [ 'ingredient' => 'Macaroon',\n 'category_id' => '17'\n ],\n\n\n //Snacks and Desserst\n\n\n [ 'ingredient' => 'Chocolate',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Apple sauce',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Strawberry jam',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Graham cracker',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Marshmallow',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Chocolate syrup',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Potato chips',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Nutella',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Chocolate morsels',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Bittersweet chocolate',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Pudding mix',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Raspberry jam',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Dark chocolate',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Chocolate chips',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Jam',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'White chocolate',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Brownie mix',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Jello',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Caramel',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Chocolate powder',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Candy',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Corn chips',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Cookies',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Apricot jam',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Chocolate bar',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Cookie dough',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Oreo',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Doritos',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Chocolate cookies',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Butterscotch',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Blackberry preserves',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Blueberry jam',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Peach preserves',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Cherry jam',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Fig jam',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Plum jam',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Cinnamon roll',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Fudge',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Cookie crumb',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Chilli jam',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Lady fingers',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Chocolate wafer',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Gummy worms',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Biscotti biscuit',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Doughnut',\n 'category_id' => '18'\n ],\n [ 'ingredient' => 'Amaretti cookies',\n 'category_id' => '18'\n ],\n\n\n //Desserts\n\n\n [ 'ingredient' => 'Black pudding',\n 'category_id' => '19'\n ],\n [ 'ingredient' => 'Apple jelly',\n 'category_id' => '19'\n ],\n [ 'ingredient' => 'Red pepper jelly',\n 'category_id' => '19'\n ],\n [ 'ingredient' => 'Orange jelly',\n 'category_id' => '19'\n ],\n [ 'ingredient' => 'Jalapeno jelly',\n 'category_id' => '19'\n ],\n [ 'ingredient' => 'Mint jelly',\n 'category_id' => '19'\n ],\n [ 'ingredient' => 'Currant jelly',\n 'category_id' => '19'\n ],\n [ 'ingredient' => 'Lemon jelly',\n 'category_id' => '19'\n ],\n [ 'ingredient' => 'Quince jelly',\n 'category_id' => '19'\n ],\n [ 'ingredient' => 'Grape jelly',\n 'category_id' => '19'\n ],\n [ 'ingredient' => 'Chocolate pudding',\n 'category_id' => '19'\n ],\n ['ingredient' => 'Custard',\n 'category_id' => '19'\n ],\n ['ingredient' => 'Yogurt',\n 'category_id' => '19'\n ],\n\n\n //Beverages\n\n\n [ 'ingredient' => 'Coffee',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Orange juice',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Tea',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Green tea',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Apple juice',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Tomato juice',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Coke',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Chocolate milk',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Pineapple juice',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Lemonade',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Cranberry juice',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Espresso',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Fruit juice',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Ginger ale',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Club soda',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Sprite',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Kool aid',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Grenadine',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Margarita mix',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Cherry juice',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Pepsi',\n 'category_id' => '20'\n ],\n [ 'ingredient' => 'Mountain dew',\n 'category_id' => '20'\n ]\n\n ]);\n\n }", "public function run() {\n $recipes = $this->loadRecipesDefault();\n \n foreach ($recipes as $food => $ingredients) {\n $food_id = $this->getFoodByName($food);\n\n foreach ($ingredients as $ingredient => $quantity) {\n $ingredient_id = $this->getIngredientByCode($ingredient);\n Recipe::create([\"food_id\" => $food_id, \"ingredient_id\" => $ingredient_id, \"quantity\" => $quantity]);\n }\n }\n }", "protected function insert()\n\t{\n\t\t$query = $this->connection->prepare\n\t\t(\"\n\t\t\tinsert into\n\t\t\t\tBooth (BoothNum)\n\t\t\t\tvalues (?)\n\t\t\");\n\n\t\t$query->execute(array_values($this->fields));\n\n\t}", "public function insert(){\n $bd = Database::getInstance();\n $bd->query(\"INSERT INTO canciones(artista, ncancion, idGen, album) VALUES (:art, :nca, :gen, :alb);\",\n [\":art\"=>$this->artista,\n \":gen\"=>$this->idGen,\n \":alb\"=>$this->album,\n \":nca\"=>$this->ncancion]);\n }", "public function addRecipes($recipe) {\n $this->recipes[] = $recipe;\n }", "function addIngredient(){\n //check if ingredient name is set or not\n if(isset($_POST['ingredientname'])){\n $name = $_POST['ingredientname'];\n }\n\n //create item array for prepared statement\n $item = array(\":name\" => $name, \":uid\" => $_SESSION['user_session']);\n try{\n //get global database connection object\n global $db_con;\n //create and execute insert query\n $stmt = $db_con->prepare(\"INSERT INTO Item_master (Item_name, Cust_id) VALUES (:name, :uid)\");\n if($stmt->execute($item)){\n //print ok if query gets executed successfully\n echo 'ok';\n }\n }\n catch(PDOException $e){\n //print exception error message\n echo $e->getMessage();\n }\n\n }", "public function run()\n {\n $now = Carbon::now('utc')->toDateTimeString();\n $faker = Faker\\Factory::create();\n $faker->addProvider(new \\FakerRestaurant\\Provider\\fr_FR\\Restaurant($faker));\n $data = array();\n\n $type_primaire = [\"Principal\",\"Accompagnement\",\"Assaisonnement\"];\n $type_secondaire = [\"Viande\",\"Poisson\",\"Féculent\",\"Légumes\",\"Fruits\",\"Sauce\",\"Epice\"];\n\n for ($i = 0; $i < 100; $i++){\n $data[] = array(\n \"nom\"=>$faker->vegetableName(),\n \"type_primaire\"=>$faker->randomElement($type_primaire),\n \"type_secondaire\"=>$faker->randomElement($type_secondaire),\n \"user_id\"=>1,\n \"created_at\"=>$now,\n \"updated_at\"=>$now\n );\n }\n\n Ingredient::insert($data);\n }", "public function insert()\n {\n $this->id = insert($this);\n }", "public function insertAction() {\n if ($_POST) {\n try {\n $car = $this->carOperation->createCar($_POST[\"name\"], $_POST[\"volume\"], $_POST[\"power\"], $_POST[\"mileage\"],\n $_POST[\"manufacture_year\"], $_POST[\"top_speed\"], $_POST[\"acceleration\"], $_POST[\"price\"]);\n $car_id = $this->carOperation->insertCar($car, true);\n } catch (InvalidParamException $ex) {\n header(self::CODES[400]);\n return $this->render(\"car/insert.html.twig\", array(\"car\" => $car, \"error\" => $ex->getMessage()));\n }\n return $this->detailAction($car_id);\n } else {\n return $this->render(\"car/insert.html.twig\");\n }\n }", "public function insert() {\n $conexion = StorianDB::connectDB();\n $insercion = \"INSERT INTO cuento (titulo, contenido, autor) VALUES (\\\"\".$this->titulo.\"\\\", \\\"\".$this->contenido.\"\\\", \\\"\".$this->autor.\"\\\")\";\n $conexion->exec($insercion);\n }", "public function insertDatabase();", "public function run()\n {\n\n $recipesIDs = Recipe::pluck('id');\n $ingredientsIDs = Ingredient::pluck('id');\n Recipeingredient::create(['amount' => 'amount',\n 'recipe_id' => $recipesIDs[0],\n 'ingredient_id' =>$ingredientsIDs[0],\n ]);\n Recipeingredient::create(['amount' => 'amount',\n 'recipe_id' => $recipesIDs[0],\n 'ingredient_id' =>$ingredientsIDs[1],\n ]);\n }", "public function insert() {\n\t\t$db = self::getDB();\n\t\t$sql = \"INSERT INTO posts\n\t\t\t\t\t(nome, conteudo, fk_idUsuario, fk_idTopico)\n\t\t\t\tVALUES\n\t\t\t\t\t(:nome, :conteudo, :fk_idUsuario, :fk_idTopico)\";\n\t\t$query = $db->prepare($sql);\n\t\t$query->execute([\n\t\t\t':nome' => $this->getNome(),\n\t\t\t':conteudo' => $this->getConteudo(),\n\t\t\t':fk_idUsuario' => $this->getFkIdUsuario(),\n\t\t\t':fk_idTopico' => $this->getFkIdTopico()\n\t\t]);\n\t\t$this->idPost = $db->lastInsertId();\n\t}", "public function updateRecipe(Request $request)\n {\n $user = Auth::user();\n $userId = $user->id;\n $recipeId = $request->input('id');;\n $name = $request->input('name');\n $preparation_time = $request->input('preparation_time');\n $cooking_time = $request->input('cooking_time');\n $description = $request->input('description');\n\n DB::update('UPDATE recipes SET name=?, preparation_time=?, cooking_time=?, description=?, updated_at = NOW() WHERE id=? AND user_id=?', [$name, $preparation_time, $cooking_time, $description, $recipeId, $userId]);\n\n ///Update data in recipes_ingredients table\n $ingredientsToUpdate = $request->input('ingredientsToUpdate');\n\n for ($i = 0; $i < count($ingredientsToUpdate); $i++) {\n $quantity = $ingredientsToUpdate[$i]['quantity'];\n $ingredientId = $ingredientsToUpdate[$i]['ingredients_id'];\n\n DB::update('UPDATE recipes_ingredients SET quantity=? WHERE recipes_id=? AND ingredients_id=?', [$quantity, $recipeId, $ingredientId]);\n }\n\n //If there are ingredients to delete, delete ingredients from recipes_ingredients table\n $ingredientsToDelete = $request->input('ingredientsToDelete');\n\n if ($ingredientsToDelete != null) {\n for ($i = 0; $i < count($ingredientsToDelete); $i++) {\n $ingredientId = $ingredientsToDelete[$i]['ingredients_id'];\n\n DB::delete('DELETE FROM recipes_ingredients WHERE recipes_id=? AND ingredients_id=?', [$recipeId, $ingredientId]);\n }\n }\n\n //If user create new ingredients, send data to recipes_ingredients table\n $ingredientsToAdd = $request->input('ingredientsToAdd');\n\n if ($ingredientsToAdd != null) {\n for ($i = 0; $i < count($ingredientsToAdd); $i++) {\n $ingredientId = $ingredientsToAdd[$i]['ingredients_id'];\n $quantity = $ingredientsToAdd[$i]['quantity'];\n\n DB::insert('INSERT INTO recipes_ingredients SET ingredients_id=?, quantity=?, recipes_id=?', [$ingredientId, $quantity, $recipeId]);\n }\n }\n\n return redirect()->route('recipes');\n }", "public function run()\n { \n $recipe_additional_info1 = new RecipeAdditionalInfo;\n $recipe_additional_info1->preparation_time = $this->getRecipe1()['preparation_time'];\n $recipe_additional_info1->cooking_time = $this->getRecipe1()['cooking_time'];\n $recipe_additional_info1->recipe_id = 1;\n $recipe_additional_info1->save();\n\n $recipe_additional_info2 = new RecipeAdditionalInfo;\n $recipe_additional_info2->preparation_time = $this->getRecipe2()['preparation_time'];\n $recipe_additional_info2->cooking_time = $this->getRecipe2()['cooking_time'];\n $recipe_additional_info2->recipe_id = 2;\n $recipe_additional_info2->save();\n\n $recipe_additional_info3 = new RecipeAdditionalInfo;\n $recipe_additional_info3->preparation_time = $this->getRecipe3()['preparation_time'];\n $recipe_additional_info3->cooking_time = $this->getRecipe3()['cooking_time'];\n $recipe_additional_info3->recipe_id = 3;\n $recipe_additional_info3->save();\n\n $recipe_additional_info4 = new RecipeAdditionalInfo;\n $recipe_additional_info4->preparation_time = $this->getRecipe4()['preparation_time'];\n $recipe_additional_info4->cooking_time = $this->getRecipe4()['cooking_time'];\n $recipe_additional_info4->recipe_id = 4;\n $recipe_additional_info4->save();\n\n $recipe_additional_info5 = new RecipeAdditionalInfo;\n $recipe_additional_info5->preparation_time = $this->getRecipe5()['preparation_time'];\n $recipe_additional_info5->cooking_time = $this->getRecipe5()['cooking_time'];\n $recipe_additional_info5->recipe_id = 5;\n $recipe_additional_info5->save();\n\n $recipe_additional_info6 = new RecipeAdditionalInfo;\n $recipe_additional_info6->preparation_time = $this->getRecipe6()['preparation_time'];\n $recipe_additional_info6->cooking_time = $this->getRecipe6()['cooking_time'];\n $recipe_additional_info6->recipe_id = 6;\n $recipe_additional_info6->save();\n\n $recipe_additional_info7 = new RecipeAdditionalInfo;\n $recipe_additional_info7->preparation_time = $this->getRecipe7()['preparation_time'];\n $recipe_additional_info7->cooking_time = $this->getRecipe7()['cooking_time'];\n $recipe_additional_info7->recipe_id = 7;\n $recipe_additional_info7->save();\n\n $recipe_additional_info8 = new RecipeAdditionalInfo;\n $recipe_additional_info8->preparation_time = $this->getRecipe8()['preparation_time'];\n $recipe_additional_info8->cooking_time = $this->getRecipe8()['cooking_time'];\n $recipe_additional_info8->recipe_id = 8;\n $recipe_additional_info8->save();\n\n $recipe_additional_info9 = new RecipeAdditionalInfo;\n $recipe_additional_info9->preparation_time = $this->getRecipe9()['preparation_time'];\n $recipe_additional_info9->cooking_time = $this->getRecipe9()['cooking_time'];\n $recipe_additional_info9->recipe_id = 9;\n $recipe_additional_info9->save();\n\n $recipe_additional_info10 = new RecipeAdditionalInfo;\n $recipe_additional_info10->preparation_time = $this->getRecipe10()['preparation_time'];\n $recipe_additional_info10->cooking_time = $this->getRecipe10()['cooking_time'];\n $recipe_additional_info10->recipe_id = 10;\n $recipe_additional_info10->save();\n\n $recipe_additional_info11 = new RecipeAdditionalInfo;\n $recipe_additional_info11->preparation_time = $this->getRecipe11()['preparation_time'];\n $recipe_additional_info11->cooking_time = $this->getRecipe11()['cooking_time'];\n $recipe_additional_info11->recipe_id = 11;\n $recipe_additional_info11->save();\n\n $recipe_additional_info12 = new RecipeAdditionalInfo;\n $recipe_additional_info12->preparation_time = $this->getRecipe12()['preparation_time'];\n $recipe_additional_info12->cooking_time = $this->getRecipe12()['cooking_time'];\n $recipe_additional_info12->recipe_id = 12;\n $recipe_additional_info12->save();\n\n $recipe_additional_info13 = new RecipeAdditionalInfo;\n $recipe_additional_info13->preparation_time = $this->getRecipe13()['preparation_time'];\n $recipe_additional_info13->cooking_time = $this->getRecipe13()['cooking_time'];\n $recipe_additional_info13->recipe_id = 13;\n $recipe_additional_info13->save();\n\n $recipe_additional_info14 = new RecipeAdditionalInfo;\n $recipe_additional_info14->preparation_time = $this->getRecipe14()['preparation_time'];\n $recipe_additional_info14->cooking_time = $this->getRecipe14()['cooking_time'];\n $recipe_additional_info14->recipe_id = 14;\n $recipe_additional_info14->save();\n\n $recipe_additional_info15 = new RecipeAdditionalInfo;\n $recipe_additional_info15->preparation_time = $this->getRecipe15()['preparation_time'];\n $recipe_additional_info15->cooking_time = $this->getRecipe15()['cooking_time'];\n $recipe_additional_info15->recipe_id = 15;\n $recipe_additional_info15->save();\n\n $recipe_additional_info16 = new RecipeAdditionalInfo;\n $recipe_additional_info16->preparation_time = $this->getRecipe16()['preparation_time'];\n $recipe_additional_info16->cooking_time = $this->getRecipe16()['cooking_time'];\n $recipe_additional_info16->recipe_id = 16;\n $recipe_additional_info16->save();\n\n $recipe_additional_info17 = new RecipeAdditionalInfo;\n $recipe_additional_info17->preparation_time = $this->getRecipe17()['preparation_time'];\n $recipe_additional_info17->cooking_time = $this->getRecipe17()['cooking_time'];\n $recipe_additional_info17->recipe_id = 17;\n $recipe_additional_info17->save();\n\n $recipe_additional_info18 = new RecipeAdditionalInfo;\n $recipe_additional_info18->preparation_time = $this->getRecipe18()['preparation_time'];\n $recipe_additional_info18->cooking_time = $this->getRecipe18()['cooking_time'];\n $recipe_additional_info18->recipe_id = 18;\n $recipe_additional_info18->save();\n\n $recipe_additional_info19 = new RecipeAdditionalInfo;\n $recipe_additional_info19->preparation_time = $this->getRecipe19()['preparation_time'];\n $recipe_additional_info19->cooking_time = $this->getRecipe19()['cooking_time'];\n $recipe_additional_info19->recipe_id = 19;\n $recipe_additional_info19->save();\n\n $recipe_additional_info20 = new RecipeAdditionalInfo;\n $recipe_additional_info20->preparation_time = $this->getRecipe20()['preparation_time'];\n $recipe_additional_info20->cooking_time = $this->getRecipe20()['cooking_time'];\n $recipe_additional_info20->recipe_id = 20;\n $recipe_additional_info20->save();\n\n $recipe_additional_info21 = new RecipeAdditionalInfo;\n $recipe_additional_info21->preparation_time = $this->getRecipe21()['preparation_time'];\n $recipe_additional_info21->cooking_time = $this->getRecipe21()['cooking_time'];\n $recipe_additional_info21->recipe_id = 21;\n $recipe_additional_info21->save();\n\n $recipe_additional_info22 = new RecipeAdditionalInfo;\n $recipe_additional_info22->preparation_time = $this->getRecipe22()['preparation_time'];\n $recipe_additional_info22->cooking_time = $this->getRecipe22()['cooking_time'];\n $recipe_additional_info22->recipe_id = 22;\n $recipe_additional_info22->save();\n\n $recipe_additional_info23 = new RecipeAdditionalInfo;\n $recipe_additional_info23->preparation_time = $this->getRecipe23()['preparation_time'];\n $recipe_additional_info23->cooking_time = $this->getRecipe23()['cooking_time'];\n $recipe_additional_info23->recipe_id = 23;\n $recipe_additional_info23->save();\n\n $recipe_additional_info24 = new RecipeAdditionalInfo;\n $recipe_additional_info24->preparation_time = $this->getRecipe24()['preparation_time'];\n $recipe_additional_info24->cooking_time = $this->getRecipe24()['cooking_time'];\n $recipe_additional_info24->recipe_id = 24;\n $recipe_additional_info24->save();\n\n $recipe_additional_info25 = new RecipeAdditionalInfo;\n $recipe_additional_info25->preparation_time = $this->getRecipe25()['preparation_time'];\n $recipe_additional_info25->cooking_time = $this->getRecipe25()['cooking_time'];\n $recipe_additional_info25->recipe_id = 25;\n $recipe_additional_info25->save();\n\n $recipe_additional_info26 = new RecipeAdditionalInfo;\n $recipe_additional_info26->preparation_time = $this->getRecipe26()['preparation_time'];\n $recipe_additional_info26->cooking_time = $this->getRecipe26()['cooking_time'];\n $recipe_additional_info26->recipe_id = 26;\n $recipe_additional_info26->save();\n\n $recipe_additional_info27 = new RecipeAdditionalInfo;\n $recipe_additional_info27->preparation_time = $this->getRecipe27()['preparation_time'];\n $recipe_additional_info27->cooking_time = $this->getRecipe27()['cooking_time'];\n $recipe_additional_info27->recipe_id = 27;\n $recipe_additional_info27->save();\n\n $recipe_additional_info28 = new RecipeAdditionalInfo;\n $recipe_additional_info28->preparation_time = $this->getRecipe28()['preparation_time'];\n $recipe_additional_info28->cooking_time = $this->getRecipe28()['cooking_time'];\n $recipe_additional_info28->recipe_id = 28;\n $recipe_additional_info28->save();\n\n $recipe_additional_info29 = new RecipeAdditionalInfo;\n $recipe_additional_info29->preparation_time = $this->getRecipe29()['preparation_time'];\n $recipe_additional_info29->cooking_time = $this->getRecipe29()['cooking_time'];\n $recipe_additional_info29->recipe_id = 29;\n $recipe_additional_info29->save();\n\n $recipe_additional_info30 = new RecipeAdditionalInfo;\n $recipe_additional_info30->preparation_time = $this->getRecipe30()['preparation_time'];\n $recipe_additional_info30->cooking_time = $this->getRecipe30()['cooking_time'];\n $recipe_additional_info30->recipe_id = 30;\n $recipe_additional_info30->save();\n\n $recipe_additional_info31 = new RecipeAdditionalInfo;\n $recipe_additional_info31->preparation_time = $this->getRecipe31()['preparation_time'];\n $recipe_additional_info31->cooking_time = $this->getRecipe31()['cooking_time'];\n $recipe_additional_info31->recipe_id = 31;\n $recipe_additional_info31->save();\n\n $recipe_additional_info32 = new RecipeAdditionalInfo;\n $recipe_additional_info32->preparation_time = $this->getRecipe32()['preparation_time'];\n $recipe_additional_info32->cooking_time = $this->getRecipe32()['cooking_time'];\n $recipe_additional_info32->recipe_id = 32;\n $recipe_additional_info32->save();\n \n }", "public function postCreate(Request $request){\n\n //Validate create input\n $this->validate($request, ['title' => 'required|max:255']);\n $this->validate($request, ['description' => 'required|max:255']);\n $this->validate($request, ['prep_time' => 'required|max:300']);\n $this->validate($request, ['cook_time' => 'required|max:300']);\n $this->validate($request, ['ingredients' => 'required|max:8000']);\n $this->validate($request, ['instructions' => 'required|max:8000']);\n $this->validate($request, ['tags' => 'required|max:8000']);\n\n //Create a new recipe and save it to the table in the database\n $recipe = new \\App\\Recipe();\n\n $recipe->title = $request->input('title');\n $recipe->description = $request->input('description');\n $recipe->prep_time = $request->input('prep_time');\n $recipe->cook_time = $request->input('cook_time');\n $recipe->ingredients = $request->input('ingredients');\n $recipe->instructions = $request->input('instructions');\n $recipe->tags = $request->input('tags').\" #\".(string)($request['course']);\n $recipe->user_id = \\Auth::user()->pluck('id');\n $recipe->save();\n\n //Return show recipes view with the name to be put in the url\n return view('Recipes.show')->with('recipe', $recipe);\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 insert($perifericos);", "public function run()\n {\n $data = array(\n \t['id'=>1,\n \t 'name' => 'Food Coupon',\n \t 'amount' => 150.00\n \t],\n \t['id'=>2,\n \t 'name' => 'Hashhacks',\n \t 'amount' => 300.00\n \t]\n );\n DB::table('food_coupons')->insert($data);\n }", "public function run()\n {\n DB::table('cars')->insert($this->getData());\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 p_add() {\n if (empty($_POST['title'])) {\n Router::redirect(\"/trips/new/missing\");\n }\n\n # Associate this trip with this user\n $_POST['user_id'] = $this->user->user_id;\n\n # Unix timestamp of when this trip was created / modified\n $_POST['created'] = Time::now();\n $_POST['modified'] = Time::now();\n\n $_POST['coverimg'] = \"fpo.jpg\";\n\n # Insert\n DB::instance(DB_NAME)->insert(\"trips\", $_POST);\n\n Router::redirect(\"/trips/index\");\n\n }", "public function run()\n {\n DB::table('products') -> insert ([\n\t\t\t'cat_id' => '2',\n\t\t\t'name' => 'Krosachi',\n\t\t\t'description' => 'ochen krutye krossovki',\n\t\t\t'price' => '120$',\n\t\t\t'picture' => 'C:\\OpenServer\\domains\\laravel\\database\\seeds\\1380705314_1.jpg'\n\t\t]);\t\n }", "public function insert() {\r\n\t\t$this->getMapper()->insert($this);\r\n\t}", "public function run()\n {\n $faker = Faker\\Factory::create();\n\n $id = DB::table('categories')->insertGetId([\n 'user_id' => 1,\n 'name' => 'Unnamed',\n ]);\n\n for ($j = 0; $j < 12; $j++) {\n DB::table('notes')->insert([\n 'category_id' => $id,\n 'title' => $faker->title,\n 'content' => $faker->text(),\n ]);\n }\n\n }", "public function newIngredient() {\n\n // Redirect user if it doesn't belong to the selected role\n if( ! $this->verify_min_level(6)) {\n\n // Notifies the user that he does not have permissions\n $this->session->set_flashdata(\"alert\", \"<strong>No tienes permisos para acceder a esta página</strong><br/><br/>\n Por motivos de seguridad hemos cerrado tu sesión.<br/>\n Para acceder de nuevo a la aplicación, vuelve a iniciar sesión\");\n\n return redirect( site_url( '/' ) );\n }\n\n\n $this->template->setTitle('Nuevo ingrediente');\n\n // Load validation library, validation config and validation rules\n $this->load->library(\"form_validation\");\n $this->config->load('form_validation/recipe/ingredient');\n $this->form_validation->set_rules(config_item('create_ingredient_rules'));\n\n if($this->form_validation->run()) {\n\n // Load ingredient data\n $ingredient_data['id'] = 'DEFAULT';\n $ingredient_data['name'] = $this->input->post('name');\n $ingredient_data['slug'] = $this->slug->parseSlug($this->input->post('name'));\n\n // Insert new ingredient\n $this->db->set($ingredient_data)->insert('ingredients');\n\n // Created ingredient?\n if( $this->db->affected_rows() == 1 ) {\n\n // Send flash data\n $this->session->set_flashdata(\"notify\", \"Ingrediente <strong>\" . $ingredient_data['title'] . \"</strong> creado correctamente\");\n\n // Redirect\n return redirect(site_url(\"/ingredients\"));\n }\n }\n\n // Print view\n $this->template->printView('recipes/ingredients/create');\n }", "protected function insert()\n {\n $insert = 'INSERT INTO users (first_name, last_name, email, password)\n VALUES (:first_name, :last_name, :email, :password)';\n $statement = self::$dbc->prepare($insert);\n unset($this->attributes['id']);\n foreach ($this->attributes as $key => $value) {\n $statement->bindValue(\":$key\", $value, PDO::PARAM_STR);\n }\n $statement->execute();\n $this->attributes['id'] = self::$dbc->lastInsertId();\n }", "public function testSuccesfulCreateRecipe()\n {\n $recipeData = [\n \"name\" => \"ingredient_test\",\n \"description\" => \"desiption test\",\n \"ingredients\" => [\n [\n \"id\" => 4,\n \"amount\" => 20\n ],\n [\n \"id\" => 2,\n \"amount\" => 202\n ]\n ] \n ];\n $this->json('POST', 'api/recipes', $recipeData, ['Accept' => 'application/json'])\n ->assertStatus(200)\n ->assertJsonStructure([\n \"response\",\n \"code\"\n ]);\n }", "protected function saveInsert()\n {\n }", "function insert() {\n\t\t$sql = \"INSERT INTO cost_detail (cd_fr_id, cd_seq, cd_start_time, cd_end_time, cd_hour, cd_minute, cd_cost, cd_update, cd_user_update)\n\t\t\t\tVALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n\t\t$this->ffm->query($sql, array($this->cd_fr_id, $this->cd_seq, $this->cd_start_time, $this->cd_end_time, $this->cd_hour, $this->cd_minute, $this->cd_cost, $this->cd_update, $this->cd_user_update));\n\t\t$this->last_insert_id = $this->ffm->insert_id();\n\t}", "public function insert( array $illustrationDatas ) {\n $query = 'INSERT INTO `illustration` (`id`, `path`) VALUES (NULL, :path);'; \n return $this->executeQuery( $query, $illustrationDatas );\n }", "public function run()\n {\n DB::table('items_locations')->insert([\n 'location_id' => '3',\n 'items_id' => '1',\n ]);\n }", "protected function _insert()\n\t{\n\t}", "public function run()\n {\n DB::table('cars')->insert([\n 'make' => 'saab',\n 'model' => '9-3',\n 'year' => '1999',\n 'rating' => 3\n ])\n }", "public function run()\n\t\t{\n\t\t\tDB::table('pets')->insert(array(\n\t\t\t\tarray('name'=>\"Pumpkin\",'age'=>7,'specie_id'=>1),\n\t\t\t\tarray('name'=>\"Fido\",'age'=>3,'specie_id'=>2),\n\t\t\t\tarray('name'=>\"Oliver\",'age'=>12,'specie_id'=>1),\n\t\t\t\tarray('name'=>\"Snowy\",'age'=>8,'specie_id'=>1),\n\t\t\t\tarray('name'=>\"Rover\",'age'=>8,'specie_id'=>2),\n\t\t\t\tarray('name'=>\"Laddie\",'age'=>6,'specie_id'=>2),\n\t\t\t\tarray('name'=>\"Daffney\",'age'=>2,'specie_id'=>3),\n\t\t\t));\n\t\t}", "public function insertStory()\n\t\t{\n\n\t\t\t$sql = \"INSERT INTO `BreakingNews`(`News`) VALUES (\\\" \\\")\";\n\n\t\t\t$this->connection->query($sql);\n\n\t\t}", "public function add() {\n $mysqli = Database::getMYSQLI();\n \n $stmt = $mysqli->prepare(\"\n INSERT INTO reviews (persons_id, lessons_id, title, review, date_submitted, rating)\n VALUES (?,?,?,?,?,?)\");\n \n $stmt->bind_param('iisssi', $this->personsID, $this->lessonsID, $this->title, \n $this->review, $this->dateSubmitted, $this->rating);\n \n $stmt->execute();\n $stmt->close();\n $mysqli->close();\n }", "public function createRecipeIngredientsTable()\r\n\t{\r\n\t\t$query = 'CREATE TABLE `recipeIngredients` (\r\n\t\t\t`articleId` int(8) unsigned NOT NULL,\r\n\t\t\t`NDB_No` int(5) unsigned zerofill NOT NULL,\r\n\t\t\t`amount` double unsigned default NULL,\r\n\t\t\t`weightId` int(3) unsigned NOT NULL,\r\n\t\t\tPRIMARY KEY (`articleId`,`NDB_No`),\r\n\t\t\tKEY `recipe` (`articleId`)\r\n\t\t) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT=\"Recipe ingredient (amount) mapping\"';\r\n\t\t$this->_db->setQuery($query);\r\n\t\treturn $this->_db->query();\r\n\t}", "public function run()\n {\n DB::table('cocktails')->insert([\n ['name' => 'Mojito',\n 'alcohol_degree' => '40',\n 'recipe' => \"Dans un verre à Mojito, disposez 6 à 8 feuilles de menthe, 1/2 citron vert coupé en dés et 2 cl de sirop de canne.\n Pilez et versez 4 cl de rhum blanc 40°.\n Ajoutez de la glace pilée et allongez d’eau gazeuse.\n Mélangez de bas en haut avec une cuillère à mélange.\"],\n ['name' => 'Pina Colada',\n 'alcohol_degree' => '40',\n 'recipe' => \"Dans un shaker, versez les ingrédients.\n Secouez énergiquement. Enfin, servez dans un grand verre sur des glaçons.\n Astuce: Vous pouvez remplacer le jus d’ananas et le lait de coco par 12 cl de Piña Colada Caraïbos.\"],\n ['name' => 'Caïpirinha',\n 'alcohol_degree' => '40',\n 'recipe' => \"Préparez la caïpirinha directement dans un verre.\n Lavez le citron vert et découpez-le en dés, en supprimant la partie blanche centrale.\n Placez les morceaux de citron dans le verre, ajoutez le sirop de canne et écrasez le tout à l’aide d’un pilon pour extraire le jus du citron vert.\n Ajoutez la glace pilée puis versez la cachaça.\n Mélangez avec un agitateur puis servez avec une paille.\"],\n ['name' => 'Margarita',\n 'alcohol_degree' => '38',\n 'recipe' => \"Dans un shaker rempli à moitié de glaçons, versez 4 cl de tequila, 2 cl de triple sec et 2 cl de jus de citron vert.\n Shakez et versez dans un verre à cocktail.\"],\n ['name' => 'Sex on the beach',\n 'alcohol_degree' => '40',\n 'recipe' => \"Dans un verre tulipe, versez la vodka, la liqueur et la crème sur les glaçons et mélangez.\n Versez ensuite les jus, mélangez de nouveau, ajoutez une tranche d’ananas en décoration et vous pouvez servir.\"],\n ['name' => 'Metropolitan',\n 'alcohol_degree' => '40',\n 'recipe' => \"Dans un shaker rempli à moitié de glaçons, versez 4 cl de vodka, 1 cl de triple sec, 4 cl de nectar de cranberry, pressez le dé de citron vert.\n Shakez et filtrez dans un verre à cocktail.\n Ajoutez le dé de citron vert pressé.\n Vous pouvez également réaliser ce cocktail avec 4 cl de vodka, 12 cl de Cosmopolitan Caraïbos et un trait de citron vert.\"],\n ['name' => 'Hurricane',\n 'alcohol_degree' => '45',\n 'recipe' => \"Mélangez tous les ingrédients au shaker avec de la glace.\n Versez dans un verre hurricane sur glace.\n Vous pouvez ajouter un trait de jus de citron pour un goût plus citronné.\"],\n ['name' => 'Daïquiri',\n 'alcohol_degree' => '40',\n 'recipe' => \"Dans un verre à cocktail, mélangez les ingrédients.\n Ajoutez les glaçons.\n Dégustez-le avec une paille.\n Astuce : Le daïquiri est également délicieux en remplaçant le rhum blanc par du rhum doré.\n Vous pouvez également réaliser ce cocktail au shaker.\"],\n ['name' => 'Bikini',\n 'alcohol_degree' => '40',\n 'recipe' => \"Dans un shaker rempli de glaçons, versez 4 cl de vodka, 2 cl de rhum blanc, 1 cl de lait, jus d’un demi citron et une pincée de sel.\n Shakez et versez dans un verre à cocktail.\"],\n ['name' => 'Blood and Sand',\n 'alcohol_degree' => '40',\n 'recipe' => \"Mélangez tous les ingrédients au shaker avec de la glace. Versez dans un verre à cocktail en retenant les glaçons.\"],\n ['name' => 'Oolong Cha',\n 'alcohol_degree' => '100',\n 'recipe' => \"Remplissez à 90% un verre de vodka. Ajouter du rhum ambré pour remplir les 10% restants.\"]\n ]);\n }", "public abstract function insert();", "abstract public function insert();", "function addIngredientToRecipe($recipe, $ingredient, $qty, $units){\n\t $recipeid = $this->getRecipeID($recipe);\n\t if(($recipeid != NULL) && ($ingredient != NULL) && ($qty != NULL)&& ($units != NULL))\n\t\t{ \n\t\t if($qty <= 0)\n\t\t return;\n\t\t $count = @mysql_query(\"SELECT COUNT(*) as count FROM Ingredients WHERE (Recipe = '$recipeid' AND IngredientName = '$ingredient' AND Units ='$units')\");\n\t\t $countdata = mysql_fetch_assoc($count);\n\t\t if($countdata['count'] >= 1)\n\t\t @mysql_query(\"UPDATE Ingredients SET Quantity = Quantity + '$qty' WHERE (Recipe = '$recipeid' AND IngredientName = '$ingredient' AND Units ='$units')\");\n\t\t else\n\t\t @mysql_query(\"INSERT INTO Ingredients VALUES ('$recipeid','$ingredient','$qty','$units')\");\n\t }\n\t}", "function addNewTrip(\n $user_id,\n $destination_id,\n $type_id,\n $theme_id,\n $season_id,\n $age_range_id,\n $price_id,\n $trip_story,\n $recommended_attractions,\n $places_to_eat,\n $hotels,\n $good_to_know,\n $thing_to_give_up)\n{\n global $mysqli;\n $insert = \"INSERT INTO `trips` \n (user_id, destination_id, type_id, theme_id, season_id, age_range_id, price_id, trip_story,recommended_attractions, places_to_eat, hotels, good_to_know, thing_to_give_up)\n VALUES($user_id, $destination_id, $type_id, $theme_id, $season_id, $age_range_id, $price_id, '$trip_story', '$recommended_attractions', '$places_to_eat', '$hotels', '$good_to_know', '$thing_to_give_up')\";\n\n $mysqli->query($insert);\n}", "private function process_fieldset($recipe = NULL)\n\t{\n\t\t// check for recipe object\n\t\tif ($recipe == NULL)\n\t\t{\n\t\t\t$recipe = ORM::factory('Recipe');\n\t\t}\n\n\t\t$edit = $recipe->loaded();\n\n\t\t// check if request method is POST\n\t\tif ($this->request->method() == HTTP_Request::POST)\n\t\t{\n\t\t\t// load $_POST object\n\t\t\t$post = $this->request->post();\n\n\t\t\t// load post values to recipe object\n\t\t\t$recipe->values($post, array(\n\t\t\t\t'name',\n\t\t\t\t'description',\n\t\t\t\t'cooktime',\n\t\t\t\t'preptime',\n\t\t\t\t'serving_size',\n\t\t\t\t'serving_type',\n\t\t\t\t'source',\n\t\t\t\t'tags'\n\t\t\t));\n\n\t\t\t// recipe public flag only when admin\n\t\t\t$recipe->public = ($this->user->logged_in('admin') ? 1 : 0);\n\n\t\t\t// check for the photo\n\t\t\tif ( ! empty($_FILES['photo']['tmp_name']))\n\t\t\t{\n\t\t\t\t$recipe->photo = file_get_contents($_FILES['photo']['tmp_name']);\n\t\t\t}\n\n\t\t\t// try recipe for validation\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// save recipe \n\t\t\t\t$recipe->save();\n\n\t\t\t\t// add categories\n\t\t\t\tforeach (ORM::factory('Category')->find_all() as $cat)\n\t\t\t\t{\n\t\t\t\t\t// remove category from recipe\n\t\t\t\t\t$recipe->remove('categories', $cat);\n\n\t\t\t\t\t// check if category is wanted\n\t\t\t\t\tif (isset($post['category']) AND in_array($cat->id, $post['category']))\n\t\t\t\t\t{\n\t\t\t\t\t\t// add category to recipe\n\t\t\t\t\t\t$recipe->add('categories', $cat);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// remove all ingredients before re-insertion\n\t\t\t\tDB::delete('recipe_ingredient')\n\t\t\t\t->where('recipe_id', '=', $recipe->id)\n\t\t\t\t->execute();\n\t\n\t\t\t\t// ingredients re-add\n\t\t\t\tforeach ($post['unit'] as $k => $item)\n\t\t\t\t{\n\t\t\t\t\t// check if ingredient has unit and amount defined\n\t\t\t\t\tif ($post['unit'][$k] > 0 AND ! empty( $post['amount'][$k]) AND $post['ingredient'][$k] > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t// load unit object\n\t\t\t\t\t\t$unit = ORM::factory('Unit', $item);\n\n\t\t\t\t\t\t// build data to insert\n\t\t\t\t\t\t$data = array(\n\t\t\t\t\t\t\t'recipe_id' => $recipe->id,\n\t\t\t\t\t\t\t'ingredient_id' => $post['ingredient'][$k],\n\t\t\t\t\t\t\t'unit_id' => $post['unit'][$k],\n\t\t\t\t\t\t\t'amount' => str_replace(' '.__($unit->short), NULL, $post['amount'][$k]),\n\t\t\t\t\t\t\t'group' => '',\n\t\t\t\t\t\t\t'note' => $post['note'][$k]\n\t\t\t\t\t\t);\n\t\n\t\t\t\t\t\t// insert ingredient to relation table\n\t\t\t\t\t\tDB::insert('recipe_ingredient', array_keys($data))\n\t\t\t\t\t\t->values($data)\n\t\t\t\t\t\t->execute();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// get recipe nutritions\n\t\t\t\t$nutritions = $recipe->nutritions();\n\t\t\t\t$recipe->calories = $nutritions['calories'] / $nutritions['weight'] * 100;\n\t\t\t\t$recipe->protein = $nutritions['protein'] / $nutritions['weight'] * 100;\n\t\t\t\t$recipe->fat = $nutritions['fat_total'] / $nutritions['weight'] * 100;\n\t\t\t\t$recipe->carbs = $nutritions['carbohydrate'] / $nutritions['weight'] * 100;\n\t\t\t\t$recipe->sugars = $nutritions['sugars'] / $nutritions['weight'] * 100;\n\t\t\t\t$recipe->save();\n\n\t\t\t\t// set view success\n\t\t\t\t$this->view->success = TRUE;\n\n\t\t\t\tif ($edit == TRUE OR $this->user->logged_in('admin'))\n\t\t\t\t{\n\t\t\t\t\tHTTP::redirect('/recipe/detail/'.$recipe->id);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (ORM_Validation_Exception $e)\n\t\t\t{\n // set errors using custom messages\n $this->view->errors = $e->errors('is/models');\n }\n\t\t}\n\n\t\t// return the recipe OBject\n\t\treturn $recipe;\n\t}", "public function insert() {\n\n // Does the program object already have an ID?\n if ( !is_null( $this->programID ) ) trigger_error ( \"program::insert(): Attempt to insert an program object that already has its ID property set (to $this->id).\", E_USER_ERROR );\n\n // Insert the program\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $sql = \"INSERT INTO programs ( programName, programStart, programFrequency ) VALUES ( :programName, :programStart, :programFrequency )\";\n $st = $conn->prepare ( $sql );\n $st->bindValue( \":programName\", $this->programName, PDO::PARAM_STR );\n $st->bindValue( \":programStart\", $this->programStart, PDO::PARAM_STR );\n\t$st->bindValue( \":programFrequency\", $this->programFrequency, PDO::PARAM_STR );\n $st->execute();\n $this->programID = $conn->lastInsertId();\n $conn = null;\n }", "public function createIngredient($idProduct)\n {\n $pdo = Connection::getPdo();\n try {\n // Create prepared statement\n $sql = \"INSERT INTO ingredient (idProduct) VALUES (?)\";\n\n $stmt = $pdo->prepare($sql);\n\n $values = [$idProduct];\n // Execute the prepared statement\n $success = $stmt->execute($values);\n \n echo \"Records inserted successfully.\";\n } catch (PDOException $e) {\n die(\"ERROR: Could not able to execute $sql. \" . $e->getMessage());\n }\n }", "public function run()\n {\n //\n DB::table('car_to_types')->insert([\n 'car_id' => 1,\n 'car_type_id' => 1,\n ]);\n DB::table('car_to_types')->insert([\n 'car_id' => 1,\n 'car_type_id' => 2,\n ]);\n }", "public function insert()\n {\n $products = [];\n \n // Add products to array\n $products[] = ['name' => 'Ball', 'price' => 2];\n $products[] = ['name' => 'Glove', 'price' => 20];\n \n // Insert products one by one\n foreach ($products as $product) {\n $result = $this->db->insert('products', $product);\n if ($result) {\n echo 'Inserted product: ' . $product['name'];\n } else {\n echo 'Problem inserting product: ' . $product['name'];\n }\n }\n }", "function insert_into_database($journey_times, $dow, $hod) {\n $save_sql = \"INSERT INTO link_times_development (start_stopid,end_stopid,\"\n \t .\"hour,day,link_time) \"\n\t .\"VALUES (:start_stopid, :end_stopid, :hour, :day, :link_time)\";\n\n $save_time = $this->DBH->prepare($save_sql);\n\n foreach($journey_times as $entry) {\n $save_time->bindValue(':start_stopid', $entry['start'],PDO::PARAM_STR);\n $save_time->bindValue(':end_stopid', $entry['end'],PDO::PARAM_STR);\n $save_time->bindValue(':hour', $hod,PDO::PARAM_INT);\n $save_time->bindValue(':day', $dow,PDO::PARAM_INT);\n $save_time->bindValue(':link_time', $entry['average_time']);\n $save_time->execute();\n }\n }", "public function run()\n {\n DB::table('animals')->insert(\n [\n 'name'=>'cachuchin',\n 'gender'=>'F',\n 'arrivalState'=>1,\n 'arrivalDate'=>'01-01-2000',\n 'responsiblePerson'=>'Ana Perez',\n 'responsiblePersonContact'=>'68073431',\n 'responsiblePersonType'=>1,\n 'generalDescription'=>'srkcvgbnmfghjghjbgnhjm',\n 'foundAddress'=>'C. 1 Av. Avenida',\n 'species_id'=>1\n ]\n );\n }", "private function insert($class)\n {\n $insert = array();\n if (Orm::$use_guids) {\n # TODO\n # generate guid\n }\n\n # TODO: parental relationships??????\n\n $properties = self::getProperties($class);\n SSql::query(sprintf(\"INSERT INTO %s (%s) VALUES (%s)\",\n self::classToDbName($class),\n implode(', ', array_map(array($this, 'sqlKey'), $properties)),\n implode(', ', array_map(array($this, 'sqlValue'), $properties))),\n self::getSSqlName($this->setup_name)\n );\n # WORKING_ON\n\n if (!Orm::$use_guids) {\n # TODO\n # get id from db\n }\n }", "public function run()\n {\n DB::table('recipes')->insert([\n [\n 'title' => 'ПАЭЛЬЯ С ОВОЩАМИ',\n 'image' => 'paelja',\n 'product' => '1',\n 'created_at' => date('Y-m-d H:i:s')\n ],\n [\n 'title' => 'УЗБЕКСКИЙ ПЛОВ',\n 'image' => 'plov',\n 'product' => '1',\n 'created_at' => date('Y-m-d H:i:s')\n ],\n [\n 'title' => 'ЗАПЕКАНКА ИЗ МАКАРОН',\n 'image' => 'zapekanka',\n 'product' => '2',\n 'created_at' => date('Y-m-d H:i:s')\n ],\n [\n 'title' => 'СПАГЕТТИ С КУРИЦЕЙ',\n 'image' => 'spagetti',\n 'product' => '3',\n 'created_at' => date('Y-m-d H:i:s')\n ],\n [\n 'title' => 'ГРЕЧНЕВЫЙ СУП',\n 'image' => 'sup',\n 'product' => '4',\n 'created_at' => date('Y-m-d H:i:s')\n ],\n [\n 'title' => 'ТОРТ МЕДОВИК',\n 'image' => 'medovik',\n 'product' => '5',\n 'created_at' => date('Y-m-d H:i:s')\n ],\n [\n 'title' => 'ПИРОГ СО СГУЩЕНКОЙ',\n 'image' => 'pirog',\n 'product' => '6',\n 'created_at' => date('Y-m-d H:i:s')\n ],\n [\n 'title' => 'ГРЕЧКА ПО-КУПЕЧЕСКИ',\n 'image' => 'grechka',\n 'product' => '4',\n 'created_at' => date('Y-m-d H:i:s')\n ],\n [\n 'title' => 'ИТАЛЬЯНСКИЙ САЛАТ С МАКАРОНАМИ',\n 'image' => 'salat',\n 'product' => '2',\n 'created_at' => date('Y-m-d H:i:s')\n ],\n [\n 'title' => 'АМЕРИКАНСКИЕ ПАНКЕЙКИ',\n 'image' => 'pankeiki',\n 'product' => '7',\n 'created_at' => date('Y-m-d H:i:s')\n ]\n ]);\n }", "public function insert() {\n\n // Does the Course object already have an ID?\n if ( !is_null( $this->courseId ) ) trigger_error ( \"Course::insert(): Attempt to insert course object that already has its ID property set (to $this->courseId).\", E_USER_ERROR );\n\n // Insert the course\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $sql = \"INSERT INTO course ( courseCode, courseName, description, headTeacher )\n VALUES (:courseCode,:courseName,:description,:headTeacher)\";\n $st = $conn->prepare ( $sql );\n $st->bindValue( \":courseCode\", $this->courseCode, PDO::PARAM_STR );\n $st->bindValue( \":courseName\", $this->courseName, PDO::PARAM_STR );\n $st->bindValue( \":description\", $this->description, PDO::PARAM_STR );\n $st->bindValue( \":headTeacher\", $this->headTeacher, PDO::PARAM_STR );\n\n $st->execute();\n $this->courseId = $conn->lastInsertId();\n $conn = null;\n }", "protected function _insert()\n {\n \n }", "protected function _insert()\n {\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n /** @var User $user */\n $user = User::create([\n 'name' => 'Logan Bailey',\n 'email' => '[email protected]',\n 'password' => password_hash('password', PASSWORD_DEFAULT)\n ]);\n\n\n $recipes = Yaml::parse(file_get_contents(self::RECIPES));\n foreach ($recipes as $recipe_data) {\n $user->recipes()->create($recipe_data);\n }\n\n }", "protected function saveRelations()\n {\n $spotIdsToRemove = $relationsToAdd = [\n 'photos' => [],\n 'tags' => [],\n 'amenities' => [],\n 'locations' => []\n ];\n // Preparing spots remote photos for insert\n if($this->photos != [])\n {\n foreach($this->photos as $remote_id => $items)\n {\n foreach($items as $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['associated_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['associated_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['photos'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['associated_id']))\n {\n $relationsToAdd['photos'][] = $item;\n }\n }\n }\n }\n // Preparing spots amenities for insert\n if($this->amenities != [])\n {\n foreach($this->amenities as $remote_id => $items)\n {\n foreach($items as $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['spot_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['spot_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['amenities'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['spot_id']))\n {\n $relationsToAdd['amenities'][] = $item;\n }\n }\n }\n }\n // Preparing spots tags for insert\n if($this->tags != [])\n {\n foreach($this->tags as $remote_id => $items)\n {\n foreach($items as $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['spot_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['spot_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['tags'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['spot_id']))\n {\n $relationsToAdd['tags'][] = $item;\n }\n }\n }\n }\n // Preparing spots points for insert\n if($this->locations != [])\n {\n foreach($this->locations as $remote_id => $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['spot_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['spot_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['locations'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['spot_id']))\n {\n $relationsToAdd['locations'][] = $item;\n }\n }\n }\n // Database transaction to remove all old relations of existing spots and add new relations for inserted and updated spots\n DB::transaction(function() use ($spotIdsToRemove, $relationsToAdd) {\n if($spotIdsToRemove['photos'] != [])\n {\n DB::table('remote_photos')->whereIn('associated_id', $spotIdsToRemove['photos'])->where('associated_type', Spot::class)->delete();\n }\n if($spotIdsToRemove['amenities'] != [])\n {\n DB::table('spot_amenities')->whereIn('spot_id', $spotIdsToRemove['amenities'])->delete();\n }\n if($spotIdsToRemove['tags'] != [])\n {\n DB::table('spot_tag')->whereIn('spot_id', $spotIdsToRemove['tags'])->delete();\n }\n if($spotIdsToRemove['locations'] != [])\n {\n DB::table('spot_points')->whereIn('spot_id', $spotIdsToRemove['locations'])->delete();\n }\n if($relationsToAdd['photos'] != [])\n {\n DB::table('remote_photos')->insert($relationsToAdd['photos']);\n }\n if($relationsToAdd['amenities'] != [])\n {\n DB::table('spot_amenities')->insert($relationsToAdd['amenities']);\n }\n if($relationsToAdd['tags'] != [])\n {\n DB::table('spot_tag')->insert($relationsToAdd['tags']);\n }\n if($relationsToAdd['locations'] != [])\n {\n DB::table('spot_points')->insert($relationsToAdd['locations']);\n }\n });\n }", "protected function createNew() {\n $this->db->insert($this->tableName, $this->mapToDatabase());\n $this->id = $this->db->insert_id();\n }", "public function p_newentry($trip_id) {\n if (empty($_POST['title'])) {\n Router::redirect(\"/trips/newentry/blank\");\n }\n \n $here = Geolocate::locate();\n $_POST['state'] = $here['state'];\n $_POST['city'] = $here['city'];\n $_POST['ip'] = $here['ip'];\n\n # Associate this trip with this user\n $_POST['user_id'] = $this->user->user_id;\n\n # Unix timestamp of when this trip was created / modified\n $_POST['created'] = Time::now();\n $_POST['modified'] = Time::now();\n\n $_POST['pic_id'] = \"\";\n $_POST['trip_id'] = $trip_id;\n $_POST['vid'] = \"\";\n $_POST['comment_id'] = \"\";\n\n DB::instance(DB_NAME)->insert(\"entries\", $_POST);\n\n Router::redirect(\"/trips/dashboard/\".$trip_id);\n }", "abstract public function insert(string $table, array $row, array $options = []);", "private function InsertInRealtor()\n {\n $sql = $this->db->prepare('INSERT INTO realtor(name, surname, patronymic, salary, phone_number) VALUES(:name, :surname, :patronymic, :salary, :phone_number)');\n $sql->bindParam(':name', $this->identity->name);\n $sql->bindParam(':surname', $this->identity->surname);\n $sql->bindParam(':patronymic', $this->identity->patronymic);\n $sql->bindParam(':phone_number', $this->identity->phone_number);\n \n try {\n $sql->execute();\n } catch (\\PDOException $e) {\n $errorMessage = get_class() . \"Registration::InsertInRealtor: PDOException was throwed during DB insertion. Information about error: {$e->errorInfo()[2]}\";\n\n core\\Logger::CatchError($erorMessage);\n return false;\n }\n\n return true;\n }", "public function setIngredients(){\n $igr_name = $this->input->post('name');\n $igr_description = $this->input->post('description');\n $igr_img = $this->input->post('image');\n $igr_linecolor = intval($this->input->post('line_color'));\n $igr_backcolor = intval($this->input->post('back_color'));\n $fruity = $this->input->post('fruity');\n $green = $this->input->post('green');\n $roasted = $this->input->post('roasted');\n\n $sql = \"INSERT INTO ingredients (igr_name, igr_description, igr_img, igr_linecolor, igr_backcolor, fruity, green, roasted) \n VALUES('\" . $igr_name . \"', \n '\" . $igr_description . \"', \n '\" . $igr_img . \"', \n '\" . $igr_linecolor . \"', \n '\" . $igr_backcolor . \"', \n '\" . $fruity . \"', \n '\" . $green . \"', \n '\" . $roasted . \"')\"; \n $result = $this->db->query($sql); \n return $result;\n }" ]
[ "0.7496522", "0.71235436", "0.709421", "0.66401243", "0.6377544", "0.6308364", "0.6137448", "0.6108412", "0.60540175", "0.6043427", "0.6037427", "0.5942745", "0.583216", "0.57809657", "0.5714664", "0.5703722", "0.5673432", "0.5673381", "0.56698585", "0.56688255", "0.56532764", "0.5639326", "0.55956036", "0.5569567", "0.548413", "0.54515195", "0.54246545", "0.5422112", "0.54189324", "0.54121965", "0.5411526", "0.53818786", "0.5366779", "0.5349224", "0.53318894", "0.5330323", "0.53176284", "0.5315285", "0.52973354", "0.5292715", "0.5272767", "0.52688724", "0.5255729", "0.5240999", "0.5233225", "0.52315366", "0.52212614", "0.52135503", "0.5202517", "0.5201996", "0.5185668", "0.5177039", "0.5157596", "0.5151004", "0.5150322", "0.5137263", "0.5134035", "0.5117631", "0.5110372", "0.5108674", "0.5098603", "0.5098152", "0.5094712", "0.5093466", "0.50908124", "0.50894463", "0.50746256", "0.50636023", "0.5059905", "0.5054204", "0.5054049", "0.5052637", "0.50478905", "0.5040613", "0.50386363", "0.50375086", "0.50314605", "0.50233823", "0.5014642", "0.50105476", "0.500905", "0.50044346", "0.49998412", "0.49949306", "0.49857274", "0.49843642", "0.4977721", "0.49765822", "0.49732473", "0.49728936", "0.49724877", "0.4972149", "0.4972149", "0.4971797", "0.4970265", "0.4966273", "0.49647933", "0.49601126", "0.49538732", "0.49532866" ]
0.6410849
4
Updates recipe specified by rid in parameters Performs 1 update for 'recipe' table, and 1 for each 'ingredients' and 1 for each 'directions'
public function updateRecipe($data) { // Prepare sql query for new recipe entry $this->db->query('UPDATE recipes SET title=:title, description=:description, prepTime=:prepTime, servingSize=:servingSize, link=:link WHERE rid=:rid;'); // Bind values for prepared statement $this->db->bind(':title', $data['title']); $this->db->bind(':description', $data['description']); $this->db->bind(':prepTime', $data['prepTime']); $this->db->bind(':servingSize', $data['servingSize']); $this->db->bind(':link', $data['link']); $this->db->bind(':rid', $data['rid']); // Execute query try { $this->db->execute(); } catch (PDOException $e) { echo '</br>FAILED recipe: ' . $e->getMessage() . '</br>'; return false; } // Update Ingredients table for($i = 0; $i < count($data['ingredients']); $i++) { $this->db->query('UPDATE ingredients SET value=:value WHERE rid=:rid AND ingredientid=:iid;'); $this->db->bind(':value', $data['ingredients'][$i]); $this->db->bind(':rid', $data['rid']); $this->db->bind(':iid', $i+1); $this->db->execute(); } // Update Directions table for($i = 0; $i < count($data['directions']); $i++) { $this->db->query('UPDATE directions SET description=:desc WHERE rid=:rid AND stepNum=:stepNum;'); $this->db->bind(':desc', $data['directions'][$i]); $this->db->bind(':rid', $data['rid']); $this->db->bind(':stepNum', $i+1); $this->db->execute(); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update() {\n\t\tglobal $DB_LINK, $db_table_recipes, $LangUI;\n\t\t$sql = \"\n\t\t\tUPDATE $db_table_recipes\n\t\t\tSET recipe_name='\".$DB_LINK->addq($this->name, get_magic_quotes_gpc()).\"',\n\t\t\t\trecipe_ethnic='\".$DB_LINK->addq($this->ethnic, get_magic_quotes_gpc()).\"',\n\t\t\t\trecipe_base=\".$DB_LINK->addq($this->base, get_magic_quotes_gpc()).\",\n\t\t\t\trecipe_course=\".$DB_LINK->addq($this->course, get_magic_quotes_gpc()).\",\n\t\t\t\trecipe_prep_time=\".$DB_LINK->addq($this->prep_time, get_magic_quotes_gpc()).\",\n\t\t\t\trecipe_difficulty=\".$DB_LINK->addq($this->difficulty, get_magic_quotes_gpc()).\",\n\t\t\t\trecipe_directions='\".$DB_LINK->addq($this->directions, get_magic_quotes_gpc()).\"',\n\t\t\t\trecipe_comments='\".$DB_LINK->addq($this->comments, get_magic_quotes_gpc()).\"',\n\t\t\t\trecipe_serving_size=\".$DB_LINK->addq($this->serving_size, get_magic_quotes_gpc()).\",\n\t\t\t\trecipe_source_desc='\".$DB_LINK->addq($this->source_desc, get_magic_quotes_gpc()).\"',\n\t\t\t\trecipe_source=\".$DB_LINK->addq($this->source, get_magic_quotes_gpc()).\",\n\t\t\t\trecipe_private='\".$DB_LINK->addq($this->private, get_magic_quotes_gpc()).\"',\n\t\t\t\trecipe_modified=$this->modified,\n\t\t\t\trecipe_user='\".$DB_LINK->addq($this->user, get_magic_quotes_gpc()).\"'\n\t\t\t\tWHERE recipe_id=\".$DB_LINK->addq($this->id, get_magic_quotes_gpc()).\"\";\n\n\t\t$rc = $DB_LINK->Execute($sql);\n\t\tDBUtils::checkResult($rc, $LangUI->_('Recipe Successfully updated') . \": \". $this->name,\n\t\t\t$LangUI->_('There was an error updating the recipe'), $sql);\n\t}", "public function update($recipe){\n $query = $this->db\n ->prepare('UPDATE recipes\n SET\n name = ?,\n directions = ?,\n servings = ?,\n source = ?,\n notes = ?\n WHERE id = ?\n ');\n\n // @ operator to suppress bind_param asking for variables by reference\n // See: https://stackoverflow.com/questions/13794976/mysqli-prepared-statement-complains-that-only-variables-should-be-passed-by-ref\n @$query->bind_param(\"ssissi\",\n $recipe->getName(),\n $recipe->getDirections(),\n $recipe->getServings(),\n $recipe->getSource(),\n $recipe->getNotes(),\n $recipe->getId()\n );\n $bool = $query->execute();\n\n if(!$bool) {\n $error = $query->error;\n echo \"\\n\" . __CLASS__ .\"::\" . __FUNCTION__ . \":\" . $error . \"\\n\";\n }\n return $bool;\n\n }", "public function updateRecipe(Request $request)\n {\n $user = Auth::user();\n $userId = $user->id;\n $recipeId = $request->input('id');;\n $name = $request->input('name');\n $preparation_time = $request->input('preparation_time');\n $cooking_time = $request->input('cooking_time');\n $description = $request->input('description');\n\n DB::update('UPDATE recipes SET name=?, preparation_time=?, cooking_time=?, description=?, updated_at = NOW() WHERE id=? AND user_id=?', [$name, $preparation_time, $cooking_time, $description, $recipeId, $userId]);\n\n ///Update data in recipes_ingredients table\n $ingredientsToUpdate = $request->input('ingredientsToUpdate');\n\n for ($i = 0; $i < count($ingredientsToUpdate); $i++) {\n $quantity = $ingredientsToUpdate[$i]['quantity'];\n $ingredientId = $ingredientsToUpdate[$i]['ingredients_id'];\n\n DB::update('UPDATE recipes_ingredients SET quantity=? WHERE recipes_id=? AND ingredients_id=?', [$quantity, $recipeId, $ingredientId]);\n }\n\n //If there are ingredients to delete, delete ingredients from recipes_ingredients table\n $ingredientsToDelete = $request->input('ingredientsToDelete');\n\n if ($ingredientsToDelete != null) {\n for ($i = 0; $i < count($ingredientsToDelete); $i++) {\n $ingredientId = $ingredientsToDelete[$i]['ingredients_id'];\n\n DB::delete('DELETE FROM recipes_ingredients WHERE recipes_id=? AND ingredients_id=?', [$recipeId, $ingredientId]);\n }\n }\n\n //If user create new ingredients, send data to recipes_ingredients table\n $ingredientsToAdd = $request->input('ingredientsToAdd');\n\n if ($ingredientsToAdd != null) {\n for ($i = 0; $i < count($ingredientsToAdd); $i++) {\n $ingredientId = $ingredientsToAdd[$i]['ingredients_id'];\n $quantity = $ingredientsToAdd[$i]['quantity'];\n\n DB::insert('INSERT INTO recipes_ingredients SET ingredients_id=?, quantity=?, recipes_id=?', [$ingredientId, $quantity, $recipeId]);\n }\n }\n\n return redirect()->route('recipes');\n }", "function ciniki_recipes_recipeUpdate(&$ciniki) {\n // \n // Find all the required and optional arguments\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Tenant'), \n 'recipe_id'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Recipe'), \n 'name'=>array('required'=>'no', 'blank'=>'no', 'name'=>'Name'), \n 'primary_image_id'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Image'),\n 'num_servings'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Number of Servings'), \n 'webflags'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Web Flags'), \n 'prep_time'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Prep Time'), \n 'roast_time'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Roast Time'), \n 'cook_time'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Cook Time'), \n 'synopsis'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Synopsis'), \n 'description'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Description'), \n 'ingredients'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Ingredients'), \n 'instructions'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Instructions'), \n 'notes'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Notes'), \n 'tag-10'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'list', 'delimiter'=>'::', 'name'=>'Meals'),\n 'tag-20'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'list', 'delimiter'=>'::', 'name'=>'Ingredients'),\n 'tag-30'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'list', 'delimiter'=>'::', 'name'=>'Cuisines'),\n 'tag-40'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'list', 'delimiter'=>'::', 'name'=>'Methods'),\n 'tag-50'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'list', 'delimiter'=>'::', 'name'=>'Occasions'),\n 'tag-60'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'list', 'delimiter'=>'::', 'name'=>'Diets'),\n 'tag-70'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'list', 'delimiter'=>'::', 'name'=>'Seasons'),\n 'tag-80'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'list', 'delimiter'=>'::', 'name'=>'Collections'),\n 'tag-90'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'list', 'delimiter'=>'::', 'name'=>'Products'),\n 'tag-100'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'list', 'delimiter'=>'::', 'name'=>'Contributors'),\n )); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n $args = $rc['args'];\n\n // \n // Make sure this module is activated, and\n // check permission to run this function for this tenant\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'recipes', 'private', 'checkAccess');\n $rc = ciniki_recipes_checkAccess($ciniki, $args['tnid'], 'ciniki.recipes.recipeUpdate'); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n\n if( isset($args['name']) ) {\n $args['permalink'] = preg_replace('/ /', '-', preg_replace('/[^a-z0-9 ]/', '', strtolower($args['name'])));\n //\n // Make sure the permalink is unique\n //\n $strsql = \"SELECT id, name, permalink FROM ciniki_recipes \"\n . \"WHERE tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND permalink = '\" . ciniki_core_dbQuote($ciniki, $args['permalink']) . \"' \"\n . \"AND id <> '\" . ciniki_core_dbQuote($ciniki, $args['recipe_id']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.recipes', 'recipe');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( $rc['num_rows'] > 0 ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.recipes.16', 'msg'=>'You already have a recipe with this name, please choose another name'));\n }\n }\n\n // \n // Turn off autocommit\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbTransactionStart');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbTransactionRollback');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbTransactionCommit');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbQuote');\n $rc = ciniki_core_dbTransactionStart($ciniki, 'ciniki.recipes');\n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n\n //\n // Update the recipe\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'objectUpdate');\n $rc = ciniki_core_objectUpdate($ciniki, $args['tnid'], 'ciniki.recipes.recipe', \n $args['recipe_id'], $args);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n\n //\n // Update the tags\n //\n $tag_types = array(\n '10'=>'meals',\n '20'=>'mainingredients',\n '30'=>'cuisines',\n '40'=>'methods',\n '50'=>'occasions',\n '60'=>'diets',\n '70'=>'seasons',\n '80'=>'collections',\n '90'=>'products',\n '100'=>'contributors',\n );\n foreach($tag_types as $tag_type => $arg_name) {\n if( isset($args['tag-' . $tag_type]) ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'tagsUpdate');\n $rc = ciniki_core_tagsUpdate($ciniki, 'ciniki.recipes', 'tag', $args['tnid'],\n 'ciniki_recipe_tags', 'ciniki_recipe_history',\n 'recipe_id', $args['recipe_id'], $tag_type, $args['tag-' . $tag_type]);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.recipes');\n return $rc;\n }\n }\n }\n\n //\n // Commit the database changes\n //\n $rc = ciniki_core_dbTransactionCommit($ciniki, 'ciniki.recipes');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n\n //\n // Update the last_change date in the tenant modules\n // Ignore the result, as we don't want to stop user updates if this fails.\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'tenants', 'private', 'updateModuleChangeDate');\n ciniki_tenants_updateModuleChangeDate($ciniki, $args['tnid'], 'ciniki', 'recipes');\n\n return array('stat'=>'ok');\n}", "public function updateRecipeIngredient($recipeIngredientId, $amountGrams);", "public function update($reign_id, $attributes);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'title' => 'required',\n 'category' => 'required',\n 'time' => 'required',\n 'difficulty' => 'required',\n 'preparation' => 'required',\n // 'cover' => 'required',\n 'ingrdient' => 'required',\n 'persons' => 'required',\n ] , [\n 'title.required' => 'Ingresa el título de la receta',\n 'category.required' => 'Selecciona la categoría de la receta',\n 'time.required' => 'Ingresa el tiempo de preparación de la receta',\n 'difficulty.required' => 'Selecciona la dificultad de la receta',\n 'preparation.required' => 'Ingresa el método de preparación de la receta',\n 'cover.required' => 'Ingresa la imagen de la receta',\n 'ingrdient.required' => 'Ingresa los ingredientes de la receta',\n 'persons.required' => 'Ingresa el número de personas de la receta',\n ]);\n\n\n $r = Recipe::find($id);\n $r->title = $request->title;\n $r->category_id = $request->category;\n $r->time = $request->time;\n $r->difficulty = $request->difficulty;\n $r->preparation = $request->preparation;\n $r->persons = $request->persons;\n\n $old_i = RecipeIngredient::where('recipe_id' , $r->id)->get();\n\n if (count($old_i) > 0) {\n foreach ($old_i as $o_i) {\n $o_i->delete();\n }\n }\n\n foreach ($request->ingrdient as $i) {\n $ri = new RecipeIngredient;\n $ri->recipe_id = $r->id;\n $ri->item = $i;\n $ri->save();\n }\n\n if ($request->cover) {\n @unlink(public_path().'/files/recipes/'.$r->cover);\n $name_cover = md5(uniqid().$request->cover->getClientOriginalName()).'.'.$request->cover->getClientOriginalExtension();\n $r->cover = $name_cover;\n $request->cover->move(public_path().'/files/recipes/' , $name_cover);\n }\n \n $r->save();\n\n return back()->with('msj' , 'Receta actualizada exitosamente');\n }", "public function update(Request $request, $id) {\n $validator = Validator::make($request->all(), [\n 'nom' => 'required',\n 'description' => 'required',\n 'prix' => 'min:1|max:5',\n 'difficulte' => 'min:1|max:5',\n 'nbre_personnes' => 'min:1',\n 'image' => 'url'\n ]);\n\n if ($validator->fails()) {\n return redirect('recettes/' . $id . '/edit')->withErrors($validator);\n } else {\n $recette = Recette::findOrFail($id);\n $recette->nom = $request['nom'];\n $recette->description = $request['description'];\n $recette->prix = $request['prix'];\n $recette->difficulte = $request['difficulte'];\n $recette->nbre_personnes = $request['nbre_personnes'];\n $recette->calories = 0;\n $recette->lipides = 0;\n $recette->glucides = 0;\n $recette->protides = 0;\n $recette->duree_totale = 0;\n $recette->save();\n\n $recette->ingredients()->detach();\n //ajout des ingrédients\n $nbr_ing = count($request->ingredient_id);\n for ($i=0; $i<$nbr_ing; $i++) {\n //avoid duplicates entries\n $exists = $recette->ingredients()\n ->where('id_ingredients', $request->ingredient_id[$i])\n ->exists();\n\n if(!$exists) {\n $ingredient = Ingredient::find($request->ingredient_id[$i]);\n $ingredient_qte = $request->ingredient_qte[$i];\n\n //on suppose que les infos d'un ing. sont stockées pour une qté de 1\n $recette->calories += ($ingredient->calories * $ingredient_qte)/$recette->nbre_personnes;\n $recette->glucides += ($ingredient->glucides * $ingredient_qte)/$recette->nbre_personnes;\n $recette->protides += ($ingredient->protides * $ingredient_qte)/$recette->nbre_personnes;\n $recette->lipides += ($ingredient->lipides * $ingredient_qte)/$recette->nbre_personnes;\n\n $recette->ingredients()->attach($request->ingredient_id[$i], [\n 'id_recettes' => $recette->id,\n 'quantite' => $ingredient_qte\n ]);\n }\n }\n\n Etape::where('id_recettes', $recette->id)->delete();\n //ajout des étapes\n $nbr_etapes = count($request->etapes_new);\n\n for ($i=0; $i<$nbr_etapes; $i++) {\n if($request->etapes_new[$i] != NULL) {\n $etape = new Etape;\n $etape->description = $request->etapes_new[$i];\n $etape->nom = $request->titres[$i];\n $etape->duree = $request->durees[$i];\n $etape->ordre = $i;\n $etape->id_recettes = $recette->id;\n $etape->id_etape_types = $request->type[$i];\n $etape->save();\n\n $recette->duree_totale += $etape->duree;\n }\n }\n\n Media::where('id_recettes', $recette->id)->delete();\n //ajout de l'image\n $image = new Media;\n $image->url = $request->image;\n $image->id_recettes = $recette->id;\n $image->id_media_types = 1;\n $image->save();\n\n $recette->save();\n\n return redirect('recettes');\n }\n }", "public static function updateServings(int $id, int $servings, mysqli $db) {\n\t\tif($update = $db->prepare('update recipe set servings=? where id=? limit 1'))\n\t\t\tif($update->bind_param('ii', $servings, $id))\n\t\t\t\tif($update->execute())\n\t\t\t\t\t$update->close();\n\t\t\t\telse\n\t\t\t\t\tself::DatabaseError('Error updating recipe servings', $update);\n\t\t\telse\n\t\t\t\tself::DatabaseError('Error binding parameters to update recipe servings', $update);\n\t\telse\n\t\t\tself::DatabaseError('Error preparing to update recipe servings', $db);\n\t}", "function updateRecipe($id, $name,$url,$img,$time,$instructions){\n\t\t if(($name != NULL) && ($id != NULL))\n\t\t { \n\t\t $count = @mysql_query(\"SELECT COUNT(*) as count FROM Recipes WHERE (RecipeID = '$id')\");\n\t\t $countdata = mysql_fetch_assoc($count);\n\t\t if($countdata['count'] <= 0)\n\t\t print \"Recipe doesn't exist\";\n\t\t else\n\t\t @mysql_query(\"UPDATE Recipes SET RecipeName = $name,\n \t\t\t URL = '$url', Image = '$img', TotalCookingTime = '$time',\n\t\t\t\t\t\t\t Instructions = '$instructions' WHERE (RecipeID = '$id')\");\n\t }\n\t}", "public function update(Request $request, Instruction $instruction, $recipe_id, $id)\n {\n $instruction = Instruction::find($id);\n $instruction->description = $request->description;\n $instruction->update();\n }", "function UpdateIngredientRecipe($recipe, $old, $ingredient, $qty, $units){\n\t $recipeid = $this->getRecipeID($recipe);\n\t if(($recipeid != NULL) && ($ingredient != NULL) && ($old != NULL) && ($qty !=NULL) && ($units != NULL))\n\t\t{ \n\t\t if($qty <= 0)\n\t\t return;\n\t\t $count = @mysql_query(\"SELECT COUNT(*) as count FROM Ingredients WHERE (Recipe = '$recipeid' AND IngredientName = '$old')\");\n\t\t $countdata = mysql_fetch_assoc($count);\n\t\t if($countdata['count'] <= 0)\n\t\t print \"Item doesn't exist\";\n\t\t\telse\n\t\t @mysql_query(\"UPDATE Ingredients SET IngredientName = $ingredient,\n \t\t\t Quantity ='$qty', Units = '$units'\n\t\t\t\t\t\t\t WHERE (Recipe = '$recipeid' AND IngredientName = '$old')\");\n\t }\n\t}", "public function createNewRecipe($data) {\n // Get id of new recipe\n $this->db->query('SELECT rid FROM recipes WHERE rid=(SELECT MAX(rid) FROM recipes)');\n $this->db->execute();\n $row = $this->db->single();\n // Increment recipe id\n $newRecipeID = $row->rid + 1;\n\n // Upload image and return path\n $imgPath = $this->uploadImage($newRecipeID, $data['uid'], $data['img']);\n\n // Prepare sql query for new recipe entry\n $this->db->query('INSERT INTO recipes (rid,title,ownerid,description,prepTime,servingSize,imagePath,link) VALUES(:rid,:title,:uid,:description,:prepTime,:servingSize,:imagePath,:link);');\n // Bind values for prepared statement\n $this->db->bind(':rid', $newRecipeID);\n $this->db->bind(':uid', $data['uid']);\n $this->db->bind(':title', $data['title']);\n $this->db->bind(':description', $data['description']);\n $this->db->bind(':prepTime', $data['prepTime']);\n $this->db->bind(':servingSize', $data['servingSize']);\n $this->db->bind(':imagePath', $imgPath);\n $this->db->bind(':link', $data['link']);\n // Execute query\n try {\n $this->db->execute();\n } catch (PDOException $e) {\n echo '</br>FAILED recipe: ' . $e->getMessage() . '</br>';\n return false;\n }\n\n // Insert ingredients\n $ingredQueryArray = $this->convertIngredientsFormat($newRecipeID, $data['ingredients']);\n $ingredQueryString = 'INSERT INTO ingredients (rid,ingredientid,value) VALUES ' . implode(\", \", $ingredQueryArray) . ';';\n // echo $ingredQueryString;\n $this->db->query($ingredQueryString);\n // Bind all values in ingredients query\n for($i = 0; $i < count($ingredQueryArray); $i++) {\n $this->db->bind(':value' . ($i + 1), $data['ingredients'][$i]);\n }\n // Execute query\n try {\n $this->db->execute();\n } catch (PDOException $e) {\n echo '</br>FAILED ingredients: ' . $e->getMessage() . '</br>';\n return false;\n }\n\n // Insert directions\n $direcQueryArray = $this->convertDirectionsFormat($newRecipeID, $data['directions']);\n $direcQueryString = 'INSERT INTO directions (rid,stepNum,description) VALUES ' . implode(\", \", $direcQueryArray) . ';';\n // echo $direcQueryString;\n $this->db->query($direcQueryString);\n // Bind all values in ingredients query\n for($i = 0; $i < count($direcQueryArray); $i++) {\n $this->db->bind(':value' . ($i + 1), $data['directions'][$i]);\n }\n // Execute query\n try {\n $this->db->execute();\n } catch (PDOException $e) {\n echo '</br>FAILED directions: ' . $e->getMessage() . '</br>';\n return false;\n }\n\n return true;\n }", "public function edit(Recipe $recipe)\n {\n //\n }", "public function edit(Recipe $recipe)\n {\n //\n }", "public function ActualizarIngredientes()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"codingrediente\"]) or empty($_POST[\"nomingrediente\"]) or empty($_POST[\"cantingrediente\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\t$sql = \" select nomingrediente from ingredientes where codingrediente != ? and nomingrediente = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array($_POST[\"codingrediente\"], $_POST[\"nomingrediente\"]) );\n\t$num = $stmt->rowCount();\n\tif($num == 0)\n\t{\n\t\t$sql = \" update ingredientes set \"\n\t\t.\" nomingrediente = ?, \"\n\t\t.\" cantingrediente = ?, \"\n\t\t.\" costoingrediente = ?, \"\n\t\t.\" unidadingrediente = ?, \"\n\t\t.\" codproveedor = ?, \"\n\t\t.\" stockminimoingrediente = ? \"\n\t\t.\" where \"\n\t\t.\" codingrediente = ?;\n\t\t\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1, $nomingrediente);\n\t\t$stmt->bindParam(2, $cantingrediente);\n\t\t$stmt->bindParam(3, $costoingrediente);\n\t\t$stmt->bindParam(4, $unidadingrediente);\n\t\t$stmt->bindParam(5, $codproveedor);\n\t\t$stmt->bindParam(6, $stockminimoingrediente);\n\t\t$stmt->bindParam(7, $codingrediente);\n\n\t\t$nomingrediente = strip_tags($_POST[\"nomingrediente\"]);\n\t\t$cantingrediente = strip_tags($_POST[\"cantingrediente\"]);\n\t\t$costoingrediente = strip_tags($_POST[\"costoingrediente\"]);\n\t\t$unidadingrediente = strip_tags($_POST[\"unidadingrediente\"]);\n\t\t$codproveedor = strip_tags($_POST[\"codproveedor\"]);\n\t\t$stockminimoingrediente = strip_tags($_POST[\"stockminimoingrediente\"]);\n\t\t$codingrediente = strip_tags($_POST[\"codingrediente\"]);\n\t\t$stmt->execute();\n\n\t\techo \"<div class='alert alert-info'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<span class='fa fa-check-square-o'></span> EL INGREDIENTE FUE ACTUALIZADO EXITOSAMENTE\";\n\t\techo \"</div>\";\n\t\texit;\n\t}\n\telse\n\t{\n\t\techo \"2\";\n\t\texit;\n\t}\n}", "public function assignRecipeIngredientToRecipe($recipeId, RecipeIngredient $recipeIngredient): RecipeIngredient;", "public function editAction(){\n\t\t$recipe = new Recipe();\n\t\t\n\t\t//updating the meal\n\t\tif ($this->_request->isPost()) {\n\t\n\t\t\t$data = $this->_validateRecipe();\n\t\t\t//if no errors validating fields add recipe\n\t\t\tif ($this->view->errorMsg == null) {\n\t\t\t\t$recipe_id = $this->_request->getPost('recipe_idTF');\n\t\t\t\t\n\t\t\t\t//make sure recipe with this name does not already exist\n\t\t\t\t$where = array(\n\t\t\t\t\t$recipe->getAdapter()->quoteInto('user_id = ?', $this->session->user_id),\n\t\t\t\t\t$recipe->getAdapter()->quoteInto('recipe_id != ?', $recipe_id),\n\t\t\t\t\t$recipe->getAdapter()->quoteInto('title = ?', $data['recipe']['title']),\n\t\t\t\t\t'status is null'\n\t\t\t\t); \n\t\t\t\t$recipe_row = $recipe->fetchRow($where);\n\t\t\t\tif($recipe_row != null){\n\t\t\t\t\t$this->view->errorMsg = 'Meal \"'.$data['recipe']['title'].'\" already exists, please use a different title.';\n\t\t\t\t\t$data['recipe']['recipe_id'] = $recipe_id;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//update recipe\n\t\t\t\t\t$where = $recipe->getAdapter()->quoteInto('recipe_id = ?', $recipe_id);\n\t\t\t\t\t$recipe->update($data['recipe'], $where);\n\t\n\t\t\t\t\t//delete old recipexquantityxingredients\n\t\t\t\t\t$rxqxi = new RecipexQuantityxIngredient();\n\t\t\t\t\t$where = $rxqxi->getAdapter()->quoteInto('recipe_id = ?', $recipe_id);\n\t\t\t\t\t$rxqxi->delete($where);\n\t\t\t\t\t\n\t\t\t\t\t$this->_saveRecipexQuantityxIngredient($recipe_id, $data);\n\t\t\n\t\t\t\t\t//if successful, redirect to main page\n\t\t\t\t \t$this->_redirect($this->baseUrl.'/meals');\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t$this->view->recipe_data = $data;\t\t\n\t\t}\n\t\t//get meal to display in edit form\n\t\telse{\n\t\t\t$filter = new Zend_Filter_StripTags();\n\t\t\t$id = trim($filter->filter($this->_request->getQuery('id')));\n\t\t\tif($id != null){\n\t\t\t\t$where = $recipe->getAdapter()->quoteInto('recipe_id = ?', $id);\n\t\t\t\t$row = $recipe->fetchRow($where);\n\t\t\n\t\t\t\t$data = $this->_getRecipe($row);\n\t\t\t\t$this->view->recipe_data = $data;\n\t\t\n\t\t\t}\n\t\t}\n\t\n\n\t\t//populate amounts and ingredients for autocomplete textfields (COPY&PASTE = YUCK!)\n \t$ingredient_arr = array();\n \t$ingredient = new Ingredient();\n\t\t$ingredient_rs = $ingredient->fetchAll();\n\t\t$i = 0;\n\t\twhile($ingredient_rs->valid()){\n\t\t\t$ingredient = $ingredient_rs->current();\n\t\t\t$ingredient_arr[$i] = $ingredient->name;\n\t\t\t$i++;\n\t\t\t$ingredient_rs->next();\n\t\t}\n \t$this->view->ingredient_data = $ingredient_arr;\n\t\n \t$amount_arr = array();\n \t$quantity = new Quantity();\n\t\t$quantity_rs = $quantity->fetchAll();\n\t\t$i = 0;\n\t\twhile($ingredient_rs->valid()){\n\t\t\t$amount = $quantity_rs->current();\n\t\t\tif($amount->measure != null) $amount_arr[$i] = $this->_convertd2f($amount->amount).' '.$amount->measure;\n\t\t\telse $amount_arr[$i] = $amount->amount;\n\t\t\t$i++;\n\t\t\t$quantity_rs->next();\n\t\t}\n \t$this->view->amount_data = $amount_arr;\n \t\n \t\n \t\n \t// additional view fields required by form\n\t\t$this->view->action = 'edit';\n\t\t$this->_helper->viewRenderer->setNoRender();\n\t\t$this->render('add');\n }", "public function updaterecord( Request $r,$rid)\n {\n //checking whether we are getting edited vlues in the controller\n $t=task::find($rid);\n $t->title= $r->input('title');\n \n $t->detail= $r->input('detail');\n \n $t->date= $r->input('date');\n \n $res= $t->save();//insert function\n if($res==1)\n {\n //echo\"Record inserted Suceefully\";\n return redirect('home');\n }\n else\n {\n echo\"Failed to update the record\";\n }\n\n\n }", "public function update(Request $request, Recipe $recipe)\n {\n /*if($recipe->update($request->validate([\n 'name' => 'required',\n 'description' => 'required'\n ]))){\n return response(['message' => \"Recipe successfully updated!\"], 200)\n ->header('Content-Type', 'application/json');\n }else\n abort('500');\n */\n return $recipe->update($request->validate([\n 'name' => 'required',\n 'description' => 'required'\n ]));\n\n }", "public function update(Request $request, Recipe $recipe)\n {\n \\Log::info(json_encode($request));\n\n \\DB::transaction(function() use($request) {\n $steps = $request->get(\"steps\");\n });\n\n return response()->json();\n }", "public function editRent($args = []){\r\n\t\ttry {\r\n\t\t\t$conn = $this->connect();\r\n\t\t\t$sql = \"UPDATE rent\" \r\n\t\t\t\t\t.\"SET\" \r\n\t\t\t\t\t.\"rent_name = :rent_name, price = :price, type_id= :type_id, square = :square,\" \r\n\t\t\t\t\t.\"describe_rent = :describe_rent, post_time = :post_time, drop_time = :drop_time,\"\r\n\t\t\t\t\t.\"status = :status, user_id = :user_id, province_id = :province_id, district_id = :district_id,\" \r\n\t\t\t\t\t.\"ward_id = :ward_id, address_detail = :address_detail\" \r\n\t\t\t\t\t.\"WHERE rent_id = :rent_id\";\r\n\t\t\t$stmt = $conn->prepare($sql);\r\n\t\t\t$stmt->bindParam(':rent_name',$args['rent_name']);\r\n\t\t\t$stmt->bindParam(':price',$args['price']);\r\n\t\t\t$stmt->bindParam(':type_id',$args['type_id']);\r\n\t\t\t$stmt->bindParam(':square',$args['square']);\r\n\t\t\t$stmt->bindParam(':describe_rent',$args['describe_rent']);\r\n\t\t\t$stmt->bindParam(':post_time',$args['post_time']);\r\n\t\t\t$stmt->bindParam(':drop_time',$args['drop_time']);\r\n\t\t\t$stmt->bindParam(':status',$args['status']);\r\n\t\t\t$stmt->bindParam(':user_id',$args['user_id']);\r\n\t\t\t$stmt->bindParam(':province_id',$args['province_id']);\r\n\t\t\t$stmt->bindParam(':district_id',$args['district_id']);\r\n\t\t\t$stmt->bindParam(':ward_id',$args['ward_id']);\r\n\t\t\t$stmt->bindParam(':address_detail',$args['address_detail']);\r\n\t\t\t$stmt->bindParam(':rent_id',$args['rent_id']);\t\t\t\r\n\t\t\t$stmt->execute();\r\n\t\t\treturn true;\r\n\t }catch(PDOException $e){\t \t\r\n\t \treturn false;//error 404\r\n\t }\r\n\t}", "function addIngredientToRecipe($recipe, $ingredient, $qty, $units){\n\t $recipeid = $this->getRecipeID($recipe);\n\t if(($recipeid != NULL) && ($ingredient != NULL) && ($qty != NULL)&& ($units != NULL))\n\t\t{ \n\t\t if($qty <= 0)\n\t\t return;\n\t\t $count = @mysql_query(\"SELECT COUNT(*) as count FROM Ingredients WHERE (Recipe = '$recipeid' AND IngredientName = '$ingredient' AND Units ='$units')\");\n\t\t $countdata = mysql_fetch_assoc($count);\n\t\t if($countdata['count'] >= 1)\n\t\t @mysql_query(\"UPDATE Ingredients SET Quantity = Quantity + '$qty' WHERE (Recipe = '$recipeid' AND IngredientName = '$ingredient' AND Units ='$units')\");\n\t\t else\n\t\t @mysql_query(\"INSERT INTO Ingredients VALUES ('$recipeid','$ingredient','$qty','$units')\");\n\t }\n\t}", "public function setRecipes(array $recipes):void\n {\n $this->recipes = $recipes;\n }", "public function update(Request $request, $id)\n {\n $receta = Receta::find($id);\n\n $inputs = $request->only('nombre','porciones','preparacion','comedor_id');\n $ingredientes = $request->get('ingredientes');\n\n //dd($inputs);\n\n try{\n \\DB::beginTransaction();\n\n $receta->update($inputs);\n\n $receta->ingredientes()->delete();\n\n //dd($ingredientes);\n\n foreach ($ingredientes as $ingrediente){\n $receta->ingredientes()->create($ingrediente);\n }\n\n //$receta->ingredientes->updateOrCreate($ingredientes);\n\n \\DB::commit();\n $receta->load('ingredientes');\n return $this->jsonMensajeData('Receta Modificada','','success',$receta);\n\n }catch (\\Exception $e){\n \\DB::rollBack();\n return $this->jsonMensajeError('Error',$e->getMessage());\n }\n\n\n }", "public function update($id, UpdateRecipeRequest $request)\n\t{\n\n\t\t// dd($request);\n\t\t$input = $request->all();\n\t\tif(array_key_exists('thumbnail', $input)){\n\t $file = $input['thumbnail'];\n\t $file_id = $this->addThumbnail($file);\n\t $input['thumbnail_id'] = $file_id;\n \t}\n\t\t$recipe = $this->recipeRepository->find($id);\n\n\t\tif(empty($recipe))\n\t\t{\n\t\t\tFlash::error('Recipe not found');\n\n\t\t\treturn redirect(route('recipes.index'));\n\t\t}\n\n\t\t$recipe->fill($input);\n\t\tif(array_key_exists('products', $input)){\n\t\t\t$recipe->products()->sync($input['products']);\n\t\t}\n\t\t\n\t\t$recipe->save();\n\n\n\t\tFlash::success('Recipe updated successfully.');\n\n\t\treturn redirect(route('recipes.index'));\n\t}", "public function update(Request $request, $id)\r\n {\r\n //\r\n //validujemo\r\n $this->validate($request, [\r\n 'title' => 'required',\r\n 'ingredients' => 'required',\r\n 'description' => 'required',\r\n 'photo' => 'required'\r\n ]);\r\n\r\n // upisujemo u bazu\r\n $recipe = Recipe::find($id);\r\n $recipe->user_id = auth()->user()->id;\r\n $recipe->title = $request->input('title'); // vracamo ime iz input\r\n $recipe->ingredients = $request->input('ingredients'); \r\n $recipe->description = $request->input('description');\r\n $recipe->photo = $request->input('photo');\r\n \r\n // cuvamo poruku\r\n $recipe->save();\r\n\r\n return redirect('/dashboard')->with('success', 'Izmenjen recept!');\r\n }", "public function editingredients($id)\n\n {\n\n\t\tif($this->uri->segment(3)==\"\")\n\n\t\t{\n\n\t\t\t$this->session->set_flashdata('err_msg', 'Dont Change the URL physically'); \n\n\t\t\tredirect('admin/recipe/viewingredients');\t\n\n\t\t}\n\n\t\t\n\n\t\tif ($this->input->server('REQUEST_METHOD') == 'POST')\n\n\t\t{\n\n \n\n\t $data['name']= strip_tags($this->input->post('name'));\n\n\t\t\t$name=strip_tags($this->input->post('slug'));\n\n\t\t\t$data['slug'] = strtolower(trim(preg_replace('/[^A-Za-z0-9-]+/', '-', $name)));\n\n\t\t\t$data['description']= strip_tags($this->input->post('description'));\n\n\t\t\t$data['status']= strip_tags($this->input->post('status'));\n\n \n\n \n\n\t\t\t $this->form_validation->set_rules('name', 'Name', 'trim|required');\n\n\t\t\t $this->form_validation->set_rules('description', 'Description', 'trim|required');\n\n\t\t\t $this->form_validation->set_rules('slug', 'Slug', 'trim|required');\n\n \n\n if ($this->form_validation->run() == TRUE) {\n\n $data_inserted = $this->Ingredients_model->edit_data($data,$id);\n\n $this->session->set_flashdata('success_msg', 'Ingredient edited Successfully'); \n\n redirect('admin/recipe/viewingredients');\t\n\n }\n\n\t\t}\n\n\t\t\n\n\t\t\n\n\t\t$site_name=$this->config->item('site_name');\n\n\t $this->template->set('title', 'Edit Ingredients | '.$site_name);\n\n\t\t$data_single = $this->Ingredients_model->get_data_by_id($id);\n\n\t\t$data['ingredients']=$data_single ;\n\n\t\t//print_r($data_single);die();\n\n $this->template->set_layout('layout_main', 'front');\n\n $this->template->build('editingredients',$data);\n\n }", "public function editrecipe($id)\n\n {\n\n\t\tif($this->uri->segment(3)==\"\")\n\n\t\t{\n\n\t\t\t$this->session->set_flashdata('err_msg', 'Dont Change the URL physically'); \n\n\t\t\tredirect('admin/recipe/viewrecipe');\t\n\n\t\t}\n\n\t\t$data_class['all_difficulty'] = $this->Recipe_model->difficulty_allvalue();\n\n\t\t$data_class['all_meal'] = $this->Recipe_model->meal_allvalue();\n\n\t\t$data_class['all_category'] = $this->Recipe_model->category_allvalue();\n\n \t$data_class['all_unit'] = $this->Recipe_model->unit_allvalue();\n \t\n \t$data_class['all_instruction'] = $this->Recipe_model->instruction_allvalue();\n \t\n \t$data_class['all_ingredients'] = $this->Recipe_model->ingredients_allvalue();\n \t\n \t$data_class['all_nutritional'] = $this->Recipe_model->nutritional_allvalue();\n \t\n\t\tif ($this->input->server('REQUEST_METHOD') == 'POST')\n\t\t\n\t\t{\n\t\t\textract($_POST);\n\t\t\textract($_FILES);\n\t\t\t/*echo \"<pre>\";\n\t\t\tprint_r($_POST);\n\t\t\tprint_r($_FILES);\n\t\t\techo \"</pre>\";*/\t\t\t\n\t\t\t//print_r($lastid);\n\t\t\t//echo $recipe_code;die(\"here\");\n\t\t\t//INSERT INSTUCTION\n\t\t\tfor($i=0;$i<count($inst_name);$i++){\n\t\t\t\t$this->load->library('upload');\n\t\t\t\t$_FILES['userfile']['name']=$_FILES['ins_image']['name'][$i];\n\t\t\t\t$_FILES['userfile']['type'] = $_FILES['ins_image']['type'][$i];\n $_FILES['userfile']['tmp_name'] = $_FILES['ins_image']['tmp_name'][$i];\n $_FILES['userfile']['error'] = $_FILES['ins_image']['error'][$i];\n $_FILES['userfile']['size'] = $_FILES['ins_image']['size'][$i];\n $config['upload_path'] = '../uploads/recipe_image/instruction';\n $config['allowed_types'] = 'png|jpg|jpeg';\n $config['max_size'] = 100000;\n //$config['max_width'] = 1024;\n // $config['max_height'] = 768;\n $this->upload->initialize($config);\t\n if (! $this->upload->do_upload()) {\n \t$error = array('error' => $this->upload->display_errors()); \n\t\t\t\t} else {\n\t\t\t\t\t$instruction['recipe_code']=$recipe_code;\n\t\t\t\t\t$instruction['name']=$inst_name[$i];\n\t\t\t\t\t$final_files_data[] = $this->upload->data(); \n\t\t\t\t\t$instruction['images']= $final_files_data[0]['file_name'];\n\t\t\t\t\t$data_instuction_insert = $this->Recipe_model->instruction_insert($instruction);\n\t\t\t\t}\t\t\t \n\t\t\t\t\n\t\t\t}\n\t\t\t//insert into ingradients\n\t\t\t//$delete_ingradient=$this->Recipe_model->delete_ingredient($recipe_code);\n\t\t\t\n\t\t\tfor($ig=0;$ig<count($ing_name);$ig++){\n\t\t\t\t$ingradients['recipe_code']=$recipe_code;\n\t\t\t\t$ingradients['name']=$ing_name[$ig];\n\t\t\t\t$ingradients['quantity']=$ing_quantity[$ig];\n\t\t\t\t$ingradients['unit']=$ing_unit[$ig];\n\t\t\t\t$data_ingradients_insert = $this->Recipe_model->ingradients_insert($ingradients);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//insert nutrituioin element\n\t\t\t\n\t\t\tfor($ne=0;$ne<count($ne_name);$ne++){\n\t\t\t\t$nutrition['recipe_code']=$recipe_code;\n\t\t\t\t$nutrition['name']=$ne_name[$ne];\n\t\t\t\t$nutrition['quantity']=$ne_quantity[$ne];\n\t\t\t\t$nutrition['unit']=$ne_unit[$ne];\n\t\t\t\t$data_nutrition_insert = $this->Recipe_model->nutrition_insert($nutrition);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//die(\"here\");\n\t\t\t\n\t\t\t\n\t\t\t$data['recipe_code']= strip_tags($recipe_code);\n\n\t\t\t$name=strip_tags($this->input->post('recipe_name'));\n\n\t\t\t$data['slug'] = strtolower(trim(preg_replace('/[^A-Za-z0-9-]+/', '-', $name)));\n\n\t\t\t\n\n\t\t\t$data['recipe_name']= strip_tags($this->input->post('recipe_name'));\n\n\t\t\t$data['preparetion_time']= strip_tags($this->input->post('preparetion_time'));\n\n\t\t\t$data['cook_time']= strip_tags($this->input->post('cook_time'));\n\n\t\t\t$data['serving_people']= strip_tags($this->input->post('serving_people'));\n\n\t\t\t$data['dificulty']= strip_tags($this->input->post('dificulty'));\n\n\t\t\t$data['type_of_meal']= strip_tags($this->input->post('type_of_meal'));\n\t\t\t\n\t\t\t$data['category']=json_encode($this->input->post('category'));\n\t\t \n\t\t\t//print_r($data['category']);die();\n\t\t\t$data['description']= $this->input->post('description');\n\n\t\t\t$data['status']= strip_tags($this->input->post('status'));\n\n\t\t\t$now = date('Y-m-d');\n\n\t\t\t$data['created_on'] =$now;\n\t\t\t$data['approve_on']=date('Y-m-d H:i:s');\n\t\t\t\t\t\t\n\n\t\t\t $this->form_validation->set_rules('recipe_name', 'Recipe Name', 'trim|required');\n\n\t\t\t $this->form_validation->set_rules('preparetion_time', 'Preparetion Time', 'trim|required');\n\n\t\t\t $this->form_validation->set_rules('cook_time', 'Cook Time', 'trim|required');\n\n\t\t\t $this->form_validation->set_rules('serving_people', 'Serving People', 'trim|required');\n\n\t\t\t $this->form_validation->set_rules('dificulty', 'Dificulty', 'trim|required');\n\n\t\t\t $this->form_validation->set_rules('type_of_meal', 'Type Of Meal', 'trim|required');\n\n\t\t\t $this->form_validation->set_rules('description', 'Description', 'trim|required');\n\t\t\t \n\t\t\t\t\t $this->load->library('upload');\n $number_of_files_uploaded = count($_FILES['feature_image']['name']);\n\n\n\n // Faking upload calls to $_FILE\n\n $_FILES['userfile']['name'] = $_FILES['feature_image']['name'];\n\n $_FILES['userfile']['type'] = $_FILES['feature_image']['type'];\n\n $_FILES['userfile']['tmp_name'] = $_FILES['feature_image']['tmp_name'];\n\n $_FILES['userfile']['error'] = $_FILES['feature_image']['error'];\n\n $_FILES['userfile']['size'] = $_FILES['feature_image']['size'];\n\n $config['upload_path'] = '../uploads/recipe_image';\n $config['allowed_types'] = 'png|jpg|jpeg';\n\n $config['max_size'] = 100000;\n\n //$config['max_width'] = 1024;\n\n // $config['max_height'] = 768;\n\n $this->upload->initialize($config);\n\n\n\n\n\n if (! $this->upload->do_upload()) {\n\n $error = array('error' => $this->upload->display_errors()); \n\n \n\n } else {\n\n \n\n $final_files_data[] = $this->upload->data();\n\n \n\n $data['feature_image']= $final_files_data[0]['file_name'];\n\n\t\t\t if ($this->form_validation->run() == TRUE) {\n\n $data_inserted = $this->Recipe_model->edit_data($data,$id);\n\n $this->session->set_flashdata('success_msg', 'Recipe edited Successfully'); \n\n redirect('admin/recipe/viewrecipe');\n \t\n\t\t\t\t}\n\n\t\t\t }\n\n\t\t\t\n\n\t\t}\n\t\t\n\n\t\t\n\n\t\t$site_name=$this->config->item('site_name');\n\n\t $this->template->set('title', 'Edit Recipe | '.$site_name);\n\n\t\t$data_single = $this->Recipe_model->get_data_by_recipecode($id);\n\n\t\t$data_class['recipe_all']=$data_single ;\n\t\t$data_class['ingredients']=$this->Ingredients_model->get_data_by_recipe_code($id);\n\t\t$data_class['instruction']=$this->Recipe_model->instruction_by_recipecode($id);\n\t\t$data_class['nutrition_element']=$this->Nutritional_elements_model->get_data_by_recipecode($id);\n\n\t\t//print_r($data_single);die();\n\n $this->template->set_layout('layout_main', 'front');\n\n $this->template->build('editrecipe',$data_class);\n\n }", "public function update(RecipeRequest $request, $id)\n {\n $recipe = Recipe::find($id);\n if(!$recipe)\n {\n\n return response()->json(\"'message':'resource not found'\", 404)\n ->header('Content-Type', 'application/json');\n\n }\n else{\n $recipe->update((new Recipe())->getCreateArray( $request));\n $recipe->save();\n\n return new RecipeResource( $recipe );\n }\n\n }", "public function updateIngredient(int $pizzaId, array $ingredientsIds){\n $sql = \"DELETE FROM ingredient_pizza WHERE pizza_id = ?\" ;\n $stmt = $this->pdo->prepare($sql);\n $stmt->execute([$pizzaId]);\n\n //2. enregistrer tous les liens entre les $ingredientsIds et $pizzaId\n foreach($ingredientsIds as $ingredient){\n $sql = \"INSERT INTO ingredient_pizza (ingredient_id, pizza_id) VALUE (?,?)\";\n $stmt = $this->pdo->prepare($sql);\n $stmt->execute([$ingredient, $pizzaId]);\n }\n }", "public function update(Request $request, CustomIngredients $customIngredients, $id)\n {\n $data = $request->all();\n// dd($data);\n $record = $customIngredients->find($id);\n// dd($record);\n $record->update($data);\n\n return redirect('admin/custom-ingredients');\n }", "public function update(Request $request, $id) {\n $ingredient = Ingredients::find($id);\n\n $ingredient->RID = $request->input('RID');\n $ingredient->Name = $request->input('Name');\n $ingredient->Qty = $request->input('Qty');\n $ingredient->Units = $request->input('Units');\n $ingredient->Comments = $request->input('Comments');\n $ingredient->save();\n\n return \"Sucess updating Ingredient #\" . $ingredient->id;\n }", "private function updateThing($thing, $thing_id, $thing_details) {\n //print_r($thing_details);\n //print_r($thing_id);\n $returnid = -1;\n /* get settext */\n $settings = array();\n $statement = \"\";\n $conditions = array();\n foreach ($thing_details as $key => $value) {\n if (is_string($value))\n\t{\n\t $value = trim($value);\n\t if (strlen($value) == 0)\n\t {\n\t $value === null;\n\t }\n\t}\n $lcasekey = $key; // don't need lower case\n $settings[] = $lcasekey . \" = \" . \":\" . $lcasekey;\n }\n $settext = implode(\", \", $settings);\n //print_r(\"settext: $settext\\n\");\n $conditions = array();\n if (is_array($thing_id) && $this->is_assoc($thing_id)) {\n\t/* no primary key, build $keytext from columns */\n\tforeach ($thing_id as $column_name => $value) {\n\t $conditions[] = $column_name . \" = \" . $value;\n\t }\n\t//print_r($conditions);\n\t$keytext = implode(\" AND \", $conditions);\n\t$returnid = $thing_details;\n }\n else {\n $primary_key = strtolower($thing) . '_' . 'id';\n $conditions[$primary_key] = $thing_id;\n $keytext = $this->makeConstraintSQL($conditions);\n $returnid = $thing_id;\n }\n\n //$keytext = $primary_key . \" = :\" . $primary_key;\n $statement = \"update $thing set \" . $settext . \" where \" . $keytext;\n\n //print_r($statement);\n //print_r($thing_details);\n try {\n $stmt = $this->conn->prepare($statement);\n $stmt->execute($thing_details);\n \n }\n catch(Exception $e) {\n $this->error .= '<pre>ERROR: ' . $e->getMessage() . '</pre>';\n }\n return $returnid;\n}", "public function activate_recipe($id){\n\t\t$this->db->query(\"\n\t\t\tUPDATE recipe re \n\t\t\tSET re.status = 'A'\n\t\t\tWHERE md5(re.id) = '$id'\n\t\t\");\n\t}", "public function actionUpdate($id) {\n $model = $this->findModel($id);\n $items = ArrayHelper::map(\\app\\models\\Usuariostbl::find()->all(), 'id', 'username');\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\n $cantidadIngredientes = 0;\n //verifica que no vengan vacios\n if (Yii::$app->request->post('cantidad') && Yii::$app->request->post('unidad')) {\n //Se reciben los 3 arreglos enviados atraves de post\n $ingredientes = Yii::$app->request->post('ingrediente');\n $cantidades = Yii::$app->request->post('cantidad');\n $unidades = Yii::$app->request->post('unidad');\n $cantidadIngredientes = count($cantidades);\n }\n\n //se deben buscar en la BD todos los ingredientes asociados a esta receta\n $ingredientesEnBD = \\app\\models\\Recetasproducto::find()->where(['recetastbl_id' => $id])->all();\n $index = 0;\n\n //Se recorren los ingredientes que habia en la BD\n foreach ($ingredientesEnBD as $ingrediente) {\n if ($index < $cantidadIngredientes) {\n //se reemplazan sus valores por los contenidos en los arreglos correspondientes.\n $ingrediente->productostbl_id = $ingredientes[$index + 1];\n $ingrediente->cantidad = $cantidades[$index];\n $ingrediente->unidad = $unidades[$index];\n $ingrediente->save(); //se guardan los nuevos datos en la BD\n }\n else {\n //la receta tiene menos ingredientes que antes, lo restantes se eliminaran.\n $ingrediente->delete();\n }\n\n $index++;\n }\n\n //En caso que hayan nuevos ingredientes, este for los genera y guarda en la BD\n for ($index; $index < $cantidadIngredientes; $index++) {\n //para la lista de ingredientes es index+1\n //se crea una nueva variable que guardara el nuevo ingrediente\n $ingredienteModel = new \\app\\models\\Recetasproducto();\n //se asocia a la receta usando la id\n $ingredienteModel->recetastbl_id = $model->id;\n //se asocia el producto (ingrediente) usando su id\n $ingredienteModel->productostbl_id = $ingredientes[$index + 1];\n //se agrega la cantidad\n $ingredienteModel->cantidad = $cantidades[$index];\n //se agrega la unidad de medida\n $ingredienteModel->unidad = $unidades[$index];\n //se guarda el ingrediente en la BD\n $ingredienteModel->save();\n }\n //Mensaje de exito, que se recupera en el index de Recetastbl o el view\n Yii::$app->getSession()->setFlash('success', 'Receta actualizada con exito.');\n\n return $this->redirect(['view', 'id' => $model->id]);\n }\n else {\n return $this->render('update', [\n 'model' => $model,\n 'items' => $items\n ]);\n }\n }", "private function process_fieldset($recipe = NULL)\n\t{\n\t\t// check for recipe object\n\t\tif ($recipe == NULL)\n\t\t{\n\t\t\t$recipe = ORM::factory('Recipe');\n\t\t}\n\n\t\t$edit = $recipe->loaded();\n\n\t\t// check if request method is POST\n\t\tif ($this->request->method() == HTTP_Request::POST)\n\t\t{\n\t\t\t// load $_POST object\n\t\t\t$post = $this->request->post();\n\n\t\t\t// load post values to recipe object\n\t\t\t$recipe->values($post, array(\n\t\t\t\t'name',\n\t\t\t\t'description',\n\t\t\t\t'cooktime',\n\t\t\t\t'preptime',\n\t\t\t\t'serving_size',\n\t\t\t\t'serving_type',\n\t\t\t\t'source',\n\t\t\t\t'tags'\n\t\t\t));\n\n\t\t\t// recipe public flag only when admin\n\t\t\t$recipe->public = ($this->user->logged_in('admin') ? 1 : 0);\n\n\t\t\t// check for the photo\n\t\t\tif ( ! empty($_FILES['photo']['tmp_name']))\n\t\t\t{\n\t\t\t\t$recipe->photo = file_get_contents($_FILES['photo']['tmp_name']);\n\t\t\t}\n\n\t\t\t// try recipe for validation\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// save recipe \n\t\t\t\t$recipe->save();\n\n\t\t\t\t// add categories\n\t\t\t\tforeach (ORM::factory('Category')->find_all() as $cat)\n\t\t\t\t{\n\t\t\t\t\t// remove category from recipe\n\t\t\t\t\t$recipe->remove('categories', $cat);\n\n\t\t\t\t\t// check if category is wanted\n\t\t\t\t\tif (isset($post['category']) AND in_array($cat->id, $post['category']))\n\t\t\t\t\t{\n\t\t\t\t\t\t// add category to recipe\n\t\t\t\t\t\t$recipe->add('categories', $cat);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// remove all ingredients before re-insertion\n\t\t\t\tDB::delete('recipe_ingredient')\n\t\t\t\t->where('recipe_id', '=', $recipe->id)\n\t\t\t\t->execute();\n\t\n\t\t\t\t// ingredients re-add\n\t\t\t\tforeach ($post['unit'] as $k => $item)\n\t\t\t\t{\n\t\t\t\t\t// check if ingredient has unit and amount defined\n\t\t\t\t\tif ($post['unit'][$k] > 0 AND ! empty( $post['amount'][$k]) AND $post['ingredient'][$k] > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t// load unit object\n\t\t\t\t\t\t$unit = ORM::factory('Unit', $item);\n\n\t\t\t\t\t\t// build data to insert\n\t\t\t\t\t\t$data = array(\n\t\t\t\t\t\t\t'recipe_id' => $recipe->id,\n\t\t\t\t\t\t\t'ingredient_id' => $post['ingredient'][$k],\n\t\t\t\t\t\t\t'unit_id' => $post['unit'][$k],\n\t\t\t\t\t\t\t'amount' => str_replace(' '.__($unit->short), NULL, $post['amount'][$k]),\n\t\t\t\t\t\t\t'group' => '',\n\t\t\t\t\t\t\t'note' => $post['note'][$k]\n\t\t\t\t\t\t);\n\t\n\t\t\t\t\t\t// insert ingredient to relation table\n\t\t\t\t\t\tDB::insert('recipe_ingredient', array_keys($data))\n\t\t\t\t\t\t->values($data)\n\t\t\t\t\t\t->execute();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// get recipe nutritions\n\t\t\t\t$nutritions = $recipe->nutritions();\n\t\t\t\t$recipe->calories = $nutritions['calories'] / $nutritions['weight'] * 100;\n\t\t\t\t$recipe->protein = $nutritions['protein'] / $nutritions['weight'] * 100;\n\t\t\t\t$recipe->fat = $nutritions['fat_total'] / $nutritions['weight'] * 100;\n\t\t\t\t$recipe->carbs = $nutritions['carbohydrate'] / $nutritions['weight'] * 100;\n\t\t\t\t$recipe->sugars = $nutritions['sugars'] / $nutritions['weight'] * 100;\n\t\t\t\t$recipe->save();\n\n\t\t\t\t// set view success\n\t\t\t\t$this->view->success = TRUE;\n\n\t\t\t\tif ($edit == TRUE OR $this->user->logged_in('admin'))\n\t\t\t\t{\n\t\t\t\t\tHTTP::redirect('/recipe/detail/'.$recipe->id);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (ORM_Validation_Exception $e)\n\t\t\t{\n // set errors using custom messages\n $this->view->errors = $e->errors('is/models');\n }\n\t\t}\n\n\t\t// return the recipe OBject\n\t\treturn $recipe;\n\t}", "public function update_car_ride() {\n $data = array(\n 'origin' => $this->input->post('origin'),\n 'destination' => $this->input->post('destination'),\n 'price' => $this->input->post('price'),\n 'vacancy' => $this->input->post('vacancy'),\n 'plate_number' => $this->input->post('plate_number'),\n 'start_time' => $this->input->post('start_time')\n );\n\n $sql = \"UPDATE car_rides\n SET origin = ?, destination = ?, price = ?, vacancy = ?\n WHERE plate_number = ?\n AND start_time = ?\";\n\n // return true if updated successfully\n return $this->db->query($sql, $data);\n }", "public function edit($data = null)\n {\n $old_recipe = $this->find('first', array('conditions' => array('Recipe.id' => $data['Recipe']['id'])));\n\n // Update data from the old model\n $new_recipe['Recipe']['previous_id'] = $old_recipe['Recipe']['id'];\n $new_recipe['Recipe']['original_id'] = $old_recipe['Recipe']['original_id'];\n $new_recipe['Recipe']['created'] = $old_recipe['Recipe']['created'];\n\n // Update data from the view\n $new_recipe['Recipe']['name'] = $data['Recipe']['name'];\n $new_recipe['Recipe']['price'] = $data['Recipe']['price'];\n\n $new_recipe['Recipe']['intern_product_code'] = $data['Recipe']['intern_product_code'];\n\n\n // Check if any care_labels was given\n if(!empty($data['Yarn']))\n {\n // TODO fix Recipes such if the yarn is changed, change the relation or delete the relation\n $new_recipe['Yarn'] = $data['Yarn']; \n }\n\n if(!empty($data['Category']))\n {\n // TODO fix Recipes such if the yarn is changed, change the relation or delete the relation\n $new_recipe['Category'] = $data['Category']; \n }\n\n // If the save went well\n if(!$this->saveAll($new_recipe))\n {\n return false;\n }\n $new_id = $this->id;\n\n // Upload a new image of the recipe if there is one given\n if(!empty($data['Recipe']['image']) && FileComponent::fileGiven($data['Recipe']['image']))\n {\n // Check if the upload went well (The image is limited to 500 x 500 pixels)\n if(!FileComponent::uploadAndResizeImage($data['Recipe']['image'], $new_id, 'png', 'recipes', 500, 500))\n { \n // Delete the entry in the database\n $this->delete($new_id);\n\n // It did not go well delete the image and inform the user\n SessionComponent::setFlash('Billedet til denne opskrift blev ikke uploadet korrekt. Opskriften blev ikke gemt.'.SessionComponent::read('Message.error.message'), null, array(), 'error');\n return false;\n }\n }\n else\n {\n FileComponent::copyFile($old_recipe['Recipe']['id'],'png', true, 'recipes', $new_id, 'png', true, 'recipes');\n }\n\n // Upload a new pdf of the variant if there is one given\n if(!empty($data['Recipe']['image']) && FileComponent::fileGiven($data['Recipe']['image']))\n {\n // Check if the upload went well\n if(!FileComponent::uploadFile($this->data['Recipe']['pdf'], $new_id, 'pdf', false, 'recipes'))\n { \n // Delete the entry in the database\n $this->delete($new_id);\n\n // It did not go well delete the image and inform the user\n SessionComponent::setFlash('PDF-filen til denne opskrift blev ikke uploadet korrekt. Opskriften blev ikke gemt.'.SessionComponent::read('Message.error.message'), null, array(), 'error');\n return false;\n }\n }\n else\n {\n FileComponent::copyFile($old_recipe['Recipe']['id'],'pdf', false, 'recipes', $new_id, 'pdf', false, 'recipes');\n }\n\n // Update the parrent of the old model\n $old_recipe['Recipe']['parrent_id'] = $new_id;\n $old_recipe = $this->save($old_recipe);\n\n // Update the relation before deleting the old version\n $this->updateYarnRelation($old_recipe['Recipe']['id'], $new_id);\n\n // Set the old version to inactive\n $this->deactivate($old_recipe['Recipe']['id'], true);\n\n // If the save went well\n if(empty($old_recipe))\n {\n return false;\n }\n\n // It all went well\n return true;\n }", "public function updateRow($row);", "public static function updateInstructions(int $id, string $instructions, mysqli $db) {\n\t\tif($update = $db->prepare('update recipe set instructions=? where id=? limit 1'))\n\t\t\tif($update->bind_param('si', $instructions, $id))\n\t\t\t\tif($update->execute())\n\t\t\t\t\t$update->close();\n\t\t\t\telse\n\t\t\t\t\tself::DatabaseError('Error updating recipe instructions', $update);\n\t\t\telse\n\t\t\t\tself::DatabaseError('Error binding parameters to update recipe instructions', $update);\n\t\telse\n\t\t\tself::DatabaseError('Error preparing to update recipe instructions', $db);\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_recipes]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function edit(RecipeList $recipeList)\n {\n //\n }", "public function update() {\n $mysqli = Database::getMYSQLI();\n \n $stmt = $mysqli->prepare(\"\n UPDATE reviews\n SET persons_id = ?, lessons_id = ?, title = ?, review = ?, date_submitted = ?, \n rating = ?\n WHERE id = ?\");\n \n $stmt->bind_param('iisssii', $this->personsID, $this->lessonsID, $this->title, \n $this->review, $this->dateSubmitted, $this->rating, $this->id);\n\n $stmt->execute();\n $stmt->close();\n $mysqli->close();\n }", "private function setRecipe($recipeUtils, $request, $recipe, $originalIngredients, $originalSteps)\n { \n $form = $this->createForm(RecipeType::class, $recipe);\n $form->handleRequest($request);\n \n if ($form->isSubmitted() && $form->isValid()) {\n\n if ($form->getClickedButton() === $form->get('saveDraft')){\n $recipe->setIsDraft(true);\n } else {\n $recipe->setIsDraft(false);\n }\n\n $ingredients = $recipe->getIngredients();\n $steps = $recipe->getSteps();\n\n if ($originalIngredients) {\n $recipeUtils->removeItem($originalIngredients, $ingredients, $this->em);\n $recipeUtils->removeItem($originalSteps, $steps, $this->em);\n }\n\n $recipeUtils->setRank($ingredients);\n $recipeUtils->setRank($steps);\n\n $this->em->persist($recipe);\n $this->em->flush();\n \n return $this->redirectToRoute('app_recipe', [\n 'categorySlug' => $recipe->getCategory()->getSlug(),\n 'recipeSlug' => $recipe->getSlug(),\n 'recipe' => $recipe->getId()\n ]);\n }\n \n return $this->render('app/recipePages/addRecipe.html.twig', [\n 'form' => $form->createView(),\n ]);\n }", "public function run()\n {\n \n\n \\DB::table('recipe_ingridents')->delete();\n \n \\DB::table('recipe_ingridents')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'recipe_id' => '1',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 tablespoons butter',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 1 => \n array (\n 'id' => 2,\n 'recipe_id' => '1',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '3 tablespoons extra virgin olive oil',\n 'displayNote' => '\\'3 tablespoons extra virgin <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 2 => \n array (\n 'id' => 3,\n 'recipe_id' => '1',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small diced onion',\n 'displayNote' => '\\'1 small diced <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 3 => \n array (\n 'id' => 4,\n 'recipe_id' => '1',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '4 cloves garlic, minced ',\n 'displayNote' => '\\'4 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 4 => \n array (\n 'id' => 5,\n 'recipe_id' => '1',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pinch crushed red pepper flakes',\n 'displayNote' => '\\'1 pinch crushed red pepper flakes\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 5 => \n array (\n 'id' => 6,\n 'recipe_id' => '1',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '1 tablespoon lemon juice',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> juice\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 6 => \n array (\n 'id' => 7,\n 'recipe_id' => '1',\n 'ingrident' => 'oregano',\n 'amount' => NULL,\n 'note' => '1 teaspoon oregano',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/oregano\\\\\\'>oregano</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 7 => \n array (\n 'id' => 8,\n 'recipe_id' => '1',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 teaspoon basil',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 8 => \n array (\n 'id' => 9,\n 'recipe_id' => '1',\n 'ingrident' => 'old bay seasoning',\n 'amount' => NULL,\n 'note' => '1 tablespoon Old Bay Seasoning',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/old-bay-seasoning\\\\\\'>old bay seasoning</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 9 => \n array (\n 'id' => 10,\n 'recipe_id' => '1',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 cans minced/chopped clams, with juice ',\n 'displayNote' => '\\'3 cans minced/chopped clams, with juice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 10 => \n array (\n 'id' => 11,\n 'recipe_id' => '1',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '1 teaspoon parsley',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 11 => \n array (\n 'id' => 12,\n 'recipe_id' => '1',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => ' parmesan cheese',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 12 => \n array (\n 'id' => 13,\n 'recipe_id' => '1',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb linguine or 1 lb thin spaghetti',\n 'displayNote' => '\\'1 lb linguine or 1 lb thin spaghetti\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 13 => \n array (\n 'id' => 14,\n 'recipe_id' => '2',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '3/4 cup vegetable oil',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 14 => \n array (\n 'id' => 15,\n 'recipe_id' => '2',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '1/4 cup cider vinegar',\n 'displayNote' => '\\'1/4 cup cider <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 15 => \n array (\n 'id' => 16,\n 'recipe_id' => '2',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 tablespoons water',\n 'displayNote' => '\\'2 tablespoons water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 16 => \n array (\n 'id' => 17,\n 'recipe_id' => '2',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1 teaspoon minced garlic',\n 'displayNote' => '\\'1 teaspoon minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 17 => \n array (\n 'id' => 18,\n 'recipe_id' => '2',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 teaspoons sugar',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 18 => \n array (\n 'id' => 19,\n 'recipe_id' => '2',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons salt',\n 'displayNote' => '\\'1 1/2 teaspoons salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 19 => \n array (\n 'id' => 20,\n 'recipe_id' => '2',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 20 => \n array (\n 'id' => 21,\n 'recipe_id' => '2',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1 teaspoon grated parmesan cheese',\n 'displayNote' => '\\'1 teaspoon grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:12',\n 'updated_at' => '2019-01-07 02:04:12',\n ),\n 21 => \n array (\n 'id' => 22,\n 'recipe_id' => '3',\n 'ingrident' => 'chicken thighs',\n 'amount' => NULL,\n 'note' => '8 chicken thighs, skin on ',\n 'displayNote' => '\\'8 <a href=\\\\\\'/ingridients/chicken-thighs\\\\\\'>chicken thighs</a> , skin on \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 22 => \n array (\n 'id' => 23,\n 'recipe_id' => '3',\n 'ingrident' => 'soy sauce',\n 'amount' => NULL,\n 'note' => '1/2 cup soy sauce',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/soy-sauce\\\\\\'>soy sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 23 => \n array (\n 'id' => 24,\n 'recipe_id' => '3',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/2 cup minced green onion',\n 'displayNote' => '\\'1/2 cup minced green <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 24 => \n array (\n 'id' => 25,\n 'recipe_id' => '3',\n 'ingrident' => 'sesame oil',\n 'amount' => NULL,\n 'note' => '3 tablespoons sesame oil',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/sesame-oil\\\\\\'>sesame oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 25 => \n array (\n 'id' => 26,\n 'recipe_id' => '3',\n 'ingrident' => 'honey',\n 'amount' => NULL,\n 'note' => '3 tablespoons honey',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/honey\\\\\\'>honey</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 26 => \n array (\n 'id' => 27,\n 'recipe_id' => '3',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 teaspoons minced garlic or 1/4 teaspoon garlic powder',\n 'displayNote' => '\\'2 teaspoons minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> or 1/4 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 27 => \n array (\n 'id' => 28,\n 'recipe_id' => '3',\n 'ingrident' => 'ginger',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon ground ginger',\n 'displayNote' => '\\'1/4 teaspoon ground <a href=\\\\\\'/ingridients/ginger\\\\\\'>ginger</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 28 => \n array (\n 'id' => 29,\n 'recipe_id' => '3',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon black pepper',\n 'displayNote' => '\\'1/4 teaspoon black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 29 => \n array (\n 'id' => 30,\n 'recipe_id' => '4',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '2 lbs lean ground beef',\n 'displayNote' => '\\'2 lbs lean <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 30 => \n array (\n 'id' => 31,\n 'recipe_id' => '4',\n 'ingrident' => 'bread',\n 'amount' => NULL,\n 'note' => '8 -10 slices white bread, broken into small 1/2 inch pieces (or you can use rolls or any stale bread you have and want to use up)',\n 'displayNote' => '\\'8 -10 slices white <a href=\\\\\\'/ingridients/bread\\\\\\'>bread</a> , broken into small 1/2 inch pieces (or you can use rolls or any stale <a href=\\\\\\'/ingridients/bread\\\\\\'>bread</a> you have and want to use up)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 31 => \n array (\n 'id' => 32,\n 'recipe_id' => '4',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs, slightly beaten ',\n 'displayNote' => '\\'2 eggs, slightly beaten \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 32 => \n array (\n 'id' => 33,\n 'recipe_id' => '4',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon garlic powder (or to taste)',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder (or to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 33 => \n array (\n 'id' => 34,\n 'recipe_id' => '4',\n 'ingrident' => 'italian seasoning',\n 'amount' => NULL,\n 'note' => '1 teaspoon italian seasoning (or to taste)',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/italian-seasoning\\\\\\'>italian seasoning</a> (or to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 34 => \n array (\n 'id' => 35,\n 'recipe_id' => '4',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '2 teaspoons parsley flakes (or to taste)',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> flakes (or to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 35 => \n array (\n 'id' => 36,\n 'recipe_id' => '4',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1/4-1/2 cup grated parmesan cheese (or Locatelli)',\n 'displayNote' => '\\'1/4-1/2 cup grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese (or locatelli)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 36 => \n array (\n 'id' => 37,\n 'recipe_id' => '4',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 -2 teaspoon salt',\n 'displayNote' => '\\'1 -2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 37 => \n array (\n 'id' => 38,\n 'recipe_id' => '4',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4-1/2 teaspoon black pepper',\n 'displayNote' => '\\'1/4-1/2 teaspoon black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 38 => \n array (\n 'id' => 39,\n 'recipe_id' => '4',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => ' olive oil (for frying) or vegetable oil (for frying)',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil (for frying) or <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> (for frying)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 39 => \n array (\n 'id' => 40,\n 'recipe_id' => '5',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 chicken breasts',\n 'displayNote' => '\\'4 chicken breasts\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 40 => \n array (\n 'id' => 41,\n 'recipe_id' => '5',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1 tablespoon instant minced garlic',\n 'displayNote' => '\\'1 tablespoon instant minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 41 => \n array (\n 'id' => 42,\n 'recipe_id' => '5',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '2 tablespoons olive oil',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 42 => \n array (\n 'id' => 43,\n 'recipe_id' => '5',\n 'ingrident' => 'spinach',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) bag spinach (frozen works great)',\n 'displayNote' => '\\'1 (16 ounce) bag <a href=\\\\\\'/ingridients/spinach\\\\\\'>spinach</a> (frozen works great)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 43 => \n array (\n 'id' => 44,\n 'recipe_id' => '5',\n 'ingrident' => 'feta',\n 'amount' => NULL,\n 'note' => '1 cup feta cheese',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/feta\\\\\\'>feta</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 44 => \n array (\n 'id' => 45,\n 'recipe_id' => '5',\n 'ingrident' => 'bread',\n 'amount' => NULL,\n 'note' => '2 cups seasoned bread crumbs',\n 'displayNote' => '\\'2 cups seasoned <a href=\\\\\\'/ingridients/bread\\\\\\'>bread</a> crumbs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 45 => \n array (\n 'id' => 46,\n 'recipe_id' => '5',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/2 cup butter (melted)',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> (melted)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 46 => \n array (\n 'id' => 47,\n 'recipe_id' => '6',\n 'ingrident' => 'chicken wings',\n 'amount' => NULL,\n 'note' => '3 lbs chicken wings',\n 'displayNote' => '\\'3 lbs <a href=\\\\\\'/ingridients/chicken-wings\\\\\\'>chicken wings</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 47 => \n array (\n 'id' => 48,\n 'recipe_id' => '6',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '2 tablespoons olive oil',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 48 => \n array (\n 'id' => 49,\n 'recipe_id' => '6',\n 'ingrident' => 'soy sauce',\n 'amount' => NULL,\n 'note' => '1/2 cup soy sauce',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/soy-sauce\\\\\\'>soy sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 49 => \n array (\n 'id' => 50,\n 'recipe_id' => '6',\n 'ingrident' => 'ketchup',\n 'amount' => NULL,\n 'note' => '2 tablespoons ketchup',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/ketchup\\\\\\'>ketchup</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 50 => \n array (\n 'id' => 51,\n 'recipe_id' => '6',\n 'ingrident' => 'honey',\n 'amount' => NULL,\n 'note' => '1 cup honey',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/honey\\\\\\'>honey</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 51 => \n array (\n 'id' => 52,\n 'recipe_id' => '6',\n 'ingrident' => 'clove',\n 'amount' => NULL,\n 'note' => '1 garlic clove, minced, to taste ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> <a href=\\\\\\'/ingridients/clove\\\\\\'>clove</a> , minced, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 52 => \n array (\n 'id' => 53,\n 'recipe_id' => '6',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pinch salt',\n 'displayNote' => '\\'1 pinch salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 53 => \n array (\n 'id' => 54,\n 'recipe_id' => '6',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pinch ground black pepper',\n 'displayNote' => '\\'1 pinch ground black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 54 => \n array (\n 'id' => 55,\n 'recipe_id' => '7',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 1/2 cups all-purpose flour',\n 'displayNote' => '\\'2 1/2 cups all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 55 => \n array (\n 'id' => 56,\n 'recipe_id' => '7',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 tablespoon baking powder',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 56 => \n array (\n 'id' => 57,\n 'recipe_id' => '7',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 57 => \n array (\n 'id' => 58,\n 'recipe_id' => '7',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '8 tablespoons cold unsalted butter, cut up ',\n 'displayNote' => '\\'8 tablespoons cold unsalted <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , cut up \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 58 => \n array (\n 'id' => 59,\n 'recipe_id' => '7',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup granulated sugar (use 1/3 for slightly sweeter scones)',\n 'displayNote' => '\\'1/4 cup granulated <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> (use 1/3 for slightly sweeter scones)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 59 => \n array (\n 'id' => 60,\n 'recipe_id' => '7',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '2/3 cup milk',\n 'displayNote' => '\\'2/3 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 60 => \n array (\n 'id' => 61,\n 'recipe_id' => '8',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 medium potatoes',\n 'displayNote' => '\\'4 medium potatoes\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:54',\n 'updated_at' => '2019-01-07 02:05:54',\n ),\n 61 => \n array (\n 'id' => 62,\n 'recipe_id' => '8',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup sour cream (I use fat-free and no one knows the difference!)',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> (i use fat-free and no one knows the difference!)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:54',\n 'updated_at' => '2019-01-07 02:05:54',\n ),\n 62 => \n array (\n 'id' => 63,\n 'recipe_id' => '8',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1/4 cup milk',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 63 => \n array (\n 'id' => 64,\n 'recipe_id' => '8',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup margarine',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 64 => \n array (\n 'id' => 65,\n 'recipe_id' => '8',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '1/2 cup shredded sharp cheddar cheese',\n 'displayNote' => '\\'1/2 cup shredded sharp <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 65 => \n array (\n 'id' => 66,\n 'recipe_id' => '8',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 66 => \n array (\n 'id' => 67,\n 'recipe_id' => '8',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 67 => \n array (\n 'id' => 68,\n 'recipe_id' => '8',\n 'ingrident' => 'bacon',\n 'amount' => NULL,\n 'note' => '4 slices bacon, crisp and crumbled (or 1 c. real bacon bits)',\n 'displayNote' => '\\'4 slices <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> , crisp and crumbled (or 1 c. real <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> bits)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 68 => \n array (\n 'id' => 69,\n 'recipe_id' => '9',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs',\n 'displayNote' => '\\'2 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:57',\n 'updated_at' => '2019-01-07 02:05:57',\n ),\n 69 => \n array (\n 'id' => 70,\n 'recipe_id' => '9',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '3/4 cup vegetable oil',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 70 => \n array (\n 'id' => 71,\n 'recipe_id' => '9',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 71 => \n array (\n 'id' => 72,\n 'recipe_id' => '9',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 72 => \n array (\n 'id' => 73,\n 'recipe_id' => '9',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 cups flour',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 73 => \n array (\n 'id' => 74,\n 'recipe_id' => '9',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '2 teaspoons cinnamon',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 74 => \n array (\n 'id' => 75,\n 'recipe_id' => '9',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 75 => \n array (\n 'id' => 76,\n 'recipe_id' => '9',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 76 => \n array (\n 'id' => 77,\n 'recipe_id' => '9',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 cups peeled chopped apples',\n 'displayNote' => '\\'4 cups peeled chopped apples\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 77 => \n array (\n 'id' => 78,\n 'recipe_id' => '10',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup oatmeal',\n 'displayNote' => '\\'1/2 cup oatmeal\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:00',\n 'updated_at' => '2019-01-07 02:06:00',\n ),\n 78 => \n array (\n 'id' => 79,\n 'recipe_id' => '10',\n 'ingrident' => 'cottage cheese',\n 'amount' => NULL,\n 'note' => '1/2 cup cottage cheese',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/cottage-cheese\\\\\\'>cottage cheese</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:00',\n 'updated_at' => '2019-01-07 02:06:00',\n ),\n 79 => \n array (\n 'id' => 80,\n 'recipe_id' => '10',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:00',\n 'updated_at' => '2019-01-07 02:06:00',\n ),\n 80 => \n array (\n 'id' => 81,\n 'recipe_id' => '10',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '4 egg whites',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> whites\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:00',\n 'updated_at' => '2019-01-07 02:06:00',\n ),\n 81 => \n array (\n 'id' => 82,\n 'recipe_id' => '11',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:03',\n 'updated_at' => '2019-01-07 02:06:03',\n ),\n 82 => \n array (\n 'id' => 83,\n 'recipe_id' => '11',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 3/4 cups flour',\n 'displayNote' => '\\'1 3/4 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:03',\n 'updated_at' => '2019-01-07 02:06:03',\n ),\n 83 => \n array (\n 'id' => 84,\n 'recipe_id' => '11',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup baking cocoa (dutch process or dark cocoa preferably)',\n 'displayNote' => '\\'3/4 cup baking cocoa (dutch process or dark cocoa preferably)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:03',\n 'updated_at' => '2019-01-07 02:06:03',\n ),\n 84 => \n array (\n 'id' => 85,\n 'recipe_id' => '11',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons baking powder',\n 'displayNote' => '\\'1 1/2 teaspoons <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 85 => \n array (\n 'id' => 86,\n 'recipe_id' => '11',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons baking soda',\n 'displayNote' => '\\'1 1/2 teaspoons <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 86 => \n array (\n 'id' => 87,\n 'recipe_id' => '11',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 87 => \n array (\n 'id' => 88,\n 'recipe_id' => '11',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs',\n 'displayNote' => '\\'2 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 88 => \n array (\n 'id' => 89,\n 'recipe_id' => '11',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 89 => \n array (\n 'id' => 90,\n 'recipe_id' => '11',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '1/2 cup vegetable oil',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 90 => \n array (\n 'id' => 91,\n 'recipe_id' => '11',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 teaspoons vanilla extract',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> extract\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 91 => \n array (\n 'id' => 92,\n 'recipe_id' => '11',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4-1 cup boiling water (see note below)',\n 'displayNote' => '\\'3/4-1 cup boiling water (see note below)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 92 => \n array (\n 'id' => 93,\n 'recipe_id' => '12',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1 1/4 cups butter or 1 1/4 cups margarine, softened ',\n 'displayNote' => '\\'1 1/4 cups <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or 1 1/4 cups <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 93 => \n array (\n 'id' => 94,\n 'recipe_id' => '12',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 94 => \n array (\n 'id' => 95,\n 'recipe_id' => '12',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 large eggs',\n 'displayNote' => '\\'2 large eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 95 => \n array (\n 'id' => 96,\n 'recipe_id' => '12',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 teaspoons vanilla extract',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> extract\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 96 => \n array (\n 'id' => 97,\n 'recipe_id' => '12',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 cups all-purpose flour',\n 'displayNote' => '\\'2 cups all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 97 => \n array (\n 'id' => 98,\n 'recipe_id' => '12',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup cocoa',\n 'displayNote' => '\\'3/4 cup cocoa\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:07',\n 'updated_at' => '2019-01-07 02:06:07',\n ),\n 98 => \n array (\n 'id' => 99,\n 'recipe_id' => '12',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:07',\n 'updated_at' => '2019-01-07 02:06:07',\n ),\n 99 => \n array (\n 'id' => 100,\n 'recipe_id' => '12',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:07',\n 'updated_at' => '2019-01-07 02:06:07',\n ),\n 100 => \n array (\n 'id' => 101,\n 'recipe_id' => '12',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '2 cups peanut butter chips (12 oz. pkg.) or 2 cups semi-sweet chocolate chips (12 oz. pkg.)',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> (12 oz. pkg.) or 2 cups semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> (12 oz. pkg.)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:07',\n 'updated_at' => '2019-01-07 02:06:07',\n ),\n 101 => \n array (\n 'id' => 102,\n 'recipe_id' => '13',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/2 cup butter, softened (you can use margarine but the flavor will not be the same)',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , softened (you can use <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> but the flavor will not be the same)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:09',\n 'updated_at' => '2019-01-07 02:06:09',\n ),\n 102 => \n array (\n 'id' => 103,\n 'recipe_id' => '13',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 2/3 cups confectioners\\' sugar, sifted ',\n 'displayNote' => '\\'2 2/3 cups confectioners\\\\\\' <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , sifted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:09',\n 'updated_at' => '2019-01-07 02:06:09',\n ),\n 103 => \n array (\n 'id' => 104,\n 'recipe_id' => '13',\n 'ingrident' => 'half and half',\n 'amount' => NULL,\n 'note' => '1/3 cup half-and-half cream (can use unwhipped whipping cream in place of half and half) or 1/3 cup milk (can use unwhipped whipping cream in place of half and half)',\n 'displayNote' => '\\'1/3 cup half-and-half <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> (can use unwhipped whipping <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> in place of <a href=\\\\\\'/ingridients/half-and-half\\\\\\'>half and half</a> ) or 1/3 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> (can use unwhipped whipping <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> in place of <a href=\\\\\\'/ingridients/half-and-half\\\\\\'>half and half</a> )\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:09',\n 'updated_at' => '2019-01-07 02:06:09',\n ),\n 104 => \n array (\n 'id' => 105,\n 'recipe_id' => '13',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons vanilla',\n 'displayNote' => '\\'1 1/2 teaspoons <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:09',\n 'updated_at' => '2019-01-07 02:06:09',\n ),\n 105 => \n array (\n 'id' => 106,\n 'recipe_id' => '13',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:10',\n 'updated_at' => '2019-01-07 02:06:10',\n ),\n 106 => \n array (\n 'id' => 107,\n 'recipe_id' => '13',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup unsweetened cocoa powder, sifted (for light)',\n 'displayNote' => '\\'1/3 cup unsweetened cocoa powder, sifted (for light)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:10',\n 'updated_at' => '2019-01-07 02:06:10',\n ),\n 107 => \n array (\n 'id' => 108,\n 'recipe_id' => '13',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup unsweetened cocoa powder, sifted (for medium)',\n 'displayNote' => '\\'1/2 cup unsweetened cocoa powder, sifted (for medium)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:10',\n 'updated_at' => '2019-01-07 02:06:10',\n ),\n 108 => \n array (\n 'id' => 109,\n 'recipe_id' => '13',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup unsweetened cocoa powder, sifted (for dark rich)',\n 'displayNote' => '\\'3/4 cup unsweetened cocoa powder, sifted (for dark rich)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:10',\n 'updated_at' => '2019-01-07 02:06:10',\n ),\n 109 => \n array (\n 'id' => 110,\n 'recipe_id' => '14',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 110 => \n array (\n 'id' => 111,\n 'recipe_id' => '14',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/2 cup butter',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 111 => \n array (\n 'id' => 112,\n 'recipe_id' => '14',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 large egg',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 112 => \n array (\n 'id' => 113,\n 'recipe_id' => '14',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 113 => \n array (\n 'id' => 114,\n 'recipe_id' => '14',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 1/2 cups flour',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 114 => \n array (\n 'id' => 115,\n 'recipe_id' => '14',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons cinnamon',\n 'displayNote' => '\\'1 1/2 teaspoons <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 115 => \n array (\n 'id' => 116,\n 'recipe_id' => '14',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 116 => \n array (\n 'id' => 117,\n 'recipe_id' => '14',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon salt',\n 'displayNote' => '\\'1/4 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:12',\n 'updated_at' => '2019-01-07 02:06:12',\n ),\n 117 => \n array (\n 'id' => 118,\n 'recipe_id' => '14',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => ' cinnamon sugar',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:12',\n 'updated_at' => '2019-01-07 02:06:12',\n ),\n 118 => \n array (\n 'id' => 119,\n 'recipe_id' => '15',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 garlic cloves, minced ',\n 'displayNote' => '\\'2 <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> cloves, minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 119 => \n array (\n 'id' => 120,\n 'recipe_id' => '15',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '6 tablespoons light olive oil',\n 'displayNote' => '\\'6 tablespoons light <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 120 => \n array (\n 'id' => 121,\n 'recipe_id' => '15',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 teaspoon dried basil',\n 'displayNote' => '\\'1 teaspoon dried <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 121 => \n array (\n 'id' => 122,\n 'recipe_id' => '15',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 122 => \n array (\n 'id' => 123,\n 'recipe_id' => '15',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon ground black pepper',\n 'displayNote' => '\\'1 teaspoon ground black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 123 => \n array (\n 'id' => 124,\n 'recipe_id' => '15',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '1 tablespoon lemon juice',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> juice\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 124 => \n array (\n 'id' => 125,\n 'recipe_id' => '15',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '1 tablespoon fresh parsley, chopped ',\n 'displayNote' => '\\'1 tablespoon fresh <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 125 => \n array (\n 'id' => 126,\n 'recipe_id' => '15',\n 'ingrident' => 'salmon',\n 'amount' => NULL,\n 'note' => '2 (6 ounce) salmon fillets',\n 'displayNote' => '\\'2 (6 ounce) <a href=\\\\\\'/ingridients/salmon\\\\\\'>salmon</a> fillets\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 126 => \n array (\n 'id' => 127,\n 'recipe_id' => '16',\n 'ingrident' => 'oreo',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) package Oreo cookies, crushed ',\n 'displayNote' => '\\'1 (16 ounce) package <a href=\\\\\\'/ingridients/oreo\\\\\\'>oreo</a> <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> , crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:19',\n 'updated_at' => '2019-01-07 02:06:19',\n ),\n 127 => \n array (\n 'id' => 128,\n 'recipe_id' => '16',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 (8 ounce) package cream cheese, softened ',\n 'displayNote' => '\\'1 (8 ounce) package <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:19',\n 'updated_at' => '2019-01-07 02:06:19',\n ),\n 128 => \n array (\n 'id' => 129,\n 'recipe_id' => '16',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 (24 ounce) package white chocolate bark',\n 'displayNote' => '\\'1 (24 ounce) package white <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> bark\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:19',\n 'updated_at' => '2019-01-07 02:06:19',\n ),\n 129 => \n array (\n 'id' => 130,\n 'recipe_id' => '16',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 (24 ounce) package chocolate bark',\n 'displayNote' => '\\'1 (24 ounce) package <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> bark\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:19',\n 'updated_at' => '2019-01-07 02:06:19',\n ),\n 130 => \n array (\n 'id' => 131,\n 'recipe_id' => '17',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 1/2 cups potatoes, peeled and diced (I keep mine with the peel)',\n 'displayNote' => '\\'3 1/2 cups potatoes, peeled and diced (i keep mine with the peel)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 131 => \n array (\n 'id' => 132,\n 'recipe_id' => '17',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1/3 cup celery, diced ',\n 'displayNote' => '\\'1/3 cup <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> , diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 132 => \n array (\n 'id' => 133,\n 'recipe_id' => '17',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/3 cup onion, finely chopped ',\n 'displayNote' => '\\'1/3 cup <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , finely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 133 => \n array (\n 'id' => 134,\n 'recipe_id' => '17',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '1 cup chopped carrot',\n 'displayNote' => '\\'1 cup chopped <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 134 => \n array (\n 'id' => 135,\n 'recipe_id' => '17',\n 'ingrident' => 'ham',\n 'amount' => NULL,\n 'note' => '1 -2 cup ham, diced and cooked ',\n 'displayNote' => '\\'1 -2 cup <a href=\\\\\\'/ingridients/ham\\\\\\'>ham</a> , diced and cooked \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 135 => \n array (\n 'id' => 136,\n 'recipe_id' => '17',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '3 1/4 cups chicken broth or 3 1/4 cups ham stock',\n 'displayNote' => '\\'3 1/4 cups <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> or 3 1/4 cups <a href=\\\\\\'/ingridients/ham\\\\\\'>ham</a> stock\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 136 => \n array (\n 'id' => 137,\n 'recipe_id' => '17',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '2 tablespoons chicken bouillon granules (omit if using chicken broth)',\n 'displayNote' => '\\'2 tablespoons chicken <a href=\\\\\\'/ingridients/bouillon\\\\\\'>bouillon</a> granules (omit if using <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> )\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 137 => \n array (\n 'id' => 138,\n 'recipe_id' => '17',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' salt (to taste)',\n 'displayNote' => '\\' salt (to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 138 => \n array (\n 'id' => 139,\n 'recipe_id' => '17',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon pepper',\n 'displayNote' => '\\'1 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 139 => \n array (\n 'id' => 140,\n 'recipe_id' => '17',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '5 tablespoons butter',\n 'displayNote' => '\\'5 tablespoons <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 140 => \n array (\n 'id' => 141,\n 'recipe_id' => '17',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '5 tablespoons flour',\n 'displayNote' => '\\'5 tablespoons <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 141 => \n array (\n 'id' => 142,\n 'recipe_id' => '17',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '2 cups milk',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 142 => \n array (\n 'id' => 143,\n 'recipe_id' => '17',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '2 cups cheddar cheese, shredded ',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese, shredded \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 143 => \n array (\n 'id' => 144,\n 'recipe_id' => '18',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '1 1/2 lbs ground beef',\n 'displayNote' => '\\'1 1/2 lbs <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 144 => \n array (\n 'id' => 145,\n 'recipe_id' => '18',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '2 tablespoons olive oil',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 145 => \n array (\n 'id' => 146,\n 'recipe_id' => '18',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 medium onion, chopped ',\n 'displayNote' => '\\'1 medium <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 146 => \n array (\n 'id' => 147,\n 'recipe_id' => '18',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 cloves garlic, minced (to taste)',\n 'displayNote' => '\\'2 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced (to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 147 => \n array (\n 'id' => 148,\n 'recipe_id' => '18',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 bay leaves',\n 'displayNote' => '\\'2 bay leaves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 148 => \n array (\n 'id' => 149,\n 'recipe_id' => '18',\n 'ingrident' => 'oregano',\n 'amount' => NULL,\n 'note' => '1 teaspoon oregano',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/oregano\\\\\\'>oregano</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 149 => \n array (\n 'id' => 150,\n 'recipe_id' => '18',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 teaspoon dried basil',\n 'displayNote' => '\\'1 teaspoon dried <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 150 => \n array (\n 'id' => 151,\n 'recipe_id' => '18',\n 'ingrident' => 'italian seasoning',\n 'amount' => NULL,\n 'note' => '1 teaspoon italian seasoning',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/italian-seasoning\\\\\\'>italian seasoning</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 151 => \n array (\n 'id' => 152,\n 'recipe_id' => '18',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt (, or to taste)',\n 'displayNote' => '\\'1 teaspoon salt (, or to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 152 => \n array (\n 'id' => 153,\n 'recipe_id' => '18',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' ground pepper',\n 'displayNote' => '\\' ground pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 153 => \n array (\n 'id' => 154,\n 'recipe_id' => '18',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '1 (6 ounce) can tomato paste',\n 'displayNote' => '\\'1 (6 ounce) can <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> paste\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 154 => \n array (\n 'id' => 155,\n 'recipe_id' => '18',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '2 (16 ounce) cans tomato sauce',\n 'displayNote' => '\\'2 (16 ounce) cans <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 155 => \n array (\n 'id' => 156,\n 'recipe_id' => '18',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (28 ounce) can diced tomatoes',\n 'displayNote' => '\\'1 (28 ounce) can diced tomatoes\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 156 => \n array (\n 'id' => 157,\n 'recipe_id' => '18',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '8 ounces fresh mushrooms, sliced and sauteed in butter ',\n 'displayNote' => '\\'8 ounces fresh mushrooms, sliced and sauteed in <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 157 => \n array (\n 'id' => 158,\n 'recipe_id' => '18',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => ' parmesan cheese, freshly grated ',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese, freshly grated \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 158 => \n array (\n 'id' => 159,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:28',\n 'updated_at' => '2019-01-07 02:06:28',\n ),\n 159 => \n array (\n 'id' => 160,\n 'recipe_id' => '19',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 cups all-purpose flour',\n 'displayNote' => '\\'2 cups all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:28',\n 'updated_at' => '2019-01-07 02:06:28',\n ),\n 160 => \n array (\n 'id' => 161,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:28',\n 'updated_at' => '2019-01-07 02:06:28',\n ),\n 161 => \n array (\n 'id' => 162,\n 'recipe_id' => '19',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 162 => \n array (\n 'id' => 163,\n 'recipe_id' => '19',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '2 teaspoons baking soda',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 163 => \n array (\n 'id' => 164,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup unsweetened cocoa powder',\n 'displayNote' => '\\'3/4 cup unsweetened cocoa powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 164 => \n array (\n 'id' => 165,\n 'recipe_id' => '19',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 165 => \n array (\n 'id' => 166,\n 'recipe_id' => '19',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '1 cup vegetable oil',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 166 => \n array (\n 'id' => 167,\n 'recipe_id' => '19',\n 'ingrident' => 'coffee',\n 'amount' => NULL,\n 'note' => '1 cup hot coffee',\n 'displayNote' => '\\'1 cup hot <a href=\\\\\\'/ingridients/coffee\\\\\\'>coffee</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 167 => \n array (\n 'id' => 168,\n 'recipe_id' => '19',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 168 => \n array (\n 'id' => 169,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 large eggs',\n 'displayNote' => '\\'2 large eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 169 => \n array (\n 'id' => 170,\n 'recipe_id' => '19',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 170 => \n array (\n 'id' => 171,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 171 => \n array (\n 'id' => 172,\n 'recipe_id' => '19',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 172 => \n array (\n 'id' => 173,\n 'recipe_id' => '19',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '5 tablespoons all-purpose flour',\n 'displayNote' => '\\'5 tablespoons all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 173 => \n array (\n 'id' => 174,\n 'recipe_id' => '19',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/2 cup butter, softened ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 174 => \n array (\n 'id' => 175,\n 'recipe_id' => '19',\n 'ingrident' => 'shortening',\n 'amount' => NULL,\n 'note' => '1/2 cup shortening',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/shortening\\\\\\'>shortening</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 175 => \n array (\n 'id' => 176,\n 'recipe_id' => '19',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 176 => \n array (\n 'id' => 177,\n 'recipe_id' => '19',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 177 => \n array (\n 'id' => 178,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '6 large green peppers',\n 'displayNote' => '\\'6 large green peppers\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 178 => \n array (\n 'id' => 179,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb beef, Ground ',\n 'displayNote' => '\\'1 lb beef, ground \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 179 => \n array (\n 'id' => 180,\n 'recipe_id' => '20',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/2 cup onion, Chopped ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 180 => \n array (\n 'id' => 181,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) can tomatoes, diced ',\n 'displayNote' => '\\'1 (16 ounce) can tomatoes, diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 181 => \n array (\n 'id' => 182,\n 'recipe_id' => '20',\n 'ingrident' => 'rice',\n 'amount' => NULL,\n 'note' => '1/2 cup long grain rice, any available rice is fine it may affect cooking time though ',\n 'displayNote' => '\\'1/2 cup long grain <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> , any available <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> is fine it may affect cooking time though \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 182 => \n array (\n 'id' => 183,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup water',\n 'displayNote' => '\\'1 cup water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 183 => \n array (\n 'id' => 184,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 184 => \n array (\n 'id' => 185,\n 'recipe_id' => '20',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '1 teaspoon Worcestershire sauce',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 185 => \n array (\n 'id' => 186,\n 'recipe_id' => '20',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '1 cup cheddar cheese, Shredded (about 4 ounces)',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese, shredded (about 4 ounces)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 186 => \n array (\n 'id' => 187,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 -1 1/2 lb cubed beef stew meat',\n 'displayNote' => '\\'1 -1 1/2 lb cubed beef stew meat\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 187 => \n array (\n 'id' => 188,\n 'recipe_id' => '21',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/2 cup flour',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 188 => \n array (\n 'id' => 189,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons salt',\n 'displayNote' => '\\'1 1/2 teaspoons salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 189 => \n array (\n 'id' => 190,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon pepper',\n 'displayNote' => '\\'1/2 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 190 => \n array (\n 'id' => 191,\n 'recipe_id' => '21',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '1/4 cup vegetable oil',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 191 => \n array (\n 'id' => 192,\n 'recipe_id' => '21',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion, chopped fine ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped fine \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 192 => \n array (\n 'id' => 193,\n 'recipe_id' => '21',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '1 carrot, chopped fine ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> , chopped fine \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 193 => \n array (\n 'id' => 194,\n 'recipe_id' => '21',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1/4 cup finely chopped celery, with a few minced leaves ',\n 'displayNote' => '\\'1/4 cup finely chopped <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> , with a few minced leaves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 194 => \n array (\n 'id' => 195,\n 'recipe_id' => '21',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '1 tablespoon dried parsley',\n 'displayNote' => '\\'1 tablespoon dried <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 195 => \n array (\n 'id' => 196,\n 'recipe_id' => '21',\n 'ingrident' => 'thyme',\n 'amount' => NULL,\n 'note' => '1 pinch thyme',\n 'displayNote' => '\\'1 pinch <a href=\\\\\\'/ingridients/thyme\\\\\\'>thyme</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 196 => \n array (\n 'id' => 197,\n 'recipe_id' => '21',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '3 1/2 cups beef broth',\n 'displayNote' => '\\'3 1/2 cups <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 197 => \n array (\n 'id' => 198,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 medium potatoes, diced ',\n 'displayNote' => '\\'2 medium potatoes, diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 198 => \n array (\n 'id' => 199,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 carrots, diced ',\n 'displayNote' => '\\'2 carrots, diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 199 => \n array (\n 'id' => 200,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 onions, diced ',\n 'displayNote' => '\\'2 onions, diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 200 => \n array (\n 'id' => 201,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 201 => \n array (\n 'id' => 202,\n 'recipe_id' => '22',\n 'ingrident' => 'mayonnaise',\n 'amount' => NULL,\n 'note' => '1 cup mayonnaise',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/mayonnaise\\\\\\'>mayonnaise</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 202 => \n array (\n 'id' => 203,\n 'recipe_id' => '22',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '2 tablespoons vinegar',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 203 => \n array (\n 'id' => 204,\n 'recipe_id' => '22',\n 'ingrident' => 'mustard',\n 'amount' => NULL,\n 'note' => '1 tablespoon mustard',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/mustard-1\\\\\\'>mustard</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 204 => \n array (\n 'id' => 205,\n 'recipe_id' => '22',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 teaspoon sugar',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 205 => \n array (\n 'id' => 206,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 206 => \n array (\n 'id' => 207,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 207 => \n array (\n 'id' => 208,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 lb macaroni, cooked and drained ',\n 'displayNote' => '\\'1/2 lb macaroni, cooked and drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 208 => \n array (\n 'id' => 209,\n 'recipe_id' => '22',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1 cup sliced celery',\n 'displayNote' => '\\'1 cup sliced <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 209 => \n array (\n 'id' => 210,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup chopped green pepper',\n 'displayNote' => '\\'1/2 cup chopped green pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 210 => \n array (\n 'id' => 211,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup chopped red pepper',\n 'displayNote' => '\\'1/2 cup chopped red pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 211 => \n array (\n 'id' => 212,\n 'recipe_id' => '22',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/2 cup chopped green onion',\n 'displayNote' => '\\'1/2 cup chopped green <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 212 => \n array (\n 'id' => 213,\n 'recipe_id' => '23',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (14 1/2 ounce) can tomatoes and green chilies',\n 'displayNote' => '\\'1 (14 1/2 ounce) can tomatoes and green chilies\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 213 => \n array (\n 'id' => 214,\n 'recipe_id' => '23',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (14 1/2 ounce) can whole canned tomatoes (plus the juice)',\n 'displayNote' => '\\'1 (14 1/2 ounce) can whole canned tomatoes (plus the juice)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 214 => \n array (\n 'id' => 215,\n 'recipe_id' => '23',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 teaspoons jalapenos (canned,diced, not pickled)',\n 'displayNote' => '\\'4 teaspoons jalapenos (canned,diced, not pickled)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 215 => \n array (\n 'id' => 216,\n 'recipe_id' => '23',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/4 cup yellow onion (diced)',\n 'displayNote' => '\\'1/4 cup yellow <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> (diced)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 216 => \n array (\n 'id' => 217,\n 'recipe_id' => '23',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1/2-3/4 teaspoon garlic salt',\n 'displayNote' => '\\'1/2-3/4 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 217 => \n array (\n 'id' => 218,\n 'recipe_id' => '23',\n 'ingrident' => 'cumin',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon cumin',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/cumin\\\\\\'>cumin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 218 => \n array (\n 'id' => 219,\n 'recipe_id' => '23',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon sugar',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 219 => \n array (\n 'id' => 220,\n 'recipe_id' => '24',\n 'ingrident' => 'tea',\n 'amount' => NULL,\n 'note' => '6 regular tea bags',\n 'displayNote' => '\\'6 regular <a href=\\\\\\'/ingridients/tea\\\\\\'>tea</a> bags\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 220 => \n array (\n 'id' => 221,\n 'recipe_id' => '24',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1/8 teaspoon baking soda',\n 'displayNote' => '\\'1/8 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 221 => \n array (\n 'id' => 222,\n 'recipe_id' => '24',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 cups boiling water',\n 'displayNote' => '\\'2 cups boiling water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 222 => \n array (\n 'id' => 223,\n 'recipe_id' => '24',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 1/2-2 cups sugar',\n 'displayNote' => '\\'1 1/2-2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 223 => \n array (\n 'id' => 224,\n 'recipe_id' => '24',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '6 cups cold water',\n 'displayNote' => '\\'6 cups cold water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 224 => \n array (\n 'id' => 225,\n 'recipe_id' => '25',\n 'ingrident' => 'cracker',\n 'amount' => NULL,\n 'note' => '1 1/2 cups graham cracker crumbs',\n 'displayNote' => '\\'1 1/2 cups graham <a href=\\\\\\'/ingridients/cracker\\\\\\'>cracker</a> crumbs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:53',\n 'updated_at' => '2019-01-07 02:06:53',\n ),\n 225 => \n array (\n 'id' => 226,\n 'recipe_id' => '25',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '5 tablespoons butter, melted ',\n 'displayNote' => '\\'5 tablespoons <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:53',\n 'updated_at' => '2019-01-07 02:06:53',\n ),\n 226 => \n array (\n 'id' => 227,\n 'recipe_id' => '25',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar, plus ',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , plus \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:53',\n 'updated_at' => '2019-01-07 02:06:53',\n ),\n 227 => \n array (\n 'id' => 228,\n 'recipe_id' => '25',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 tablespoon sugar',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 228 => \n array (\n 'id' => 229,\n 'recipe_id' => '25',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '3 (8 ounce) packages cream cheese',\n 'displayNote' => '\\'3 (8 ounce) packages <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 229 => \n array (\n 'id' => 230,\n 'recipe_id' => '25',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 230 => \n array (\n 'id' => 231,\n 'recipe_id' => '25',\n 'ingrident' => 'pumpkin',\n 'amount' => NULL,\n 'note' => '1 cup canned pumpkin',\n 'displayNote' => '\\'1 cup canned <a href=\\\\\\'/ingridients/pumpkin\\\\\\'>pumpkin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 231 => \n array (\n 'id' => 232,\n 'recipe_id' => '25',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 eggs',\n 'displayNote' => '\\'3 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 232 => \n array (\n 'id' => 233,\n 'recipe_id' => '25',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon cinnamon',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 233 => \n array (\n 'id' => 234,\n 'recipe_id' => '25',\n 'ingrident' => 'nutmeg',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon nutmeg',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/nutmeg\\\\\\'>nutmeg</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 234 => \n array (\n 'id' => 235,\n 'recipe_id' => '25',\n 'ingrident' => 'allspice',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon allspice',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/allspice\\\\\\'>allspice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 235 => \n array (\n 'id' => 236,\n 'recipe_id' => '25',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => ' whipped cream',\n 'displayNote' => '\\' whipped <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 236 => \n array (\n 'id' => 237,\n 'recipe_id' => '26',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/3 cup flour',\n 'displayNote' => '\\'1/3 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 237 => \n array (\n 'id' => 238,\n 'recipe_id' => '26',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 238 => \n array (\n 'id' => 239,\n 'recipe_id' => '26',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 239 => \n array (\n 'id' => 240,\n 'recipe_id' => '26',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 1/2 lbs boneless beef short ribs',\n 'displayNote' => '\\'2 1/2 lbs boneless beef short ribs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 240 => \n array (\n 'id' => 241,\n 'recipe_id' => '26',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/4 cup butter',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 241 => \n array (\n 'id' => 242,\n 'recipe_id' => '26',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 cup chopped onion',\n 'displayNote' => '\\'1 cup chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 242 => \n array (\n 'id' => 243,\n 'recipe_id' => '26',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '1 cup beef broth',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 243 => \n array (\n 'id' => 244,\n 'recipe_id' => '26',\n 'ingrident' => 'red wine',\n 'amount' => NULL,\n 'note' => '3/4 cup red wine vinegar',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/red-wine\\\\\\'>red wine</a> <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 244 => \n array (\n 'id' => 245,\n 'recipe_id' => '26',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup brown sugar',\n 'displayNote' => '\\'3/4 cup brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 245 => \n array (\n 'id' => 246,\n 'recipe_id' => '26',\n 'ingrident' => 'chili sauce',\n 'amount' => NULL,\n 'note' => '1/4 cup chili sauce',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/chili-sauce\\\\\\'>chili sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 246 => \n array (\n 'id' => 247,\n 'recipe_id' => '26',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 tablespoons catsup',\n 'displayNote' => '\\'2 tablespoons catsup\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 247 => \n array (\n 'id' => 248,\n 'recipe_id' => '26',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '2 tablespoons Worcestershire sauce',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 248 => \n array (\n 'id' => 249,\n 'recipe_id' => '26',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 tablespoons minced garlic',\n 'displayNote' => '\\'2 tablespoons minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 249 => \n array (\n 'id' => 250,\n 'recipe_id' => '26',\n 'ingrident' => 'chili powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon chili powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/chili-powder\\\\\\'>chili powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:59',\n 'updated_at' => '2019-01-07 02:06:59',\n ),\n 250 => \n array (\n 'id' => 251,\n 'recipe_id' => '27',\n 'ingrident' => 'cereal',\n 'amount' => NULL,\n 'note' => '9 cups Chex cereal (any kind)',\n 'displayNote' => '\\'9 cups chex <a href=\\\\\\'/ingridients/cereal\\\\\\'>cereal</a> (any kind)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 251 => \n array (\n 'id' => 252,\n 'recipe_id' => '27',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 cup semi-sweet chocolate chips or 6 ounces semi-sweet chocolate chips, melted ',\n 'displayNote' => '\\'1 cup semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> or 6 ounces semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 252 => \n array (\n 'id' => 253,\n 'recipe_id' => '27',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => '1/2 cup smooth peanut butter, melted ',\n 'displayNote' => '\\'1/2 cup smooth <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 253 => \n array (\n 'id' => 254,\n 'recipe_id' => '27',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/4 cup butter, melted ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 254 => \n array (\n 'id' => 255,\n 'recipe_id' => '27',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 -2 teaspoon vanilla',\n 'displayNote' => '\\'1 -2 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 255 => \n array (\n 'id' => 256,\n 'recipe_id' => '27',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 1/2 cups powdered sugar',\n 'displayNote' => '\\'1 1/2 cups powdered <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 256 => \n array (\n 'id' => 257,\n 'recipe_id' => '28',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 large ripe bananas',\n 'displayNote' => '\\'3 large ripe bananas\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 257 => \n array (\n 'id' => 258,\n 'recipe_id' => '28',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup sugar',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 258 => \n array (\n 'id' => 259,\n 'recipe_id' => '28',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 egg, slightly beaten ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> , slightly beaten \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 259 => \n array (\n 'id' => 260,\n 'recipe_id' => '28',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/3 cup melted butter',\n 'displayNote' => '\\'1/3 cup melted <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 260 => \n array (\n 'id' => 261,\n 'recipe_id' => '28',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup blueberries',\n 'displayNote' => '\\'1 cup blueberries\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 261 => \n array (\n 'id' => 262,\n 'recipe_id' => '28',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:05',\n 'updated_at' => '2019-01-07 02:07:05',\n ),\n 262 => \n array (\n 'id' => 263,\n 'recipe_id' => '28',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:05',\n 'updated_at' => '2019-01-07 02:07:05',\n ),\n 263 => \n array (\n 'id' => 264,\n 'recipe_id' => '28',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:05',\n 'updated_at' => '2019-01-07 02:07:05',\n ),\n 264 => \n array (\n 'id' => 265,\n 'recipe_id' => '28',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 1/2 cups flour',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:05',\n 'updated_at' => '2019-01-07 02:07:05',\n ),\n 265 => \n array (\n 'id' => 266,\n 'recipe_id' => '29',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => '1 cup peanut butter (your choice, smooth or chunky)',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> (your choice, smooth or chunky)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:07',\n 'updated_at' => '2019-01-07 02:07:07',\n ),\n 266 => \n array (\n 'id' => 267,\n 'recipe_id' => '29',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup granulated sugar',\n 'displayNote' => '\\'1 cup granulated <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:07',\n 'updated_at' => '2019-01-07 02:07:07',\n ),\n 267 => \n array (\n 'id' => 268,\n 'recipe_id' => '29',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 large egg',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:07',\n 'updated_at' => '2019-01-07 02:07:07',\n ),\n 268 => \n array (\n 'id' => 269,\n 'recipe_id' => '29',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => ' sugar, for rolling ',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , for rolling \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:07',\n 'updated_at' => '2019-01-07 02:07:07',\n ),\n 269 => \n array (\n 'id' => 270,\n 'recipe_id' => '30',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 (10 1/2 ounce) can campbells French onion soup',\n 'displayNote' => '\\'1 (10 1/2 ounce) can campbells french <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> soup\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:09',\n 'updated_at' => '2019-01-07 02:07:09',\n ),\n 270 => \n array (\n 'id' => 271,\n 'recipe_id' => '30',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '1 1/2 lbs ground beef',\n 'displayNote' => '\\'1 1/2 lbs <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:09',\n 'updated_at' => '2019-01-07 02:07:09',\n ),\n 271 => \n array (\n 'id' => 272,\n 'recipe_id' => '30',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup dry breadcrumbs',\n 'displayNote' => '\\'1/2 cup dry breadcrumbs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 272 => \n array (\n 'id' => 273,\n 'recipe_id' => '30',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 egg',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 273 => \n array (\n 'id' => 274,\n 'recipe_id' => '30',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon salt',\n 'displayNote' => '\\'1/4 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 274 => \n array (\n 'id' => 275,\n 'recipe_id' => '30',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/8 teaspoon ground black pepper, to taste ',\n 'displayNote' => '\\'1/8 teaspoon ground black pepper, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 275 => \n array (\n 'id' => 276,\n 'recipe_id' => '30',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 tablespoon all-purpose flour',\n 'displayNote' => '\\'1 tablespoon all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 276 => \n array (\n 'id' => 277,\n 'recipe_id' => '30',\n 'ingrident' => 'ketchup',\n 'amount' => NULL,\n 'note' => '1/4 cup ketchup',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/ketchup\\\\\\'>ketchup</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 277 => \n array (\n 'id' => 278,\n 'recipe_id' => '30',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '1 -3 teaspoon Worcestershire sauce, to taste ',\n 'displayNote' => '\\'1 -3 teaspoon <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 278 => \n array (\n 'id' => 279,\n 'recipe_id' => '30',\n 'ingrident' => 'mustard',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon mustard powder',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/mustard-1\\\\\\'>mustard</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 279 => \n array (\n 'id' => 280,\n 'recipe_id' => '30',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup water',\n 'displayNote' => '\\'1/4 cup water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 280 => \n array (\n 'id' => 281,\n 'recipe_id' => '31',\n 'ingrident' => 'potato',\n 'amount' => NULL,\n 'note' => '1 large potato, per person ',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/potato\\\\\\'>potato</a> , per person \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 281 => \n array (\n 'id' => 282,\n 'recipe_id' => '31',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped celery, per person (include leaves)',\n 'displayNote' => '\\'1/4 cup chopped <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> , per person (include leaves)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 282 => \n array (\n 'id' => 283,\n 'recipe_id' => '31',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped onion, per person ',\n 'displayNote' => '\\'1/4 cup chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , per person \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 283 => \n array (\n 'id' => 284,\n 'recipe_id' => '31',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/4-1/2 cup half-and-half or 1/4-1/2 cup cream',\n 'displayNote' => '\\'1/4-1/2 cup half-and-half or 1/4-1/2 cup <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 284 => \n array (\n 'id' => 285,\n 'recipe_id' => '31',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' salt and pepper, to taste ',\n 'displayNote' => '\\' salt and pepper, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 285 => \n array (\n 'id' => 286,\n 'recipe_id' => '32',\n 'ingrident' => 'mushroom',\n 'amount' => NULL,\n 'note' => '1 (10 3/4 ounce) can condensed cream of mushroom soup',\n 'displayNote' => '\\'1 (10 3/4 ounce) can condensed <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> of <a href=\\\\\\'/ingridients/mushroom\\\\\\'>mushroom</a> soup\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 286 => \n array (\n 'id' => 287,\n 'recipe_id' => '32',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1/4 cup milk',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 287 => \n array (\n 'id' => 288,\n 'recipe_id' => '32',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/8 teaspoon black pepper',\n 'displayNote' => '\\'1/8 teaspoon black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 288 => \n array (\n 'id' => 289,\n 'recipe_id' => '32',\n 'ingrident' => 'green beans',\n 'amount' => NULL,\n 'note' => '2 (14 1/2 ounce) cans cut green beans, drained ',\n 'displayNote' => '\\'2 (14 1/2 ounce) cans cut <a href=\\\\\\'/ingridients/green-beans\\\\\\'>green beans</a> , drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 289 => \n array (\n 'id' => 290,\n 'recipe_id' => '32',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 1/3 cups French-fried onions (French\\'s)',\n 'displayNote' => '\\'1 1/3 cups french-fried onions (french\\\\\\'s)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 290 => \n array (\n 'id' => 291,\n 'recipe_id' => '33',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1 tablespoon butter',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 291 => \n array (\n 'id' => 292,\n 'recipe_id' => '33',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/2 cup finely chopped onion',\n 'displayNote' => '\\'1/2 cup finely chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 292 => \n array (\n 'id' => 293,\n 'recipe_id' => '33',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1/3 cup finely chopped celery',\n 'displayNote' => '\\'1/3 cup finely chopped <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 293 => \n array (\n 'id' => 294,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon ground pepper',\n 'displayNote' => '\\'1/2 teaspoon ground pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 294 => \n array (\n 'id' => 295,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 295 => \n array (\n 'id' => 296,\n 'recipe_id' => '33',\n 'ingrident' => 'peas',\n 'amount' => NULL,\n 'note' => '3/4 cup frozen peas',\n 'displayNote' => '\\'3/4 cup frozen <a href=\\\\\\'/ingridients/peas\\\\\\'>peas</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 296 => \n array (\n 'id' => 297,\n 'recipe_id' => '33',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '3/4 cup carrot (I use the pre-cut matchstick carrots)',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> (i use the pre-cut matchstick <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> s)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 297 => \n array (\n 'id' => 298,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '8 ounces sliced mushrooms',\n 'displayNote' => '\\'8 ounces sliced mushrooms\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 298 => \n array (\n 'id' => 299,\n 'recipe_id' => '33',\n 'ingrident' => 'sherry',\n 'amount' => NULL,\n 'note' => '1/2 cup white wine (or sherry)',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/white-wine\\\\\\'>white wine</a> (or <a href=\\\\\\'/ingridients/sherry\\\\\\'>sherry</a> )\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 299 => \n array (\n 'id' => 300,\n 'recipe_id' => '33',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/2 cup flour',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 300 => \n array (\n 'id' => 301,\n 'recipe_id' => '33',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '4 cups chicken broth (or turkey broth)',\n 'displayNote' => '\\'4 cups <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> (or <a href=\\\\\\'/ingridients/turkey\\\\\\'>turkey</a> broth)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 301 => \n array (\n 'id' => 302,\n 'recipe_id' => '33',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1 cup parmesan cheese (divided)',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese (divided)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 302 => \n array (\n 'id' => 303,\n 'recipe_id' => '33',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '4 ounces light cream cheese (low fat)',\n 'displayNote' => '\\'4 ounces light <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> (low fat)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 303 => \n array (\n 'id' => 304,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (8 ounce) package thin spaghetti (cooked)',\n 'displayNote' => '\\'1 (8 ounce) package thin spaghetti (cooked)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 304 => \n array (\n 'id' => 305,\n 'recipe_id' => '33',\n 'ingrident' => 'turkey',\n 'amount' => NULL,\n 'note' => '2 cups turkey meat, cooked and shredded (or chicken)',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/turkey\\\\\\'>turkey</a> meat, cooked and shredded (or chicken)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 305 => \n array (\n 'id' => 306,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup breadcrumbs (I use panko)',\n 'displayNote' => '\\'1/2 cup breadcrumbs (i use panko)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 306 => \n array (\n 'id' => 307,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb beef stew meat',\n 'displayNote' => '\\'1 lb beef stew meat\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:31',\n 'updated_at' => '2019-01-07 02:07:31',\n ),\n 307 => \n array (\n 'id' => 308,\n 'recipe_id' => '34',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:31',\n 'updated_at' => '2019-01-07 02:07:31',\n ),\n 308 => \n array (\n 'id' => 309,\n 'recipe_id' => '34',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '3 celery ribs',\n 'displayNote' => '\\'3 <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> ribs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 309 => \n array (\n 'id' => 310,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '10 baby carrots (or a couple regular carrots)',\n 'displayNote' => '\\'10 baby carrots (or a couple regular carrots)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 310 => \n array (\n 'id' => 311,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 potatoes (peeled if you like)',\n 'displayNote' => '\\'2 potatoes (peeled if you like)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 311 => \n array (\n 'id' => 312,\n 'recipe_id' => '34',\n 'ingrident' => 'corn',\n 'amount' => NULL,\n 'note' => '1 cup frozen corn',\n 'displayNote' => '\\'1 cup frozen <a href=\\\\\\'/ingridients/corn\\\\\\'>corn</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 312 => \n array (\n 'id' => 313,\n 'recipe_id' => '34',\n 'ingrident' => 'peas',\n 'amount' => NULL,\n 'note' => '1 cup frozen peas',\n 'displayNote' => '\\'1 cup frozen <a href=\\\\\\'/ingridients/peas\\\\\\'>peas</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 313 => \n array (\n 'id' => 314,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 (14 ounce) cans diced tomatoes (I use salt-free)',\n 'displayNote' => '\\'2 (14 ounce) cans diced tomatoes (i use salt-free)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 314 => \n array (\n 'id' => 315,\n 'recipe_id' => '34',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '3 1/2 cups beef broth (or 2 14-oz cans)',\n 'displayNote' => '\\'3 1/2 cups <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> (or 2 14-oz cans)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 315 => \n array (\n 'id' => 316,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 small bay leaves',\n 'displayNote' => '\\'2 small bay leaves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 316 => \n array (\n 'id' => 317,\n 'recipe_id' => '34',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 teaspoons garlic powder',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 317 => \n array (\n 'id' => 318,\n 'recipe_id' => '34',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '2 tablespoons olive oil (or any cooking oil)',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil (or any cooking oil)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 318 => \n array (\n 'id' => 319,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 cups water',\n 'displayNote' => '\\'4 cups water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 319 => \n array (\n 'id' => 320,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 teaspoons hot pepper sauce',\n 'displayNote' => '\\'2 teaspoons hot pepper sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 320 => \n array (\n 'id' => 321,\n 'recipe_id' => '35',\n 'ingrident' => 'flax',\n 'amount' => NULL,\n 'note' => '2 tablespoons ground flax seeds',\n 'displayNote' => '\\'2 tablespoons ground <a href=\\\\\\'/ingridients/flax\\\\\\'>flax</a> seeds\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 321 => \n array (\n 'id' => 322,\n 'recipe_id' => '35',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '6 tablespoons water',\n 'displayNote' => '\\'6 tablespoons water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 322 => \n array (\n 'id' => 323,\n 'recipe_id' => '35',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 cup all-purpose flour',\n 'displayNote' => '\\'1 cup all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 323 => \n array (\n 'id' => 324,\n 'recipe_id' => '35',\n 'ingrident' => 'cornmeal',\n 'amount' => NULL,\n 'note' => '1 cup cornmeal',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/cornmeal\\\\\\'>cornmeal</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 324 => \n array (\n 'id' => 325,\n 'recipe_id' => '35',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup sugar',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 325 => \n array (\n 'id' => 326,\n 'recipe_id' => '35',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '4 teaspoons baking powder',\n 'displayNote' => '\\'4 teaspoons <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:37',\n 'updated_at' => '2019-01-07 02:07:37',\n ),\n 326 => \n array (\n 'id' => 327,\n 'recipe_id' => '35',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 teaspoon table salt',\n 'displayNote' => '\\'3/4 teaspoon table salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:37',\n 'updated_at' => '2019-01-07 02:07:37',\n ),\n 327 => \n array (\n 'id' => 328,\n 'recipe_id' => '35',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup soymilk',\n 'displayNote' => '\\'1 cup soymilk\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:37',\n 'updated_at' => '2019-01-07 02:07:37',\n ),\n 328 => \n array (\n 'id' => 329,\n 'recipe_id' => '35',\n 'ingrident' => 'canola oil',\n 'amount' => NULL,\n 'note' => '1/4 cup canola oil',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/canola-oil\\\\\\'>canola oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:37',\n 'updated_at' => '2019-01-07 02:07:37',\n ),\n 329 => \n array (\n 'id' => 330,\n 'recipe_id' => '36',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '1/4 cup balsamic vinegar',\n 'displayNote' => '\\'1/4 cup balsamic <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 330 => \n array (\n 'id' => 331,\n 'recipe_id' => '36',\n 'ingrident' => 'soy sauce',\n 'amount' => NULL,\n 'note' => '1/4 cup soy sauce',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/soy-sauce\\\\\\'>soy sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 331 => \n array (\n 'id' => 332,\n 'recipe_id' => '36',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '2 tablespoons Worcestershire sauce',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 332 => \n array (\n 'id' => 333,\n 'recipe_id' => '36',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '1/4 cup olive oil',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 333 => \n array (\n 'id' => 334,\n 'recipe_id' => '36',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 garlic cloves, Crushed ',\n 'displayNote' => '\\'2 <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> cloves, crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 334 => \n array (\n 'id' => 335,\n 'recipe_id' => '36',\n 'ingrident' => 'rosemary',\n 'amount' => NULL,\n 'note' => '1 teaspoon rosemary',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/rosemary\\\\\\'>rosemary</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 335 => \n array (\n 'id' => 336,\n 'recipe_id' => '36',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon fresh ground black pepper',\n 'displayNote' => '\\'1/4 teaspoon fresh ground black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 336 => \n array (\n 'id' => 337,\n 'recipe_id' => '36',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 lbs london broil beef (approx)',\n 'displayNote' => '\\'2 lbs london broil beef (approx)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 337 => \n array (\n 'id' => 338,\n 'recipe_id' => '37',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 fresh garlic cloves, minced then crushed ',\n 'displayNote' => '\\'2 fresh <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> cloves, minced then crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 338 => \n array (\n 'id' => 339,\n 'recipe_id' => '37',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon salt',\n 'displayNote' => '\\'1/4 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 339 => \n array (\n 'id' => 340,\n 'recipe_id' => '37',\n 'ingrident' => 'mustard',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons Dijon mustard (Grey poupon)',\n 'displayNote' => '\\'1 1/2 teaspoons dijon <a href=\\\\\\'/ingridients/mustard-1\\\\\\'>mustard</a> (grey poupon)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 340 => \n array (\n 'id' => 341,\n 'recipe_id' => '37',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '1/2 cup extra virgin olive oil',\n 'displayNote' => '\\'1/2 cup extra virgin <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 341 => \n array (\n 'id' => 342,\n 'recipe_id' => '37',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '2 tablespoons fresh lemon juice (not bottled)',\n 'displayNote' => '\\'2 tablespoons fresh <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> juice (not bottled)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 342 => \n array (\n 'id' => 343,\n 'recipe_id' => '37',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon sugar',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 343 => \n array (\n 'id' => 344,\n 'recipe_id' => '37',\n 'ingrident' => 'red wine',\n 'amount' => NULL,\n 'note' => '5 tablespoons red wine vinegar',\n 'displayNote' => '\\'5 tablespoons <a href=\\\\\\'/ingridients/red-wine\\\\\\'>red wine</a> <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 344 => \n array (\n 'id' => 345,\n 'recipe_id' => '37',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon basil leaves',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> leaves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 345 => \n array (\n 'id' => 346,\n 'recipe_id' => '37',\n 'ingrident' => 'oregano',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon oregano leaves',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/oregano\\\\\\'>oregano</a> leaves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 346 => \n array (\n 'id' => 347,\n 'recipe_id' => '38',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 eggs',\n 'displayNote' => '\\'4 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 347 => \n array (\n 'id' => 348,\n 'recipe_id' => '38',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 348 => \n array (\n 'id' => 349,\n 'recipe_id' => '38',\n 'ingrident' => 'pumpkin',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) can pumpkin',\n 'displayNote' => '\\'1 (16 ounce) can <a href=\\\\\\'/ingridients/pumpkin\\\\\\'>pumpkin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 349 => \n array (\n 'id' => 350,\n 'recipe_id' => '38',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla extract',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> extract\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 350 => \n array (\n 'id' => 351,\n 'recipe_id' => '38',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '1 1/4 cups vegetable oil (yes, 1 1/4 cups)',\n 'displayNote' => '\\'1 1/4 cups <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> (yes, 1 1/4 cups)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 351 => \n array (\n 'id' => 352,\n 'recipe_id' => '38',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '3 cups flour',\n 'displayNote' => '\\'3 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 352 => \n array (\n 'id' => 353,\n 'recipe_id' => '38',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '2 teaspoons baking soda',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 353 => \n array (\n 'id' => 354,\n 'recipe_id' => '38',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '2 teaspoons baking powder',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 354 => \n array (\n 'id' => 355,\n 'recipe_id' => '38',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '2 teaspoons cinnamon',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 355 => \n array (\n 'id' => 356,\n 'recipe_id' => '38',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 356 => \n array (\n 'id' => 357,\n 'recipe_id' => '38',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '12 ounces semi-sweet chocolate chips (Regular or mini, I like mini best)',\n 'displayNote' => '\\'12 ounces semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> (regular or mini, i like mini best)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 357 => \n array (\n 'id' => 358,\n 'recipe_id' => '39',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (9 ounce) box barilla no-boil lasagna noodles',\n 'displayNote' => '\\'1 (9 ounce) box barilla no-boil lasagna noodles\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 358 => \n array (\n 'id' => 359,\n 'recipe_id' => '39',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs',\n 'displayNote' => '\\'2 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 359 => \n array (\n 'id' => 360,\n 'recipe_id' => '39',\n 'ingrident' => 'ricotta',\n 'amount' => NULL,\n 'note' => '1 (15 ounce) container ricotta cheese',\n 'displayNote' => '\\'1 (15 ounce) container <a href=\\\\\\'/ingridients/ricotta\\\\\\'>ricotta</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 360 => \n array (\n 'id' => 361,\n 'recipe_id' => '39',\n 'ingrident' => 'mozzarella',\n 'amount' => NULL,\n 'note' => '4 cups shredded mozzarella cheese',\n 'displayNote' => '\\'4 cups shredded <a href=\\\\\\'/ingridients/mozzarella\\\\\\'>mozzarella</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 361 => \n array (\n 'id' => 362,\n 'recipe_id' => '39',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1/2 cup parmesan cheese',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 362 => \n array (\n 'id' => 363,\n 'recipe_id' => '39',\n 'ingrident' => 'sausage',\n 'amount' => NULL,\n 'note' => '1 lb ground beef or 1 lb sausage, browned ',\n 'displayNote' => '\\'1 lb <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> or 1 lb <a href=\\\\\\'/ingridients/sausage\\\\\\'>sausage</a> , browned \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:58',\n 'updated_at' => '2019-01-07 02:07:58',\n ),\n 363 => \n array (\n 'id' => 364,\n 'recipe_id' => '39',\n 'ingrident' => 'pasta',\n 'amount' => NULL,\n 'note' => '2 (24 ounce) jars spaghetti sauce or 2 (24 ounce) jars pasta sauce',\n 'displayNote' => '\\'2 (24 ounce) jars spaghetti sauce or 2 (24 ounce) jars <a href=\\\\\\'/ingridients/pasta\\\\\\'>pasta</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:58',\n 'updated_at' => '2019-01-07 02:07:58',\n ),\n 364 => \n array (\n 'id' => 365,\n 'recipe_id' => '39',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => ' parsley (to garnish)',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> (to garnish)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:58',\n 'updated_at' => '2019-01-07 02:07:58',\n ),\n 365 => \n array (\n 'id' => 366,\n 'recipe_id' => '40',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 cups all-purpose flour',\n 'displayNote' => '\\'2 cups all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 366 => \n array (\n 'id' => 367,\n 'recipe_id' => '40',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 tablespoon baking powder',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 367 => \n array (\n 'id' => 368,\n 'recipe_id' => '40',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 368 => \n array (\n 'id' => 369,\n 'recipe_id' => '40',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 tablespoons butter',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 369 => \n array (\n 'id' => 370,\n 'recipe_id' => '40',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 370 => \n array (\n 'id' => 371,\n 'recipe_id' => '41',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 371 => \n array (\n 'id' => 372,\n 'recipe_id' => '41',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup margarine',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 372 => \n array (\n 'id' => 373,\n 'recipe_id' => '41',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1/2 cup milk',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 373 => \n array (\n 'id' => 374,\n 'recipe_id' => '41',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => '1 cup peanut butter',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 374 => \n array (\n 'id' => 375,\n 'recipe_id' => '41',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 375 => \n array (\n 'id' => 376,\n 'recipe_id' => '41',\n 'ingrident' => 'rolled oats',\n 'amount' => NULL,\n 'note' => '3 cups rolled oats (old fashioned)',\n 'displayNote' => '\\'3 cups <a href=\\\\\\'/ingridients/rolled-oats\\\\\\'>rolled oats</a> (old fashioned)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 376 => \n array (\n 'id' => 377,\n 'recipe_id' => '42',\n 'ingrident' => 'haddock',\n 'amount' => NULL,\n 'note' => '4 cod fish fillets or 4 haddock fillets',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/cod\\\\\\'>cod</a> <a href=\\\\\\'/ingridients/fish-fillets\\\\\\'>fish fillets</a> or 4 <a href=\\\\\\'/ingridients/haddock\\\\\\'>haddock</a> fillets\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 377 => \n array (\n 'id' => 378,\n 'recipe_id' => '42',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '6 ounces plain flour',\n 'displayNote' => '\\'6 ounces plain <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 378 => \n array (\n 'id' => 379,\n 'recipe_id' => '42',\n 'ingrident' => 'bicarbonate of soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon bicarbonate of soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/bicarbonate-of-soda\\\\\\'>bicarbonate of soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 379 => \n array (\n 'id' => 380,\n 'recipe_id' => '42',\n 'ingrident' => 'beer',\n 'amount' => NULL,\n 'note' => '1 (8 fluid ounce) bottle british beer, Small ',\n 'displayNote' => '\\'1 (8 fluid ounce) bottle british <a href=\\\\\\'/ingridients/beer\\\\\\'>beer</a> , small \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 380 => \n array (\n 'id' => 381,\n 'recipe_id' => '42',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '1/2 lemon, juice of',\n 'displayNote' => '\\'1/2 <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> , juice of\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 381 => \n array (\n 'id' => 382,\n 'recipe_id' => '42',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' salt & pepper',\n 'displayNote' => '\\' salt & pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 382 => \n array (\n 'id' => 383,\n 'recipe_id' => '42',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => ' extra flour',\n 'displayNote' => '\\' extra <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 383 => \n array (\n 'id' => 384,\n 'recipe_id' => '42',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 lbs potatoes, peeled & chipped ',\n 'displayNote' => '\\'3 lbs potatoes, peeled & chipped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 384 => \n array (\n 'id' => 385,\n 'recipe_id' => '42',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' good quality cooking fat or oil',\n 'displayNote' => '\\' good quality cooking fat or oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 385 => \n array (\n 'id' => 386,\n 'recipe_id' => '43',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/2 cup butter',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 386 => \n array (\n 'id' => 387,\n 'recipe_id' => '43',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '8 ounces cream cheese',\n 'displayNote' => '\\'8 ounces <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 387 => \n array (\n 'id' => 388,\n 'recipe_id' => '43',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '8 ounces half-and-half cream',\n 'displayNote' => '\\'8 ounces half-and-half <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 388 => \n array (\n 'id' => 389,\n 'recipe_id' => '43',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1/4 cup parmesan cheese',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 389 => \n array (\n 'id' => 390,\n 'recipe_id' => '43',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1 teaspoon garlic powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 390 => \n array (\n 'id' => 391,\n 'recipe_id' => '43',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' black pepper (to taste)',\n 'displayNote' => '\\' black pepper (to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 391 => \n array (\n 'id' => 392,\n 'recipe_id' => '44',\n 'ingrident' => 'rice',\n 'amount' => NULL,\n 'note' => '1 1/2 cups long grain brown rice',\n 'displayNote' => '\\'1 1/2 cups long grain brown <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:30',\n 'updated_at' => '2019-01-07 02:08:30',\n ),\n 392 => \n array (\n 'id' => 393,\n 'recipe_id' => '44',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 1/2 cups water',\n 'displayNote' => '\\'2 1/2 cups water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:30',\n 'updated_at' => '2019-01-07 02:08:30',\n ),\n 393 => \n array (\n 'id' => 394,\n 'recipe_id' => '44',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1 tablespoon unsalted butter',\n 'displayNote' => '\\'1 tablespoon unsalted <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:30',\n 'updated_at' => '2019-01-07 02:08:30',\n ),\n 394 => \n array (\n 'id' => 395,\n 'recipe_id' => '44',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:30',\n 'updated_at' => '2019-01-07 02:08:30',\n ),\n 395 => \n array (\n 'id' => 396,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '5 large potatoes, cut in bite sized chunks ',\n 'displayNote' => '\\'5 large potatoes, cut in bite sized chunks \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 396 => \n array (\n 'id' => 397,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb kielbasa, sliced ',\n 'displayNote' => '\\'1 lb kielbasa, sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 397 => \n array (\n 'id' => 398,\n 'recipe_id' => '45',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 cup chopped onion',\n 'displayNote' => '\\'1 cup chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 398 => \n array (\n 'id' => 399,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup chopped green pepper',\n 'displayNote' => '\\'1 cup chopped green pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 399 => \n array (\n 'id' => 400,\n 'recipe_id' => '45',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '2 tablespoons vegetable oil',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 400 => \n array (\n 'id' => 401,\n 'recipe_id' => '45',\n 'ingrident' => 'oregano',\n 'amount' => NULL,\n 'note' => '1 teaspoon oregano',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/oregano\\\\\\'>oregano</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 401 => \n array (\n 'id' => 402,\n 'recipe_id' => '45',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 teaspoon basil',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 402 => \n array (\n 'id' => 403,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 403 => \n array (\n 'id' => 404,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 404 => \n array (\n 'id' => 405,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 1/2 cups water',\n 'displayNote' => '\\'1 1/2 cups water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 405 => \n array (\n 'id' => 406,\n 'recipe_id' => '45',\n 'ingrident' => 'american cheese',\n 'amount' => NULL,\n 'note' => '1 1/2 cups shredded American cheese',\n 'displayNote' => '\\'1 1/2 cups shredded <a href=\\\\\\'/ingridients/american-cheese\\\\\\'>american cheese</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 406 => \n array (\n 'id' => 407,\n 'recipe_id' => '46',\n 'ingrident' => 'jello',\n 'amount' => NULL,\n 'note' => '2 Jello Instant Vanilla Pudding Mix (small packages)',\n 'displayNote' => '\\'2 <a href=\\\\\\'/ingridients/jello\\\\\\'>jello</a> instant <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> <a href=\\\\\\'/ingridients/pudding-mix\\\\\\'>pudding mix</a> (small packages)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:39',\n 'updated_at' => '2019-01-07 02:08:39',\n ),\n 407 => \n array (\n 'id' => 408,\n 'recipe_id' => '46',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '3 cups milk',\n 'displayNote' => '\\'3 cups <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:39',\n 'updated_at' => '2019-01-07 02:08:39',\n ),\n 408 => \n array (\n 'id' => 409,\n 'recipe_id' => '46',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '8 ounces non-dairy whipped topping',\n 'displayNote' => '\\'8 ounces non-dairy whipped topping\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:39',\n 'updated_at' => '2019-01-07 02:08:39',\n ),\n 409 => \n array (\n 'id' => 410,\n 'recipe_id' => '46',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) box graham crackers (you will have some leftovers)',\n 'displayNote' => '\\'1 (16 ounce) box graham crackers (you will have some leftovers)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:39',\n 'updated_at' => '2019-01-07 02:08:39',\n ),\n 410 => \n array (\n 'id' => 411,\n 'recipe_id' => '46',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 (15 ounce) container chocolate frosting',\n 'displayNote' => '\\'1 (15 ounce) container <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/frosting\\\\\\'>frosting</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:40',\n 'updated_at' => '2019-01-07 02:08:40',\n ),\n 411 => \n array (\n 'id' => 412,\n 'recipe_id' => '47',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '4 cups flour',\n 'displayNote' => '\\'4 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:47',\n 'updated_at' => '2019-01-07 02:08:47',\n ),\n 412 => \n array (\n 'id' => 413,\n 'recipe_id' => '47',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:47',\n 'updated_at' => '2019-01-07 02:08:47',\n ),\n 413 => \n array (\n 'id' => 414,\n 'recipe_id' => '47',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:47',\n 'updated_at' => '2019-01-07 02:08:47',\n ),\n 414 => \n array (\n 'id' => 415,\n 'recipe_id' => '47',\n 'ingrident' => 'yogurt',\n 'amount' => NULL,\n 'note' => '2 cups plain low-fat yogurt',\n 'displayNote' => '\\'2 cups plain low-fat <a href=\\\\\\'/ingridients/yogurt\\\\\\'>yogurt</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:47',\n 'updated_at' => '2019-01-07 02:08:47',\n ),\n 415 => \n array (\n 'id' => 416,\n 'recipe_id' => '48',\n 'ingrident' => 'shortening',\n 'amount' => NULL,\n 'note' => '1/2 cup shortening',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/shortening\\\\\\'>shortening</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 416 => \n array (\n 'id' => 417,\n 'recipe_id' => '48',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 1/2 cups sugar',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 417 => \n array (\n 'id' => 418,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs',\n 'displayNote' => '\\'2 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 418 => \n array (\n 'id' => 419,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 ounces red food coloring',\n 'displayNote' => '\\'2 ounces red food coloring\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 419 => \n array (\n 'id' => 420,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 tablespoons cocoa (heaping)',\n 'displayNote' => '\\'2 tablespoons cocoa (heaping)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 420 => \n array (\n 'id' => 421,\n 'recipe_id' => '48',\n 'ingrident' => 'buttermilk',\n 'amount' => NULL,\n 'note' => '1 cup buttermilk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/buttermilk\\\\\\'>buttermilk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 421 => \n array (\n 'id' => 422,\n 'recipe_id' => '48',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 1/4 cups cake flour',\n 'displayNote' => '\\'2 1/4 cups cake <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 422 => \n array (\n 'id' => 423,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 423 => \n array (\n 'id' => 424,\n 'recipe_id' => '48',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 424 => \n array (\n 'id' => 425,\n 'recipe_id' => '48',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 425 => \n array (\n 'id' => 426,\n 'recipe_id' => '48',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '1 teaspoon vinegar',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 426 => \n array (\n 'id' => 427,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 427 => \n array (\n 'id' => 428,\n 'recipe_id' => '48',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '3 tablespoons flour',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 428 => \n array (\n 'id' => 429,\n 'recipe_id' => '48',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 429 => \n array (\n 'id' => 430,\n 'recipe_id' => '48',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 430 => \n array (\n 'id' => 431,\n 'recipe_id' => '48',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 431 => \n array (\n 'id' => 432,\n 'recipe_id' => '48',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1 cup butter (must be butter)',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> (must be <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> )\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 432 => \n array (\n 'id' => 433,\n 'recipe_id' => '49',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '15 large dried chilies (such as Anaheim, New Mexico, California, or pasilla)',\n 'displayNote' => '\\'15 large dried chilies (such as anaheim, new mexico, california, or pasilla)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:56',\n 'updated_at' => '2019-01-07 02:08:56',\n ),\n 433 => \n array (\n 'id' => 434,\n 'recipe_id' => '49',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '4 -5 garlic cloves',\n 'displayNote' => '\\'4 -5 <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> cloves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:56',\n 'updated_at' => '2019-01-07 02:08:56',\n ),\n 434 => \n array (\n 'id' => 435,\n 'recipe_id' => '49',\n 'ingrident' => 'cumin',\n 'amount' => NULL,\n 'note' => '2 teaspoons ground cumin',\n 'displayNote' => '\\'2 teaspoons ground <a href=\\\\\\'/ingridients/cumin\\\\\\'>cumin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:56',\n 'updated_at' => '2019-01-07 02:08:56',\n ),\n 435 => \n array (\n 'id' => 436,\n 'recipe_id' => '49',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:56',\n 'updated_at' => '2019-01-07 02:08:56',\n ),\n 436 => \n array (\n 'id' => 437,\n 'recipe_id' => '49',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 teaspoons all-purpose flour',\n 'displayNote' => '\\'2 teaspoons all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:57',\n 'updated_at' => '2019-01-07 02:08:57',\n ),\n 437 => \n array (\n 'id' => 438,\n 'recipe_id' => '49',\n 'ingrident' => 'shortening',\n 'amount' => NULL,\n 'note' => '2 teaspoons olive oil or 2 teaspoons melted shortening',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil or 2 teaspoons melted <a href=\\\\\\'/ingridients/shortening\\\\\\'>shortening</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:57',\n 'updated_at' => '2019-01-07 02:08:57',\n ),\n 438 => \n array (\n 'id' => 439,\n 'recipe_id' => '50',\n 'ingrident' => 'cauliflower',\n 'amount' => NULL,\n 'note' => '1 head cauliflower or 1 head equal amount of pre-cut commercially prepped cauliflower',\n 'displayNote' => '\\'1 head <a href=\\\\\\'/ingridients/cauliflower\\\\\\'>cauliflower</a> or 1 head equal amount of pre-cut commercially prepped <a href=\\\\\\'/ingridients/cauliflower\\\\\\'>cauliflower</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:00',\n 'updated_at' => '2019-01-07 02:09:00',\n ),\n 439 => \n array (\n 'id' => 440,\n 'recipe_id' => '50',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '4 tablespoons olive oil',\n 'displayNote' => '\\'4 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:00',\n 'updated_at' => '2019-01-07 02:09:00',\n ),\n 440 => \n array (\n 'id' => 441,\n 'recipe_id' => '50',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt, to taste ',\n 'displayNote' => '\\'1 teaspoon salt, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:00',\n 'updated_at' => '2019-01-07 02:09:00',\n ),\n 441 => \n array (\n 'id' => 442,\n 'recipe_id' => '51',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '2 lbs ground beef',\n 'displayNote' => '\\'2 lbs <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 442 => \n array (\n 'id' => 443,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 cups chopped onions',\n 'displayNote' => '\\'2 cups chopped onions\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 443 => \n array (\n 'id' => 444,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 cups beef stock',\n 'displayNote' => '\\'4 cups beef stock\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 444 => \n array (\n 'id' => 445,\n 'recipe_id' => '51',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '2 (8 ounce) cans tomato sauce',\n 'displayNote' => '\\'2 (8 ounce) cans <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 445 => \n array (\n 'id' => 446,\n 'recipe_id' => '51',\n 'ingrident' => 'chili powder',\n 'amount' => NULL,\n 'note' => '2 -3 tablespoons chili powder',\n 'displayNote' => '\\'2 -3 tablespoons <a href=\\\\\\'/ingridients/chili-powder\\\\\\'>chili powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 446 => \n array (\n 'id' => 447,\n 'recipe_id' => '51',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '2 tablespoons apple cider vinegar',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/apple\\\\\\'>apple</a> cider <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 447 => \n array (\n 'id' => 448,\n 'recipe_id' => '51',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '2 teaspoons Worcestershire sauce',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 448 => \n array (\n 'id' => 449,\n 'recipe_id' => '51',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1/2 ounce grated unsweetened chocolate or 2 3/4 tablespoons cocoa',\n 'displayNote' => '\\'1/2 ounce grated unsweetened <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> or 2 3/4 tablespoons cocoa\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 449 => \n array (\n 'id' => 450,\n 'recipe_id' => '51',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 teaspoons instant minced garlic',\n 'displayNote' => '\\'2 teaspoons instant minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 450 => \n array (\n 'id' => 451,\n 'recipe_id' => '51',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1 teaspoon ground cinnamon',\n 'displayNote' => '\\'1 teaspoon ground <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 451 => \n array (\n 'id' => 452,\n 'recipe_id' => '51',\n 'ingrident' => 'cumin',\n 'amount' => NULL,\n 'note' => '1 teaspoon ground cumin',\n 'displayNote' => '\\'1 teaspoon ground <a href=\\\\\\'/ingridients/cumin\\\\\\'>cumin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 452 => \n array (\n 'id' => 453,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 453 => \n array (\n 'id' => 454,\n 'recipe_id' => '51',\n 'ingrident' => 'cayenne',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon ground red pepper or 1/2 teaspoon cayenne pepper',\n 'displayNote' => '\\'1/2 teaspoon ground red pepper or 1/2 teaspoon <a href=\\\\\\'/ingridients/cayenne\\\\\\'>cayenne</a> pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 454 => \n array (\n 'id' => 455,\n 'recipe_id' => '51',\n 'ingrident' => 'allspice',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon ground allspice',\n 'displayNote' => '\\'1/4 teaspoon ground <a href=\\\\\\'/ingridients/allspice\\\\\\'>allspice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 455 => \n array (\n 'id' => 456,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon ground cloves',\n 'displayNote' => '\\'1/4 teaspoon ground cloves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 456 => \n array (\n 'id' => 457,\n 'recipe_id' => '51',\n 'ingrident' => 'bay leaf',\n 'amount' => NULL,\n 'note' => '1 bay leaves or 1/8 teaspoon bay leaf powder',\n 'displayNote' => '\\'1 bay leaves or 1/8 teaspoon <a href=\\\\\\'/ingridients/bay-leaf\\\\\\'>bay leaf</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 457 => \n array (\n 'id' => 458,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 458 => \n array (\n 'id' => 459,\n 'recipe_id' => '51',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => ' chopped onion',\n 'displayNote' => '\\' chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 459 => \n array (\n 'id' => 460,\n 'recipe_id' => '51',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => ' finely shredded cheddar cheese (certainly NOT optional)',\n 'displayNote' => '\\' finely shredded <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese (certainly not optional)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 460 => \n array (\n 'id' => 461,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' kidney bean',\n 'displayNote' => '\\' kidney bean\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 461 => \n array (\n 'id' => 462,\n 'recipe_id' => '52',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '2/3 cup butter or 2/3 cup margarine',\n 'displayNote' => '\\'2/3 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or 2/3 cup <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 462 => \n array (\n 'id' => 463,\n 'recipe_id' => '52',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 1/2 cups sugar (reduce to 1-1/4 cups for a less sweeter taste)',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> (reduce to 1-1/4 cups for a less sweeter taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 463 => \n array (\n 'id' => 464,\n 'recipe_id' => '52',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup water',\n 'displayNote' => '\\'1/4 cup water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 464 => \n array (\n 'id' => 465,\n 'recipe_id' => '52',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '4 cups semi-sweet chocolate chips, divided (32 ounces)',\n 'displayNote' => '\\'4 cups semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> , divided (32 ounces)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 465 => \n array (\n 'id' => 466,\n 'recipe_id' => '52',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 teaspoons vanilla',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 466 => \n array (\n 'id' => 467,\n 'recipe_id' => '52',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 eggs',\n 'displayNote' => '\\'4 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 467 => \n array (\n 'id' => 468,\n 'recipe_id' => '52',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 1/2 cups flour',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 468 => \n array (\n 'id' => 469,\n 'recipe_id' => '52',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon baking soda',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 469 => \n array (\n 'id' => 470,\n 'recipe_id' => '52',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 470 => \n array (\n 'id' => 471,\n 'recipe_id' => '53',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 (8 ounce) package cream cheese, at room temperature ',\n 'displayNote' => '\\'1 (8 ounce) package <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , at room temperature \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 471 => \n array (\n 'id' => 472,\n 'recipe_id' => '53',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 green onions, chopped about 1/2 cup ',\n 'displayNote' => '\\'2 green onions, chopped about 1/2 cup \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 472 => \n array (\n 'id' => 473,\n 'recipe_id' => '53',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped fresh parsley',\n 'displayNote' => '\\'1/4 cup chopped fresh <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 473 => \n array (\n 'id' => 474,\n 'recipe_id' => '53',\n 'ingrident' => 'horseradish',\n 'amount' => NULL,\n 'note' => '2 tablespoons prepared horseradish, drained ',\n 'displayNote' => '\\'2 tablespoons prepared <a href=\\\\\\'/ingridients/horseradish\\\\\\'>horseradish</a> , drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 474 => \n array (\n 'id' => 475,\n 'recipe_id' => '53',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon salt',\n 'displayNote' => '\\'1/4 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 475 => \n array (\n 'id' => 476,\n 'recipe_id' => '53',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon garlic powder',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:08',\n 'updated_at' => '2019-01-07 02:09:08',\n ),\n 476 => \n array (\n 'id' => 477,\n 'recipe_id' => '53',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '8 ounces deli roast beef, sliced ',\n 'displayNote' => '\\'8 ounces deli roast beef, sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:08',\n 'updated_at' => '2019-01-07 02:09:08',\n ),\n 477 => \n array (\n 'id' => 478,\n 'recipe_id' => '53',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 10-inch flour tortillas, cheese flavoured are nice ',\n 'displayNote' => '\\'2 10-inch <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> tortillas, cheese flavoured are nice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:08',\n 'updated_at' => '2019-01-07 02:09:08',\n ),\n 478 => \n array (\n 'id' => 479,\n 'recipe_id' => '54',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup margarine',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 479 => \n array (\n 'id' => 480,\n 'recipe_id' => '54',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small sweet onion, chopped ',\n 'displayNote' => '\\'1 small sweet <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 480 => \n array (\n 'id' => 481,\n 'recipe_id' => '54',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 small green pepper, chopped ',\n 'displayNote' => '\\'1 small green pepper, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 481 => \n array (\n 'id' => 482,\n 'recipe_id' => '54',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 -3 medium tomatoes, chopped ',\n 'displayNote' => '\\'2 -3 medium tomatoes, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 482 => \n array (\n 'id' => 483,\n 'recipe_id' => '54',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (24 ounce) bag frozen hash brown potatoes',\n 'displayNote' => '\\'1 (24 ounce) bag frozen hash brown potatoes\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 483 => \n array (\n 'id' => 484,\n 'recipe_id' => '54',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '12 eggs, beaten ',\n 'displayNote' => '\\'12 eggs, beaten \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 484 => \n array (\n 'id' => 485,\n 'recipe_id' => '54',\n 'ingrident' => 'sausage',\n 'amount' => NULL,\n 'note' => '1/2 lb cooked crumbled bacon or 1/2-1 lb sausage',\n 'displayNote' => '\\'1/2 lb cooked crumbled <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> or 1/2-1 lb <a href=\\\\\\'/ingridients/sausage\\\\\\'>sausage</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 485 => \n array (\n 'id' => 486,\n 'recipe_id' => '54',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '3 cups cheddar cheese, shredded ',\n 'displayNote' => '\\'3 cups <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese, shredded \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 486 => \n array (\n 'id' => 487,\n 'recipe_id' => '55',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 lbs cross-rib roasts',\n 'displayNote' => '\\'2 lbs cross-rib roasts\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 487 => \n array (\n 'id' => 488,\n 'recipe_id' => '55',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '2 tablespoons balsamic vinegar',\n 'displayNote' => '\\'2 tablespoons balsamic <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 488 => \n array (\n 'id' => 489,\n 'recipe_id' => '55',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 tablespoons minced garlic',\n 'displayNote' => '\\'2 tablespoons minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 489 => \n array (\n 'id' => 490,\n 'recipe_id' => '55',\n 'ingrident' => 'thyme',\n 'amount' => NULL,\n 'note' => '2 teaspoons dried thyme',\n 'displayNote' => '\\'2 teaspoons dried <a href=\\\\\\'/ingridients/thyme\\\\\\'>thyme</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 490 => \n array (\n 'id' => 491,\n 'recipe_id' => '55',\n 'ingrident' => 'rosemary',\n 'amount' => NULL,\n 'note' => '1 teaspoon dried rosemary',\n 'displayNote' => '\\'1 teaspoon dried <a href=\\\\\\'/ingridients/rosemary\\\\\\'>rosemary</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 491 => \n array (\n 'id' => 492,\n 'recipe_id' => '55',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tablespoon salt',\n 'displayNote' => '\\'1 tablespoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 492 => \n array (\n 'id' => 493,\n 'recipe_id' => '55',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon pepper',\n 'displayNote' => '\\'1 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 493 => \n array (\n 'id' => 494,\n 'recipe_id' => '55',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '1 tablespoon olive oil',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 494 => \n array (\n 'id' => 495,\n 'recipe_id' => '56',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\' 1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 495 => \n array (\n 'id' => 496,\n 'recipe_id' => '56',\n 'ingrident' => 'salmon',\n 'amount' => NULL,\n 'note' => '1 pkg. (4 oz.) smoked salmon, chopped ',\n 'displayNote' => '\\'1 pkg. (4 oz.) smoked <a href=\\\\\\'/ingridients/salmon\\\\\\'>salmon</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 496 => \n array (\n 'id' => 497,\n 'recipe_id' => '56',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/2 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 497 => \n array (\n 'id' => 498,\n 'recipe_id' => '56',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped red onion s ',\n 'displayNote' => '\\'1/4 cup chopped red <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 498 => \n array (\n 'id' => 499,\n 'recipe_id' => '56',\n 'ingrident' => 'dill',\n 'amount' => NULL,\n 'note' => '1 Tbsp. dill weed ',\n 'displayNote' => '\\'1 tbsp. <a href=\\\\\\'/ingridients/dill\\\\\\'>dill</a> weed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 499 => \n array (\n 'id' => 500,\n 'recipe_id' => '57',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 3 Tbsp. MINUTE Tapioca ',\n 'displayNote' => '\\' 3 tbsp. minute tapioca \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n ));\n \\DB::table('recipe_ingridents')->insert(array (\n 0 => \n array (\n 'id' => 501,\n 'recipe_id' => '57',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '2 cups milk ',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n 1 => \n array (\n 'id' => 502,\n 'recipe_id' => '57',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 egg, separated ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> , separated \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n 2 => \n array (\n 'id' => 503,\n 'recipe_id' => '57',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '6 Tbsp. sugar, divided ',\n 'displayNote' => '\\'6 tbsp. <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n 3 => \n array (\n 'id' => 504,\n 'recipe_id' => '57',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n 4 => \n array (\n 'id' => 505,\n 'recipe_id' => '58',\n 'ingrident' => 'avocado',\n 'amount' => NULL,\n 'note' => ' 1 fully ripe avocado, cut in half, divided ',\n 'displayNote' => '\\' 1 fully ripe <a href=\\\\\\'/ingridients/avocado\\\\\\'>avocado</a> , cut in half, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:05',\n 'updated_at' => '2019-01-07 02:34:05',\n ),\n 5 => \n array (\n 'id' => 506,\n 'recipe_id' => '58',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:05',\n 'updated_at' => '2019-01-07 02:34:05',\n ),\n 6 => \n array (\n 'id' => 507,\n 'recipe_id' => '58',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:05',\n 'updated_at' => '2019-01-07 02:34:05',\n ),\n 7 => \n array (\n 'id' => 508,\n 'recipe_id' => '58',\n 'ingrident' => 'taco seasoning',\n 'amount' => NULL,\n 'note' => '2 Tbsp. (1/2 of 1.25-oz. pkg.) TACO BELL® Taco Seasoning Mix ',\n 'displayNote' => '\\'2 tbsp. (1/2 of 1.25-oz. pkg.) taco bellâ® <a href=\\\\\\'/ingridients/taco-seasoning\\\\\\'>taco seasoning</a> mix \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:05',\n 'updated_at' => '2019-01-07 02:34:05',\n ),\n 8 => \n array (\n 'id' => 509,\n 'recipe_id' => '58',\n 'ingrident' => 'salsa',\n 'amount' => NULL,\n 'note' => '3 Tbsp. TACO BELL® Thick & Chunky Salsa ',\n 'displayNote' => '\\'3 tbsp. taco bellâ® thick & chunky <a href=\\\\\\'/ingridients/salsa\\\\\\'>salsa</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:06',\n 'updated_at' => '2019-01-07 02:34:06',\n ),\n 9 => \n array (\n 'id' => 510,\n 'recipe_id' => '58',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '1 small tomato, chopped ',\n 'displayNote' => '\\'1 small <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:06',\n 'updated_at' => '2019-01-07 02:34:06',\n ),\n 10 => \n array (\n 'id' => 511,\n 'recipe_id' => '58',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '3/4 cup KRAFT Shredded Mild Cheddar Cheese ',\n 'displayNote' => '\\'3/4 cup kraft shredded mild <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:06',\n 'updated_at' => '2019-01-07 02:34:06',\n ),\n 11 => \n array (\n 'id' => 512,\n 'recipe_id' => '58',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 green onions, sliced ',\n 'displayNote' => '\\'2 green onions, sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:06',\n 'updated_at' => '2019-01-07 02:34:06',\n ),\n 12 => \n array (\n 'id' => 513,\n 'recipe_id' => '59',\n 'ingrident' => 'pie crust',\n 'amount' => NULL,\n 'note' => ' 1/2 pkg. (15 oz.) ready-to-use refrigerated pie crust s (1 crust) ',\n 'displayNote' => '\\' 1/2 pkg. (15 oz.) ready-to-use refrigerated <a href=\\\\\\'/ingridients/pie-crust\\\\\\'>pie crust</a> s (1 crust) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:14',\n 'updated_at' => '2019-01-07 02:34:14',\n ),\n 13 => \n array (\n 'id' => 514,\n 'recipe_id' => '59',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '2 pkg. (4 oz. each) BAKER&#39;S Semi-Sweet Chocolate, broken into pieces ',\n 'displayNote' => '\\'2 pkg. (4 oz. each) baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , broken into pieces \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:15',\n 'updated_at' => '2019-01-07 02:34:15',\n ),\n 14 => \n array (\n 'id' => 515,\n 'recipe_id' => '59',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/4 cup (1/2 stick) butter, softened ',\n 'displayNote' => '\\'1/4 cup (1/2 stick) <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:15',\n 'updated_at' => '2019-01-07 02:34:15',\n ),\n 15 => \n array (\n 'id' => 516,\n 'recipe_id' => '59',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup firmly packed brown sugar ',\n 'displayNote' => '\\'3/4 cup firmly packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:17',\n 'updated_at' => '2019-01-07 02:34:17',\n ),\n 16 => \n array (\n 'id' => 517,\n 'recipe_id' => '59',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '3 egg s ',\n 'displayNote' => '\\'3 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:17',\n 'updated_at' => '2019-01-07 02:34:17',\n ),\n 17 => \n array (\n 'id' => 518,\n 'recipe_id' => '59',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:17',\n 'updated_at' => '2019-01-07 02:34:17',\n ),\n 18 => \n array (\n 'id' => 519,\n 'recipe_id' => '59',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/4 cup flour ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:18',\n 'updated_at' => '2019-01-07 02:34:18',\n ),\n 19 => \n array (\n 'id' => 520,\n 'recipe_id' => '59',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup chopped PLANTERS Walnuts ',\n 'displayNote' => '\\'1 cup chopped planters walnuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:18',\n 'updated_at' => '2019-01-07 02:34:18',\n ),\n 20 => \n array (\n 'id' => 521,\n 'recipe_id' => '59',\n 'ingrident' => 'walnut',\n 'amount' => NULL,\n 'note' => '1/2 cup PLANTERS Walnut Halves ',\n 'displayNote' => '\\'1/2 cup planters <a href=\\\\\\'/ingridients/walnut-1\\\\\\'>walnut</a> halves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:18',\n 'updated_at' => '2019-01-07 02:34:18',\n ),\n 21 => \n array (\n 'id' => 522,\n 'recipe_id' => '60',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => ' 46 vanilla wafers, divided ',\n 'displayNote' => '\\' 46 <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> wafers, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:24',\n 'updated_at' => '2019-01-07 02:34:24',\n ),\n 22 => \n array (\n 'id' => 523,\n 'recipe_id' => '60',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup chopped PLANTERS Pecans ',\n 'displayNote' => '\\'1/2 cup chopped planters pecans \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:25',\n 'updated_at' => '2019-01-07 02:34:25',\n ),\n 23 => \n array (\n 'id' => 524,\n 'recipe_id' => '60',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/3 cup packed brown sugar ',\n 'displayNote' => '\\'1/3 cup packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:25',\n 'updated_at' => '2019-01-07 02:34:25',\n ),\n 24 => \n array (\n 'id' => 525,\n 'recipe_id' => '60',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1 tsp. ground cinnamon ',\n 'displayNote' => '\\'1 tsp. ground <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:25',\n 'updated_at' => '2019-01-07 02:34:25',\n ),\n 25 => \n array (\n 'id' => 526,\n 'recipe_id' => '60',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 Tbsp. butter, melted ',\n 'displayNote' => '\\'3 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 26 => \n array (\n 'id' => 527,\n 'recipe_id' => '60',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 pkg. (3.4 oz. each) JELL-O Vanilla Flavor Instant Pudding ',\n 'displayNote' => '\\'2 pkg. (3.4 oz. each) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 27 => \n array (\n 'id' => 528,\n 'recipe_id' => '60',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '2 cups cold milk ',\n 'displayNote' => '\\'2 cups cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 28 => \n array (\n 'id' => 529,\n 'recipe_id' => '60',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) COOL WHIP Whipped Topping, thawed, divided ',\n 'displayNote' => '\\'1 tub (8 oz.) cool whip whipped topping, thawed, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 29 => \n array (\n 'id' => 530,\n 'recipe_id' => '60',\n 'ingrident' => 'banana',\n 'amount' => NULL,\n 'note' => '4 banana s (1 lb.), sliced ',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/banana\\\\\\'>banana</a> s (1 lb.), sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 30 => \n array (\n 'id' => 531,\n 'recipe_id' => '60',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:27',\n 'updated_at' => '2019-01-07 02:34:27',\n ),\n 31 => \n array (\n 'id' => 532,\n 'recipe_id' => '60',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup granulated sugar ',\n 'displayNote' => '\\'1/4 cup granulated <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:27',\n 'updated_at' => '2019-01-07 02:34:27',\n ),\n 32 => \n array (\n 'id' => 533,\n 'recipe_id' => '61',\n 'ingrident' => 'puff pastry',\n 'amount' => NULL,\n 'note' => ' 1 frozen puff pastry sheet (1/2 of 17-1/4-oz. pkg.), thawed ',\n 'displayNote' => '\\' 1 frozen <a href=\\\\\\'/ingridients/puff-pastry\\\\\\'>puff pastry</a> sheet (1/2 of 17-1/4-oz. pkg.), thawed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:36',\n 'updated_at' => '2019-01-07 02:34:36',\n ),\n 33 => \n array (\n 'id' => 534,\n 'recipe_id' => '61',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:36',\n 'updated_at' => '2019-01-07 02:34:36',\n ),\n 34 => \n array (\n 'id' => 535,\n 'recipe_id' => '61',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/3 cup powdered sugar ',\n 'displayNote' => '\\'1/3 cup powdered <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:37',\n 'updated_at' => '2019-01-07 02:34:37',\n ),\n 35 => \n array (\n 'id' => 536,\n 'recipe_id' => '61',\n 'ingrident' => 'apple',\n 'amount' => NULL,\n 'note' => '2 Tbsp. apple juice ',\n 'displayNote' => '\\'2 tbsp. <a href=\\\\\\'/ingridients/apple\\\\\\'>apple</a> juice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:37',\n 'updated_at' => '2019-01-07 02:34:37',\n ),\n 36 => \n array (\n 'id' => 537,\n 'recipe_id' => '61',\n 'ingrident' => 'berries',\n 'amount' => NULL,\n 'note' => '3 cups mixed assorted berries (blackberries, raspberries and sliced strawberries) ',\n 'displayNote' => '\\'3 cups mixed assorted <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> (black <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> , rasp <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> and sliced straw <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> ) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:37',\n 'updated_at' => '2019-01-07 02:34:37',\n ),\n 37 => \n array (\n 'id' => 538,\n 'recipe_id' => '61',\n 'ingrident' => 'apple',\n 'amount' => NULL,\n 'note' => '2 Tbsp. apple jelly, melted, cooled ',\n 'displayNote' => '\\'2 tbsp. <a href=\\\\\\'/ingridients/apple\\\\\\'>apple</a> jelly, melted, cooled \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:37',\n 'updated_at' => '2019-01-07 02:34:37',\n ),\n 38 => \n array (\n 'id' => 539,\n 'recipe_id' => '62',\n 'ingrident' => 'bacon',\n 'amount' => NULL,\n 'note' => ' 6 slices OSCAR MAYER Bacon, chopped ',\n 'displayNote' => '\\' 6 slices oscar mayer <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:47',\n 'updated_at' => '2019-01-07 02:34:47',\n ),\n 39 => \n array (\n 'id' => 540,\n 'recipe_id' => '62',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small onion, chopped ',\n 'displayNote' => '\\'1 small <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:47',\n 'updated_at' => '2019-01-07 02:34:47',\n ),\n 40 => \n array (\n 'id' => 541,\n 'recipe_id' => '62',\n 'ingrident' => 'clove',\n 'amount' => NULL,\n 'note' => '1 clove garlic, minced ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/clove\\\\\\'>clove</a> <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:47',\n 'updated_at' => '2019-01-07 02:34:47',\n ),\n 41 => \n array (\n 'id' => 542,\n 'recipe_id' => '62',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '3 cans (14-1/2 oz. each) fat-free reduced-sodium chicken broth ',\n 'displayNote' => '\\'3 cans (14-1/2 oz. each) fat-free reduced-sodium <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:47',\n 'updated_at' => '2019-01-07 02:34:47',\n ),\n 42 => \n array (\n 'id' => 543,\n 'recipe_id' => '62',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 lb. dry lentils, sorted, washed ',\n 'displayNote' => '\\'1/2 lb. dry lentils, sorted, washed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 43 => \n array (\n 'id' => 544,\n 'recipe_id' => '62',\n 'ingrident' => 'potato',\n 'amount' => NULL,\n 'note' => '1/2 lb. red potato (1 large potato), chopped ',\n 'displayNote' => '\\'1/2 lb. red <a href=\\\\\\'/ingridients/potato\\\\\\'>potato</a> (1 large <a href=\\\\\\'/ingridients/potato\\\\\\'>potato</a> ), chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 44 => \n array (\n 'id' => 545,\n 'recipe_id' => '62',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '3 small carrot s (1/4 lb.), chopped ',\n 'displayNote' => '\\'3 small <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> s (1/4 lb.), chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 45 => \n array (\n 'id' => 546,\n 'recipe_id' => '62',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 OSCAR MAYER Wieners, cut into 1/4-inch-thick slices ',\n 'displayNote' => '\\'3 oscar mayer wieners, cut into 1/4-inch-thick slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 46 => \n array (\n 'id' => 547,\n 'recipe_id' => '62',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/2 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 47 => \n array (\n 'id' => 548,\n 'recipe_id' => '63',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => ' 1/4 cup KRAFT Original Barbecue Sauce ',\n 'displayNote' => '\\' 1/4 cup kraft original <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 48 => \n array (\n 'id' => 549,\n 'recipe_id' => '63',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '3 Tbsp. fat-free reduced-sodium beef broth ',\n 'displayNote' => '\\'3 tbsp. fat-free reduced-sodium <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 49 => \n array (\n 'id' => 550,\n 'recipe_id' => '63',\n 'ingrident' => 'beef sirloin',\n 'amount' => NULL,\n 'note' => '1 lb. boneless beef sirloin steak, cut into strips ',\n 'displayNote' => '\\'1 lb. boneless <a href=\\\\\\'/ingridients/beef-sirloin\\\\\\'>beef sirloin</a> steak, cut into strips \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 50 => \n array (\n 'id' => 551,\n 'recipe_id' => '63',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small onion, sliced ',\n 'displayNote' => '\\'1 small <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 51 => \n array (\n 'id' => 552,\n 'recipe_id' => '63',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '1 large carrot, thinly sliced ',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> , thinly sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 52 => \n array (\n 'id' => 553,\n 'recipe_id' => '63',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 Tbsp. oil ',\n 'displayNote' => '\\'1 tbsp. oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:56',\n 'updated_at' => '2019-01-07 02:34:56',\n ),\n 53 => \n array (\n 'id' => 554,\n 'recipe_id' => '63',\n 'ingrident' => 'rice',\n 'amount' => NULL,\n 'note' => '2 cups hot cooked long-grain white rice ',\n 'displayNote' => '\\'2 cups hot cooked long-grain white <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:56',\n 'updated_at' => '2019-01-07 02:34:56',\n ),\n 54 => \n array (\n 'id' => 555,\n 'recipe_id' => '64',\n 'ingrident' => 'peach',\n 'amount' => NULL,\n 'note' => ' 1/2 cup peach preserves ',\n 'displayNote' => '\\' 1/2 cup <a href=\\\\\\'/ingridients/peach\\\\\\'>peach</a> preserves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:02',\n 'updated_at' => '2019-01-07 02:35:02',\n ),\n 55 => \n array (\n 'id' => 556,\n 'recipe_id' => '64',\n 'ingrident' => 'adobo sauce',\n 'amount' => NULL,\n 'note' => '1 (or more if desired) canned chipotle peppers in adobo sauce, finely diced ',\n 'displayNote' => '\\'1 (or more if desired) canned <a href=\\\\\\'/ingridients/chipotle\\\\\\'>chipotle</a> peppers in <a href=\\\\\\'/ingridients/adobo-sauce\\\\\\'>adobo sauce</a> , finely diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:02',\n 'updated_at' => '2019-01-07 02:35:02',\n ),\n 56 => \n array (\n 'id' => 557,\n 'recipe_id' => '64',\n 'ingrident' => 'clove',\n 'amount' => NULL,\n 'note' => '1 large garlic clove, crushed ',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> <a href=\\\\\\'/ingridients/clove\\\\\\'>clove</a> , crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 57 => \n array (\n 'id' => 558,\n 'recipe_id' => '64',\n 'ingrident' => 'pork',\n 'amount' => NULL,\n 'note' => '1 pork tenderloin (1 lb.) ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/pork-1\\\\\\'>pork</a> tenderloin (1 lb.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 58 => \n array (\n 'id' => 559,\n 'recipe_id' => '64',\n 'ingrident' => 'chorizo',\n 'amount' => NULL,\n 'note' => '8 oz. pork Mexican chorizo sausage ',\n 'displayNote' => '\\'8 oz. <a href=\\\\\\'/ingridients/pork-1\\\\\\'>pork</a> mexican <a href=\\\\\\'/ingridients/chorizo\\\\\\'>chorizo</a> <a href=\\\\\\'/ingridients/sausage\\\\\\'>sausage</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 59 => \n array (\n 'id' => 560,\n 'recipe_id' => '64',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) PHILADELPHIA Garden Vegetable Cream Cheese Spread ',\n 'displayNote' => '\\'1 tub (8 oz.) philadelphia garden vegetable <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> spread \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 60 => \n array (\n 'id' => 561,\n 'recipe_id' => '64',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 oz. KRAFT Mexican Style Finely Shredded Four Cheese ',\n 'displayNote' => '\\'3 oz. kraft mexican style finely shredded four cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 61 => \n array (\n 'id' => 562,\n 'recipe_id' => '64',\n 'ingrident' => 'bacon',\n 'amount' => NULL,\n 'note' => '1 lb. sliced bacon, divided ',\n 'displayNote' => '\\'1 lb. sliced <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 62 => \n array (\n 'id' => 563,\n 'recipe_id' => '64',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/3 cup brown sugar ',\n 'displayNote' => '\\'1/3 cup brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 63 => \n array (\n 'id' => 564,\n 'recipe_id' => '64',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' dash ground black pepper ',\n 'displayNote' => '\\' dash ground black pepper \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 64 => \n array (\n 'id' => 565,\n 'recipe_id' => '65',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => ' 1 Tbsp. butter or margarine ',\n 'displayNote' => '\\' 1 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 65 => \n array (\n 'id' => 566,\n 'recipe_id' => '65',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) fresh mushrooms, finely chopped ',\n 'displayNote' => '\\'1 pkg. (8 oz.) fresh mushrooms, finely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 66 => \n array (\n 'id' => 567,\n 'recipe_id' => '65',\n 'ingrident' => 'chive',\n 'amount' => NULL,\n 'note' => '1/2 cup PHILADELPHIA Chive & Onion Cream Cheese Spread ',\n 'displayNote' => '\\'1/2 cup philadelphia <a href=\\\\\\'/ingridients/chive\\\\\\'>chive</a> & <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> spread \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 67 => \n array (\n 'id' => 568,\n 'recipe_id' => '65',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Grated Parmesan Cheese ',\n 'displayNote' => '\\'1/4 cup kraft grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 68 => \n array (\n 'id' => 569,\n 'recipe_id' => '65',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 can (8 oz.) refrigerated crescent dinner rolls ',\n 'displayNote' => '\\'1 can (8 oz.) refrigerated crescent dinner rolls \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 69 => \n array (\n 'id' => 570,\n 'recipe_id' => '65',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '2 tsp. finely chopped fresh parsley ',\n 'displayNote' => '\\'2 tsp. finely chopped fresh <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 70 => \n array (\n 'id' => 571,\n 'recipe_id' => '66',\n 'ingrident' => 'salad greens',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (5 oz.) torn salad greens ',\n 'displayNote' => '\\' 1 pkg. (5 oz.) torn <a href=\\\\\\'/ingridients/salad-greens\\\\\\'>salad greens</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:15',\n 'updated_at' => '2019-01-07 02:35:15',\n ),\n 71 => \n array (\n 'id' => 572,\n 'recipe_id' => '66',\n 'ingrident' => 'mandarin',\n 'amount' => NULL,\n 'note' => '1 can (11 oz.) mandarin oranges, drained ',\n 'displayNote' => '\\'1 can (11 oz.) <a href=\\\\\\'/ingridients/mandarin\\\\\\'>mandarin</a> oranges, drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:15',\n 'updated_at' => '2019-01-07 02:35:15',\n ),\n 72 => \n array (\n 'id' => 573,\n 'recipe_id' => '66',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup fresh raspberries ',\n 'displayNote' => '\\'1 cup fresh raspberries \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:15',\n 'updated_at' => '2019-01-07 02:35:15',\n ),\n 73 => \n array (\n 'id' => 574,\n 'recipe_id' => '66',\n 'ingrident' => 'mozzarella',\n 'amount' => NULL,\n 'note' => '1 cup KRAFT 2% Milk Shredded Mozzarella Cheese ',\n 'displayNote' => '\\'1 cup kraft 2% <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> shredded <a href=\\\\\\'/ingridients/mozzarella\\\\\\'>mozzarella</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:16',\n 'updated_at' => '2019-01-07 02:35:16',\n ),\n 74 => \n array (\n 'id' => 575,\n 'recipe_id' => '66',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup PLANTERS Sliced Almonds, toasted ',\n 'displayNote' => '\\'1/3 cup planters sliced almonds, toasted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:16',\n 'updated_at' => '2019-01-07 02:35:16',\n ),\n 75 => \n array (\n 'id' => 576,\n 'recipe_id' => '66',\n 'ingrident' => 'vinaigrette dressing',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Lite Raspberry Vinaigrette Dressing ',\n 'displayNote' => '\\'1/4 cup kraft lite <a href=\\\\\\'/ingridients/raspberry\\\\\\'>raspberry</a> <a href=\\\\\\'/ingridients/vinaigrette-dressing\\\\\\'>vinaigrette dressing</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:16',\n 'updated_at' => '2019-01-07 02:35:16',\n ),\n 76 => \n array (\n 'id' => 577,\n 'recipe_id' => '67',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 7 graham crackers, finely crushed (about 1 cup) ',\n 'displayNote' => '\\' 7 graham crackers, finely crushed (about 1 cup) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 77 => \n array (\n 'id' => 578,\n 'recipe_id' => '67',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 Tbsp. butter, melted ',\n 'displayNote' => '\\'3 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 78 => \n array (\n 'id' => 579,\n 'recipe_id' => '67',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup plus 3 Tbsp. sugar, divided ',\n 'displayNote' => '\\'1 cup plus 3 tbsp. <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 79 => \n array (\n 'id' => 580,\n 'recipe_id' => '67',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '4 pkg. (8 oz. each) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'4 pkg. (8 oz. each) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 80 => \n array (\n 'id' => 581,\n 'recipe_id' => '67',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 81 => \n array (\n 'id' => 582,\n 'recipe_id' => '67',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 Tbsp. vanilla ',\n 'displayNote' => '\\'1 tbsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 82 => \n array (\n 'id' => 583,\n 'recipe_id' => '67',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '4 egg s ',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 83 => \n array (\n 'id' => 584,\n 'recipe_id' => '67',\n 'ingrident' => 'pineapple',\n 'amount' => NULL,\n 'note' => '1 can (8 oz.) pineapple tidbits in juice, very well drained ',\n 'displayNote' => '\\'1 can (8 oz.) <a href=\\\\\\'/ingridients/pineapple\\\\\\'>pineapple</a> tidbits in juice, very well drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 84 => \n array (\n 'id' => 585,\n 'recipe_id' => '67',\n 'ingrident' => 'pineapple',\n 'amount' => NULL,\n 'note' => '1/2 cup pineapple preserves ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/pineapple\\\\\\'>pineapple</a> preserves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 85 => \n array (\n 'id' => 586,\n 'recipe_id' => '68',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 3 cups boiling water ',\n 'displayNote' => '\\' 3 cups boiling water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 86 => \n array (\n 'id' => 587,\n 'recipe_id' => '68',\n 'ingrident' => 'raspberry',\n 'amount' => NULL,\n 'note' => '2 pkg. (3 oz. each) JELL-O Raspberry Flavor Gelatin ',\n 'displayNote' => '\\'2 pkg. (3 oz. each) jell-o <a href=\\\\\\'/ingridients/raspberry\\\\\\'>raspberry</a> flavor gelatin \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 87 => \n array (\n 'id' => 588,\n 'recipe_id' => '68',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pkg. (12 oz.) frozen red raspberries (Do not thaw.) ',\n 'displayNote' => '\\'1 pkg. (12 oz.) frozen red raspberries (do not thaw.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 88 => \n array (\n 'id' => 589,\n 'recipe_id' => '68',\n 'ingrident' => 'angel food',\n 'amount' => NULL,\n 'note' => '1 pkg. (7.5 oz.) round prepared angel food cake, cut into 21 thin slices ',\n 'displayNote' => '\\'1 pkg. (7.5 oz.) round prepared <a href=\\\\\\'/ingridients/angel-food\\\\\\'>angel food</a> cake, cut into 21 thin slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 89 => \n array (\n 'id' => 590,\n 'recipe_id' => '68',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1 cup thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 90 => \n array (\n 'id' => 591,\n 'recipe_id' => '69',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 5 tart apples, peeled, sliced (about 6 cups) ',\n 'displayNote' => '\\' 5 tart apples, peeled, sliced (about 6 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 91 => \n array (\n 'id' => 592,\n 'recipe_id' => '69',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 pkg. (1.0 oz.) JELL-O Vanilla Flavor Sugar Free Fat Free Instant Pudding ',\n 'displayNote' => '\\'1 pkg. (1.0 oz.) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> free fat free instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 92 => \n array (\n 'id' => 593,\n 'recipe_id' => '69',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup sugar ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 93 => \n array (\n 'id' => 594,\n 'recipe_id' => '69',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1/2 tsp. ground cinnamon ',\n 'displayNote' => '\\'1/2 tsp. ground <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 94 => \n array (\n 'id' => 595,\n 'recipe_id' => '69',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup water ',\n 'displayNote' => '\\'1/3 cup water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 95 => \n array (\n 'id' => 596,\n 'recipe_id' => '69',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 Tbsp. butter ',\n 'displayNote' => '\\'3 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 96 => \n array (\n 'id' => 597,\n 'recipe_id' => '69',\n 'ingrident' => 'pecan',\n 'amount' => NULL,\n 'note' => '1-1/2 cups cranberry-pecan granola ',\n 'displayNote' => '\\'1-1/2 cups <a href=\\\\\\'/ingridients/cranberry\\\\\\'>cranberry</a> - <a href=\\\\\\'/ingridients/pecan\\\\\\'>pecan</a> granola \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 97 => \n array (\n 'id' => 598,\n 'recipe_id' => '70',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\' 1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:40',\n 'updated_at' => '2019-01-07 02:35:40',\n ),\n 98 => \n array (\n 'id' => 599,\n 'recipe_id' => '70',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/2 cup packed brown sugar ',\n 'displayNote' => '\\'1/2 cup packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:40',\n 'updated_at' => '2019-01-07 02:35:40',\n ),\n 99 => \n array (\n 'id' => 600,\n 'recipe_id' => '70',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1/2 tsp. vanilla ',\n 'displayNote' => '\\'1/2 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:40',\n 'updated_at' => '2019-01-07 02:35:40',\n ),\n 100 => \n array (\n 'id' => 601,\n 'recipe_id' => '70',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 large apples, cut into quarters ',\n 'displayNote' => '\\'2 large apples, cut into quarters \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:40',\n 'updated_at' => '2019-01-07 02:35:40',\n ),\n 101 => \n array (\n 'id' => 602,\n 'recipe_id' => '70',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup PLANTERS Slivered Almonds ',\n 'displayNote' => '\\'1/4 cup planters slivered almonds \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:41',\n 'updated_at' => '2019-01-07 02:35:41',\n ),\n 102 => \n array (\n 'id' => 603,\n 'recipe_id' => '71',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 2-1/4 lb. apricots, peeled, sliced (about 6 cups) ',\n 'displayNote' => '\\' 2-1/4 lb. apricots, peeled, sliced (about 6 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 103 => \n array (\n 'id' => 604,\n 'recipe_id' => '71',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup granulated sugar ',\n 'displayNote' => '\\'3/4 cup granulated <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 104 => \n array (\n 'id' => 605,\n 'recipe_id' => '71',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup MINUTE Tapioca ',\n 'displayNote' => '\\'1/4 cup minute tapioca \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 105 => \n array (\n 'id' => 606,\n 'recipe_id' => '71',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/2 cup flour ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 106 => \n array (\n 'id' => 607,\n 'recipe_id' => '71',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup packed brown sugar ',\n 'displayNote' => '\\'1/4 cup packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 107 => \n array (\n 'id' => 608,\n 'recipe_id' => '71',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup cold butter or margarine, cut up ',\n 'displayNote' => '\\'1/4 cup cold <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> , cut up \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 108 => \n array (\n 'id' => 609,\n 'recipe_id' => '71',\n 'ingrident' => 'pie crust',\n 'amount' => NULL,\n 'note' => '1 ready-to-use refrigerated pie crust (1/2 of 14.1-oz. pkg.) ',\n 'displayNote' => '\\'1 ready-to-use refrigerated <a href=\\\\\\'/ingridients/pie-crust\\\\\\'>pie crust</a> (1/2 of 14.1-oz. pkg.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 109 => \n array (\n 'id' => 610,\n 'recipe_id' => '72',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => ' 1/2 cup chicken broth ',\n 'displayNote' => '\\' 1/2 cup <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 110 => \n array (\n 'id' => 611,\n 'recipe_id' => '72',\n 'ingrident' => 'italian dressing',\n 'amount' => NULL,\n 'note' => '1/2 cup KRAFT Zesty Italian Dressing, divided ',\n 'displayNote' => '\\'1/2 cup kraft zesty <a href=\\\\\\'/ingridients/italian-dressing\\\\\\'>italian dressing</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 111 => \n array (\n 'id' => 612,\n 'recipe_id' => '72',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/2 cup coarsely chopped fresh cilantro ',\n 'displayNote' => '\\'1/2 cup coarsely chopped fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 112 => \n array (\n 'id' => 613,\n 'recipe_id' => '72',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup PLANTERS Dry Roasted Peanuts ',\n 'displayNote' => '\\'1/2 cup planters dry roasted peanuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 113 => \n array (\n 'id' => 614,\n 'recipe_id' => '72',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 whole serrano chile, stem removed ',\n 'displayNote' => '\\'1 whole serrano chile, stem removed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 114 => \n array (\n 'id' => 615,\n 'recipe_id' => '72',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion, chopped ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 115 => \n array (\n 'id' => 616,\n 'recipe_id' => '72',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 small boneless skinless chicken breasts (1 lb.) ',\n 'displayNote' => '\\'4 small boneless skinless chicken breasts (1 lb.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 116 => \n array (\n 'id' => 617,\n 'recipe_id' => '72',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 lb. mushrooms, sliced ',\n 'displayNote' => '\\'1/2 lb. mushrooms, sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 117 => \n array (\n 'id' => 618,\n 'recipe_id' => '72',\n 'ingrident' => 'rice',\n 'amount' => NULL,\n 'note' => '2 cups hot cooked long-grain white rice ',\n 'displayNote' => '\\'2 cups hot cooked long-grain white <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 118 => \n array (\n 'id' => 619,\n 'recipe_id' => '72',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/4 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/4 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 119 => \n array (\n 'id' => 620,\n 'recipe_id' => '73',\n 'ingrident' => 'black beans',\n 'amount' => NULL,\n 'note' => ' 1 can (15 oz.) black beans, rinsed ',\n 'displayNote' => '\\' 1 can (15 oz.) <a href=\\\\\\'/ingridients/black-beans\\\\\\'>black beans</a> , rinsed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:56',\n 'updated_at' => '2019-01-07 02:35:56',\n ),\n 120 => \n array (\n 'id' => 621,\n 'recipe_id' => '73',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup MIRACLE WHIP Dressing ',\n 'displayNote' => '\\'1/2 cup miracle whip dressing \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:56',\n 'updated_at' => '2019-01-07 02:35:56',\n ),\n 121 => \n array (\n 'id' => 622,\n 'recipe_id' => '73',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/2 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 122 => \n array (\n 'id' => 623,\n 'recipe_id' => '73',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 can (4 oz.) chopped green chiles, drained ',\n 'displayNote' => '\\'1 can (4 oz.) chopped green chiles, drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 123 => \n array (\n 'id' => 624,\n 'recipe_id' => '73',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '2 Tbsp. chopped cilantro ',\n 'displayNote' => '\\'2 tbsp. chopped <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 124 => \n array (\n 'id' => 625,\n 'recipe_id' => '73',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1 tsp. garlic powder ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 125 => \n array (\n 'id' => 626,\n 'recipe_id' => '73',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => 'Few drops hot pepper sauce ',\n 'displayNote' => '\\'few drops hot pepper sauce \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 126 => \n array (\n 'id' => 627,\n 'recipe_id' => '74',\n 'ingrident' => 'oreo',\n 'amount' => NULL,\n 'note' => ' 20 OREO Cookies, finely crushed (about 2 cups) ',\n 'displayNote' => '\\' 20 <a href=\\\\\\'/ingridients/oreo\\\\\\'>oreo</a> <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> , finely crushed (about 2 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 127 => \n array (\n 'id' => 628,\n 'recipe_id' => '74',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/4 cup butter, melted ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 128 => \n array (\n 'id' => 629,\n 'recipe_id' => '74',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '2 pkg. (8 oz. each) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'2 pkg. (8 oz. each) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 129 => \n array (\n 'id' => 630,\n 'recipe_id' => '74',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/2 cup sugar ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 130 => \n array (\n 'id' => 631,\n 'recipe_id' => '74',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 131 => \n array (\n 'id' => 632,\n 'recipe_id' => '74',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) COOL WHIP Whipped Topping, thawed, divided ',\n 'displayNote' => '\\'1 tub (8 oz.) cool whip whipped topping, thawed, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 132 => \n array (\n 'id' => 633,\n 'recipe_id' => '74',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '2 oz. BAKER&#39;S Semi-Sweet Chocolate ',\n 'displayNote' => '\\'2 oz. baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 133 => \n array (\n 'id' => 634,\n 'recipe_id' => '75',\n 'ingrident' => 'corn',\n 'amount' => NULL,\n 'note' => ' 2 ears corn on the cob, husks and silk removed ',\n 'displayNote' => '\\' 2 ears <a href=\\\\\\'/ingridients/corn\\\\\\'>corn</a> on the cob, husks and silk removed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 134 => \n array (\n 'id' => 635,\n 'recipe_id' => '75',\n 'ingrident' => 'squash',\n 'amount' => NULL,\n 'note' => '2 small yellow squash, each cut lengthwise into 3 slices ',\n 'displayNote' => '\\'2 small yellow <a href=\\\\\\'/ingridients/squash\\\\\\'>squash</a> , each cut lengthwise into 3 slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 135 => \n array (\n 'id' => 636,\n 'recipe_id' => '75',\n 'ingrident' => 'zucchini',\n 'amount' => NULL,\n 'note' => '2 small zucchini, each cut lengthwise into 3 slices ',\n 'displayNote' => '\\'2 small <a href=\\\\\\'/ingridients/zucchini\\\\\\'>zucchini</a> , each cut lengthwise into 3 slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 136 => \n array (\n 'id' => 637,\n 'recipe_id' => '75',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '2 tomato es, chopped ',\n 'displayNote' => '\\'2 <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> es, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 137 => \n array (\n 'id' => 638,\n 'recipe_id' => '75',\n 'ingrident' => 'italian dressing',\n 'amount' => NULL,\n 'note' => '1/3 cup KRAFT Zesty Italian Dressing ',\n 'displayNote' => '\\'1/3 cup kraft zesty <a href=\\\\\\'/ingridients/italian-dressing\\\\\\'>italian dressing</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 138 => \n array (\n 'id' => 639,\n 'recipe_id' => '75',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '2 Tbsp. lemon juice ',\n 'displayNote' => '\\'2 tbsp. <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> juice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:11',\n 'updated_at' => '2019-01-07 02:36:11',\n ),\n 139 => \n array (\n 'id' => 640,\n 'recipe_id' => '75',\n 'ingrident' => 'clove',\n 'amount' => NULL,\n 'note' => '1 clove garlic, minced ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/clove\\\\\\'>clove</a> <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:11',\n 'updated_at' => '2019-01-07 02:36:11',\n ),\n 140 => \n array (\n 'id' => 641,\n 'recipe_id' => '75',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '3 Tbsp. KRAFT Grated Parmesan Cheese ',\n 'displayNote' => '\\'3 tbsp. kraft grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:11',\n 'updated_at' => '2019-01-07 02:36:11',\n ),\n 141 => \n array (\n 'id' => 642,\n 'recipe_id' => '75',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '2 Tbsp. chopped fresh basil ',\n 'displayNote' => '\\'2 tbsp. chopped fresh <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:11',\n 'updated_at' => '2019-01-07 02:36:11',\n ),\n 142 => \n array (\n 'id' => 643,\n 'recipe_id' => '77',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\' 1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 143 => \n array (\n 'id' => 644,\n 'recipe_id' => '77',\n 'ingrident' => 'oreo',\n 'amount' => NULL,\n 'note' => '36 OREO Cookies, finely crushed ',\n 'displayNote' => '\\'36 <a href=\\\\\\'/ingridients/oreo\\\\\\'>oreo</a> <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> , finely crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 144 => \n array (\n 'id' => 645,\n 'recipe_id' => '77',\n 'ingrident' => 'jam',\n 'amount' => NULL,\n 'note' => '1/4 cup raspberry jam ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/raspberry\\\\\\'>raspberry</a> <a href=\\\\\\'/ingridients/jam\\\\\\'>jam</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 145 => \n array (\n 'id' => 646,\n 'recipe_id' => '77',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped dried cranberries ',\n 'displayNote' => '\\'1/4 cup chopped dried cranberries \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 146 => \n array (\n 'id' => 647,\n 'recipe_id' => '77',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 oz. BAKER&#39;S White Chocolate, melted ',\n 'displayNote' => '\\'1 oz. baker&#39;s white <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 147 => \n array (\n 'id' => 648,\n 'recipe_id' => '77',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 drops red food coloring ',\n 'displayNote' => '\\'2 drops red food coloring \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 148 => \n array (\n 'id' => 649,\n 'recipe_id' => '77',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '4 pkg. (4 oz. each) BAKER&#39;S Semi-Sweet Chocolate, broken into pieces, melted ',\n 'displayNote' => '\\'4 pkg. (4 oz. each) baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , broken into pieces, melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:24',\n 'updated_at' => '2019-01-07 02:36:24',\n ),\n 149 => \n array (\n 'id' => 650,\n 'recipe_id' => '78',\n 'ingrident' => 'cake mix',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (2-layer size) spice cake mix ',\n 'displayNote' => '\\' 1 pkg. (2-layer size) spice <a href=\\\\\\'/ingridients/cake-mix\\\\\\'>cake mix</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:31',\n 'updated_at' => '2019-01-07 02:36:31',\n ),\n 150 => \n array (\n 'id' => 651,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup water ',\n 'displayNote' => '\\'1 cup water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:31',\n 'updated_at' => '2019-01-07 02:36:31',\n ),\n 151 => \n array (\n 'id' => 652,\n 'recipe_id' => '78',\n 'ingrident' => 'pumpkin',\n 'amount' => NULL,\n 'note' => '1 cup canned pumpkin ',\n 'displayNote' => '\\'1 cup canned <a href=\\\\\\'/ingridients/pumpkin\\\\\\'>pumpkin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 152 => \n array (\n 'id' => 653,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup oil ',\n 'displayNote' => '\\'1/3 cup oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 153 => \n array (\n 'id' => 654,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 eggs ',\n 'displayNote' => '\\'3 eggs \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 154 => \n array (\n 'id' => 655,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup chopped PLANTERS Walnuts ',\n 'displayNote' => '\\'3/4 cup chopped planters walnuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 155 => \n array (\n 'id' => 656,\n 'recipe_id' => '78',\n 'ingrident' => 'neufchatel',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) PHILADELPHIA Neufchatel Cheese, softened ',\n 'displayNote' => '\\'1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/neufchatel\\\\\\'>neufchatel</a> cheese, softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 156 => \n array (\n 'id' => 657,\n 'recipe_id' => '78',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/3 cup packed dark brown sugar ',\n 'displayNote' => '\\'1/3 cup packed dark brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 157 => \n array (\n 'id' => 658,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup thawed COOL WHIP LITE Whipped Topping ',\n 'displayNote' => '\\'1 cup thawed cool whip lite whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 158 => \n array (\n 'id' => 659,\n 'recipe_id' => '79',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => ' 1/2 cup KRAFT Original Barbecue Sauce ',\n 'displayNote' => '\\' 1/2 cup kraft original <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:36',\n 'updated_at' => '2019-01-07 02:36:36',\n ),\n 159 => \n array (\n 'id' => 660,\n 'recipe_id' => '79',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '10 arbol chiles, stemmed ',\n 'displayNote' => '\\'10 arbol chiles, stemmed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:36',\n 'updated_at' => '2019-01-07 02:36:36',\n ),\n 160 => \n array (\n 'id' => 661,\n 'recipe_id' => '79',\n 'ingrident' => 'ham',\n 'amount' => NULL,\n 'note' => '4 slices OSCAR MAYER Baked Cooked Ham ',\n 'displayNote' => '\\'4 slices oscar mayer baked cooked <a href=\\\\\\'/ingridients/ham\\\\\\'>ham</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:37',\n 'updated_at' => '2019-01-07 02:36:37',\n ),\n 161 => \n array (\n 'id' => 662,\n 'recipe_id' => '79',\n 'ingrident' => 'shrimp',\n 'amount' => NULL,\n 'note' => '1 lb. uncooked deveined peeled large shrimp ',\n 'displayNote' => '\\'1 lb. uncooked deveined peeled large <a href=\\\\\\'/ingridients/shrimp\\\\\\'>shrimp</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:37',\n 'updated_at' => '2019-01-07 02:36:37',\n ),\n 162 => \n array (\n 'id' => 663,\n 'recipe_id' => '79',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '2 Tbsp. KRAFT Grated Parmesan Cheese ',\n 'displayNote' => '\\'2 tbsp. kraft grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:37',\n 'updated_at' => '2019-01-07 02:36:37',\n ),\n 163 => \n array (\n 'id' => 664,\n 'recipe_id' => '80',\n 'ingrident' => 'coffee',\n 'amount' => NULL,\n 'note' => ' 1 cup brewed MAXWELL HOUSE Vanilla Flavored Coffee, chilled ',\n 'displayNote' => '\\' 1 cup brewed maxwell house <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavored <a href=\\\\\\'/ingridients/coffee\\\\\\'>coffee</a> , chilled \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 164 => \n array (\n 'id' => 665,\n 'recipe_id' => '80',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '4 triangles (1/3 of 3.52-oz bar) TOBLERONE Swiss Dark or Milk Chocolate with Honey and Almond Nougat, coarsely chopped ',\n 'displayNote' => '\\'4 triangles (1/3 of 3.52-oz bar) toblerone swiss dark or <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> with <a href=\\\\\\'/ingridients/honey\\\\\\'>honey</a> and <a href=\\\\\\'/ingridients/almond-1\\\\\\'>almond</a> nougat, coarsely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 165 => \n array (\n 'id' => 666,\n 'recipe_id' => '80',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 cups vanilla ice cream, softened ',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 166 => \n array (\n 'id' => 667,\n 'recipe_id' => '80',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '6 Tbsp. thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'6 tbsp. thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 167 => \n array (\n 'id' => 668,\n 'recipe_id' => '80',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '3/4 tsp. grated BAKER&#39;S Semi-Sweet Chocolate ',\n 'displayNote' => '\\'3/4 tsp. grated baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 168 => \n array (\n 'id' => 669,\n 'recipe_id' => '81',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 1-1/2 cups water ',\n 'displayNote' => '\\' 1-1/2 cups water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:55',\n 'updated_at' => '2019-01-07 02:36:55',\n ),\n 169 => \n array (\n 'id' => 670,\n 'recipe_id' => '81',\n 'ingrident' => 'lime',\n 'amount' => NULL,\n 'note' => '1/4 cup fresh lime juice ',\n 'displayNote' => '\\'1/4 cup fresh <a href=\\\\\\'/ingridients/lime\\\\\\'>lime</a> juice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:55',\n 'updated_at' => '2019-01-07 02:36:55',\n ),\n 170 => \n array (\n 'id' => 671,\n 'recipe_id' => '81',\n 'ingrident' => 'lemonade',\n 'amount' => NULL,\n 'note' => '1 pkt. CRYSTAL LIGHT PURE On The Go Lemonade Flavor Drink Mix ',\n 'displayNote' => '\\'1 pkt. crystal light pure on the go <a href=\\\\\\'/ingridients/lemonade\\\\\\'>lemonade</a> flavor drink mix \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:55',\n 'updated_at' => '2019-01-07 02:36:55',\n ),\n 171 => \n array (\n 'id' => 672,\n 'recipe_id' => '81',\n 'ingrident' => 'watermelon',\n 'amount' => NULL,\n 'note' => '5 cups seedless watermelon cubes (1 inch) ',\n 'displayNote' => '\\'5 cups seedless <a href=\\\\\\'/ingridients/watermelon\\\\\\'>watermelon</a> cubes (1 inch) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:55',\n 'updated_at' => '2019-01-07 02:36:55',\n ),\n 172 => \n array (\n 'id' => 673,\n 'recipe_id' => '82',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => ' 1 red onion, divided ',\n 'displayNote' => '\\' 1 red <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 173 => \n array (\n 'id' => 674,\n 'recipe_id' => '82',\n 'ingrident' => 'cabbage',\n 'amount' => NULL,\n 'note' => '2 cups <u>each shredded green and red cabbage ',\n 'displayNote' => '\\'2 cups <u>each shredded green and red <a href=\\\\\\'/ingridients/cabbage\\\\\\'>cabbage</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 174 => \n array (\n 'id' => 675,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup MIRACLE WHIP Dressing ',\n 'displayNote' => '\\'1/4 cup miracle whip dressing \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 175 => \n array (\n 'id' => 676,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 bottle (19.5 oz.) <i>Heinz BBQ Sauce Texas Bold & Spicy, divided ',\n 'displayNote' => '\\'1 bottle (19.5 oz.) <i>heinz bbq sauce texas bold & spicy, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 176 => \n array (\n 'id' => 677,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 Tbsp. oil ',\n 'displayNote' => '\\'1 tbsp. oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 177 => \n array (\n 'id' => 678,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 beef brisket (3 lb.), trimmed ',\n 'displayNote' => '\\'1 beef brisket (3 lb.), trimmed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 178 => \n array (\n 'id' => 679,\n 'recipe_id' => '82',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '1 can (14.5 oz.) fat-free reduced-sodium beef broth ',\n 'displayNote' => '\\'1 can (14.5 oz.) fat-free reduced-sodium <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 179 => \n array (\n 'id' => 680,\n 'recipe_id' => '82',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 cloves garlic, minced ',\n 'displayNote' => '\\'2 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 180 => \n array (\n 'id' => 681,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '12 kaiser roll s, partially split ',\n 'displayNote' => '\\'12 kaiser roll s, partially split \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 181 => \n array (\n 'id' => 682,\n 'recipe_id' => '83',\n 'ingrident' => 'pork',\n 'amount' => NULL,\n 'note' => ' 3 lb. pork baby back ribs ',\n 'displayNote' => '\\' 3 lb. <a href=\\\\\\'/ingridients/pork-1\\\\\\'>pork</a> baby back ribs \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 182 => \n array (\n 'id' => 683,\n 'recipe_id' => '83',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup water ',\n 'displayNote' => '\\'1/2 cup water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 183 => \n array (\n 'id' => 684,\n 'recipe_id' => '83',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => '1 cup KRAFT Original Barbecue Sauce ',\n 'displayNote' => '\\'1 cup kraft original <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 184 => \n array (\n 'id' => 685,\n 'recipe_id' => '83',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/2 cup fresh cilantro leaves ',\n 'displayNote' => '\\'1/2 cup fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> leaves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 185 => \n array (\n 'id' => 686,\n 'recipe_id' => '83',\n 'ingrident' => 'adobo sauce',\n 'amount' => NULL,\n 'note' => '1 canned chipotle pepper in adobo sauce ',\n 'displayNote' => '\\'1 canned <a href=\\\\\\'/ingridients/chipotle\\\\\\'>chipotle</a> pepper in <a href=\\\\\\'/ingridients/adobo-sauce\\\\\\'>adobo sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 186 => \n array (\n 'id' => 687,\n 'recipe_id' => '83',\n 'ingrident' => 'orange',\n 'amount' => NULL,\n 'note' => '2 tsp. orange zest ',\n 'displayNote' => '\\'2 tsp. <a href=\\\\\\'/ingridients/orange\\\\\\'>orange</a> zest \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 187 => \n array (\n 'id' => 688,\n 'recipe_id' => '84',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 2 Tbsp. oil ',\n 'displayNote' => '\\' 2 tbsp. oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 188 => \n array (\n 'id' => 689,\n 'recipe_id' => '84',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb. beef top round steak, cut into 1/2-inch pieces ',\n 'displayNote' => '\\'1 lb. beef top round steak, cut into 1/2-inch pieces \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 189 => \n array (\n 'id' => 690,\n 'recipe_id' => '84',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '1 lb. extra-lean ground beef ',\n 'displayNote' => '\\'1 lb. extra-lean <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 190 => \n array (\n 'id' => 691,\n 'recipe_id' => '84',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion, finely chopped ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , finely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 191 => \n array (\n 'id' => 692,\n 'recipe_id' => '84',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup A.1. Dry Rub Bold Original ',\n 'displayNote' => '\\'1/4 cup a.1. dry rub bold original \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 192 => \n array (\n 'id' => 693,\n 'recipe_id' => '84',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '3 cloves garlic, minced ',\n 'displayNote' => '\\'3 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 193 => \n array (\n 'id' => 694,\n 'recipe_id' => '84',\n 'ingrident' => 'kidney beans',\n 'amount' => NULL,\n 'note' => '2 cans (16 oz. each) kidney beans, rinsed ',\n 'displayNote' => '\\'2 cans (16 oz. each) <a href=\\\\\\'/ingridients/kidney-beans\\\\\\'>kidney beans</a> , rinsed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 194 => \n array (\n 'id' => 695,\n 'recipe_id' => '84',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2-1/2 cups undrained canned no-salt-added diced tomatoes ',\n 'displayNote' => '\\'2-1/2 cups undrained canned no-salt-added diced tomatoes \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 195 => \n array (\n 'id' => 696,\n 'recipe_id' => '84',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => '1 bottle (18 oz.) KRAFT Hickory Smoke Barbecue Sauce ',\n 'displayNote' => '\\'1 bottle (18 oz.) kraft hickory smoke <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 196 => \n array (\n 'id' => 697,\n 'recipe_id' => '84',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '3/4 cup KRAFT Shredded Cheddar Cheese ',\n 'displayNote' => '\\'3/4 cup kraft shredded <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 197 => \n array (\n 'id' => 698,\n 'recipe_id' => '85',\n 'ingrident' => 'oreo',\n 'amount' => NULL,\n 'note' => ' 24 OREO Cookies, divided ',\n 'displayNote' => '\\' 24 <a href=\\\\\\'/ingridients/oreo\\\\\\'>oreo</a> <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 198 => \n array (\n 'id' => 699,\n 'recipe_id' => '85',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 pt. (2 cups) chocolate ice cream ',\n 'displayNote' => '\\'1 pt. (2 cups) <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 199 => \n array (\n 'id' => 700,\n 'recipe_id' => '85',\n 'ingrident' => 'fudge',\n 'amount' => NULL,\n 'note' => '1 cup hot fudge ice cream topping ',\n 'displayNote' => '\\'1 cup hot <a href=\\\\\\'/ingridients/fudge\\\\\\'>fudge</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 200 => \n array (\n 'id' => 701,\n 'recipe_id' => '85',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 pt. (2 cups) vanilla ice cream ',\n 'displayNote' => '\\'1 pt. (2 cups) <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 201 => \n array (\n 'id' => 702,\n 'recipe_id' => '85',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1 cup thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 202 => \n array (\n 'id' => 703,\n 'recipe_id' => '86',\n 'ingrident' => 'cracker',\n 'amount' => NULL,\n 'note' => ' 1-1/2 cups graham cracker crumbs ',\n 'displayNote' => '\\' 1-1/2 cups graham <a href=\\\\\\'/ingridients/cracker\\\\\\'>cracker</a> crumbs \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 203 => \n array (\n 'id' => 704,\n 'recipe_id' => '86',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3 Tbsp. sugar ',\n 'displayNote' => '\\'3 tbsp. <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 204 => \n array (\n 'id' => 705,\n 'recipe_id' => '86',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/3 cup butter or margarine, melted ',\n 'displayNote' => '\\'1/3 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 205 => \n array (\n 'id' => 706,\n 'recipe_id' => '86',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '4 pkg. (8 oz. each) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'4 pkg. (8 oz. each) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 206 => \n array (\n 'id' => 707,\n 'recipe_id' => '86',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar ',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 207 => \n array (\n 'id' => 708,\n 'recipe_id' => '86',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 208 => \n array (\n 'id' => 709,\n 'recipe_id' => '86',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '4 egg s ',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 209 => \n array (\n 'id' => 710,\n 'recipe_id' => '86',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) COOL WHIP Whipped Topping (Do not thaw.) ',\n 'displayNote' => '\\'1 tub (8 oz.) cool whip whipped topping (do not thaw.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 210 => \n array (\n 'id' => 711,\n 'recipe_id' => '86',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '6 oz. BAKER&#39;S Bittersweet Chocolate ',\n 'displayNote' => '\\'6 oz. baker&#39;s bittersweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 211 => \n array (\n 'id' => 712,\n 'recipe_id' => '86',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup fresh raspberries ',\n 'displayNote' => '\\'1 cup fresh raspberries \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 212 => \n array (\n 'id' => 713,\n 'recipe_id' => '87',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => ' 1 Tbsp. butter ',\n 'displayNote' => '\\' 1 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 213 => \n array (\n 'id' => 714,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 small Gala apples, peeled, chopped (about 3 cups) ',\n 'displayNote' => '\\'3 small gala apples, peeled, chopped (about 3 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 214 => \n array (\n 'id' => 715,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '25 KRAFT Caramels ',\n 'displayNote' => '\\'25 kraft caramels \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 215 => \n array (\n 'id' => 716,\n 'recipe_id' => '87',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 can (12 oz.) evaporated milk, divided ',\n 'displayNote' => '\\'1 can (12 oz.) evaporated <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 216 => \n array (\n 'id' => 717,\n 'recipe_id' => '87',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 can (14 oz.) sweetened condensed milk ',\n 'displayNote' => '\\'1 can (14 oz.) sweetened condensed <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 217 => \n array (\n 'id' => 718,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 eggs ',\n 'displayNote' => '\\'4 eggs \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 218 => \n array (\n 'id' => 719,\n 'recipe_id' => '87',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 219 => \n array (\n 'id' => 720,\n 'recipe_id' => '87',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1/2 tsp. ground cinnamon ',\n 'displayNote' => '\\'1/2 tsp. ground <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:36',\n 'updated_at' => '2019-01-07 02:37:36',\n ),\n 220 => \n array (\n 'id' => 721,\n 'recipe_id' => '87',\n 'ingrident' => 'bread',\n 'amount' => NULL,\n 'note' => '3/4 lb. unsliced white bread, cut into 1-inch cubes (about 8 cups) ',\n 'displayNote' => '\\'3/4 lb. unsliced white <a href=\\\\\\'/ingridients/bread\\\\\\'>bread</a> , cut into 1-inch cubes (about 8 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:36',\n 'updated_at' => '2019-01-07 02:37:36',\n ),\n 221 => \n array (\n 'id' => 722,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup dried cranberries ',\n 'displayNote' => '\\'1/2 cup dried cranberries \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:36',\n 'updated_at' => '2019-01-07 02:37:36',\n ),\n 222 => \n array (\n 'id' => 723,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1 cup thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:36',\n 'updated_at' => '2019-01-07 02:37:36',\n ),\n 223 => \n array (\n 'id' => 724,\n 'recipe_id' => '88',\n 'ingrident' => 'cookie dough',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (16.5 oz.) refrigerated chocolate chip cookie dough, divided ',\n 'displayNote' => '\\' 1 pkg. (16.5 oz.) refrigerated <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> chip <a href=\\\\\\'/ingridients/cookie-dough\\\\\\'>cookie dough</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 224 => \n array (\n 'id' => 725,\n 'recipe_id' => '88',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 pkg. (3.4 oz.) JELL-O Vanilla Flavor Instant Pudding ',\n 'displayNote' => '\\'1 pkg. (3.4 oz.) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 225 => \n array (\n 'id' => 726,\n 'recipe_id' => '88',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup cold milk ',\n 'displayNote' => '\\'1 cup cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 226 => \n array (\n 'id' => 727,\n 'recipe_id' => '88',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => '1/3 cup creamy peanut butter, divided ',\n 'displayNote' => '\\'1/3 cup creamy <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 227 => \n array (\n 'id' => 728,\n 'recipe_id' => '88',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1-1/2 cups thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1-1/2 cups thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 228 => \n array (\n 'id' => 729,\n 'recipe_id' => '88',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 oz. BAKER&#39;S Semi-Sweet Chocolate ',\n 'displayNote' => '\\'1 oz. baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 229 => \n array (\n 'id' => 730,\n 'recipe_id' => '88',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 Tbsp. chopped PLANTERS COCKTAIL Peanuts ',\n 'displayNote' => '\\'2 tbsp. chopped planters cocktail peanuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 230 => \n array (\n 'id' => 731,\n 'recipe_id' => '89',\n 'ingrident' => 'italian dressing',\n 'amount' => NULL,\n 'note' => ' 1/4 cup KRAFT Zesty Italian Dressing ',\n 'displayNote' => '\\' 1/4 cup kraft zesty <a href=\\\\\\'/ingridients/italian-dressing\\\\\\'>italian dressing</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:44',\n 'updated_at' => '2019-01-07 02:37:44',\n ),\n 231 => \n array (\n 'id' => 732,\n 'recipe_id' => '89',\n 'ingrident' => 'pork',\n 'amount' => NULL,\n 'note' => '1-1/2 lb. pork tenderloin, cut into bite-size pieces ',\n 'displayNote' => '\\'1-1/2 lb. <a href=\\\\\\'/ingridients/pork-1\\\\\\'>pork</a> tenderloin, cut into bite-size pieces \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 232 => \n array (\n 'id' => 733,\n 'recipe_id' => '89',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion, chopped ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 233 => \n array (\n 'id' => 734,\n 'recipe_id' => '89',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 cloves garlic, minced ',\n 'displayNote' => '\\'2 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 234 => \n array (\n 'id' => 735,\n 'recipe_id' => '89',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped fresh cilantro, divided ',\n 'displayNote' => '\\'1/4 cup chopped fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 235 => \n array (\n 'id' => 736,\n 'recipe_id' => '89',\n 'ingrident' => 'pinto beans',\n 'amount' => NULL,\n 'note' => '2 cans (15 oz. each) pinto beans, rinsed, divided ',\n 'displayNote' => '\\'2 cans (15 oz. each) <a href=\\\\\\'/ingridients/pinto-beans\\\\\\'>pinto beans</a> , rinsed, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 236 => \n array (\n 'id' => 737,\n 'recipe_id' => '89',\n 'ingrident' => 'salsa',\n 'amount' => NULL,\n 'note' => '1 jar (16 oz.) green salsa ',\n 'displayNote' => '\\'1 jar (16 oz.) green <a href=\\\\\\'/ingridients/salsa\\\\\\'>salsa</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 237 => \n array (\n 'id' => 738,\n 'recipe_id' => '89',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '1 can (14.5 oz.) fat-free reduced-sodium chicken broth ',\n 'displayNote' => '\\'1 can (14.5 oz.) fat-free reduced-sodium <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 238 => \n array (\n 'id' => 739,\n 'recipe_id' => '89',\n 'ingrident' => 'corn',\n 'amount' => NULL,\n 'note' => '1 cup frozen corn ',\n 'displayNote' => '\\'1 cup frozen <a href=\\\\\\'/ingridients/corn\\\\\\'>corn</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 239 => \n array (\n 'id' => 740,\n 'recipe_id' => '89',\n 'ingrident' => 'chips',\n 'amount' => NULL,\n 'note' => '2 cups coarsely crushed tortilla chips ',\n 'displayNote' => '\\'2 cups coarsely crushed tortilla <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 240 => \n array (\n 'id' => 741,\n 'recipe_id' => '89',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/2 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 241 => \n array (\n 'id' => 742,\n 'recipe_id' => '89',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup KRAFT Mexican Style Finely Shredded Four Cheese ',\n 'displayNote' => '\\'1/2 cup kraft mexican style finely shredded four cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 242 => \n array (\n 'id' => 743,\n 'recipe_id' => '90',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => ' 1/4 cup KRAFT Thick & Spicy Barbecue Sauce ',\n 'displayNote' => '\\' 1/4 cup kraft thick & spicy <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 243 => \n array (\n 'id' => 744,\n 'recipe_id' => '90',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 Tbsp. maple-flavored or pancake syrup ',\n 'displayNote' => '\\'2 tbsp. maple-flavored or pancake syrup \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 244 => \n array (\n 'id' => 745,\n 'recipe_id' => '90',\n 'ingrident' => 'orange',\n 'amount' => NULL,\n 'note' => '1/4 tsp. orange zest ',\n 'displayNote' => '\\'1/4 tsp. <a href=\\\\\\'/ingridients/orange\\\\\\'>orange</a> zest \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 245 => \n array (\n 'id' => 746,\n 'recipe_id' => '90',\n 'ingrident' => 'salmon',\n 'amount' => NULL,\n 'note' => '1 skin-on salmon fillet (1 lb.) ',\n 'displayNote' => '\\'1 skin-on <a href=\\\\\\'/ingridients/salmon\\\\\\'>salmon</a> fillet (1 lb.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 246 => \n array (\n 'id' => 747,\n 'recipe_id' => '90',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 Tbsp. chopped fresh basil ',\n 'displayNote' => '\\'1 tbsp. chopped fresh <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 247 => \n array (\n 'id' => 748,\n 'recipe_id' => '91',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (3.4 oz.) JELL-O Vanilla Flavor Instant Pudding ',\n 'displayNote' => '\\' 1 pkg. (3.4 oz.) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:58',\n 'updated_at' => '2019-01-07 02:37:58',\n ),\n 248 => \n array (\n 'id' => 749,\n 'recipe_id' => '91',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup cold milk ',\n 'displayNote' => '\\'1 cup cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:58',\n 'updated_at' => '2019-01-07 02:37:58',\n ),\n 249 => \n array (\n 'id' => 750,\n 'recipe_id' => '91',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1-1/2 cups thawed COOL WHIP LITE Whipped Topping ',\n 'displayNote' => '\\'1-1/2 cups thawed cool whip lite whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:58',\n 'updated_at' => '2019-01-07 02:37:58',\n ),\n 250 => \n array (\n 'id' => 751,\n 'recipe_id' => '91',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '16 cinnamon graham cracker s, broken in half (32 squares) ',\n 'displayNote' => '\\'16 <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> graham <a href=\\\\\\'/ingridients/cracker\\\\\\'>cracker</a> s, broken in half (32 squares) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:58',\n 'updated_at' => '2019-01-07 02:37:58',\n ),\n 251 => \n array (\n 'id' => 752,\n 'recipe_id' => '92',\n 'ingrident' => 'ground chicken',\n 'amount' => NULL,\n 'note' => ' 1 lb. lean ground chicken ',\n 'displayNote' => '\\' 1 lb. lean <a href=\\\\\\'/ingridients/ground-chicken\\\\\\'>ground chicken</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 252 => \n array (\n 'id' => 753,\n 'recipe_id' => '92',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 yellow onion, chopped ',\n 'displayNote' => '\\'1 yellow <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 253 => \n array (\n 'id' => 754,\n 'recipe_id' => '92',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 cloves garlic, minced ',\n 'displayNote' => '\\'2 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 254 => \n array (\n 'id' => 755,\n 'recipe_id' => '92',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 can (28 oz.) diced tomatoes, undrained ',\n 'displayNote' => '\\'1 can (28 oz.) diced tomatoes, undrained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 255 => \n array (\n 'id' => 756,\n 'recipe_id' => '92',\n 'ingrident' => 'black beans',\n 'amount' => NULL,\n 'note' => '1 can (15.5 oz.) black beans, rinsed ',\n 'displayNote' => '\\'1 can (15.5 oz.) <a href=\\\\\\'/ingridients/black-beans\\\\\\'>black beans</a> , rinsed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 256 => \n array (\n 'id' => 757,\n 'recipe_id' => '92',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 green pepper, chopped ',\n 'displayNote' => '\\'1 green pepper, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 257 => \n array (\n 'id' => 758,\n 'recipe_id' => '92',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => '1/3 cup KRAFT Sweet & Spicy Barbecue Sauce ',\n 'displayNote' => '\\'1/3 cup kraft sweet & spicy <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 258 => \n array (\n 'id' => 759,\n 'recipe_id' => '92',\n 'ingrident' => 'chili powder',\n 'amount' => NULL,\n 'note' => '1 Tbsp. chili powder ',\n 'displayNote' => '\\'1 tbsp. <a href=\\\\\\'/ingridients/chili-powder\\\\\\'>chili powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 259 => \n array (\n 'id' => 760,\n 'recipe_id' => '92',\n 'ingrident' => 'chipotle',\n 'amount' => NULL,\n 'note' => '1 tsp. chipotle chile pepper powder ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/chipotle\\\\\\'>chipotle</a> chile pepper powder \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 260 => \n array (\n 'id' => 761,\n 'recipe_id' => '92',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped fresh cilantro ',\n 'displayNote' => '\\'1/4 cup chopped fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 261 => \n array (\n 'id' => 762,\n 'recipe_id' => '92',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup KRAFT Mexican Style Shredded Four Cheese with a TOUCH OF PHILADELPHIA ',\n 'displayNote' => '\\'3/4 cup kraft mexican style shredded four cheese with a touch of philadelphia \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 262 => \n array (\n 'id' => 763,\n 'recipe_id' => '92',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 green onions, chopped ',\n 'displayNote' => '\\'2 green onions, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 263 => \n array (\n 'id' => 764,\n 'recipe_id' => '93',\n 'ingrident' => 'fudge',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (0.74 oz) mini fudge-covered shortbread cookies ',\n 'displayNote' => '\\' 1 pkg. (0.74 oz) mini <a href=\\\\\\'/ingridients/fudge\\\\\\'>fudge</a> -covered shortbread <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:11',\n 'updated_at' => '2019-01-07 02:38:11',\n ),\n 264 => \n array (\n 'id' => 765,\n 'recipe_id' => '93',\n 'ingrident' => 'marshmallow',\n 'amount' => NULL,\n 'note' => '8 JET-PUFFED Miniature Marshmallow s ',\n 'displayNote' => '\\'8 jet-puffed miniature <a href=\\\\\\'/ingridients/marshmallow\\\\\\'>marshmallow</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:11',\n 'updated_at' => '2019-01-07 02:38:11',\n ),\n 265 => \n array (\n 'id' => 766,\n 'recipe_id' => '94',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => ' 12 peanut butter sandwich cookie s ',\n 'displayNote' => '\\' 12 <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> sandwich cookie s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 266 => \n array (\n 'id' => 767,\n 'recipe_id' => '94',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 pkg. (4 oz.) BAKER&#39;S White Chocolate, melted ',\n 'displayNote' => '\\'1 pkg. (4 oz.) baker&#39;s white <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 267 => \n array (\n 'id' => 768,\n 'recipe_id' => '94',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 Tbsp. red colored sugar ',\n 'displayNote' => '\\'2 tbsp. red colored <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 268 => \n array (\n 'id' => 769,\n 'recipe_id' => '94',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '24 miniature semi-sweet chocolate chips ',\n 'displayNote' => '\\'24 miniature semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 269 => \n array (\n 'id' => 770,\n 'recipe_id' => '94',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => 'decorations: 12 <u>each small red and white hard candies ',\n 'displayNote' => '\\'decorations: 12 <u>each small red and white hard candies \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 270 => \n array (\n 'id' => 771,\n 'recipe_id' => '95',\n 'ingrident' => 'pie crust',\n 'amount' => NULL,\n 'note' => ' 1 ready-to-use refrigerated pie crust (1/2 of 14.1-oz. pkg.) ',\n 'displayNote' => '\\' 1 ready-to-use refrigerated <a href=\\\\\\'/ingridients/pie-crust\\\\\\'>pie crust</a> (1/2 of 14.1-oz. pkg.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 271 => \n array (\n 'id' => 772,\n 'recipe_id' => '95',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 tsp. flour, divided ',\n 'displayNote' => '\\'2 tsp. <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 272 => \n array (\n 'id' => 773,\n 'recipe_id' => '95',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '3 egg s ',\n 'displayNote' => '\\'3 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 273 => \n array (\n 'id' => 774,\n 'recipe_id' => '95',\n 'ingrident' => 'corn',\n 'amount' => NULL,\n 'note' => '1 cup light corn syrup ',\n 'displayNote' => '\\'1 cup light <a href=\\\\\\'/ingridients/corn\\\\\\'>corn</a> syrup \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 274 => \n array (\n 'id' => 775,\n 'recipe_id' => '95',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar ',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 275 => \n array (\n 'id' => 776,\n 'recipe_id' => '95',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '2 Tbsp. butter, melted ',\n 'displayNote' => '\\'2 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 276 => \n array (\n 'id' => 777,\n 'recipe_id' => '95',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 277 => \n array (\n 'id' => 778,\n 'recipe_id' => '95',\n 'ingrident' => 'pecan',\n 'amount' => NULL,\n 'note' => '1 cup PLANTERS Pecan Halves ',\n 'displayNote' => '\\'1 cup planters <a href=\\\\\\'/ingridients/pecan\\\\\\'>pecan</a> halves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 278 => \n array (\n 'id' => 779,\n 'recipe_id' => '95',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '2 oz. BAKER&#39;S Semi-Sweet Chocolate, coarsely chopped ',\n 'displayNote' => '\\'2 oz. baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , coarsely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:20',\n 'updated_at' => '2019-01-07 02:38:20',\n ),\n 279 => \n array (\n 'id' => 780,\n 'recipe_id' => '95',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 tsp. coarse sea salt ',\n 'displayNote' => '\\'1/2 tsp. coarse sea salt \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:20',\n 'updated_at' => '2019-01-07 02:38:20',\n ),\n 280 => \n array (\n 'id' => 781,\n 'recipe_id' => '96',\n 'ingrident' => 'beef sirloin',\n 'amount' => NULL,\n 'note' => ' 1 beef sirloin steak (3/4 lb.), 3/4 inch thick ',\n 'displayNote' => '\\' 1 <a href=\\\\\\'/ingridients/beef-sirloin\\\\\\'>beef sirloin</a> steak (3/4 lb.), 3/4 inch thick \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 281 => \n array (\n 'id' => 782,\n 'recipe_id' => '96',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 Tbsp. A.1. Original Sauce ',\n 'displayNote' => '\\'2 tbsp. a.1. original sauce \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 282 => \n array (\n 'id' => 783,\n 'recipe_id' => '96',\n 'ingrident' => 'mayonnaise',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Mayo with Olive Oil Reduced Fat Mayonnaise ',\n 'displayNote' => '\\'1/4 cup kraft mayo with <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil reduced fat <a href=\\\\\\'/ingridients/mayonnaise\\\\\\'>mayonnaise</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 283 => \n array (\n 'id' => 784,\n 'recipe_id' => '96',\n 'ingrident' => 'ranch dressing',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Lite Ranch Dressing ',\n 'displayNote' => '\\'1/4 cup kraft lite <a href=\\\\\\'/ingridients/ranch-dressing\\\\\\'>ranch dressing</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 284 => \n array (\n 'id' => 785,\n 'recipe_id' => '96',\n 'ingrident' => 'horseradish',\n 'amount' => NULL,\n 'note' => '2 tsp. KRAFT Prepared Horseradish ',\n 'displayNote' => '\\'2 tsp. kraft prepared <a href=\\\\\\'/ingridients/horseradish\\\\\\'>horseradish</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 285 => \n array (\n 'id' => 786,\n 'recipe_id' => '96',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '8 cups loosely packed chopped romaine lettuce ',\n 'displayNote' => '\\'8 cups loosely packed chopped romaine lettuce \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 286 => \n array (\n 'id' => 787,\n 'recipe_id' => '96',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '1 tomato, cut into wedges ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> , cut into wedges \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 287 => \n array (\n 'id' => 788,\n 'recipe_id' => '96',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small red onion, cut into thin wedges ',\n 'displayNote' => '\\'1 small red <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , cut into thin wedges \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 288 => \n array (\n 'id' => 789,\n 'recipe_id' => '96',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '1/2 cup KRAFT 2% Milk Shredded Sharp Cheddar Cheese ',\n 'displayNote' => '\\'1/2 cup kraft 2% <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> shredded sharp <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 289 => \n array (\n 'id' => 790,\n 'recipe_id' => '97',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => ' 1 container (1.5 qt.) vanilla ice cream, slightly softened ',\n 'displayNote' => '\\' 1 container (1.5 qt.) <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> , slightly softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 290 => \n array (\n 'id' => 791,\n 'recipe_id' => '97',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '6 sugar cones, divided ',\n 'displayNote' => '\\'6 <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> cones, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 291 => \n array (\n 'id' => 792,\n 'recipe_id' => '97',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 pkg. (4 oz.) BAKER&#39;S Semi-Sweet Chocolate ',\n 'displayNote' => '\\'1 pkg. (4 oz.) baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 292 => \n array (\n 'id' => 793,\n 'recipe_id' => '97',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 Tbsp. oil ',\n 'displayNote' => '\\'1 tbsp. oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 293 => \n array (\n 'id' => 794,\n 'recipe_id' => '97',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped PLANTERS Dry Roasted Peanuts ',\n 'displayNote' => '\\'1/4 cup chopped planters dry roasted peanuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 294 => \n array (\n 'id' => 795,\n 'recipe_id' => '98',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 1 tub (8 oz.) COOL WHIP Whipped Topping, thawed ',\n 'displayNote' => '\\' 1 tub (8 oz.) cool whip whipped topping, thawed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 295 => \n array (\n 'id' => 796,\n 'recipe_id' => '98',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '40 vanilla wafers, divided ',\n 'displayNote' => '\\'40 <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> wafers, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 296 => \n array (\n 'id' => 797,\n 'recipe_id' => '98',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 pkg. (3.4 oz. each) JELL-O Vanilla Flavor Instant Pudding ',\n 'displayNote' => '\\'2 pkg. (3.4 oz. each) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 297 => \n array (\n 'id' => 798,\n 'recipe_id' => '98',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '3-1/2 cups cold milk ',\n 'displayNote' => '\\'3-1/2 cups cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 298 => \n array (\n 'id' => 799,\n 'recipe_id' => '98',\n 'ingrident' => 'berries',\n 'amount' => NULL,\n 'note' => '2 cups mixed berries (blueberries, raspberries, sliced fresh strawberries) ',\n 'displayNote' => '\\'2 cups mixed <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> (blue <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> , rasp <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> , sliced fresh straw <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> ) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 299 => \n array (\n 'id' => 800,\n 'recipe_id' => '99',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => ' 1 lb. lean ground beef ',\n 'displayNote' => '\\' 1 lb. lean <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:36',\n 'updated_at' => '2019-01-07 02:38:36',\n ),\n 300 => \n array (\n 'id' => 801,\n 'recipe_id' => '99',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup sliced fresh mushrooms ',\n 'displayNote' => '\\'1 cup sliced fresh mushrooms \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:36',\n 'updated_at' => '2019-01-07 02:38:36',\n ),\n 301 => \n array (\n 'id' => 802,\n 'recipe_id' => '99',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1-1/4 cups milk ',\n 'displayNote' => '\\'1-1/4 cups <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:36',\n 'updated_at' => '2019-01-07 02:38:36',\n ),\n 302 => \n array (\n 'id' => 803,\n 'recipe_id' => '99',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup water ',\n 'displayNote' => '\\'1 cup water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:36',\n 'updated_at' => '2019-01-07 02:38:36',\n ),\n 303 => \n array (\n 'id' => 804,\n 'recipe_id' => '99',\n 'ingrident' => 'velveeta',\n 'amount' => NULL,\n 'note' => '1 pkg. (11.6 oz.) VELVEETA CHEESY SKILLETS Dinner Kit Creamy Beef Stroganoff ',\n 'displayNote' => '\\'1 pkg. (11.6 oz.) <a href=\\\\\\'/ingridients/velveeta\\\\\\'>velveeta</a> cheesy skillets dinner kit creamy beef stroganoff \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:37',\n 'updated_at' => '2019-01-07 02:38:37',\n ),\n 304 => \n array (\n 'id' => 805,\n 'recipe_id' => '100',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => ' 2 baked 8-inch round vanilla cake layers, cooled ',\n 'displayNote' => '\\' 2 baked 8-inch round <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> cake layers, cooled \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 305 => \n array (\n 'id' => 806,\n 'recipe_id' => '100',\n 'ingrident' => 'strawberry',\n 'amount' => NULL,\n 'note' => '1 pkg (3 oz.) JELL-O Strawberry Flavor Gelatin ',\n 'displayNote' => '\\'1 pkg (3 oz.) jell-o <a href=\\\\\\'/ingridients/strawberry\\\\\\'>strawberry</a> flavor gelatin \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 306 => \n array (\n 'id' => 807,\n 'recipe_id' => '100',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 cups boiling water ',\n 'displayNote' => '\\'2 cups boiling water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 307 => \n array (\n 'id' => 808,\n 'recipe_id' => '100',\n 'ingrident' => 'banana',\n 'amount' => NULL,\n 'note' => '1 pkg (3.4 oz.) JELL-O Banana Cream Flavor Instant Pudding ',\n 'displayNote' => '\\'1 pkg (3.4 oz.) jell-o <a href=\\\\\\'/ingridients/banana\\\\\\'>banana</a> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 308 => \n array (\n 'id' => 809,\n 'recipe_id' => '100',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup cold milk ',\n 'displayNote' => '\\'1 cup cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 309 => \n array (\n 'id' => 810,\n 'recipe_id' => '100',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) Extra Creamy COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1 tub (8 oz.) extra creamy cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 310 => \n array (\n 'id' => 811,\n 'recipe_id' => '100',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '*hocolate shavings, banana slices, cherry with stem, chocolate drizzle to decorate (optional) ',\n 'displayNote' => '\\'*hocolate shavings, <a href=\\\\\\'/ingridients/banana\\\\\\'>banana</a> slices, <a href=\\\\\\'/ingridients/cherry\\\\\\'>cherry</a> with stem, <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> drizzle to decorate (optional) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 311 => \n array (\n 'id' => 812,\n 'recipe_id' => '101',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 2 cups boiling water ',\n 'displayNote' => '\\' 2 cups boiling water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:52',\n 'updated_at' => '2019-01-07 02:38:52',\n ),\n 312 => \n array (\n 'id' => 813,\n 'recipe_id' => '101',\n 'ingrident' => 'strawberry',\n 'amount' => NULL,\n 'note' => '2 pkg. (3 oz. each) JELL-O Strawberry Flavor Gelatin ',\n 'displayNote' => '\\'2 pkg. (3 oz. each) jell-o <a href=\\\\\\'/ingridients/strawberry\\\\\\'>strawberry</a> flavor gelatin \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:52',\n 'updated_at' => '2019-01-07 02:38:52',\n ),\n 313 => \n array (\n 'id' => 814,\n 'recipe_id' => '101',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 cups ice cubes ',\n 'displayNote' => '\\'4 cups ice cubes \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:52',\n 'updated_at' => '2019-01-07 02:38:52',\n ),\n 314 => \n array (\n 'id' => 815,\n 'recipe_id' => '101',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup bear-shaped gummy candies (2 oz.) ',\n 'displayNote' => '\\'1/3 cup bear-shaped gummy candies (2 oz.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:52',\n 'updated_at' => '2019-01-07 02:38:52',\n ),\n 315 => \n array (\n 'id' => 816,\n 'recipe_id' => '103',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => ' 1 lb. lean ground beef ',\n 'displayNote' => '\\' 1 lb. lean <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 316 => \n array (\n 'id' => 817,\n 'recipe_id' => '103',\n 'ingrident' => 'bacon',\n 'amount' => NULL,\n 'note' => '4 slices OSCAR MAYER Bacon ',\n 'displayNote' => '\\'4 slices oscar mayer <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 317 => \n array (\n 'id' => 818,\n 'recipe_id' => '103',\n 'ingrident' => 'pepper jack',\n 'amount' => NULL,\n 'note' => '4 KRAFT Big Slice Pepper Jack Cheese Slice s ',\n 'displayNote' => '\\'4 kraft big slice <a href=\\\\\\'/ingridients/pepper-jack\\\\\\'>pepper jack</a> cheese slice s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 318 => \n array (\n 'id' => 819,\n 'recipe_id' => '103',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 kaiser roll s, split ',\n 'displayNote' => '\\'4 kaiser roll s, split \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 319 => \n array (\n 'id' => 820,\n 'recipe_id' => '103',\n 'ingrident' => 'chipotle',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Chipotle Aioli ',\n 'displayNote' => '\\'1/4 cup kraft <a href=\\\\\\'/ingridients/chipotle\\\\\\'>chipotle</a> aioli \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 320 => \n array (\n 'id' => 821,\n 'recipe_id' => '103',\n 'ingrident' => 'avocado',\n 'amount' => NULL,\n 'note' => '1 avocado, cut into 12 slices ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/avocado\\\\\\'>avocado</a> , cut into 12 slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 321 => \n array (\n 'id' => 822,\n 'recipe_id' => '103',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/2 cup coarsely chopped fresh cilantro ',\n 'displayNote' => '\\'1/2 cup coarsely chopped fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:04',\n 'updated_at' => '2019-01-07 02:39:04',\n ),\n 322 => \n array (\n 'id' => 823,\n 'recipe_id' => '104',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => ' 2 pkg. (4 oz. each) BAKER&#39;S Semi-Sweet Chocolate, broken into pieces ',\n 'displayNote' => '\\' 2 pkg. (4 oz. each) baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , broken into pieces \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 323 => \n array (\n 'id' => 824,\n 'recipe_id' => '104',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup (1/2 stick) butter or margarine, softened ',\n 'displayNote' => '\\'1/4 cup (1/2 stick) <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 324 => \n array (\n 'id' => 825,\n 'recipe_id' => '104',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup firmly packed brown sugar ',\n 'displayNote' => '\\'3/4 cup firmly packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 325 => \n array (\n 'id' => 826,\n 'recipe_id' => '104',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '3 egg s ',\n 'displayNote' => '\\'3 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 326 => \n array (\n 'id' => 827,\n 'recipe_id' => '104',\n 'ingrident' => 'coffee',\n 'amount' => NULL,\n 'note' => '2 tsp. MAXWELL HOUSE Instant Coffee ',\n 'displayNote' => '\\'2 tsp. maxwell house instant <a href=\\\\\\'/ingridients/coffee\\\\\\'>coffee</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 327 => \n array (\n 'id' => 828,\n 'recipe_id' => '104',\n 'ingrident' => 'rum',\n 'amount' => NULL,\n 'note' => '1 tsp. rum extract ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/rum\\\\\\'>rum</a> extract \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 328 => \n array (\n 'id' => 829,\n 'recipe_id' => '104',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/4 cup flour ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 329 => \n array (\n 'id' => 830,\n 'recipe_id' => '104',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup chopped PLANTERS Walnuts ',\n 'displayNote' => '\\'1 cup chopped planters walnuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 330 => \n array (\n 'id' => 831,\n 'recipe_id' => '104',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 unbaked 9-inch pastry shell ',\n 'displayNote' => '\\'1 unbaked 9-inch pastry shell \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 331 => \n array (\n 'id' => 832,\n 'recipe_id' => '104',\n 'ingrident' => 'walnut',\n 'amount' => NULL,\n 'note' => '1/2 cup PLANTERS Walnut Halves ',\n 'displayNote' => '\\'1/2 cup planters <a href=\\\\\\'/ingridients/walnut-1\\\\\\'>walnut</a> halves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n ));\n \n \n }", "function update_itinerary($pid) {\n $i_trip_name = $_POST['trip_name'];\n $i_region_name = $_POST['region_name'];\n $i_price_include = $_POST['price_include'];\n $i_price_exclude = $_POST['price_exclude'];\n $i_equipment = $_POST['equipment'];\n $i_itinerary_detail = $_POST['itinerary_detail'];\n $i_faqs = $_POST['faqs'];\n $i_highlight = $_POST['highlight'];\n $i_video_link = $_POST['video_link'];\n $sql = \"UPDATE itinerary SET trip_id='$i_trip_name',region_id='$i_region_name',price_include='$i_price_include',price_exclude='$i_price_exclude',equipment='$i_equipment',itinerary_detail='$i_itinerary_detail',faqs='$i_faqs',\n\t\t\thighlight='$i_highlight',video_link='$i_video_link' WHERE id='$pid'\";\n $this->mysqli->query($sql);\n if ($this->mysqli->error) {\n echo $this->mysqli->error;\n } else {\n echo \"<script type='text/javascript'>alert('Itinerary updated successfully')</script>\";\n }\n }", "public function update(Request $request, Ingredient $ingredient)\n {\n\n $diets = Diet::all();\n $intollerances = Intollerance::all();\n $data = $request->all();\n\n $data['availability'] = $request->input('availability');\n $ingredient->conservation_ID = $request->input('conservation');\n\n // Diets\n foreach ($diets as $diet) {\n $sql = DB::table('diet_ingredient')->where('ingredient_ID', $ingredient->id)->where('diet_ID', $diet->id);\n $data[$diet->name] = $request->input($diet->name);\n if (!$request->input($diet->name) || $sql) {\n $sql->delete();\n }\n }\n\n // Intollerances\n foreach ($intollerances as $intollerance) {\n $sql = DB::table('ingredient_intollerance')->where('ingredient_ID', $ingredient->id)->where('intollerance_ID', $intollerance->id);\n $data[$intollerance->name] = $request->input($intollerance->name);\n if (!$request->input($intollerance->name) || $sql) {\n $sql->delete();\n }\n }\n\n $ingredient->availability = 0;\n if ($data['availability']) {\n $ingredient->availability = 1;\n }\n\n $ingredient->update($data);\n\n // Diet sync\n foreach ($diets as $diet) {\n $ingredient->diet()->sync($data[$diet->name]);\n }\n\n // Intollerance sync\n foreach ($intollerances as $intollerance) {\n $ingredient->intollerance()->sync($data[$intollerance->name]);\n }\n\n return redirect()->route('ingredient.index');\n }", "public function update($id, Request $request) {\n\t\n\t $this->validate($request, [\n\t\t 'recipe_id' => 'integer|exists:recipes,id',\n\t\t 'step_order' => 'integer|min:1',\n\t\t 'description' => 'string|min:10'\n\t ]);\n\t\n\t $recipeStep = RecipeStep::findOrFail($id);\n\t $recipeStep->update($request->all());\n\t\n\t return response()->json($recipeStep, 200);\n }", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",comments=\\\"$this->comments\\\",price=\\\"$this->price\\\",brand=\\\"$this->brand\\\",model=\\\"$this->model\\\",y=\\\"$this->y\\\",link=\\\"$this->link\\\",in_existence=\\\"$this->in_existence\\\",is_public=\\\"$this->is_public\\\",is_featured=\\\"$this->is_featured\\\",category_id=\\\"$this->category_id\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update() {\n $mysqli = Database::getMYSQLI();\n \n $stmt = $mysqli->prepare(\"\n UPDATE lessons\n SET title = ?, subject = ?, description = ?, resources = ?, persons_ID = ?, \n date_created = ?, search_field = ?\n WHERE id = ?\");\n \n $stmt->bind_param('ssssissi', $this->title, $this->subject, $this->description, \n $this->resources, $this->personsID, $this->dateCreated, $this->searchField, \n $this->id);\n\n $stmt->execute();\n $stmt->close();\n $mysqli->close();\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 saveRecipe(Recipe $recipe)\n {\n $data = array(\n 'instructions' => $recipe->instructions,\n 'description' => $recipe->description,\n 'recipeName' => $recipe->recipeName,\n 'duration' => $recipe->duration,\n 'difficultyID' => $recipe->difficultyID,\n 'createUserID' => $recipe->createUserID,\n );\n\n $id = (int) $recipe->recipeID;\n if ($id == 0) {\n $this->tableGateway->insert($data);\n //set ID of newly inserted entity\n $id = $this->tableGateway->lastInsertValue;\n } else {\n if ($this->getRecipe($id)) {\n $this->tableGateway->update($data, array('recipeID' => $id));\n } else {\n throw new \\Exception('Recipe id does not exist');\n }\n }\n return $id;\n }", "public function update(Request $request, $id)\n {\n // dd($request->itemdetail);\n $order = $this->model->find($id);\n\n foreach ($order->orderDetails as $key => $orderDetail) {\n $detail = ItemDetail::with('ingredients')->withTrashed()->findOrFail($orderDetail->item_detail_id);\n // dd($detail);\n foreach ($detail->ingredients as $key => $ingredient) {\n $usedIngredient = Ingredient::find($ingredient->id);\n $stock = $ingredient->stock;\n $used = $ingredient->pivot->amount_ingredient * $orderDetail->qty;\n $nowStock = $stock + $used;\n $usedIngredient->update(['stock' => $nowStock]);\n // dd($usedIngredient);\n };\n // dd($orderDetail->qty);\n };\n\n // dd($order->orderDetails->first()->item_detail_id);\n // dd(Ingredient::find(1)->stock);\n\n $order->orderDetails()->delete();\n\n $this->validate($request, [\n 'customer' => 'required',\n 'total' => 'required',\n 'itemdetail.*' => 'required',\n 'qty.*' => 'required',\n ]);\n\n $order->update([\n 'user_id' => auth()->user()->id,\n 'customer' => $request->customer,\n 'total' => $request->total,\n ]);\n\n for ($i = 0; $i < count($request->itemdetail); $i++) {\n $order->orderDetails()->create([\n 'item_detail_id' => $request->itemdetail[$i],\n 'qty' => $request->qty[$i],\n 'sub_total' => $request->subtotal[$i],\n ]);\n $detail = ItemDetail::with('ingredients')->find($request->itemdetail[$i]);\n foreach ($detail->ingredients as $key => $ingredient) {\n $usedIngredient = Ingredient::find($ingredient->id);\n $stock = $ingredient->stock;\n $used = $ingredient->pivot->amount_ingredient * $request->qty[$i];\n $nowStock = $stock - $used;\n $usedIngredient->update(['stock' => $nowStock]);\n // dd($ingredient->stock);\n };\n };\n\n return redirect($this->redirect);\n }", "public function run()\n {\n $now = Carbon::now();\n DB::table( 'recipes' )->insert( [\n 'user_id' => '2',\n 'name' => 'Grilled Cheese Sandwich',\n 'description' => 'This is a recipe for a basic grilled cheese sandwich.',\n 'source' => 'Patrick',\n 'prep_time' => '5',\n 'cook_time' => '5',\n 'servings' => '1',\n 'serving_size' => 'sandwich',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n\n DB::table( 'ingredients' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '1',\n 'name' => '2 slices of bread',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'ingredients' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '2',\n 'name' => '2 slices of pre-packaged cheese singles',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'ingredients' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '3',\n 'name' => '3 tablespoons of buttery spread',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '1',\n 'name' => 'Pre-heat griddle or pan to medium heat.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '2',\n 'name' => 'Spread butter on one side of each slice of bread.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '3',\n 'name' => 'When cooking surface is hot, place one slice of bread butter-side down on surface.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '4',\n 'name' => 'Place two cheese slices on the toasting bread and place 2nd slice of bread, butter side up, on top.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '5',\n 'name' => 'When bottom bread is browned nicely (golden color), flip sandwich over so top-butter is now down on the cooking surface.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '6',\n 'name' => 'Let sandwich cook until the 2nd side is browned.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '7',\n 'name' => 'Remove sandwich from heat and serve immediately.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n }", "public function setRecipeId($recipe_id)\r\n {\r\n $this->_recipe_id = $recipe_id;\r\n }", "function update_route($id,$params)\n {\n $this->db->where('id',$id);\n return $this->db->update('routes',$params);\n }", "public function save($recipe){\n\n $success = false;\n if($recipe->getId() && $this->find($recipe->getId()))\n {\n $success = $this->update($recipe);\n }\n else {\n $success = $this->insert($recipe);\n }\n\n return $success;\n }", "public function update() {\n // Get the values that are currently in the database\n $curr_vals = $this->read_single();\n\n // Set the values that will be added to the table\n foreach ($curr_vals as $key => $value) {\n // Convert key from the Database's capitalization to\n // this model's attribute capitalization style (all lowercase)\n $local_key = strtolower($key);\n // If user didn't specify property\n if (($this->attr[$local_key] === \"\") || ($this->attr[$local_key] === null)){\n // Then use the value that's already in the database\n $this->attr[$local_key] = $curr_vals[$key];\n }\n }\n\n // Create query\n $query = \"UPDATE \" . $this->table .\n \" SET = \" .\n \" WHERE MID = :mid AND Spot = :spot \";\n\n // Prepare statement\n $stmt = $this->conn->prepare($query);\n\n // Clean the data (reduce malicious SQL injection, etc.)\n foreach ($this->attr as $key => $value) {\n $this->attr[$key] = htmlspecialchars(strip_tags($value));\n }\n \n // Bind the data to a variable for an SQL attribute\n foreach ($this->attr as $key => $value) {\n $stmt->bindValue((\":\" . $key), $value);\n }\n\n // Execute the prepared statement and check for errors in running it\n return $this->runPrepStmtChkErr($stmt);\n }", "function delete() {\n\t\tglobal $DB_LINK, $db_table_recipes, $db_table_list_recipes, $db_table_related_recipes, $db_table_ingredientmaps, $db_table_reviews,\n\t\t\t$db_table_ratings, $db_table_mealplans, $db_table_favorites;\n\n\t\t$sql = \"DELETE from $db_table_recipes WHERE recipe_id=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_list_recipes WHERE list_rp_recipe=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_related_recipes WHERE related_parent=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_ingredientmaps WHERE map_recipe=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_reviews WHERE review_recipe=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_ratings WHERE rating_recipe=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_mealplans WHERE mplan_recipe=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_favorites WHERE favorite_recipe=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\t}", "public function getRecipeData($rid) {\n // Query to select recipe\n $this->db->query('SELECT * FROM recipes WHERE rid=:rid');\n $this->db->bind(':rid', $rid);\n $this->db->execute();\n $recipeResult = $this->db->single();\n\n // If recipe does not exist, return null\n if($recipeResult == null) {\n return null;\n }\n\n // Convert from object into array to append owner username, ingredients ,and directions\n $recipeResult = (array)$recipeResult;\n\n // Retrieve owner username and append to result\n $this->db->query('SELECT user_username FROM users WHERE user_id=:uid');\n $this->db->bind(':uid', $recipeResult['ownerid']);\n $this->db->execute();\n $result = $this->db->single();\n $recipeResult['owner_username'] = $result->user_username;\n\n // Query to select recipe's ingredients list\n $this->db->query('SELECT ingredientid, value FROM ingredients WHERE rid=:rid');\n $this->db->bind(':rid', $rid);\n $this->db->execute();\n $ingredientsResult = $this->db->resultSet(true);\n $recipeResult['ingredients'] = $ingredientsResult;\n\n // Query to select recipe's directions list\n $this->db->query('SELECT stepNum, description FROM directions WHERE rid=:rid');\n $this->db->bind(':rid', $rid);\n $this->db->execute();\n $directionsResult = $this->db->resultSet(true);\n $recipeResult['directions'] = $directionsResult;\n\n return (object)$recipeResult;\n }", "public function run()\n {\n DB::table('countries')->truncate();\n DB::table('ingredients')->truncate();\n DB::table('facts')->truncate();\n DB::table('recipes')->truncate();\n DB::table('ingredient_recipe')->truncate();\n DB::table('country_recipe')->truncate();\n\n //data from file DataProvider.php (same folder) => if you want to add recipes to seeder go there\n $data_recipes = DataProvider::getRecipes();\n $countries = DataProvider::getCountries();\n\n //this fills DB with Countries\n foreach ($countries as $iteration) {\n $country = new Country;\n $country->name = $iteration[\"name\"];\n $country->flag = strtolower($iteration[\"flag\"]);\n $country->save();\n }\n\n\n //fill DB with recipes from array $data_recipes\n foreach ($data_recipes as $food) {\n $recipe = new Recipe;\n\n $recipe->name = $food[\"name\"];\n $recipe->instructions = $food[\"instructions\"];\n $recipe->image = $food[\"image\"];\n $recipe->isVegan = $food[\"isVegan\"];\n $recipe->isVegetarian = $food[\"isVegetarian\"];\n $recipe->isLactoseFree = $food[\"isLactoseFree\"];\n $recipe->isGlutenFree = $food[\"isGlutenFree\"];\n $recipe->isNutFree = $food[\"isNutFree\"];\n $recipe->save();\n\n foreach ($food[\"countries\"] as $coun) {\n //we need to get country ID to save it to recipe_coutry table\n $country_generated = Country::where(\"name\", $coun)->first();\n $recipe->countries()->attach($country_generated->id);\n }\n\n foreach ($food[\"ingredients\"] as $ingr) {\n //we need to know if the ingredient is already in the DB if not, it is stored\n $ingredient_generated = Ingredient::where(\"name\", $ingr[2])->first();\n if (!$ingredient_generated) {\n $ingredient = new Ingredient;\n $ingredient->name = $ingr[2];\n $ingredient->save();\n } else {\n $ingredient = $ingredient_generated;\n $ingredient->save();\n }\n\n\n //actually filling the intermediate table ingredient_recipe (notice syntax in attach() method)\n $recipe->ingredients()->attach($ingredient->id, [\"quantity\" => $ingr[0], \"measurement\" => $ingr[1]]);\n }\n }\n }", "public function execute() {\n\t\t$userLogin = null;\n\t\t$userIsAuth = false;\n\t\t$userLogin = $this->_session->userLogin;\n\t\t$userIsAuth = $this->_session->userIsAuth;\n\t\tif(empty($userLogin) || ($userIsAuth == false)) {\n\t\t\tthrow new ControllerException('Brak dostepu');\n\t\t}\t\t\t\n\t\t\n\t\t$baseUrl = $this->_request->getBaseUrl();\n\t\t$values = $this->_session->getFlashData('recipeEditFormValues');\n\t\t$errors = $this->_session->getFlashData('recipeEditErrors'); //przepuscic przez i18n\n\t\t$flashError = $this->_session->getFlashData('error');\t\t\t\t\n\t\tif(!is_array($values)) {\n\t\t\t$recipeId = (int)$this->_request->get('id');\t\t\n\t\t}\n\t\telse {\n\t\t\t$recipeId = (int)$values['id'];\n\t\t}\n\t\tif(($recipeId == '') || ($recipeId == null)) {\n\t\t\tthrow new ControllerException('Brak identyfikatora przepisu');\n\t\t}\n\t\t\n\t\t//pobieranie danych z modelu\n\t\t$recipeFieldsNames = $this->_recipeMapper->getFieldsNames();\n\t\t$recipeRelationsNames = $this->_recipeMapper->getRelationsNames();\n\t\t$categoryFieldsNames = $this->_categoryMapper->getFieldsNames();\n\t\t$ingredientFieldsNames = $this->_ingredientMapper->getFieldsNames();\n\t\t$unitFieldsNames = $this->_unitMapper->getFieldsNames();\n\t\t\n\t\t//pobieranie danych z modelu, przygotowanie tablicy z danymi kategorii, skladnikow do przepisu i jednostek\n\t\t$categories = $this->_categoryMapper->getAll();\n\t\t$categoriesToView = array();\n\t\tforeach($categories AS $category) {\n\t\t\t$ca = array();\n\t\t\t$ca = $category->toArray($categoryFieldsNames);\n\t\t\t$ca = array_map('htmlspecialchars', $ca);\n\t\t\t$categoriesToView[] = $ca;\n\t\t}\n\t\t$ingredients = $this->_ingredientMapper->getAll();\n\t\t$ingredientsToView = array();\n\t\tforeach($ingredients AS $ingredient) {\n\t\t\t$in = array();\n\t\t\t$in = $ingredient->toArray($ingredientFieldsNames);\n\t\t\t$in = array_map('htmlspecialchars', $in);\n\t\t\t$ingredientsToView[] = $in;\n\t\t}\t\t\t\t\n\t\t$units = $this->_unitMapper->getAll();\n\t\t$unitsToView = array();\n\t\tforeach($units AS $unit) {\n\t\t\t$un = array();\n\t\t\t$un = $unit->toArray($unitFieldsNames);\n\t\t\t$un = array_map('htmlspecialchars', $un);\n\t\t\t$unitsToView[] = $un;\n\t\t}\t\t\t\t\n\t\t\n\t\t//pobieranie danych z modelu, przygotowanie tablicy z danymi przepisu, jego kategorii i skladnikow\n\t\t$recipeToView = array();\n\t\tif(!is_array($values)) {\n\t\t\t$recipesCollection = $this->_recipeMapper->getById($recipeId);\n\t\t\tif(count($recipesCollection) != 1) {\n\t\t\t\tthrow new ControllerException('Przepis nie istnieje w bazie danych');\n\t\t\t}\n\t\t\t$recipeObject = $recipesCollection[0];\n\t\t\t$recipeToView = $recipeObject->toArray($recipeFieldsNames);\n\t\t\t$recipeToView = array_map('htmlspecialchars', $recipeToView);\n\t\t\t\n\t\t\t$categoriesCollection = $recipeObject->categories->getCollection();\n\t\t\t$category = $categoriesCollection[0];\n\t\t\t$recipeToView['cats'] = htmlspecialchars($category->id);\t\t\t\n\t\t\t$itemsCollection = $recipeObject->items->getCollection();\n\t\t\t$items = array();\n\t\t\t$i = 0;\n\t\t\tforeach($itemsCollection AS $item) {\n\t\t\t\t$items[$i]['amount'] = htmlspecialchars($item->amount);\n\t\t\t\t$ingredientsCollection = $item->ingredients->getCollection(); \n\t\t\t\t$ingredient = $ingredientsCollection[0];\n\t\t\t\t$ingredientArr = $ingredient->toArray($ingredientFieldsNames);\n\t\t\t\t$items[$i]['ingredients'] = htmlspecialchars($ingredientArr['id']);\n\t\t\t\t$unitsCollection = $item->units->getCollection();\n\t\t\t\tif(count($unitsCollection) > 0) {\n\t\t\t\t\t$unit = $unitsCollection[0];\n\t\t\t\t\t$unitArr = $unit->toArray($unitFieldsNames); \n\t\t\t\t\t$items[$i]['units'] = htmlspecialchars($unitArr['id']);\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t$itemsCnt = count($items); //liczba skladnikow, chce aby bylo 15\n\t\t\twhile($itemsCnt < 15) {\n\t\t\t\t$items[] = array();\n\t\t\t\t$itemsCnt++;\n\t\t\t}\n\t\t\t$recipeToView['itms'] = $items;\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//przygotowanie danych formularza po wystapieniu bledu\n\t\tif(is_array($values)) {\n\t\t\t$items = array();\n\t\t\tif(isset($values['ingredients'])) {\n\t\t\t\tforeach($values['ingredients'] AS $index=>$ingredient) {\n\t\t\t\t\t$items[$index]['ingredients'] = htmlspecialchars($ingredient);\n\t\t\t\t\tif(isset($values['amount'][$index])) {\n\t\t\t\t\t\t$items[$index]['amount'] = htmlspecialchars($values['amount'][$index]); \n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$items[$index]['amount'] = '';\n\t\t\t\t\t}\n\t\t\t\t\tif(isset($values['units'][$index])) {\n\t\t\t\t\t\t$items[$index]['units'] = htmlspecialchars($values['units'][$index]); \n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$items[$index]['units'] = '';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$itemsCnt = count($items); //liczba skladnikow, chce aby bylo 15\n\t\t\t\twhile($itemsCnt < 15) {\n\t\t\t\t\t$items[] = array();\n\t\t\t\t\t$itemsCnt++;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tunset($values['ingredients']);\n\t\t\tunset($values['amount']);\n\t\t\tunset($values['units']);\n\t\t\t\n\t\t\tforeach($values AS $index=>$value) {\n\t\t\t\tif(is_array($value)) {\n\t\t\t\t\t$recipeToView[$index] = array_map('htmlspecialchars',$value);\n\t\t\t\t}\n\t\t\t\t$recipeToView[$index] = htmlspecialchars($value);\n\t\t\t}\n\t\t\t\n\t\t\t$recipeToView['itms'] = $items;\n\t\t}\n\t\t\n\t\t//przygotowanie dodatkowych danych dla widoku\n\t\t$actionLink = $baseUrl.'/admin/recipe/edit';\n\t\t$recipeTableHeadersStrings = array_map(array($this->_i18n, 'translate'), $recipeFieldsNames);\n\t\t$approvedList = array(array('value'=>0, 'info'=>$this->_i18n->translate('Recipe not approved')), array('value'=>1, 'info'=>$this->_i18n->translate('Recipe approved')));\n\t\t\n\t\t//dolaczenie danych do widoku\n\t\t$this->_view->assign('recipe', $recipeToView);\n\t\t$this->_view->assign('categories', $categoriesToView);\n\t\t$this->_view->assign('ingredients', $ingredientsToView);\n\t\t$this->_view->assign('units', $unitsToView);\n\t\t$this->_view->assign('errors', $errors);\n\t\t$this->_view->assign('flashError', $flashError);\t\t\n\t\t$this->_view->assign('actionLink', $actionLink);\n\t\t$this->_view->assign('approvedList', $approvedList);\t\t\n\t\t$this->_view->assign('recipeTableHeadersStrings', $recipeTableHeadersStrings);\n\t\t$this->_view->assign('categoryString', $this->_i18n->translate($recipeRelationsNames['categories']));\n\t\t$this->_view->assign('ingredientsString', $this->_i18n->translate('ingredients'));\n\t\t$this->_view->assign('ingredientNameString', $this->_i18n->translate('Ingredient'));\n\t\t$this->_view->assign('unitNameString', $this->_i18n->translate('Unit'));\n\t\t$this->_view->assign('amountString', $this->_i18n->translate('Amount'));\n\t\t$this->_view->assign('recipeEditFormTitle', $this->_i18n->translate('Recipe edit form'));\t\t\n\t\t$this->_view->assign('submitString', $this->_i18n->translate('Submit'));\n\t\t$this->_view->assign('resetString', $this->_i18n->translate('Reset'));\n\t\n\t}", "public static function updateIt(int $id, array $request);", "public function carrouselUpdateAction()\n {\n $id = $this->_getParam('id');\n if (!is_null($id)) {\n $request = new Llv_Services_Cms_Request_Carrousel();\n $request->id = $id;\n switch ($this->_getParam('make')) {\n case 'delete':\n Llv_Context_Cms::getInstance()->carrouselDeleteRow($request);\n break;\n case 'up':\n $request->moveUp = true;\n Llv_Context_Cms::getInstance()->carrouselUpdateRow($request);\n break;\n case 'down':\n $request->moveUp = false;\n Llv_Context_Cms::getInstance()->carrouselUpdateRow($request);\n break;\n case 'online':\n $request->show = true;\n Llv_Context_Cms::getInstance()->carrouselUpdateRow($request);\n break;\n case 'offline':\n $request->show = false;\n Llv_Context_Cms::getInstance()->carrouselUpdateRow($request);\n break;\n }\n $this->_redirect('index/carrousel-list');\n }\n }", "function buildIngredientRecipe($ingredientName, $recipeName, $quantity) {\n global $conn;\n // Determine ingredientID\n $sql = \"SELECT ingredientID FROM ingredient WHERE ingredientName='\" . $ingredientName . \"'\";\n $result = $conn->query($sql);\n $record = $result->fetch_assoc();\n $ingredientID = $record['ingredientID'];\n\n // Determine recipeID\n $sql = \"SELECT recipeID FROM recipe WHERE recipeName='\" . $recipeName . \"'\";\n $result = $conn->query($sql);\n $record = $result->fetch_assoc();\n $recipeID = $record['recipeID'];\n\n // Check to make sure ingredient isn't already in the recipe\n $sql = \"SELECT recipeID FROM ingredientRecipe WHERE recipeID = \" . $recipeID\n . \" AND ingredientID = \" . $ingredientID;\n if ($result = $conn->query($sql)) {\n // determine number of rows result set\n $rowCount = $result->num_rows;\n if($rowCount > 0) {\n echo \"Ingredient \" . $ingredientID\n . \" is already in recipe \"\n . $recipeID . \"<br />\";\n } else { // Not a duplicate\n $sql = \"INSERT INTO ingredientRecipe (recipeID, ingredientID, quantity)\n VALUES ('\" . $recipeID . \"', '\" . $ingredientID . \"', '\" . $quantity . \"')\";\n runQuery($sql, \"Insert ingredient \" . $ingredientID . \" into recipe \" . $recipeID, true);\n }\n }\n }", "function insert() {\n\t\tglobal $db_table_recipes, $DB_LINK, $g_rb_recipe_id_seq, $LangUI;\n\t\t// do the Insert\n\t\t$sql = \"INSERT INTO $db_table_recipes\n\t\t\t\t\t\t(recipe_name,\n\t\t\t\t\t\t recipe_ethnic,\n\t\t\t\t\t\t recipe_base,\n\t\t\t\t\t\t recipe_course,\n\t\t\t\t\t\t recipe_prep_time,\n\t\t\t\t\t\t recipe_difficulty,\n\t\t\t\t\t\t recipe_directions,\n\t\t\t\t\t\t recipe_comments,\n\t\t\t\t\t\t recipe_serving_size,\n\t\t\t\t\t\t recipe_source,\n\t\t\t\t\t\t recipe_source_desc,\n\t\t\t\t\t\t recipe_modified,\n\t\t\t\t\t\t recipe_system,\n\t\t\t\t\t\t recipe_private,\n\t\t\t\t\t\t recipe_user)\n\t\t\t\t\tVALUES\n\t\t\t\t\t\t('\".$DB_LINK->addq($this->name, get_magic_quotes_gpc()).\"',\n\t\t\t\t\t\t \".$DB_LINK->addq($this->ethnic, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t \".$DB_LINK->addq($this->base, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t \".$DB_LINK->addq($this->course, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t \".$DB_LINK->addq($this->prep_time, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t \".$DB_LINK->addq($this->difficulty, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t '\".$DB_LINK->addq($this->directions, get_magic_quotes_gpc()).\"',\n\t\t\t\t\t\t '\".$DB_LINK->addq($this->comments, get_magic_quotes_gpc()).\"',\n\t\t\t\t\t\t \".$DB_LINK->addq($this->serving_size, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t \".$DB_LINK->addq($this->source, get_magic_quotes_gpc()).\",\n\t\t\t\t\t\t '\".$DB_LINK->addq($this->source_desc, get_magic_quotes_gpc()).\"',\n\t\t\t\t\t\t $this->modified,\n\t\t\t\t\t\t '\".$DB_LINK->addq($this->unitSystem, get_magic_quotes_gpc()).\"',\n\t\t\t\t\t\t '\".$DB_LINK->addq($this->private, get_magic_quotes_gpc()).\"',\n\t\t\t\t\t\t '\".$DB_LINK->addq($this->user, get_magic_quotes_gpc()).\"')\";\n\t\t$rc = $DB_LINK->Execute($sql);\n\t\tDBUtils::checkResult($rc, $LangUI->_('Recipe Successfully created') . \": \". $this->name,\n\t\t\t$LangUI->_('There was an error inserting the recipe'), $sql);\n\t\t// retrieve incremented sequence value\n\t\t$this->id = DBUtils::getSequenceValue($g_rb_recipe_id_seq);\n\t\treturn $this->id;\n\t}", "function update_record($dbc, $id, $item_name, $description, $location_id, $owner, $finder, $status) {\n\t$query = 'UPDATE stuff set id = '.$id.', set item_name = '.$item_name.', set description = '.$description.', set location_id = '.$location_id.', set create_date= '.$create_date.' , set owner= '.$owner.', set finder = '.$finder.', set status = '.$status.')' ;\n show_query($query);\n\n $results = mysqli_query($dbc,$query) ;\n check_results($results) ;\n\n return $results ;\n}", "public function setImage($recipeId, $image) {\n\n $this->db->set(\"image\", $image)\n ->where(\"id\", $recipeId)\n ->update(\"recipes\");\n }", "public function update(Request $request, Ingredient $ingredient)\n {\n //\n }", "public function replace_recipe( $id, $wprm_id, $post_data ) {\n\t\tglobal $wpdb;\n\t\t$table = $wpdb->prefix . 'mv_creations';\n\n\t\t$mv_recipe = false;\n\t\tif ( $table === $wpdb->get_var( \"SHOW TABLES LIKE '$table'\" ) ) {\n\t\t\t$rows = $wpdb->get_results( 'SELECT * FROM ' . $table . ' WHERE id=' . intval( $id ) );\n\n\t\t\tif ( is_array( $rows ) && 1 === count( $rows ) ) {\n\t\t\t\t$mv_recipe = (array) $rows[0];\n\t\t\t}\n\t\t}\n\n\t\t// Make sure we found the corresponding recipe, die otherwise.\n\t\tif ( false === $mv_recipe ) {\n\t\t\twp_die( 'Could not find the MV table or recipe.' );\n\t\t}\n\n\t\t// Get all associated posts.\n\t\t$post_ids = json_decode( $mv_recipe['associated_posts'] );\n\t\tforeach ( $post_ids as $post_id ) {\n\t\t\t$post = get_post( $post_id );\n\t\t\t$content = $post->post_content;\n\n\t\t\t// Gutenberg.\n\t\t\t$gutenberg_matches = array();\n\t\t\tif ( 'diy' === $mv_recipe['type'] ) {\n\t\t\t\t$gutenberg_patern = '/<!--\\s+wp:(mv\\/diy)(\\s+(\\{.*?\\}))?\\s+(\\/)?-->.*?<!--\\s+\\/wp:mv\\/diy\\s+(\\/)?-->/mis';\n\t\t\t} else {\n\t\t\t\t$gutenberg_patern = '/<!--\\s+wp:(mv\\/recipe)(\\s+(\\{.*?\\}))?\\s+(\\/)?-->.*?<!--\\s+\\/wp:mv\\/recipe\\s+(\\/)?-->/mis';\n\t\t\t}\n\t\t\tpreg_match_all( $gutenberg_patern, $content, $matches );\n\n\t\t\tif ( isset( $matches[3] ) ) {\n\t\t\t\tforeach ( $matches[3] as $index => $block_attributes_json ) {\n\t\t\t\t\tif ( ! empty( $block_attributes_json ) ) {\n\t\t\t\t\t\t$attributes = json_decode( $block_attributes_json, true );\n\n\t\t\t\t\t\tif ( ! is_null( $attributes ) ) {\n\t\t\t\t\t\t\tif ( isset( $attributes['id'] ) && $id === $attributes['id'] ) {\n\t\t\t\t\t\t\t\t$content = str_ireplace( $matches[0][ $index ], '<!-- wp:wp-recipe-maker/recipe {\"id\":' . $wprm_id . ',\"updated\":' . time() . '} -->[wprm-recipe id=\"' . $wprm_id . '\"]<!-- /wp:wp-recipe-maker/recipe -->', $content );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Classic Editor.\n\t\t\t$classic_pattern = '/\\[mv_create\\s.*?key=\\\"?\\'?(\\d+)\\\"?\\'?.*?\\]/mi';\n\t\t\tpreg_match_all( $classic_pattern, $content, $classic_matches );\n\n\t\t\tif ( isset( $classic_matches[1] ) ) {\n\t\t\t\tforeach ( $classic_matches[1] as $index => $mv_id ) {\n\t\t\t\t\tif ( $id === $mv_id ) {\n\t\t\t\t\t\t$content = str_ireplace( $classic_matches[0][ $index ], '[wprm-recipe id=\"' . $wprm_id . '\"]', $content );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Update post with new content including our shortcodes.\n\t\t\tif ( $content !== $post->post_content ) {\n\t\t\t\t$update_content = array(\n\t\t\t\t\t'ID' => $post_id,\n\t\t\t\t\t'post_content' => $content,\n\t\t\t\t);\n\t\t\t\twp_update_post( $update_content );\n\t\t\t}\n\t\t}\n\n\t\t// Migrate ratings.\n\t\t$table = $wpdb->prefix . 'mv_reviews';\n\n\t\t$mv_ratings = false;\n\t\tif ( $table === $wpdb->get_var( \"SHOW TABLES LIKE '$table'\" ) ) {\n\t\t\t$rows = $wpdb->get_results( 'SELECT * FROM ' . $table . ' WHERE creation=' . intval( $id ) );\n\n\t\t\tif ( is_array( $rows ) ) {\n\t\t\t\t$mv_ratings = (array) $rows;\n\t\t\t}\n\t\t}\n\n\t\tif ( $mv_ratings ) {\n\t\t\tforeach ( $mv_ratings as $mv_rating ) {\n\t\t\t\t$mv_rating = (array) $mv_rating;\n\n \t\t\t\t$rating = array(\n\t\t\t\t\t'recipe_id' => $wprm_id,\n\t\t\t\t\t'user_id' => '',\n\t\t\t\t\t'ip' => 'mv-create-' . $mv_rating['id'],\n\t\t\t\t\t'rating' => ceil( floatval( $mv_rating['rating'] ) ),\n\t\t\t\t);\n\n\t\t\t\tWPRM_Rating_Database::add_or_update_rating( $rating );\n\t\t\t}\n\t\t}\n\t}", "public function update(R $request, $id)\n {\n //\n }", "public function update(){\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $fieldsList = \" SET \";\n foreach ($this->attributes as $column => $value) {\n $fieldsList.=$column.\"=\".'\\''.$value.'\\''.\", \";\n }\n $fieldsList = str_last_replace(\", \", \"\", $fieldsList);\n $sqlQuery = \"UPDATE \".$this->table.$fieldsList.\" WHERE \".$this->idName.\"=\".$this->attributes[$this->idName];\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n }\n }", "public function modIngredient($ingredient = null) {\n\n // Redirect user if it doesn't belong to the selected role\n if( ! $this->verify_min_level(6)) {\n\n // Notifies the user that he does not have permissions\n $this->session->set_flashdata(\"alert\", \"<strong>No tienes permisos para acceder a esta página</strong><br/><br/>\n Por motivos de seguridad hemos cerrado tu sesión.<br/>\n Para acceder de nuevo a la aplicación, vuelve a iniciar sesión\");\n\n return redirect( site_url( '/' ) );\n }\n\n\n // no user? show 404 error\n if($ingredient == null) {\n return show_404();\n }\n\n $ingredientData = $this->ingredient_model->getIngredient($ingredient);\n\n // user doesn't exist?\n if($ingredientData == null) {\n return show_404();\n }\n\n $this->template->setTitle('Modificar ' . $ingredientData->name);\n\n // Load validation library, validation config and validation rules\n $this->load->library(\"form_validation\");\n $this->config->load('form_validation/recipe/ingredient');\n $this->form_validation->set_rules(config_item('create_ingredient_rules'));\n\n if($this->form_validation->run()) {\n\n $this->load->library('slug');\n\n // Load user data\n $ingredient_data['id'] = $this->input->post('id');\n $ingredient_data['name'] = $this->input->post('name');\n $ingredient_data['slug'] = $this->slug->parseSlug($this->input->post('name'));\n\n $this->db->update('ingredients', $ingredient_data, array('id' => $ingredient_data['id']));\n\n if( $this->db->affected_rows() == 1 ) {\n\n // Send flash data\n $this->session->set_flashdata(\"notify\", \"Categoría <strong>\".$ingredient_data[\"name\"].\"</strong> modificada con éxito\");\n\n // Redirect to category list\n return redirect(site_url(\"/ingredients\"));\n }\n }\n\n // View data\n $viewData = [\n 'ingredient' => $ingredientData,\n 'hasRecipes' => $this->ingredient_model->ingredient_hasRecipe($ingredientData->id)\n ];\n\n $this->template->printView('recipes/ingredients/update', $viewData);\n }", "public function insert($recipe){\n $query = $this->db\n ->prepare('INSERT INTO recipes\n (name, directions, servings, source, notes, householdId)\n VALUES (?, ?, ?, ?, ?, ?)\n ');\n\n // @ operator to suppress bind_param asking for variables by reference\n // See: https://stackoverflow.com/questions/13794976/mysqli-prepared-statement-complains-that-only-variables-should-be-passed-by-ref\n @$query->bind_param(\"ssissi\",\n $recipe->getName(),\n $recipe->getDirections(),\n $recipe->getServings(),\n $recipe->getSource(),\n $recipe->getNotes(),\n //(new Session())->get('user')->getId(),\n (new Session())->get('user')->getCurrHousehold()->getId()\n\n );\n\n //$query->insert_id should return the id of the newly inserted row.\n $bool = $query->execute();\n\n if($bool) {\n $recipe->setId($query->insert_id);\n }\n else {\n $error = $query->error;\n echo \"\\n\" . __CLASS__ .\"::\" . __FUNCTION__ . \":\" . $error . \"\\n\";\n\n }\n\n return $bool;\n }", "function updateEvent($eventToModify,$userID){\n\n $date = $eventToModify['date'];\n $place = $eventToModify['lieu'];\n $event = $eventToModify['event'];\n $startTime = $eventToModify['startTime'];\n $endTime = $eventToModify['endTime'];\n $type = $eventToModify['type'];\n $recurrence = $eventToModify['recurrence'];\n $IDOfEvent = $eventToModify['upd'];\n $qty = $eventToModify['qty'];\n\n $strSeparator = '\\'';\n\n $i=0;\n if(isset($recurrence[$i])){\n $recurrence = $recurrence[$i];\n }\n else{\n $i++;\n }\n\n $updateEventQuery = 'UPDATE events SET `name` = :name, `place` = :place, `date` = :date, `start time` = :startTime, `end time` = :endTime, `type` = :type, `recurrence` = :recurrence, `FKusers` = :userID\n WHERE ID = '.$strSeparator.$IDOfEvent.$strSeparator.' AND FKusers = '.$strSeparator.$userID.$strSeparator;\n $updateEventData = array(\":name\" => $event, \":place\" => $place, \":date\" => $date, \":startTime\" => $startTime, \":endTime\" => $endTime, \":type\" => $type, \":recurrence\" => $recurrence, \":userID\" => $userID);\n\n require_once 'model/dbConnector.php';\n $result = executeQueryInsert($updateEventQuery, $updateEventData);\n\n $idEvent = $IDOfEvent;\n\n $selectAllEventsQuery=\"SELECT recurrence FROM events WHERE ID ='$idEvent'\";\n \trequire_once 'model/dbConnector.php';\n\n \t$oldRecurrence = executeQuerySelect($selectAllEventsQuery);\n\n\n if($oldRecurrence != $recurrence){\n\n $suppOldRecurrenceQuery='DELETE from `event-recurrence` WHERE FKevents = :id';\n $suppOldRecurrenceData= array(\":id\" => $idEvent);\n\n $result3 = executeQueryInsert($suppOldRecurrenceQuery, $suppOldRecurrenceData);\n\n if($recurrence == 1){\n //jours\n for($qty;$qty>=2;$qty--){\n\n $date = new DateTime(\"{$date}\");\n $date->add(new DateInterval('P1D'));\n $date -> format('Y-m-d');\n $date = $date->format('Y-m-d');\n\n $addEventQuery2 = 'INSERT INTO `event-recurrence` (`date`, `FKevents`) VALUES (:date, :FKevents)';\n $addEventData2 = array(\":date\" => $date, \":FKevents\" => $idEvent);\n\n $result2 = executeQueryInsert($addEventQuery2,$addEventData2);\n }\n }\n //mois\n if($recurrence == 2){\n for($qty;$qty>=2;$qty--){\n $date = new DateTime(\"{$date}\");\n $date->add(new DateInterval('P1M'));\n $date -> format('Y-m-d');\n $date = $date->format('Y-m-d');\n\n $addEventQuery2 = 'INSERT INTO `event-recurrence` (`date`, `FKevents`) VALUES (:date, :FKevents)';\n $addEventData2 = array(\":date\" => $date, \":FKevents\" => $idEvent);\n\n $result2 = executeQueryInsert($addEventQuery2,$addEventData2);\n }\n }\n //année\n if($recurrence == 3){\n for($qty;$qty>=2;$qty--){\n $date = new DateTime(\"{$date}\");\n $date->add(new DateInterval('P1Y'));\n $date -> format('Y-m-d');\n $date = $date->format('Y-m-d');\n\n $addEventQuery2 = 'INSERT INTO `event-recurrence` (`date`, `FKevents`) VALUES (:date, :FKevents)';\n $addEventData2 = array(\":date\" => $date, \":FKevents\" => $idEvent);\n\n $result2 = executeQueryInsert($addEventQuery2,$addEventData2);\n }\n }\n }\n\n return $result;\n}", "public function update(Request $request, ChefResponsibility $chefResponsibility)\n {\n //\n }", "function addRecipeToGrocery($recipe, $userid){\n\t $recipeid = $this->getRecipeID($recipe);\n\t\t {\n\t\t $list = @mysql_query(\"SELECT * FROM Ingredients WHERE Recipe = '$recipeid'\");\n\t\t while($row = @mysql_fetch_assoc($list)) \n\t\t { \n\t\t\t $this->addToGrocery($userid,$row['IngredientName'],$row['Quantity'], $row['Units']);\n\t\t }\t\n\t\t}\n\t}", "function update_tb_redacteur($redacteur_id,$params)\n {\n $this->db->where('redacteur_id',$redacteur_id);\n return $this->db->update('tb_redacteurs',$params);\n }", "public function addRecipes($recipe) {\n $this->recipes[] = $recipe;\n }", "public function update(KitchenRecipeUpdateRequest $request, $id)\n {\n $recipe = $this->kitchenRecipeRepository->getEdit($id);\n\n if (empty($recipe)) {\n return back()\n ->withErrors(['msg' => \"Record id = [ {$id} ] not found\"])\n ->withInput();\n }\n\n $data = $request->all();\n\n\n $result = $recipe->update($data);\n\n if($result){\n return redirect()\n ->route('kitchen.admin.recipes.edit', $recipe)\n ->with(['success' => 'Saved successfully']);\n } else {\n return back()\n ->withErrors(['msg' => 'Save error'])\n ->withInput();\n }\n }", "public function update_reservation_long($id, $ref, $idbusy, $client, $adults, $kids, $vehiculos, $interm, $nights, $HS_nights, $LS_nights, $price, $priceHS, $commision, $amount, $tax, $samount, $deposit, $total, $status,$pago_qty,$pagos_monto,$price_long,$qty_nights_extra){\n\n $query=\"UPDATE `\".DB_PREFIX.\"reserves` SET\n\t\t\t\t\t\t`ref`='\".$this->link->myesc($ref).\"',\n\t\t\t\t\t\t`id_occupancy`='\".$this->link->myesc($idbusy).\"',\n\t\t\t\t\t\t`id_client`='\".$this->link->myesc($client).\"',\n\t\t\t\t\t\t`adults`='\".$this->link->myesc($adults).\"',\n\t\t\t\t\t\t`children`='\".$this->link->myesc($kids).\"',\n\t\t\t\t\t\t`vehicles`='\".$this->link->myesc($vehiculos).\"',\n\t\t\t\t\t\t`id_interm`='\".$this->link->myesc($interm).\"',\n\t\t\t\t\t\t`qty_nights`='\".$this->link->myesc($nights).\"',\n\t\t\t\t\t\t`nightsHS`='\".$this->link->myesc($HS_nights).\"',\n\t\t\t\t\t\t`nightsLS`='\".$this->link->myesc($LS_nights).\"',\n\t\t\t\t\t\t`price_per_night`='\".$this->link->myesc($price).\"',\n\t\t\t\t\t\t`priceHS`='\".$this->link->myesc($priceHS).\"',\n\t\t\t\t\t\t`commision`='\".$this->link->myesc($commision).\"',\n\t\t\t\t\t\t`amount`='\".$this->link->myesc($amount).\"',\n\t\t\t\t\t\t`tax`='\".$this->link->myesc($tax).\"',\n\t\t\t\t\t\t`services_amount`='\".$this->link->myesc($samount).\"',\n\t\t\t\t\t\t`deposit`='\".$this->link->myesc($deposit).\"',\n\t\t\t\t\t\t`total`='\".$this->link->myesc($total).\"',\n\t\t\t\t\t\t`status`='\".$this->link->myesc($status).\"',\n\t\t\t\t\t\t`pagos_qty`='\".$this->link->myesc($pago_qty).\"',\n\t\t\t\t\t\t`pagos_monto`='\".$this->link->myesc($pagos_monto).\"',\n\t\t\t\t\t\t`price_long`='\".$this->link->myesc($price_long).\"',\n\t\t\t\t\t\t`extra_nights`='\".$this->link->myesc($qty_nights_extra).\"'\n\t\t\t\t WHERE `id`='\".$this->link->myesc($id).\"' LIMIT 1\";\n\n \t\treturn $this->link->execute($query);\n\t\t}", "public function update(Request $request, $id)\n {\n $meal = Meal::find($id);\n //validate the data\n $this->validate($request, array(\n 'ingredients'=>'required|min:5',\n 'method'=>'required|min:5'\n ));\n $recipe = new Recipe;\n $recipe->meal_id = $request->meal_id;\n $recipe->ingredients = $request->ingredients;\n $recipe->method = $request->method;\n $recipe->save();\n Session::flash('success','The meal has successfully been added');\n return redirect('/meals');\n }", "function updateEntry($request, $rowId, $newRowId) {\n\n\t\t$this->deleteEntry($request, $rowId);\n\t\t$this->insertEntry($request, $newRowId);\n\t}", "public function update(Request $r, $id)\n {\n $dusuns = new Dusun;\n $dusuns->dusun = $r['dusun'];\n $dusuns->rw = $r['rw'];\n $dusuns->rt = $r['rt'];\n\n $dusuns->save();\n return redirect()->route('admin::dusun::index');\n }", "abstract protected function updateSpecificProperties($row);", "public function update(Request $r, $id)\n {\n /*$this->validate($request,['type'=>'required','name'=>'required','description'=>'required','background'=>'required','snake_color'=>'required']);\n\n ThematicSG::find($id)->update($request->all());\n return redirect()->route('thematic.index')->with('success','Registro actualizado satisfactoriamente');*/\n $thematic = ThematicSG::find($id);\n \n if($r->hasFile('background')){\n $file = $r->file('background');\n $name_bg = $file->getClientOriginalName();\n $file->move(public_path().'/images/imagesSG', $name_bg);\n }\n \n \n $thematic->type = $r->type;\n $thematic->name = $r->name;\n $thematic->description = $r->description;\n if ($r->hasFile('background')) {\n $thematic->background = $name_bg;\n }\n $thematic->snake_color = $r->snake_color;\n $thematic->save();\n return redirect()->route('ThematicSG.index');\n }", "public function update(Request $request, $id)\n {\n\n try {\n $trucks = Truck::where('id', $id)->first();\n $trucks->weight = Input::get('weight');\n $trucks->length = Input::get('length');\n $trucks->height = Input::get('height');\n $trucks->type = Input::get('lorry_type');\n $trucks->plate = Input::get('plate');\n $trucks->location = Input::get('location');\n $trucks->location_lat = Input::get('location_lat');\n $trucks->location_lng = Input::get('location_lng');\n $trucks->destination = Input::get('destination');\n $trucks->destination_lat = Input::get('destination_lat');\n $trucks->destination_lng = Input::get('destination_lng');\n $trucks->description = Input::get('description');\n $trucks->valid_until = Input::get('valid_until');\n $trucks->save();\n\n return redirect()->route('trucks.index')->with('success', 'The truck has been modified successfully!');\n } catch (Exception $ex) {\n return redirect()->back()->with('error', $ex->getMessage());\n }\n\n// $table->integer('user_id')->unsigned();\n// $table->integer('status')->unsigned();\n// $table->string('weight', 50);\n// $table->string('length', 50);\n// $table->string('height', 50);\n// $table->string('type', 50);\n// $table->string('plate', 15);\n// $table->string('location', 255);\n// $table->string('description', 255);\n\n }", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set Origen='$this->Origen',Fechap='$this->Fechap',Horap='$this->Horap',Cod_Referencia='$this->Referencia',Nombre_Referencia='$this->Nombre',Ref_Tela='$this->Reftela',Pinta='$this->Pinta',Color='$this->Color',Proceso='$this->Proceso',Ubicacion='$this->Ubicacion',SKU='$this->Sku',Maquina='$this->Maquina',Longitud_Inicial='$this->Longitudini',Longitud_Final='$this->Longitudfin',Peso='$this->Peso',Grados_PFoAT800K='$this->Plancha',Grados_Plato='$this->Plato',Grados_Pie='$this->Pie',Grados_Aire_S='$this->Airesup',Grados_Aire_I='$this->Aireinf',Caudal_Sup='$this->Caudalsup',Caudal_Inf='$this->Caudalinf',Presion='$this->Presion',Velocidad='$this->Velocidad',Velocidad_Sup='$this->Velocidad_Sup',Velocidad_Inf='$this->Velocidad_Inf',Intensidad='$this->Intensidad',Tiempo_Exp='$this->Tiempo',Resultado='$this->Resultado',Dinamometro='$this->Dinamometro',Observaciones1='$this->Observaciones' where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update(Request $request, Recipe $recipe)\n {\n if ($this->recipeService->update($request, $recipe)) {\n return response()->json(['status' => 'ok']);\n } else{\n return response()->json(['status' => 'err']);\n }\n }", "public function setRecipe(Model_Recipe $recipe) {\n\t\t$this->recipe = $recipe;\n\t\t$bean = $this->unbox();\n\t\t$bean->recipe = $recipe->getPath();\n\t\t$bean->version = $recipe->getVersion();\n\t}", "public function update(?Member $user, Recipe $recipe)\n {\n if (Auth::guard('admin')->check())\n return false;\n if (!Auth::check())\n return false;\n return $user->id == $recipe->author->id;\n }", "public function updateAdjoint($donnees){\n $req = \"update eleve set role= 3 where matUser=:pseudo\";\n $params = array(\n \"pseudo\"=>explode(\"|\", $donnees[\"adjointChef\"])[0]\n );\n return $this->update($req,$params);\n }", "function update_food_id1($id,$data){\n$this->db->where('SlNo', $SlNo);\n$this->db->update('food_items', $data);\n}", "public function setRecipesNum(int $recipes_num):void\n {\n $this->recipes_num = $recipes_num;\n }", "public function update(Request $request, Ruta $ruta)\n {\n //\n }", "public function update(Request $request, $id)\n {\n $validator = $this->validation($request);\n if ($validator->fails())\n return back()->withInput()->withErrors($validator->errors());\n\n $recepe = Receips::find($id);\n $recepe->name = $request->name;\n $recepe->desciption = $request->body;\n $recepe->user_id = Auth::id();\n if ($request->hasFile('img')) {\n $photo = $request->file('img');\n $photo_name = md5(rand(1,1000).time()).'.'.$photo->getClientOriginalExtension();\n $photo->move(public_path('/img/programme/'), $photo_name);\n $photo_name = '/img/programme/'.$photo_name;\n $recepe->image = $photo_name;\n }\n $recepe->save();\n \\App\\RecepiesIntegrate::where(\"recep_id\",$recepe->id)->delete();\n for($i=1;$i<=$request->character_num;$i++)\n {\n $s = \"food_\".$i;\n $cal = \"integrate_\".$i;\n $car = \"serving_num_\".$i;\n if(isset($request->$s) && isset($request->$cal) && isset($request->$car))\n {\n $sp = new \\App\\RecepiesIntegrate();\n $sp->programme_id = $request->$s;\n $sp->integrate_programme_id = $request->$cal;\n $sp->recep_id = $recepe->id;\n $sp->serving =$request->$car;\n $sp->save();\n }\n }\n return redirect('dashboard/recepies')->with(\"message\",\"Sucessfully Updated\");\n }", "function IndividualUpdates ( $dblink, $table_name, $row_count )\r\n\t {\r\n\t\tfor ( $i = 1 ; $i <= $row_count ; $i ++ )\r\n\t\t {\r\n\t\t\t$query\t\t= \"\r\n\t\t\t\t\t\tUPDATE $table_name\r\n\t\t\t\t\t\tSET\r\n\t\t\t\t\t\t\trandvalue\t= randvalue + 1,\r\n\t\t\t\t\t\t\tstrvalue1\t= 'A$i',\r\n\t\t\t\t\t\t\tstrvalue2\t= 'B$i',\r\n\t\t\t\t\t\t\tstrvalue3\t= 'C$i'\r\n\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\tid = $i \r\n\t\t\t\t\t \" ;\r\n\t\t\tmysqli_query ( $dblink, $query ) ;\r\n\t\t }\r\n\t }", "function update_correct_answer($id,$params)\n {\n $this->db->where('id',$id);\n return $this->db->update('correct_answers',$params);\n }", "public function update(RecipeRequest $request, Recipe $recipe)\n {\n $user = $request->user();\n $data = $request->all();\n\n if ($request->hasFile('icon')) {\n if (Storage::disk('public')->exists($recipe->image)) {\n Storage::disk('public')->delete($recipe->image);\n }\n\n $ext = $request->file('image')->getClientOriginalExtension();\n $filename = Str::random(10) . \".\" . $ext;\n $request->file('image')->storeAs('public/images/recipes', $filename);\n $data['image'] = \"images/recipes/\" . $filename;\n }\n\n $user->recipes()->find($recipe->id)->update($data);\n $recipe->refresh();\n\n return new RecipeCategoryResource($recipe);\n }" ]
[ "0.69037193", "0.67274123", "0.6386638", "0.61902964", "0.6058181", "0.57459766", "0.57151175", "0.56524765", "0.5652353", "0.5621309", "0.5475809", "0.54728484", "0.5432611", "0.54289174", "0.54289174", "0.5392331", "0.53768164", "0.5358123", "0.5350924", "0.5293205", "0.5274517", "0.5266395", "0.52395517", "0.5220455", "0.51822305", "0.51544887", "0.5145137", "0.5143037", "0.51192075", "0.50836706", "0.5073813", "0.5068882", "0.50576746", "0.5053013", "0.50464314", "0.5042789", "0.5029997", "0.50293237", "0.5022292", "0.5010039", "0.4999893", "0.4980682", "0.49726668", "0.49712792", "0.49622533", "0.49534452", "0.49505654", "0.4950216", "0.49355826", "0.49345857", "0.49190968", "0.48915905", "0.48790723", "0.48602608", "0.48571527", "0.48553392", "0.4854316", "0.485313", "0.4850976", "0.48241425", "0.48141173", "0.4809527", "0.4804636", "0.4800026", "0.47929695", "0.4790436", "0.47856405", "0.47738838", "0.4770576", "0.47695082", "0.4767443", "0.47635055", "0.47490817", "0.47440425", "0.47395575", "0.47343278", "0.4729736", "0.47212183", "0.4707179", "0.4703435", "0.4698004", "0.46962884", "0.4696128", "0.46946472", "0.46884704", "0.4679768", "0.4679444", "0.46755636", "0.46738553", "0.4668011", "0.466539", "0.46574548", "0.46495038", "0.464642", "0.46449077", "0.46389288", "0.46385652", "0.46383706", "0.4629577", "0.46210292" ]
0.73330796
0
HELPER FUNCTION Convert ingredients array to sql value template. Each element follows format: '(rid, x, :valuex)' where x increments from 1 to number of ingredients To use in sql query: implode(", ", convertIngredientsFormat($rid, $data['ingredients']))
private function convertIngredientsFormat($rid, $ingredients) { $result = []; for($i = 1; $i < count($ingredients) + 1; $i++) { $result[$i - 1] = '(' . $rid . ', ' . $i . ', :value' . $i . ')'; } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function prepareValuesRow(): string\n {\n $values = [];\n foreach ($this->storage as $key => $value) {\n $values[] = \"('{$key}', '{$value}')\";\n }\n\n return implode(', ', $values);\n }", "function convert_array($in_array, $start_pos)\n{\n\t$string1 = \"\";\n\t$string2 = \"\";\n\t$total = count($in_array);\n\twhile ($start_pos < $total)\n\t{\n\t\t$string1 = $string1 . \"`\" . $in_array[$start_pos] . \"`\";\n\t\t$start_pos++;\n\t\t$string2 = $string2 . \"\\\"\" . $in_array[$start_pos] . \"\\\"\";\n\t\t$start_pos++;\n\t\tif ($start_pos < $total)\n\t\t{\n\t\t\t$string1 = $string1 . \", \";\n\t\t\t$string2 = $string2 . \", \";\n\t\t}\n\t}\n\tif ($start_pos == 2)\n\t{\t$return_string = \"(clanid, \" . $string1 . \") values (0, \" . $string2 . \")\";\t}\n\telse\n\t{\t$return_string = \"(\" . $string1 . \") values (\" . $string2 . \")\";\t}\n\treturn $return_string;\n}", "function sqlingData(array $data)\n{\n\n $keys = \"(\" . implode(\",\", array_keys($data)) . \")\";\n $values = \"('\" . implode(\"','\", array_values($data)) . \"')\";\n\n return $keys . 'Values' . $values;\n}", "public function toInterpolatedSql() {\n $query = $this->toSql();\n $params = $this->values;\n\n $keys = array();\n $values = $params;\n\n # build a regular expression for each parameter\n foreach ($params as $key => $value) {\n if (is_string($key)) {\n $keys[] = '/:'.$key.'/';\n } else {\n $keys[] = '/[?]/';\n }\n\n if (is_string($value))\n $values[$key] = \"'\" . self::quoteValue($value) . \"'\";\n\n if (is_array($value))\n $values[$key] = \"'\" . implode(\"','\", self::quoteValue($value)) . \"'\";\n\n if (is_null($value))\n $values[$key] = 'NULL';\n }\n\n $query = preg_replace($keys, $values, $query, 1, $count);\n\n return $query;\n }", "public function createRecipeIngredientsTable()\r\n\t{\r\n\t\t$query = 'CREATE TABLE `recipeIngredients` (\r\n\t\t\t`articleId` int(8) unsigned NOT NULL,\r\n\t\t\t`NDB_No` int(5) unsigned zerofill NOT NULL,\r\n\t\t\t`amount` double unsigned default NULL,\r\n\t\t\t`weightId` int(3) unsigned NOT NULL,\r\n\t\t\tPRIMARY KEY (`articleId`,`NDB_No`),\r\n\t\t\tKEY `recipe` (`articleId`)\r\n\t\t) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT=\"Recipe ingredient (amount) mapping\"';\r\n\t\t$this->_db->setQuery($query);\r\n\t\treturn $this->_db->query();\r\n\t}", "public function getIngredients(): array{\r\n $ingredients = array();\r\n $con = $this->db->getConnection();\r\n foreach(mysqli_query($con, 'SELECT * FROM ingredients')as $key){ $ingredients[$key['idingredients']] = $key['ingredient']; }\r\n return $ingredients;\r\n $this->con->closeConnection();\r\n }", "function getRecipeIngredients($recipe){\n\t $recipeid = $this->getRecipeID($recipe);\n\t $array = array();\n\t\t$i = 0;\n\t $list = @mysql_query(\"SELECT * FROM Ingredients WHERE Recipe = '$recipeid'\");\n\t\t while($row = @mysql_fetch_assoc($list)) \n\t\t { \n\t\t $name=$row['IngredientName'];\n\t\t $qty = $row['Quantity'];\n\t\t $unit = $row['Units'];\n\t\t $array2 = array($qty,$unit,$name);\n\t\t\t$array[$i] = $array2;\n\t\t\t$i = $i+1;\n\t\t\t\n\t\t }\t\n\t\treturn $array;\n\t}", "final public function generateFormattedSQL()\n {\n $parts = $this->generateOrderedSQLParts();\n return array_reduce($parts, function ($memo, $part) {\n $type = current(array_keys($part));\n $value = current($part);\n $sep = $this->getSeparatorForPartType($type);\n if (!$memo) {\n return $value;\n }\n return \"{$memo}{$sep}{$value}\";\n }, null);\n }", "public function toInClausePlaceHolderString(array &$values, $prefix = null)\n {\n if (is_null($prefix)) {\n $prefix = 'parameter';\n }\n\n $resultArray = [];\n foreach (array_values($values) as $index => $value) {\n $name = sprintf(\n ':%s%s',\n $prefix,\n $index\n );\n $resultArray[$name] = $value;\n }\n $values = $resultArray; // overwrite referenced array\n\n return sprintf(\n '(%s)',\n implode(', ', array_keys($resultArray))\n );\n }", "public static function import_nutrition( $ingredients ) {\n\t\t$wpurp_nutrition = get_option( 'wpurp_nutritional_information', array() );\n\n\t\tforeach ( $ingredients as $ingredient_id ) {\n\t\t\t$ingredient = get_term( $ingredient_id, 'ingredient' );\n\n\t\t\t$nutrition = isset( $wpurp_nutrition[ $ingredient_id ] ) ? $wpurp_nutrition[ $ingredient_id ] : false;\n\n\t\t\tif ( $nutrition ) {\n\t\t\t\t$wprm_nutrition = array(\n\t\t\t\t\t'amount' => isset( $nutrition['_meta']['serving_quantity'] ) ? sanitize_text_field( $nutrition['_meta']['serving_quantity'] ) : '',\n\t\t\t\t\t'unit' => isset( $nutrition['_meta']['serving_unit'] ) ? sanitize_text_field( $nutrition['_meta']['serving_unit'] ) : '',\n\t\t\t\t\t'nutrients' => array(),\n\t\t\t\t);\n\n\t\t\t\t$nutrition_mapping = array(\n\t\t\t\t\t'calories' => 'calories',\n\t\t\t\t\t'carbohydrate' => 'carbohydrates',\n\t\t\t\t\t'protein' => 'protein',\n\t\t\t\t\t'fat' => 'fat',\n\t\t\t\t\t'saturated_fat' => 'saturated_fat',\n\t\t\t\t\t'polyunsaturated_fat' => 'polyunsaturated_fat',\n\t\t\t\t\t'monounsaturated_fat' => 'monounsaturated_fat',\n\t\t\t\t\t'trans_fat' => 'trans_fat',\n\t\t\t\t\t'cholesterol' => 'cholesterol',\n\t\t\t\t\t'sodium' => 'sodium',\n\t\t\t\t\t'potassium' => 'potassium',\n\t\t\t\t\t'fiber' => 'fiber',\n\t\t\t\t\t'sugar' => 'sugar',\n\t\t\t\t\t'vitamin_a' => 'vitamin_a',\n\t\t\t\t\t'vitamin_c' => 'vitamin_c',\n\t\t\t\t\t'calcium' => 'calcium',\n\t\t\t\t\t'iron' => 'iron',\n\t\t\t\t);\n\t\t\n\t\t\t\t$migrate_values = array(\n\t\t\t\t\t'vitamin_a' => 5000,\n\t\t\t\t\t'vitamin_c' => 82.5,\n\t\t\t\t\t'calcium' => 1000,\n\t\t\t\t\t'iron' => 18,\n\t\t\t\t);\n\t\t\n\t\t\t\tforeach ( $nutrition_mapping as $wpurp_field => $wprm_field ) {\n\t\t\t\t\t$wprm_nutrition['nutrients'][ $wprm_field ] = isset( $nutrition[ $wpurp_field ] ) ? $nutrition[ $wpurp_field ] : '';\n\t\t\n\t\t\t\t\tif ( array_key_exists( $wprm_field, $migrate_values ) && $recipe['nutrition'][ $wprm_field ] ) {\n\t\t\t\t\t\t// Daily needs * currently saved as percentage, round to 1 decimal.\n\t\t\t\t\t\t$wprm_nutrition['nutrients'][ $wprm_field ] = round( $migrate_values[ $nutrient ] * ( $recipe['nutrition'][ $wprm_field ] / 100 ), 1 );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$term_id = self::get_or_create_ingredient( $ingredient->name );\n\t\t\t\tupdate_term_meta( $term_id, 'wprpn_nutrition', $wprm_nutrition );\n\t\t\t}\n\t\t}\n\t}", "function prepSelected($data){\n\t\n\t$current = 0;\n\t$count = count($data);\n\t\n\t$placeholders = ''; $selected = array(); $i = 0;\n\t$keys = array_keys($data); \n\t\n\tforeach($keys as $item){\n\t\tprint_r($data);\n\t\t\n\t\tswitch($item){\n\t\t\tcase $data[$i] == $keys[$i] : array_push($selected, $item);\n\t\t\tbreak;\n\t\t}\n\t\t$i++;\n\t}\n\tprint_r($selected);\n\t\t\n\t//While there are selected items\n\twhile($current < $count){\n\t\t//create the keys\t\n\t\tif($count == 1) { \n\t\t\t$keys .= $selected[$current];\n\t\t} else {\n\t\t\t$keys .= $selected[$current].',';\n\t\t} \t\n\t\t//create the placeholders\t\n\t\tif($count == 1) { \n\t\t\t$placeholders .= '?';\n\t\t} else {\n\t\t\t$placeholders .= '?,';\n\t\t} \t\n\t\t$current++; \n\t}\n\tif($count > 1){\n\t\t$keys = explode(',', $keys);\n\t\t$trash = array_pop($keys);\n\t\t$keys = implode(',', $keys);\n\t\t\t\n\t\t$placeholders = explode(',', $placeholders);\n\t\t$trash = array_pop($placeholders);\n\t\t$placeholders = implode(',', $placeholders);\n\t\t\t\n\t}\n\t\n\n\t\n\treturn $sql_vals = array($keys, $placeholders);\n}", "public function getIngredientsById($r_id)\r\n {\r\n require 'database.php';\r\n $sql = \"SELECT i.ingredient, i.amount, m.measurements FROM `ingredients` AS i LEFT JOIN measurement AS m ON m.id = i.measurement WHERE i.recipe_id = $r_id\";\r\n $output = $DB_con->query($sql);\r\n foreach ($output as $outputs) {\r\n echo \"<p>\" . $outputs['ingredient'] . \" \" . $outputs['amount'] . \" \". $outputs['measurements'] . \"</p>\";\r\n \r\n \r\n }\r\n }", "public function values($data, $format)\n {\n $result = '';\n $replace = (strpos($format, '%value%') !== false) || (strpos($format, '%column%') !== false); \n if (is_array($data)) {\n foreach ($data as $key => $value) {\n $value = is_null($value) ? 'NULL' : (is_int($value) ? $value : '\"' . $this->escapeSQL($value) . '\"');\n $key = $this->escapeDbIdentifier($key);\n if ($format == 'fields') {\n $result .= \", $key\";\n } else{\n if ($format == 'pairs') {\n $result .= \", $key = $value\";\n } elseif ($replace) {\n $result .= \", \" . strtr($format, ['%value%' => $value, '%column%' => $key]);\n } else {\n $result .= \",\\t$value\";\n }\n }\n }\n }\n return substr($result, 2 /* length of the initial \", \" */);\n }", "protected function buildValuesForInsert()\n {\n return ' ('\n . $this->indentCsv(array_keys($this->col_values))\n . PHP_EOL . ') VALUES ('\n . $this->indentCsv(array_values($this->col_values))\n . PHP_EOL . ')';\n }", "public function formatIngredients($ingr)\n {\n // Clean input of \\r's and then create array of ingredients\n $ingr = str_replace(\"\\n\\r\", \"\\n\", $ingr);\n $ingrList = explode(\"\\n\", $ingr);\n\n $ingrStr = '<li><label><input class=\"step-ingredient-check\" type=\"checkbox\"> ';\n $ingrStr .= implode(\"</label></li>\\n<li><label><input class=\\\"step-ingredient-check\\\" type=\\\"checkbox\\\"> \", $ingrList);\n $ingrStr .= \"</label></li>\\n\";\n\n return $ingrStr;\n }", "function str_values(){\n //\n //map the std objects inthe array to return an array of strings of this \n //format INSERT INTO Customers (CustomerName, ContactName, Address, City, PostalCode, Country)\n //VALUES ('Cardinal', 'Tom B. Erichsen', 'Skagen 21', 'Stavanger', '4006', 'Norway');\n\n $col_str= array_map(function($obj){\n //\n //Return the full description of the columns\n return \"`$obj->name`\"; \n }, $this->values);\n //\n //\n $values_str= array_map(function($obj){\n //\n //Trim the spaces\n $tvalue = trim($obj->value);\n //\n //Replace '' with null\n $value = $tvalue=='' ? 'null': \"'$tvalue'\";\n //\n return $value;\n \n }, $this->values);\n //\n //retun the imploded version of the array with a , separator\n $values= implode(\",\",$values_str);\n $cols= implode(\",\",$col_str);\n return \"($cols) VALUES ($values)\";\n }", "public function fillIngredients()\n {\n $ingredients_data = $this->_db()->select('select id_ingredient, base_quantity from product_ingredients where id_product=?d', $this->id);\n foreach ($ingredients_data as $ing)\n {\n $this->ingredients[$ing['id_ingredient']] = new Model_Product($ing['id_ingredient']);\n $this->ingredients[$ing['id_ingredient']]->base_quantity = $ing['base_quantity'];\n $this->ingredients[$ing['id_ingredient']]->fillIngredients();\n }\n }", "function arrayIntoString_sql(array $arr)\n {\n $str = \"\";\n foreach ($arr as $k => $v) {\n $str .= (count($arr) - 1 != $k)\n ? \"'\". $v . \"', \"\n : \"'\". $v . \"'\";\n }\n return $str;\n }", "private function transform($value) {\n $CI = & get_instance();\n // caso seja um array\n if (is_array($value)) {\n // percorre os valores\n foreach ($value as $x) {\n // se for um inteiro\n if (is_integer($x)) {\n $foo[] = $x;\n } else if (is_string($x)) {\n // se for string, adiciona aspas\n $foo[] = $CI->db->escape($x);\n }\n }\n // converte o array em string separada por \",\"\n $result = '(' . implode(',', $foo) . ')';\n }\n // caso seja uma string\n else if (is_string($value)) {\n // adiciona aspas\n $result = $CI->db->escape($value);\n }\n // caso seja valor nullo\n else if (is_null($value)) {\n // armazena NULL\n $result = 'NULL';\n }\n\n // caso seja booleano\n else if (is_bool($value)) {\n // armazena TRUE ou FALSE\n $result = $value ? 'TRUE' : 'FALSE';\n } else {\n $result = $CI->db->escape($value);\n }\n // retorna o valor\n return $result;\n }", "function prepareVariableString($value) {\n\t\t if (!is_array($value)) {\n\t\t return '\"'.addslashes($value).'\"';\n\t\t } else {\n\t\t $str = 'array('.chr(10);\n\t\t foreach ($value as $key => $item) {\n\t\t $str .= '\"'. addslashes($key).'\" => '.'\"'.addslashes($item).'\",'.chr(10);\n\t\t } \n\t\t $str .= \")\";\n\t\t } \n\t\t return $str;\n\t\t}", "private function formatArrayValues(array $data): string\n {\n return implode(\n ', ',\n array_map(\n function ($value) {\n return '\"'.$value.'\"';\n },\n $data\n )\n );\n }", "private function buildIds(){\n\n\t\t$string = 'data-id=\"'.$this->fullId.'\" ';\n\t\t$string .= 'data-column_id=\"'.$this->id.'\" ';\n\t\t$string .= 'data-section_id=\"'.$this->section_id.'\" ';\n\t\t$string .= 'data-post_id=\"'.$this->post_id.'\" ';\n\n\t\treturn $string;\n\t}", "protected function buildValues(): string\n {\n $sql = '';\n\n // Only add values when something is on the stack and there isn't a\n // SELECT statement waiting to go in there instead.\n if ( $this->fieldValueSet->isEmpty() )\n {\n return $sql;\n }\n\n $markers = $this->fieldValueSet->getValueMarkers();\n\n if ( count($markers) == 0 )\n {\n return $sql;\n }\n\n $sql .= 'VALUES' . PHP_EOL;\n $sql .= $this->indent() . '(';\n $sql .= implode(', ', $markers);\n $sql .= ')' . PHP_EOL;\n\n return $sql;\n }", "function toSQL($mixed,$addslashes = false,$quotes = true){\n\tif (is_null($mixed)){\n\t\treturn 'NULL';\n\t}\n\tif (!is_array($mixed)){\n\t\treturn tosql_string($mixed,$addslashes,$quotes);\n\t}\n\t$string = '';\n\tforeach($mixed as $value){\n\t\tif ($string != ''){\n\t\t\t$string .= ',';\n\t\t}\n\t\t$string .= tosql_string($value,$addslashes,$quotes);\n\t}\n\treturn $string;\n}", "public function AgregarIngredientes()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"codproducto\"]) or empty($_POST[\"codingrediente\"]) or empty($_POST[\"cantidad\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\n\t$ingrediente = $_POST['codingrediente'];\n\t$repeated = array_filter(array_count_values($ingrediente), function($count) {\n\t\treturn $count > 1;\n\t});\n\tforeach ($repeated as $key => $value) {\n\t\techo \"2\";\n\t\texit;\n\t}\n\n############## AQUI VALIDO SI LOS NUEVOS INGREDIENTES YA EXISTEN EN LA BASE DE DATOS ############\nfor($i=0;$i<count($_POST['codingrediente']);$i++){ //recorro el array\n\tif (!empty($_POST['codingrediente'][$i])) {\n\n\t\t$sql = \" select * from productosvsingredientes where codproducto = ? and codingrediente = ?\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->execute( array($_POST[\"codproducto\"], $_POST[\"codingrediente\"][$i]) );\n\t\t$num = $stmt->rowCount();\n\t\tif($num > 0)\n\t\t{\n\t\t\techo \"3\";\n\t\t\texit;\n\t\t}\n\t}\n}\n\n###################### PROCESO DE REGISTRO DE INSCREDIENTES A PRODUCTOS ###########################\nfor($i=0;$i<count($_POST['codingrediente']);$i++){ //recorro el array\n\tif (!empty($_POST['codingrediente'][$i])) {\n\n\t\t$query = \" insert into productosvsingredientes values (null, ?, ?, ?); \";\n\t\t$stmt = $this->dbh->prepare($query);\n\t\t$stmt->bindParam(1, $codproducto);\n\t\t$stmt->bindParam(2, $codingrediente);\n\t\t$stmt->bindParam(3, $cantidad);\n\n\t\t$codproducto = strip_tags($_POST[\"codproducto\"]);\n\t\t$codingrediente = strip_tags($_POST['codingrediente'][$i]);\n\t\t$cantidad = strip_tags($_POST['cantidad'][$i]);\n\t\t$stmt->execute();\n\t}\n}\n##################### PROCESO DE REGISTRO DE INSCREDIENTES A PRODUCTOS ####################\n\necho \"<div class='alert alert-success'>\";\necho \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\necho \"<span class='fa fa-check-square-o'></span> LOS INGREDIENTES FUERON AGREGADOS AL PRODUCTO EXITOSAMENTE\";\necho \"</div>\";\t\t\nexit;\n}", "private function transforme($value){\n if(is_array($value))\n {\n foreach ($value as $x)\n {\n if(is_integer($x))\n {\n $foo[] = $x;\n }\n else if(is_string($x))\n {\n $foo[]=\"'$x'\";\n }\n }\n $result = '('.implode(',',$foo).')';\n }\n //caso seja uma string\n else if(is_string($value))\n {\n $result = \"'$value'\";\n }\n // caso seja uma valor nulo\n else if(is_null($value))\n {\n $result = 'NULL';\n }\n //caso seja boleano\n else if(is_bool($value))\n {\n $result = $value ? 'TRUE' : 'FALSE';\n }\n else\n {\n $result = $value;\n }\n\n return $result;\n }", "function values($data) {\n\n $VALUES = array();\n\n foreach ($data as $key => $value) {\n $value = $data[$key];\n $VALUES[] = \"'\" . str_replace(\"'\", \"\\'\", $value) . \"'\";\n }\n\n return implode(', ', $VALUES);\n}", "function db_quote_many($array) {\n $to_return = array();\n foreach($array as $value) {\n $to_return[] = db_quote($value);\n }\n return $to_return;\n}", "function addDaysToQuery($array, $db) {\n\t\t$query = \"\";\n\t\tforeach($array as $value) {\n\t\t\t$value = $db->quote($value);\n\t\t\t$query .= \", $value\";\n\t\t}\n\t\treturn $query;\n\t}", "public function RegistrarIngredientes()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"nomingrediente\"]) or empty($_POST[\"cantingrediente\"]) or empty($_POST[\"unidadingrediente\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\t$sql = \" select nomingrediente from ingredientes where nomingrediente = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array($_POST[\"nomingrediente\"]) );\n\t$num = $stmt->rowCount();\n\tif($num > 0)\n\t{\n\t\techo \"2\";\n\t\texit;\n\t}\n\telse\n\t{\n\t\n\t$sql = \" select codingrediente from ingredientes order by codingrediente desc limit 1\";\n\tforeach ($this->dbh->query($sql) as $row){\n\n\t$nro=$row[\"codingrediente\"];\n\n\t}\n\tif(empty($nro))\n\t{\n\t\techo $codingrediente = '00001';\n\n\t} else\n\t{\n\t\t$resto = substr($nro, 0, -0);\n\t\t$coun = strlen($resto);\n\t\t$num = substr($nro , $coun);\n\t\t$dig = $num + 1;\n\t\t$codigo = str_pad($dig, 5, \"0\", STR_PAD_LEFT);\n\t\techo $codingrediente = $codigo;\n\t}\n\n\t$sql = \" select codingrediente from ingredientes where codingrediente = ? \";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->execute( array($_POST[\"codingrediente\"]) );\n\t\t$num = $stmt->rowCount();\n\t\tif($num == 0)\n\t\t{\n\t\t\t$query = \" insert into ingredientes values (null, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t$stmt = $this->dbh->prepare($query);\n\t\t\t$stmt->bindParam(1, $codingrediente);\n\t\t\t$stmt->bindParam(2, $nomingrediente);\n\t\t\t$stmt->bindParam(3, $cantingrediente);\n\t\t\t$stmt->bindParam(4, $costoingrediente);\n\t\t\t$stmt->bindParam(5, $unidadingrediente);\n\t\t\t$stmt->bindParam(6, $codproveedor);\n\t\t\t$stmt->bindParam(7, $stockminimoingrediente);\n\n\t\t\t//$codingrediente = strip_tags($_POST[\"codingrediente\"]);\n\t\t\t$nomingrediente = strip_tags($_POST[\"nomingrediente\"]);\n\t\t\t$cantingrediente = strip_tags($_POST[\"cantingrediente\"]);\n\t\t\t$costoingrediente = strip_tags($_POST[\"costoingrediente\"]);\n\t\t\t$unidadingrediente = strip_tags($_POST[\"unidadingrediente\"]);\n\t\t\t$codproveedor = strip_tags($_POST[\"codproveedor\"]);\n\t\t\t$stockminimoingrediente = strip_tags($_POST[\"stockminimoingrediente\"]);\n\t\t\t$stmt->execute();\n\n\t\t\t$query = \" insert into kardexingredientes values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t$stmt = $this->dbh->prepare($query);\n\t\t\t$stmt->bindParam(1, $codproceso);\n\t\t\t$stmt->bindParam(2, $codresponsable);\n\t\t\t$stmt->bindParam(3, $codigoproducto);\n\t\t\t$stmt->bindParam(4, $codingrediente);\n\t\t\t$stmt->bindParam(5, $movimiento);\n\t\t\t$stmt->bindParam(6, $entradas);\n\t\t\t$stmt->bindParam(7, $salidas);\n\t\t\t$stmt->bindParam(8, $stockactual);\n\t\t\t$stmt->bindParam(9, $preciounit);\n\t\t\t$stmt->bindParam(10, $costototal);\n\t\t\t$stmt->bindParam(11, $documento);\n\t\t\t$stmt->bindParam(12, $fechakardex);\n\n\t\t\t$codproceso = strip_tags(GenerateRandomString());\n\t\t\t$codresponsable = strip_tags(\"0\");\n\t\t\t$codigoproducto = strip_tags('0');\n\t\t\t$codingrediente = strip_tags($_POST['codingrediente']);\n\t\t\t$movimiento = strip_tags(\"ENTRADAS\");\n\t\t\t$entradas = strip_tags($_POST['cantingrediente']);\n\t\t\t$salidas = strip_tags(\"0\");\n\t\t\t$stockactual = strip_tags($_POST['cantingrediente']);\n\t\t\t$preciounit = strip_tags($_POST['costoingrediente']);\n\t\t\t$costototal = strip_tags($_POST['costoingrediente'] * $_POST['cantingrediente']);\n\t\t\t$documento = strip_tags(\"INVENTARIO INICIAL\");\n\t\t\t$fechakardex = strip_tags(date(\"Y-m-d\"));\n\t\t\t$stmt->execute();\n\n\t\t\techo \"<div class='alert alert-success'>\";\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> EL INGREDIENTE FUE REGISTRADO EXITOSAMENTE\";\n\t\t\techo \"</div>\";\t\t\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo \"3\";\n\t\t\texit;\n\t\t}\n\t}\n}", "function buildIngredientRecipe($ingredientName, $recipeName, $quantity) {\n global $conn;\n // Determine ingredientID\n $sql = \"SELECT ingredientID FROM ingredient WHERE ingredientName='\" . $ingredientName . \"'\";\n $result = $conn->query($sql);\n $record = $result->fetch_assoc();\n $ingredientID = $record['ingredientID'];\n\n // Determine recipeID\n $sql = \"SELECT recipeID FROM recipe WHERE recipeName='\" . $recipeName . \"'\";\n $result = $conn->query($sql);\n $record = $result->fetch_assoc();\n $recipeID = $record['recipeID'];\n\n // Check to make sure ingredient isn't already in the recipe\n $sql = \"SELECT recipeID FROM ingredientRecipe WHERE recipeID = \" . $recipeID\n . \" AND ingredientID = \" . $ingredientID;\n if ($result = $conn->query($sql)) {\n // determine number of rows result set\n $rowCount = $result->num_rows;\n if($rowCount > 0) {\n echo \"Ingredient \" . $ingredientID\n . \" is already in recipe \"\n . $recipeID . \"<br />\";\n } else { // Not a duplicate\n $sql = \"INSERT INTO ingredientRecipe (recipeID, ingredientID, quantity)\n VALUES ('\" . $recipeID . \"', '\" . $ingredientID . \"', '\" . $quantity . \"')\";\n runQuery($sql, \"Insert ingredient \" . $ingredientID . \" into recipe \" . $recipeID, true);\n }\n }\n }", "private function setFields()\n\t{\t\n\t\t$sql = '';\n\t\t\n\t\tforeach (array_keys($this->data) as $key)\n\t\t{\n\t\t\t$sql .= '`' . $key . '` = ? , ';\n\t\t}\n\t\t\n\t\t$sql = rtrim($sql, ', ');\n\t\t\n\t\treturn $sql;\n\t}", "public function migrateIngredients()\r\n\t{\r\n\t\t// Enable group type\r\n\t\t$query = 'ALTER TABLE `metaGroups`\r\n\t\t\tMODIFY COLUMN `type` ENUM(\"pick\", \"numberpick\", \"numberrange\", \"keywords\") NOT NULL DEFAULT \"pick\" COMMENT \"Meta value type\"';\r\n\t\t$this->_db->setQuery($query);\r\n\t\tif (!$this->_db->query()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Change mapping table column type, default values, add fulltext index\r\n\t\t$query = 'ALTER TABLE `articleMetaValues`\r\n\t\t\tDROP PRIMARY KEY,\r\n\t\t\tDROP INDEX `rawValue`,\r\n\t\t\tMODIFY COLUMN `rawValue` VARCHAR(255) DEFAULT NULL COMMENT \"Raw meta value\",\r\n\t\t\tMODIFY COLUMN `valueId` INT(8) DEFAULT NULL COMMENT \"Foreign key for metaValues.id\",\r\n\t\t\tADD FULLTEXT INDEX `keywords` (`rawValue`)';\r\n\t\t$this->_db->setQuery($query);\r\n\t\tif (!$this->_db->query()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Fix rawValue column data\r\n\t\t$query = 'UPDATE `articleMetaValues` AS `amv`\r\n\t\t\t\tLEFT JOIN `metaGroups` AS `mg` ON amv.groupId = mg.id\r\n\t\t\tSET amv.rawValue = DEFAULT\r\n\t\t\tWHERE mg.type != \"numberpick\"';\r\n\t\t$this->_db->setQuery($query);\r\n\t\tif (!$this->_db->query()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$query = 'UPDATE `articleMetaValues` AS `amv`\r\n\t\t\t\tLEFT JOIN `metaGroups` AS `mg` ON amv.groupId = mg.id\r\n\t\t\tSET amv.valueId = DEFAULT\r\n\t\t\tWHERE mg.type = \"numberpick\"';\r\n\t\t$this->_db->setQuery($query);\r\n\t\tif (!$this->_db->query()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Get ingredients group ID\r\n\t\t$query = 'SELECT lmg.id\r\n\t\t\tFROM `languageMetaGroups` AS `lmg`\r\n\t\t\tWHERE lmg.slug = \"ingredients\"';\r\n\t\t$this->_db->setQuery($query);\r\n\t\t$ingredientsGroupId = $this->_db->loadResult();\r\n\t\t\r\n\t\t// Change group type\r\n\t\t$query = 'UPDATE `metaGroups`\r\n\t\t\tSET `type` = \"keywords\"\r\n\t\t\tWHERE `id` = '.(int) $ingredientsGroupId;\r\n\t\t$this->_db->setQuery($query);\r\n\t\tif (!$this->_db->query()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Copy ingredient value over to destination table\r\n\t\t$query = 'UPDATE `articleMetaValues` AS `amv`\r\n\t\t\t\tLEFT JOIN `languageMetaValues` AS `lmv` ON amv.valueId = lmv.id\r\n\t\t\tSET amv.rawValue = lmv.name,\r\n\t\t\t\tamv.valueId = DEFAULT\r\n\t\t\tWHERE amv.groupId = '.(int) $ingredientsGroupId;\r\n\t\t$this->_db->setQuery($query);\r\n\t\tif (!$this->_db->query()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Remove original bloated ingredients\r\n\t\t$query = 'DELETE mv.*, lmv.*\r\n\t\t\tFROM `metaValues` AS `mv`\r\n\t\t\t\tLEFT JOIN `languageMetaValues` AS `lmv` ON mv.id = lmv.id\r\n\t\t\tWHERE mv.groupId = '.(int) $ingredientsGroupId;\r\n\t\t$this->_db->setQuery($query);\r\n\t\tif (!$this->_db->query()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Return\r\n\t\treturn true;\r\n\t}", "private function _prepareFields()\n\t{\n\t\t$result = [];\n\n\t\tforeach ($this->_fields as $field => $params) {\n\n\t\t\tif ($field == 'languageTable') {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$tmp = '`' . $field . '` ' . $params['type'];\n\n\t\t\tif (in_array($params['type'], ['char', 'varchar'])) {\n\t\t\t\t$length = isset($params['length']) ? $params['length'] : 100;\n\t\t\t\t$tmp .= '(' . $length . ')';\n\t\t\t}\n\n\t\t\t$tmp .= ($params['null']) ? ' NULL' : ' NOT NULL';\n\t\t\t$tmp .= ($params['default'] || $params['default'] === 0) ? ' DEFAULT ' . $params['default'] : '';\n\n\n\t\t\tif ($field == 'id') {\n\t\t\t\t$tmp .= ' AUTO_INCREMENT PRIMARY KEY';\n\t\t\t}\n\n\t\t\t$result[] = $tmp;\n\t\t}\n\n\t\treturn implode(',', $result);\n\t}", "public static function FormateaArrayIDsParaFiltroIN($array_ids)\n\t{\n\t\t//\tSimplemente vamos a formatear para obterner un string tipo -> (1, 2, 3)\n\t\t$string_array_ids = '(';\n\t\tfor($i = 0; $i < count($array_ids); $i++)\n\t\t{\n\t\t\t$string_array_ids .= $array_ids[$i];\n\t\t\tif($i < count($array_ids) -1)\n\t\t\t\t$string_array_ids .= ', ';\n\t\t}\n\t\t$string_array_ids .= ')';\n\n\t\treturn $string_array_ids;\n\t}", "function createQuery($arr) {\n $printArray = \"\";\n for ($i = 0; $i < sizeof($arr); $i++) {\n if ($i == sizeof($arr) - 1) $printArray = $printArray .'\\'' . $arr[$i] . '\\'';\n else $printArray = $printArray . '\\'' . $arr[$i] . '\\'' . \", \";\n } \n return $printArray;\n}", "function convertArrayIntoString($array) {\n foreach ($array as $value)\n $string .= \"'$value,'\";\n $string = trim($string, ',');\n return $string;\n}", "private function setFields(): string\n {\n $sql = '';\n\n foreach (array_keys($this->data) as $key) {\n $sql .= '`' . $key . '` = ? , ';\n }\n return rtrim($sql, ', ');\n }", "function generate_list_placeholders( array $items, int $start_index ): string {\n\t$placeholders = [];\n\tforeach ( range( $start_index, count( $items ) + $start_index - 1 ) as $i ) {\n\t\t$placeholders[] = \"%$i\\$d\";\n\t}\n\treturn implode( ',', $placeholders );\n}", "protected function processExtraFields()\n {\n $rows = [];\n foreach ($this->getConfig('extraFields') as $definition) {\n $parts = [];\n foreach ($definition as $key => $val) {\n $parts[] = \"'{$key}': {$val}\";\n }\n $rows[] = implode(',', $parts);\n }\n\n return implode(',', $rows);\n }", "public function enumerate_values_SQL(){\n\t\t$this->make_numeric(); \n\t\treturn \"$this->avg_reaction_time_m_no_faces, $this->accuracy_m_no_faces, $this->avg_reaction_time_m_faces, $this->accuracy_m_faces, \n\t\t$this->avg_reaction_time_aba_no_faces, $this->accuracy_aba_no_faces, $this->avg_reaction_time_aba_faces, $this->accuracy_aba_faces,\n\t\t$this->avg_reaction_time_faces, $this->accuracy_faces, $this->avg_reaction_time_no_faces, $this->accuracy_no_faces\";\n\t}", "public function getRecipeIngredients(int $id_recipe): array {\n try {\n $list = DB::select('select * from recipe_has_ingredients where id_recipe = :id', ['id'=>$id_recipe]);\n $ingredients = [];\n foreach ($list as $value) {\n $ingredient = $this->getIngredient($value->id_ingredient);\n $ingredient->quantity = $value->quantity;\n $ingredients[] = $ingredient;\n }\n return $ingredients;\n } catch(Exception $e) {\n throw new Exception(\"Si è verificato un errore nel recupero degli ingredienti della ricetta.\");\n }\n }", "function db_build_query($args) {\n if (count($args) < 2) return $args[0];\n $query = array_shift($args);\n $args = array_map('db_mysqli_real_escape_string', $args); \n array_unshift($args, $query);\n $query = call_user_func_array('sprintf', $args);\n return $query;\n}", "function getIngredientInfoFromInventory($userid, $ingredient){\n\t if((userid != NULL) && ($ingredient!= NULL)) {\n\t\t\t$count = @mysql_query(\"SELECT COUNT(*) as count FROM Inventory WHERE (UserID = '$userid' AND IngredientName = '$ingredient') \");\n\t\t\t$countdata = mysql_fetch_assoc($count);\n\t\t\tif($countdata['count'] <= 0)\n\t\t\t\treturn;\n\t\t\t$invenlist = @mysql_query(\"SELECT * FROM Inventory WHERE (UserID = '$userid' AND IngredientName = '$ingredient') \");\n\t\t\t$row = @mysql_fetch_assoc($invenlist);\n\t\t\t$name = $row['IngredientName'];\n\t\t\t$qty = $row['Quantity'];\n\t\t\t$unit = $row['Units'];\n\t\t\t$array = array();\n\t\t\t$array = array($qty,$unit,$name);\n\t\t\treturn json_encode($array);\n\t\t}\n\t}", "private function ingredientRecipesToArray($ingredientRecipes){\n $ingredientRecipesArray = EntityUtil::toArray($ingredientRecipes, true);\n foreach ($ingredientRecipesArray as $i=>&$ingredientRecipeArray) {\n $ingredientRecipeArray[\"name\"] = FormatUtil::decode($ingredientRecipes[$i]->getIngredient()->getName());\n $ingredientRecipeArray[\"unitName\"] = FormatUtil::decode($ingredientRecipes[$i]->getUnit()->getName());\n }\n return $ingredientRecipesArray;\n }", "private function implodeWithPrepare($arr) {\r\n\t\t$result='';\r\n\t\t\r\n\t\t$first=true;\r\n\t\tforeach($arr as $tr) {\r\n\t\t\t//separate with commas\r\n\t\t\tif(!$first)\r\n\t\t\t\t$result.=\",\";\r\n\t\t\telse \r\n\t\t\t\t$first=false;\r\n\t\t\r\n\t\t\t//every entry in single quotes\r\n\t\t\t$result.=\"'\";\r\n\t\t\t$result.=$this->prepare($tr);\r\n\t\t\t$result.=\"'\";\r\n\t\t}\r\n\t\t\r\n\t\treturn $result;\r\n\t}", "public function columnsWithValues()\n {\n // $sqlQuery = str_replace(\"&\", ', ',$query);\n $keys = array_keys($this->attributes);\n $values = array_values($this->attributes);\n $sql = null;\n for ($i = 0; $i < sizeof($this->attributes); $i++) {\n $sql .= $keys[$i]. '=';\n if (is_string($values[$i])) {\n $sql .= '\"'.$values[$i].'\"';\n } else { \n $sql .= $values[$i];\n }\n if ($i != sizeof($values) - 1) {\n $sql .= ', ';\n }\n } \n return $sql;\n }", "function toPostgresArray($set) {\n settype($set, 'array'); // can be called with a scalar or array\n $result = array();\n foreach ($set as $t) {\n if (is_array($t)) {\n $result[] = toPostgresArray($t);\n } else {\n $t = str_replace('\"', '\\\\\"', $t); // escape double quote\n if (! is_numeric($t)) // quote only non-numeric values\n $t = '\"' . $t . '\"';\n $result[] = $t;\n }\n }\n return '{' . implode(\",\", $result) . '}'; // format\n }", "public function setIngredients(){\n $igr_name = $this->input->post('name');\n $igr_description = $this->input->post('description');\n $igr_img = $this->input->post('image');\n $igr_linecolor = intval($this->input->post('line_color'));\n $igr_backcolor = intval($this->input->post('back_color'));\n $fruity = $this->input->post('fruity');\n $green = $this->input->post('green');\n $roasted = $this->input->post('roasted');\n\n $sql = \"INSERT INTO ingredients (igr_name, igr_description, igr_img, igr_linecolor, igr_backcolor, fruity, green, roasted) \n VALUES('\" . $igr_name . \"', \n '\" . $igr_description . \"', \n '\" . $igr_img . \"', \n '\" . $igr_linecolor . \"', \n '\" . $igr_backcolor . \"', \n '\" . $fruity . \"', \n '\" . $green . \"', \n '\" . $roasted . \"')\"; \n $result = $this->db->query($sql); \n return $result;\n }", "public function listIngredients(): string\n {\n $listIngredients = '';\n\n if (null !== $this->name) {\n $listIngredients = sprintf('%s:', $this->name);\n }\n if (null !== $this->dough) {\n $listIngredients = sprintf('%s %s,', $listIngredients, $this->dough);\n }\n if (null !== $this->topping) {\n $listIngredients = sprintf('%s %s,', $listIngredients, $this->topping);\n }\n if (null !== $this->sauce) {\n $listIngredients = sprintf('%s %s.', $listIngredients, $this->sauce);\n }\n\n return $listIngredients;\n }", "public function run()\n {\n \n\n \\DB::table('recipe_ingridents')->delete();\n \n \\DB::table('recipe_ingridents')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'recipe_id' => '1',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 tablespoons butter',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 1 => \n array (\n 'id' => 2,\n 'recipe_id' => '1',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '3 tablespoons extra virgin olive oil',\n 'displayNote' => '\\'3 tablespoons extra virgin <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 2 => \n array (\n 'id' => 3,\n 'recipe_id' => '1',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small diced onion',\n 'displayNote' => '\\'1 small diced <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 3 => \n array (\n 'id' => 4,\n 'recipe_id' => '1',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '4 cloves garlic, minced ',\n 'displayNote' => '\\'4 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 4 => \n array (\n 'id' => 5,\n 'recipe_id' => '1',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pinch crushed red pepper flakes',\n 'displayNote' => '\\'1 pinch crushed red pepper flakes\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 5 => \n array (\n 'id' => 6,\n 'recipe_id' => '1',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '1 tablespoon lemon juice',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> juice\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 6 => \n array (\n 'id' => 7,\n 'recipe_id' => '1',\n 'ingrident' => 'oregano',\n 'amount' => NULL,\n 'note' => '1 teaspoon oregano',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/oregano\\\\\\'>oregano</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 7 => \n array (\n 'id' => 8,\n 'recipe_id' => '1',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 teaspoon basil',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 8 => \n array (\n 'id' => 9,\n 'recipe_id' => '1',\n 'ingrident' => 'old bay seasoning',\n 'amount' => NULL,\n 'note' => '1 tablespoon Old Bay Seasoning',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/old-bay-seasoning\\\\\\'>old bay seasoning</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 9 => \n array (\n 'id' => 10,\n 'recipe_id' => '1',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 cans minced/chopped clams, with juice ',\n 'displayNote' => '\\'3 cans minced/chopped clams, with juice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 10 => \n array (\n 'id' => 11,\n 'recipe_id' => '1',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '1 teaspoon parsley',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 11 => \n array (\n 'id' => 12,\n 'recipe_id' => '1',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => ' parmesan cheese',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 12 => \n array (\n 'id' => 13,\n 'recipe_id' => '1',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb linguine or 1 lb thin spaghetti',\n 'displayNote' => '\\'1 lb linguine or 1 lb thin spaghetti\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:08',\n 'updated_at' => '2019-01-07 02:04:08',\n ),\n 13 => \n array (\n 'id' => 14,\n 'recipe_id' => '2',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '3/4 cup vegetable oil',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 14 => \n array (\n 'id' => 15,\n 'recipe_id' => '2',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '1/4 cup cider vinegar',\n 'displayNote' => '\\'1/4 cup cider <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 15 => \n array (\n 'id' => 16,\n 'recipe_id' => '2',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 tablespoons water',\n 'displayNote' => '\\'2 tablespoons water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 16 => \n array (\n 'id' => 17,\n 'recipe_id' => '2',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1 teaspoon minced garlic',\n 'displayNote' => '\\'1 teaspoon minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 17 => \n array (\n 'id' => 18,\n 'recipe_id' => '2',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 teaspoons sugar',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 18 => \n array (\n 'id' => 19,\n 'recipe_id' => '2',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons salt',\n 'displayNote' => '\\'1 1/2 teaspoons salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 19 => \n array (\n 'id' => 20,\n 'recipe_id' => '2',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:11',\n 'updated_at' => '2019-01-07 02:04:11',\n ),\n 20 => \n array (\n 'id' => 21,\n 'recipe_id' => '2',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1 teaspoon grated parmesan cheese',\n 'displayNote' => '\\'1 teaspoon grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:12',\n 'updated_at' => '2019-01-07 02:04:12',\n ),\n 21 => \n array (\n 'id' => 22,\n 'recipe_id' => '3',\n 'ingrident' => 'chicken thighs',\n 'amount' => NULL,\n 'note' => '8 chicken thighs, skin on ',\n 'displayNote' => '\\'8 <a href=\\\\\\'/ingridients/chicken-thighs\\\\\\'>chicken thighs</a> , skin on \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 22 => \n array (\n 'id' => 23,\n 'recipe_id' => '3',\n 'ingrident' => 'soy sauce',\n 'amount' => NULL,\n 'note' => '1/2 cup soy sauce',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/soy-sauce\\\\\\'>soy sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 23 => \n array (\n 'id' => 24,\n 'recipe_id' => '3',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/2 cup minced green onion',\n 'displayNote' => '\\'1/2 cup minced green <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 24 => \n array (\n 'id' => 25,\n 'recipe_id' => '3',\n 'ingrident' => 'sesame oil',\n 'amount' => NULL,\n 'note' => '3 tablespoons sesame oil',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/sesame-oil\\\\\\'>sesame oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 25 => \n array (\n 'id' => 26,\n 'recipe_id' => '3',\n 'ingrident' => 'honey',\n 'amount' => NULL,\n 'note' => '3 tablespoons honey',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/honey\\\\\\'>honey</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 26 => \n array (\n 'id' => 27,\n 'recipe_id' => '3',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 teaspoons minced garlic or 1/4 teaspoon garlic powder',\n 'displayNote' => '\\'2 teaspoons minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> or 1/4 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 27 => \n array (\n 'id' => 28,\n 'recipe_id' => '3',\n 'ingrident' => 'ginger',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon ground ginger',\n 'displayNote' => '\\'1/4 teaspoon ground <a href=\\\\\\'/ingridients/ginger\\\\\\'>ginger</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 28 => \n array (\n 'id' => 29,\n 'recipe_id' => '3',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon black pepper',\n 'displayNote' => '\\'1/4 teaspoon black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:15',\n 'updated_at' => '2019-01-07 02:04:15',\n ),\n 29 => \n array (\n 'id' => 30,\n 'recipe_id' => '4',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '2 lbs lean ground beef',\n 'displayNote' => '\\'2 lbs lean <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 30 => \n array (\n 'id' => 31,\n 'recipe_id' => '4',\n 'ingrident' => 'bread',\n 'amount' => NULL,\n 'note' => '8 -10 slices white bread, broken into small 1/2 inch pieces (or you can use rolls or any stale bread you have and want to use up)',\n 'displayNote' => '\\'8 -10 slices white <a href=\\\\\\'/ingridients/bread\\\\\\'>bread</a> , broken into small 1/2 inch pieces (or you can use rolls or any stale <a href=\\\\\\'/ingridients/bread\\\\\\'>bread</a> you have and want to use up)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 31 => \n array (\n 'id' => 32,\n 'recipe_id' => '4',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs, slightly beaten ',\n 'displayNote' => '\\'2 eggs, slightly beaten \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 32 => \n array (\n 'id' => 33,\n 'recipe_id' => '4',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon garlic powder (or to taste)',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder (or to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 33 => \n array (\n 'id' => 34,\n 'recipe_id' => '4',\n 'ingrident' => 'italian seasoning',\n 'amount' => NULL,\n 'note' => '1 teaspoon italian seasoning (or to taste)',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/italian-seasoning\\\\\\'>italian seasoning</a> (or to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 34 => \n array (\n 'id' => 35,\n 'recipe_id' => '4',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '2 teaspoons parsley flakes (or to taste)',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> flakes (or to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 35 => \n array (\n 'id' => 36,\n 'recipe_id' => '4',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1/4-1/2 cup grated parmesan cheese (or Locatelli)',\n 'displayNote' => '\\'1/4-1/2 cup grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese (or locatelli)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 36 => \n array (\n 'id' => 37,\n 'recipe_id' => '4',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 -2 teaspoon salt',\n 'displayNote' => '\\'1 -2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 37 => \n array (\n 'id' => 38,\n 'recipe_id' => '4',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4-1/2 teaspoon black pepper',\n 'displayNote' => '\\'1/4-1/2 teaspoon black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 38 => \n array (\n 'id' => 39,\n 'recipe_id' => '4',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => ' olive oil (for frying) or vegetable oil (for frying)',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil (for frying) or <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> (for frying)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:18',\n 'updated_at' => '2019-01-07 02:04:18',\n ),\n 39 => \n array (\n 'id' => 40,\n 'recipe_id' => '5',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 chicken breasts',\n 'displayNote' => '\\'4 chicken breasts\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 40 => \n array (\n 'id' => 41,\n 'recipe_id' => '5',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1 tablespoon instant minced garlic',\n 'displayNote' => '\\'1 tablespoon instant minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 41 => \n array (\n 'id' => 42,\n 'recipe_id' => '5',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '2 tablespoons olive oil',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 42 => \n array (\n 'id' => 43,\n 'recipe_id' => '5',\n 'ingrident' => 'spinach',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) bag spinach (frozen works great)',\n 'displayNote' => '\\'1 (16 ounce) bag <a href=\\\\\\'/ingridients/spinach\\\\\\'>spinach</a> (frozen works great)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 43 => \n array (\n 'id' => 44,\n 'recipe_id' => '5',\n 'ingrident' => 'feta',\n 'amount' => NULL,\n 'note' => '1 cup feta cheese',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/feta\\\\\\'>feta</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 44 => \n array (\n 'id' => 45,\n 'recipe_id' => '5',\n 'ingrident' => 'bread',\n 'amount' => NULL,\n 'note' => '2 cups seasoned bread crumbs',\n 'displayNote' => '\\'2 cups seasoned <a href=\\\\\\'/ingridients/bread\\\\\\'>bread</a> crumbs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 45 => \n array (\n 'id' => 46,\n 'recipe_id' => '5',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/2 cup butter (melted)',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> (melted)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:04:21',\n 'updated_at' => '2019-01-07 02:04:21',\n ),\n 46 => \n array (\n 'id' => 47,\n 'recipe_id' => '6',\n 'ingrident' => 'chicken wings',\n 'amount' => NULL,\n 'note' => '3 lbs chicken wings',\n 'displayNote' => '\\'3 lbs <a href=\\\\\\'/ingridients/chicken-wings\\\\\\'>chicken wings</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 47 => \n array (\n 'id' => 48,\n 'recipe_id' => '6',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '2 tablespoons olive oil',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 48 => \n array (\n 'id' => 49,\n 'recipe_id' => '6',\n 'ingrident' => 'soy sauce',\n 'amount' => NULL,\n 'note' => '1/2 cup soy sauce',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/soy-sauce\\\\\\'>soy sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 49 => \n array (\n 'id' => 50,\n 'recipe_id' => '6',\n 'ingrident' => 'ketchup',\n 'amount' => NULL,\n 'note' => '2 tablespoons ketchup',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/ketchup\\\\\\'>ketchup</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 50 => \n array (\n 'id' => 51,\n 'recipe_id' => '6',\n 'ingrident' => 'honey',\n 'amount' => NULL,\n 'note' => '1 cup honey',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/honey\\\\\\'>honey</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 51 => \n array (\n 'id' => 52,\n 'recipe_id' => '6',\n 'ingrident' => 'clove',\n 'amount' => NULL,\n 'note' => '1 garlic clove, minced, to taste ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> <a href=\\\\\\'/ingridients/clove\\\\\\'>clove</a> , minced, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 52 => \n array (\n 'id' => 53,\n 'recipe_id' => '6',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pinch salt',\n 'displayNote' => '\\'1 pinch salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 53 => \n array (\n 'id' => 54,\n 'recipe_id' => '6',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pinch ground black pepper',\n 'displayNote' => '\\'1 pinch ground black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:48',\n 'updated_at' => '2019-01-07 02:05:48',\n ),\n 54 => \n array (\n 'id' => 55,\n 'recipe_id' => '7',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 1/2 cups all-purpose flour',\n 'displayNote' => '\\'2 1/2 cups all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 55 => \n array (\n 'id' => 56,\n 'recipe_id' => '7',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 tablespoon baking powder',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 56 => \n array (\n 'id' => 57,\n 'recipe_id' => '7',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 57 => \n array (\n 'id' => 58,\n 'recipe_id' => '7',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '8 tablespoons cold unsalted butter, cut up ',\n 'displayNote' => '\\'8 tablespoons cold unsalted <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , cut up \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 58 => \n array (\n 'id' => 59,\n 'recipe_id' => '7',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup granulated sugar (use 1/3 for slightly sweeter scones)',\n 'displayNote' => '\\'1/4 cup granulated <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> (use 1/3 for slightly sweeter scones)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 59 => \n array (\n 'id' => 60,\n 'recipe_id' => '7',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '2/3 cup milk',\n 'displayNote' => '\\'2/3 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:52',\n 'updated_at' => '2019-01-07 02:05:52',\n ),\n 60 => \n array (\n 'id' => 61,\n 'recipe_id' => '8',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 medium potatoes',\n 'displayNote' => '\\'4 medium potatoes\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:54',\n 'updated_at' => '2019-01-07 02:05:54',\n ),\n 61 => \n array (\n 'id' => 62,\n 'recipe_id' => '8',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup sour cream (I use fat-free and no one knows the difference!)',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> (i use fat-free and no one knows the difference!)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:54',\n 'updated_at' => '2019-01-07 02:05:54',\n ),\n 62 => \n array (\n 'id' => 63,\n 'recipe_id' => '8',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1/4 cup milk',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 63 => \n array (\n 'id' => 64,\n 'recipe_id' => '8',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup margarine',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 64 => \n array (\n 'id' => 65,\n 'recipe_id' => '8',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '1/2 cup shredded sharp cheddar cheese',\n 'displayNote' => '\\'1/2 cup shredded sharp <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 65 => \n array (\n 'id' => 66,\n 'recipe_id' => '8',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 66 => \n array (\n 'id' => 67,\n 'recipe_id' => '8',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 67 => \n array (\n 'id' => 68,\n 'recipe_id' => '8',\n 'ingrident' => 'bacon',\n 'amount' => NULL,\n 'note' => '4 slices bacon, crisp and crumbled (or 1 c. real bacon bits)',\n 'displayNote' => '\\'4 slices <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> , crisp and crumbled (or 1 c. real <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> bits)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:55',\n 'updated_at' => '2019-01-07 02:05:55',\n ),\n 68 => \n array (\n 'id' => 69,\n 'recipe_id' => '9',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs',\n 'displayNote' => '\\'2 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:57',\n 'updated_at' => '2019-01-07 02:05:57',\n ),\n 69 => \n array (\n 'id' => 70,\n 'recipe_id' => '9',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '3/4 cup vegetable oil',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 70 => \n array (\n 'id' => 71,\n 'recipe_id' => '9',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 71 => \n array (\n 'id' => 72,\n 'recipe_id' => '9',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 72 => \n array (\n 'id' => 73,\n 'recipe_id' => '9',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 cups flour',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 73 => \n array (\n 'id' => 74,\n 'recipe_id' => '9',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '2 teaspoons cinnamon',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 74 => \n array (\n 'id' => 75,\n 'recipe_id' => '9',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 75 => \n array (\n 'id' => 76,\n 'recipe_id' => '9',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 76 => \n array (\n 'id' => 77,\n 'recipe_id' => '9',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 cups peeled chopped apples',\n 'displayNote' => '\\'4 cups peeled chopped apples\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:05:58',\n 'updated_at' => '2019-01-07 02:05:58',\n ),\n 77 => \n array (\n 'id' => 78,\n 'recipe_id' => '10',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup oatmeal',\n 'displayNote' => '\\'1/2 cup oatmeal\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:00',\n 'updated_at' => '2019-01-07 02:06:00',\n ),\n 78 => \n array (\n 'id' => 79,\n 'recipe_id' => '10',\n 'ingrident' => 'cottage cheese',\n 'amount' => NULL,\n 'note' => '1/2 cup cottage cheese',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/cottage-cheese\\\\\\'>cottage cheese</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:00',\n 'updated_at' => '2019-01-07 02:06:00',\n ),\n 79 => \n array (\n 'id' => 80,\n 'recipe_id' => '10',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:00',\n 'updated_at' => '2019-01-07 02:06:00',\n ),\n 80 => \n array (\n 'id' => 81,\n 'recipe_id' => '10',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '4 egg whites',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> whites\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:00',\n 'updated_at' => '2019-01-07 02:06:00',\n ),\n 81 => \n array (\n 'id' => 82,\n 'recipe_id' => '11',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:03',\n 'updated_at' => '2019-01-07 02:06:03',\n ),\n 82 => \n array (\n 'id' => 83,\n 'recipe_id' => '11',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 3/4 cups flour',\n 'displayNote' => '\\'1 3/4 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:03',\n 'updated_at' => '2019-01-07 02:06:03',\n ),\n 83 => \n array (\n 'id' => 84,\n 'recipe_id' => '11',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup baking cocoa (dutch process or dark cocoa preferably)',\n 'displayNote' => '\\'3/4 cup baking cocoa (dutch process or dark cocoa preferably)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:03',\n 'updated_at' => '2019-01-07 02:06:03',\n ),\n 84 => \n array (\n 'id' => 85,\n 'recipe_id' => '11',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons baking powder',\n 'displayNote' => '\\'1 1/2 teaspoons <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 85 => \n array (\n 'id' => 86,\n 'recipe_id' => '11',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons baking soda',\n 'displayNote' => '\\'1 1/2 teaspoons <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 86 => \n array (\n 'id' => 87,\n 'recipe_id' => '11',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 87 => \n array (\n 'id' => 88,\n 'recipe_id' => '11',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs',\n 'displayNote' => '\\'2 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 88 => \n array (\n 'id' => 89,\n 'recipe_id' => '11',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 89 => \n array (\n 'id' => 90,\n 'recipe_id' => '11',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '1/2 cup vegetable oil',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 90 => \n array (\n 'id' => 91,\n 'recipe_id' => '11',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 teaspoons vanilla extract',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> extract\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 91 => \n array (\n 'id' => 92,\n 'recipe_id' => '11',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4-1 cup boiling water (see note below)',\n 'displayNote' => '\\'3/4-1 cup boiling water (see note below)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:04',\n 'updated_at' => '2019-01-07 02:06:04',\n ),\n 92 => \n array (\n 'id' => 93,\n 'recipe_id' => '12',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1 1/4 cups butter or 1 1/4 cups margarine, softened ',\n 'displayNote' => '\\'1 1/4 cups <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or 1 1/4 cups <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 93 => \n array (\n 'id' => 94,\n 'recipe_id' => '12',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 94 => \n array (\n 'id' => 95,\n 'recipe_id' => '12',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 large eggs',\n 'displayNote' => '\\'2 large eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 95 => \n array (\n 'id' => 96,\n 'recipe_id' => '12',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 teaspoons vanilla extract',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> extract\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 96 => \n array (\n 'id' => 97,\n 'recipe_id' => '12',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 cups all-purpose flour',\n 'displayNote' => '\\'2 cups all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:06',\n 'updated_at' => '2019-01-07 02:06:06',\n ),\n 97 => \n array (\n 'id' => 98,\n 'recipe_id' => '12',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup cocoa',\n 'displayNote' => '\\'3/4 cup cocoa\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:07',\n 'updated_at' => '2019-01-07 02:06:07',\n ),\n 98 => \n array (\n 'id' => 99,\n 'recipe_id' => '12',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:07',\n 'updated_at' => '2019-01-07 02:06:07',\n ),\n 99 => \n array (\n 'id' => 100,\n 'recipe_id' => '12',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:07',\n 'updated_at' => '2019-01-07 02:06:07',\n ),\n 100 => \n array (\n 'id' => 101,\n 'recipe_id' => '12',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '2 cups peanut butter chips (12 oz. pkg.) or 2 cups semi-sweet chocolate chips (12 oz. pkg.)',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> (12 oz. pkg.) or 2 cups semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> (12 oz. pkg.)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:07',\n 'updated_at' => '2019-01-07 02:06:07',\n ),\n 101 => \n array (\n 'id' => 102,\n 'recipe_id' => '13',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/2 cup butter, softened (you can use margarine but the flavor will not be the same)',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , softened (you can use <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> but the flavor will not be the same)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:09',\n 'updated_at' => '2019-01-07 02:06:09',\n ),\n 102 => \n array (\n 'id' => 103,\n 'recipe_id' => '13',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 2/3 cups confectioners\\' sugar, sifted ',\n 'displayNote' => '\\'2 2/3 cups confectioners\\\\\\' <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , sifted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:09',\n 'updated_at' => '2019-01-07 02:06:09',\n ),\n 103 => \n array (\n 'id' => 104,\n 'recipe_id' => '13',\n 'ingrident' => 'half and half',\n 'amount' => NULL,\n 'note' => '1/3 cup half-and-half cream (can use unwhipped whipping cream in place of half and half) or 1/3 cup milk (can use unwhipped whipping cream in place of half and half)',\n 'displayNote' => '\\'1/3 cup half-and-half <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> (can use unwhipped whipping <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> in place of <a href=\\\\\\'/ingridients/half-and-half\\\\\\'>half and half</a> ) or 1/3 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> (can use unwhipped whipping <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> in place of <a href=\\\\\\'/ingridients/half-and-half\\\\\\'>half and half</a> )\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:09',\n 'updated_at' => '2019-01-07 02:06:09',\n ),\n 104 => \n array (\n 'id' => 105,\n 'recipe_id' => '13',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons vanilla',\n 'displayNote' => '\\'1 1/2 teaspoons <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:09',\n 'updated_at' => '2019-01-07 02:06:09',\n ),\n 105 => \n array (\n 'id' => 106,\n 'recipe_id' => '13',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:10',\n 'updated_at' => '2019-01-07 02:06:10',\n ),\n 106 => \n array (\n 'id' => 107,\n 'recipe_id' => '13',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup unsweetened cocoa powder, sifted (for light)',\n 'displayNote' => '\\'1/3 cup unsweetened cocoa powder, sifted (for light)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:10',\n 'updated_at' => '2019-01-07 02:06:10',\n ),\n 107 => \n array (\n 'id' => 108,\n 'recipe_id' => '13',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup unsweetened cocoa powder, sifted (for medium)',\n 'displayNote' => '\\'1/2 cup unsweetened cocoa powder, sifted (for medium)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:10',\n 'updated_at' => '2019-01-07 02:06:10',\n ),\n 108 => \n array (\n 'id' => 109,\n 'recipe_id' => '13',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup unsweetened cocoa powder, sifted (for dark rich)',\n 'displayNote' => '\\'3/4 cup unsweetened cocoa powder, sifted (for dark rich)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:10',\n 'updated_at' => '2019-01-07 02:06:10',\n ),\n 109 => \n array (\n 'id' => 110,\n 'recipe_id' => '14',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 110 => \n array (\n 'id' => 111,\n 'recipe_id' => '14',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/2 cup butter',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 111 => \n array (\n 'id' => 112,\n 'recipe_id' => '14',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 large egg',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 112 => \n array (\n 'id' => 113,\n 'recipe_id' => '14',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 113 => \n array (\n 'id' => 114,\n 'recipe_id' => '14',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 1/2 cups flour',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 114 => \n array (\n 'id' => 115,\n 'recipe_id' => '14',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons cinnamon',\n 'displayNote' => '\\'1 1/2 teaspoons <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 115 => \n array (\n 'id' => 116,\n 'recipe_id' => '14',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:11',\n 'updated_at' => '2019-01-07 02:06:11',\n ),\n 116 => \n array (\n 'id' => 117,\n 'recipe_id' => '14',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon salt',\n 'displayNote' => '\\'1/4 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:12',\n 'updated_at' => '2019-01-07 02:06:12',\n ),\n 117 => \n array (\n 'id' => 118,\n 'recipe_id' => '14',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => ' cinnamon sugar',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:12',\n 'updated_at' => '2019-01-07 02:06:12',\n ),\n 118 => \n array (\n 'id' => 119,\n 'recipe_id' => '15',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 garlic cloves, minced ',\n 'displayNote' => '\\'2 <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> cloves, minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 119 => \n array (\n 'id' => 120,\n 'recipe_id' => '15',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '6 tablespoons light olive oil',\n 'displayNote' => '\\'6 tablespoons light <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 120 => \n array (\n 'id' => 121,\n 'recipe_id' => '15',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 teaspoon dried basil',\n 'displayNote' => '\\'1 teaspoon dried <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 121 => \n array (\n 'id' => 122,\n 'recipe_id' => '15',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 122 => \n array (\n 'id' => 123,\n 'recipe_id' => '15',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon ground black pepper',\n 'displayNote' => '\\'1 teaspoon ground black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 123 => \n array (\n 'id' => 124,\n 'recipe_id' => '15',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '1 tablespoon lemon juice',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> juice\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 124 => \n array (\n 'id' => 125,\n 'recipe_id' => '15',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '1 tablespoon fresh parsley, chopped ',\n 'displayNote' => '\\'1 tablespoon fresh <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 125 => \n array (\n 'id' => 126,\n 'recipe_id' => '15',\n 'ingrident' => 'salmon',\n 'amount' => NULL,\n 'note' => '2 (6 ounce) salmon fillets',\n 'displayNote' => '\\'2 (6 ounce) <a href=\\\\\\'/ingridients/salmon\\\\\\'>salmon</a> fillets\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:15',\n 'updated_at' => '2019-01-07 02:06:15',\n ),\n 126 => \n array (\n 'id' => 127,\n 'recipe_id' => '16',\n 'ingrident' => 'oreo',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) package Oreo cookies, crushed ',\n 'displayNote' => '\\'1 (16 ounce) package <a href=\\\\\\'/ingridients/oreo\\\\\\'>oreo</a> <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> , crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:19',\n 'updated_at' => '2019-01-07 02:06:19',\n ),\n 127 => \n array (\n 'id' => 128,\n 'recipe_id' => '16',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 (8 ounce) package cream cheese, softened ',\n 'displayNote' => '\\'1 (8 ounce) package <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:19',\n 'updated_at' => '2019-01-07 02:06:19',\n ),\n 128 => \n array (\n 'id' => 129,\n 'recipe_id' => '16',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 (24 ounce) package white chocolate bark',\n 'displayNote' => '\\'1 (24 ounce) package white <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> bark\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:19',\n 'updated_at' => '2019-01-07 02:06:19',\n ),\n 129 => \n array (\n 'id' => 130,\n 'recipe_id' => '16',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 (24 ounce) package chocolate bark',\n 'displayNote' => '\\'1 (24 ounce) package <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> bark\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:19',\n 'updated_at' => '2019-01-07 02:06:19',\n ),\n 130 => \n array (\n 'id' => 131,\n 'recipe_id' => '17',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 1/2 cups potatoes, peeled and diced (I keep mine with the peel)',\n 'displayNote' => '\\'3 1/2 cups potatoes, peeled and diced (i keep mine with the peel)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 131 => \n array (\n 'id' => 132,\n 'recipe_id' => '17',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1/3 cup celery, diced ',\n 'displayNote' => '\\'1/3 cup <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> , diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 132 => \n array (\n 'id' => 133,\n 'recipe_id' => '17',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/3 cup onion, finely chopped ',\n 'displayNote' => '\\'1/3 cup <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , finely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 133 => \n array (\n 'id' => 134,\n 'recipe_id' => '17',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '1 cup chopped carrot',\n 'displayNote' => '\\'1 cup chopped <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 134 => \n array (\n 'id' => 135,\n 'recipe_id' => '17',\n 'ingrident' => 'ham',\n 'amount' => NULL,\n 'note' => '1 -2 cup ham, diced and cooked ',\n 'displayNote' => '\\'1 -2 cup <a href=\\\\\\'/ingridients/ham\\\\\\'>ham</a> , diced and cooked \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 135 => \n array (\n 'id' => 136,\n 'recipe_id' => '17',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '3 1/4 cups chicken broth or 3 1/4 cups ham stock',\n 'displayNote' => '\\'3 1/4 cups <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> or 3 1/4 cups <a href=\\\\\\'/ingridients/ham\\\\\\'>ham</a> stock\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 136 => \n array (\n 'id' => 137,\n 'recipe_id' => '17',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '2 tablespoons chicken bouillon granules (omit if using chicken broth)',\n 'displayNote' => '\\'2 tablespoons chicken <a href=\\\\\\'/ingridients/bouillon\\\\\\'>bouillon</a> granules (omit if using <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> )\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 137 => \n array (\n 'id' => 138,\n 'recipe_id' => '17',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' salt (to taste)',\n 'displayNote' => '\\' salt (to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 138 => \n array (\n 'id' => 139,\n 'recipe_id' => '17',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon pepper',\n 'displayNote' => '\\'1 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 139 => \n array (\n 'id' => 140,\n 'recipe_id' => '17',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '5 tablespoons butter',\n 'displayNote' => '\\'5 tablespoons <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 140 => \n array (\n 'id' => 141,\n 'recipe_id' => '17',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '5 tablespoons flour',\n 'displayNote' => '\\'5 tablespoons <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 141 => \n array (\n 'id' => 142,\n 'recipe_id' => '17',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '2 cups milk',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 142 => \n array (\n 'id' => 143,\n 'recipe_id' => '17',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '2 cups cheddar cheese, shredded ',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese, shredded \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:21',\n 'updated_at' => '2019-01-07 02:06:21',\n ),\n 143 => \n array (\n 'id' => 144,\n 'recipe_id' => '18',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '1 1/2 lbs ground beef',\n 'displayNote' => '\\'1 1/2 lbs <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 144 => \n array (\n 'id' => 145,\n 'recipe_id' => '18',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '2 tablespoons olive oil',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 145 => \n array (\n 'id' => 146,\n 'recipe_id' => '18',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 medium onion, chopped ',\n 'displayNote' => '\\'1 medium <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 146 => \n array (\n 'id' => 147,\n 'recipe_id' => '18',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 cloves garlic, minced (to taste)',\n 'displayNote' => '\\'2 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced (to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 147 => \n array (\n 'id' => 148,\n 'recipe_id' => '18',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 bay leaves',\n 'displayNote' => '\\'2 bay leaves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 148 => \n array (\n 'id' => 149,\n 'recipe_id' => '18',\n 'ingrident' => 'oregano',\n 'amount' => NULL,\n 'note' => '1 teaspoon oregano',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/oregano\\\\\\'>oregano</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 149 => \n array (\n 'id' => 150,\n 'recipe_id' => '18',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 teaspoon dried basil',\n 'displayNote' => '\\'1 teaspoon dried <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 150 => \n array (\n 'id' => 151,\n 'recipe_id' => '18',\n 'ingrident' => 'italian seasoning',\n 'amount' => NULL,\n 'note' => '1 teaspoon italian seasoning',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/italian-seasoning\\\\\\'>italian seasoning</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 151 => \n array (\n 'id' => 152,\n 'recipe_id' => '18',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt (, or to taste)',\n 'displayNote' => '\\'1 teaspoon salt (, or to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 152 => \n array (\n 'id' => 153,\n 'recipe_id' => '18',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' ground pepper',\n 'displayNote' => '\\' ground pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 153 => \n array (\n 'id' => 154,\n 'recipe_id' => '18',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '1 (6 ounce) can tomato paste',\n 'displayNote' => '\\'1 (6 ounce) can <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> paste\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 154 => \n array (\n 'id' => 155,\n 'recipe_id' => '18',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '2 (16 ounce) cans tomato sauce',\n 'displayNote' => '\\'2 (16 ounce) cans <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 155 => \n array (\n 'id' => 156,\n 'recipe_id' => '18',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (28 ounce) can diced tomatoes',\n 'displayNote' => '\\'1 (28 ounce) can diced tomatoes\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 156 => \n array (\n 'id' => 157,\n 'recipe_id' => '18',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '8 ounces fresh mushrooms, sliced and sauteed in butter ',\n 'displayNote' => '\\'8 ounces fresh mushrooms, sliced and sauteed in <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 157 => \n array (\n 'id' => 158,\n 'recipe_id' => '18',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => ' parmesan cheese, freshly grated ',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese, freshly grated \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:26',\n 'updated_at' => '2019-01-07 02:06:26',\n ),\n 158 => \n array (\n 'id' => 159,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:28',\n 'updated_at' => '2019-01-07 02:06:28',\n ),\n 159 => \n array (\n 'id' => 160,\n 'recipe_id' => '19',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 cups all-purpose flour',\n 'displayNote' => '\\'2 cups all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:28',\n 'updated_at' => '2019-01-07 02:06:28',\n ),\n 160 => \n array (\n 'id' => 161,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:28',\n 'updated_at' => '2019-01-07 02:06:28',\n ),\n 161 => \n array (\n 'id' => 162,\n 'recipe_id' => '19',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 162 => \n array (\n 'id' => 163,\n 'recipe_id' => '19',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '2 teaspoons baking soda',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 163 => \n array (\n 'id' => 164,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup unsweetened cocoa powder',\n 'displayNote' => '\\'3/4 cup unsweetened cocoa powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 164 => \n array (\n 'id' => 165,\n 'recipe_id' => '19',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 165 => \n array (\n 'id' => 166,\n 'recipe_id' => '19',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '1 cup vegetable oil',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 166 => \n array (\n 'id' => 167,\n 'recipe_id' => '19',\n 'ingrident' => 'coffee',\n 'amount' => NULL,\n 'note' => '1 cup hot coffee',\n 'displayNote' => '\\'1 cup hot <a href=\\\\\\'/ingridients/coffee\\\\\\'>coffee</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 167 => \n array (\n 'id' => 168,\n 'recipe_id' => '19',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 168 => \n array (\n 'id' => 169,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 large eggs',\n 'displayNote' => '\\'2 large eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 169 => \n array (\n 'id' => 170,\n 'recipe_id' => '19',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 170 => \n array (\n 'id' => 171,\n 'recipe_id' => '19',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 171 => \n array (\n 'id' => 172,\n 'recipe_id' => '19',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 172 => \n array (\n 'id' => 173,\n 'recipe_id' => '19',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '5 tablespoons all-purpose flour',\n 'displayNote' => '\\'5 tablespoons all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 173 => \n array (\n 'id' => 174,\n 'recipe_id' => '19',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/2 cup butter, softened ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 174 => \n array (\n 'id' => 175,\n 'recipe_id' => '19',\n 'ingrident' => 'shortening',\n 'amount' => NULL,\n 'note' => '1/2 cup shortening',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/shortening\\\\\\'>shortening</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 175 => \n array (\n 'id' => 176,\n 'recipe_id' => '19',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 176 => \n array (\n 'id' => 177,\n 'recipe_id' => '19',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:29',\n 'updated_at' => '2019-01-07 02:06:29',\n ),\n 177 => \n array (\n 'id' => 178,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '6 large green peppers',\n 'displayNote' => '\\'6 large green peppers\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 178 => \n array (\n 'id' => 179,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb beef, Ground ',\n 'displayNote' => '\\'1 lb beef, ground \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 179 => \n array (\n 'id' => 180,\n 'recipe_id' => '20',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/2 cup onion, Chopped ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 180 => \n array (\n 'id' => 181,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) can tomatoes, diced ',\n 'displayNote' => '\\'1 (16 ounce) can tomatoes, diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 181 => \n array (\n 'id' => 182,\n 'recipe_id' => '20',\n 'ingrident' => 'rice',\n 'amount' => NULL,\n 'note' => '1/2 cup long grain rice, any available rice is fine it may affect cooking time though ',\n 'displayNote' => '\\'1/2 cup long grain <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> , any available <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> is fine it may affect cooking time though \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 182 => \n array (\n 'id' => 183,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup water',\n 'displayNote' => '\\'1 cup water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 183 => \n array (\n 'id' => 184,\n 'recipe_id' => '20',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 184 => \n array (\n 'id' => 185,\n 'recipe_id' => '20',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '1 teaspoon Worcestershire sauce',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 185 => \n array (\n 'id' => 186,\n 'recipe_id' => '20',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '1 cup cheddar cheese, Shredded (about 4 ounces)',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese, shredded (about 4 ounces)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:34',\n 'updated_at' => '2019-01-07 02:06:34',\n ),\n 186 => \n array (\n 'id' => 187,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 -1 1/2 lb cubed beef stew meat',\n 'displayNote' => '\\'1 -1 1/2 lb cubed beef stew meat\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 187 => \n array (\n 'id' => 188,\n 'recipe_id' => '21',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/2 cup flour',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 188 => \n array (\n 'id' => 189,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons salt',\n 'displayNote' => '\\'1 1/2 teaspoons salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 189 => \n array (\n 'id' => 190,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon pepper',\n 'displayNote' => '\\'1/2 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 190 => \n array (\n 'id' => 191,\n 'recipe_id' => '21',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '1/4 cup vegetable oil',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 191 => \n array (\n 'id' => 192,\n 'recipe_id' => '21',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion, chopped fine ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped fine \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 192 => \n array (\n 'id' => 193,\n 'recipe_id' => '21',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '1 carrot, chopped fine ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> , chopped fine \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 193 => \n array (\n 'id' => 194,\n 'recipe_id' => '21',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1/4 cup finely chopped celery, with a few minced leaves ',\n 'displayNote' => '\\'1/4 cup finely chopped <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> , with a few minced leaves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 194 => \n array (\n 'id' => 195,\n 'recipe_id' => '21',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '1 tablespoon dried parsley',\n 'displayNote' => '\\'1 tablespoon dried <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 195 => \n array (\n 'id' => 196,\n 'recipe_id' => '21',\n 'ingrident' => 'thyme',\n 'amount' => NULL,\n 'note' => '1 pinch thyme',\n 'displayNote' => '\\'1 pinch <a href=\\\\\\'/ingridients/thyme\\\\\\'>thyme</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 196 => \n array (\n 'id' => 197,\n 'recipe_id' => '21',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '3 1/2 cups beef broth',\n 'displayNote' => '\\'3 1/2 cups <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 197 => \n array (\n 'id' => 198,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 medium potatoes, diced ',\n 'displayNote' => '\\'2 medium potatoes, diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 198 => \n array (\n 'id' => 199,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 carrots, diced ',\n 'displayNote' => '\\'2 carrots, diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 199 => \n array (\n 'id' => 200,\n 'recipe_id' => '21',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 onions, diced ',\n 'displayNote' => '\\'2 onions, diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:40',\n 'updated_at' => '2019-01-07 02:06:40',\n ),\n 200 => \n array (\n 'id' => 201,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 201 => \n array (\n 'id' => 202,\n 'recipe_id' => '22',\n 'ingrident' => 'mayonnaise',\n 'amount' => NULL,\n 'note' => '1 cup mayonnaise',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/mayonnaise\\\\\\'>mayonnaise</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 202 => \n array (\n 'id' => 203,\n 'recipe_id' => '22',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '2 tablespoons vinegar',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 203 => \n array (\n 'id' => 204,\n 'recipe_id' => '22',\n 'ingrident' => 'mustard',\n 'amount' => NULL,\n 'note' => '1 tablespoon mustard',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/mustard-1\\\\\\'>mustard</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 204 => \n array (\n 'id' => 205,\n 'recipe_id' => '22',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 teaspoon sugar',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 205 => \n array (\n 'id' => 206,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 206 => \n array (\n 'id' => 207,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 207 => \n array (\n 'id' => 208,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 lb macaroni, cooked and drained ',\n 'displayNote' => '\\'1/2 lb macaroni, cooked and drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 208 => \n array (\n 'id' => 209,\n 'recipe_id' => '22',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1 cup sliced celery',\n 'displayNote' => '\\'1 cup sliced <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 209 => \n array (\n 'id' => 210,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup chopped green pepper',\n 'displayNote' => '\\'1/2 cup chopped green pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 210 => \n array (\n 'id' => 211,\n 'recipe_id' => '22',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup chopped red pepper',\n 'displayNote' => '\\'1/2 cup chopped red pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 211 => \n array (\n 'id' => 212,\n 'recipe_id' => '22',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/2 cup chopped green onion',\n 'displayNote' => '\\'1/2 cup chopped green <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:43',\n 'updated_at' => '2019-01-07 02:06:43',\n ),\n 212 => \n array (\n 'id' => 213,\n 'recipe_id' => '23',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (14 1/2 ounce) can tomatoes and green chilies',\n 'displayNote' => '\\'1 (14 1/2 ounce) can tomatoes and green chilies\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 213 => \n array (\n 'id' => 214,\n 'recipe_id' => '23',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (14 1/2 ounce) can whole canned tomatoes (plus the juice)',\n 'displayNote' => '\\'1 (14 1/2 ounce) can whole canned tomatoes (plus the juice)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 214 => \n array (\n 'id' => 215,\n 'recipe_id' => '23',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 teaspoons jalapenos (canned,diced, not pickled)',\n 'displayNote' => '\\'4 teaspoons jalapenos (canned,diced, not pickled)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 215 => \n array (\n 'id' => 216,\n 'recipe_id' => '23',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/4 cup yellow onion (diced)',\n 'displayNote' => '\\'1/4 cup yellow <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> (diced)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 216 => \n array (\n 'id' => 217,\n 'recipe_id' => '23',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1/2-3/4 teaspoon garlic salt',\n 'displayNote' => '\\'1/2-3/4 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 217 => \n array (\n 'id' => 218,\n 'recipe_id' => '23',\n 'ingrident' => 'cumin',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon cumin',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/cumin\\\\\\'>cumin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 218 => \n array (\n 'id' => 219,\n 'recipe_id' => '23',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon sugar',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:46',\n 'updated_at' => '2019-01-07 02:06:46',\n ),\n 219 => \n array (\n 'id' => 220,\n 'recipe_id' => '24',\n 'ingrident' => 'tea',\n 'amount' => NULL,\n 'note' => '6 regular tea bags',\n 'displayNote' => '\\'6 regular <a href=\\\\\\'/ingridients/tea\\\\\\'>tea</a> bags\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 220 => \n array (\n 'id' => 221,\n 'recipe_id' => '24',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1/8 teaspoon baking soda',\n 'displayNote' => '\\'1/8 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 221 => \n array (\n 'id' => 222,\n 'recipe_id' => '24',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 cups boiling water',\n 'displayNote' => '\\'2 cups boiling water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 222 => \n array (\n 'id' => 223,\n 'recipe_id' => '24',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 1/2-2 cups sugar',\n 'displayNote' => '\\'1 1/2-2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 223 => \n array (\n 'id' => 224,\n 'recipe_id' => '24',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '6 cups cold water',\n 'displayNote' => '\\'6 cups cold water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:50',\n 'updated_at' => '2019-01-07 02:06:50',\n ),\n 224 => \n array (\n 'id' => 225,\n 'recipe_id' => '25',\n 'ingrident' => 'cracker',\n 'amount' => NULL,\n 'note' => '1 1/2 cups graham cracker crumbs',\n 'displayNote' => '\\'1 1/2 cups graham <a href=\\\\\\'/ingridients/cracker\\\\\\'>cracker</a> crumbs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:53',\n 'updated_at' => '2019-01-07 02:06:53',\n ),\n 225 => \n array (\n 'id' => 226,\n 'recipe_id' => '25',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '5 tablespoons butter, melted ',\n 'displayNote' => '\\'5 tablespoons <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:53',\n 'updated_at' => '2019-01-07 02:06:53',\n ),\n 226 => \n array (\n 'id' => 227,\n 'recipe_id' => '25',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar, plus ',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , plus \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:53',\n 'updated_at' => '2019-01-07 02:06:53',\n ),\n 227 => \n array (\n 'id' => 228,\n 'recipe_id' => '25',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 tablespoon sugar',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 228 => \n array (\n 'id' => 229,\n 'recipe_id' => '25',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '3 (8 ounce) packages cream cheese',\n 'displayNote' => '\\'3 (8 ounce) packages <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 229 => \n array (\n 'id' => 230,\n 'recipe_id' => '25',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 230 => \n array (\n 'id' => 231,\n 'recipe_id' => '25',\n 'ingrident' => 'pumpkin',\n 'amount' => NULL,\n 'note' => '1 cup canned pumpkin',\n 'displayNote' => '\\'1 cup canned <a href=\\\\\\'/ingridients/pumpkin\\\\\\'>pumpkin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 231 => \n array (\n 'id' => 232,\n 'recipe_id' => '25',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 eggs',\n 'displayNote' => '\\'3 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 232 => \n array (\n 'id' => 233,\n 'recipe_id' => '25',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon cinnamon',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 233 => \n array (\n 'id' => 234,\n 'recipe_id' => '25',\n 'ingrident' => 'nutmeg',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon nutmeg',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/nutmeg\\\\\\'>nutmeg</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 234 => \n array (\n 'id' => 235,\n 'recipe_id' => '25',\n 'ingrident' => 'allspice',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon allspice',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/allspice\\\\\\'>allspice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 235 => \n array (\n 'id' => 236,\n 'recipe_id' => '25',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => ' whipped cream',\n 'displayNote' => '\\' whipped <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:54',\n 'updated_at' => '2019-01-07 02:06:54',\n ),\n 236 => \n array (\n 'id' => 237,\n 'recipe_id' => '26',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/3 cup flour',\n 'displayNote' => '\\'1/3 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 237 => \n array (\n 'id' => 238,\n 'recipe_id' => '26',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 238 => \n array (\n 'id' => 239,\n 'recipe_id' => '26',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 239 => \n array (\n 'id' => 240,\n 'recipe_id' => '26',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 1/2 lbs boneless beef short ribs',\n 'displayNote' => '\\'2 1/2 lbs boneless beef short ribs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 240 => \n array (\n 'id' => 241,\n 'recipe_id' => '26',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/4 cup butter',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 241 => \n array (\n 'id' => 242,\n 'recipe_id' => '26',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 cup chopped onion',\n 'displayNote' => '\\'1 cup chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 242 => \n array (\n 'id' => 243,\n 'recipe_id' => '26',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '1 cup beef broth',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 243 => \n array (\n 'id' => 244,\n 'recipe_id' => '26',\n 'ingrident' => 'red wine',\n 'amount' => NULL,\n 'note' => '3/4 cup red wine vinegar',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/red-wine\\\\\\'>red wine</a> <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 244 => \n array (\n 'id' => 245,\n 'recipe_id' => '26',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup brown sugar',\n 'displayNote' => '\\'3/4 cup brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 245 => \n array (\n 'id' => 246,\n 'recipe_id' => '26',\n 'ingrident' => 'chili sauce',\n 'amount' => NULL,\n 'note' => '1/4 cup chili sauce',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/chili-sauce\\\\\\'>chili sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 246 => \n array (\n 'id' => 247,\n 'recipe_id' => '26',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 tablespoons catsup',\n 'displayNote' => '\\'2 tablespoons catsup\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 247 => \n array (\n 'id' => 248,\n 'recipe_id' => '26',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '2 tablespoons Worcestershire sauce',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 248 => \n array (\n 'id' => 249,\n 'recipe_id' => '26',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 tablespoons minced garlic',\n 'displayNote' => '\\'2 tablespoons minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:58',\n 'updated_at' => '2019-01-07 02:06:58',\n ),\n 249 => \n array (\n 'id' => 250,\n 'recipe_id' => '26',\n 'ingrident' => 'chili powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon chili powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/chili-powder\\\\\\'>chili powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:06:59',\n 'updated_at' => '2019-01-07 02:06:59',\n ),\n 250 => \n array (\n 'id' => 251,\n 'recipe_id' => '27',\n 'ingrident' => 'cereal',\n 'amount' => NULL,\n 'note' => '9 cups Chex cereal (any kind)',\n 'displayNote' => '\\'9 cups chex <a href=\\\\\\'/ingridients/cereal\\\\\\'>cereal</a> (any kind)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 251 => \n array (\n 'id' => 252,\n 'recipe_id' => '27',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 cup semi-sweet chocolate chips or 6 ounces semi-sweet chocolate chips, melted ',\n 'displayNote' => '\\'1 cup semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> or 6 ounces semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 252 => \n array (\n 'id' => 253,\n 'recipe_id' => '27',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => '1/2 cup smooth peanut butter, melted ',\n 'displayNote' => '\\'1/2 cup smooth <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 253 => \n array (\n 'id' => 254,\n 'recipe_id' => '27',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/4 cup butter, melted ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 254 => \n array (\n 'id' => 255,\n 'recipe_id' => '27',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 -2 teaspoon vanilla',\n 'displayNote' => '\\'1 -2 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 255 => \n array (\n 'id' => 256,\n 'recipe_id' => '27',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 1/2 cups powdered sugar',\n 'displayNote' => '\\'1 1/2 cups powdered <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:01',\n 'updated_at' => '2019-01-07 02:07:01',\n ),\n 256 => \n array (\n 'id' => 257,\n 'recipe_id' => '28',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 large ripe bananas',\n 'displayNote' => '\\'3 large ripe bananas\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 257 => \n array (\n 'id' => 258,\n 'recipe_id' => '28',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup sugar',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 258 => \n array (\n 'id' => 259,\n 'recipe_id' => '28',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 egg, slightly beaten ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> , slightly beaten \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 259 => \n array (\n 'id' => 260,\n 'recipe_id' => '28',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/3 cup melted butter',\n 'displayNote' => '\\'1/3 cup melted <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 260 => \n array (\n 'id' => 261,\n 'recipe_id' => '28',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup blueberries',\n 'displayNote' => '\\'1 cup blueberries\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:04',\n 'updated_at' => '2019-01-07 02:07:04',\n ),\n 261 => \n array (\n 'id' => 262,\n 'recipe_id' => '28',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:05',\n 'updated_at' => '2019-01-07 02:07:05',\n ),\n 262 => \n array (\n 'id' => 263,\n 'recipe_id' => '28',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:05',\n 'updated_at' => '2019-01-07 02:07:05',\n ),\n 263 => \n array (\n 'id' => 264,\n 'recipe_id' => '28',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:05',\n 'updated_at' => '2019-01-07 02:07:05',\n ),\n 264 => \n array (\n 'id' => 265,\n 'recipe_id' => '28',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 1/2 cups flour',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:05',\n 'updated_at' => '2019-01-07 02:07:05',\n ),\n 265 => \n array (\n 'id' => 266,\n 'recipe_id' => '29',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => '1 cup peanut butter (your choice, smooth or chunky)',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> (your choice, smooth or chunky)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:07',\n 'updated_at' => '2019-01-07 02:07:07',\n ),\n 266 => \n array (\n 'id' => 267,\n 'recipe_id' => '29',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup granulated sugar',\n 'displayNote' => '\\'1 cup granulated <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:07',\n 'updated_at' => '2019-01-07 02:07:07',\n ),\n 267 => \n array (\n 'id' => 268,\n 'recipe_id' => '29',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 large egg',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:07',\n 'updated_at' => '2019-01-07 02:07:07',\n ),\n 268 => \n array (\n 'id' => 269,\n 'recipe_id' => '29',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => ' sugar, for rolling ',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , for rolling \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:07',\n 'updated_at' => '2019-01-07 02:07:07',\n ),\n 269 => \n array (\n 'id' => 270,\n 'recipe_id' => '30',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 (10 1/2 ounce) can campbells French onion soup',\n 'displayNote' => '\\'1 (10 1/2 ounce) can campbells french <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> soup\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:09',\n 'updated_at' => '2019-01-07 02:07:09',\n ),\n 270 => \n array (\n 'id' => 271,\n 'recipe_id' => '30',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '1 1/2 lbs ground beef',\n 'displayNote' => '\\'1 1/2 lbs <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:09',\n 'updated_at' => '2019-01-07 02:07:09',\n ),\n 271 => \n array (\n 'id' => 272,\n 'recipe_id' => '30',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup dry breadcrumbs',\n 'displayNote' => '\\'1/2 cup dry breadcrumbs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 272 => \n array (\n 'id' => 273,\n 'recipe_id' => '30',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 egg',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 273 => \n array (\n 'id' => 274,\n 'recipe_id' => '30',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon salt',\n 'displayNote' => '\\'1/4 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 274 => \n array (\n 'id' => 275,\n 'recipe_id' => '30',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/8 teaspoon ground black pepper, to taste ',\n 'displayNote' => '\\'1/8 teaspoon ground black pepper, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 275 => \n array (\n 'id' => 276,\n 'recipe_id' => '30',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 tablespoon all-purpose flour',\n 'displayNote' => '\\'1 tablespoon all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 276 => \n array (\n 'id' => 277,\n 'recipe_id' => '30',\n 'ingrident' => 'ketchup',\n 'amount' => NULL,\n 'note' => '1/4 cup ketchup',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/ketchup\\\\\\'>ketchup</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 277 => \n array (\n 'id' => 278,\n 'recipe_id' => '30',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '1 -3 teaspoon Worcestershire sauce, to taste ',\n 'displayNote' => '\\'1 -3 teaspoon <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 278 => \n array (\n 'id' => 279,\n 'recipe_id' => '30',\n 'ingrident' => 'mustard',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon mustard powder',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/mustard-1\\\\\\'>mustard</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 279 => \n array (\n 'id' => 280,\n 'recipe_id' => '30',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup water',\n 'displayNote' => '\\'1/4 cup water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:10',\n 'updated_at' => '2019-01-07 02:07:10',\n ),\n 280 => \n array (\n 'id' => 281,\n 'recipe_id' => '31',\n 'ingrident' => 'potato',\n 'amount' => NULL,\n 'note' => '1 large potato, per person ',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/potato\\\\\\'>potato</a> , per person \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 281 => \n array (\n 'id' => 282,\n 'recipe_id' => '31',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped celery, per person (include leaves)',\n 'displayNote' => '\\'1/4 cup chopped <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> , per person (include leaves)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 282 => \n array (\n 'id' => 283,\n 'recipe_id' => '31',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped onion, per person ',\n 'displayNote' => '\\'1/4 cup chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , per person \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 283 => \n array (\n 'id' => 284,\n 'recipe_id' => '31',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/4-1/2 cup half-and-half or 1/4-1/2 cup cream',\n 'displayNote' => '\\'1/4-1/2 cup half-and-half or 1/4-1/2 cup <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 284 => \n array (\n 'id' => 285,\n 'recipe_id' => '31',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' salt and pepper, to taste ',\n 'displayNote' => '\\' salt and pepper, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:13',\n 'updated_at' => '2019-01-07 02:07:13',\n ),\n 285 => \n array (\n 'id' => 286,\n 'recipe_id' => '32',\n 'ingrident' => 'mushroom',\n 'amount' => NULL,\n 'note' => '1 (10 3/4 ounce) can condensed cream of mushroom soup',\n 'displayNote' => '\\'1 (10 3/4 ounce) can condensed <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> of <a href=\\\\\\'/ingridients/mushroom\\\\\\'>mushroom</a> soup\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 286 => \n array (\n 'id' => 287,\n 'recipe_id' => '32',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1/4 cup milk',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 287 => \n array (\n 'id' => 288,\n 'recipe_id' => '32',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/8 teaspoon black pepper',\n 'displayNote' => '\\'1/8 teaspoon black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 288 => \n array (\n 'id' => 289,\n 'recipe_id' => '32',\n 'ingrident' => 'green beans',\n 'amount' => NULL,\n 'note' => '2 (14 1/2 ounce) cans cut green beans, drained ',\n 'displayNote' => '\\'2 (14 1/2 ounce) cans cut <a href=\\\\\\'/ingridients/green-beans\\\\\\'>green beans</a> , drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 289 => \n array (\n 'id' => 290,\n 'recipe_id' => '32',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 1/3 cups French-fried onions (French\\'s)',\n 'displayNote' => '\\'1 1/3 cups french-fried onions (french\\\\\\'s)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:21',\n 'updated_at' => '2019-01-07 02:07:21',\n ),\n 290 => \n array (\n 'id' => 291,\n 'recipe_id' => '33',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1 tablespoon butter',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 291 => \n array (\n 'id' => 292,\n 'recipe_id' => '33',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/2 cup finely chopped onion',\n 'displayNote' => '\\'1/2 cup finely chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 292 => \n array (\n 'id' => 293,\n 'recipe_id' => '33',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '1/3 cup finely chopped celery',\n 'displayNote' => '\\'1/3 cup finely chopped <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 293 => \n array (\n 'id' => 294,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon ground pepper',\n 'displayNote' => '\\'1/2 teaspoon ground pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 294 => \n array (\n 'id' => 295,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 295 => \n array (\n 'id' => 296,\n 'recipe_id' => '33',\n 'ingrident' => 'peas',\n 'amount' => NULL,\n 'note' => '3/4 cup frozen peas',\n 'displayNote' => '\\'3/4 cup frozen <a href=\\\\\\'/ingridients/peas\\\\\\'>peas</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 296 => \n array (\n 'id' => 297,\n 'recipe_id' => '33',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '3/4 cup carrot (I use the pre-cut matchstick carrots)',\n 'displayNote' => '\\'3/4 cup <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> (i use the pre-cut matchstick <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> s)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 297 => \n array (\n 'id' => 298,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '8 ounces sliced mushrooms',\n 'displayNote' => '\\'8 ounces sliced mushrooms\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 298 => \n array (\n 'id' => 299,\n 'recipe_id' => '33',\n 'ingrident' => 'sherry',\n 'amount' => NULL,\n 'note' => '1/2 cup white wine (or sherry)',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/white-wine\\\\\\'>white wine</a> (or <a href=\\\\\\'/ingridients/sherry\\\\\\'>sherry</a> )\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 299 => \n array (\n 'id' => 300,\n 'recipe_id' => '33',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/2 cup flour',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 300 => \n array (\n 'id' => 301,\n 'recipe_id' => '33',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '4 cups chicken broth (or turkey broth)',\n 'displayNote' => '\\'4 cups <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> (or <a href=\\\\\\'/ingridients/turkey\\\\\\'>turkey</a> broth)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 301 => \n array (\n 'id' => 302,\n 'recipe_id' => '33',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1 cup parmesan cheese (divided)',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese (divided)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 302 => \n array (\n 'id' => 303,\n 'recipe_id' => '33',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '4 ounces light cream cheese (low fat)',\n 'displayNote' => '\\'4 ounces light <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> (low fat)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 303 => \n array (\n 'id' => 304,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (8 ounce) package thin spaghetti (cooked)',\n 'displayNote' => '\\'1 (8 ounce) package thin spaghetti (cooked)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 304 => \n array (\n 'id' => 305,\n 'recipe_id' => '33',\n 'ingrident' => 'turkey',\n 'amount' => NULL,\n 'note' => '2 cups turkey meat, cooked and shredded (or chicken)',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/turkey\\\\\\'>turkey</a> meat, cooked and shredded (or chicken)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 305 => \n array (\n 'id' => 306,\n 'recipe_id' => '33',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup breadcrumbs (I use panko)',\n 'displayNote' => '\\'1/2 cup breadcrumbs (i use panko)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:26',\n 'updated_at' => '2019-01-07 02:07:26',\n ),\n 306 => \n array (\n 'id' => 307,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb beef stew meat',\n 'displayNote' => '\\'1 lb beef stew meat\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:31',\n 'updated_at' => '2019-01-07 02:07:31',\n ),\n 307 => \n array (\n 'id' => 308,\n 'recipe_id' => '34',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:31',\n 'updated_at' => '2019-01-07 02:07:31',\n ),\n 308 => \n array (\n 'id' => 309,\n 'recipe_id' => '34',\n 'ingrident' => 'celery',\n 'amount' => NULL,\n 'note' => '3 celery ribs',\n 'displayNote' => '\\'3 <a href=\\\\\\'/ingridients/celery\\\\\\'>celery</a> ribs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 309 => \n array (\n 'id' => 310,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '10 baby carrots (or a couple regular carrots)',\n 'displayNote' => '\\'10 baby carrots (or a couple regular carrots)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 310 => \n array (\n 'id' => 311,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 potatoes (peeled if you like)',\n 'displayNote' => '\\'2 potatoes (peeled if you like)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 311 => \n array (\n 'id' => 312,\n 'recipe_id' => '34',\n 'ingrident' => 'corn',\n 'amount' => NULL,\n 'note' => '1 cup frozen corn',\n 'displayNote' => '\\'1 cup frozen <a href=\\\\\\'/ingridients/corn\\\\\\'>corn</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 312 => \n array (\n 'id' => 313,\n 'recipe_id' => '34',\n 'ingrident' => 'peas',\n 'amount' => NULL,\n 'note' => '1 cup frozen peas',\n 'displayNote' => '\\'1 cup frozen <a href=\\\\\\'/ingridients/peas\\\\\\'>peas</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 313 => \n array (\n 'id' => 314,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 (14 ounce) cans diced tomatoes (I use salt-free)',\n 'displayNote' => '\\'2 (14 ounce) cans diced tomatoes (i use salt-free)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 314 => \n array (\n 'id' => 315,\n 'recipe_id' => '34',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '3 1/2 cups beef broth (or 2 14-oz cans)',\n 'displayNote' => '\\'3 1/2 cups <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> (or 2 14-oz cans)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 315 => \n array (\n 'id' => 316,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 small bay leaves',\n 'displayNote' => '\\'2 small bay leaves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 316 => \n array (\n 'id' => 317,\n 'recipe_id' => '34',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 teaspoons garlic powder',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 317 => \n array (\n 'id' => 318,\n 'recipe_id' => '34',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '2 tablespoons olive oil (or any cooking oil)',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil (or any cooking oil)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 318 => \n array (\n 'id' => 319,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 cups water',\n 'displayNote' => '\\'4 cups water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 319 => \n array (\n 'id' => 320,\n 'recipe_id' => '34',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 teaspoons hot pepper sauce',\n 'displayNote' => '\\'2 teaspoons hot pepper sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:32',\n 'updated_at' => '2019-01-07 02:07:32',\n ),\n 320 => \n array (\n 'id' => 321,\n 'recipe_id' => '35',\n 'ingrident' => 'flax',\n 'amount' => NULL,\n 'note' => '2 tablespoons ground flax seeds',\n 'displayNote' => '\\'2 tablespoons ground <a href=\\\\\\'/ingridients/flax\\\\\\'>flax</a> seeds\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 321 => \n array (\n 'id' => 322,\n 'recipe_id' => '35',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '6 tablespoons water',\n 'displayNote' => '\\'6 tablespoons water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 322 => \n array (\n 'id' => 323,\n 'recipe_id' => '35',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 cup all-purpose flour',\n 'displayNote' => '\\'1 cup all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 323 => \n array (\n 'id' => 324,\n 'recipe_id' => '35',\n 'ingrident' => 'cornmeal',\n 'amount' => NULL,\n 'note' => '1 cup cornmeal',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/cornmeal\\\\\\'>cornmeal</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 324 => \n array (\n 'id' => 325,\n 'recipe_id' => '35',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup sugar',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:36',\n 'updated_at' => '2019-01-07 02:07:36',\n ),\n 325 => \n array (\n 'id' => 326,\n 'recipe_id' => '35',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '4 teaspoons baking powder',\n 'displayNote' => '\\'4 teaspoons <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:37',\n 'updated_at' => '2019-01-07 02:07:37',\n ),\n 326 => \n array (\n 'id' => 327,\n 'recipe_id' => '35',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 teaspoon table salt',\n 'displayNote' => '\\'3/4 teaspoon table salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:37',\n 'updated_at' => '2019-01-07 02:07:37',\n ),\n 327 => \n array (\n 'id' => 328,\n 'recipe_id' => '35',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup soymilk',\n 'displayNote' => '\\'1 cup soymilk\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:37',\n 'updated_at' => '2019-01-07 02:07:37',\n ),\n 328 => \n array (\n 'id' => 329,\n 'recipe_id' => '35',\n 'ingrident' => 'canola oil',\n 'amount' => NULL,\n 'note' => '1/4 cup canola oil',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/canola-oil\\\\\\'>canola oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:37',\n 'updated_at' => '2019-01-07 02:07:37',\n ),\n 329 => \n array (\n 'id' => 330,\n 'recipe_id' => '36',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '1/4 cup balsamic vinegar',\n 'displayNote' => '\\'1/4 cup balsamic <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 330 => \n array (\n 'id' => 331,\n 'recipe_id' => '36',\n 'ingrident' => 'soy sauce',\n 'amount' => NULL,\n 'note' => '1/4 cup soy sauce',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/soy-sauce\\\\\\'>soy sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 331 => \n array (\n 'id' => 332,\n 'recipe_id' => '36',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '2 tablespoons Worcestershire sauce',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 332 => \n array (\n 'id' => 333,\n 'recipe_id' => '36',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '1/4 cup olive oil',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 333 => \n array (\n 'id' => 334,\n 'recipe_id' => '36',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 garlic cloves, Crushed ',\n 'displayNote' => '\\'2 <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> cloves, crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 334 => \n array (\n 'id' => 335,\n 'recipe_id' => '36',\n 'ingrident' => 'rosemary',\n 'amount' => NULL,\n 'note' => '1 teaspoon rosemary',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/rosemary\\\\\\'>rosemary</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 335 => \n array (\n 'id' => 336,\n 'recipe_id' => '36',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon fresh ground black pepper',\n 'displayNote' => '\\'1/4 teaspoon fresh ground black pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 336 => \n array (\n 'id' => 337,\n 'recipe_id' => '36',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 lbs london broil beef (approx)',\n 'displayNote' => '\\'2 lbs london broil beef (approx)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:44',\n 'updated_at' => '2019-01-07 02:07:44',\n ),\n 337 => \n array (\n 'id' => 338,\n 'recipe_id' => '37',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 fresh garlic cloves, minced then crushed ',\n 'displayNote' => '\\'2 fresh <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> cloves, minced then crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 338 => \n array (\n 'id' => 339,\n 'recipe_id' => '37',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon salt',\n 'displayNote' => '\\'1/4 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 339 => \n array (\n 'id' => 340,\n 'recipe_id' => '37',\n 'ingrident' => 'mustard',\n 'amount' => NULL,\n 'note' => '1 1/2 teaspoons Dijon mustard (Grey poupon)',\n 'displayNote' => '\\'1 1/2 teaspoons dijon <a href=\\\\\\'/ingridients/mustard-1\\\\\\'>mustard</a> (grey poupon)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 340 => \n array (\n 'id' => 341,\n 'recipe_id' => '37',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '1/2 cup extra virgin olive oil',\n 'displayNote' => '\\'1/2 cup extra virgin <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 341 => \n array (\n 'id' => 342,\n 'recipe_id' => '37',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '2 tablespoons fresh lemon juice (not bottled)',\n 'displayNote' => '\\'2 tablespoons fresh <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> juice (not bottled)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 342 => \n array (\n 'id' => 343,\n 'recipe_id' => '37',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon sugar',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 343 => \n array (\n 'id' => 344,\n 'recipe_id' => '37',\n 'ingrident' => 'red wine',\n 'amount' => NULL,\n 'note' => '5 tablespoons red wine vinegar',\n 'displayNote' => '\\'5 tablespoons <a href=\\\\\\'/ingridients/red-wine\\\\\\'>red wine</a> <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 344 => \n array (\n 'id' => 345,\n 'recipe_id' => '37',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon basil leaves',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> leaves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 345 => \n array (\n 'id' => 346,\n 'recipe_id' => '37',\n 'ingrident' => 'oregano',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon oregano leaves',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/oregano\\\\\\'>oregano</a> leaves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:50',\n 'updated_at' => '2019-01-07 02:07:50',\n ),\n 346 => \n array (\n 'id' => 347,\n 'recipe_id' => '38',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 eggs',\n 'displayNote' => '\\'4 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 347 => \n array (\n 'id' => 348,\n 'recipe_id' => '38',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 348 => \n array (\n 'id' => 349,\n 'recipe_id' => '38',\n 'ingrident' => 'pumpkin',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) can pumpkin',\n 'displayNote' => '\\'1 (16 ounce) can <a href=\\\\\\'/ingridients/pumpkin\\\\\\'>pumpkin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 349 => \n array (\n 'id' => 350,\n 'recipe_id' => '38',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla extract',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> extract\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 350 => \n array (\n 'id' => 351,\n 'recipe_id' => '38',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '1 1/4 cups vegetable oil (yes, 1 1/4 cups)',\n 'displayNote' => '\\'1 1/4 cups <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> (yes, 1 1/4 cups)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 351 => \n array (\n 'id' => 352,\n 'recipe_id' => '38',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '3 cups flour',\n 'displayNote' => '\\'3 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 352 => \n array (\n 'id' => 353,\n 'recipe_id' => '38',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '2 teaspoons baking soda',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 353 => \n array (\n 'id' => 354,\n 'recipe_id' => '38',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '2 teaspoons baking powder',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 354 => \n array (\n 'id' => 355,\n 'recipe_id' => '38',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '2 teaspoons cinnamon',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 355 => \n array (\n 'id' => 356,\n 'recipe_id' => '38',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 356 => \n array (\n 'id' => 357,\n 'recipe_id' => '38',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '12 ounces semi-sweet chocolate chips (Regular or mini, I like mini best)',\n 'displayNote' => '\\'12 ounces semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> (regular or mini, i like mini best)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:55',\n 'updated_at' => '2019-01-07 02:07:55',\n ),\n 357 => \n array (\n 'id' => 358,\n 'recipe_id' => '39',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (9 ounce) box barilla no-boil lasagna noodles',\n 'displayNote' => '\\'1 (9 ounce) box barilla no-boil lasagna noodles\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 358 => \n array (\n 'id' => 359,\n 'recipe_id' => '39',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs',\n 'displayNote' => '\\'2 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 359 => \n array (\n 'id' => 360,\n 'recipe_id' => '39',\n 'ingrident' => 'ricotta',\n 'amount' => NULL,\n 'note' => '1 (15 ounce) container ricotta cheese',\n 'displayNote' => '\\'1 (15 ounce) container <a href=\\\\\\'/ingridients/ricotta\\\\\\'>ricotta</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 360 => \n array (\n 'id' => 361,\n 'recipe_id' => '39',\n 'ingrident' => 'mozzarella',\n 'amount' => NULL,\n 'note' => '4 cups shredded mozzarella cheese',\n 'displayNote' => '\\'4 cups shredded <a href=\\\\\\'/ingridients/mozzarella\\\\\\'>mozzarella</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 361 => \n array (\n 'id' => 362,\n 'recipe_id' => '39',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1/2 cup parmesan cheese',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:57',\n 'updated_at' => '2019-01-07 02:07:57',\n ),\n 362 => \n array (\n 'id' => 363,\n 'recipe_id' => '39',\n 'ingrident' => 'sausage',\n 'amount' => NULL,\n 'note' => '1 lb ground beef or 1 lb sausage, browned ',\n 'displayNote' => '\\'1 lb <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> or 1 lb <a href=\\\\\\'/ingridients/sausage\\\\\\'>sausage</a> , browned \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:58',\n 'updated_at' => '2019-01-07 02:07:58',\n ),\n 363 => \n array (\n 'id' => 364,\n 'recipe_id' => '39',\n 'ingrident' => 'pasta',\n 'amount' => NULL,\n 'note' => '2 (24 ounce) jars spaghetti sauce or 2 (24 ounce) jars pasta sauce',\n 'displayNote' => '\\'2 (24 ounce) jars spaghetti sauce or 2 (24 ounce) jars <a href=\\\\\\'/ingridients/pasta\\\\\\'>pasta</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:58',\n 'updated_at' => '2019-01-07 02:07:58',\n ),\n 364 => \n array (\n 'id' => 365,\n 'recipe_id' => '39',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => ' parsley (to garnish)',\n 'displayNote' => '\\' <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> (to garnish)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:07:58',\n 'updated_at' => '2019-01-07 02:07:58',\n ),\n 365 => \n array (\n 'id' => 366,\n 'recipe_id' => '40',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 cups all-purpose flour',\n 'displayNote' => '\\'2 cups all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 366 => \n array (\n 'id' => 367,\n 'recipe_id' => '40',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 tablespoon baking powder',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 367 => \n array (\n 'id' => 368,\n 'recipe_id' => '40',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 368 => \n array (\n 'id' => 369,\n 'recipe_id' => '40',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 tablespoons butter',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 369 => \n array (\n 'id' => 370,\n 'recipe_id' => '40',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:01',\n 'updated_at' => '2019-01-07 02:08:01',\n ),\n 370 => \n array (\n 'id' => 371,\n 'recipe_id' => '41',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 cups sugar',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 371 => \n array (\n 'id' => 372,\n 'recipe_id' => '41',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup margarine',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 372 => \n array (\n 'id' => 373,\n 'recipe_id' => '41',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1/2 cup milk',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 373 => \n array (\n 'id' => 374,\n 'recipe_id' => '41',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => '1 cup peanut butter',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 374 => \n array (\n 'id' => 375,\n 'recipe_id' => '41',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 375 => \n array (\n 'id' => 376,\n 'recipe_id' => '41',\n 'ingrident' => 'rolled oats',\n 'amount' => NULL,\n 'note' => '3 cups rolled oats (old fashioned)',\n 'displayNote' => '\\'3 cups <a href=\\\\\\'/ingridients/rolled-oats\\\\\\'>rolled oats</a> (old fashioned)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:07',\n 'updated_at' => '2019-01-07 02:08:07',\n ),\n 376 => \n array (\n 'id' => 377,\n 'recipe_id' => '42',\n 'ingrident' => 'haddock',\n 'amount' => NULL,\n 'note' => '4 cod fish fillets or 4 haddock fillets',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/cod\\\\\\'>cod</a> <a href=\\\\\\'/ingridients/fish-fillets\\\\\\'>fish fillets</a> or 4 <a href=\\\\\\'/ingridients/haddock\\\\\\'>haddock</a> fillets\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 377 => \n array (\n 'id' => 378,\n 'recipe_id' => '42',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '6 ounces plain flour',\n 'displayNote' => '\\'6 ounces plain <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 378 => \n array (\n 'id' => 379,\n 'recipe_id' => '42',\n 'ingrident' => 'bicarbonate of soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon bicarbonate of soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/bicarbonate-of-soda\\\\\\'>bicarbonate of soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 379 => \n array (\n 'id' => 380,\n 'recipe_id' => '42',\n 'ingrident' => 'beer',\n 'amount' => NULL,\n 'note' => '1 (8 fluid ounce) bottle british beer, Small ',\n 'displayNote' => '\\'1 (8 fluid ounce) bottle british <a href=\\\\\\'/ingridients/beer\\\\\\'>beer</a> , small \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 380 => \n array (\n 'id' => 381,\n 'recipe_id' => '42',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '1/2 lemon, juice of',\n 'displayNote' => '\\'1/2 <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> , juice of\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 381 => \n array (\n 'id' => 382,\n 'recipe_id' => '42',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' salt & pepper',\n 'displayNote' => '\\' salt & pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 382 => \n array (\n 'id' => 383,\n 'recipe_id' => '42',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => ' extra flour',\n 'displayNote' => '\\' extra <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 383 => \n array (\n 'id' => 384,\n 'recipe_id' => '42',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 lbs potatoes, peeled & chipped ',\n 'displayNote' => '\\'3 lbs potatoes, peeled & chipped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 384 => \n array (\n 'id' => 385,\n 'recipe_id' => '42',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' good quality cooking fat or oil',\n 'displayNote' => '\\' good quality cooking fat or oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:12',\n 'updated_at' => '2019-01-07 02:08:12',\n ),\n 385 => \n array (\n 'id' => 386,\n 'recipe_id' => '43',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/2 cup butter',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 386 => \n array (\n 'id' => 387,\n 'recipe_id' => '43',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '8 ounces cream cheese',\n 'displayNote' => '\\'8 ounces <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 387 => \n array (\n 'id' => 388,\n 'recipe_id' => '43',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '8 ounces half-and-half cream',\n 'displayNote' => '\\'8 ounces half-and-half <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 388 => \n array (\n 'id' => 389,\n 'recipe_id' => '43',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1/4 cup parmesan cheese',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 389 => \n array (\n 'id' => 390,\n 'recipe_id' => '43',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1 teaspoon garlic powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 390 => \n array (\n 'id' => 391,\n 'recipe_id' => '43',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' black pepper (to taste)',\n 'displayNote' => '\\' black pepper (to taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:25',\n 'updated_at' => '2019-01-07 02:08:25',\n ),\n 391 => \n array (\n 'id' => 392,\n 'recipe_id' => '44',\n 'ingrident' => 'rice',\n 'amount' => NULL,\n 'note' => '1 1/2 cups long grain brown rice',\n 'displayNote' => '\\'1 1/2 cups long grain brown <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:30',\n 'updated_at' => '2019-01-07 02:08:30',\n ),\n 392 => \n array (\n 'id' => 393,\n 'recipe_id' => '44',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 1/2 cups water',\n 'displayNote' => '\\'2 1/2 cups water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:30',\n 'updated_at' => '2019-01-07 02:08:30',\n ),\n 393 => \n array (\n 'id' => 394,\n 'recipe_id' => '44',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1 tablespoon unsalted butter',\n 'displayNote' => '\\'1 tablespoon unsalted <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:30',\n 'updated_at' => '2019-01-07 02:08:30',\n ),\n 394 => \n array (\n 'id' => 395,\n 'recipe_id' => '44',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:30',\n 'updated_at' => '2019-01-07 02:08:30',\n ),\n 395 => \n array (\n 'id' => 396,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '5 large potatoes, cut in bite sized chunks ',\n 'displayNote' => '\\'5 large potatoes, cut in bite sized chunks \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 396 => \n array (\n 'id' => 397,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb kielbasa, sliced ',\n 'displayNote' => '\\'1 lb kielbasa, sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 397 => \n array (\n 'id' => 398,\n 'recipe_id' => '45',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 cup chopped onion',\n 'displayNote' => '\\'1 cup chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 398 => \n array (\n 'id' => 399,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup chopped green pepper',\n 'displayNote' => '\\'1 cup chopped green pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 399 => \n array (\n 'id' => 400,\n 'recipe_id' => '45',\n 'ingrident' => 'vegetable oil',\n 'amount' => NULL,\n 'note' => '2 tablespoons vegetable oil',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/vegetable-oil\\\\\\'>vegetable oil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 400 => \n array (\n 'id' => 401,\n 'recipe_id' => '45',\n 'ingrident' => 'oregano',\n 'amount' => NULL,\n 'note' => '1 teaspoon oregano',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/oregano\\\\\\'>oregano</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 401 => \n array (\n 'id' => 402,\n 'recipe_id' => '45',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 teaspoon basil',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 402 => \n array (\n 'id' => 403,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 403 => \n array (\n 'id' => 404,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon pepper',\n 'displayNote' => '\\'1/4 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 404 => \n array (\n 'id' => 405,\n 'recipe_id' => '45',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 1/2 cups water',\n 'displayNote' => '\\'1 1/2 cups water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 405 => \n array (\n 'id' => 406,\n 'recipe_id' => '45',\n 'ingrident' => 'american cheese',\n 'amount' => NULL,\n 'note' => '1 1/2 cups shredded American cheese',\n 'displayNote' => '\\'1 1/2 cups shredded <a href=\\\\\\'/ingridients/american-cheese\\\\\\'>american cheese</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:34',\n 'updated_at' => '2019-01-07 02:08:34',\n ),\n 406 => \n array (\n 'id' => 407,\n 'recipe_id' => '46',\n 'ingrident' => 'jello',\n 'amount' => NULL,\n 'note' => '2 Jello Instant Vanilla Pudding Mix (small packages)',\n 'displayNote' => '\\'2 <a href=\\\\\\'/ingridients/jello\\\\\\'>jello</a> instant <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> <a href=\\\\\\'/ingridients/pudding-mix\\\\\\'>pudding mix</a> (small packages)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:39',\n 'updated_at' => '2019-01-07 02:08:39',\n ),\n 407 => \n array (\n 'id' => 408,\n 'recipe_id' => '46',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '3 cups milk',\n 'displayNote' => '\\'3 cups <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:39',\n 'updated_at' => '2019-01-07 02:08:39',\n ),\n 408 => \n array (\n 'id' => 409,\n 'recipe_id' => '46',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '8 ounces non-dairy whipped topping',\n 'displayNote' => '\\'8 ounces non-dairy whipped topping\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:39',\n 'updated_at' => '2019-01-07 02:08:39',\n ),\n 409 => \n array (\n 'id' => 410,\n 'recipe_id' => '46',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (16 ounce) box graham crackers (you will have some leftovers)',\n 'displayNote' => '\\'1 (16 ounce) box graham crackers (you will have some leftovers)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:39',\n 'updated_at' => '2019-01-07 02:08:39',\n ),\n 410 => \n array (\n 'id' => 411,\n 'recipe_id' => '46',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 (15 ounce) container chocolate frosting',\n 'displayNote' => '\\'1 (15 ounce) container <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/frosting\\\\\\'>frosting</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:40',\n 'updated_at' => '2019-01-07 02:08:40',\n ),\n 411 => \n array (\n 'id' => 412,\n 'recipe_id' => '47',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '4 cups flour',\n 'displayNote' => '\\'4 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:47',\n 'updated_at' => '2019-01-07 02:08:47',\n ),\n 412 => \n array (\n 'id' => 413,\n 'recipe_id' => '47',\n 'ingrident' => 'baking powder',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking powder',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-powder\\\\\\'>baking powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:47',\n 'updated_at' => '2019-01-07 02:08:47',\n ),\n 413 => \n array (\n 'id' => 414,\n 'recipe_id' => '47',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:47',\n 'updated_at' => '2019-01-07 02:08:47',\n ),\n 414 => \n array (\n 'id' => 415,\n 'recipe_id' => '47',\n 'ingrident' => 'yogurt',\n 'amount' => NULL,\n 'note' => '2 cups plain low-fat yogurt',\n 'displayNote' => '\\'2 cups plain low-fat <a href=\\\\\\'/ingridients/yogurt\\\\\\'>yogurt</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:47',\n 'updated_at' => '2019-01-07 02:08:47',\n ),\n 415 => \n array (\n 'id' => 416,\n 'recipe_id' => '48',\n 'ingrident' => 'shortening',\n 'amount' => NULL,\n 'note' => '1/2 cup shortening',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/shortening\\\\\\'>shortening</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 416 => \n array (\n 'id' => 417,\n 'recipe_id' => '48',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 1/2 cups sugar',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 417 => \n array (\n 'id' => 418,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 eggs',\n 'displayNote' => '\\'2 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 418 => \n array (\n 'id' => 419,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 ounces red food coloring',\n 'displayNote' => '\\'2 ounces red food coloring\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 419 => \n array (\n 'id' => 420,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 tablespoons cocoa (heaping)',\n 'displayNote' => '\\'2 tablespoons cocoa (heaping)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:53',\n 'updated_at' => '2019-01-07 02:08:53',\n ),\n 420 => \n array (\n 'id' => 421,\n 'recipe_id' => '48',\n 'ingrident' => 'buttermilk',\n 'amount' => NULL,\n 'note' => '1 cup buttermilk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/buttermilk\\\\\\'>buttermilk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 421 => \n array (\n 'id' => 422,\n 'recipe_id' => '48',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 1/4 cups cake flour',\n 'displayNote' => '\\'2 1/4 cups cake <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 422 => \n array (\n 'id' => 423,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 423 => \n array (\n 'id' => 424,\n 'recipe_id' => '48',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 424 => \n array (\n 'id' => 425,\n 'recipe_id' => '48',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1 teaspoon baking soda',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 425 => \n array (\n 'id' => 426,\n 'recipe_id' => '48',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '1 teaspoon vinegar',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 426 => \n array (\n 'id' => 427,\n 'recipe_id' => '48',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 427 => \n array (\n 'id' => 428,\n 'recipe_id' => '48',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '3 tablespoons flour',\n 'displayNote' => '\\'3 tablespoons <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 428 => \n array (\n 'id' => 429,\n 'recipe_id' => '48',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup milk',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 429 => \n array (\n 'id' => 430,\n 'recipe_id' => '48',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 430 => \n array (\n 'id' => 431,\n 'recipe_id' => '48',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 teaspoon vanilla',\n 'displayNote' => '\\'1 teaspoon <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 431 => \n array (\n 'id' => 432,\n 'recipe_id' => '48',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1 cup butter (must be butter)',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> (must be <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> )\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:54',\n 'updated_at' => '2019-01-07 02:08:54',\n ),\n 432 => \n array (\n 'id' => 433,\n 'recipe_id' => '49',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '15 large dried chilies (such as Anaheim, New Mexico, California, or pasilla)',\n 'displayNote' => '\\'15 large dried chilies (such as anaheim, new mexico, california, or pasilla)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:56',\n 'updated_at' => '2019-01-07 02:08:56',\n ),\n 433 => \n array (\n 'id' => 434,\n 'recipe_id' => '49',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '4 -5 garlic cloves',\n 'displayNote' => '\\'4 -5 <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> cloves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:56',\n 'updated_at' => '2019-01-07 02:08:56',\n ),\n 434 => \n array (\n 'id' => 435,\n 'recipe_id' => '49',\n 'ingrident' => 'cumin',\n 'amount' => NULL,\n 'note' => '2 teaspoons ground cumin',\n 'displayNote' => '\\'2 teaspoons ground <a href=\\\\\\'/ingridients/cumin\\\\\\'>cumin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:56',\n 'updated_at' => '2019-01-07 02:08:56',\n ),\n 435 => \n array (\n 'id' => 436,\n 'recipe_id' => '49',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt',\n 'displayNote' => '\\'1 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:56',\n 'updated_at' => '2019-01-07 02:08:56',\n ),\n 436 => \n array (\n 'id' => 437,\n 'recipe_id' => '49',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 teaspoons all-purpose flour',\n 'displayNote' => '\\'2 teaspoons all-purpose <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:57',\n 'updated_at' => '2019-01-07 02:08:57',\n ),\n 437 => \n array (\n 'id' => 438,\n 'recipe_id' => '49',\n 'ingrident' => 'shortening',\n 'amount' => NULL,\n 'note' => '2 teaspoons olive oil or 2 teaspoons melted shortening',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil or 2 teaspoons melted <a href=\\\\\\'/ingridients/shortening\\\\\\'>shortening</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:08:57',\n 'updated_at' => '2019-01-07 02:08:57',\n ),\n 438 => \n array (\n 'id' => 439,\n 'recipe_id' => '50',\n 'ingrident' => 'cauliflower',\n 'amount' => NULL,\n 'note' => '1 head cauliflower or 1 head equal amount of pre-cut commercially prepped cauliflower',\n 'displayNote' => '\\'1 head <a href=\\\\\\'/ingridients/cauliflower\\\\\\'>cauliflower</a> or 1 head equal amount of pre-cut commercially prepped <a href=\\\\\\'/ingridients/cauliflower\\\\\\'>cauliflower</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:00',\n 'updated_at' => '2019-01-07 02:09:00',\n ),\n 439 => \n array (\n 'id' => 440,\n 'recipe_id' => '50',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '4 tablespoons olive oil',\n 'displayNote' => '\\'4 tablespoons <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:00',\n 'updated_at' => '2019-01-07 02:09:00',\n ),\n 440 => \n array (\n 'id' => 441,\n 'recipe_id' => '50',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon salt, to taste ',\n 'displayNote' => '\\'1 teaspoon salt, to taste \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:00',\n 'updated_at' => '2019-01-07 02:09:00',\n ),\n 441 => \n array (\n 'id' => 442,\n 'recipe_id' => '51',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '2 lbs ground beef',\n 'displayNote' => '\\'2 lbs <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 442 => \n array (\n 'id' => 443,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 cups chopped onions',\n 'displayNote' => '\\'2 cups chopped onions\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 443 => \n array (\n 'id' => 444,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 cups beef stock',\n 'displayNote' => '\\'4 cups beef stock\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 444 => \n array (\n 'id' => 445,\n 'recipe_id' => '51',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '2 (8 ounce) cans tomato sauce',\n 'displayNote' => '\\'2 (8 ounce) cans <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 445 => \n array (\n 'id' => 446,\n 'recipe_id' => '51',\n 'ingrident' => 'chili powder',\n 'amount' => NULL,\n 'note' => '2 -3 tablespoons chili powder',\n 'displayNote' => '\\'2 -3 tablespoons <a href=\\\\\\'/ingridients/chili-powder\\\\\\'>chili powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 446 => \n array (\n 'id' => 447,\n 'recipe_id' => '51',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '2 tablespoons apple cider vinegar',\n 'displayNote' => '\\'2 tablespoons <a href=\\\\\\'/ingridients/apple\\\\\\'>apple</a> cider <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 447 => \n array (\n 'id' => 448,\n 'recipe_id' => '51',\n 'ingrident' => 'worcestershire',\n 'amount' => NULL,\n 'note' => '2 teaspoons Worcestershire sauce',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/worcestershire\\\\\\'>worcestershire</a> sauce\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 448 => \n array (\n 'id' => 449,\n 'recipe_id' => '51',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1/2 ounce grated unsweetened chocolate or 2 3/4 tablespoons cocoa',\n 'displayNote' => '\\'1/2 ounce grated unsweetened <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> or 2 3/4 tablespoons cocoa\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 449 => \n array (\n 'id' => 450,\n 'recipe_id' => '51',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 teaspoons instant minced garlic',\n 'displayNote' => '\\'2 teaspoons instant minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 450 => \n array (\n 'id' => 451,\n 'recipe_id' => '51',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1 teaspoon ground cinnamon',\n 'displayNote' => '\\'1 teaspoon ground <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:02',\n 'updated_at' => '2019-01-07 02:09:02',\n ),\n 451 => \n array (\n 'id' => 452,\n 'recipe_id' => '51',\n 'ingrident' => 'cumin',\n 'amount' => NULL,\n 'note' => '1 teaspoon ground cumin',\n 'displayNote' => '\\'1 teaspoon ground <a href=\\\\\\'/ingridients/cumin\\\\\\'>cumin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 452 => \n array (\n 'id' => 453,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 453 => \n array (\n 'id' => 454,\n 'recipe_id' => '51',\n 'ingrident' => 'cayenne',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon ground red pepper or 1/2 teaspoon cayenne pepper',\n 'displayNote' => '\\'1/2 teaspoon ground red pepper or 1/2 teaspoon <a href=\\\\\\'/ingridients/cayenne\\\\\\'>cayenne</a> pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 454 => \n array (\n 'id' => 455,\n 'recipe_id' => '51',\n 'ingrident' => 'allspice',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon ground allspice',\n 'displayNote' => '\\'1/4 teaspoon ground <a href=\\\\\\'/ingridients/allspice\\\\\\'>allspice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 455 => \n array (\n 'id' => 456,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon ground cloves',\n 'displayNote' => '\\'1/4 teaspoon ground cloves\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 456 => \n array (\n 'id' => 457,\n 'recipe_id' => '51',\n 'ingrident' => 'bay leaf',\n 'amount' => NULL,\n 'note' => '1 bay leaves or 1/8 teaspoon bay leaf powder',\n 'displayNote' => '\\'1 bay leaves or 1/8 teaspoon <a href=\\\\\\'/ingridients/bay-leaf\\\\\\'>bay leaf</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 457 => \n array (\n 'id' => 458,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '',\n 'displayNote' => '\\'\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 458 => \n array (\n 'id' => 459,\n 'recipe_id' => '51',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => ' chopped onion',\n 'displayNote' => '\\' chopped <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 459 => \n array (\n 'id' => 460,\n 'recipe_id' => '51',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => ' finely shredded cheddar cheese (certainly NOT optional)',\n 'displayNote' => '\\' finely shredded <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese (certainly not optional)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 460 => \n array (\n 'id' => 461,\n 'recipe_id' => '51',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' kidney bean',\n 'displayNote' => '\\' kidney bean\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:03',\n 'updated_at' => '2019-01-07 02:09:03',\n ),\n 461 => \n array (\n 'id' => 462,\n 'recipe_id' => '52',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '2/3 cup butter or 2/3 cup margarine',\n 'displayNote' => '\\'2/3 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or 2/3 cup <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 462 => \n array (\n 'id' => 463,\n 'recipe_id' => '52',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 1/2 cups sugar (reduce to 1-1/4 cups for a less sweeter taste)',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> (reduce to 1-1/4 cups for a less sweeter taste)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 463 => \n array (\n 'id' => 464,\n 'recipe_id' => '52',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup water',\n 'displayNote' => '\\'1/4 cup water\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 464 => \n array (\n 'id' => 465,\n 'recipe_id' => '52',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '4 cups semi-sweet chocolate chips, divided (32 ounces)',\n 'displayNote' => '\\'4 cups semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> , divided (32 ounces)\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 465 => \n array (\n 'id' => 466,\n 'recipe_id' => '52',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 teaspoons vanilla',\n 'displayNote' => '\\'2 teaspoons <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 466 => \n array (\n 'id' => 467,\n 'recipe_id' => '52',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 eggs',\n 'displayNote' => '\\'4 eggs\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 467 => \n array (\n 'id' => 468,\n 'recipe_id' => '52',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1 1/2 cups flour',\n 'displayNote' => '\\'1 1/2 cups <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 468 => \n array (\n 'id' => 469,\n 'recipe_id' => '52',\n 'ingrident' => 'baking soda',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon baking soda',\n 'displayNote' => '\\'1/2 teaspoon <a href=\\\\\\'/ingridients/baking-soda\\\\\\'>baking soda</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 469 => \n array (\n 'id' => 470,\n 'recipe_id' => '52',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 teaspoon salt',\n 'displayNote' => '\\'1/2 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:05',\n 'updated_at' => '2019-01-07 02:09:05',\n ),\n 470 => \n array (\n 'id' => 471,\n 'recipe_id' => '53',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 (8 ounce) package cream cheese, at room temperature ',\n 'displayNote' => '\\'1 (8 ounce) package <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , at room temperature \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 471 => \n array (\n 'id' => 472,\n 'recipe_id' => '53',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 green onions, chopped about 1/2 cup ',\n 'displayNote' => '\\'2 green onions, chopped about 1/2 cup \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 472 => \n array (\n 'id' => 473,\n 'recipe_id' => '53',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped fresh parsley',\n 'displayNote' => '\\'1/4 cup chopped fresh <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 473 => \n array (\n 'id' => 474,\n 'recipe_id' => '53',\n 'ingrident' => 'horseradish',\n 'amount' => NULL,\n 'note' => '2 tablespoons prepared horseradish, drained ',\n 'displayNote' => '\\'2 tablespoons prepared <a href=\\\\\\'/ingridients/horseradish\\\\\\'>horseradish</a> , drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 474 => \n array (\n 'id' => 475,\n 'recipe_id' => '53',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon salt',\n 'displayNote' => '\\'1/4 teaspoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:07',\n 'updated_at' => '2019-01-07 02:09:07',\n ),\n 475 => \n array (\n 'id' => 476,\n 'recipe_id' => '53',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1/4 teaspoon garlic powder',\n 'displayNote' => '\\'1/4 teaspoon <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:08',\n 'updated_at' => '2019-01-07 02:09:08',\n ),\n 476 => \n array (\n 'id' => 477,\n 'recipe_id' => '53',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '8 ounces deli roast beef, sliced ',\n 'displayNote' => '\\'8 ounces deli roast beef, sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:08',\n 'updated_at' => '2019-01-07 02:09:08',\n ),\n 477 => \n array (\n 'id' => 478,\n 'recipe_id' => '53',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 10-inch flour tortillas, cheese flavoured are nice ',\n 'displayNote' => '\\'2 10-inch <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> tortillas, cheese flavoured are nice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:08',\n 'updated_at' => '2019-01-07 02:09:08',\n ),\n 478 => \n array (\n 'id' => 479,\n 'recipe_id' => '54',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup margarine',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 479 => \n array (\n 'id' => 480,\n 'recipe_id' => '54',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small sweet onion, chopped ',\n 'displayNote' => '\\'1 small sweet <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 480 => \n array (\n 'id' => 481,\n 'recipe_id' => '54',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 small green pepper, chopped ',\n 'displayNote' => '\\'1 small green pepper, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 481 => \n array (\n 'id' => 482,\n 'recipe_id' => '54',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 -3 medium tomatoes, chopped ',\n 'displayNote' => '\\'2 -3 medium tomatoes, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 482 => \n array (\n 'id' => 483,\n 'recipe_id' => '54',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 (24 ounce) bag frozen hash brown potatoes',\n 'displayNote' => '\\'1 (24 ounce) bag frozen hash brown potatoes\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 483 => \n array (\n 'id' => 484,\n 'recipe_id' => '54',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '12 eggs, beaten ',\n 'displayNote' => '\\'12 eggs, beaten \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 484 => \n array (\n 'id' => 485,\n 'recipe_id' => '54',\n 'ingrident' => 'sausage',\n 'amount' => NULL,\n 'note' => '1/2 lb cooked crumbled bacon or 1/2-1 lb sausage',\n 'displayNote' => '\\'1/2 lb cooked crumbled <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> or 1/2-1 lb <a href=\\\\\\'/ingridients/sausage\\\\\\'>sausage</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 485 => \n array (\n 'id' => 486,\n 'recipe_id' => '54',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '3 cups cheddar cheese, shredded ',\n 'displayNote' => '\\'3 cups <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese, shredded \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:13',\n 'updated_at' => '2019-01-07 02:09:13',\n ),\n 486 => \n array (\n 'id' => 487,\n 'recipe_id' => '55',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 lbs cross-rib roasts',\n 'displayNote' => '\\'2 lbs cross-rib roasts\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 487 => \n array (\n 'id' => 488,\n 'recipe_id' => '55',\n 'ingrident' => 'vinegar',\n 'amount' => NULL,\n 'note' => '2 tablespoons balsamic vinegar',\n 'displayNote' => '\\'2 tablespoons balsamic <a href=\\\\\\'/ingridients/vinegar\\\\\\'>vinegar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 488 => \n array (\n 'id' => 489,\n 'recipe_id' => '55',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 tablespoons minced garlic',\n 'displayNote' => '\\'2 tablespoons minced <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 489 => \n array (\n 'id' => 490,\n 'recipe_id' => '55',\n 'ingrident' => 'thyme',\n 'amount' => NULL,\n 'note' => '2 teaspoons dried thyme',\n 'displayNote' => '\\'2 teaspoons dried <a href=\\\\\\'/ingridients/thyme\\\\\\'>thyme</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 490 => \n array (\n 'id' => 491,\n 'recipe_id' => '55',\n 'ingrident' => 'rosemary',\n 'amount' => NULL,\n 'note' => '1 teaspoon dried rosemary',\n 'displayNote' => '\\'1 teaspoon dried <a href=\\\\\\'/ingridients/rosemary\\\\\\'>rosemary</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 491 => \n array (\n 'id' => 492,\n 'recipe_id' => '55',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tablespoon salt',\n 'displayNote' => '\\'1 tablespoon salt\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 492 => \n array (\n 'id' => 493,\n 'recipe_id' => '55',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 teaspoon pepper',\n 'displayNote' => '\\'1 teaspoon pepper\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 493 => \n array (\n 'id' => 494,\n 'recipe_id' => '55',\n 'ingrident' => 'olive',\n 'amount' => NULL,\n 'note' => '1 tablespoon olive oil',\n 'displayNote' => '\\'1 tablespoon <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil\\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:09:18',\n 'updated_at' => '2019-01-07 02:09:18',\n ),\n 494 => \n array (\n 'id' => 495,\n 'recipe_id' => '56',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\' 1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 495 => \n array (\n 'id' => 496,\n 'recipe_id' => '56',\n 'ingrident' => 'salmon',\n 'amount' => NULL,\n 'note' => '1 pkg. (4 oz.) smoked salmon, chopped ',\n 'displayNote' => '\\'1 pkg. (4 oz.) smoked <a href=\\\\\\'/ingridients/salmon\\\\\\'>salmon</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 496 => \n array (\n 'id' => 497,\n 'recipe_id' => '56',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/2 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 497 => \n array (\n 'id' => 498,\n 'recipe_id' => '56',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped red onion s ',\n 'displayNote' => '\\'1/4 cup chopped red <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 498 => \n array (\n 'id' => 499,\n 'recipe_id' => '56',\n 'ingrident' => 'dill',\n 'amount' => NULL,\n 'note' => '1 Tbsp. dill weed ',\n 'displayNote' => '\\'1 tbsp. <a href=\\\\\\'/ingridients/dill\\\\\\'>dill</a> weed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:49',\n 'updated_at' => '2019-01-07 02:33:49',\n ),\n 499 => \n array (\n 'id' => 500,\n 'recipe_id' => '57',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 3 Tbsp. MINUTE Tapioca ',\n 'displayNote' => '\\' 3 tbsp. minute tapioca \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n ));\n \\DB::table('recipe_ingridents')->insert(array (\n 0 => \n array (\n 'id' => 501,\n 'recipe_id' => '57',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '2 cups milk ',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n 1 => \n array (\n 'id' => 502,\n 'recipe_id' => '57',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '1 egg, separated ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> , separated \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n 2 => \n array (\n 'id' => 503,\n 'recipe_id' => '57',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '6 Tbsp. sugar, divided ',\n 'displayNote' => '\\'6 tbsp. <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n 3 => \n array (\n 'id' => 504,\n 'recipe_id' => '57',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:33:59',\n 'updated_at' => '2019-01-07 02:33:59',\n ),\n 4 => \n array (\n 'id' => 505,\n 'recipe_id' => '58',\n 'ingrident' => 'avocado',\n 'amount' => NULL,\n 'note' => ' 1 fully ripe avocado, cut in half, divided ',\n 'displayNote' => '\\' 1 fully ripe <a href=\\\\\\'/ingridients/avocado\\\\\\'>avocado</a> , cut in half, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:05',\n 'updated_at' => '2019-01-07 02:34:05',\n ),\n 5 => \n array (\n 'id' => 506,\n 'recipe_id' => '58',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:05',\n 'updated_at' => '2019-01-07 02:34:05',\n ),\n 6 => \n array (\n 'id' => 507,\n 'recipe_id' => '58',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:05',\n 'updated_at' => '2019-01-07 02:34:05',\n ),\n 7 => \n array (\n 'id' => 508,\n 'recipe_id' => '58',\n 'ingrident' => 'taco seasoning',\n 'amount' => NULL,\n 'note' => '2 Tbsp. (1/2 of 1.25-oz. pkg.) TACO BELL® Taco Seasoning Mix ',\n 'displayNote' => '\\'2 tbsp. (1/2 of 1.25-oz. pkg.) taco bellâ® <a href=\\\\\\'/ingridients/taco-seasoning\\\\\\'>taco seasoning</a> mix \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:05',\n 'updated_at' => '2019-01-07 02:34:05',\n ),\n 8 => \n array (\n 'id' => 509,\n 'recipe_id' => '58',\n 'ingrident' => 'salsa',\n 'amount' => NULL,\n 'note' => '3 Tbsp. TACO BELL® Thick & Chunky Salsa ',\n 'displayNote' => '\\'3 tbsp. taco bellâ® thick & chunky <a href=\\\\\\'/ingridients/salsa\\\\\\'>salsa</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:06',\n 'updated_at' => '2019-01-07 02:34:06',\n ),\n 9 => \n array (\n 'id' => 510,\n 'recipe_id' => '58',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '1 small tomato, chopped ',\n 'displayNote' => '\\'1 small <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:06',\n 'updated_at' => '2019-01-07 02:34:06',\n ),\n 10 => \n array (\n 'id' => 511,\n 'recipe_id' => '58',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '3/4 cup KRAFT Shredded Mild Cheddar Cheese ',\n 'displayNote' => '\\'3/4 cup kraft shredded mild <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:06',\n 'updated_at' => '2019-01-07 02:34:06',\n ),\n 11 => \n array (\n 'id' => 512,\n 'recipe_id' => '58',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 green onions, sliced ',\n 'displayNote' => '\\'2 green onions, sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:06',\n 'updated_at' => '2019-01-07 02:34:06',\n ),\n 12 => \n array (\n 'id' => 513,\n 'recipe_id' => '59',\n 'ingrident' => 'pie crust',\n 'amount' => NULL,\n 'note' => ' 1/2 pkg. (15 oz.) ready-to-use refrigerated pie crust s (1 crust) ',\n 'displayNote' => '\\' 1/2 pkg. (15 oz.) ready-to-use refrigerated <a href=\\\\\\'/ingridients/pie-crust\\\\\\'>pie crust</a> s (1 crust) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:14',\n 'updated_at' => '2019-01-07 02:34:14',\n ),\n 13 => \n array (\n 'id' => 514,\n 'recipe_id' => '59',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '2 pkg. (4 oz. each) BAKER&#39;S Semi-Sweet Chocolate, broken into pieces ',\n 'displayNote' => '\\'2 pkg. (4 oz. each) baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , broken into pieces \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:15',\n 'updated_at' => '2019-01-07 02:34:15',\n ),\n 14 => \n array (\n 'id' => 515,\n 'recipe_id' => '59',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/4 cup (1/2 stick) butter, softened ',\n 'displayNote' => '\\'1/4 cup (1/2 stick) <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:15',\n 'updated_at' => '2019-01-07 02:34:15',\n ),\n 15 => \n array (\n 'id' => 516,\n 'recipe_id' => '59',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup firmly packed brown sugar ',\n 'displayNote' => '\\'3/4 cup firmly packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:17',\n 'updated_at' => '2019-01-07 02:34:17',\n ),\n 16 => \n array (\n 'id' => 517,\n 'recipe_id' => '59',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '3 egg s ',\n 'displayNote' => '\\'3 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:17',\n 'updated_at' => '2019-01-07 02:34:17',\n ),\n 17 => \n array (\n 'id' => 518,\n 'recipe_id' => '59',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:17',\n 'updated_at' => '2019-01-07 02:34:17',\n ),\n 18 => \n array (\n 'id' => 519,\n 'recipe_id' => '59',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/4 cup flour ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:18',\n 'updated_at' => '2019-01-07 02:34:18',\n ),\n 19 => \n array (\n 'id' => 520,\n 'recipe_id' => '59',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup chopped PLANTERS Walnuts ',\n 'displayNote' => '\\'1 cup chopped planters walnuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:18',\n 'updated_at' => '2019-01-07 02:34:18',\n ),\n 20 => \n array (\n 'id' => 521,\n 'recipe_id' => '59',\n 'ingrident' => 'walnut',\n 'amount' => NULL,\n 'note' => '1/2 cup PLANTERS Walnut Halves ',\n 'displayNote' => '\\'1/2 cup planters <a href=\\\\\\'/ingridients/walnut-1\\\\\\'>walnut</a> halves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:18',\n 'updated_at' => '2019-01-07 02:34:18',\n ),\n 21 => \n array (\n 'id' => 522,\n 'recipe_id' => '60',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => ' 46 vanilla wafers, divided ',\n 'displayNote' => '\\' 46 <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> wafers, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:24',\n 'updated_at' => '2019-01-07 02:34:24',\n ),\n 22 => \n array (\n 'id' => 523,\n 'recipe_id' => '60',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup chopped PLANTERS Pecans ',\n 'displayNote' => '\\'1/2 cup chopped planters pecans \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:25',\n 'updated_at' => '2019-01-07 02:34:25',\n ),\n 23 => \n array (\n 'id' => 524,\n 'recipe_id' => '60',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/3 cup packed brown sugar ',\n 'displayNote' => '\\'1/3 cup packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:25',\n 'updated_at' => '2019-01-07 02:34:25',\n ),\n 24 => \n array (\n 'id' => 525,\n 'recipe_id' => '60',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1 tsp. ground cinnamon ',\n 'displayNote' => '\\'1 tsp. ground <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:25',\n 'updated_at' => '2019-01-07 02:34:25',\n ),\n 25 => \n array (\n 'id' => 526,\n 'recipe_id' => '60',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 Tbsp. butter, melted ',\n 'displayNote' => '\\'3 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 26 => \n array (\n 'id' => 527,\n 'recipe_id' => '60',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 pkg. (3.4 oz. each) JELL-O Vanilla Flavor Instant Pudding ',\n 'displayNote' => '\\'2 pkg. (3.4 oz. each) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 27 => \n array (\n 'id' => 528,\n 'recipe_id' => '60',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '2 cups cold milk ',\n 'displayNote' => '\\'2 cups cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 28 => \n array (\n 'id' => 529,\n 'recipe_id' => '60',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) COOL WHIP Whipped Topping, thawed, divided ',\n 'displayNote' => '\\'1 tub (8 oz.) cool whip whipped topping, thawed, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 29 => \n array (\n 'id' => 530,\n 'recipe_id' => '60',\n 'ingrident' => 'banana',\n 'amount' => NULL,\n 'note' => '4 banana s (1 lb.), sliced ',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/banana\\\\\\'>banana</a> s (1 lb.), sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:26',\n 'updated_at' => '2019-01-07 02:34:26',\n ),\n 30 => \n array (\n 'id' => 531,\n 'recipe_id' => '60',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:27',\n 'updated_at' => '2019-01-07 02:34:27',\n ),\n 31 => \n array (\n 'id' => 532,\n 'recipe_id' => '60',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup granulated sugar ',\n 'displayNote' => '\\'1/4 cup granulated <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:27',\n 'updated_at' => '2019-01-07 02:34:27',\n ),\n 32 => \n array (\n 'id' => 533,\n 'recipe_id' => '61',\n 'ingrident' => 'puff pastry',\n 'amount' => NULL,\n 'note' => ' 1 frozen puff pastry sheet (1/2 of 17-1/4-oz. pkg.), thawed ',\n 'displayNote' => '\\' 1 frozen <a href=\\\\\\'/ingridients/puff-pastry\\\\\\'>puff pastry</a> sheet (1/2 of 17-1/4-oz. pkg.), thawed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:36',\n 'updated_at' => '2019-01-07 02:34:36',\n ),\n 33 => \n array (\n 'id' => 534,\n 'recipe_id' => '61',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:36',\n 'updated_at' => '2019-01-07 02:34:36',\n ),\n 34 => \n array (\n 'id' => 535,\n 'recipe_id' => '61',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/3 cup powdered sugar ',\n 'displayNote' => '\\'1/3 cup powdered <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:37',\n 'updated_at' => '2019-01-07 02:34:37',\n ),\n 35 => \n array (\n 'id' => 536,\n 'recipe_id' => '61',\n 'ingrident' => 'apple',\n 'amount' => NULL,\n 'note' => '2 Tbsp. apple juice ',\n 'displayNote' => '\\'2 tbsp. <a href=\\\\\\'/ingridients/apple\\\\\\'>apple</a> juice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:37',\n 'updated_at' => '2019-01-07 02:34:37',\n ),\n 36 => \n array (\n 'id' => 537,\n 'recipe_id' => '61',\n 'ingrident' => 'berries',\n 'amount' => NULL,\n 'note' => '3 cups mixed assorted berries (blackberries, raspberries and sliced strawberries) ',\n 'displayNote' => '\\'3 cups mixed assorted <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> (black <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> , rasp <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> and sliced straw <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> ) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:37',\n 'updated_at' => '2019-01-07 02:34:37',\n ),\n 37 => \n array (\n 'id' => 538,\n 'recipe_id' => '61',\n 'ingrident' => 'apple',\n 'amount' => NULL,\n 'note' => '2 Tbsp. apple jelly, melted, cooled ',\n 'displayNote' => '\\'2 tbsp. <a href=\\\\\\'/ingridients/apple\\\\\\'>apple</a> jelly, melted, cooled \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:37',\n 'updated_at' => '2019-01-07 02:34:37',\n ),\n 38 => \n array (\n 'id' => 539,\n 'recipe_id' => '62',\n 'ingrident' => 'bacon',\n 'amount' => NULL,\n 'note' => ' 6 slices OSCAR MAYER Bacon, chopped ',\n 'displayNote' => '\\' 6 slices oscar mayer <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:47',\n 'updated_at' => '2019-01-07 02:34:47',\n ),\n 39 => \n array (\n 'id' => 540,\n 'recipe_id' => '62',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small onion, chopped ',\n 'displayNote' => '\\'1 small <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:47',\n 'updated_at' => '2019-01-07 02:34:47',\n ),\n 40 => \n array (\n 'id' => 541,\n 'recipe_id' => '62',\n 'ingrident' => 'clove',\n 'amount' => NULL,\n 'note' => '1 clove garlic, minced ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/clove\\\\\\'>clove</a> <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:47',\n 'updated_at' => '2019-01-07 02:34:47',\n ),\n 41 => \n array (\n 'id' => 542,\n 'recipe_id' => '62',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '3 cans (14-1/2 oz. each) fat-free reduced-sodium chicken broth ',\n 'displayNote' => '\\'3 cans (14-1/2 oz. each) fat-free reduced-sodium <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:47',\n 'updated_at' => '2019-01-07 02:34:47',\n ),\n 42 => \n array (\n 'id' => 543,\n 'recipe_id' => '62',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 lb. dry lentils, sorted, washed ',\n 'displayNote' => '\\'1/2 lb. dry lentils, sorted, washed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 43 => \n array (\n 'id' => 544,\n 'recipe_id' => '62',\n 'ingrident' => 'potato',\n 'amount' => NULL,\n 'note' => '1/2 lb. red potato (1 large potato), chopped ',\n 'displayNote' => '\\'1/2 lb. red <a href=\\\\\\'/ingridients/potato\\\\\\'>potato</a> (1 large <a href=\\\\\\'/ingridients/potato\\\\\\'>potato</a> ), chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 44 => \n array (\n 'id' => 545,\n 'recipe_id' => '62',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '3 small carrot s (1/4 lb.), chopped ',\n 'displayNote' => '\\'3 small <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> s (1/4 lb.), chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 45 => \n array (\n 'id' => 546,\n 'recipe_id' => '62',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 OSCAR MAYER Wieners, cut into 1/4-inch-thick slices ',\n 'displayNote' => '\\'3 oscar mayer wieners, cut into 1/4-inch-thick slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 46 => \n array (\n 'id' => 547,\n 'recipe_id' => '62',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/2 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:48',\n 'updated_at' => '2019-01-07 02:34:48',\n ),\n 47 => \n array (\n 'id' => 548,\n 'recipe_id' => '63',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => ' 1/4 cup KRAFT Original Barbecue Sauce ',\n 'displayNote' => '\\' 1/4 cup kraft original <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 48 => \n array (\n 'id' => 549,\n 'recipe_id' => '63',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '3 Tbsp. fat-free reduced-sodium beef broth ',\n 'displayNote' => '\\'3 tbsp. fat-free reduced-sodium <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 49 => \n array (\n 'id' => 550,\n 'recipe_id' => '63',\n 'ingrident' => 'beef sirloin',\n 'amount' => NULL,\n 'note' => '1 lb. boneless beef sirloin steak, cut into strips ',\n 'displayNote' => '\\'1 lb. boneless <a href=\\\\\\'/ingridients/beef-sirloin\\\\\\'>beef sirloin</a> steak, cut into strips \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 50 => \n array (\n 'id' => 551,\n 'recipe_id' => '63',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small onion, sliced ',\n 'displayNote' => '\\'1 small <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 51 => \n array (\n 'id' => 552,\n 'recipe_id' => '63',\n 'ingrident' => 'carrot',\n 'amount' => NULL,\n 'note' => '1 large carrot, thinly sliced ',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/carrot\\\\\\'>carrot</a> , thinly sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:55',\n 'updated_at' => '2019-01-07 02:34:55',\n ),\n 52 => \n array (\n 'id' => 553,\n 'recipe_id' => '63',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 Tbsp. oil ',\n 'displayNote' => '\\'1 tbsp. oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:56',\n 'updated_at' => '2019-01-07 02:34:56',\n ),\n 53 => \n array (\n 'id' => 554,\n 'recipe_id' => '63',\n 'ingrident' => 'rice',\n 'amount' => NULL,\n 'note' => '2 cups hot cooked long-grain white rice ',\n 'displayNote' => '\\'2 cups hot cooked long-grain white <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:34:56',\n 'updated_at' => '2019-01-07 02:34:56',\n ),\n 54 => \n array (\n 'id' => 555,\n 'recipe_id' => '64',\n 'ingrident' => 'peach',\n 'amount' => NULL,\n 'note' => ' 1/2 cup peach preserves ',\n 'displayNote' => '\\' 1/2 cup <a href=\\\\\\'/ingridients/peach\\\\\\'>peach</a> preserves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:02',\n 'updated_at' => '2019-01-07 02:35:02',\n ),\n 55 => \n array (\n 'id' => 556,\n 'recipe_id' => '64',\n 'ingrident' => 'adobo sauce',\n 'amount' => NULL,\n 'note' => '1 (or more if desired) canned chipotle peppers in adobo sauce, finely diced ',\n 'displayNote' => '\\'1 (or more if desired) canned <a href=\\\\\\'/ingridients/chipotle\\\\\\'>chipotle</a> peppers in <a href=\\\\\\'/ingridients/adobo-sauce\\\\\\'>adobo sauce</a> , finely diced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:02',\n 'updated_at' => '2019-01-07 02:35:02',\n ),\n 56 => \n array (\n 'id' => 557,\n 'recipe_id' => '64',\n 'ingrident' => 'clove',\n 'amount' => NULL,\n 'note' => '1 large garlic clove, crushed ',\n 'displayNote' => '\\'1 large <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> <a href=\\\\\\'/ingridients/clove\\\\\\'>clove</a> , crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 57 => \n array (\n 'id' => 558,\n 'recipe_id' => '64',\n 'ingrident' => 'pork',\n 'amount' => NULL,\n 'note' => '1 pork tenderloin (1 lb.) ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/pork-1\\\\\\'>pork</a> tenderloin (1 lb.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 58 => \n array (\n 'id' => 559,\n 'recipe_id' => '64',\n 'ingrident' => 'chorizo',\n 'amount' => NULL,\n 'note' => '8 oz. pork Mexican chorizo sausage ',\n 'displayNote' => '\\'8 oz. <a href=\\\\\\'/ingridients/pork-1\\\\\\'>pork</a> mexican <a href=\\\\\\'/ingridients/chorizo\\\\\\'>chorizo</a> <a href=\\\\\\'/ingridients/sausage\\\\\\'>sausage</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 59 => \n array (\n 'id' => 560,\n 'recipe_id' => '64',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) PHILADELPHIA Garden Vegetable Cream Cheese Spread ',\n 'displayNote' => '\\'1 tub (8 oz.) philadelphia garden vegetable <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> spread \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 60 => \n array (\n 'id' => 561,\n 'recipe_id' => '64',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 oz. KRAFT Mexican Style Finely Shredded Four Cheese ',\n 'displayNote' => '\\'3 oz. kraft mexican style finely shredded four cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 61 => \n array (\n 'id' => 562,\n 'recipe_id' => '64',\n 'ingrident' => 'bacon',\n 'amount' => NULL,\n 'note' => '1 lb. sliced bacon, divided ',\n 'displayNote' => '\\'1 lb. sliced <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 62 => \n array (\n 'id' => 563,\n 'recipe_id' => '64',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/3 cup brown sugar ',\n 'displayNote' => '\\'1/3 cup brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 63 => \n array (\n 'id' => 564,\n 'recipe_id' => '64',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' dash ground black pepper ',\n 'displayNote' => '\\' dash ground black pepper \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:03',\n 'updated_at' => '2019-01-07 02:35:03',\n ),\n 64 => \n array (\n 'id' => 565,\n 'recipe_id' => '65',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => ' 1 Tbsp. butter or margarine ',\n 'displayNote' => '\\' 1 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 65 => \n array (\n 'id' => 566,\n 'recipe_id' => '65',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) fresh mushrooms, finely chopped ',\n 'displayNote' => '\\'1 pkg. (8 oz.) fresh mushrooms, finely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 66 => \n array (\n 'id' => 567,\n 'recipe_id' => '65',\n 'ingrident' => 'chive',\n 'amount' => NULL,\n 'note' => '1/2 cup PHILADELPHIA Chive & Onion Cream Cheese Spread ',\n 'displayNote' => '\\'1/2 cup philadelphia <a href=\\\\\\'/ingridients/chive\\\\\\'>chive</a> & <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> spread \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 67 => \n array (\n 'id' => 568,\n 'recipe_id' => '65',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Grated Parmesan Cheese ',\n 'displayNote' => '\\'1/4 cup kraft grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 68 => \n array (\n 'id' => 569,\n 'recipe_id' => '65',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 can (8 oz.) refrigerated crescent dinner rolls ',\n 'displayNote' => '\\'1 can (8 oz.) refrigerated crescent dinner rolls \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 69 => \n array (\n 'id' => 570,\n 'recipe_id' => '65',\n 'ingrident' => 'parsley',\n 'amount' => NULL,\n 'note' => '2 tsp. finely chopped fresh parsley ',\n 'displayNote' => '\\'2 tsp. finely chopped fresh <a href=\\\\\\'/ingridients/parsley\\\\\\'>parsley</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:11',\n 'updated_at' => '2019-01-07 02:35:11',\n ),\n 70 => \n array (\n 'id' => 571,\n 'recipe_id' => '66',\n 'ingrident' => 'salad greens',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (5 oz.) torn salad greens ',\n 'displayNote' => '\\' 1 pkg. (5 oz.) torn <a href=\\\\\\'/ingridients/salad-greens\\\\\\'>salad greens</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:15',\n 'updated_at' => '2019-01-07 02:35:15',\n ),\n 71 => \n array (\n 'id' => 572,\n 'recipe_id' => '66',\n 'ingrident' => 'mandarin',\n 'amount' => NULL,\n 'note' => '1 can (11 oz.) mandarin oranges, drained ',\n 'displayNote' => '\\'1 can (11 oz.) <a href=\\\\\\'/ingridients/mandarin\\\\\\'>mandarin</a> oranges, drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:15',\n 'updated_at' => '2019-01-07 02:35:15',\n ),\n 72 => \n array (\n 'id' => 573,\n 'recipe_id' => '66',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup fresh raspberries ',\n 'displayNote' => '\\'1 cup fresh raspberries \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:15',\n 'updated_at' => '2019-01-07 02:35:15',\n ),\n 73 => \n array (\n 'id' => 574,\n 'recipe_id' => '66',\n 'ingrident' => 'mozzarella',\n 'amount' => NULL,\n 'note' => '1 cup KRAFT 2% Milk Shredded Mozzarella Cheese ',\n 'displayNote' => '\\'1 cup kraft 2% <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> shredded <a href=\\\\\\'/ingridients/mozzarella\\\\\\'>mozzarella</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:16',\n 'updated_at' => '2019-01-07 02:35:16',\n ),\n 74 => \n array (\n 'id' => 575,\n 'recipe_id' => '66',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup PLANTERS Sliced Almonds, toasted ',\n 'displayNote' => '\\'1/3 cup planters sliced almonds, toasted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:16',\n 'updated_at' => '2019-01-07 02:35:16',\n ),\n 75 => \n array (\n 'id' => 576,\n 'recipe_id' => '66',\n 'ingrident' => 'vinaigrette dressing',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Lite Raspberry Vinaigrette Dressing ',\n 'displayNote' => '\\'1/4 cup kraft lite <a href=\\\\\\'/ingridients/raspberry\\\\\\'>raspberry</a> <a href=\\\\\\'/ingridients/vinaigrette-dressing\\\\\\'>vinaigrette dressing</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:16',\n 'updated_at' => '2019-01-07 02:35:16',\n ),\n 76 => \n array (\n 'id' => 577,\n 'recipe_id' => '67',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 7 graham crackers, finely crushed (about 1 cup) ',\n 'displayNote' => '\\' 7 graham crackers, finely crushed (about 1 cup) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 77 => \n array (\n 'id' => 578,\n 'recipe_id' => '67',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 Tbsp. butter, melted ',\n 'displayNote' => '\\'3 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 78 => \n array (\n 'id' => 579,\n 'recipe_id' => '67',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup plus 3 Tbsp. sugar, divided ',\n 'displayNote' => '\\'1 cup plus 3 tbsp. <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 79 => \n array (\n 'id' => 580,\n 'recipe_id' => '67',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '4 pkg. (8 oz. each) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'4 pkg. (8 oz. each) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 80 => \n array (\n 'id' => 581,\n 'recipe_id' => '67',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 81 => \n array (\n 'id' => 582,\n 'recipe_id' => '67',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 Tbsp. vanilla ',\n 'displayNote' => '\\'1 tbsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 82 => \n array (\n 'id' => 583,\n 'recipe_id' => '67',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '4 egg s ',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 83 => \n array (\n 'id' => 584,\n 'recipe_id' => '67',\n 'ingrident' => 'pineapple',\n 'amount' => NULL,\n 'note' => '1 can (8 oz.) pineapple tidbits in juice, very well drained ',\n 'displayNote' => '\\'1 can (8 oz.) <a href=\\\\\\'/ingridients/pineapple\\\\\\'>pineapple</a> tidbits in juice, very well drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 84 => \n array (\n 'id' => 585,\n 'recipe_id' => '67',\n 'ingrident' => 'pineapple',\n 'amount' => NULL,\n 'note' => '1/2 cup pineapple preserves ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/pineapple\\\\\\'>pineapple</a> preserves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:21',\n 'updated_at' => '2019-01-07 02:35:21',\n ),\n 85 => \n array (\n 'id' => 586,\n 'recipe_id' => '68',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 3 cups boiling water ',\n 'displayNote' => '\\' 3 cups boiling water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 86 => \n array (\n 'id' => 587,\n 'recipe_id' => '68',\n 'ingrident' => 'raspberry',\n 'amount' => NULL,\n 'note' => '2 pkg. (3 oz. each) JELL-O Raspberry Flavor Gelatin ',\n 'displayNote' => '\\'2 pkg. (3 oz. each) jell-o <a href=\\\\\\'/ingridients/raspberry\\\\\\'>raspberry</a> flavor gelatin \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 87 => \n array (\n 'id' => 588,\n 'recipe_id' => '68',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 pkg. (12 oz.) frozen red raspberries (Do not thaw.) ',\n 'displayNote' => '\\'1 pkg. (12 oz.) frozen red raspberries (do not thaw.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 88 => \n array (\n 'id' => 589,\n 'recipe_id' => '68',\n 'ingrident' => 'angel food',\n 'amount' => NULL,\n 'note' => '1 pkg. (7.5 oz.) round prepared angel food cake, cut into 21 thin slices ',\n 'displayNote' => '\\'1 pkg. (7.5 oz.) round prepared <a href=\\\\\\'/ingridients/angel-food\\\\\\'>angel food</a> cake, cut into 21 thin slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 89 => \n array (\n 'id' => 590,\n 'recipe_id' => '68',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1 cup thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:28',\n 'updated_at' => '2019-01-07 02:35:28',\n ),\n 90 => \n array (\n 'id' => 591,\n 'recipe_id' => '69',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 5 tart apples, peeled, sliced (about 6 cups) ',\n 'displayNote' => '\\' 5 tart apples, peeled, sliced (about 6 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 91 => \n array (\n 'id' => 592,\n 'recipe_id' => '69',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 pkg. (1.0 oz.) JELL-O Vanilla Flavor Sugar Free Fat Free Instant Pudding ',\n 'displayNote' => '\\'1 pkg. (1.0 oz.) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> free fat free instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 92 => \n array (\n 'id' => 593,\n 'recipe_id' => '69',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup sugar ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 93 => \n array (\n 'id' => 594,\n 'recipe_id' => '69',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1/2 tsp. ground cinnamon ',\n 'displayNote' => '\\'1/2 tsp. ground <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 94 => \n array (\n 'id' => 595,\n 'recipe_id' => '69',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup water ',\n 'displayNote' => '\\'1/3 cup water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 95 => \n array (\n 'id' => 596,\n 'recipe_id' => '69',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '3 Tbsp. butter ',\n 'displayNote' => '\\'3 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 96 => \n array (\n 'id' => 597,\n 'recipe_id' => '69',\n 'ingrident' => 'pecan',\n 'amount' => NULL,\n 'note' => '1-1/2 cups cranberry-pecan granola ',\n 'displayNote' => '\\'1-1/2 cups <a href=\\\\\\'/ingridients/cranberry\\\\\\'>cranberry</a> - <a href=\\\\\\'/ingridients/pecan\\\\\\'>pecan</a> granola \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:35',\n 'updated_at' => '2019-01-07 02:35:35',\n ),\n 97 => \n array (\n 'id' => 598,\n 'recipe_id' => '70',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\' 1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:40',\n 'updated_at' => '2019-01-07 02:35:40',\n ),\n 98 => \n array (\n 'id' => 599,\n 'recipe_id' => '70',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/2 cup packed brown sugar ',\n 'displayNote' => '\\'1/2 cup packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:40',\n 'updated_at' => '2019-01-07 02:35:40',\n ),\n 99 => \n array (\n 'id' => 600,\n 'recipe_id' => '70',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1/2 tsp. vanilla ',\n 'displayNote' => '\\'1/2 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:40',\n 'updated_at' => '2019-01-07 02:35:40',\n ),\n 100 => \n array (\n 'id' => 601,\n 'recipe_id' => '70',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 large apples, cut into quarters ',\n 'displayNote' => '\\'2 large apples, cut into quarters \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:40',\n 'updated_at' => '2019-01-07 02:35:40',\n ),\n 101 => \n array (\n 'id' => 602,\n 'recipe_id' => '70',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup PLANTERS Slivered Almonds ',\n 'displayNote' => '\\'1/4 cup planters slivered almonds \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:41',\n 'updated_at' => '2019-01-07 02:35:41',\n ),\n 102 => \n array (\n 'id' => 603,\n 'recipe_id' => '71',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 2-1/4 lb. apricots, peeled, sliced (about 6 cups) ',\n 'displayNote' => '\\' 2-1/4 lb. apricots, peeled, sliced (about 6 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 103 => \n array (\n 'id' => 604,\n 'recipe_id' => '71',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup granulated sugar ',\n 'displayNote' => '\\'3/4 cup granulated <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 104 => \n array (\n 'id' => 605,\n 'recipe_id' => '71',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup MINUTE Tapioca ',\n 'displayNote' => '\\'1/4 cup minute tapioca \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 105 => \n array (\n 'id' => 606,\n 'recipe_id' => '71',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/2 cup flour ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 106 => \n array (\n 'id' => 607,\n 'recipe_id' => '71',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/4 cup packed brown sugar ',\n 'displayNote' => '\\'1/4 cup packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 107 => \n array (\n 'id' => 608,\n 'recipe_id' => '71',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup cold butter or margarine, cut up ',\n 'displayNote' => '\\'1/4 cup cold <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> , cut up \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 108 => \n array (\n 'id' => 609,\n 'recipe_id' => '71',\n 'ingrident' => 'pie crust',\n 'amount' => NULL,\n 'note' => '1 ready-to-use refrigerated pie crust (1/2 of 14.1-oz. pkg.) ',\n 'displayNote' => '\\'1 ready-to-use refrigerated <a href=\\\\\\'/ingridients/pie-crust\\\\\\'>pie crust</a> (1/2 of 14.1-oz. pkg.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:46',\n 'updated_at' => '2019-01-07 02:35:46',\n ),\n 109 => \n array (\n 'id' => 610,\n 'recipe_id' => '72',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => ' 1/2 cup chicken broth ',\n 'displayNote' => '\\' 1/2 cup <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 110 => \n array (\n 'id' => 611,\n 'recipe_id' => '72',\n 'ingrident' => 'italian dressing',\n 'amount' => NULL,\n 'note' => '1/2 cup KRAFT Zesty Italian Dressing, divided ',\n 'displayNote' => '\\'1/2 cup kraft zesty <a href=\\\\\\'/ingridients/italian-dressing\\\\\\'>italian dressing</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 111 => \n array (\n 'id' => 612,\n 'recipe_id' => '72',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/2 cup coarsely chopped fresh cilantro ',\n 'displayNote' => '\\'1/2 cup coarsely chopped fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 112 => \n array (\n 'id' => 613,\n 'recipe_id' => '72',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup PLANTERS Dry Roasted Peanuts ',\n 'displayNote' => '\\'1/2 cup planters dry roasted peanuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 113 => \n array (\n 'id' => 614,\n 'recipe_id' => '72',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 whole serrano chile, stem removed ',\n 'displayNote' => '\\'1 whole serrano chile, stem removed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 114 => \n array (\n 'id' => 615,\n 'recipe_id' => '72',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion, chopped ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 115 => \n array (\n 'id' => 616,\n 'recipe_id' => '72',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 small boneless skinless chicken breasts (1 lb.) ',\n 'displayNote' => '\\'4 small boneless skinless chicken breasts (1 lb.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 116 => \n array (\n 'id' => 617,\n 'recipe_id' => '72',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 lb. mushrooms, sliced ',\n 'displayNote' => '\\'1/2 lb. mushrooms, sliced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 117 => \n array (\n 'id' => 618,\n 'recipe_id' => '72',\n 'ingrident' => 'rice',\n 'amount' => NULL,\n 'note' => '2 cups hot cooked long-grain white rice ',\n 'displayNote' => '\\'2 cups hot cooked long-grain white <a href=\\\\\\'/ingridients/rice\\\\\\'>rice</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 118 => \n array (\n 'id' => 619,\n 'recipe_id' => '72',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/4 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/4 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:50',\n 'updated_at' => '2019-01-07 02:35:50',\n ),\n 119 => \n array (\n 'id' => 620,\n 'recipe_id' => '73',\n 'ingrident' => 'black beans',\n 'amount' => NULL,\n 'note' => ' 1 can (15 oz.) black beans, rinsed ',\n 'displayNote' => '\\' 1 can (15 oz.) <a href=\\\\\\'/ingridients/black-beans\\\\\\'>black beans</a> , rinsed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:56',\n 'updated_at' => '2019-01-07 02:35:56',\n ),\n 120 => \n array (\n 'id' => 621,\n 'recipe_id' => '73',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup MIRACLE WHIP Dressing ',\n 'displayNote' => '\\'1/2 cup miracle whip dressing \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:56',\n 'updated_at' => '2019-01-07 02:35:56',\n ),\n 121 => \n array (\n 'id' => 622,\n 'recipe_id' => '73',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/2 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 122 => \n array (\n 'id' => 623,\n 'recipe_id' => '73',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 can (4 oz.) chopped green chiles, drained ',\n 'displayNote' => '\\'1 can (4 oz.) chopped green chiles, drained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 123 => \n array (\n 'id' => 624,\n 'recipe_id' => '73',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '2 Tbsp. chopped cilantro ',\n 'displayNote' => '\\'2 tbsp. chopped <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 124 => \n array (\n 'id' => 625,\n 'recipe_id' => '73',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '1 tsp. garlic powder ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> powder \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 125 => \n array (\n 'id' => 626,\n 'recipe_id' => '73',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => 'Few drops hot pepper sauce ',\n 'displayNote' => '\\'few drops hot pepper sauce \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:35:57',\n 'updated_at' => '2019-01-07 02:35:57',\n ),\n 126 => \n array (\n 'id' => 627,\n 'recipe_id' => '74',\n 'ingrident' => 'oreo',\n 'amount' => NULL,\n 'note' => ' 20 OREO Cookies, finely crushed (about 2 cups) ',\n 'displayNote' => '\\' 20 <a href=\\\\\\'/ingridients/oreo\\\\\\'>oreo</a> <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> , finely crushed (about 2 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 127 => \n array (\n 'id' => 628,\n 'recipe_id' => '74',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '1/4 cup butter, melted ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 128 => \n array (\n 'id' => 629,\n 'recipe_id' => '74',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '2 pkg. (8 oz. each) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'2 pkg. (8 oz. each) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 129 => \n array (\n 'id' => 630,\n 'recipe_id' => '74',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/2 cup sugar ',\n 'displayNote' => '\\'1/2 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 130 => \n array (\n 'id' => 631,\n 'recipe_id' => '74',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 131 => \n array (\n 'id' => 632,\n 'recipe_id' => '74',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) COOL WHIP Whipped Topping, thawed, divided ',\n 'displayNote' => '\\'1 tub (8 oz.) cool whip whipped topping, thawed, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 132 => \n array (\n 'id' => 633,\n 'recipe_id' => '74',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '2 oz. BAKER&#39;S Semi-Sweet Chocolate ',\n 'displayNote' => '\\'2 oz. baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:06',\n 'updated_at' => '2019-01-07 02:36:06',\n ),\n 133 => \n array (\n 'id' => 634,\n 'recipe_id' => '75',\n 'ingrident' => 'corn',\n 'amount' => NULL,\n 'note' => ' 2 ears corn on the cob, husks and silk removed ',\n 'displayNote' => '\\' 2 ears <a href=\\\\\\'/ingridients/corn\\\\\\'>corn</a> on the cob, husks and silk removed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 134 => \n array (\n 'id' => 635,\n 'recipe_id' => '75',\n 'ingrident' => 'squash',\n 'amount' => NULL,\n 'note' => '2 small yellow squash, each cut lengthwise into 3 slices ',\n 'displayNote' => '\\'2 small yellow <a href=\\\\\\'/ingridients/squash\\\\\\'>squash</a> , each cut lengthwise into 3 slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 135 => \n array (\n 'id' => 636,\n 'recipe_id' => '75',\n 'ingrident' => 'zucchini',\n 'amount' => NULL,\n 'note' => '2 small zucchini, each cut lengthwise into 3 slices ',\n 'displayNote' => '\\'2 small <a href=\\\\\\'/ingridients/zucchini\\\\\\'>zucchini</a> , each cut lengthwise into 3 slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 136 => \n array (\n 'id' => 637,\n 'recipe_id' => '75',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '2 tomato es, chopped ',\n 'displayNote' => '\\'2 <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> es, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 137 => \n array (\n 'id' => 638,\n 'recipe_id' => '75',\n 'ingrident' => 'italian dressing',\n 'amount' => NULL,\n 'note' => '1/3 cup KRAFT Zesty Italian Dressing ',\n 'displayNote' => '\\'1/3 cup kraft zesty <a href=\\\\\\'/ingridients/italian-dressing\\\\\\'>italian dressing</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:10',\n 'updated_at' => '2019-01-07 02:36:10',\n ),\n 138 => \n array (\n 'id' => 639,\n 'recipe_id' => '75',\n 'ingrident' => 'lemon',\n 'amount' => NULL,\n 'note' => '2 Tbsp. lemon juice ',\n 'displayNote' => '\\'2 tbsp. <a href=\\\\\\'/ingridients/lemon\\\\\\'>lemon</a> juice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:11',\n 'updated_at' => '2019-01-07 02:36:11',\n ),\n 139 => \n array (\n 'id' => 640,\n 'recipe_id' => '75',\n 'ingrident' => 'clove',\n 'amount' => NULL,\n 'note' => '1 clove garlic, minced ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/clove\\\\\\'>clove</a> <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:11',\n 'updated_at' => '2019-01-07 02:36:11',\n ),\n 140 => \n array (\n 'id' => 641,\n 'recipe_id' => '75',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '3 Tbsp. KRAFT Grated Parmesan Cheese ',\n 'displayNote' => '\\'3 tbsp. kraft grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:11',\n 'updated_at' => '2019-01-07 02:36:11',\n ),\n 141 => \n array (\n 'id' => 642,\n 'recipe_id' => '75',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '2 Tbsp. chopped fresh basil ',\n 'displayNote' => '\\'2 tbsp. chopped fresh <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:11',\n 'updated_at' => '2019-01-07 02:36:11',\n ),\n 142 => \n array (\n 'id' => 643,\n 'recipe_id' => '77',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (8 oz.) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\' 1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 143 => \n array (\n 'id' => 644,\n 'recipe_id' => '77',\n 'ingrident' => 'oreo',\n 'amount' => NULL,\n 'note' => '36 OREO Cookies, finely crushed ',\n 'displayNote' => '\\'36 <a href=\\\\\\'/ingridients/oreo\\\\\\'>oreo</a> <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> , finely crushed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 144 => \n array (\n 'id' => 645,\n 'recipe_id' => '77',\n 'ingrident' => 'jam',\n 'amount' => NULL,\n 'note' => '1/4 cup raspberry jam ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/raspberry\\\\\\'>raspberry</a> <a href=\\\\\\'/ingridients/jam\\\\\\'>jam</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 145 => \n array (\n 'id' => 646,\n 'recipe_id' => '77',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped dried cranberries ',\n 'displayNote' => '\\'1/4 cup chopped dried cranberries \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 146 => \n array (\n 'id' => 647,\n 'recipe_id' => '77',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 oz. BAKER&#39;S White Chocolate, melted ',\n 'displayNote' => '\\'1 oz. baker&#39;s white <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 147 => \n array (\n 'id' => 648,\n 'recipe_id' => '77',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 drops red food coloring ',\n 'displayNote' => '\\'2 drops red food coloring \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:23',\n 'updated_at' => '2019-01-07 02:36:23',\n ),\n 148 => \n array (\n 'id' => 649,\n 'recipe_id' => '77',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '4 pkg. (4 oz. each) BAKER&#39;S Semi-Sweet Chocolate, broken into pieces, melted ',\n 'displayNote' => '\\'4 pkg. (4 oz. each) baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , broken into pieces, melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:24',\n 'updated_at' => '2019-01-07 02:36:24',\n ),\n 149 => \n array (\n 'id' => 650,\n 'recipe_id' => '78',\n 'ingrident' => 'cake mix',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (2-layer size) spice cake mix ',\n 'displayNote' => '\\' 1 pkg. (2-layer size) spice <a href=\\\\\\'/ingridients/cake-mix\\\\\\'>cake mix</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:31',\n 'updated_at' => '2019-01-07 02:36:31',\n ),\n 150 => \n array (\n 'id' => 651,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup water ',\n 'displayNote' => '\\'1 cup water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:31',\n 'updated_at' => '2019-01-07 02:36:31',\n ),\n 151 => \n array (\n 'id' => 652,\n 'recipe_id' => '78',\n 'ingrident' => 'pumpkin',\n 'amount' => NULL,\n 'note' => '1 cup canned pumpkin ',\n 'displayNote' => '\\'1 cup canned <a href=\\\\\\'/ingridients/pumpkin\\\\\\'>pumpkin</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 152 => \n array (\n 'id' => 653,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup oil ',\n 'displayNote' => '\\'1/3 cup oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 153 => \n array (\n 'id' => 654,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 eggs ',\n 'displayNote' => '\\'3 eggs \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 154 => \n array (\n 'id' => 655,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup chopped PLANTERS Walnuts ',\n 'displayNote' => '\\'3/4 cup chopped planters walnuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 155 => \n array (\n 'id' => 656,\n 'recipe_id' => '78',\n 'ingrident' => 'neufchatel',\n 'amount' => NULL,\n 'note' => '1 pkg. (8 oz.) PHILADELPHIA Neufchatel Cheese, softened ',\n 'displayNote' => '\\'1 pkg. (8 oz.) philadelphia <a href=\\\\\\'/ingridients/neufchatel\\\\\\'>neufchatel</a> cheese, softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 156 => \n array (\n 'id' => 657,\n 'recipe_id' => '78',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1/3 cup packed dark brown sugar ',\n 'displayNote' => '\\'1/3 cup packed dark brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 157 => \n array (\n 'id' => 658,\n 'recipe_id' => '78',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup thawed COOL WHIP LITE Whipped Topping ',\n 'displayNote' => '\\'1 cup thawed cool whip lite whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:32',\n 'updated_at' => '2019-01-07 02:36:32',\n ),\n 158 => \n array (\n 'id' => 659,\n 'recipe_id' => '79',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => ' 1/2 cup KRAFT Original Barbecue Sauce ',\n 'displayNote' => '\\' 1/2 cup kraft original <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:36',\n 'updated_at' => '2019-01-07 02:36:36',\n ),\n 159 => \n array (\n 'id' => 660,\n 'recipe_id' => '79',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '10 arbol chiles, stemmed ',\n 'displayNote' => '\\'10 arbol chiles, stemmed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:36',\n 'updated_at' => '2019-01-07 02:36:36',\n ),\n 160 => \n array (\n 'id' => 661,\n 'recipe_id' => '79',\n 'ingrident' => 'ham',\n 'amount' => NULL,\n 'note' => '4 slices OSCAR MAYER Baked Cooked Ham ',\n 'displayNote' => '\\'4 slices oscar mayer baked cooked <a href=\\\\\\'/ingridients/ham\\\\\\'>ham</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:37',\n 'updated_at' => '2019-01-07 02:36:37',\n ),\n 161 => \n array (\n 'id' => 662,\n 'recipe_id' => '79',\n 'ingrident' => 'shrimp',\n 'amount' => NULL,\n 'note' => '1 lb. uncooked deveined peeled large shrimp ',\n 'displayNote' => '\\'1 lb. uncooked deveined peeled large <a href=\\\\\\'/ingridients/shrimp\\\\\\'>shrimp</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:37',\n 'updated_at' => '2019-01-07 02:36:37',\n ),\n 162 => \n array (\n 'id' => 663,\n 'recipe_id' => '79',\n 'ingrident' => 'parmesan',\n 'amount' => NULL,\n 'note' => '2 Tbsp. KRAFT Grated Parmesan Cheese ',\n 'displayNote' => '\\'2 tbsp. kraft grated <a href=\\\\\\'/ingridients/parmesan\\\\\\'>parmesan</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:37',\n 'updated_at' => '2019-01-07 02:36:37',\n ),\n 163 => \n array (\n 'id' => 664,\n 'recipe_id' => '80',\n 'ingrident' => 'coffee',\n 'amount' => NULL,\n 'note' => ' 1 cup brewed MAXWELL HOUSE Vanilla Flavored Coffee, chilled ',\n 'displayNote' => '\\' 1 cup brewed maxwell house <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavored <a href=\\\\\\'/ingridients/coffee\\\\\\'>coffee</a> , chilled \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 164 => \n array (\n 'id' => 665,\n 'recipe_id' => '80',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '4 triangles (1/3 of 3.52-oz bar) TOBLERONE Swiss Dark or Milk Chocolate with Honey and Almond Nougat, coarsely chopped ',\n 'displayNote' => '\\'4 triangles (1/3 of 3.52-oz bar) toblerone swiss dark or <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> with <a href=\\\\\\'/ingridients/honey\\\\\\'>honey</a> and <a href=\\\\\\'/ingridients/almond-1\\\\\\'>almond</a> nougat, coarsely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 165 => \n array (\n 'id' => 666,\n 'recipe_id' => '80',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 cups vanilla ice cream, softened ',\n 'displayNote' => '\\'2 cups <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 166 => \n array (\n 'id' => 667,\n 'recipe_id' => '80',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '6 Tbsp. thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'6 tbsp. thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 167 => \n array (\n 'id' => 668,\n 'recipe_id' => '80',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '3/4 tsp. grated BAKER&#39;S Semi-Sweet Chocolate ',\n 'displayNote' => '\\'3/4 tsp. grated baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:42',\n 'updated_at' => '2019-01-07 02:36:42',\n ),\n 168 => \n array (\n 'id' => 669,\n 'recipe_id' => '81',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 1-1/2 cups water ',\n 'displayNote' => '\\' 1-1/2 cups water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:55',\n 'updated_at' => '2019-01-07 02:36:55',\n ),\n 169 => \n array (\n 'id' => 670,\n 'recipe_id' => '81',\n 'ingrident' => 'lime',\n 'amount' => NULL,\n 'note' => '1/4 cup fresh lime juice ',\n 'displayNote' => '\\'1/4 cup fresh <a href=\\\\\\'/ingridients/lime\\\\\\'>lime</a> juice \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:55',\n 'updated_at' => '2019-01-07 02:36:55',\n ),\n 170 => \n array (\n 'id' => 671,\n 'recipe_id' => '81',\n 'ingrident' => 'lemonade',\n 'amount' => NULL,\n 'note' => '1 pkt. CRYSTAL LIGHT PURE On The Go Lemonade Flavor Drink Mix ',\n 'displayNote' => '\\'1 pkt. crystal light pure on the go <a href=\\\\\\'/ingridients/lemonade\\\\\\'>lemonade</a> flavor drink mix \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:55',\n 'updated_at' => '2019-01-07 02:36:55',\n ),\n 171 => \n array (\n 'id' => 672,\n 'recipe_id' => '81',\n 'ingrident' => 'watermelon',\n 'amount' => NULL,\n 'note' => '5 cups seedless watermelon cubes (1 inch) ',\n 'displayNote' => '\\'5 cups seedless <a href=\\\\\\'/ingridients/watermelon\\\\\\'>watermelon</a> cubes (1 inch) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:36:55',\n 'updated_at' => '2019-01-07 02:36:55',\n ),\n 172 => \n array (\n 'id' => 673,\n 'recipe_id' => '82',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => ' 1 red onion, divided ',\n 'displayNote' => '\\' 1 red <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 173 => \n array (\n 'id' => 674,\n 'recipe_id' => '82',\n 'ingrident' => 'cabbage',\n 'amount' => NULL,\n 'note' => '2 cups <u>each shredded green and red cabbage ',\n 'displayNote' => '\\'2 cups <u>each shredded green and red <a href=\\\\\\'/ingridients/cabbage\\\\\\'>cabbage</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 174 => \n array (\n 'id' => 675,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup MIRACLE WHIP Dressing ',\n 'displayNote' => '\\'1/4 cup miracle whip dressing \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 175 => \n array (\n 'id' => 676,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 bottle (19.5 oz.) <i>Heinz BBQ Sauce Texas Bold & Spicy, divided ',\n 'displayNote' => '\\'1 bottle (19.5 oz.) <i>heinz bbq sauce texas bold & spicy, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 176 => \n array (\n 'id' => 677,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 Tbsp. oil ',\n 'displayNote' => '\\'1 tbsp. oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 177 => \n array (\n 'id' => 678,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 beef brisket (3 lb.), trimmed ',\n 'displayNote' => '\\'1 beef brisket (3 lb.), trimmed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 178 => \n array (\n 'id' => 679,\n 'recipe_id' => '82',\n 'ingrident' => 'beef broth',\n 'amount' => NULL,\n 'note' => '1 can (14.5 oz.) fat-free reduced-sodium beef broth ',\n 'displayNote' => '\\'1 can (14.5 oz.) fat-free reduced-sodium <a href=\\\\\\'/ingridients/beef-broth\\\\\\'>beef broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 179 => \n array (\n 'id' => 680,\n 'recipe_id' => '82',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 cloves garlic, minced ',\n 'displayNote' => '\\'2 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 180 => \n array (\n 'id' => 681,\n 'recipe_id' => '82',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '12 kaiser roll s, partially split ',\n 'displayNote' => '\\'12 kaiser roll s, partially split \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:00',\n 'updated_at' => '2019-01-07 02:37:00',\n ),\n 181 => \n array (\n 'id' => 682,\n 'recipe_id' => '83',\n 'ingrident' => 'pork',\n 'amount' => NULL,\n 'note' => ' 3 lb. pork baby back ribs ',\n 'displayNote' => '\\' 3 lb. <a href=\\\\\\'/ingridients/pork-1\\\\\\'>pork</a> baby back ribs \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 182 => \n array (\n 'id' => 683,\n 'recipe_id' => '83',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup water ',\n 'displayNote' => '\\'1/2 cup water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 183 => \n array (\n 'id' => 684,\n 'recipe_id' => '83',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => '1 cup KRAFT Original Barbecue Sauce ',\n 'displayNote' => '\\'1 cup kraft original <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 184 => \n array (\n 'id' => 685,\n 'recipe_id' => '83',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/2 cup fresh cilantro leaves ',\n 'displayNote' => '\\'1/2 cup fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> leaves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 185 => \n array (\n 'id' => 686,\n 'recipe_id' => '83',\n 'ingrident' => 'adobo sauce',\n 'amount' => NULL,\n 'note' => '1 canned chipotle pepper in adobo sauce ',\n 'displayNote' => '\\'1 canned <a href=\\\\\\'/ingridients/chipotle\\\\\\'>chipotle</a> pepper in <a href=\\\\\\'/ingridients/adobo-sauce\\\\\\'>adobo sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 186 => \n array (\n 'id' => 687,\n 'recipe_id' => '83',\n 'ingrident' => 'orange',\n 'amount' => NULL,\n 'note' => '2 tsp. orange zest ',\n 'displayNote' => '\\'2 tsp. <a href=\\\\\\'/ingridients/orange\\\\\\'>orange</a> zest \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:05',\n 'updated_at' => '2019-01-07 02:37:05',\n ),\n 187 => \n array (\n 'id' => 688,\n 'recipe_id' => '84',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 2 Tbsp. oil ',\n 'displayNote' => '\\' 2 tbsp. oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 188 => \n array (\n 'id' => 689,\n 'recipe_id' => '84',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 lb. beef top round steak, cut into 1/2-inch pieces ',\n 'displayNote' => '\\'1 lb. beef top round steak, cut into 1/2-inch pieces \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 189 => \n array (\n 'id' => 690,\n 'recipe_id' => '84',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => '1 lb. extra-lean ground beef ',\n 'displayNote' => '\\'1 lb. extra-lean <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 190 => \n array (\n 'id' => 691,\n 'recipe_id' => '84',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion, finely chopped ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , finely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 191 => \n array (\n 'id' => 692,\n 'recipe_id' => '84',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup A.1. Dry Rub Bold Original ',\n 'displayNote' => '\\'1/4 cup a.1. dry rub bold original \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 192 => \n array (\n 'id' => 693,\n 'recipe_id' => '84',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '3 cloves garlic, minced ',\n 'displayNote' => '\\'3 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 193 => \n array (\n 'id' => 694,\n 'recipe_id' => '84',\n 'ingrident' => 'kidney beans',\n 'amount' => NULL,\n 'note' => '2 cans (16 oz. each) kidney beans, rinsed ',\n 'displayNote' => '\\'2 cans (16 oz. each) <a href=\\\\\\'/ingridients/kidney-beans\\\\\\'>kidney beans</a> , rinsed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 194 => \n array (\n 'id' => 695,\n 'recipe_id' => '84',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2-1/2 cups undrained canned no-salt-added diced tomatoes ',\n 'displayNote' => '\\'2-1/2 cups undrained canned no-salt-added diced tomatoes \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 195 => \n array (\n 'id' => 696,\n 'recipe_id' => '84',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => '1 bottle (18 oz.) KRAFT Hickory Smoke Barbecue Sauce ',\n 'displayNote' => '\\'1 bottle (18 oz.) kraft hickory smoke <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 196 => \n array (\n 'id' => 697,\n 'recipe_id' => '84',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '3/4 cup KRAFT Shredded Cheddar Cheese ',\n 'displayNote' => '\\'3/4 cup kraft shredded <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:11',\n 'updated_at' => '2019-01-07 02:37:11',\n ),\n 197 => \n array (\n 'id' => 698,\n 'recipe_id' => '85',\n 'ingrident' => 'oreo',\n 'amount' => NULL,\n 'note' => ' 24 OREO Cookies, divided ',\n 'displayNote' => '\\' 24 <a href=\\\\\\'/ingridients/oreo\\\\\\'>oreo</a> <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 198 => \n array (\n 'id' => 699,\n 'recipe_id' => '85',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 pt. (2 cups) chocolate ice cream ',\n 'displayNote' => '\\'1 pt. (2 cups) <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 199 => \n array (\n 'id' => 700,\n 'recipe_id' => '85',\n 'ingrident' => 'fudge',\n 'amount' => NULL,\n 'note' => '1 cup hot fudge ice cream topping ',\n 'displayNote' => '\\'1 cup hot <a href=\\\\\\'/ingridients/fudge\\\\\\'>fudge</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 200 => \n array (\n 'id' => 701,\n 'recipe_id' => '85',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 pt. (2 cups) vanilla ice cream ',\n 'displayNote' => '\\'1 pt. (2 cups) <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 201 => \n array (\n 'id' => 702,\n 'recipe_id' => '85',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1 cup thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:21',\n 'updated_at' => '2019-01-07 02:37:21',\n ),\n 202 => \n array (\n 'id' => 703,\n 'recipe_id' => '86',\n 'ingrident' => 'cracker',\n 'amount' => NULL,\n 'note' => ' 1-1/2 cups graham cracker crumbs ',\n 'displayNote' => '\\' 1-1/2 cups graham <a href=\\\\\\'/ingridients/cracker\\\\\\'>cracker</a> crumbs \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 203 => \n array (\n 'id' => 704,\n 'recipe_id' => '86',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3 Tbsp. sugar ',\n 'displayNote' => '\\'3 tbsp. <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 204 => \n array (\n 'id' => 705,\n 'recipe_id' => '86',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/3 cup butter or margarine, melted ',\n 'displayNote' => '\\'1/3 cup <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 205 => \n array (\n 'id' => 706,\n 'recipe_id' => '86',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '4 pkg. (8 oz. each) PHILADELPHIA Cream Cheese, softened ',\n 'displayNote' => '\\'4 pkg. (8 oz. each) philadelphia <a href=\\\\\\'/ingridients/ <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> -cheese\\\\\\'> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> cheese</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 206 => \n array (\n 'id' => 707,\n 'recipe_id' => '86',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar ',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 207 => \n array (\n 'id' => 708,\n 'recipe_id' => '86',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 208 => \n array (\n 'id' => 709,\n 'recipe_id' => '86',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '4 egg s ',\n 'displayNote' => '\\'4 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 209 => \n array (\n 'id' => 710,\n 'recipe_id' => '86',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) COOL WHIP Whipped Topping (Do not thaw.) ',\n 'displayNote' => '\\'1 tub (8 oz.) cool whip whipped topping (do not thaw.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 210 => \n array (\n 'id' => 711,\n 'recipe_id' => '86',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '6 oz. BAKER&#39;S Bittersweet Chocolate ',\n 'displayNote' => '\\'6 oz. baker&#39;s bittersweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 211 => \n array (\n 'id' => 712,\n 'recipe_id' => '86',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup fresh raspberries ',\n 'displayNote' => '\\'1 cup fresh raspberries \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:28',\n 'updated_at' => '2019-01-07 02:37:28',\n ),\n 212 => \n array (\n 'id' => 713,\n 'recipe_id' => '87',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => ' 1 Tbsp. butter ',\n 'displayNote' => '\\' 1 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 213 => \n array (\n 'id' => 714,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3 small Gala apples, peeled, chopped (about 3 cups) ',\n 'displayNote' => '\\'3 small gala apples, peeled, chopped (about 3 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 214 => \n array (\n 'id' => 715,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '25 KRAFT Caramels ',\n 'displayNote' => '\\'25 kraft caramels \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 215 => \n array (\n 'id' => 716,\n 'recipe_id' => '87',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 can (12 oz.) evaporated milk, divided ',\n 'displayNote' => '\\'1 can (12 oz.) evaporated <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 216 => \n array (\n 'id' => 717,\n 'recipe_id' => '87',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 can (14 oz.) sweetened condensed milk ',\n 'displayNote' => '\\'1 can (14 oz.) sweetened condensed <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 217 => \n array (\n 'id' => 718,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 eggs ',\n 'displayNote' => '\\'4 eggs \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 218 => \n array (\n 'id' => 719,\n 'recipe_id' => '87',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:35',\n 'updated_at' => '2019-01-07 02:37:35',\n ),\n 219 => \n array (\n 'id' => 720,\n 'recipe_id' => '87',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '1/2 tsp. ground cinnamon ',\n 'displayNote' => '\\'1/2 tsp. ground <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:36',\n 'updated_at' => '2019-01-07 02:37:36',\n ),\n 220 => \n array (\n 'id' => 721,\n 'recipe_id' => '87',\n 'ingrident' => 'bread',\n 'amount' => NULL,\n 'note' => '3/4 lb. unsliced white bread, cut into 1-inch cubes (about 8 cups) ',\n 'displayNote' => '\\'3/4 lb. unsliced white <a href=\\\\\\'/ingridients/bread\\\\\\'>bread</a> , cut into 1-inch cubes (about 8 cups) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:36',\n 'updated_at' => '2019-01-07 02:37:36',\n ),\n 221 => \n array (\n 'id' => 722,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup dried cranberries ',\n 'displayNote' => '\\'1/2 cup dried cranberries \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:36',\n 'updated_at' => '2019-01-07 02:37:36',\n ),\n 222 => \n array (\n 'id' => 723,\n 'recipe_id' => '87',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1 cup thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:36',\n 'updated_at' => '2019-01-07 02:37:36',\n ),\n 223 => \n array (\n 'id' => 724,\n 'recipe_id' => '88',\n 'ingrident' => 'cookie dough',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (16.5 oz.) refrigerated chocolate chip cookie dough, divided ',\n 'displayNote' => '\\' 1 pkg. (16.5 oz.) refrigerated <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> chip <a href=\\\\\\'/ingridients/cookie-dough\\\\\\'>cookie dough</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 224 => \n array (\n 'id' => 725,\n 'recipe_id' => '88',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 pkg. (3.4 oz.) JELL-O Vanilla Flavor Instant Pudding ',\n 'displayNote' => '\\'1 pkg. (3.4 oz.) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 225 => \n array (\n 'id' => 726,\n 'recipe_id' => '88',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup cold milk ',\n 'displayNote' => '\\'1 cup cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 226 => \n array (\n 'id' => 727,\n 'recipe_id' => '88',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => '1/3 cup creamy peanut butter, divided ',\n 'displayNote' => '\\'1/3 cup creamy <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 227 => \n array (\n 'id' => 728,\n 'recipe_id' => '88',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1-1/2 cups thawed COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1-1/2 cups thawed cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 228 => \n array (\n 'id' => 729,\n 'recipe_id' => '88',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 oz. BAKER&#39;S Semi-Sweet Chocolate ',\n 'displayNote' => '\\'1 oz. baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 229 => \n array (\n 'id' => 730,\n 'recipe_id' => '88',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 Tbsp. chopped PLANTERS COCKTAIL Peanuts ',\n 'displayNote' => '\\'2 tbsp. chopped planters cocktail peanuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:40',\n 'updated_at' => '2019-01-07 02:37:40',\n ),\n 230 => \n array (\n 'id' => 731,\n 'recipe_id' => '89',\n 'ingrident' => 'italian dressing',\n 'amount' => NULL,\n 'note' => ' 1/4 cup KRAFT Zesty Italian Dressing ',\n 'displayNote' => '\\' 1/4 cup kraft zesty <a href=\\\\\\'/ingridients/italian-dressing\\\\\\'>italian dressing</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:44',\n 'updated_at' => '2019-01-07 02:37:44',\n ),\n 231 => \n array (\n 'id' => 732,\n 'recipe_id' => '89',\n 'ingrident' => 'pork',\n 'amount' => NULL,\n 'note' => '1-1/2 lb. pork tenderloin, cut into bite-size pieces ',\n 'displayNote' => '\\'1-1/2 lb. <a href=\\\\\\'/ingridients/pork-1\\\\\\'>pork</a> tenderloin, cut into bite-size pieces \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 232 => \n array (\n 'id' => 733,\n 'recipe_id' => '89',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 onion, chopped ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 233 => \n array (\n 'id' => 734,\n 'recipe_id' => '89',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 cloves garlic, minced ',\n 'displayNote' => '\\'2 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 234 => \n array (\n 'id' => 735,\n 'recipe_id' => '89',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped fresh cilantro, divided ',\n 'displayNote' => '\\'1/4 cup chopped fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 235 => \n array (\n 'id' => 736,\n 'recipe_id' => '89',\n 'ingrident' => 'pinto beans',\n 'amount' => NULL,\n 'note' => '2 cans (15 oz. each) pinto beans, rinsed, divided ',\n 'displayNote' => '\\'2 cans (15 oz. each) <a href=\\\\\\'/ingridients/pinto-beans\\\\\\'>pinto beans</a> , rinsed, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 236 => \n array (\n 'id' => 737,\n 'recipe_id' => '89',\n 'ingrident' => 'salsa',\n 'amount' => NULL,\n 'note' => '1 jar (16 oz.) green salsa ',\n 'displayNote' => '\\'1 jar (16 oz.) green <a href=\\\\\\'/ingridients/salsa\\\\\\'>salsa</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 237 => \n array (\n 'id' => 738,\n 'recipe_id' => '89',\n 'ingrident' => 'chicken broth',\n 'amount' => NULL,\n 'note' => '1 can (14.5 oz.) fat-free reduced-sodium chicken broth ',\n 'displayNote' => '\\'1 can (14.5 oz.) fat-free reduced-sodium <a href=\\\\\\'/ingridients/chicken-broth\\\\\\'>chicken broth</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 238 => \n array (\n 'id' => 739,\n 'recipe_id' => '89',\n 'ingrident' => 'corn',\n 'amount' => NULL,\n 'note' => '1 cup frozen corn ',\n 'displayNote' => '\\'1 cup frozen <a href=\\\\\\'/ingridients/corn\\\\\\'>corn</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 239 => \n array (\n 'id' => 740,\n 'recipe_id' => '89',\n 'ingrident' => 'chips',\n 'amount' => NULL,\n 'note' => '2 cups coarsely crushed tortilla chips ',\n 'displayNote' => '\\'2 cups coarsely crushed tortilla <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 240 => \n array (\n 'id' => 741,\n 'recipe_id' => '89',\n 'ingrident' => 'cream',\n 'amount' => NULL,\n 'note' => '1/2 cup BREAKSTONE&#39;S or KNUDSEN Sour Cream ',\n 'displayNote' => '\\'1/2 cup breakstone&#39;s or knudsen <a href=\\\\\\'/ingridients/sour- <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> \\\\\\'>sour <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> </a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 241 => \n array (\n 'id' => 742,\n 'recipe_id' => '89',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 cup KRAFT Mexican Style Finely Shredded Four Cheese ',\n 'displayNote' => '\\'1/2 cup kraft mexican style finely shredded four cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:45',\n 'updated_at' => '2019-01-07 02:37:45',\n ),\n 242 => \n array (\n 'id' => 743,\n 'recipe_id' => '90',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => ' 1/4 cup KRAFT Thick & Spicy Barbecue Sauce ',\n 'displayNote' => '\\' 1/4 cup kraft thick & spicy <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 243 => \n array (\n 'id' => 744,\n 'recipe_id' => '90',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 Tbsp. maple-flavored or pancake syrup ',\n 'displayNote' => '\\'2 tbsp. maple-flavored or pancake syrup \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 244 => \n array (\n 'id' => 745,\n 'recipe_id' => '90',\n 'ingrident' => 'orange',\n 'amount' => NULL,\n 'note' => '1/4 tsp. orange zest ',\n 'displayNote' => '\\'1/4 tsp. <a href=\\\\\\'/ingridients/orange\\\\\\'>orange</a> zest \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 245 => \n array (\n 'id' => 746,\n 'recipe_id' => '90',\n 'ingrident' => 'salmon',\n 'amount' => NULL,\n 'note' => '1 skin-on salmon fillet (1 lb.) ',\n 'displayNote' => '\\'1 skin-on <a href=\\\\\\'/ingridients/salmon\\\\\\'>salmon</a> fillet (1 lb.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 246 => \n array (\n 'id' => 747,\n 'recipe_id' => '90',\n 'ingrident' => 'basil',\n 'amount' => NULL,\n 'note' => '1 Tbsp. chopped fresh basil ',\n 'displayNote' => '\\'1 tbsp. chopped fresh <a href=\\\\\\'/ingridients/basil\\\\\\'>basil</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:50',\n 'updated_at' => '2019-01-07 02:37:50',\n ),\n 247 => \n array (\n 'id' => 748,\n 'recipe_id' => '91',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (3.4 oz.) JELL-O Vanilla Flavor Instant Pudding ',\n 'displayNote' => '\\' 1 pkg. (3.4 oz.) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:58',\n 'updated_at' => '2019-01-07 02:37:58',\n ),\n 248 => \n array (\n 'id' => 749,\n 'recipe_id' => '91',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup cold milk ',\n 'displayNote' => '\\'1 cup cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:58',\n 'updated_at' => '2019-01-07 02:37:58',\n ),\n 249 => \n array (\n 'id' => 750,\n 'recipe_id' => '91',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1-1/2 cups thawed COOL WHIP LITE Whipped Topping ',\n 'displayNote' => '\\'1-1/2 cups thawed cool whip lite whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:58',\n 'updated_at' => '2019-01-07 02:37:58',\n ),\n 250 => \n array (\n 'id' => 751,\n 'recipe_id' => '91',\n 'ingrident' => 'cinnamon',\n 'amount' => NULL,\n 'note' => '16 cinnamon graham cracker s, broken in half (32 squares) ',\n 'displayNote' => '\\'16 <a href=\\\\\\'/ingridients/cinnamon\\\\\\'>cinnamon</a> graham <a href=\\\\\\'/ingridients/cracker\\\\\\'>cracker</a> s, broken in half (32 squares) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:37:58',\n 'updated_at' => '2019-01-07 02:37:58',\n ),\n 251 => \n array (\n 'id' => 752,\n 'recipe_id' => '92',\n 'ingrident' => 'ground chicken',\n 'amount' => NULL,\n 'note' => ' 1 lb. lean ground chicken ',\n 'displayNote' => '\\' 1 lb. lean <a href=\\\\\\'/ingridients/ground-chicken\\\\\\'>ground chicken</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 252 => \n array (\n 'id' => 753,\n 'recipe_id' => '92',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 yellow onion, chopped ',\n 'displayNote' => '\\'1 yellow <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 253 => \n array (\n 'id' => 754,\n 'recipe_id' => '92',\n 'ingrident' => 'garlic',\n 'amount' => NULL,\n 'note' => '2 cloves garlic, minced ',\n 'displayNote' => '\\'2 cloves <a href=\\\\\\'/ingridients/garlic-1\\\\\\'>garlic</a> , minced \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 254 => \n array (\n 'id' => 755,\n 'recipe_id' => '92',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 can (28 oz.) diced tomatoes, undrained ',\n 'displayNote' => '\\'1 can (28 oz.) diced tomatoes, undrained \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 255 => \n array (\n 'id' => 756,\n 'recipe_id' => '92',\n 'ingrident' => 'black beans',\n 'amount' => NULL,\n 'note' => '1 can (15.5 oz.) black beans, rinsed ',\n 'displayNote' => '\\'1 can (15.5 oz.) <a href=\\\\\\'/ingridients/black-beans\\\\\\'>black beans</a> , rinsed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 256 => \n array (\n 'id' => 757,\n 'recipe_id' => '92',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 green pepper, chopped ',\n 'displayNote' => '\\'1 green pepper, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 257 => \n array (\n 'id' => 758,\n 'recipe_id' => '92',\n 'ingrident' => 'barbecue sauce',\n 'amount' => NULL,\n 'note' => '1/3 cup KRAFT Sweet & Spicy Barbecue Sauce ',\n 'displayNote' => '\\'1/3 cup kraft sweet & spicy <a href=\\\\\\'/ingridients/barbecue-sauce\\\\\\'>barbecue sauce</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 258 => \n array (\n 'id' => 759,\n 'recipe_id' => '92',\n 'ingrident' => 'chili powder',\n 'amount' => NULL,\n 'note' => '1 Tbsp. chili powder ',\n 'displayNote' => '\\'1 tbsp. <a href=\\\\\\'/ingridients/chili-powder\\\\\\'>chili powder</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 259 => \n array (\n 'id' => 760,\n 'recipe_id' => '92',\n 'ingrident' => 'chipotle',\n 'amount' => NULL,\n 'note' => '1 tsp. chipotle chile pepper powder ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/chipotle\\\\\\'>chipotle</a> chile pepper powder \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 260 => \n array (\n 'id' => 761,\n 'recipe_id' => '92',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped fresh cilantro ',\n 'displayNote' => '\\'1/4 cup chopped fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 261 => \n array (\n 'id' => 762,\n 'recipe_id' => '92',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '3/4 cup KRAFT Mexican Style Shredded Four Cheese with a TOUCH OF PHILADELPHIA ',\n 'displayNote' => '\\'3/4 cup kraft mexican style shredded four cheese with a touch of philadelphia \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 262 => \n array (\n 'id' => 763,\n 'recipe_id' => '92',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 green onions, chopped ',\n 'displayNote' => '\\'2 green onions, chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:05',\n 'updated_at' => '2019-01-07 02:38:05',\n ),\n 263 => \n array (\n 'id' => 764,\n 'recipe_id' => '93',\n 'ingrident' => 'fudge',\n 'amount' => NULL,\n 'note' => ' 1 pkg. (0.74 oz) mini fudge-covered shortbread cookies ',\n 'displayNote' => '\\' 1 pkg. (0.74 oz) mini <a href=\\\\\\'/ingridients/fudge\\\\\\'>fudge</a> -covered shortbread <a href=\\\\\\'/ingridients/cookies\\\\\\'>cookies</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:11',\n 'updated_at' => '2019-01-07 02:38:11',\n ),\n 264 => \n array (\n 'id' => 765,\n 'recipe_id' => '93',\n 'ingrident' => 'marshmallow',\n 'amount' => NULL,\n 'note' => '8 JET-PUFFED Miniature Marshmallow s ',\n 'displayNote' => '\\'8 jet-puffed miniature <a href=\\\\\\'/ingridients/marshmallow\\\\\\'>marshmallow</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:11',\n 'updated_at' => '2019-01-07 02:38:11',\n ),\n 265 => \n array (\n 'id' => 766,\n 'recipe_id' => '94',\n 'ingrident' => 'peanut',\n 'amount' => NULL,\n 'note' => ' 12 peanut butter sandwich cookie s ',\n 'displayNote' => '\\' 12 <a href=\\\\\\'/ingridients/peanut-1\\\\\\'>peanut</a> <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> sandwich cookie s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 266 => \n array (\n 'id' => 767,\n 'recipe_id' => '94',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 pkg. (4 oz.) BAKER&#39;S White Chocolate, melted ',\n 'displayNote' => '\\'1 pkg. (4 oz.) baker&#39;s white <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 267 => \n array (\n 'id' => 768,\n 'recipe_id' => '94',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '2 Tbsp. red colored sugar ',\n 'displayNote' => '\\'2 tbsp. red colored <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 268 => \n array (\n 'id' => 769,\n 'recipe_id' => '94',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '24 miniature semi-sweet chocolate chips ',\n 'displayNote' => '\\'24 miniature semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> <a href=\\\\\\'/ingridients/chips\\\\\\'>chips</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 269 => \n array (\n 'id' => 770,\n 'recipe_id' => '94',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => 'decorations: 12 <u>each small red and white hard candies ',\n 'displayNote' => '\\'decorations: 12 <u>each small red and white hard candies \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:14',\n 'updated_at' => '2019-01-07 02:38:14',\n ),\n 270 => \n array (\n 'id' => 771,\n 'recipe_id' => '95',\n 'ingrident' => 'pie crust',\n 'amount' => NULL,\n 'note' => ' 1 ready-to-use refrigerated pie crust (1/2 of 14.1-oz. pkg.) ',\n 'displayNote' => '\\' 1 ready-to-use refrigerated <a href=\\\\\\'/ingridients/pie-crust\\\\\\'>pie crust</a> (1/2 of 14.1-oz. pkg.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 271 => \n array (\n 'id' => 772,\n 'recipe_id' => '95',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '2 tsp. flour, divided ',\n 'displayNote' => '\\'2 tsp. <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> , divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 272 => \n array (\n 'id' => 773,\n 'recipe_id' => '95',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '3 egg s ',\n 'displayNote' => '\\'3 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 273 => \n array (\n 'id' => 774,\n 'recipe_id' => '95',\n 'ingrident' => 'corn',\n 'amount' => NULL,\n 'note' => '1 cup light corn syrup ',\n 'displayNote' => '\\'1 cup light <a href=\\\\\\'/ingridients/corn\\\\\\'>corn</a> syrup \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 274 => \n array (\n 'id' => 775,\n 'recipe_id' => '95',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '1 cup sugar ',\n 'displayNote' => '\\'1 cup <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 275 => \n array (\n 'id' => 776,\n 'recipe_id' => '95',\n 'ingrident' => 'butter',\n 'amount' => NULL,\n 'note' => '2 Tbsp. butter, melted ',\n 'displayNote' => '\\'2 tbsp. <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> , melted \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 276 => \n array (\n 'id' => 777,\n 'recipe_id' => '95',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '1 tsp. vanilla ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 277 => \n array (\n 'id' => 778,\n 'recipe_id' => '95',\n 'ingrident' => 'pecan',\n 'amount' => NULL,\n 'note' => '1 cup PLANTERS Pecan Halves ',\n 'displayNote' => '\\'1 cup planters <a href=\\\\\\'/ingridients/pecan\\\\\\'>pecan</a> halves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:19',\n 'updated_at' => '2019-01-07 02:38:19',\n ),\n 278 => \n array (\n 'id' => 779,\n 'recipe_id' => '95',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '2 oz. BAKER&#39;S Semi-Sweet Chocolate, coarsely chopped ',\n 'displayNote' => '\\'2 oz. baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , coarsely chopped \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:20',\n 'updated_at' => '2019-01-07 02:38:20',\n ),\n 279 => \n array (\n 'id' => 780,\n 'recipe_id' => '95',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/2 tsp. coarse sea salt ',\n 'displayNote' => '\\'1/2 tsp. coarse sea salt \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:20',\n 'updated_at' => '2019-01-07 02:38:20',\n ),\n 280 => \n array (\n 'id' => 781,\n 'recipe_id' => '96',\n 'ingrident' => 'beef sirloin',\n 'amount' => NULL,\n 'note' => ' 1 beef sirloin steak (3/4 lb.), 3/4 inch thick ',\n 'displayNote' => '\\' 1 <a href=\\\\\\'/ingridients/beef-sirloin\\\\\\'>beef sirloin</a> steak (3/4 lb.), 3/4 inch thick \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 281 => \n array (\n 'id' => 782,\n 'recipe_id' => '96',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 Tbsp. A.1. Original Sauce ',\n 'displayNote' => '\\'2 tbsp. a.1. original sauce \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 282 => \n array (\n 'id' => 783,\n 'recipe_id' => '96',\n 'ingrident' => 'mayonnaise',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Mayo with Olive Oil Reduced Fat Mayonnaise ',\n 'displayNote' => '\\'1/4 cup kraft mayo with <a href=\\\\\\'/ingridients/olive\\\\\\'>olive</a> oil reduced fat <a href=\\\\\\'/ingridients/mayonnaise\\\\\\'>mayonnaise</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 283 => \n array (\n 'id' => 784,\n 'recipe_id' => '96',\n 'ingrident' => 'ranch dressing',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Lite Ranch Dressing ',\n 'displayNote' => '\\'1/4 cup kraft lite <a href=\\\\\\'/ingridients/ranch-dressing\\\\\\'>ranch dressing</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 284 => \n array (\n 'id' => 785,\n 'recipe_id' => '96',\n 'ingrident' => 'horseradish',\n 'amount' => NULL,\n 'note' => '2 tsp. KRAFT Prepared Horseradish ',\n 'displayNote' => '\\'2 tsp. kraft prepared <a href=\\\\\\'/ingridients/horseradish\\\\\\'>horseradish</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 285 => \n array (\n 'id' => 786,\n 'recipe_id' => '96',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '8 cups loosely packed chopped romaine lettuce ',\n 'displayNote' => '\\'8 cups loosely packed chopped romaine lettuce \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 286 => \n array (\n 'id' => 787,\n 'recipe_id' => '96',\n 'ingrident' => 'tomato',\n 'amount' => NULL,\n 'note' => '1 tomato, cut into wedges ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/tomato\\\\\\'>tomato</a> , cut into wedges \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 287 => \n array (\n 'id' => 788,\n 'recipe_id' => '96',\n 'ingrident' => 'onion',\n 'amount' => NULL,\n 'note' => '1 small red onion, cut into thin wedges ',\n 'displayNote' => '\\'1 small red <a href=\\\\\\'/ingridients/onion\\\\\\'>onion</a> , cut into thin wedges \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 288 => \n array (\n 'id' => 789,\n 'recipe_id' => '96',\n 'ingrident' => 'cheddar',\n 'amount' => NULL,\n 'note' => '1/2 cup KRAFT 2% Milk Shredded Sharp Cheddar Cheese ',\n 'displayNote' => '\\'1/2 cup kraft 2% <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> shredded sharp <a href=\\\\\\'/ingridients/cheddar\\\\\\'>cheddar</a> cheese \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:23',\n 'updated_at' => '2019-01-07 02:38:23',\n ),\n 289 => \n array (\n 'id' => 790,\n 'recipe_id' => '97',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => ' 1 container (1.5 qt.) vanilla ice cream, slightly softened ',\n 'displayNote' => '\\' 1 container (1.5 qt.) <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> ice <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> , slightly softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 290 => \n array (\n 'id' => 791,\n 'recipe_id' => '97',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '6 sugar cones, divided ',\n 'displayNote' => '\\'6 <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> cones, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 291 => \n array (\n 'id' => 792,\n 'recipe_id' => '97',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '1 pkg. (4 oz.) BAKER&#39;S Semi-Sweet Chocolate ',\n 'displayNote' => '\\'1 pkg. (4 oz.) baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 292 => \n array (\n 'id' => 793,\n 'recipe_id' => '97',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 Tbsp. oil ',\n 'displayNote' => '\\'1 tbsp. oil \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 293 => \n array (\n 'id' => 794,\n 'recipe_id' => '97',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/4 cup chopped PLANTERS Dry Roasted Peanuts ',\n 'displayNote' => '\\'1/4 cup chopped planters dry roasted peanuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:30',\n 'updated_at' => '2019-01-07 02:38:30',\n ),\n 294 => \n array (\n 'id' => 795,\n 'recipe_id' => '98',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 1 tub (8 oz.) COOL WHIP Whipped Topping, thawed ',\n 'displayNote' => '\\' 1 tub (8 oz.) cool whip whipped topping, thawed \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 295 => \n array (\n 'id' => 796,\n 'recipe_id' => '98',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '40 vanilla wafers, divided ',\n 'displayNote' => '\\'40 <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> wafers, divided \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 296 => \n array (\n 'id' => 797,\n 'recipe_id' => '98',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => '2 pkg. (3.4 oz. each) JELL-O Vanilla Flavor Instant Pudding ',\n 'displayNote' => '\\'2 pkg. (3.4 oz. each) jell-o <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 297 => \n array (\n 'id' => 798,\n 'recipe_id' => '98',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '3-1/2 cups cold milk ',\n 'displayNote' => '\\'3-1/2 cups cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 298 => \n array (\n 'id' => 799,\n 'recipe_id' => '98',\n 'ingrident' => 'berries',\n 'amount' => NULL,\n 'note' => '2 cups mixed berries (blueberries, raspberries, sliced fresh strawberries) ',\n 'displayNote' => '\\'2 cups mixed <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> (blue <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> , rasp <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> , sliced fresh straw <a href=\\\\\\'/ingridients/berries\\\\\\'>berries</a> ) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:34',\n 'updated_at' => '2019-01-07 02:38:34',\n ),\n 299 => \n array (\n 'id' => 800,\n 'recipe_id' => '99',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => ' 1 lb. lean ground beef ',\n 'displayNote' => '\\' 1 lb. lean <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:36',\n 'updated_at' => '2019-01-07 02:38:36',\n ),\n 300 => \n array (\n 'id' => 801,\n 'recipe_id' => '99',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup sliced fresh mushrooms ',\n 'displayNote' => '\\'1 cup sliced fresh mushrooms \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:36',\n 'updated_at' => '2019-01-07 02:38:36',\n ),\n 301 => \n array (\n 'id' => 802,\n 'recipe_id' => '99',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1-1/4 cups milk ',\n 'displayNote' => '\\'1-1/4 cups <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:36',\n 'updated_at' => '2019-01-07 02:38:36',\n ),\n 302 => \n array (\n 'id' => 803,\n 'recipe_id' => '99',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup water ',\n 'displayNote' => '\\'1 cup water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:36',\n 'updated_at' => '2019-01-07 02:38:36',\n ),\n 303 => \n array (\n 'id' => 804,\n 'recipe_id' => '99',\n 'ingrident' => 'velveeta',\n 'amount' => NULL,\n 'note' => '1 pkg. (11.6 oz.) VELVEETA CHEESY SKILLETS Dinner Kit Creamy Beef Stroganoff ',\n 'displayNote' => '\\'1 pkg. (11.6 oz.) <a href=\\\\\\'/ingridients/velveeta\\\\\\'>velveeta</a> cheesy skillets dinner kit creamy beef stroganoff \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:37',\n 'updated_at' => '2019-01-07 02:38:37',\n ),\n 304 => \n array (\n 'id' => 805,\n 'recipe_id' => '100',\n 'ingrident' => 'vanilla',\n 'amount' => NULL,\n 'note' => ' 2 baked 8-inch round vanilla cake layers, cooled ',\n 'displayNote' => '\\' 2 baked 8-inch round <a href=\\\\\\'/ingridients/vanilla\\\\\\'>vanilla</a> cake layers, cooled \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 305 => \n array (\n 'id' => 806,\n 'recipe_id' => '100',\n 'ingrident' => 'strawberry',\n 'amount' => NULL,\n 'note' => '1 pkg (3 oz.) JELL-O Strawberry Flavor Gelatin ',\n 'displayNote' => '\\'1 pkg (3 oz.) jell-o <a href=\\\\\\'/ingridients/strawberry\\\\\\'>strawberry</a> flavor gelatin \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 306 => \n array (\n 'id' => 807,\n 'recipe_id' => '100',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '2 cups boiling water ',\n 'displayNote' => '\\'2 cups boiling water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 307 => \n array (\n 'id' => 808,\n 'recipe_id' => '100',\n 'ingrident' => 'banana',\n 'amount' => NULL,\n 'note' => '1 pkg (3.4 oz.) JELL-O Banana Cream Flavor Instant Pudding ',\n 'displayNote' => '\\'1 pkg (3.4 oz.) jell-o <a href=\\\\\\'/ingridients/banana\\\\\\'>banana</a> <a href=\\\\\\'/ingridients/cream-1\\\\\\'>cream</a> flavor instant pudding \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 308 => \n array (\n 'id' => 809,\n 'recipe_id' => '100',\n 'ingrident' => 'milk',\n 'amount' => NULL,\n 'note' => '1 cup cold milk ',\n 'displayNote' => '\\'1 cup cold <a href=\\\\\\'/ingridients/milk\\\\\\'>milk</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 309 => \n array (\n 'id' => 810,\n 'recipe_id' => '100',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 tub (8 oz.) Extra Creamy COOL WHIP Whipped Topping ',\n 'displayNote' => '\\'1 tub (8 oz.) extra creamy cool whip whipped topping \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 310 => \n array (\n 'id' => 811,\n 'recipe_id' => '100',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => '*hocolate shavings, banana slices, cherry with stem, chocolate drizzle to decorate (optional) ',\n 'displayNote' => '\\'*hocolate shavings, <a href=\\\\\\'/ingridients/banana\\\\\\'>banana</a> slices, <a href=\\\\\\'/ingridients/cherry\\\\\\'>cherry</a> with stem, <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> drizzle to decorate (optional) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:43',\n 'updated_at' => '2019-01-07 02:38:43',\n ),\n 311 => \n array (\n 'id' => 812,\n 'recipe_id' => '101',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => ' 2 cups boiling water ',\n 'displayNote' => '\\' 2 cups boiling water \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:52',\n 'updated_at' => '2019-01-07 02:38:52',\n ),\n 312 => \n array (\n 'id' => 813,\n 'recipe_id' => '101',\n 'ingrident' => 'strawberry',\n 'amount' => NULL,\n 'note' => '2 pkg. (3 oz. each) JELL-O Strawberry Flavor Gelatin ',\n 'displayNote' => '\\'2 pkg. (3 oz. each) jell-o <a href=\\\\\\'/ingridients/strawberry\\\\\\'>strawberry</a> flavor gelatin \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:52',\n 'updated_at' => '2019-01-07 02:38:52',\n ),\n 313 => \n array (\n 'id' => 814,\n 'recipe_id' => '101',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 cups ice cubes ',\n 'displayNote' => '\\'4 cups ice cubes \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:52',\n 'updated_at' => '2019-01-07 02:38:52',\n ),\n 314 => \n array (\n 'id' => 815,\n 'recipe_id' => '101',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1/3 cup bear-shaped gummy candies (2 oz.) ',\n 'displayNote' => '\\'1/3 cup bear-shaped gummy candies (2 oz.) \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:38:52',\n 'updated_at' => '2019-01-07 02:38:52',\n ),\n 315 => \n array (\n 'id' => 816,\n 'recipe_id' => '103',\n 'ingrident' => 'ground beef',\n 'amount' => NULL,\n 'note' => ' 1 lb. lean ground beef ',\n 'displayNote' => '\\' 1 lb. lean <a href=\\\\\\'/ingridients/ground-beef\\\\\\'>ground beef</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 316 => \n array (\n 'id' => 817,\n 'recipe_id' => '103',\n 'ingrident' => 'bacon',\n 'amount' => NULL,\n 'note' => '4 slices OSCAR MAYER Bacon ',\n 'displayNote' => '\\'4 slices oscar mayer <a href=\\\\\\'/ingridients/bacon\\\\\\'>bacon</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 317 => \n array (\n 'id' => 818,\n 'recipe_id' => '103',\n 'ingrident' => 'pepper jack',\n 'amount' => NULL,\n 'note' => '4 KRAFT Big Slice Pepper Jack Cheese Slice s ',\n 'displayNote' => '\\'4 kraft big slice <a href=\\\\\\'/ingridients/pepper-jack\\\\\\'>pepper jack</a> cheese slice s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 318 => \n array (\n 'id' => 819,\n 'recipe_id' => '103',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '4 kaiser roll s, split ',\n 'displayNote' => '\\'4 kaiser roll s, split \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 319 => \n array (\n 'id' => 820,\n 'recipe_id' => '103',\n 'ingrident' => 'chipotle',\n 'amount' => NULL,\n 'note' => '1/4 cup KRAFT Chipotle Aioli ',\n 'displayNote' => '\\'1/4 cup kraft <a href=\\\\\\'/ingridients/chipotle\\\\\\'>chipotle</a> aioli \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 320 => \n array (\n 'id' => 821,\n 'recipe_id' => '103',\n 'ingrident' => 'avocado',\n 'amount' => NULL,\n 'note' => '1 avocado, cut into 12 slices ',\n 'displayNote' => '\\'1 <a href=\\\\\\'/ingridients/avocado\\\\\\'>avocado</a> , cut into 12 slices \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:03',\n 'updated_at' => '2019-01-07 02:39:03',\n ),\n 321 => \n array (\n 'id' => 822,\n 'recipe_id' => '103',\n 'ingrident' => 'cilantro',\n 'amount' => NULL,\n 'note' => '1/2 cup coarsely chopped fresh cilantro ',\n 'displayNote' => '\\'1/2 cup coarsely chopped fresh <a href=\\\\\\'/ingridients/cilantro\\\\\\'>cilantro</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:04',\n 'updated_at' => '2019-01-07 02:39:04',\n ),\n 322 => \n array (\n 'id' => 823,\n 'recipe_id' => '104',\n 'ingrident' => 'chocolate',\n 'amount' => NULL,\n 'note' => ' 2 pkg. (4 oz. each) BAKER&#39;S Semi-Sweet Chocolate, broken into pieces ',\n 'displayNote' => '\\' 2 pkg. (4 oz. each) baker&#39;s semi-sweet <a href=\\\\\\'/ingridients/chocolate-1\\\\\\'>chocolate</a> , broken into pieces \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 323 => \n array (\n 'id' => 824,\n 'recipe_id' => '104',\n 'ingrident' => 'margarine',\n 'amount' => NULL,\n 'note' => '1/4 cup (1/2 stick) butter or margarine, softened ',\n 'displayNote' => '\\'1/4 cup (1/2 stick) <a href=\\\\\\'/ingridients/butter\\\\\\'>butter</a> or <a href=\\\\\\'/ingridients/margarine\\\\\\'>margarine</a> , softened \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 324 => \n array (\n 'id' => 825,\n 'recipe_id' => '104',\n 'ingrident' => 'sugar',\n 'amount' => NULL,\n 'note' => '3/4 cup firmly packed brown sugar ',\n 'displayNote' => '\\'3/4 cup firmly packed brown <a href=\\\\\\'/ingridients/sugar\\\\\\'>sugar</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 325 => \n array (\n 'id' => 826,\n 'recipe_id' => '104',\n 'ingrident' => 'egg',\n 'amount' => NULL,\n 'note' => '3 egg s ',\n 'displayNote' => '\\'3 <a href=\\\\\\'/ingridients/egg\\\\\\'>egg</a> s \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 326 => \n array (\n 'id' => 827,\n 'recipe_id' => '104',\n 'ingrident' => 'coffee',\n 'amount' => NULL,\n 'note' => '2 tsp. MAXWELL HOUSE Instant Coffee ',\n 'displayNote' => '\\'2 tsp. maxwell house instant <a href=\\\\\\'/ingridients/coffee\\\\\\'>coffee</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 327 => \n array (\n 'id' => 828,\n 'recipe_id' => '104',\n 'ingrident' => 'rum',\n 'amount' => NULL,\n 'note' => '1 tsp. rum extract ',\n 'displayNote' => '\\'1 tsp. <a href=\\\\\\'/ingridients/rum\\\\\\'>rum</a> extract \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 328 => \n array (\n 'id' => 829,\n 'recipe_id' => '104',\n 'ingrident' => 'flour',\n 'amount' => NULL,\n 'note' => '1/4 cup flour ',\n 'displayNote' => '\\'1/4 cup <a href=\\\\\\'/ingridients/flour\\\\\\'>flour</a> \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 329 => \n array (\n 'id' => 830,\n 'recipe_id' => '104',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 cup chopped PLANTERS Walnuts ',\n 'displayNote' => '\\'1 cup chopped planters walnuts \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 330 => \n array (\n 'id' => 831,\n 'recipe_id' => '104',\n 'ingrident' => '',\n 'amount' => NULL,\n 'note' => '1 unbaked 9-inch pastry shell ',\n 'displayNote' => '\\'1 unbaked 9-inch pastry shell \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n 331 => \n array (\n 'id' => 832,\n 'recipe_id' => '104',\n 'ingrident' => 'walnut',\n 'amount' => NULL,\n 'note' => '1/2 cup PLANTERS Walnut Halves ',\n 'displayNote' => '\\'1/2 cup planters <a href=\\\\\\'/ingridients/walnut-1\\\\\\'>walnut</a> halves \\'',\n 'deleted_at' => NULL,\n 'created_at' => '2019-01-07 02:39:15',\n 'updated_at' => '2019-01-07 02:39:15',\n ),\n ));\n \n \n }", "public function ActualizarIngredientes()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"codingrediente\"]) or empty($_POST[\"nomingrediente\"]) or empty($_POST[\"cantingrediente\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\t$sql = \" select nomingrediente from ingredientes where codingrediente != ? and nomingrediente = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array($_POST[\"codingrediente\"], $_POST[\"nomingrediente\"]) );\n\t$num = $stmt->rowCount();\n\tif($num == 0)\n\t{\n\t\t$sql = \" update ingredientes set \"\n\t\t.\" nomingrediente = ?, \"\n\t\t.\" cantingrediente = ?, \"\n\t\t.\" costoingrediente = ?, \"\n\t\t.\" unidadingrediente = ?, \"\n\t\t.\" codproveedor = ?, \"\n\t\t.\" stockminimoingrediente = ? \"\n\t\t.\" where \"\n\t\t.\" codingrediente = ?;\n\t\t\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1, $nomingrediente);\n\t\t$stmt->bindParam(2, $cantingrediente);\n\t\t$stmt->bindParam(3, $costoingrediente);\n\t\t$stmt->bindParam(4, $unidadingrediente);\n\t\t$stmt->bindParam(5, $codproveedor);\n\t\t$stmt->bindParam(6, $stockminimoingrediente);\n\t\t$stmt->bindParam(7, $codingrediente);\n\n\t\t$nomingrediente = strip_tags($_POST[\"nomingrediente\"]);\n\t\t$cantingrediente = strip_tags($_POST[\"cantingrediente\"]);\n\t\t$costoingrediente = strip_tags($_POST[\"costoingrediente\"]);\n\t\t$unidadingrediente = strip_tags($_POST[\"unidadingrediente\"]);\n\t\t$codproveedor = strip_tags($_POST[\"codproveedor\"]);\n\t\t$stockminimoingrediente = strip_tags($_POST[\"stockminimoingrediente\"]);\n\t\t$codingrediente = strip_tags($_POST[\"codingrediente\"]);\n\t\t$stmt->execute();\n\n\t\techo \"<div class='alert alert-info'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<span class='fa fa-check-square-o'></span> EL INGREDIENTE FUE ACTUALIZADO EXITOSAMENTE\";\n\t\techo \"</div>\";\n\t\texit;\n\t}\n\telse\n\t{\n\t\techo \"2\";\n\t\texit;\n\t}\n}", "function buildSQLString($tempArray)\n{\n\t\n\t$builtString = \"CALL create_poll(1,\" . \"'\" . $tempArray[0][0] . \"',\" . \"NULL,\" . \"30,\";\n\t\n\tfor ($i = 0; $i < count($tempArray); $i++)\n\t{\n\t\tfor ($j = 1; $j < count($tempArray[$i]); $j++)\n\t\t{\n\t\t\t\t$builtString .= \"'\" . $tempArray[$i][$j] . \"',\";\n\t\t}\n\t\n\t$builtString .= \"NULL, NULL, NULL, NULL, NULL, NULL);\";\n\t\n\t\t\n\t}\n\treturn $builtString;\n}", "function getString($associativeArray, $constant){\n $numKeys = count($associativeArray);\n $keys = array_keys($associativeArray);\n if($constant==INSERT_QUERY_FORMAT){\n $string=\"(\";\n $string1=\"(\";\n for($i=0; $i < $numKeys; ++$i)\n {\n $string.=\"$keys[$i],\";\n $string1.=\"?,\";\n }\n $string[strlen($string)-1]=\")\";\n $string1[strlen($string1)-1]=\")\";\n $string.=\" VALUES \".$string1;\n }\n else if($constant==UPDATE_QUERY_FORMAT){\n $string=\"\";\n for($i=0; $i < $numKeys; ++$i) {\n $string.=\"$keys[$i] = ?\";\n if($i!=$numKeys-1)\n $string.=\",\";\n }\n }\n return $string;\n}", "protected function buildSQLValuesFrom(array $rows): string\n {\n $values = collect($rows)->reduce(function ($valuesString, $row) {\n return $valuesString .= '(' . rtrim(str_repeat(\"?,\", count($row)), ',') . '),';\n }, '');\n\n return rtrim($values, ',');\n }", "public function createCommaDelimitedValueForInsert() {\n $retVal = \"\";\n $retVal .= \"$this->btxid\";\n $retVal .= \",'$this->coin'\";\n $retVal .= \",'$this->market'\";\n $retVal .= \",\". $this->quantity .\"\";\n $retVal .= \",\". $this->value . \"\";\n $retVal .= \",\". $this->usdValue .\"\";\n $retVal .= \",\". $this->total .\"\";\n $retVal .= \",\". $this->fillytype .\"\";\n $retVal .= \",\". $this->ordertype .\"\";\n $retVal .= \",\". $this->btxtimestamp .\"\";\n\n return $retVal;\n }", "private function mysqlRealEscapeArray(array $input) {\r\n\t\t$output = array();\r\n\t\tforeach($input as $name => $value) {\r\n\t\t\tif(is_array($value)) {\r\n\t\t\t\t$output[mysql_real_escape_string($name)] = $this->mysqlRealEscapeArray($value);\r\n\t\t\t} else {\r\n\t\t\t\t$output[mysql_real_escape_string($name)] = mysql_real_escape_string($value);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $output;\r\n\t}", "function select_ingredient_list($dg, $db, $hf) {\n\t\t//query batabase for all base ingredients and all included DLCs\n\t\tif($dg == false && $db == false && $hf == false)\n\t\t\t$where = 'dlc is null';\n\t\telse if($dg == true && $db == true && $hf == true)\n\t\t\t$where = null;\n\t\telse if($dg == true && $db == false && $hf == false)\n\t\t\t$where = 'dlc = \"dg\" or dlc is null';\n\t\telse if($dg == false && $db == true && $hf == false)\n\t\t\t$where = 'dlc = \"db\" or dlc is null';\n\t\telse if($dg == false && $db == false && $hf == true)\n\t\t\t$where = 'dlc = \"hf\" or dlc is null';\n\t\telse if($dg == false && $db == true && $hf == true)\n\t\t\t$where = 'dlc = \"db\" or dlc = \"hf\" or dlc is null';\n\t\telse if($dg == true && $db == false && $hf == true)\n\t\t\t$where = 'dlc = \"dg\" or dlc = \"hf\" or dlc is null';\n\t\telse if($dg == true && $db == true && $hf == false)\n\t\t\t$where = 'dlc = \"dg\" or dlc = \"db\" or dlc is null';\n\t\t\n\t\tdb_CRUD::select('ingredient', 'i_name, iid', $where, '1');\n\t}", "function array_to_sqladd($arr) {\n\t$s = '';\n\tforeach($arr as $k=>$v) {\n\t\t$v = addslashes($v);\n\t\t$op = substr($k, -1);\n\t\tif($op == '+' || $op == '-') {\n\t\t\t$k = substr($k, 0, -1);\n\t\t\t$s .= \"`$k`=`$k`$op'$v',\";\n\t\t} else {\n\t\t\t$s .= \"`$k`='$v',\";\n\t\t}\n\t}\n\treturn substr($s, 0, -1);\n}", "public function make_sql_string(){\n\t\t$argumentos=[];\n\t\tforeach($this->arguments as $arg){\n\t\t\tif($arg instanceof resolve_to_sql){\n\t\t\t\t$argumentos[]=$arg->make_sql_string();\n\t\t\t}else{\n\t\t\t\tif(is_object($arg)){\n\t\t\t\t\tthrow new \\Exception('Argumento erroneo ('.get_class($arg).') en el grupo al construir');\n\t\t\t\t}else{\n\t\t\t\t\tthrow new \\Exception(\"Argumento erroneo ($arg) en el grupo al construir\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn '('.implode($this->get_union(),$argumentos).')';\n\t}", "function formatSubstitutions($container) {\n\t\t//\t\tdebug($container);\n\t\t$Substitute = array();\n\t\tforeach ($container['contents'] as $groupId => $group ) {\n\t\t\t$AuditionREF = array();\n\t\t\tforeach ($group['Auditions'] as $idref) {\n\t\t\t\t$AuditionREF[] = array('idref'=> \"snappi-audition-\".$idref);\n\t\t\t}\n\t\t\t$Label = $group['Label'];\n\t\t\t$Type = $group['Type'];\n\t\t\t$id = \"snappi-{$Type}-{$groupId}\";\n\t\t\t$Substitute[] = compact('id', 'Label', 'AuditionREF');\n\t\t}\n\t\t//\t\treturn compact('Substitute');\n\t\treturn array('Substitution'=>$Substitute);\n\t}", "public function IngredientesPorId()\n{\n\tself::SetNames();\n\t$sql = \" SELECT * FROM ingredientes LEFT JOIN proveedores ON ingredientes.codproveedor = proveedores.codproveedor WHERE ingredientes.codingrediente = ?\";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array(base64_decode($_GET[\"codingrediente\"])) );\n\t$num = $stmt->rowCount();\n\tif($num==0)\n\t{\n\t\techo \"\";\n\t}\n\telse\n\t{\n\t\tif($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$this->p[] = $row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\t\t}\n\t}", "protected function buildFields(): string\n {\n $sql = '';\n\n // A set of fields isn't really required, even if it's a good\n // idea to have them. If nothing is there, leave it empty.\n if ( $this->fieldValueSet->isEmpty() )\n {\n return $sql;\n }\n\n $fieldNames = [];\n\n foreach ( $this->fieldValueSet->getFieldNames() as $fn )\n {\n $fieldNames[] = $this->quoter()->quoteField($fn);\n }\n\n $sql .= $this->indent() . '(';\n $sql .= implode(', ', $fieldNames);\n $sql .= ')' . PHP_EOL;\n\n return $sql;\n }", "function db_array_to_update_sqladd( $arr ) {\n\t$s = '';\n\tif ( DB_TYPE == 'access' ) $arr = toutf( $arr );\n\tif ( is_array( $arr ) ) {\n\t\tforeach ( $arr as $k => $v ) {\n\t\t\t$v = ( $v );\n\t\t\t$op = substr( $k, -1 );\n\t\t\tif ( $op == '+' || $op == '-' ) {\n\t\t\t\t$k = substr( $k, 0, -1 );\n\t\t\t\t$v = ( is_int( $v ) || is_float( $v ) ) ? $v : \"'$v'\";\n\t\t\t\t$s .= \"`$k`=$k$op$v,\";\n\t\t\t} else {\n\t\t\t\t$v = ( is_int( $v ) || is_float( $v ) ) ? $v : \"'$v'\";\n\t\t\t\t$s .= \"`$k`=$v,\";\n\t\t\t}\n\t\t}\n\t\treturn substr( $s, 0, -1 );\n\t} else {\n\t\treturn $arr;\n\t}\n}", "function buildRelatedSqlQuery($arr, $form) {\r\n\t$formId = getFormId($form);\r\n\t$sql = \"SELECT forms.description AS formName, fq1.description AS question1, fq1.id AS question_id1, fqc1.description AS choice1, fqc1.id AS choice_id1 \";\r\n\tforeach ($arr as $key => $value) {\r\n\t\tif($key == 0) continue;\r\n\t\t$sql .= \", question\".($key+1).\" \";\r\n\t\t$sql .= \", question_id\".($key+1).\" \";\r\n\t\t$sql .= \", choice\".($key+1).\" \";\r\n\t\t$sql .= \", choice_id\".($key+1).\" \";\r\n\t}\t\r\n\t$sql .= \", COUNT(fqc1.description) AS votes FROM \";\r\n\tforeach ($arr as $key => $value) {\r\n\t\tif($key == 0) continue;\r\n\t\t$sql .= \"(SELECT DISTINCT sd\".($key+1).\".sms_number AS sender, fqc\".($key+1).\".description AS choice\".($key+1).\", fqc\".($key+1).\".id AS choice_id\".($key+1).\", fq\".($key+1).\".description AS question\".($key+1).\", fq\".($key+1).\".id AS question_id\".($key+1).\", f\".($key+1).\".description AS formName, f\".($key+1).\".id AS form_id FROM survey_data AS sd\".($key+1).\" LEFT JOIN choices AS fqc\".($key+1).\" ON sd\".($key+1).\".choice_id = fqc\".($key+1).\".id LEFT JOIN questions AS fq\".($key+1).\" ON fqc\".($key+1).\".question_id = fq\".($key+1).\".id LEFT JOIN forms AS f\".($key+1).\" ON fq\".($key+1).\".form_id = f\".($key+1).\".id WHERE f\".($key+1).\".id =\".$formId.\" AND fq\".($key+1).\".question =\".$value.\") AS x\".($key+1).\", \";\r\n\t}\r\n\t$sql .= \"survey_data AS sd1 LEFT JOIN choices AS fqc1 ON sd1.choice_id = fqc1.id LEFT JOIN questions AS fq1 ON fq1.id = fqc1.question_id LEFT JOIN forms ON fq1.form_id = forms.id WHERE \";\r\n\tforeach ($arr as $key => $value) {\r\n\t\tif($key == 0) continue;\r\n\t\t$sql .= \"sd1.sms_number = x\".($key+1).\".sender AND \";\r\n\t\t$sql .= \"forms.id = x\".($key+1).\".form_id\".($key<(sizeof($arr)-1)?\" AND \":\" \");\r\n\t}\r\n\t$sql .= \"AND fq1.question =\".$arr[0].\" GROUP BY choice1, \";\t\r\n\tforeach ($arr as $key => $value) {\r\n\t\tif($key == 0) continue;\r\n\t\t$sql .= \"choice\".($key+1).($key<(sizeof($arr)-1)?\", \":\" \");\r\n\t}\r\n\t//echo $sql;\r\n\treturn $sql;\r\n}", "private function _prepareInsertString($data) {\n /**\n * @ Incoming $data looks like:\n * $data = array('field' => 'value', 'field2'=> 'value2');\n */\n return array(\n 'names' => implode(\", \", array_keys($data)),\n 'values' => ':' . implode(', :', array_keys($data))\n );\n }", "public function run()\n {\n DB::table('ingredient')->insert([\n [\n 'recipe_id' => 1,\n 'ingredient_name' => 'ほうれん草',\n 'ingredient_detail' => '2束',\n 'ingredient_num' => 1,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n [\n 'recipe_id' => 1,\n 'ingredient_name' => '人参',\n 'ingredient_detail' => '1/2本',\n 'ingredient_num' => 2,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n [\n 'recipe_id' => 1,\n 'ingredient_name' => '卵',\n 'ingredient_detail' => '2個',\n 'ingredient_num' => 3,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n [\n 'recipe_id' => 1,\n 'ingredient_name' => 'マヨネーズ',\n 'ingredient_detail' => '大さじ1/2',\n 'ingredient_num' => 4,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n [\n 'recipe_id' => 1,\n 'ingredient_name' => 'ごま油',\n 'ingredient_detail' => '大さじ1',\n 'ingredient_num' => 5,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n [\n 'recipe_id' => 1,\n 'ingredient_name' => '鶏がらスープの素',\n 'ingredient_detail' => '小さじ1',\n 'ingredient_num' => 6,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n [\n 'recipe_id' => 1,\n 'ingredient_name' => '塩コショウ',\n 'ingredient_detail' => '適量',\n 'ingredient_num' => 7,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ],\n ]);\n }", "function quote_fields(&$rs, $sql_key=array(), $key_value=array()){\r\n $pk_val_new = array();\r\n\r\n $fm_types = array();\r\n for($t=0; $t<count($sql_key); $t++){\r\n $fm_type = $this->field_metatype($rs, $this->field_index($rs, str_replace('`', '', $sql_key[$t])));\r\n $fm_types[] = $fm_type;\r\n }\r\n\r\n for($i =0; $i < count($key_value); $i++){\r\n $pk_val_fields = explode(PK_DELIMITER, $key_value[$i]);\r\n\r\n // ###### DEBUG ONLY ######################\r\n // echo '$key_value[$i]: '. $key_value[$i] .\"\\n\";\r\n // echo 'pk_val_fields: ';\r\n // print_r($pk_val_fields);\r\n // ########################################\r\n\r\n for($j=0; $j < count($sql_key); $j++){\r\n $fm_type = $fm_types[$j];\r\n if($fm_type != 'I' && $fm_type != 'N' && $fm_type != 'R'){\r\n $pk_val_fld = \"'\" . $pk_val_fields[$j] .\"'\";\r\n }else{\r\n $pk_val_fld = $pk_val_fields[$j];\r\n }\r\n $pk_val_fields[$j] = $pk_val_fld;\r\n }\r\n\r\n $pk_val_new[] = '('. implode(',', $pk_val_fields) .')';\r\n }\r\n\r\n return $pk_val_new;\r\n }", "public function getAllIngredients(): array {\n try {\n return DB::select('select * from ingredients');\n } catch(Exception $e) {\n throw new Exception(\"Si è verificato un errore nel recupero degli ingredienti.\");\n }\n }", "public function getRecetteIngredients($id){\n $sql = \"SELECT * FROM RecetteIngredients INNER JOIN Ingredient ON Ingredient.idIngred= RecetteIngredients.idIngred WHERE (RecetteIngredients.idRecette= :id)\";\n $query = $this->_connexion->prepare($sql);\n $query->bindValue(':id', $id, PDO::PARAM_INT);\n $query->execute();\n return $query->fetchAll(); \n }", "protected function makeExtras($extras)\n\t{\n\t\t//print_r($extras);\n\t\tif(empty($extras))\n\t\t\treturn '';\n\t\t\n\t\t$tail = '';\n\t\tforeach($extras as $k=>$v)\n\t\t\tif(is_numeric($k))\n\t\t\t\t$tail.=' '.$v;\n\t\t\telse\n\t\t\t\t$tail.=' '.$k.'=\"'.$v.'\"';\n\t\t\treturn $tail;\n\t}", "function viewIngredient(){\n $id=$_REQUEST['id'];\n include(\"../model/ingredient.php\");\n $obj=new ingredient();\n\n if($obj->getIngredients($id)) {\n $row=$obj->fetch();\n echo '{\"result\":1,\"ingredients\":[';\n while($row){\n echo json_encode($row);\n $row=$obj->fetch();\n if($row){\n echo \",\";\n }\n }\n echo \"]}\";\n }\n else {\n echo '{\"result\":0}';\n }\n }", "function changeArrayToString($data) {\n\t\t$str = '';\n\t\tforeach($data as $value)\n\t\t{\n\t\t\tif(empty($str))\n\t\t\t\t$str = '\"'.trim(strip_tags($value)).'\"';\n\t\t\telse\n\t\t\t\t$str .=' ,\"'.trim(strip_tags($value)).'\"';\n\t\t}\n\t\treturn $str;\n\t}", "function formatAndQuery() {\n\tglobal $DB;\n\t$args = func_get_args();\n\t$query = array_shift($args); #remove the first element of the array as its own variable\n\t$query = str_replace(\"%sv\",\"'%s'\",$query);\n\tforeach ($args as $key => $val)\n\t {\n\t $args[$key] = $DB->real_escape_string($val);\n\t\t\t$args[$key] = htmlspecialchars($val);\n\t }\n\t$query = vsprintf($query, $args);\n\t$result = $DB->query($query);\n\tif (!$result)\n\t{\n\tthrow new Exception($DB->error.\" [$query]\");\n\t}\n\treturn $result;\n}", "public function prepare() {\n\t\t$args = func_get_args();\n\t\tfor ($i = 1; $i < func_num_args(); ++$i) {\n\t\t\t$args[$i] = $this->escape($args[$i]);\n\t\t}\n\t\t\n\t\treturn call_user_func_array('sprintf', $args);\n\t}", "protected function formatArray(array $values){\n $r = ''; foreach($values as $val) $r.= (empty($r)?'':',').$val;\n return $r;\n }", "public function hydrate(array $ingredient): Ingredient\n {\n $entity = new Ingredient();\n $entity->setTitle($ingredient['title']);\n\n if (array_key_exists('use-by', $ingredient)) {\n $entity->setUseBy(\\DateTime::createFromFormat('Y-m-d', $ingredient['use-by']));\n }\n if (array_key_exists('best-before', $ingredient)) {\n $entity->setBestBefore(\\DateTime::createFromFormat('Y-m-d', $ingredient['best-before']));\n }\n\n return $entity;\n }", "private function _prepareUpdateString($data) {\n /**\n * @ Incoming $data looks like:\n * $data = array('field' => 'value', 'field2'=> 'value2');\n */\n $fieldDetails = NULL;\n foreach ($data as $key => $value) {\n $fieldDetails .= \"$key=:$key, \";/** Notice the space after the comma */\n }\n $fieldDetails = rtrim($fieldDetails, ', ');/** Notice the space after the comma */\n return $fieldDetails;\n }", "public function getSqlFormattedValue()\n {\n if ($this->getType() == \"string\" || $this->getType() == \"time\" || $this->getType() == \"enum\") {\n return \"{\" .\"$\". \"this->parseValue(\". \"$\". \"this->\". $this->getName() .\",'notNumber')},\";\n } else if ($this->getType() == \"date\") {\n return \"{\" .\"$\". \"this->parseValue(\". \"$\". \"this->\". $this->getName() .\",'date')},\";\n } else if ($this->getType() == \"datetime\") {\n return \"{\" .\"$\". \"this->parseValue(\". \"$\". \"this->\". $this->getName() .\",'datetime')},\";;\n } else {\n return \"{\". \"$\". \"this->parseValue(\". \"$\". \"this->\". $this->getName().\")},\";\n }\n /*\n } else if ($this->getType() == \"date_OLD\") {\n return \"STR_TO_DATE(\". \"{\".\"$\". \"this->parseValue(\". \"$\". \"this->\". $this->getName().\",'date')},\".\"'\". \"{\".\"$\".\"constants['STORED_DATE_FORMAT']}\" .\"'),\";\n } else if ($this->getType() == \"datetime_OLD\") {\n return \"STR_TO_DATE(\". \"{\".\"$\". \"this->parseValue(\". \"$\". \"this->\". $this->getName().\",'date')},\".\"'\". \"{\".\"$\".\"constants['STORED_DATETIME_FORMAT']}\" .\"'),\";\n */\n\n }", "function arrayToSQLString ($arr) {\r\n $sql = \"\";\r\n foreach ($arr as $key => $value) {\r\n $sql = $sql . $value . ',';\r\n }\r\n $sql = rtrim($sql,',');\r\n return $sql;\r\n}", "function validateSanitizeMealIngredients($meal_ingredients){\n\t\t\tglobal $validForm, $meal_ingredients_Err;\n\t\t\t$sanitized_meal_ingredients = filter_var($meal_ingredients, FILTER_SANITIZE_STRING);\n\t\t\treturn $sanitized_meal_ingredients;\n\t\t}", "function buildVotingInputFields() {\n global $gallery;\n\n $nv_pairs = $gallery->album->getVoteNVPairs();\n $votingInputFieldArray = array();\n for ($i=0; $i<$gallery->album->getPollScale() ; $i++) {\n\t $votingInputFieldArray[] = \"<input type=\\\"text\\\" name=\\\"nv_pairs[$i][name]\\\" value=\\\"\". $nv_pairs[$i][\"name\"] .\"\\\">\";\n\t $votingInputFieldArray[] = \"<input type=\\\"text\\\" name=\\\"nv_pairs[$i][value]\\\" value=\\\"\". $nv_pairs[$i][\"value\"] .\"\\\">\";\n }\n\n return $votingInputFieldArray;\n}", "function array_to_set_clause($a_vars) {\n\tglobal $mysqli;\n\n\t$a_set = array();\n\t$a_values = array();\n\tforeach($a_vars as $k=>$v) {\n\t\t\t$k = $mysqli->real_escape_string($k);\n\t\t\t$v = $mysqli->real_escape_string($v);\n\t\t\t$a_set[] = $k;\n\t\t\t$a_values[] = $v;\n\t}\n\t$s_set = \"(`\".implode(\"`,`\", $a_set).\"`) VALUES ('\".implode(\"','\",$a_values).\"')\";\n\treturn $s_set;\n}", "function attachIngredientsToMeal($meal, $lang){\n\n $ingredients_array = [];\n\n foreach($meal->ingredients as $ingredient){\n $temp_array = [];\n $translation = IngredientTranslations::all()\n ->where('ingredient_id',$ingredient->id)\n ->where('locale',$lang)\n ->first();\n \n $temp_array['id'] = $ingredient->id;\n $temp_array['title'] = $translation->title;\n $temp_array['slug'] = $ingredient->slug;\n $ingredients_array[] = $temp_array;\n }\n\n return $ingredients_array;\n\n\n }", "function array_to_sql($table, $rows){\n $sql = \"INSERT INTO `$table` (\" . implode_padded(array_keys(current($rows))) . \") VALUES \\n\";\n $count = count($rows) - 1;\n $i = 0;\n foreach ($rows as $row) {\n $sql .= '(' . implode_padded($row, ',', \"'\") . ')';\n if ($i != $count) $sql .= \",\";\n $sql .= \"\\n\";\n ++$i;\n }\n $sql .= \";\\n\\n\";\n\n return $sql;\n}", "public function createNewRecipe($data) {\n // Get id of new recipe\n $this->db->query('SELECT rid FROM recipes WHERE rid=(SELECT MAX(rid) FROM recipes)');\n $this->db->execute();\n $row = $this->db->single();\n // Increment recipe id\n $newRecipeID = $row->rid + 1;\n\n // Upload image and return path\n $imgPath = $this->uploadImage($newRecipeID, $data['uid'], $data['img']);\n\n // Prepare sql query for new recipe entry\n $this->db->query('INSERT INTO recipes (rid,title,ownerid,description,prepTime,servingSize,imagePath,link) VALUES(:rid,:title,:uid,:description,:prepTime,:servingSize,:imagePath,:link);');\n // Bind values for prepared statement\n $this->db->bind(':rid', $newRecipeID);\n $this->db->bind(':uid', $data['uid']);\n $this->db->bind(':title', $data['title']);\n $this->db->bind(':description', $data['description']);\n $this->db->bind(':prepTime', $data['prepTime']);\n $this->db->bind(':servingSize', $data['servingSize']);\n $this->db->bind(':imagePath', $imgPath);\n $this->db->bind(':link', $data['link']);\n // Execute query\n try {\n $this->db->execute();\n } catch (PDOException $e) {\n echo '</br>FAILED recipe: ' . $e->getMessage() . '</br>';\n return false;\n }\n\n // Insert ingredients\n $ingredQueryArray = $this->convertIngredientsFormat($newRecipeID, $data['ingredients']);\n $ingredQueryString = 'INSERT INTO ingredients (rid,ingredientid,value) VALUES ' . implode(\", \", $ingredQueryArray) . ';';\n // echo $ingredQueryString;\n $this->db->query($ingredQueryString);\n // Bind all values in ingredients query\n for($i = 0; $i < count($ingredQueryArray); $i++) {\n $this->db->bind(':value' . ($i + 1), $data['ingredients'][$i]);\n }\n // Execute query\n try {\n $this->db->execute();\n } catch (PDOException $e) {\n echo '</br>FAILED ingredients: ' . $e->getMessage() . '</br>';\n return false;\n }\n\n // Insert directions\n $direcQueryArray = $this->convertDirectionsFormat($newRecipeID, $data['directions']);\n $direcQueryString = 'INSERT INTO directions (rid,stepNum,description) VALUES ' . implode(\", \", $direcQueryArray) . ';';\n // echo $direcQueryString;\n $this->db->query($direcQueryString);\n // Bind all values in ingredients query\n for($i = 0; $i < count($direcQueryArray); $i++) {\n $this->db->bind(':value' . ($i + 1), $data['directions'][$i]);\n }\n // Execute query\n try {\n $this->db->execute();\n } catch (PDOException $e) {\n echo '</br>FAILED directions: ' . $e->getMessage() . '</br>';\n return false;\n }\n\n return true;\n }", "function array_to_insert_clause($a_vars) {\n\tif (count($a_vars) == 0)\n\t\t\treturn \"\";\n\t$a_keys = array();\n\tforeach($a_vars as $k=>$v)\n\t\t\t$a_keys[] = $k;\n\treturn \"(`\".implode(\"`,`\",$a_keys).\"`) VALUES ('[\".implode(\"]','[\",$a_keys).\"]')\";\n}", "#[Pure] public function get_values(): string\n {\n if(gettype($this -> value) === \"string\") {\n return \"'\" . $this->value . \"'\";\n }else{\n $res = \"'\";\n foreach($this -> value as $v){\n $res .= strval($v) . \" \";\n }\n $res .= \"'\";\n }\n return $res;\n }", "function setGoodArrayAndGoodMysql ($array){\n $connect = $GLOBALS['connect'];\n $kode = $GLOBALS['kode'];\n $array = array_values ($array);\n $array = array_values ($array[0]);\n \n foreach ($array as $val)\n $data[] = mysqli_real_escape_string ( $connect , htmlspecialchars ( htmlentities ( strip_tags (trim ( $val ) ) ) ) );\n \n array_push ($data,$kode);\n return $data;\n}", "function getIngredients($servings=NULL,$optional=FALSE) {\n\t\tglobal $DB_LINK, $db_table_ingredientmaps;\n\t\t$ingredients = array();\n\t\t\n\t\t$scaling = null;\n\t\t\n\t\t// compute the scaling\n\t\tif ($this->serving_size != 0 && $this->serving_size != \"\")\n\t\t{\n\t\t\t$scaling = $servings / $this->serving_size;\n\t\t}\n\n\t\tif ($scaling == NULL || $servings == 0)\n\t\t{\n\t\t\t$scaling=1;\n\t\t}\n\t\t$sql = \"SELECT * FROM $db_table_ingredientmaps WHERE map_recipe=\" . $DB_LINK->addq($this->id, get_magic_quotes_gpc());\n\t\t$rc = $DB_LINK->Execute($sql);\n\t\twhile (!$rc->EOF) {\n\t\t\t// Only add the ingredient if we are suppose to\n\t\t\tif (($optional && $rc->fields['map_optional']==$DB_LINK->true) ||\n\t\t\t\t\t$rc->fields['map_optional']!=$DB_LINK->true)\n\t\t\t{\n\t\t\t\t$ingObj = new Ingredient();\n\t\t\t\t$ingObj->setIngredientMap($rc->fields['map_ingredient'],\n\t\t\t\t\t\t\t\t\t$rc->fields['map_recipe'],\n\t\t\t\t\t\t\t\t\t$rc->fields['map_qualifier'],\n\t\t\t\t\t\t\t\t\t$rc->fields['map_quantity'],\n\t\t\t\t\t\t\t\t\t$rc->fields['map_unit'],\n\t\t\t\t\t\t\t\t\t$rc->fields['map_order']);\n\t\t\t\t$ingObj->loadIngredient();\n\t\t\t\t$ingObj->convertToBaseUnits($scaling);\n\t\t\t\t$ingredients = ShoppingList::combineIngredients($ingredients, $ingObj);\n\t\t\t}\n\t\t\t$rc->MoveNext();\n\t\t}\n\t\treturn $ingredients;\n\t}", "function makeMultiple( $value, $column )\n{\n\tif ( $value == '' )\n\t{\n\t\treturn '';\n\t}\n\n\t$values = explode( '||', trim( $value, '||' ) );\n\n\treturn implode( ', ', $values );\n}", "public function getRowsFormatted($input = array(), $data = array())\n\t{\n\t\t$rowsFormated = array();\n\t\t$rowsObj = $this->getRows();\n\t\n\t\n\t\t// Interate through row data and format\n\t\tforeach($rowsObj->rows as $row){\n\t\t\t\n\t\t\t$rowFormatted[] = \"The row \" . $row['some_column_name_here'] . \" is now formatted!\"; \n\t\t\t\n\t\t}\n\t\t\n\t\n // Return a formatted rows object\n $rowsFormattedObj = new stdClass;\n $rowsFormattedObj->rows = $rowsFormatted;\n \n return $rowsFormattedObj;\t\t\n\t\t\n\t}", "function arrayToSqlStatement($arrayImageWithInfo, $tableName) {\n $removeRegex = \"/[\\n\\t\\r]/\";\n\n foreach ($arrayImageWithInfo as $key => $imageInfo) {\n foreach ($imageInfo as $key => $value) {\n $value = replaceCharacter($removeRegex, \"\", $value);\n $tableNameColumns = $tableNameColumns . $key . \",\";\n $dataToBeInsertedText = $dataToBeInsertedText . '\\'' . $value . \"',\";\n }\n $tableNameColumns = substr($tableNameColumns, 0, -1);\n $dataToBeInsertedText = substr($dataToBeInsertedText, 0, -1);\n mysqlUtilities::insertIntoTable($tableName, $tableNameColumns, $dataToBeInsertedText);\n $dataToBeInsertedText = \"\";\n $tableNameColumns = \"\";\n }\n}", "function toSqlList($lista) {\n $sql = \"\";\n foreach( explode(\",\",$lista) as $opc) {\n $sql .= ($sql!=\"\" ? \",\" : \"\").\"'\".trim($opc).\"'\";\n }\n return $sql;\n }", "public function toSql(Builder\\Where $builder, $property_path, $prefix = '')\n\t{\n\t\t$sql = '';\n\t\tif ($this->values) {\n\t\t\t$sql = $builder->buildColumn($property_path, $prefix)\n\t\t\t\t. ($this->not_in ? ' NOT' : '') . ' IN (';\n\t\t\t$first = true;\n\t\t\tforeach ($this->values as $value) {\n\t\t\t\tif ($first) $first = false; else $sql .= ', ';\n\t\t\t\t$sql .= Value::escape($value);\n\t\t\t}\n\t\t\t$sql .= ')';\n\t\t}\n\t\treturn $sql;\n\t}", "function prepareRowData(array &$row)\n{\n sanitizeDataQueried($row);\n convertAllDates($row);\n roundRawGrade($row);\n}", "function build_sql(string $sql, array $bindings = []): string\n{\n if (! Arr::isAssoc($bindings)) {\n $position = 0;\n foreach ($bindings as $value) {\n $position = strpos($sql, '?', $position);\n if ($position === false) {\n break;\n }\n\n $value = (string) match (gettype($value)) {\n 'integer', 'double' => $value,\n 'boolean' => (int) $value,\n default => sprintf(\"'%s'\", $value),\n };\n $sql = substr_replace($sql, $value, $position, 1);\n $position += strlen($value);\n }\n }\n\n return $sql;\n}", "public function createRefundItemEntry($data) {\n\n $query_string = \"INSERT INTO \" . DB_PREFIX . \"iyzico_order_refunds SET\";\n $data_array = array();\n foreach ($data as $key => $value) {\n $data_array[] = \"`$key` = '\" . $this->db->escape($value) . \"'\";\n }\n $data_string = implode(\", \", $data_array);\n $query_string .= $data_string;\n $query_string .= \";\";\n $this->db->query($query_string);\n return $this->db->getLastId();\n }", "private function prepareQueryArray($input){\n global $Core;\n if(empty($input) || !is_array($input)){\n throw new Exception ($Core->language->error_input_must_be_a_non_empty_array);\n }\n $allowedFields = $this->getTableFields();\n $temp = array();\n\n $parentFunction = debug_backtrace()[1]['function'];\n if((stristr($parentFunction,'add') || $parentFunction == 'insert')){\n $requiredBuffer = $this->requiredFields;\n }\n else{\n $requiredBuffer = array();\n if(stristr($parentFunction,'translate')){\n $allowedFields = $this->translationFields;\n }\n }\n\n foreach ($input as $k => $v){\n if($k === 'added' && !$this->allowFieldAdded){\n throw new Exception ($Core->language->field_added_is_not_allowed);\n }\n if($k === 'id'){\n throw new Exception ($Core->language->field_id_is_not_allowed);\n }\n\n if(!isset($allowedFields[$k]) && !in_array($k,$allowedFields)){\n throw new Exception (get_class($this).\": The field $k does not exist in table {$this->tableName}!\");\n }\n\n if(!is_array($v)){\n $v = trim($v);\n }\n\n if(!empty($v) || ((is_numeric($v) && intval($v) === 0))){\n if(!empty($requiredBuffer) && ($key = array_search($k, $requiredBuffer)) !== false) {\n unset($requiredBuffer[$key]);\n }\n $fieldType = $this->tableFields[$k]['type'];\n if(stristr($fieldType,'int') || stristr($fieldType,'double')){\n if(!is_numeric($v)){\n $k = str_ireplace('_id','',$k);\n throw new Exception ($Core->language->error_field.' \\\"'.$Core->language->$k.'\\\" '.$Core->language->error_must_be_a_numeric_value);\n }\n $temp[$k] = $v;\n }\n else if($fieldType == 'date'){\n $t = explode('-',$v);\n if(count($t) < 3 || !checkdate($t[1],$t[2],$t[0])){\n $k = str_ireplace('_id','',$k);\n throw new Exception ($Core->language->error_field.' \\\"'.$Core->language->$k.'\\\" '.$Core->language->error_must_be_a_date_with_format);\n }\n $temp[$k] = $v;\n unset($t);\n }\n else{\n if(in_array($k,$this->explodeFields)){\n if(is_object($v)){\n $v = (array)$v;\n }\n else if(!is_array($v)){\n $v = array($v);\n }\n\n if($k == 'languages'){\n $tt = array();\n foreach($v as $lang){\n if(empty($lang)){\n throw new Exception ($Core->language->error_language_cannot_be_empty);\n }\n $langMap = $Core->language->getLanguageMap(false);\n\n if(!isset($langMap[$lang])){\n throw new Exception ($Core->language->error_undefined_or_inactive_language);\n }\n if(!is_numeric($lang)){\n $lang = $langMap[$lang]['id'];\n }\n $tt[] = $lang;\n }\n $v = '|'.implode('|',$tt).'|';\n }\n else{\n $tt = '';\n foreach($v as $t){\n if(!empty($t)){\n $tt .= str_replace($this->explodeDelimiter,'_',$t).$this->explodeDelimiter;\n }\n }\n $v = substr($tt,0,-1);\n unset($tt,$t);\n }\n }\n else if(is_array($v)){\n $k = str_ireplace('_id','',$k);\n throw new Exception($Core->language->error_field.' \\\"'.$Core->language->$k.'\\\" '.$Core->language->error_must_be_alphanumeric_string);\n }\n\n $temp[$k] = $Core->db->real_escape_string($v);\n }\n }\n else{\n if(stristr($parentFunction,'update') && isset($this->requiredFields[$k])){\n $k = str_ireplace('_id','',$k);\n throw new Exception($Core->language->error_field.' \\\"'.$Core->language->$k.'\\\" '.$Core->language->error_must_not_be_empty);\n }\n else $temp[$k] = '';\n }\n }\n\n if(!empty($requiredBuffer)){\n $temp = array();\n foreach($requiredBuffer as $r){\n $r = str_ireplace('_id','',$r);\n $temp[] = $Core->language->$r;\n }\n\n throw new Exception($Core->language->error_required_fields_missing.\": \".implode(', ',$temp));\n }\n\n return $temp;\n }", "public function run() {\n DB::table('ingredients')->insert([\n ['id' => '1','name' => 'olio di oliva','type' => '','created_at' => '2016-03-01 16:19:45','updated_at' => '2016-03-01 16:19:45'],\n ['id' => '2','name' => 'pollo','type' => '','created_at' => '2016-03-01 16:19:45','updated_at' => '2016-03-01 16:19:45'],\n ['id' => '3','name' => 'patate','type' => '','created_at' => '2016-03-01 16:19:45','updated_at' => '2016-03-01 16:19:45'],\n ['id' => '4','name' => 'aglio','type' => '','created_at' => '2016-03-01 16:19:45','updated_at' => '2016-03-01 16:19:45'],\n ['id' => '6','name' => 'prezzemolo','type' => '','created_at' => '2016-03-01 20:31:59','updated_at' => '2016-03-01 20:31:59'],\n ['id' => '7','name' => 'vongole','type' => '','created_at' => '2016-03-01 20:31:59','updated_at' => '2016-03-25 15:08:38'],\n ['id' => '8','name' => 'vino','type' => '','created_at' => '2016-03-01 20:31:59','updated_at' => '2016-03-01 20:31:59'],\n ['id' => '9','name' => 'pomodori','type' => '','created_at' => '2016-03-01 20:31:59','updated_at' => '2016-03-01 20:31:59'],\n ['id' => '10','name' => 'pasta filo','type' => '','created_at' => '2016-03-01 21:28:41','updated_at' => '2016-03-01 21:28:41'],\n ['id' => '11','name' => 'panna fresca','type' => '','created_at' => '2016-03-01 21:28:41','updated_at' => '2016-03-01 21:28:41'],\n ['id' => '12','name' => 'sale','type' => '','created_at' => '2016-03-01 21:28:41','updated_at' => '2016-03-01 21:28:41'],\n ['id' => '13','name' => 'uova','type' => '','created_at' => '2016-03-01 21:28:41','updated_at' => '2016-03-01 21:28:41'],\n ['id' => '14','name' => 'parmigiano','type' => '','created_at' => '2016-03-01 21:28:41','updated_at' => '2016-03-01 21:28:41'],\n ['id' => '15','name' => 'erba cipollina','type' => '','created_at' => '2016-03-01 21:28:41','updated_at' => '2016-03-01 21:28:41'],\n ['id' => '16','name' => 'butto','type' => '','created_at' => '2016-03-02 13:05:14','updated_at' => '2016-03-02 13:05:14'],\n ['id' => '17','name' => 'scorze di arancia','type' => '','created_at' => '2016-03-02 13:05:14','updated_at' => '2016-03-02 13:05:14'],\n ['id' => '18','name' => 'zucchero','type' => '','created_at' => '2016-03-02 13:05:14','updated_at' => '2016-03-02 13:05:14'],\n ['id' => '19','name' => 'gocce di cioccolato','type' => '','created_at' => '2016-03-02 13:05:14','updated_at' => '2016-03-02 13:05:14'],\n ['id' => '20','name' => 'farina','type' => '','created_at' => '2016-03-02 13:05:14','updated_at' => '2016-03-02 13:05:14'],\n ['id' => '21','name' => 'fecola','type' => '','created_at' => '2016-03-02 13:05:14','updated_at' => '2016-03-02 13:05:14'],\n ['id' => '22','name' => 'uovo','type' => '','created_at' => '2016-03-02 13:05:14','updated_at' => '2016-03-02 13:05:14'],\n ['id' => '23','name' => 'carne di cavallo','type' => '','created_at' => '2016-03-02 13:39:40','updated_at' => '2016-03-02 13:39:40'],\n ['id' => '24','name' => 'alloro','type' => '','created_at' => '2016-03-02 13:39:40','updated_at' => '2016-03-02 13:39:40'],\n ['id' => '25','name' => 'dado','type' => '','created_at' => '2016-03-02 13:39:40','updated_at' => '2016-03-02 13:39:40'],\n ['id' => '26','name' => 'vino binaco','type' => '','created_at' => '2016-03-02 13:39:40','updated_at' => '2016-03-02 13:39:40'],\n ['id' => '27','name' => 'panna','type' => '','created_at' => '2016-03-03 14:54:09','updated_at' => '2016-03-03 14:54:09'],\n ['id' => '29','name' => 'pesche','type' => '','created_at' => '2016-03-07 16:57:04','updated_at' => '2016-03-07 16:57:04'],\n ['id' => '30','name' => 'amido di mais','type' => '','created_at' => '2016-03-07 16:57:04','updated_at' => '2016-03-07 16:57:04'],\n ['id' => '31','name' => 'burro','type' => '','created_at' => '2016-03-07 16:57:04','updated_at' => '2016-03-07 16:57:04'],\n ['id' => '32','name' => 'aceto','type' => '','created_at' => '2016-03-07 16:57:04','updated_at' => '2016-03-07 16:57:04'],\n ['id' => '33','name' => 'limone','type' => '','created_at' => '2016-03-07 16:57:04','updated_at' => '2016-03-07 16:57:04'],\n ['id' => '34','name' => 'ceci','type' => '','created_at' => '2016-03-07 19:17:24','updated_at' => '2016-03-07 19:17:24'],\n ['id' => '35','name' => 'olive nere','type' => '','created_at' => '2016-03-07 19:17:24','updated_at' => '2016-03-07 19:17:24'],\n ['id' => '36','name' => 'pomodoro','type' => '','created_at' => '2016-03-07 19:17:24','updated_at' => '2016-03-07 19:17:24'],\n ['id' => '37','name' => 'basilico','type' => '','created_at' => '2016-03-07 19:17:24','updated_at' => '2016-03-07 19:17:24'],\n ['id' => '38','name' => 'pepe','type' => '','created_at' => '2016-03-07 19:17:24','updated_at' => '2016-03-07 19:17:24'],\n ['id' => '39','name' => 'tonno','type' => '','created_at' => '2016-03-07 19:22:52','updated_at' => '2016-03-07 19:22:52'],\n ['id' => '40','name' => 'cipollotti','type' => '','created_at' => '2016-03-07 19:22:52','updated_at' => '2016-03-07 19:22:52'],\n ['id' => '41','name' => 'grana padano','type' => '','created_at' => '2016-03-07 19:22:52','updated_at' => '2016-03-07 19:22:52'],\n ['id' => '42','name' => 'pangrattato','type' => '','created_at' => '2016-03-07 19:22:52','updated_at' => '2016-03-07 19:22:52'],\n ['id' => '43','name' => 'pasta brisée','type' => '','created_at' => '2016-03-07 19:26:54','updated_at' => '2016-03-07 19:26:54'],\n ['id' => '44','name' => 'prosciutto','type' => '','created_at' => '2016-03-07 19:26:54','updated_at' => '2016-03-07 19:26:54'],\n ['id' => '45','name' => 'scalogni','type' => '','created_at' => '2016-03-07 19:26:54','updated_at' => '2016-03-07 19:26:54'],\n ['id' => '46','name' => 'brodo vegetale','type' => '','created_at' => '2016-03-07 19:26:54','updated_at' => '2016-03-07 19:26:54'],\n ['id' => '47','name' => 'estratto di carne','type' => '','created_at' => '2016-03-07 19:26:54','updated_at' => '2016-03-07 19:26:54'],\n ['id' => '49','name' => 'nocciole','type' => '','created_at' => '2016-03-07 19:29:24','updated_at' => '2016-03-07 19:29:24'],\n ['id' => '50','name' => 'cioccolato','type' => '','created_at' => '2016-03-07 19:29:24','updated_at' => '2016-03-07 19:29:24'],\n ['id' => '51','name' => 'lievito','type' => '','created_at' => '2016-03-07 19:29:24','updated_at' => '2016-03-07 19:29:24'],\n ['id' => '52','name' => 'stracchino','type' => '','created_at' => '2016-03-07 20:07:39','updated_at' => '2016-03-07 20:07:39'],\n ['id' => '53','name' => 'agretti','type' => '','created_at' => '2016-03-07 20:07:39','updated_at' => '2016-03-07 20:07:39'],\n ['id' => '54','name' => 'latte','type' => '','created_at' => '2016-03-07 20:07:39','updated_at' => '2016-03-07 20:07:39'],\n ['id' => '55','name' => 'cipolla','type' => '','created_at' => '2016-03-07 20:07:39','updated_at' => '2016-03-07 20:07:39'],\n ['id' => '56','name' => 'spaghetti','type' => '','created_at' => '2016-03-07 20:11:05','updated_at' => '2016-03-07 20:11:05'],\n ['id' => '57','name' => 'fagiolini','type' => '','created_at' => '2016-03-07 20:11:05','updated_at' => '2016-03-07 20:11:05'],\n ['id' => '58','name' => 'albumi','type' => '','created_at' => '2016-03-07 20:13:48','updated_at' => '2016-03-07 20:13:48'],\n ['id' => '59','name' => 'cannella','type' => '','created_at' => '2016-03-07 20:13:48','updated_at' => '2016-03-25 14:45:11'],\n ['id' => '60','name' => 'lenticchie','type' => '','created_at' => '2016-03-25 14:46:02','updated_at' => '2016-03-25 14:46:02'],\n ['id' => '61','name' => 'Semolino','type' => '','created_at' => '2016-03-25 14:54:22','updated_at' => '2016-03-25 14:54:22'],\n ['id' => '62','name' => 'pecorino','type' => '','created_at' => '2016-03-25 14:54:22','updated_at' => '2016-03-25 14:54:22'],\n ['id' => '63','name' => 'noce moscata','type' => '','created_at' => '2016-03-25 14:54:22','updated_at' => '2016-03-25 14:54:22'],\n ['id' => '64','name' => 'cacao','type' => '','created_at' => '2016-03-25 15:03:45','updated_at' => '2016-03-25 15:03:45'],\n ['id' => '65','name' => 'marsala','type' => '','created_at' => '2016-03-25 15:03:45','updated_at' => '2016-03-25 15:03:45'],\n ['id' => '66','name' => 'ricotta','type' => '','created_at' => '2016-03-25 15:03:45','updated_at' => '2016-03-25 15:03:45'],\n ['id' => '67','name' => 'strutto','type' => '','created_at' => '2016-03-25 15:03:45','updated_at' => '2016-03-25 15:03:45'],\n ['id' => '68','name' => 'ciliege','type' => '','created_at' => '2016-03-25 15:03:45','updated_at' => '2016-03-25 15:03:45'],\n ]);\n }" ]
[ "0.61420566", "0.557417", "0.5513314", "0.5507276", "0.55015767", "0.54453224", "0.5405676", "0.53422636", "0.5321844", "0.5292877", "0.52655715", "0.5256081", "0.5246699", "0.5239184", "0.52147526", "0.5180942", "0.515816", "0.5110368", "0.51079303", "0.50987566", "0.5090281", "0.5074688", "0.50456375", "0.5045439", "0.50286984", "0.5026552", "0.501638", "0.5013484", "0.5003364", "0.49900565", "0.49844852", "0.49241528", "0.49232832", "0.49084318", "0.48979202", "0.48637283", "0.48593208", "0.48185933", "0.48134112", "0.47991103", "0.47843078", "0.47822243", "0.4775704", "0.477133", "0.47702476", "0.47687775", "0.475958", "0.475005", "0.47438076", "0.47427836", "0.47371006", "0.47317338", "0.47198817", "0.47137466", "0.47130305", "0.471208", "0.47108358", "0.47075382", "0.47037345", "0.4698746", "0.46973404", "0.46847525", "0.46824712", "0.46740848", "0.4669548", "0.46679506", "0.46619135", "0.46607506", "0.46586642", "0.46490052", "0.46438372", "0.46406344", "0.46395093", "0.46340176", "0.4630374", "0.46114534", "0.46040216", "0.46019867", "0.45951954", "0.45859575", "0.45841265", "0.4582849", "0.45761293", "0.45709145", "0.4565765", "0.45606267", "0.45597824", "0.45570454", "0.45565557", "0.45562986", "0.45512274", "0.45509785", "0.45490173", "0.45429403", "0.4535832", "0.4535831", "0.4527229", "0.45268142", "0.4526125", "0.45098132" ]
0.7288106
0
HELPER FUNCTION Convert directions array to sql value template. Each element follows format: '(rid, x, :valuex)' where x increments from 1 to number of directions To use in sql query: implode(", ", convertDirectionsFormat($rid, $data['directions']))
private function convertDirectionsFormat($rid, $directions) { $result = []; for($i = 1; $i < count($directions) + 1; $i++) { $result[$i - 1] = '(' . $rid . ', ' . $i . ', :value' . $i . ')'; } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function convert_array($in_array, $start_pos)\n{\n\t$string1 = \"\";\n\t$string2 = \"\";\n\t$total = count($in_array);\n\twhile ($start_pos < $total)\n\t{\n\t\t$string1 = $string1 . \"`\" . $in_array[$start_pos] . \"`\";\n\t\t$start_pos++;\n\t\t$string2 = $string2 . \"\\\"\" . $in_array[$start_pos] . \"\\\"\";\n\t\t$start_pos++;\n\t\tif ($start_pos < $total)\n\t\t{\n\t\t\t$string1 = $string1 . \", \";\n\t\t\t$string2 = $string2 . \", \";\n\t\t}\n\t}\n\tif ($start_pos == 2)\n\t{\t$return_string = \"(clanid, \" . $string1 . \") values (0, \" . $string2 . \")\";\t}\n\telse\n\t{\t$return_string = \"(\" . $string1 . \") values (\" . $string2 . \")\";\t}\n\treturn $return_string;\n}", "function simplifyDirections($directionsArr) {\n\n\t$directionsCount = array_count_values($directionsArr);\n\t$newDirections = [];\n\n\tif (!isset($directionsCount['North'])) $directionsCount['North'] = 0;\n\tif (!isset($directionsCount['South'])) $directionsCount['South'] = 0;\n\tif (!isset($directionsCount['East'])) $directionsCount['East'] = 0;\n\tif (!isset($directionsCount['West'])) $directionsCount['West'] = 0;\n\n\twhile (abs($directionsCount['North'] - $directionsCount['South']) > 0) {\n\n\t\tif ($directionsCount['North'] > $directionsCount['South']) {\n\n\t\t\t$newDirections[] = 'North';\n\t\t\t$directionsCount['North']--;\n\n\t\t} elseif ($directionsCount['North'] < $directionsCount['South']) {\n\n\t\t\t$newDirections[] = 'South';\n\t\t\t$directionsCount['South']--;\n\n\t\t}\n\t}\n\n\twhile (abs($directionsCount['East'] - $directionsCount['West']) > 0) {\n\n\t\tif ($directionsCount['East'] > $directionsCount['West']) {\n\n\t\t\t$newDirections[] = 'East';\n\t\t\t$directionsCount['East']--;\n\n\t\t} elseif ($directionsCount['East'] < $directionsCount['West']) {\n\n\t\t\t$newDirections[] = 'West';\n\t\t\t$directionsCount['West']--;\n\n\t\t}\n\t}\n\n\treturn implode(', ', $newDirections);\n\n}", "function sqlingData(array $data)\n{\n\n $keys = \"(\" . implode(\",\", array_keys($data)) . \")\";\n $values = \"('\" . implode(\"','\", array_values($data)) . \"')\";\n\n return $keys . 'Values' . $values;\n}", "private function prepareValuesRow(): string\n {\n $values = [];\n foreach ($this->storage as $key => $value) {\n $values[] = \"('{$key}', '{$value}')\";\n }\n\n return implode(', ', $values);\n }", "function array_to_sqladd($arr) {\n\t$s = '';\n\tforeach($arr as $k=>$v) {\n\t\t$v = addslashes($v);\n\t\t$op = substr($k, -1);\n\t\tif($op == '+' || $op == '-') {\n\t\t\t$k = substr($k, 0, -1);\n\t\t\t$s .= \"`$k`=`$k`$op'$v',\";\n\t\t} else {\n\t\t\t$s .= \"`$k`='$v',\";\n\t\t}\n\t}\n\treturn substr($s, 0, -1);\n}", "function addDaysToQuery($array, $db) {\n\t\t$query = \"\";\n\t\tforeach($array as $value) {\n\t\t\t$value = $db->quote($value);\n\t\t\t$query .= \", $value\";\n\t\t}\n\t\treturn $query;\n\t}", "public function toInterpolatedSql() {\n $query = $this->toSql();\n $params = $this->values;\n\n $keys = array();\n $values = $params;\n\n # build a regular expression for each parameter\n foreach ($params as $key => $value) {\n if (is_string($key)) {\n $keys[] = '/:'.$key.'/';\n } else {\n $keys[] = '/[?]/';\n }\n\n if (is_string($value))\n $values[$key] = \"'\" . self::quoteValue($value) . \"'\";\n\n if (is_array($value))\n $values[$key] = \"'\" . implode(\"','\", self::quoteValue($value)) . \"'\";\n\n if (is_null($value))\n $values[$key] = 'NULL';\n }\n\n $query = preg_replace($keys, $values, $query, 1, $count);\n\n return $query;\n }", "function db_array_to_update_sqladd( $arr ) {\n\t$s = '';\n\tif ( DB_TYPE == 'access' ) $arr = toutf( $arr );\n\tif ( is_array( $arr ) ) {\n\t\tforeach ( $arr as $k => $v ) {\n\t\t\t$v = ( $v );\n\t\t\t$op = substr( $k, -1 );\n\t\t\tif ( $op == '+' || $op == '-' ) {\n\t\t\t\t$k = substr( $k, 0, -1 );\n\t\t\t\t$v = ( is_int( $v ) || is_float( $v ) ) ? $v : \"'$v'\";\n\t\t\t\t$s .= \"`$k`=$k$op$v,\";\n\t\t\t} else {\n\t\t\t\t$v = ( is_int( $v ) || is_float( $v ) ) ? $v : \"'$v'\";\n\t\t\t\t$s .= \"`$k`=$v,\";\n\t\t\t}\n\t\t}\n\t\treturn substr( $s, 0, -1 );\n\t} else {\n\t\treturn $arr;\n\t}\n}", "private function transform($value) {\n $CI = & get_instance();\n // caso seja um array\n if (is_array($value)) {\n // percorre os valores\n foreach ($value as $x) {\n // se for um inteiro\n if (is_integer($x)) {\n $foo[] = $x;\n } else if (is_string($x)) {\n // se for string, adiciona aspas\n $foo[] = $CI->db->escape($x);\n }\n }\n // converte o array em string separada por \",\"\n $result = '(' . implode(',', $foo) . ')';\n }\n // caso seja uma string\n else if (is_string($value)) {\n // adiciona aspas\n $result = $CI->db->escape($value);\n }\n // caso seja valor nullo\n else if (is_null($value)) {\n // armazena NULL\n $result = 'NULL';\n }\n\n // caso seja booleano\n else if (is_bool($value)) {\n // armazena TRUE ou FALSE\n $result = $value ? 'TRUE' : 'FALSE';\n } else {\n $result = $CI->db->escape($value);\n }\n // retorna o valor\n return $result;\n }", "function d2d_implode($array) {\n if (!is_array($array)) {\n return FALSE;\n }\n $escaped_array = array();\n foreach ($array as $key => $value) {\n // escape separators and escape-character in $key\n $key = d2d_replace(array('\\\\', ',', '='), array('\\\\\\\\', '\\\\,', '\\\\='), $key);\n if ($key === FALSE) { // replacement failed\n return FALSE;\n }\n // encode $value\n $value = d2d_value_encode($value);\n // escape separators and escape-character in $value\n $value = d2d_replace(array('\\\\', ',', '='), array('\\\\\\\\', '\\\\,', '\\\\='), $value);\n if ($value === FALSE) { // replacement failed\n return FALSE;\n }\n $escaped_array[] = \"{$key}={$value}\";\n }\n return implode(',', $escaped_array);\n}", "protected function buildValuesForInsert()\n {\n return ' ('\n . $this->indentCsv(array_keys($this->col_values))\n . PHP_EOL . ') VALUES ('\n . $this->indentCsv(array_values($this->col_values))\n . PHP_EOL . ')';\n }", "function toSQL($mixed,$addslashes = false,$quotes = true){\n\tif (is_null($mixed)){\n\t\treturn 'NULL';\n\t}\n\tif (!is_array($mixed)){\n\t\treturn tosql_string($mixed,$addslashes,$quotes);\n\t}\n\t$string = '';\n\tforeach($mixed as $value){\n\t\tif ($string != ''){\n\t\t\t$string .= ',';\n\t\t}\n\t\t$string .= tosql_string($value,$addslashes,$quotes);\n\t}\n\treturn $string;\n}", "public function columnsWithValues()\n {\n // $sqlQuery = str_replace(\"&\", ', ',$query);\n $keys = array_keys($this->attributes);\n $values = array_values($this->attributes);\n $sql = null;\n for ($i = 0; $i < sizeof($this->attributes); $i++) {\n $sql .= $keys[$i]. '=';\n if (is_string($values[$i])) {\n $sql .= '\"'.$values[$i].'\"';\n } else { \n $sql .= $values[$i];\n }\n if ($i != sizeof($values) - 1) {\n $sql .= ', ';\n }\n } \n return $sql;\n }", "function str_values(){\n //\n //map the std objects inthe array to return an array of strings of this \n //format INSERT INTO Customers (CustomerName, ContactName, Address, City, PostalCode, Country)\n //VALUES ('Cardinal', 'Tom B. Erichsen', 'Skagen 21', 'Stavanger', '4006', 'Norway');\n\n $col_str= array_map(function($obj){\n //\n //Return the full description of the columns\n return \"`$obj->name`\"; \n }, $this->values);\n //\n //\n $values_str= array_map(function($obj){\n //\n //Trim the spaces\n $tvalue = trim($obj->value);\n //\n //Replace '' with null\n $value = $tvalue=='' ? 'null': \"'$tvalue'\";\n //\n return $value;\n \n }, $this->values);\n //\n //retun the imploded version of the array with a , separator\n $values= implode(\",\",$values_str);\n $cols= implode(\",\",$col_str);\n return \"($cols) VALUES ($values)\";\n }", "private function convertIngredientsFormat($rid, $ingredients) {\n $result = [];\n for($i = 1; $i < count($ingredients) + 1; $i++) {\n $result[$i - 1] = '(' . $rid . ', ' . $i . ', :value' . $i . ')';\n }\n return $result;\n }", "function bindQuery($dades,$orders)\n{\n\n\t$qstring='';\n\t$orders=params2array($orders,array(',',':'));\n\t$last_item = count($orders);\n\t$counter=0;\n\tforeach ($orders as $camp=>$func)\n\t{\n\t\t$counter++;\n\t\t$noq=false;\n\t\tif ($func===true)\t//cap funció a fer, agafa-ho de l'array\n\t\t{\n\t\t\t$dada_final=$dades[$camp];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tswitch ($func)\n\t\t\t{\n\t\t\t\tcase 'real':\t//convertir cadena a nombre real\n\t\t\t\t\t$dada_final=redigit($dades[$camp]);\n\t\t\t\t\t$dada_final=(float)$dada_final;\n\t\t\t\t\t$noq=true;\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'dataasql':\t//convertir data php a mysql\n\t\t\t\t\t$dada_final=dataasql($dades[$camp]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'sha1':\t//codificar\n\t\t\t\t\t$dada_final=$dades[camp]!=''?sha1($dades[camp]):'';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ornull':\t//si es buit convertir a null\n\t\t\t\t\t$dada_final=$dades[$camp];\n\t\t\t\t\tif ($dada_final=='')\n\t\t\t\t\t{\n\t\t\t\t\t\t$dada_final='NULL';\n\t\t\t\t\t\t$noq=true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif ($func[0]=='=')\t//expresió mysql\n\t\t\t\t\t{\n\t\t\t\t\t\t$dada_final=substr($func,1);\n\t\t\t\t\t\t$noq=true;\n\t\t\t\t\t}\n\t\t\t\t\telse {$dada_final=$func;}\t// asignar valor directe\n\t\t\t\n\t\t\t}\n\t\t}\n\t\tif (!$noq) {$dada_final=\"'\".MQ($dada_final).\"'\";}\n\t\t$qstring.=\"$camp = $dada_final\".($counter!=$last_item?\", \":\" \");\n\t}\n\treturn $qstring;\n}", "protected static function param_to_db($param_id, $queryvars)\n {\n switch ($param_id)\n {\n case 2:\n $corners = array();\n for ($i = 1; $i <= 4; $i++)\n {\n $idx = \"box_corner_$i\";\n $lat = \"{$idx}_lat\";\n $lon = \"{$idx}_lon\";\n $corners[] = \"{$queryvars[$lat]},{$queryvars[$lon]}\";\n }\n return implode($corners, \";\");\n\n default:\n return $queryvars[$param_id];\n \n }\n }", "function arrayToSQLString ($arr) {\r\n $sql = \"\";\r\n foreach ($arr as $key => $value) {\r\n $sql = $sql . $value . ',';\r\n }\r\n $sql = rtrim($sql,',');\r\n return $sql;\r\n}", "private function convertColumnsPdo(\n array $array_keys,\n String $pattern = '',\n Bool $double = false\n ): String {\n $columns = array();\n foreach($array_keys as $key)\n {\n $pdoColumn = $double ? \"$key\" . \"$pattern\" . \"$key\" : \"$pattern\" . \"$key\";\n array_push($columns, $pdoColumn);\n }\n\n return implode(\", \", $columns);\n }", "public function values($data, $format)\n {\n $result = '';\n $replace = (strpos($format, '%value%') !== false) || (strpos($format, '%column%') !== false); \n if (is_array($data)) {\n foreach ($data as $key => $value) {\n $value = is_null($value) ? 'NULL' : (is_int($value) ? $value : '\"' . $this->escapeSQL($value) . '\"');\n $key = $this->escapeDbIdentifier($key);\n if ($format == 'fields') {\n $result .= \", $key\";\n } else{\n if ($format == 'pairs') {\n $result .= \", $key = $value\";\n } elseif ($replace) {\n $result .= \", \" . strtr($format, ['%value%' => $value, '%column%' => $key]);\n } else {\n $result .= \",\\t$value\";\n }\n }\n }\n }\n return substr($result, 2 /* length of the initial \", \" */);\n }", "function arrayIntoString_sql(array $arr)\n {\n $str = \"\";\n foreach ($arr as $k => $v) {\n $str .= (count($arr) - 1 != $k)\n ? \"'\". $v . \"', \"\n : \"'\". $v . \"'\";\n }\n return $str;\n }", "private function setFields()\n\t{\t\n\t\t$sql = '';\n\t\t\n\t\tforeach (array_keys($this->data) as $key)\n\t\t{\n\t\t\t$sql .= '`' . $key . '` = ? , ';\n\t\t}\n\t\t\n\t\t$sql = rtrim($sql, ', ');\n\t\t\n\t\treturn $sql;\n\t}", "private function formatArrayValues(array $data): string\n {\n return implode(\n ', ',\n array_map(\n function ($value) {\n return '\"'.$value.'\"';\n },\n $data\n )\n );\n }", "protected function buildValues(): string\n {\n $sql = '';\n\n // Only add values when something is on the stack and there isn't a\n // SELECT statement waiting to go in there instead.\n if ( $this->fieldValueSet->isEmpty() )\n {\n return $sql;\n }\n\n $markers = $this->fieldValueSet->getValueMarkers();\n\n if ( count($markers) == 0 )\n {\n return $sql;\n }\n\n $sql .= 'VALUES' . PHP_EOL;\n $sql .= $this->indent() . '(';\n $sql .= implode(', ', $markers);\n $sql .= ')' . PHP_EOL;\n\n return $sql;\n }", "private function transforme($value){\n if(is_array($value))\n {\n foreach ($value as $x)\n {\n if(is_integer($x))\n {\n $foo[] = $x;\n }\n else if(is_string($x))\n {\n $foo[]=\"'$x'\";\n }\n }\n $result = '('.implode(',',$foo).')';\n }\n //caso seja uma string\n else if(is_string($value))\n {\n $result = \"'$value'\";\n }\n // caso seja uma valor nulo\n else if(is_null($value))\n {\n $result = 'NULL';\n }\n //caso seja boleano\n else if(is_bool($value))\n {\n $result = $value ? 'TRUE' : 'FALSE';\n }\n else\n {\n $result = $value;\n }\n\n return $result;\n }", "function prepareVariableString($value) {\n\t\t if (!is_array($value)) {\n\t\t return '\"'.addslashes($value).'\"';\n\t\t } else {\n\t\t $str = 'array('.chr(10);\n\t\t foreach ($value as $key => $item) {\n\t\t $str .= '\"'. addslashes($key).'\" => '.'\"'.addslashes($item).'\",'.chr(10);\n\t\t } \n\t\t $str .= \")\";\n\t\t } \n\t\t return $str;\n\t\t}", "public function getDirectionString() : string\n {\n $str = \"Gateways: \";\n if ($this->gateways->isEmpty()) {\n $str .= \"none\";\n }\n else {\n $str .= implode(\", \", $this->getGateways()->toArray());\n }\n\n return $str;\n }", "final public function generateFormattedSQL()\n {\n $parts = $this->generateOrderedSQLParts();\n return array_reduce($parts, function ($memo, $part) {\n $type = current(array_keys($part));\n $value = current($part);\n $sep = $this->getSeparatorForPartType($type);\n if (!$memo) {\n return $value;\n }\n return \"{$memo}{$sep}{$value}\";\n }, null);\n }", "private function setFields(): string\n {\n $sql = '';\n\n foreach (array_keys($this->data) as $key) {\n $sql .= '`' . $key . '` = ? , ';\n }\n return rtrim($sql, ', ');\n }", "function toSqlList($lista) {\n $sql = \"\";\n foreach( explode(\",\",$lista) as $opc) {\n $sql .= ($sql!=\"\" ? \",\" : \"\").\"'\".trim($opc).\"'\";\n }\n return $sql;\n }", "function build_sql(string $sql, array $bindings = []): string\n{\n if (! Arr::isAssoc($bindings)) {\n $position = 0;\n foreach ($bindings as $value) {\n $position = strpos($sql, '?', $position);\n if ($position === false) {\n break;\n }\n\n $value = (string) match (gettype($value)) {\n 'integer', 'double' => $value,\n 'boolean' => (int) $value,\n default => sprintf(\"'%s'\", $value),\n };\n $sql = substr_replace($sql, $value, $position, 1);\n $position += strlen($value);\n }\n }\n\n return $sql;\n}", "function createQuery($arr) {\n $printArray = \"\";\n for ($i = 0; $i < sizeof($arr); $i++) {\n if ($i == sizeof($arr) - 1) $printArray = $printArray .'\\'' . $arr[$i] . '\\'';\n else $printArray = $printArray . '\\'' . $arr[$i] . '\\'' . \", \";\n } \n return $printArray;\n}", "function db_array_to_insert_sqladd( $arr ) {\n\t$s = '';\n\tif ( DB_TYPE == 'access' )$arr = toutf( $arr );\n\t$keys = array();\n\t$values = array();\n\tforeach ( $arr as $k => $v ) {\n\t\t$k = ( $k );\n\t\t$v = ( $v );\n\t\t$keys[] = '`' . $k . '`';\n is_array( $v ) || is_object( $v ) and $v=tojson($v);\n\t\t$v = ( is_int( $v ) || is_float( $v ) ) ? $v : \"'$v'\";\n\t\t$values[] = $v;\n\t}\n\t$keystr = implode( ',', $keys );\n\t$valstr = implode( ',', $values );\n\t$sqladd = \"($keystr) VALUES ($valstr)\";\n\treturn $sqladd;\n}", "public function getPreparedReverseGeocodeValues(array $values = []) {\n return array_map(function ($value) {\n return array_combine(['lat', 'lon'], array_map(\n 'trim',\n explode(',', trim($value['value']), 2)\n ));\n }, $values);\n }", "private function implodeWithPrepare($arr) {\r\n\t\t$result='';\r\n\t\t\r\n\t\t$first=true;\r\n\t\tforeach($arr as $tr) {\r\n\t\t\t//separate with commas\r\n\t\t\tif(!$first)\r\n\t\t\t\t$result.=\",\";\r\n\t\t\telse \r\n\t\t\t\t$first=false;\r\n\t\t\r\n\t\t\t//every entry in single quotes\r\n\t\t\t$result.=\"'\";\r\n\t\t\t$result.=$this->prepare($tr);\r\n\t\t\t$result.=\"'\";\r\n\t\t}\r\n\t\t\r\n\t\treturn $result;\r\n\t}", "function generate_insert_query($matches_array) {\n global $person_id;\n $query = \"INSERT INTO `snelkoppeling`.`matches` (`id` ,`A` ,`B` ,`match`) VALUES\";\n\n for($i = 0; $i < count($matches_array); $i++) {\n $query .= \"(NULL, '{$person_id}', '{$matches_array[$i][0]}', '{$matches_array[$i][1]}'),\";\n }\n return mb_substr($query, 0, -1);\n }", "function data_sql($data){ // Creo una array dividendo la data sulla base dello slash\r\n $array = explode(\"/\", $data); \r\n // Riorganizzo gli elementi nello stile YYYY/MM/DD\r\n $data_sql = $array[2].\"/\".$array[1].\"/\".$array[0]; \r\n // Restituisco il valore della data in formato sql\r\n return $data_sql; \r\n}", "function _build_uri($uri_array, $clauses=null){\n\t\t$clauses = (isset($clauses)) ? $clauses : $this->all_segments;\n\n\t\t$compiled_segments = array();\n\n\t\t//to keep order i cycle over all_segments instead $clauses.\n\t\tforeach($this->all_segments as $clause){\n\t\t\tif(in_array($clause,$clauses) && isset($uri_array[$clause])){\n\t\t\t\t$compiled_segments[] = join('/',$uri_array[$clause]);\n\t\t\t}\n\t\t}\n\t\t$return_uri = join('/',$compiled_segments);\n\n\t\t//remove double slashed\n\t\t$return_uri = preg_replace(\"#([^:])//+#\", \"\\\\1/\", $return_uri);\n\n\t\treturn $return_uri;\n\t}", "function buildSQLString($tempArray)\n{\n\t\n\t$builtString = \"CALL create_poll(1,\" . \"'\" . $tempArray[0][0] . \"',\" . \"NULL,\" . \"30,\";\n\t\n\tfor ($i = 0; $i < count($tempArray); $i++)\n\t{\n\t\tfor ($j = 1; $j < count($tempArray[$i]); $j++)\n\t\t{\n\t\t\t\t$builtString .= \"'\" . $tempArray[$i][$j] . \"',\";\n\t\t}\n\t\n\t$builtString .= \"NULL, NULL, NULL, NULL, NULL, NULL);\";\n\t\n\t\t\n\t}\n\treturn $builtString;\n}", "public function toSql()\n {\n if ($this->isEmpty()) {\n return '';\n }\n\n $params = $this->getParams();\n\n $sql = array('SET');\n $set = array();\n\n foreach ($params as $column => $value) {\n $set[] = implode(' = ', array(\n $column, $this->getBuilder()->getHelper()->toDbValue($value)\n ));\n }\n\n $sql[] = implode(', ', $set);\n\n return implode(' ', $sql);\n }", "public function __toString() {\n return str_replace(array_keys($this->param), array_values($this->param), $this->sql);\n }", "private function getSyntax() {\n //Verifica se Places tem valores\n if ($this->Places):\n //$vinvulo no caso é campos(Coluna) da tabela no banco, e $valor é valor de cada um\n foreach ($this->Places as $Vinculo => $Valor):\n // Aqui está prevendo que ser for LIMIT ou OFFSET Deve então ser do tipo \"INT\", a query não pode receber uma String na montagem dela, aqui 'limit' e 'offset' estão como palavras reservadas\n if ($Vinculo == 'limit' || $Vinculo == 'offset'):\n $Valor = (int) $Valor;\n endif;\n //Aqui informa que deve passar os Links, Valor e o tipo de dado que vai ser montado na Query(no caso aqui tem uma condição ternária se for int ele recebe PARAM_INT se não for então recebe PARAM_STR)\n $this->Read->bindValue(\":{$Vinculo}\", $Valor, ( is_int($Valor) ? PDO::PARAM_INT : PDO::PARAM_STR));\n endforeach;\n endif;\n }", "function prepareParamsReverse($data){\r\n\t$param_info = $this->getParamInfo();\r\n\t$param_ids = array();\r\n\tforeach($param_info as $p_i){\r\n\t\t$param_ids[$p_i['id']] = $p_i['param'];\r\n\t}\r\n\t$new_params = array();\r\n\tforeach($data as $k=>$v){\r\n\t\tif(isset($param_ids[$k])){\r\n\t\t#\t$new_params[$param_ids[$k]] = $v;//this is the text value\r\n\t\t\t$new_params[$param_ids[$k]][0] = $v[0];//this is the text value\r\n\t\t\t$new_params[$param_ids[$k]][1] = $v[1];//this is the option value\r\n\t\t}\r\n\t}\r\n\treturn $new_params;\r\n}", "function getdirections_location_latlon_path($direction, $latlon, $locs='') {\n if (($direction == 'to' || $direction == 'from') && preg_match(\"/[0-9.\\-],[0-9.\\-]/\", $latlon)) {\n $out = \"getdirections/latlon/$direction/$latlon\";\n if ($locs) {\n $out .= \"/$locs\";\n }\n return $out;\n }\n}", "protected function buildSQLValuesFrom(array $rows): string\n {\n $values = collect($rows)->reduce(function ($valuesString, $row) {\n return $valuesString .= '(' . rtrim(str_repeat(\"?,\", count($row)), ',') . '),';\n }, '');\n\n return rtrim($values, ',');\n }", "private function createPolygonFromCoords(array $coordinates = []) : string\n {\n return implode(':', array_map(function($coords){\n return implode(',', $coords);\n }, $coordinates));\n }", "private function generateSQLfromValuesInsert(array $values){\r\n //Initialisating vars\r\n $sql = \"(\";\r\n $params = array();\r\n \r\n //Processing values\r\n foreach($values as $name => $value){\r\n //We add a coma if it is not the first value\r\n $sql .= ((count($params) != 0) ? \", \" : \"\");\r\n \r\n //We add SQL for the name\r\n $sql .= $name;\r\n \r\n //Records the name parameters\r\n $params[] = $value;\r\n }\r\n \r\n //Continuing SQL\r\n $sql .= \") VALUES (\";\r\n \r\n //Adding ? for each value\r\n for($i = 0; $i<count($params); $i++){\r\n $sql .= ($i != 0 ? \", \" : \"\").\"?\";\r\n }\r\n \r\n //Finishing SQL\r\n $sql .= \") \";\r\n \r\n //Preparing return\r\n $return = array(\r\n \"sql\" => $sql,\r\n \"params\" => $params\r\n );\r\n \r\n //Returning values\r\n return $return;\r\n }", "private function generateWhereString($array){\n\t\t$str = \" WHERE \";\n\t\tforeach($array as $k => $v){\n\t\t\t$str .= \" $k = $v\";\n\t\t}\n\t\treturn $str;\n\t}", "private function generateSql($sql, $params, $types)\n {\n if (!count($params)) {\n return $sql;\n }\n\n $converted = $this->getConvertedParams($params, $types);\n\n if (is_int(key($params))) {\n $index = key($converted);\n $sql = preg_replace_callback('@\\?@sm', function ($match) use (&$index, $converted) {\n return $converted[$index++];\n }, $sql);\n } else {\n foreach ($converted as $key => $value) {\n $sql = str_replace(':' . $key, $value, $sql);\n }\n }\n\n return $sql;\n }", "private function constructSchema($schema, $direction = 'Add')\n {\n if (!$schema) return '';\n\n $fields = array_map(function ($field) use ($direction) {\n $method = \"{$direction}Column\";\n return $this->$method($field);\n }, $schema);\n\n\n return implode(\"\\n\" . str_repeat(' ', 12), $fields);\n }", "private function _prepareFields()\n\t{\n\t\t$result = [];\n\n\t\tforeach ($this->_fields as $field => $params) {\n\n\t\t\tif ($field == 'languageTable') {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$tmp = '`' . $field . '` ' . $params['type'];\n\n\t\t\tif (in_array($params['type'], ['char', 'varchar'])) {\n\t\t\t\t$length = isset($params['length']) ? $params['length'] : 100;\n\t\t\t\t$tmp .= '(' . $length . ')';\n\t\t\t}\n\n\t\t\t$tmp .= ($params['null']) ? ' NULL' : ' NOT NULL';\n\t\t\t$tmp .= ($params['default'] || $params['default'] === 0) ? ' DEFAULT ' . $params['default'] : '';\n\n\n\t\t\tif ($field == 'id') {\n\t\t\t\t$tmp .= ' AUTO_INCREMENT PRIMARY KEY';\n\t\t\t}\n\n\t\t\t$result[] = $tmp;\n\t\t}\n\n\t\treturn implode(',', $result);\n\t}", "function db_build_query($args) {\n if (count($args) < 2) return $args[0];\n $query = array_shift($args);\n $args = array_map('db_mysqli_real_escape_string', $args); \n array_unshift($args, $query);\n $query = call_user_func_array('sprintf', $args);\n return $query;\n}", "function values($data) {\n\n $VALUES = array();\n\n foreach ($data as $key => $value) {\n $value = $data[$key];\n $VALUES[] = \"'\" . str_replace(\"'\", \"\\'\", $value) . \"'\";\n }\n\n return implode(', ', $VALUES);\n}", "public static function formatarDataParaMysql($data) {\n\t\treturn implode(\"-\", array_reverse(explode(\"/\", $data)));\n\t}", "private function setField()\n {\n $sql = '';\n $sql = rtrim($sql , ', ');\n\n foreach (array_keys($this->data) as $key){\n $sql .= '`' . $key . '` = ?, ';\n }\n\n $sql = rtrim($sql , ', ');\n return $sql;\n }", "public function getDirectionsJs()\n\t{\n\t\t$js_code = '';\n\t\tif (null !== $this->resources->itemAt('directions'))\n\t\t{\n\t\t\tforeach ($this->resources->itemAt('directions') as $direction)\n\t\t\t{\n\t\t\t\t$js_code .= $direction->toJs($this->getJsName());\n\t\t\t\t$js_code .= \"\\n \";\n\t\t\t}\n\t\t}\n\t\treturn $js_code;\n\t}", "function dbEscapeArray($array) {\n\treturn(array_map(\"dbEscape\",$array));\n}", "public function get_directions();", "protected function formatArray(array $values){\n $r = ''; foreach($values as $val) $r.= (empty($r)?'':',').$val;\n return $r;\n }", "public function sql(){\n $str = \"\";\n foreach($this->params as $key => $val){\n if($val != false){\n $str .= \"$key $val \";\n }\n }\n return $str;\n }", "function convertArrayIntoString($array) {\n foreach ($array as $value)\n $string .= \"'$value,'\";\n $string = trim($string, ',');\n return $string;\n}", "function _stmtArrayToString($op, $stmtArray) {\n $str = '';\n if(count($stmtArray) > 0) {\n $str = ' '.$op.' '.implode(' '.$op.' ', $stmtArray);\n }\n return $str;\n }", "public static function formatarDataDoMysql($data) {\n\t\treturn implode(\"/\", array_reverse(explode(\"-\", $data)));\n\t}", "public function directions(): array;", "function prepSelected($data){\n\t\n\t$current = 0;\n\t$count = count($data);\n\t\n\t$placeholders = ''; $selected = array(); $i = 0;\n\t$keys = array_keys($data); \n\t\n\tforeach($keys as $item){\n\t\tprint_r($data);\n\t\t\n\t\tswitch($item){\n\t\t\tcase $data[$i] == $keys[$i] : array_push($selected, $item);\n\t\t\tbreak;\n\t\t}\n\t\t$i++;\n\t}\n\tprint_r($selected);\n\t\t\n\t//While there are selected items\n\twhile($current < $count){\n\t\t//create the keys\t\n\t\tif($count == 1) { \n\t\t\t$keys .= $selected[$current];\n\t\t} else {\n\t\t\t$keys .= $selected[$current].',';\n\t\t} \t\n\t\t//create the placeholders\t\n\t\tif($count == 1) { \n\t\t\t$placeholders .= '?';\n\t\t} else {\n\t\t\t$placeholders .= '?,';\n\t\t} \t\n\t\t$current++; \n\t}\n\tif($count > 1){\n\t\t$keys = explode(',', $keys);\n\t\t$trash = array_pop($keys);\n\t\t$keys = implode(',', $keys);\n\t\t\t\n\t\t$placeholders = explode(',', $placeholders);\n\t\t$trash = array_pop($placeholders);\n\t\t$placeholders = implode(',', $placeholders);\n\t\t\t\n\t}\n\t\n\n\t\n\treturn $sql_vals = array($keys, $placeholders);\n}", "public static function stringizeOrderBy($array)\n {\n //normalize single column orderBy statement\n if (is_string(reset($array)))\n {\n $array = array($array);\n } \n \n $columnsOrderBy = array();\n \n foreach ($array as $orderBy)\n {\n// var_dump($orderBy);\n $columnsOrderBy[] = $orderBy['column'] . ' ' . $orderBy['direction'];\n }\n \n return implode(', ', $columnsOrderBy);\n }", "function get_directions( $location ) {\n\treturn directions_base_url . urlencode( str_replace( \"\\n\", ', ', $location->address ) ) // change newlines into comma+space so google maps can process it properly\n\t . '/@' . $location->latitude . ',' . $location->longitude . ',17z/';\n\t// https://www.google.com/maps/dir//6850+Lake+Nona+Blvd,+Orlando,+FL+32827/@28.3676791,-81.2850738,17z/\n}", "function d2d_value_encode($value) {\n if (is_null($value)) {\n $type = 'n';\n $string = '';\n }\n elseif (is_bool($value)) {\n $type = 'b';\n $string = $value ? '1' : '0';\n }\n else {\n $type = 's';\n $string = strval($value);\n }\n return $type . '$' . $string;\n}", "public function make_sql_string(){\n\t\t$argumentos=[];\n\t\tforeach($this->arguments as $arg){\n\t\t\tif($arg instanceof resolve_to_sql){\n\t\t\t\t$argumentos[]=$arg->make_sql_string();\n\t\t\t}else{\n\t\t\t\tif(is_object($arg)){\n\t\t\t\t\tthrow new \\Exception('Argumento erroneo ('.get_class($arg).') en el grupo al construir');\n\t\t\t\t}else{\n\t\t\t\t\tthrow new \\Exception(\"Argumento erroneo ($arg) en el grupo al construir\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn '('.implode($this->get_union(),$argumentos).')';\n\t}", "function showDirections() {\n\t\t$smallConf = $this->conf['directions.'];\n\n\t\t$subpartArray = array();\n\t\t$markerArray = $this->helperGetLLMarkers(array(), $smallConf['LL'], 'directions');\n\n\t\t// query\n\t\t$table = $this->config['tables'];\n\t\t$field = '*';\n\t\t$where = $this->helperGetAvailableRecords($this->config['categories']);\n\t\t$orderBy = $smallConf['orderBy'];\n\t\t$limit = $smallConf['limit'];\n\t\t$res = $this->generic->exec_SELECTquery($field, $table, $where, '', $orderBy, $limit);\n\n\t\t// if just 1 result, render a different subpart\n\t\tif (count($res) == 1) {\n\t\t\t$suffix = '_SINGLE';\n\t\t\t$subpartArray['###HIDE_MULTISELECTION###'] = '';\n\t\t} else {\n\t\t\t$suffix = '';\n\t\t\t$subpartArray['###HIDE_SINGLESELECTION###'] = '';\n\t\t}\n\n\t\t$template['list'] = $this->cObj2->getSubpart($this->templateCode, '###TEMPLATE_DIRECTIONS###');\n\t\t$template['item'] = $this->cObj2->getSubpart($template['list'], '###SINGLE' . $suffix . '###');\n\n\t\t$content_item = '';\n\t\twhile ($row=array_shift($res)) {\n\t\t\t$markerArray = $this->getMarker($row, 'directions.');\n\t\t\t$content_item .= $this->cObj->substituteMarkerArrayCached($template['item'], $markerArray, array(), $wrappedSubpartArray);\n\t\t}\n\n\t\t$subpartArray['###CONTENT' . $suffix . '###'] = $content_item;\n\n\t\t$markerArray['###DEFAULT_COUNTRY###'] = $this->config['defaultCountry'];\n\n\t\t$content = $this->cObj2->substituteMarkerArrayCached($template['list'], $markerArray, $subpartArray);\n\t\treturn $content;\n\t}", "final public static function toSQL()\n {\n $select = false;\n foreach (self::$starts as $reserved) {\n if (strpos(self::$query, $reserved . ' ') === 0) {\n $select = true;\n break;\n }\n }\n\n if (!$select) {\n self::$query = \"SELECT * FROM \" . self::tableName() . self::$query;\n }\n\n\n $values = [];\n for ($i = 0; $i < sizeof(self::$bindParams); $i++) {\n foreach (self::$bindParams[$i] as $item) {\n $values[] = $item;\n }\n }\n\n if (sizeof($values) > 0) {\n $query = self::$query;\n self::$query = \"\";\n self::$where = false;\n self::$bindParams = array();\n $query = str_replace(\"?\", \"#%s#\", $query);\n $query = sprintf($query, ...$values);\n $query = str_replace(\"#\", \"'\", $query);\n return sprintf($query, ...$values);\n }\n return self::$query;\n }", "private function _indStoreDBFormat($val)\n\t{\n\t\tif (is_array($val) && implode($val) != '') {\n\t\treturn str_replace('', '00', $val[0]) . ':' . str_replace('', '00', $val[1]) . ':' . str_replace('', '00', $val[2]);\n\t\t}\n\t}", "private static function wrapWith($params, $wrapper = \"'\")\n {\n $values = '';\n foreach (array_values($params) as $key => $value) {\n $values .= ($values ? ',' : '') . $wrapper . $value . $wrapper;\n }\n\n return $values;\n }", "public function toSql(){\n global $wpdb;\n $table_name = $wpdb->prefix.static::$_table;\n \n $data = [];\n $pk = $this->getPk();\n foreach($this->_datas as $key => $value){\n if($key!=$pk && in_array($key, static::$_fields)){\n $data[$key] = $value.'';\n }\n }\n\n $data = $this->process_fields($table_name, $data, null );\n if (false === $data) {\n return false;\n }\n \n if( isset( $this->$pk ) ){\n $where = [$pk=>$this->$pk];\n $where = $this->process_fields($table_name, $where, null);\n if ( false === $where ) {\n return false;\n }\n \n $fields = $conditions = $values = array();\n foreach ( $data as $field => $value ) {\n if ( is_null( $value['value'] ) ) {\n $fields[] = \"`$field` = NULL\";\n continue;\n }\n\n $fields[] = \"`$field` = \" . $value['format'];\n $values[] = $value['value'];\n }\n \n foreach ( $where as $field => $value ) {\n if ( is_null( $value['value'] ) ) {\n $conditions[] = \"`$field` IS NULL\";\n continue;\n }\n\n $conditions[] = \"`$field` = \" . $value['format'];\n $values[] = $value['value'];\n }\n\n $fields = implode( ', ', $fields );\n $conditions = implode( ' AND ', $conditions );\n \n $sql = \"UPDATE `$table_name` SET $fields WHERE $conditions;\";\n return $wpdb->prepare($sql, $values);\n }else{\n $formats = $values = array();\n foreach ( $data as $value ) {\n if (is_null($value['value'])) {\n $formats[] = 'NULL';\n continue;\n }\n\n $formats[] = $value['format'];\n $values[] = $value['value'];\n }\n\n $fields = '`'.implode( '`, `', array_keys($data)).'`';\n $formats = implode( ', ', $formats);\n\n $sql = \"INSERT INTO `$table_name` ($fields) VALUES ($formats);\";\n return $wpdb->prepare($sql, $values);\n }\n \n return false;\n }", "protected final function prepareValues($array)\n {\n\n foreach ($array as $index => $value)\n {\n if ((array_key_exists(\"table\", $array)))\n {\n unset($array[\"table\"]);\n }\n elseif ($value == null || $value == \"\")\n {\n unset($array[$index]);\n }\n }\n return \":\" . implode(\", :\", array_keys($array));\n\n }", "function bindAllValues($statement, $params){\n\n\t\tforeach($params as $param => $value) {\n\n if (startsWith($value, 'C')) {\n $aux = explode(\" \", $value);\n $result = \"\";\n foreach($aux as $value){\n if ($value == \"C\") {\n $result .= \"C/\";\n } else {\n $result.= \" \".$value;\n }\n }\n $value = $result;\n }\n\t\t\t$statement->bindValue(':'.$param, $value);\n }\n \n\t\treturn $statement;\n }", "public function quoteInto($query, $values, $types = null)\n {\n //force query to be string for sanity\n $query = '' . $query;\n\n //allow string to be passed in for values, will be turned into array\n if (!is_array($values)) {\n $values = array($values);\n }\n\n //allow string to be passed in for types, will be turned into array\n if ($types !== null && !is_array($types)) {\n $types = array($types);\n }\n\n if (strpos($query, '?') === false) {\n //noting to quote into it\n return $query;\n }\n //loop through each value and replace the next ? with the quoted value\n foreach ($values as $key => $value) {\n //force value\n $type = ($types !== null && isset($types[$key])) ? $types[$key] : self::TYPE_STRING;\n switch ($type) {\n case self::TYPE_INT:\n $value = (int)$value;\n break;\n\n case self::TYPE_BOOL:\n $value = ($value) ? 1 : 0;\n break;\n\n case self::TYPE_FLOAT:\n //round it to get rid of weird floating point innacuracies\n $value = round((float)$value, 6);\n break;\n\n case self::TYPE_STRING_TODB:\n //push it through todb\n $value = geoString::toDB($value);\n //break ommited on purpose\n\n case self::TYPE_STRING:\n //break ommited on purpose\n\n default:\n //force it to be string\n $value = '' . $value;\n //quote it\n $value = $this->qstr($value);\n break;\n }\n $pos = strpos($query, '?');\n if ($pos === false) {\n //no more ? found\n break;\n }\n //replace the next ? found with the quoted value\n $query = substr($query, 0, $pos) . $value . substr($query, ($pos + 1));\n }\n return $query;\n }", "private function createQueryString(iterable $data): string\n {\n $query = '';\n\n foreach ($data as $name => $value) {\n $query .= $this->createQueryParam($name, $value);\n }\n\n return $query;\n }", "public function getSQL($values = array()) {\r\n $sql = $this->queryString;\r\n if (sizeof($values) > 0) {\r\n foreach ($values as $key => $value) {\r\n $sql = str_replace($key, $this->connection->quote($value), $sql);\r\n }\r\n }\r\n if (sizeof($this->bound_params)) {\r\n foreach ($this->bound_params as $key => $param) {\r\n $value = $param['value'];\r\n if (!is_null($param['type'])) {\r\n $value = self::cast($value, $param['type']);\r\n }\r\n if ($param['maxlen'] && $param['maxlen'] != self::NO_MAX_LENGTH) {\r\n $value = self::truncate($value, $param['maxlen']);\r\n }\r\n if (!is_null($value)) {\r\n $sql = str_replace($key, $this->connection->quote($value), $sql);\r\n } else {\r\n $sql = str_replace($key, 'NULL', $sql);\r\n }\r\n }\r\n }\r\n return $sql;\r\n }", "public function dataset($pole = array(), $special = array(), $values_only = false, $escape = true) {\n if (!is_array($special) AND is_string($special)) {\n $special = array($special);\n }\n $q = \"\";\n foreach($pole AS $index => $hodnota)\n {\n if ($escape)\n $hodnota = $this->escape($hodnota);\n\n $is_numeric = true;\n if (($hodnota + 0) !== $hodnota) // is_numeric ma problem napriklad s +420\n $is_numeric = false;\n if ($this->OneFromArray(array_flip($special),$index) === NULL AND !$is_numeric)\n $hodnota = \"'\" . $hodnota . \"'\";\n\n if (!$values_only)\n $q .= \"`\" . $index . \"` = \";\n\n $q .= \"\" . $hodnota . \", \";\n }\n\n $q = substr($q, 0,-2);\n if ($values_only)\n $q = \", (\" . $q . \")\";\n\n return $q;\n }", "private function buildIds(){\n\n\t\t$string = 'data-id=\"'.$this->fullId.'\" ';\n\t\t$string .= 'data-column_id=\"'.$this->id.'\" ';\n\t\t$string .= 'data-section_id=\"'.$this->section_id.'\" ';\n\t\t$string .= 'data-post_id=\"'.$this->post_id.'\" ';\n\n\t\treturn $string;\n\t}", "function array_to_insert_clause($a_vars) {\n\tif (count($a_vars) == 0)\n\t\t\treturn \"\";\n\t$a_keys = array();\n\tforeach($a_vars as $k=>$v)\n\t\t\t$a_keys[] = $k;\n\treturn \"(`\".implode(\"`,`\",$a_keys).\"`) VALUES ('[\".implode(\"]','[\",$a_keys).\"]')\";\n}", "function getString($associativeArray, $constant){\n $numKeys = count($associativeArray);\n $keys = array_keys($associativeArray);\n if($constant==INSERT_QUERY_FORMAT){\n $string=\"(\";\n $string1=\"(\";\n for($i=0; $i < $numKeys; ++$i)\n {\n $string.=\"$keys[$i],\";\n $string1.=\"?,\";\n }\n $string[strlen($string)-1]=\")\";\n $string1[strlen($string1)-1]=\")\";\n $string.=\" VALUES \".$string1;\n }\n else if($constant==UPDATE_QUERY_FORMAT){\n $string=\"\";\n for($i=0; $i < $numKeys; ++$i) {\n $string.=\"$keys[$i] = ?\";\n if($i!=$numKeys-1)\n $string.=\",\";\n }\n }\n return $string;\n}", "private function arrayValuesToQuery(array $values): string\n {\n $chain = [];\n foreach ($values as $key => $value) {\n if (is_bool($value)) {\n $chain[] = \"$key=\".($value\n ? 'true'\n : 'false');\n continue;\n }\n\n $chain[] = \"$key=$value\";\n }\n\n return implode('&', $chain);\n }", "private function _prepareUpdateString($data) {\n /**\n * @ Incoming $data looks like:\n * $data = array('field' => 'value', 'field2'=> 'value2');\n */\n $fieldDetails = NULL;\n foreach ($data as $key => $value) {\n $fieldDetails .= \"$key=:$key, \";/** Notice the space after the comma */\n }\n $fieldDetails = rtrim($fieldDetails, ', ');/** Notice the space after the comma */\n return $fieldDetails;\n }", "public function prepare() {\n\t\t$args = func_get_args();\n\t\tfor ($i = 1; $i < func_num_args(); ++$i) {\n\t\t\t$args[$i] = $this->escape($args[$i]);\n\t\t}\n\t\t\n\t\treturn call_user_func_array('sprintf', $args);\n\t}", "public function __toString() {\n $params = [];\n $str = '';\n foreach ($this->data as $x => $row) {\n $str .= '[ ';\n foreach ($row as $y => $value) {\n $str .= \"%s \";\n $params[] = $value;\n }\n $str .= \"]\\n\";\n }\n return vsprintf($str, $params);\n }", "protected function buildValuesFromSelect(): string\n {\n $sql = '';\n\n // Check for a SELECT statement and append if available\n if ( isset($this->select) )\n {\n $sql .= $this->indentStatement($this->select, 1);\n\n $this->mergeBindings($this->select);\n }\n\n return $sql;\n }", "public function enumerate_values_SQL(){\n\t\t$this->make_numeric(); \n\t\treturn \"$this->avg_reaction_time_m_no_faces, $this->accuracy_m_no_faces, $this->avg_reaction_time_m_faces, $this->accuracy_m_faces, \n\t\t$this->avg_reaction_time_aba_no_faces, $this->accuracy_aba_no_faces, $this->avg_reaction_time_aba_faces, $this->accuracy_aba_faces,\n\t\t$this->avg_reaction_time_faces, $this->accuracy_faces, $this->avg_reaction_time_no_faces, $this->accuracy_no_faces\";\n\t}", "private function _prepareInsertString($data) {\n /**\n * @ Incoming $data looks like:\n * $data = array('field' => 'value', 'field2'=> 'value2');\n */\n return array(\n 'names' => implode(\", \", array_keys($data)),\n 'values' => ':' . implode(', :', array_keys($data))\n );\n }", "public function getAllRoutes($user_id,$phone){\n\t\t\n\t\t//$allIds=$user_id.\",\".$data2['ids'];\n\t\t\n\t$sql = \"(select e.user_id, e.event_id, e.event_name, e.event_type,u.user_name as leader_name,\n\t\t\t\t\t\te.description, e.create_type, e.latitude, e.longitude\n\t\t\t\t\t\tfrom `events` as e \n\t\t\t\t\t\tinner join event_friends as e_f on e_f.event_id=e.event_id \n\t\t\t\t\t\tleft JOIN leadlatlongs as lll on lll.event_id = e.event_id\n\t\t\t\t\t\tINNER JOIN users AS u ON u.user_id = e.user_id\n\t\t\t\t\t\twhere (e.user_id in($user_id) or e_f.friend_id=($user_id))\n\t\t\t\t\t\tand e_f.status !='reject' and e.create_type='routes' AND e.status = '1'\n\t\t\t\t\t\tgroup by e.event_id)\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tunion\n\t\t\t\t\t\t\n\t\t\t\t\t\t(select e.user_id, e.event_id, e.event_name, e.event_type,u.user_name as leader_name,\n\t\t\t\t\t\te.description, e.create_type, e.latitude, e.longitude\n\t\t\t\t\t\tfrom `events` as e\n\t\t\t\t\t\tleft JOIN leadlatlongs as lll on lll.event_id = e.event_id\n\t\t\t\t\t\tINNER JOIN users AS u ON u.user_id = e.user_id\n\t\t\t\t\t\twhere e.event_type='public' and e.create_type='routes' AND e.status = '1'\n\t\t\t\t\t\tgroup by e.event_id)\n\t\t\t\t\t\torder by event_id desc\"; \n\t/*\t$sql=\"SELECT e.event_id,e.user_id,ef.friend_id,ef.user_id,ef.status,e.event_type from events as e,event_friends as ef \nwhere ((e.event_id=ef.event_id and ef.friend_id=$user_id and ef.status!='reject' and e.event_type='private') or (e.event_type='public' or e.user_id in ($user_id)) ) \nand e.create_type='routes' group by e.event_id\";*/\n\t\t\n\t/*\t$sql = \"select e.user_id,\n\t\t\t\te.event_id,\n\t\t\t\te.event_name,\n\t\t\t\te.event_type,\n\t\t\t\te.description,\n\t\t\t\te.create_type,\n\t\t\t\te.latitude,\n\t\t\t\te.longitude,\n\t\t\t\te.leadLat,\n\t\t\t\te.leadLong\n\t\t\t\tfrom events as e left join event_friends as e_f on e_f.event_id=e.event_id \n\t\t\t\twhere (e.user_id in($allIds) or e_f.friend_id=$user_id \n\t\t\t\tand e.event_type='private') or e.event_type='public' \n\t\t\t\tand\te.create_type='routes' \n\t\t\t\tand (e_f.status !='reject') \n\t\t\t\tgroup by e.event_id \"; \n\t\t\n\t\t*/\n\t\t/* extra added line in the above query \n\t\t\n\t\tand e.event_type='private') or e.event_type='public' \n\t\t\n\t\t*/\n\t\t\n\t\t\n\t\t$query = $this->db->query($sql);\n\t\t$data = $query->result_array();\n\t\treturn $data;\n }", "function drum_smart_directions($address_array) {\n\t// Set up variables\n\t$street1 = $address_array['street1'];\n\t$street2 = $address_array['street2'];\n\t$city = $address_array['city'];\n\t$state = $address_array['state'];\n\t$zip = $address_array['zip'];\n\t// Format address for links to map\n\tif ($street2 == null) {\n\t\t$address = $street1 . ', ' . $street2 . ', ' . $city . ', ' . $state . ' ' . $zip;\n\t} else {\n\t\t$address = $street1 . ', ' . $city . ', ' . $state . ' ' . $zip;\n\t}\n\t// Show 'Get Directions' button\n\t$clean_address = urlencode( strip_tags($address) );\n\t$detect = new Mobile_Detect;\n\t$output = '<div class=\"button\">';\n\tif( $detect->isiOS() ) {\n \t$output .= '<a href=\"http://maps.apple.com/?daddr=' . $clean_address . '\">Apple Maps';\n\t} else {\n\t $output .= '<a href=\"http://maps.google.com/?q=' . $clean_address . '\" target=\"_blank\">Get Directions';\n\t}\n $output .= '</a></div>';\n return $output;\n}", "#[Pure] public function get_values(): string\n {\n if(gettype($this -> value) === \"string\") {\n return \"'\" . $this->value . \"'\";\n }else{\n $res = \"'\";\n foreach($this -> value as $v){\n $res .= strval($v) . \" \";\n }\n $res .= \"'\";\n }\n return $res;\n }", "function columnSql(array $cd)\n {\n $line = array();\n $line[] = parent::columnSql($cd);\n\n /*\n if ($table['foreign keys'][$name]) {\n foreach ($table['foreign keys'][$name] as $foreignTable => $foreignColumn) {\n $line[] = 'references';\n $line[] = $this->quoteIdentifier($foreignTable);\n $line[] = '(' . $this->quoteIdentifier($foreignColumn) . ')';\n }\n }\n */\n\n return implode(' ', $line);\n }", "private function create_update_sql($arr) {\n return implode(\" = ?, \\n\", array_keys($arr)).' = ?';\n }", "private function buildParamString( Array $params ) {\r\n $param_string = array();\r\n $count = count( $params );\r\n if ( $count == 0 ) {\r\n return false;\r\n }\r\n else {\r\n foreach( $params as $param ) {\r\n if ( is_int($param) ) {\r\n array_push( $param_string, 'i' );\r\n }\r\n elseif ( is_string($param) ) {\r\n array_push( $param_string, 's' );\r\n }\r\n elseif ( is_double($param) ) {\r\n array_push( $param_string, 'd' );\r\n }\r\n else {\r\n array_push( $param_string, 'b' );\r\n }\r\n }\r\n }\r\n // return the parameter as a string to the caller\r\n return implode( '', $param_string );\r\n }", "function tosql($value, $type)\n{\n if(!strlen($value))\n return \"NULL\";\n else\n if($type == \"Number\")\n return str_replace (\",\", \".\", doubleval($value));\n else\n {\n if(get_magic_quotes_gpc() == 0)\n {\n $value = str_replace(\"'\",\"''\",$value);\n $value = str_replace(\"\\\\\",\"\\\\\\\\\",$value);\n }\n else\n {\n $value = str_replace(\"\\\\'\",\"''\",$value);\n $value = str_replace(\"\\\\\\\"\",\"\\\"\",$value);\n }\n\n return \"'\" . $value . \"'\";\n }\n}", "function tosql($value, $type)\n{\n if(!strlen($value))\n return \"NULL\";\n else\n if($type == \"Number\")\n return str_replace (\",\", \".\", doubleval($value));\n else\n {\n if(get_magic_quotes_gpc() == 0)\n {\n $value = str_replace(\"'\",\"''\",$value);\n $value = str_replace(\"\\\\\",\"\\\\\\\\\",$value);\n }\n else\n {\n $value = str_replace(\"\\\\'\",\"''\",$value);\n $value = str_replace(\"\\\\\\\"\",\"\\\"\",$value);\n }\n\n return \"'\" . $value . \"'\";\n }\n}", "private static function buildNameParametersSQL() {\n $namedParams = '';\n foreach (static::$tableSchema as $columnName => $type) {\n $namedParams .= $columnName . ' = :' . $columnName . ', ';\n }\n return trim($namedParams, ', ');\n }", "function CreateURLEncoded($params_array, &$out) {\n\n\tforeach($params_array as $key=>$val) { \n\t\tif(is_array($val)) {\n\t\t\tCreateURLEncoded($val, $out);\n\t\t\tcontinue;\n\t\t}\n\t\tif($val === true) {\n\t\t\t$val = 1;\n\t\t} else if($val === false) {\n\t\t\t$val = 0;\n\t\t}\n\t\t$out .= \"$key=\" . urlencode($val) . '&'; \n\t}\n}" ]
[ "0.57742035", "0.5723555", "0.54118776", "0.53859895", "0.53433186", "0.52005756", "0.5181006", "0.51499707", "0.51309294", "0.5080498", "0.5064301", "0.50194925", "0.5017345", "0.49897757", "0.49502593", "0.4927679", "0.49001387", "0.48884308", "0.48809934", "0.48740852", "0.48464736", "0.48456427", "0.48378402", "0.48273855", "0.4825536", "0.4801892", "0.4798741", "0.4798639", "0.47559795", "0.47511598", "0.47509807", "0.4744871", "0.47338253", "0.47328725", "0.46910483", "0.46752137", "0.46650094", "0.46528715", "0.46400046", "0.4635315", "0.46344993", "0.46124417", "0.4605712", "0.45981044", "0.45964712", "0.4588922", "0.4582199", "0.4582042", "0.45781764", "0.45760122", "0.45634487", "0.4528616", "0.45070088", "0.45061767", "0.45061693", "0.44977015", "0.449451", "0.4488861", "0.44838598", "0.4473856", "0.44724473", "0.44696864", "0.4468831", "0.44686264", "0.44683105", "0.4464531", "0.445546", "0.44526023", "0.4444095", "0.44428515", "0.4436033", "0.443527", "0.4434968", "0.44242144", "0.44167995", "0.441145", "0.44107932", "0.4409283", "0.4402826", "0.43952468", "0.43872616", "0.4386152", "0.43831244", "0.43805695", "0.4359079", "0.43570277", "0.43562502", "0.43561384", "0.43486226", "0.43480515", "0.43437806", "0.43402508", "0.43385753", "0.43362728", "0.43282798", "0.4321867", "0.4320379", "0.4320379", "0.43177065", "0.4316898" ]
0.6723766
0
Retrieve recipe information from database. Recipe will return object containing: title description preparation time serving size image path for preview image list of ingredients list of directions
public function getRecipeData($rid) { // Query to select recipe $this->db->query('SELECT * FROM recipes WHERE rid=:rid'); $this->db->bind(':rid', $rid); $this->db->execute(); $recipeResult = $this->db->single(); // If recipe does not exist, return null if($recipeResult == null) { return null; } // Convert from object into array to append owner username, ingredients ,and directions $recipeResult = (array)$recipeResult; // Retrieve owner username and append to result $this->db->query('SELECT user_username FROM users WHERE user_id=:uid'); $this->db->bind(':uid', $recipeResult['ownerid']); $this->db->execute(); $result = $this->db->single(); $recipeResult['owner_username'] = $result->user_username; // Query to select recipe's ingredients list $this->db->query('SELECT ingredientid, value FROM ingredients WHERE rid=:rid'); $this->db->bind(':rid', $rid); $this->db->execute(); $ingredientsResult = $this->db->resultSet(true); $recipeResult['ingredients'] = $ingredientsResult; // Query to select recipe's directions list $this->db->query('SELECT stepNum, description FROM directions WHERE rid=:rid'); $this->db->bind(':rid', $rid); $this->db->execute(); $directionsResult = $this->db->resultSet(true); $recipeResult['directions'] = $directionsResult; return (object)$recipeResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadRecipe() {\n\t\tglobal $DB_LINK, $db_table_recipes, $LangUI;\n\t\t$sql = \"SELECT * FROM $db_table_recipes WHERE recipe_id=\" . $DB_LINK->addq($this->id, get_magic_quotes_gpc());\n\t\t$rc = $DB_LINK->Execute($sql);\n\t\tDBUtils::checkResult($rc, NULL, $LangUI->_('There was an error loading the ingredient'), $sql);\n\t\t$this->name = $rc->fields['recipe_name'];\n\t\t$this->ethnic = $rc->fields['recipe_ethnic'];\n\t\t$this->base = $rc->fields['recipe_base'];\n\t\t$this->course = $rc->fields['recipe_course'];\n\t\t$this->prep_time = $rc->fields['recipe_prep_time'];\n\t\t$this->difficulty = $rc->fields['recipe_difficulty'];\n\t\t$this->serving_size = $rc->fields['recipe_serving_size'];\n\t\t$this->directions = $rc->fields['recipe_directions'];\n\t\t$this->comments = $rc->fields['recipe_comments'];\n\t\t$this->source = $rc->fields['recipe_source'];\n\t\t$this->modified = $rc->fields['recipe_modified'];\n\t\t$this->private = $rc->fields['recipe_private'];\n\t\t$this->unitSystem = $rc->fields['recipe_system'];\n\t\t$this->user = $rc->fields['recipe_user'];\n\t}", "public function list()\n {\n return Recipe::all()->load('ingredients');\n }", "public function retrieveData(){\n\t\t$mParser = new RecipeParser;\n\t\t$mParser->retrieveInfoForObject($this);\n\t}", "public function getRecipe()\n {\n return $this->recipe;\n }", "public function get_recipe( $id, $post_data ) {\n\t\tglobal $wpdb;\n\t\t$table = $wpdb->prefix . 'mv_creations';\n\n\t\t$mv_recipe = false;\n\t\tif ( $table === $wpdb->get_var( \"SHOW TABLES LIKE '$table'\" ) ) {\n\t\t\t$rows = $wpdb->get_results( 'SELECT * FROM ' . $table . ' WHERE id=' . intval( $id ) );\n\n\t\t\tif ( is_array( $rows ) && 1 === count( $rows ) ) {\n\t\t\t\t$mv_recipe = (array) $rows[0];\n\t\t\t}\n\t\t}\n\n\t\t// Make sure we found the corresponding recipe, die otherwise.\n\t\tif ( false === $mv_recipe ) {\n\t\t\twp_die( 'Could not find the MV table or recipe.' );\n\t\t}\n\n\t\t$post_id = isset( $mv_recipe['object_id'] ) ? intval( $mv_recipe['object_id'] ) : 0;\n\n\t\t$recipe = array(\n\t\t\t'import_id' => $post_id,\n\t\t\t'import_backup' => array(\n\t\t\t\t'mv_creation_id' => $id,\n\t\t\t),\n\t\t);\n\n\t\t// Recipe type.\n\t\t$recipe['type'] = 'diy' === $mv_recipe['type'] ? 'howto' : 'food';\n\n\t\t// Featured Image.\n\t\t$recipe['image_id'] = $mv_recipe['thumbnail_id'];\n\n\t\t// Simple Matching.\n\t\t$recipe['name'] = $mv_recipe['title'];\n\t\t$recipe['summary'] = $mv_recipe['description'];\n\t\t$recipe['cost'] = $mv_recipe['estimated_cost'];\n\t\t$recipe['author_name'] = $mv_recipe['author'];\n\n\t\tif ( $recipe['author_name'] ) {\n\t\t\t$recipe['author_display'] = 'custom';\n\t\t}\n\n\t\t// Servings.\n\t\t$mv_yield = $mv_recipe['yield'];\n\t\t$match = preg_match( '/^\\s*\\d+/', $mv_yield, $servings_array );\n\t\tif ( 1 === $match ) {\n\t\t\t\t$servings = str_replace( ' ','', $servings_array[0] );\n\t\t} else {\n\t\t\t\t$servings = '';\n\t\t}\n\n\t\t$servings_unit = preg_replace( '/^\\s*\\d+\\s*/', '', $mv_yield );\n\n\t\t$recipe['servings'] = $servings;\n\t\t$recipe['servings_unit'] = $servings_unit;\n\n\t\t// Recipe times. From seconds to minutes.\n\t\t$recipe['prep_time'] = intval( $mv_recipe['prep_time'] ) / 60;\n\t\t$recipe['cook_time'] = intval( $mv_recipe['active_time'] ) / 60;\n\t\t$recipe['custom_time'] = intval( $mv_recipe['additional_time'] ) / 60;\n\t\t$recipe['custom_time_label'] = $mv_recipe['additional_time_label'];\n\t\t$recipe['total_time'] = intval( $mv_recipe['total_time'] ) / 60;\n\n\t\t// Recipe tags.\n\t\t$recipe['tags'] = array();\n\t\t$recipe['tags']['keyword'] = $mv_recipe['keywords'] ? array_map( 'trim', explode( ',', $mv_recipe['keywords'] ) ) : array();\n\n\t\t$taxonomies = array(\n\t\t\t'category' => 'course',\n\t\t\t'mv_cuisine' => 'cuisine',\n\t\t);\n\n\t\tforeach ( $taxonomies as $mv_tag => $wprm_tag ) {\n\t\t\t$terms = get_the_terms( $post_id, $mv_tag );\n\t\t\tif ( $terms && ! is_wp_error( $terms ) ) {\n\t\t\t\tforeach ( $terms as $term ) {\n\t\t\t\t\t$recipe['tags'][ $wprm_tag ][] = $term->name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Recipe video.\n\t\tif ( $mv_recipe['external_video'] ) {\n\t\t\t$mv_video = (array) json_decode( $mv_recipe['external_video'] );\n\n\n\t\t\tif ( isset( $mv_video['contentUrl'] ) ) {\n\t\t\t\t$recipe['video_embed'] = $mv_video['contentUrl'];\n\t\t\t}\n\t\t} else if ( $mv_recipe['video'] ) {\n\t\t\t$mv_video = (array) json_decode( $mv_recipe['video'] );\n\n\t\t\tif ( $mv_video['key'] ) {\n\t\t\t\t$key = esc_attr( $mv_video['key'] );\n\t\t\t\t$recipe['video_embed'] = '<div id=\"' . $key . '\"></div><script type=\"text/javascript\" src=\"//video.mediavine.com/videos/' . $key . '.js\" async data-noptimize></script>';\n\t\t\t}\n\t\t}\n\n\t\t// Pinterest Image.\n\t\tif ( $mv_recipe['pinterest_img_id'] ) {\n\t\t\t$recipe['pin_image_id'] = intval( $mv_recipe['pinterest_img_id'] );\n\t\t}\n\n\t\t// Ingredients.\n\t\t$mv_published = (array) json_decode( $mv_recipe['published'] );\n\t\t$mv_ingredients = 'food' === $recipe['type'] ? (array) $mv_published['ingredients'] : (array) $mv_published['materials'];\n\t\t$ingredients = array();\n\t\t$has_ingredient_links = false;\n\n\t\tforeach ( $mv_ingredients as $mv_group_name => $mv_group_ingredients ) {\n\t\t\t$group = array(\n\t\t\t\t'name' => 'mv-has-no-group' === $mv_group_name ? '' : $mv_group_name,\n\t\t\t\t'ingredients' => array(),\n\t\t\t);\n\n\t\t\tforeach ( $mv_group_ingredients as $mv_ingredient ) {\n\t\t\t\t$mv_ingredient = (array) $mv_ingredient;\n\t\t\t\t$text = trim( $mv_ingredient['original_text'] );\n\n\t\t\t\tif ( ! empty( $text ) ) {\n\t\t\t\t\t$ingredient = array(\n\t\t\t\t\t\t'raw' => $text,\n\t\t\t\t\t);\n\n\t\t\t\t\t// Check for ingredient link.\n\t\t\t\t\tif ( $mv_ingredient['link'] ) {\n\t\t\t\t\t\t$ingredient['link'] = array(\n\t\t\t\t\t\t\t'url' => $mv_ingredient['link'],\n\t\t\t\t\t\t\t'nofollow' => '0' === $mv_ingredient['nofollow'] ? 'follow' : 'nofollow',\n\t\t\t\t\t\t);\n\t\t\t\t\t\t$has_ingredient_links = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t$group['ingredients'][] = $ingredient;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$ingredients[] = $group;\n\t\t}\n\t\t$recipe['ingredients'] = $ingredients;\n\n\t\tif ( $has_ingredient_links ) {\n\t\t\t$recipe['ingredient_links_type'] = 'custom';\n\t\t}\n\n\t\t// Equipment.\n\t\t$mv_equipment = (array) $mv_published['tools'];\n\t\t$equipment = array();\n\n\t\tforeach ( $mv_equipment as $mv_group_name => $mv_group_equipment ) {\n\t\t\tforeach ( $mv_group_equipment as $mv_item ) {\n\t\t\t\t$mv_item = (array) $mv_item;\n\t\t\t\t$text = trim( $mv_item['original_text'] );\n\n\t\t\t\tif ( ! empty( $text ) ) {\n\t\t\t\t\t$equipment[] = array(\n\t\t\t\t\t\t'name' => $text,\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$recipe['equipment'] = $equipment;\n\n\t\t// Instructions.\n\t\t$mv_instructions = $this->parse_blob( $mv_recipe['instructions'] );\n\t\t$instructions = array();\n\n\t\tforeach ( $mv_instructions as $mv_group ) {\n\t\t\t$group = array(\n\t\t\t\t'name' => trim( strip_tags( $mv_group['name'], '<a><strong><b><em><i><u><sub><sup>' ) ),\n\t\t\t\t'instructions' => array(),\n\t\t\t);\n\n\t\t\tforeach ( $mv_group['items'] as $mv_item ) {\n\t\t\t\t$text = trim( strip_tags( $mv_item, '<a><strong><b><em><i><u><sub><sup><br>' ) );\n\n\t\t\t\t// Find any images.\n\t\t\t\tpreg_match_all( '/\\[mv_img[^\\]]*\\]/i', $mv_item, $img_shortcodes );\n\n\t\t\t\tforeach ( $img_shortcodes[0] as $img_shortcode ) {\n\t\t\t\t\t$img_shortcode = html_entity_decode( $img_shortcode );\n\t\t\t\t\tpreg_match( '/id=\"?\\'?(\\d+)/i', $img_shortcode, $img );\n\n\t\t\t\t\tif ( $img[1] ) {\n\t\t\t\t\t\t$image_id = intval( $img[1] );\n\n\t\t\t\t\t\tif ( $image_id ) {\n\t\t\t\t\t\t\t$group['instructions'][] = array(\n\t\t\t\t\t\t\t\t'text' => $text,\n\t\t\t\t\t\t\t\t'image' => $image_id,\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t$text = ''; // Only add same text once.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( ! empty( $text ) ) {\n\t\t\t\t\t$group['instructions'][] = array(\n\t\t\t\t\t\t'text' => $text,\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$instructions[] = $group;\n\t\t}\n\t\t$recipe['instructions'] = $instructions;\n\n\t\t// Nutrition Facts.\n\t\t$recipe['nutrition'] = array();\n\n\t\t$mv_nutrition = (array) $mv_published['nutrition'];\n\n\t\t// Serving size.\n\t\t$mv_serving_size = isset( $mv_nutrition['serving_size'] ) ? trim( $mv_nutrition['serving_size'] ) : '';\n\t\t$match = preg_match( '/^\\s*\\d+/', $mv_serving_size, $servings_array );\n\t\tif ( 1 === $match ) {\n\t\t\t$servings = str_replace( ' ','', $servings_array[0] );\n\t\t} else {\n\t\t\t$servings = '';\n\t\t}\n\n\t\t$servings_unit = preg_replace( '/^\\s*\\d+\\s*/', '', $mv_serving_size );\n\n\t\t$recipe['nutrition']['serving_size'] = $servings;\n\t\t$recipe['nutrition']['serving_unit'] = $servings_unit;\n\n\t\t// Other nutrients.\n\t\t$nutrition_mapping = array(\n\t\t\t'calories' => 'calories',\n\t\t\t'carbohydrates' => 'carbohydrates',\n\t\t\t'protein' => 'protein',\n\t\t\t'total_fat' => 'fat',\n\t\t\t'saturated_fat' => 'saturated_fat',\n\t\t\t'unsaturated_fat' \t=> 'polyunsaturated_fat',\n\t\t\t'trans_fat' => 'trans_fat',\n\t\t\t'cholesterol' => 'cholesterol',\n\t\t\t'sodium' => 'sodium',\n\t\t\t'fiber' => 'fiber',\n\t\t\t'sugar' => 'sugar',\n\t\t\t'sugar_alcohols' => 'sugar_alcohols',\n\t\t);\n\n\t\tforeach ( $nutrition_mapping as $mv_field => $wprm_field ) {\n\t\t\tif ( isset( $mv_nutrition[ $mv_field ] ) && $mv_nutrition[ $mv_field ] ) {\n\t\t\t\t$recipe['nutrition'][ $wprm_field ] = $mv_nutrition[ $mv_field ];\n\t\t\t}\n\t\t}\n\n\t\t// Recipe Notes.\n\t\t$notes = $mv_recipe['notes'];\n\n\t\t// Find any images.\n\t\tpreg_match_all( '/\\[mv_img[^\\]]*\\]/i', $notes, $img_shortcodes );\n\n\t\tforeach ( $img_shortcodes[0] as $img_shortcode_encoded ) {\n\t\t\t$img_shortcode = html_entity_decode( $img_shortcode_encoded );\n\t\t\tpreg_match( '/id=\"?\\'?(\\d+)/i', $img_shortcode, $img );\n\n\t\t\tif ( $img[1] ) {\n\t\t\t\t$image_id = intval( $img[1] );\n\n\t\t\t\tif ( $image_id ) {\n\t\t\t\t\t$image_html = wp_get_attachment_image( $image_id, 'medium' );\n\n\t\t\t\t\tif ( $image_html ) {\n\t\t\t\t\t\t$notes = str_replace( $img_shortcode_encoded, $image_html, $notes );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$recipe['notes'] = $notes;\n\n\t\treturn $recipe;\n\t}", "public function show_recipes()\n\t{\n\t\t//Debugging function\n\t\techo '<pre>';\n\t\techo var_dump($this->recipes);\n\t\techo '</pre>';\n\t}", "function getRecipe($recipe){\n\t $recipeid = $this->getRecipeID($recipe);\n\t\t $list = mysql_fetch_assoc(@mysql_query(\"SELECT * FROM Recipes WHERE RecipeID = '$recipeid'\"));\n\t\t\t \n\t\t\t $name =$list['RecipeName'];\n\t\t\t $url= $list['URL'] ;\n\t\t $img = $list['Image'];\n\t\t $time = $list['TotalCookingTime'] ;\n\t\t\t//$ingredients = \"\";\n\t\t $ingredients = $this->getRecipeIngredients($recipe);\n\t\t $instructions = $list['Instructions'];\n\t\t\t $array = array($name,$url,$img,$time,$ingredients,$instructions);\n\t\t\t return json_encode($array);\n\t \n\t}", "protected static function GET_list() {\n\t\tif($db = self::RequireLatestDatabase())\n\t\t\tif($select = $db->prepare('select id, name, lastServed, complexity from recipe order by name'))\n\t\t\t\tif($select->execute()) {\n\t\t\t\t\t$recipe = new Row();\n\t\t\t\t\tif($select->bind_result($recipe->id, $recipe->name, $recipe->lastServed, $recipe->complexity)) {\n\t\t\t\t\t\t$recipes = [];\n\t\t\t\t\t\twhile($select->fetch())\n\t\t\t\t\t\t\t$recipes[] = $recipe->dupe();\n\t\t\t\t\t\tself::Success($recipes);\n\t\t\t\t\t} else\n\t\t\t\t\t\tself::DatabaseError('Error binding results from looking up recipes', $select);\n\t\t\t\t} else\n\t\t\t\t\tself::DatabaseError('Error looking up recipes', $select);\n\t\t\telse\n\t\t\t\tself::DatabaseError('Error preparing to look up recipes', $db);\n\t}", "public function recipes()\n\t\t{\n\t\t\t\n\t\t\tif (! $this->recipes)\n\t\t\t{\n\t\t\t\t$this->recipes = BLGenericRecord::find(\"Recipe\");\n\t\t\t}\n\t\t\treturn $this->recipes;\n\t\t}", "public function getRecipeById($r_id){\r\n require 'database.php';\r\n $sql = \"SELECT * from recipe WHERE recipe_id = $r_id\";\r\n $output = $DB_con->query($sql);\r\n foreach ($output as $outputs) {\r\n echo \"<div class='container'>\";\r\n echo \"<div class='row cardView'>\";\r\n \r\n echo \"<div class='image_enlarged'>\";\r\n echo \"<img src=\" . $outputs['img_src'] . \">\";\r\n echo \"</div>\";\r\n\r\n echo \"<div class='description'>\";\r\n echo \"<h3>\" . $outputs['title'] . \"</h3>\";\r\n echo \"<h5>\" . $outputs['subtitle'] . \"</h5>\";\r\n echo \"<h5> Serving size \" . $outputs['serving_size'] . \"</h5>\";\r\n //function getIngredientsById has purpose to display ingredients \r\n $this->getIngredientsById($r_id);\r\n echo \"<h3 class='price'> \" . $outputs['price'] . \"</h3>\";\r\n echo \"<a href='./recipeapp/confirm.php?id=\" . $r_id . \"'><button class='order'>\" . \"Order Ingredients\" . \"</button></a>\";\r\n \r\n\r\n \r\n echo \"</div>\";\r\n echo \"</div>\";\r\n echo \"</div>\";\r\n \r\n }\r\n }", "public function getRecipe()\n\t{\n\t\tif(!$this->_recipe){\n\t\t\t$this->_recipe = Website_Model_CbFactory::factory('Website_Model_Recipe',$this->recipeId);\n\t\t}\n\t\treturn $this->_recipe;\n\t}", "public function view_recipe($id){\n\t\t$query = $this->db->query(\"\n\t\t\tSELECT re.id re_id, re.name re_nm, re.price re_prc, re.instructions re_ins, re.cooking_time re_ct, re.servings re_se, re.image re_im, re.status re_st, re.created_date re_cd, re.updated_date re_ud, rg.name rg_nm, rg.id rid, co.name co_nm, co.id cid, ing.name in_nm, ring.ingredient_amount in_am\n\t\t\tFROM recipe_ingredients ring\n\t\t\tINNER JOIN ingredients ing ON ring.ingredient_id = ing.id\n\t\t\tRIGHT JOIN recipe re ON ring.recipe_id = re.id\n\t\t\tINNER JOIN country co ON re.country_id = co.id\n\t\t\tINNER JOIN region rg ON co.region_id = rg.id\n\t\t\tWHERE md5(re.id) = '$id'\n\t\t\");\n\t\tif ($query->num_rows() > 0){\n\t\t\treturn $query->result();\n\t\t}else{\n\t\t\treturn NULL;\n\t\t}\n\t}", "public function RecipeInfo()\n {\n $values = Recipe::find(1);\n\n return view('recipe',\n [\n 'values' => $values\n ]);\n }", "public function actionIngredientRecipes()\n {\n $ingredientRecipes = IngredientRecipeDao::findAll([\"idRecipe\" => SiteUtil::getUrlParameters()[2]] );\n echo json_encode($this->ingredientRecipesToArray($ingredientRecipes));\n }", "public function recipe()\n\t{\n\t\treturn $this->hasOne(Recipe::class, 'craft_id', 'id');\n\t}", "public function getRecipe() {\n\t\tif ($this->recipe === null) {\n\t\t\t$bean = $this->unbox();\n\t\t\t$path = $bean->recipe;\n\t\t\tif (is_file($path)) {\n\t\t\t\t$this->recipe = new Model_Recipe(basename($path), dirname($path) . '/');\n\t\t\t} else {\n\t\t\t\t$path = basename($path);\n\t\t\t\t$config = Zend_Registry::get('config');\n\t\t\t\t$bsDir = $config->directories->buildscript;\n\t\t\t\tif (is_file($bsDir . $path)) {\n\t\t\t\t\t$this->recipe = new Model_Recipe(basename($path), dirname($path) . '/');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $this->recipe;\n\t}", "public function recipe()\n {\n $recipes = Recipe::select('id', 'name', 'approved')->paginate(30);\n return view('admin.recipe.index')->with('recipes', $recipes);\n }", "function getRecipe($filter=false){\n\t\t$strQuery=\"select Name, energy,fat,saturatedfat,transfat,cholestrol,carbohydrates,sugars,fiber,proteins,salt,sodium,vitamina,vitaminc,calcium,iron\n\t\t\t\t\tfrom recipes\";\n\t\tif($filter!=false){\n\t\t\t$strQuery=$strQuery . \" where $filter limit 12\";\n\t\t}\n\t\treturn $this->query($strQuery);\n\t}", "public function recipe(){\n\t\t#Define an inverse one-to-many relationship\n\n\t\treturn $this->belongsTo('Recipe');\n\n\n\t}", "public function recipe()\n\t{\n\t\treturn $this->belongsTo('App\\Recipe');\n\t}", "public function getFeaturedRecipes(){\n $this->db->query(\"SELECT * FROM recipes ORDER BY rid DESC LIMIT :num\");\n $this->db->bind(':num', 6);\n return $this->db->resultSet();\n\n }", "function Recipe($id=0, $name='', $ethnic='NULL', $base='NULL', $course='NULL', $time='NULL', $difficulty='NULL', $directions='', $comments='',\n\t\t$serving=0, $source=0, $source_desc='', $user=NULL, $private='FALSE', $picture='', $picture_type='', $picture_oid=NULL) {\n\t\tglobal $DB_LINK, $SMObj;\n\t\t// Initial a new Recipe Object\n\t\t$this->id = $id;\n\t\t$this->name = $name;\n\t\t$this->ethnic = $ethnic;\n\t\t$this->base = $base;\n\t\t$this->course = $course;\n\t\t$this->prep_time = $time;\n\t\t$this->difficulty = $difficulty;\n\t\t$this->directions = $directions;\n\t\t$this->comments = $comments;\n\t\t$this->serving_size = $serving;\n\t\t$this->source = $source;\n\t\t$this->source_desc = $source_desc;\n\t\t$this->picture = $picture;\n\t\t$this->picture_type = $picture_type;\n\t\t$this->picture_oid = $picture_oid;\n\t\tif ($user == \"\" || $user == NULL) {\n\t\t\t$this->user = $SMObj->getUserID();\n\t\t} else {\n\t\t\t$this->user = $user;\n\t\t}\n\n\t\tif ($this->source=='')\n\t\t\t$this->source = 'NULL';\n\n\t\t$this->modified = $DB_LINK->DBDate(time()); // set the current date\n\t\t$this->unitSystem = Units::getLocalSystem();\n\n\t\tif ($private == \"TRUE\") $this->private = $DB_LINK->true;\n\t\telse $this->private = $DB_LINK->false;\n\t}", "public function recipe() \n {\n return $this->hasMany(\\App\\Models\\Recipes\\Recipe::class);\n \n }", "public function show($id) {\n\n $ingredient = DB::table('ingredients')\n ->join('recipes', 'ingredients.RID', '=', 'recipes.id')\n ->select('ingredients.*', 'recipes.Name as recipeName','recipes.id as recipeID')\n ->where('ingredients.id','=',$id)\n ->get();\n return $ingredient;\n }", "function getRecipe($id)\r\n {\r\n //define query\r\n $query = \"SELECT * FROM recipe\r\n WHERE recipe_id = :id\";\r\n\r\n //prepare statement\r\n $statement = $this->_db->prepare($query);\r\n\r\n //bind parameter\r\n $statement->bindParam(':id', $id, PDO::PARAM_STR);\r\n\r\n //execute\r\n $statement->execute();\r\n\r\n //get result\r\n $result = $statement->fetch(PDO::FETCH_ASSOC);\r\n return $result;\r\n }", "public function getIngredient(){\n\n // echo \"Recipes\";exit;\n // $recipe = \\App\\Recipe::;\n $ingredient = Ingredient::where('id','=', 1)->first();\n\n // echo '<pre>'; print_r($recipe); echo '</pre>'; exit;\n\n foreach($ingredient as $r){\n echo '<pre>'; print_r($r); echo '</pre>'; \n }\n // echo Auth::user(1);\n // echo '<pre>'.$recipe.'</pre>'; \n exit;\n return View::make('admin.ingredients');\n // ->with(array(\n // 'recipe' => $recipe,\n // ));\n }", "function viewRecipe(){\n include(\"../model/recipe.php\");\n $obj=new recipe();\n\n if($obj->viewRecipe()) {\n $row=$obj->fetch();\n echo '{\"result\":1,\"recipes\":[';\n while($row){\n echo json_encode($row);\n $row=$obj->fetch();\n if($row){\n echo \",\";\n }\n }\n echo \"]}\";\n }\n else {\n echo '{\"result\":0}';\n }\n }", "public function getRecipeImage()\r\n {\r\n return $this->_recipeImage;\r\n }", "public function getRecipes()\n\t{\n\t\treturn $this->recipes;\n\t}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function recipes($id)\n\t{\n\t\tif (!isset($_SESSION['user']))\n\t\t{\n\t\t\theader(\"Location: /myrecipe/session/new\");\n\t\t\texit;\n\t\t}\n\t\t// this page is only accessable by self and admin (type 2)\n\t\tif (($_SESSION['user']['type'] != 2) && ($_SESSION['user']['id'] != $id))\n\t\t{\n\t\t\theader(\"Location: /myrecipe/users/{$_SESSION['user']['id']}\");\n\t\t\texit;\n\t\t}\n\t\n\t\tif(!$user = User::findUser(array('user_id' => $id)))\n\t\t{\n\t\t\t// something has gone wrong with db request\n\t\t\theader(\"Location: /myrecipe/users/\".$id);\n\t\t\texit;\n\t\t}\n\t\t$this->template->user = $user[0];\n\t\t\n\t\t// get all the recipes uploaded by the user\n\t\t$myrecipes = Recipe::findRecipe(array('recipes.user_id'=>$id, 'recipe_images.is_cover'=>'yes'));\n\t\t$this->template->myrecipes = $myrecipes;\n/*\t\techo \"<pre>\";\n\t\tprint_r($myrecipes);\n\t\techo \"</pre>\";\n*/\t\n\t\t$this->template->display('recipes.html.php');\n\t}", "public function getRecipe($recipe) {\n\n $query = $this->db\n ->from('recipes')\n ->where('slug', $recipe)\n ->get();\n\n return $result = $query->row();\n }", "public function recipe()\n {\n return $this->belongsTo(Recipe::class);\n }", "public function recipe()\n {\n return $this->belongsTo(Recipe::class);\n }", "public function recipe()\n {\n return $this->belongsTo('App\\Models\\Recipe');\n }", "public function recipes()\n {\n return $this->hasMany('App\\Recipe');\n }", "public function recipe()\n {\n return $this->hasMany(Recipe::class, 'category_id', 'id');\n }", "public function robot_recipe(){\n \n $database = $this->getConnection();\n dd($database);\n return $this->hasMany(Recetas::class, 'roboshot', 'idRoboshot');\n }", "public function getIdRecipe() {\n return $this->id_recipe;\n }", "public function index()\n {\n $foodRecipes = FoodRecipe::with('ingredients','cookingProcesses')->get();\n return FoodRecipeResource::collection($foodRecipes);\n }", "public function recipes() {\n return $this->hasMany('App\\Models\\Recipe');\n }", "public function show($id)\n {\n return Recipe::findOrFail($id);\n }", "public function show(Recipe $recipe){\n if((!$recipe->approved || $recipe->private) && ($recipe->author_id != Auth::id() || !Auth::user()->hasRole('Admin'))){\n return App::abort(404);\n }\n\n if(!Auth::guest()){\n $recipe->isSaved = Auth::user()->hasRecipe($recipe->id);\n }\n $related_recipes = Recipe::where('category', '=', $recipe->category)->where('id', '<>', $recipe->id)->take(4)->get();\n foreach($related_recipes as $related_recipe){\n $related_recipe->user = User::find($related_recipe->author_id);\n $related_recipe->review_count = Review::where('recipe_id', '=', $related_recipe->id)->count();\n if(!Auth::guest()){\n $related_recipe->isSaved = Auth::user()->hasRecipe($recipe->id);\n }\n }\n $author = User::find($recipe->author_id);\n Event::fire('recipe_view', array($recipe, 'user_id' => $author->id));\n foreach(explode(',',$recipe->category) as $category){\n $categorys[] = Category::find($category);\n }\n $reviews = Review::where('recipe_id', '=', $recipe->id)->take(Review::$defaultReviewCount)->get();\n $total_reviews = Review::where('recipe_id', '=', $recipe->id)->count();\n $user_review = new Review;\n $user_review->rating = 0;\n if(Auth::id()){\n $user_review = Review::where('reviewer_id' ,'=', Auth::id())\n ->where('recipe_id', '=', $recipe->id)->first();\n if(!$user_review){\n $user_review = new Review;\n $user_review->rating = 0;\n }\n }\n\n if($reviews->isEmpty()){\n return View::make('recipe.index')->with(array(\n 'recipe' => $recipe,\n 'categorys' => $categorys,\n 'author' => $author,\n 'reviews' => $reviews,\n 'user_review' => $user_review,\n 'total_reviews' => $total_reviews,\n 'related_recipes' => $related_recipes\n ));\n }\n\n foreach($reviews as $review){\n $review->author = User::find($review->reviewer_id);\n\n if(Auth::id()){\n $helpful = HelpfulReview::where('recipe_id', '=', $recipe->id)\n ->where('review_id', '=', $review->id)\n ->where('user_id', '=', Auth::id())->first();\n if($helpful){\n $review->helpful = $helpful->isHelpful;\n }\n else{\n $review->helpful = '';\n }\n }\n }\n\n $positive_review = Review::where('recipe_id', '=', $recipe->id)->orderBy('rating', 'desc')->orderBy('helpful', 'desc')->first();\n $positive_review->author = User::find($positive_review->reviewer_id);\n $helpful = HelpfulReview::where('recipe_id', '=', $recipe->id)\n ->where('review_id', '=', $positive_review->id)\n ->where('user_id', '=', Auth::id())->first();\n if($helpful){\n $positive_review->helpful = $helpful->isHelpful;\n }\n else{\n $positive_review->helpful = '';\n }\n\n $critical_review = Review::where('recipe_id', '=', $recipe->id)->orderBy('rating', 'asc')->orderBy('helpful', 'desc')->first();\n $critical_review->author = User::find($critical_review->reviewer_id);\n $helpful = HelpfulReview::where('recipe_id', '=', $recipe->id)\n ->where('review_id', '=', $critical_review->id)\n ->where('user_id', '=', Auth::id())->first();\n if($helpful){\n $critical_review->helpful = $helpful->isHelpful;\n }\n else{\n $critical_review->helpful = '';\n }\n\n $review_distribution['total'] = Review::where('recipe_id', '=', $recipe->id)->count();\n $review_distribution[1] = Review::where('recipe_id', '=', $recipe->id)->where('rating', '=', '1')->count() / $review_distribution['total'] * 100;\n $review_distribution[2] = Review::where('recipe_id', '=', $recipe->id)->where('rating', '=', '2')->count() / $review_distribution['total'] * 100;\n $review_distribution[3] = Review::where('recipe_id', '=', $recipe->id)->where('rating', '=', '3')->count() / $review_distribution['total'] * 100;\n $review_distribution[4] = Review::where('recipe_id', '=', $recipe->id)->where('rating', '=', '4')->count() / $review_distribution['total'] * 100;\n $review_distribution[5] = Review::where('recipe_id', '=', $recipe->id)->where('rating', '=', '5')->count() / $review_distribution['total'] * 100;\n\n $reviews_with_pictures = Review::where('image', '<>', '')->where('recipe_id', '=', $review->recipe_id)->get();\n foreach($reviews_with_pictures as $review){\n $review->user = User::find($review->reviewer_id);\n }\n\n return View::make('recipe.index')->with(array(\n 'recipe' => $recipe,\n 'author' => $author,\n 'categorys' => $categorys,\n 'reviews' => $reviews,\n 'total_reviews' => $total_reviews,\n 'user_review' => $user_review,\n 'positive_review' => $positive_review,\n 'critical_review' => $critical_review,\n 'review_distribution' => $review_distribution,\n 'related_recipes' => $related_recipes,\n 'reviews_with_pictures' => $reviews_with_pictures\n ));\n }", "public function show($id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n return new FoodRecipeResource($foodRecipe);\n }", "public function findRecipe() {\n /** @var Item[] $iterator */\n $iterator = $this->items->excludeExpired()->getSortedIteratorOn('useByDate');\n foreach ($iterator as $item) {\n $selectedRecipe = $this->recipes->findRecipeWithMatchingIngredient($item);\n $recipe = $this->selectRecipe($selectedRecipe, $item);\n if ($recipe !== null) {\n return $recipe;\n }\n }\n return null;\n }", "public function getIdRecipe()\n {\n return $this->idRecipe;\n }", "function getRecipes()\r\n {\r\n //define query\r\n $query = \"SELECT * FROM recipe\r\n ORDER BY date_created DESC\r\n LIMIT 3\";\r\n\r\n //prepare statement\r\n $statement = $this->_db->prepare($query);\r\n\r\n //execute\r\n $statement->execute();\r\n\r\n //get result\r\n $result = $statement->fetchAll(PDO::FETCH_ASSOC);\r\n return $result;\r\n }", "public function getRecipeById($id)\n {\n $stmt = (new Statement())->where(\n function (array $record) use ($id)\n {\n return $record['id'] == $id;\n }\n );\n return $stmt->process($this->reader)->fetchOne(0);\n }", "public function find($id){\n\n $query = $this->db->prepare('SELECT * FROM recipes WHERE id = ?');\n $query->bind_param(\"s\", $id);\n if(!$query->execute()){\n return NULL;\n }\n $result = $query->get_result();\n\n if(!$result || !$result->num_rows){\n return NULL;\n }\n $recipeRow = $result->fetch_assoc();\n $recipe = $this->recipeFactory->make($recipeRow);\n\n return $recipe;\n }", "public function get_recipe_information() {\n $this->db->select('recipe.id,recipe.ar_name as rec_ar_name,recipe.en_name as rec_en_name,recipe.details,recipe.barcode,recipe_information.invoice_number,recipe_information.size,recipe_information.color,recipe_information.weight,recipe_information.expirey_date,recipe_information.cost_price,recipe_information.sale_price,recipe_information.whole_price,recipe_information.qty,brand.en_name as brand_en_name,brand.ar_name as brand_ar_name,supplier.name,recipe_information.disable as info_disable,recipe.disable as rec_disable ');\n $this->db->from('recipe');\n $this->db->join('recipe_information', 'recipe.id = recipe_information.recipe_id','left');\n $this->db->join('brand', 'brand.id = recipe.brand_id','left');\n $this->db->join('supplier', 'supplier.id = recipe_information.supplier_id','left');\n $query = $this->db->get();\n return $query->result();\n }", "public function displayRecipe()\n {\n return $this->title . \"by\" . $this->source;\n }", "public function getRecipes():array\n {\n return $this->recipes;\n }", "public function index($id = null) {\n if ($id == null) {\n \t$ingredient = DB::table('ingredients')\n ->join('recipes', 'ingredients.RID', '=', 'recipes.id')\n ->select('ingredients.*', 'recipes.Name as recipeName')\n ->get();\n return $ingredient;\n } else {\n return $this->show($id);\n }\n }", "function __construct($recipeID, $database){\r\n $sql = file_get_contents('sql/getRecipe.sql');\r\n $params = array(\r\n 'recipe_id' => $recipeID\r\n );\r\n $statement = $database->prepare($sql);\r\n $statement->execute($params);\r\n $recipes = $statement->fetchAll(PDO::FETCH_ASSOC);\r\n //print_r($recipes);\r\n //Set recipe to first value of recipes array\r\n $recipe = $recipes[0];\r\n\r\n // Query to get recipe ingredients\r\n $sql = file_get_contents('sql/getIngredients.sql');\r\n $params = array(\r\n 'recipe_id' => $recipeID\r\n );\r\n $statement = $database->prepare($sql);\r\n $statement->execute($params);\r\n $ingredients = $statement->fetchAll(PDO::FETCH_ASSOC);\r\n //Set ingredient to first value of ingredients\r\n\r\n // Set object variables to the results of the queries\r\n $this->recipeID = $recipe['recipe_id'];\r\n $this->recipeName = $recipe['recipe_name'];\r\n $this->instructions = $recipe['instructions'];\r\n $this->ingredients = $ingredients;\r\n }", "public function index()\n {\n return RecipeCategoryResource::collection(Recipe::all());\n }", "public function run()\n {\n $recipe = [\n [\n \"name\" => \"Борщ\",\n \"image\" => \"\",\n \"category_id\" => \"1\",\n \"user_id\" => \"1\",\n \"description\" => \"Разновидность супа на основе свёклы, которая придаёт ему характерный красный цвет.\",\n\n\n ],\n [\n \"name\" => \"Плов\",\n \"image\" => \"\",\n \"category_id\" => \"2\",\n \"user_id\" => \"1\",\n \"description\" => \"Блюдо восточной кухни, основу которого составляет варёный рис\",\n\n ],\n [\n \"name\" => \"Бефстроганов\",\n \"image\" => \"\",\n \"category_id\" => \"2\",\n \"user_id\" => \"1\",\n \"description\" => \"Популярное в России блюдо, названное в честь графа Александра Григорьевича Строганова. Готовится из мелко нарезанных кусочков говядины (тонкие квадратики), залитых горячим сметанным соусом.\",\n\n ],\n [\n \"name\" => \"Куриные котлеты\",\n \"image\" => \"\",\n \"category_id\" => \"2\",\n \"user_id\" => \"1\",\n \"description\" => \"Оригинальный рецепт куриных котлет со сливочным маслом, вмешанным в фарш.\",\n\n ],\n [\n \"name\" => \"Куриный бульон\",\n \"image\" => \"\",\n \"category_id\" => \"1\",\n \"user_id\" => \"1\",\n \"description\" => \"Как варить бульон из курицы, чтобы он был наваристым, но прозрачным, не слишком жирным и очень ароматным?\",\n\n ],\n [\n \"name\" => \"Уха\",\n \"image\" => \"\",\n \"category_id\" => \"1\",\n \"user_id\" => \"1\",\n \"description\" => \"Уха – русское национальное жидкое блюдо.\",\n\n ],\n [\n \"name\" => \"Оливье\",\n \"image\" => \"\",\n \"category_id\" => \"3\",\n \"user_id\" => \"1\",\n \"description\" => \"Салат оливье — король салатов. Любой мужчина скажет: нет салата оливье, значит, нет праздника.\",\n \n\n ],\n ];\n DB::table('recipes')->insert($recipe);\n }", "public function show(Recipe $recipe)\n {\n $recipe = Recipe::with([\n \"ingredientLists.ingredients\",\n \"ratings\",\n \"steps\",\n \"favorites\",\n \"tags\",\n \"user\",\n ])->find($recipe->id);\n return response()->json($recipe);\n }", "public function index()\n\t{\n\n\t\t$this->_crud->set_table('ent_cr_recipes');\n\t\t$this->_crud->set_subject('Recipe');\n\n\t\t/*\n\t\t * Setting relation betweent category & story table and accessing name field to use\n\t\t*/\n\t\t$this->_crud->set_relation('ent_cr_categories_id','ent_cr_categories','title');\n\n\t\t/*\n\t\t * Setting text to display for more readablity\n\t\t*/\n\t\t$this->_crud->display_as('ent_cr_categories_id','Recipe Category')\n\t\t->display_as('name', 'Name of recipe submitter')\n\t\t->display_as('title', 'Title of Recipe');\n\n\t\t/*\n\t\t * Defining fields that show on Add & Edit forms if you want different then use add_fields & edit_fields\n\t\t*/\n\t\t$this->_crud->fields('title', 'description', 'name', 'email', 'status','ent_cr_categories_id');\n\n\t\t/*\n\t\t * setting rules for the Grocery CRUD to look for\n\t\t*/\n\t\t$this->_crud->set_rules('email', 'Email of submitter', 'trim|valid_email');\n\n\t\t/*\n\t\t * Setting required field for CRUD operation, can also be replaced by set_rules method;\n\t\t* But most of the fields are requred, so this method is easier\n\t\t*/\n\t\t$this->_crud->required_fields('title', 'description', 'name', 'email', 'ent_cr_categories_id');\n\t\tstatic::$data['name'] = 'crud';\n\t\tstatic::$data['content_replace'] = $this->_crud->render();\n\n\t\t$this->_crud_output('main', static::$data);\n\t}", "public function detailedViewAction() {\n $recipeID = (int) $this->params()->fromRoute('recipeID');\n\n $difficulty = $this->getDifficultiesTable()->getDifficultyName($this->getRecipeTable()->getRecipe($recipeID)->difficultyID);\n //get all ingredient ids + amounts + weight unit ids associated with given recipe id\n $ingredientsOfRecipe = $this->getIngredientsOfRecipeTable()->getIngredientsForRecipe($recipeID);\n //we need another container for the elements returned by the DB, since Zend allows only one traversal of the returned set\n $ingredients = array();\n //declaration of containers for additional ingredient information (name, weight unit)\n $ingredientNames = array();\n $ingredientWeightUnits = array();\n //get all ingredient names for all ids\n foreach ($ingredientsOfRecipe as $ingredient) {\n $ingredients[$ingredient->ingredientID] = $ingredient;\n $ingredientID = $ingredient->ingredientID;\n $ingredientNames[$ingredientID] = $this->getIngredientTable()->getIngredientName($ingredientID);\n if (!isset($ingredientWeightUnits[$ingredient->weightUnitID])) {\n $ingredientWeightUnits[$ingredient->weightUnitID] = $this->getWeightUnitsTable()->getWeightUnitName($ingredient->weightUnitID);\n }\n }\n //give data to view\n return new ViewModel(array('recipe' => $this->getRecipeTable()->getRecipe($recipeID),\n 'difficulty' => $difficulty,\n 'ingredientsOfRecipe' => $ingredients, 'ingredientNames' => $ingredientNames,\n 'weightUnits' => $ingredientWeightUnits));\n }", "public function recipes()\n\t{\n\t\treturn $this->belongsToMany(Ingredient::class, 'recipe_ingredients', 'ingredient_id', 'recipe_id');\n\t}", "public function getRecipeList($title)\n {\n $client = new client();\n $response = $client->request('GET', 'https://spoonacular-recipe-food-nutrition-v1.p.rapidapi.com/recipes/search?number=10&offset=0&query='. $title, ['headers' => [\n 'X-RapidAPI-Key' => 'fce84bdd65msh9340789ab474c49p170d1ajsn3b7244498eac']]);\n\n if($response->getStatusCode() == 200){\n $contents = json_decode($response->getBody()->getContents());\n $recipeArrayID=[];\n $recipes = $contents->results;\n if(sizeof($recipes) > 0){\n $rec = [\"recipe\" => $recipes[0], \"baseURL\" => $contents->baseUri];\n // $rec = new class{};\n // $rec->recipe = $recipes[0]; \n // $rec->baseURL= $contents->baseUri;\n\n return $rec;\n }else{\n return null;\n }\n }else{ \n return null;\n }\n }", "public function getIngredientsById($r_id)\r\n {\r\n require 'database.php';\r\n $sql = \"SELECT i.ingredient, i.amount, m.measurements FROM `ingredients` AS i LEFT JOIN measurement AS m ON m.id = i.measurement WHERE i.recipe_id = $r_id\";\r\n $output = $DB_con->query($sql);\r\n foreach ($output as $outputs) {\r\n echo \"<p>\" . $outputs['ingredient'] . \" \" . $outputs['amount'] . \" \". $outputs['measurements'] . \"</p>\";\r\n \r\n \r\n }\r\n }", "public function index()\n {\n return $this->user->recipeLists()->get(['title', 'id']);\n }", "public function getRecipes(){\n\t\t$cache = Zend_Registry::get('cache');\n\t\t// see if product - list is already in cache\n\t\tif(!$recipes = $cache->load('recipesByManufacturerId'.$this->id)) {\n\t\t\t$recipes = array();\n\t\t\tif(is_array($this->getProducts())){\n\t\t\t\tforeach ($this->getProducts() as $product){\n\t\t\t\t\t$componentsArray = Website_Model_Component::componentsByIngredientId($product->getIngredient()->id);\n\t\t\t\t\tif(is_array($componentsArray)){\n\t\t\t\t\t\tforeach ($componentsArray as $component){\n\t\t\t\t\t\t\t$recipes[$component->recipeId] = Website_Model_CbFactory::factory('Website_Model_Recipe',$component->recipeId);\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$cache->save($recipes,'recipesByManufacturerId'.$this->id,array('model'));\n\t\t}\n\t\treturn $recipes;\n\t}", "public function recipes()\n {\n return $this->belongsToMany(Recipe::class);\n }", "public function index()\n {\n $recipes = Recipe::with([\n \"ingredientLists.ingredients\",\n \"ratings\",\n \"steps\",\n \"favorites\",\n \"tags\",\n \"user\",\n ])->get();\n return response()->json($recipes);\n }", "public function allRecipes()\r\n {\r\n $recipes = DB::table('recipes')\r\n ->where('odobren', '=', '1')\r\n ->orderBy('created_at', 'desc')\r\n ->paginate(6);\r\n return view('allrecipes', compact('recipes'));\r\n }", "public static function all() {\n\n $query = DB::connection()->prepare('SELECT * FROM Ruokalaji');\n $query->execute();\n\n $rows = $query->fetchAll();\n\n $recipes = array();\n\n foreach ($rows as $row) {\n $recipes[] = new Recipe(array(\n 'id' => $row['id'],\n 'kayttaja' => $row['kayttaja'],\n 'nimi' => $row['nimi'],\n 'ateriatyyppi' => $row['ateriatyyppi'],\n 'paaraaka_aine' => $row['paaraaka_aine'],\n 'vaikeustaso' => $row['vaikeustaso'],\n 'valmistusaika' => $row['valmistusaika'],\n 'resepti' => $row['resepti']\n ));\n }\n\n return $recipes;\n }", "public function getRecipeName(){\r\n return $this->recipeName;\r\n }", "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 findRecipeByName($name){\n\n $query = $this->db->prepare('SELECT * FROM recipes WHERE name = ?');\n $query->bind_param(\"s\", $name);\n if(!$query->execute()){\n return NULL;\n }\n $result = $query->get_result();\n\n if(!$result || !$result->num_rows){\n return NULL;\n }\n $recipeRow = $result->fetch_assoc();\n $recipe = $this->recipeFactory->make($recipeRow);\n\n return $recipe;\n }", "public function get_recipes( $page = 0 ) {\n\t\t$recipes = array();\n\n\t\tglobal $wpdb;\n\t\t$table = $wpdb->prefix . 'mv_creations';\n\n\t\t$mv_recipes = array();\n\t\tif ( $table === $wpdb->get_var( \"SHOW TABLES LIKE '$table'\" ) ) {\n\t\t\t$mv_recipes = $wpdb->get_results( 'SELECT id, object_id, title, type FROM ' . $table . ' WHERE type IN (\"recipe\",\"diy\")' );\n\t\t}\n\n\t\tforeach ( $mv_recipes as $mv_recipe ) {\n\t\t\tif ( WPRM_POST_TYPE !== get_post_type( $mv_recipe->object_id ) ) {\n\t\t\t\t$recipes[ $mv_recipe->id ] = array(\n\t\t\t\t\t'name' => $mv_recipe->title,\n\t\t\t\t\t'url' => admin_url( 'post.php?action=edit&id=' . intval( $mv_recipe->id ) . '&post=' . intval( $mv_recipe->object_id ) . '&post_type=mv_create&type=' . urlencode( $mv_recipe->type ) ),\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn $recipes;\n\t}", "private function readRecipeData() {\n $data = file_get_contents(__DIR__ . '/../../../src/app/Recipe/data.json'); \n $arr_data = json_decode($data);\n\n return $arr_data; \n }", "public function run()\n {\n $now = Carbon::now();\n DB::table( 'recipes' )->insert( [\n 'user_id' => '2',\n 'name' => 'Grilled Cheese Sandwich',\n 'description' => 'This is a recipe for a basic grilled cheese sandwich.',\n 'source' => 'Patrick',\n 'prep_time' => '5',\n 'cook_time' => '5',\n 'servings' => '1',\n 'serving_size' => 'sandwich',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n\n DB::table( 'ingredients' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '1',\n 'name' => '2 slices of bread',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'ingredients' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '2',\n 'name' => '2 slices of pre-packaged cheese singles',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'ingredients' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '3',\n 'name' => '3 tablespoons of buttery spread',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '1',\n 'name' => 'Pre-heat griddle or pan to medium heat.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '2',\n 'name' => 'Spread butter on one side of each slice of bread.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '3',\n 'name' => 'When cooking surface is hot, place one slice of bread butter-side down on surface.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '4',\n 'name' => 'Place two cheese slices on the toasting bread and place 2nd slice of bread, butter side up, on top.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '5',\n 'name' => 'When bottom bread is browned nicely (golden color), flip sandwich over so top-butter is now down on the cooking surface.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '6',\n 'name' => 'Let sandwich cook until the 2nd side is browned.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n DB::table( 'directions' )->insert( [\n 'recipe_id' => '1',\n 'order_number' => '7',\n 'name' => 'Remove sandwich from heat and serve immediately.',\n 'created_at' => $now->format( 'Y-m-d H:i:s' ),\n 'updated_at' => $now->format( 'Y-m-d H:i:s' ),\n ] );\n }", "public function recipes(): \\Illuminate\\Database\\Eloquent\\Relations\\HasMany\n {\n return $this->hasMany('App\\Models\\Recipe', 'user_id');\n }", "public function addAction(){\n\t\t$recipe = new Recipe();\n\t\t\n\t\t//adding meal\n\t\tif ($this->_request->isPost()) {\n\t\n\t\t\t$data = $this->_validateRecipe();\n\t\t\t//if no errors validating fields add recipe\n\t\t\tif ($this->view->errorMsg == null) {\n\t\t\t\t//make sure recipe with this name does not already exist\n\t\t\t\t$where = array(\n\t\t\t\t\t$recipe->getAdapter()->quoteInto('user_id = ?', $this->session->user_id),\n\t\t\t\t\t$recipe->getAdapter()->quoteInto('title = ?', $data['recipe']['title']),\n\t\t\t\t\t'status is null'\n\t\t\t\t);\n\t\t\t\t$recipe_row = $recipe->fetchRow($where);\n\t\t\t\tif($recipe_row != null){\n\t\t\t\t\t$this->view->errorMsg = 'Meal \"'.$data['recipe']['title'].'\" already exists, please use a different title.';\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t\t//add recipe\n\t\t\t\t\t$recipe_id = $recipe->insert($data['recipe']);\n\t\t\t\t\t$recipe->recipe_id = $recipe_id;\n\t\t\t\t\t\n\t\t\t\t\t//add ingredients and quantities\n\t\t\t\t\t$this->_saveRecipexQuantityxIngredient($recipe_id, $data); \n\t\t\n\t\t\t\t\t//if successful, redirect to meals page\n\t\t\t\t \t$this->_redirect($this->baseUrl.'/meals');\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t$this->view->recipe_data = $data;\t\t\n\t\t}\n\t\n\n\t\t//populate amounts and ingredients for autocomplete textfields (COPY&PASTE = YUCK!)\n \t$ingredient_arr = array();\n \t$ingredient = new Ingredient();\n \t\n\t\t//$ingredient_rs = $ingredient->fetchAll();\n\t\t//select only ingredients of a single user\n\t\t$select = $ingredient->select()->setIntegrityCheck(false);\n\t\t$select\n\t\t\t->distinct()\n\t\t\t->from('ingredient')\n\t\t\t->join('recipexquantityxingredient', 'ingredient.ingredient_id = recipexquantityxingredient.ingredient_id', array()) //empty array will choose no columns from the joined table\n\t\t\t->join('recipe', 'recipexquantityxingredient.recipe_id = recipe.recipe_id', array())\n\t\t\t->join('user', 'recipe.user_id = user.user_id', array())\n\t\t\t->where(\"user.user_id = '\".$this->session->user_id.\"'\");\n\t\t$ingredient_rs = $ingredient->fetchAll($select);\n\t\t\n\t\t$i = 0;\n\t\twhile($ingredient_rs->valid()){\n\t\t\t$ingredient = $ingredient_rs->current();\n\t\t\t$ingredient_arr[$i] = $ingredient->name;\n\t\t\t$i++;\n\t\t\t$ingredient_rs->next();\n\t\t}\n \t$this->view->ingredient_data = $ingredient_arr;\n\t\n \t$amount_arr = array();\n \t$quantity = new Quantity();\n \t//select only quantities of a single user\n \t//$quantity_rs = $quantity->fetchAll();\n \t$select = $quantity->select()->setIntegrityCheck(false);\n \t$select\n \t->distinct()\n \t->from('quantity')\n \t->join('recipexquantityxingredient', 'quantity.quantity_id = recipexquantityxingredient.quantity_id', array()) //empty array will choose no columns from the joined table\n \t->join('recipe', 'recipexquantityxingredient.recipe_id = recipe.recipe_id', array())\n \t->join('user', 'recipe.user_id = user.user_id', array())\n \t->where(\"user.user_id = '\".$this->session->user_id.\"'\");\n \t$quantity_rs = $quantity->fetchAll($select);\n \t\n\t\t$i = 0;\n\t\twhile($quantity_rs->valid()){\n\t\t\t$amount = $quantity_rs->current();\n\t\t\tif($amount->measure != null) $amount_arr[$i] = $this->_convertd2f($amount->amount).' '.$amount->measure;\n\t\t\telse $amount_arr[$i] = $amount->amount;\n\t\t\t$i++;\n\t\t\t$quantity_rs->next();\n\t\t}\n \t$this->view->amount_data = $amount_arr;\n \t\n \t\n \t\n \t// additional view fields required by form\n\t\t$this->view->action = 'add';\n }", "public function index()\n {\n $recipes = Recipe::select('id', 'name', 'description')->get();\n\n return view('pages.recipe.show_recipes', compact('recipes'));\n }", "public function createNewRecipe($data) {\n // Get id of new recipe\n $this->db->query('SELECT rid FROM recipes WHERE rid=(SELECT MAX(rid) FROM recipes)');\n $this->db->execute();\n $row = $this->db->single();\n // Increment recipe id\n $newRecipeID = $row->rid + 1;\n\n // Upload image and return path\n $imgPath = $this->uploadImage($newRecipeID, $data['uid'], $data['img']);\n\n // Prepare sql query for new recipe entry\n $this->db->query('INSERT INTO recipes (rid,title,ownerid,description,prepTime,servingSize,imagePath,link) VALUES(:rid,:title,:uid,:description,:prepTime,:servingSize,:imagePath,:link);');\n // Bind values for prepared statement\n $this->db->bind(':rid', $newRecipeID);\n $this->db->bind(':uid', $data['uid']);\n $this->db->bind(':title', $data['title']);\n $this->db->bind(':description', $data['description']);\n $this->db->bind(':prepTime', $data['prepTime']);\n $this->db->bind(':servingSize', $data['servingSize']);\n $this->db->bind(':imagePath', $imgPath);\n $this->db->bind(':link', $data['link']);\n // Execute query\n try {\n $this->db->execute();\n } catch (PDOException $e) {\n echo '</br>FAILED recipe: ' . $e->getMessage() . '</br>';\n return false;\n }\n\n // Insert ingredients\n $ingredQueryArray = $this->convertIngredientsFormat($newRecipeID, $data['ingredients']);\n $ingredQueryString = 'INSERT INTO ingredients (rid,ingredientid,value) VALUES ' . implode(\", \", $ingredQueryArray) . ';';\n // echo $ingredQueryString;\n $this->db->query($ingredQueryString);\n // Bind all values in ingredients query\n for($i = 0; $i < count($ingredQueryArray); $i++) {\n $this->db->bind(':value' . ($i + 1), $data['ingredients'][$i]);\n }\n // Execute query\n try {\n $this->db->execute();\n } catch (PDOException $e) {\n echo '</br>FAILED ingredients: ' . $e->getMessage() . '</br>';\n return false;\n }\n\n // Insert directions\n $direcQueryArray = $this->convertDirectionsFormat($newRecipeID, $data['directions']);\n $direcQueryString = 'INSERT INTO directions (rid,stepNum,description) VALUES ' . implode(\", \", $direcQueryArray) . ';';\n // echo $direcQueryString;\n $this->db->query($direcQueryString);\n // Bind all values in ingredients query\n for($i = 0; $i < count($direcQueryArray); $i++) {\n $this->db->bind(':value' . ($i + 1), $data['directions'][$i]);\n }\n // Execute query\n try {\n $this->db->execute();\n } catch (PDOException $e) {\n echo '</br>FAILED directions: ' . $e->getMessage() . '</br>';\n return false;\n }\n\n return true;\n }", "public function actionRecipesForTag()\n {\n $recipes = RecipeDao::findAll([\"idTag\" => SiteUtil::getUrlParameters()[2]]);\n echo json_encode($this->recipesToArray($recipes));\n }", "public function show(Recipe $recipe)\n {\n return view('recipes', compact('recipe'));\n }", "public function show($id)\n {\n\n $recipe = Recipe::find($id);\n if(!$recipe)\n {\n\n return response()->json(\"'message':'resource not found'\", 404)\n ->header('Content-Type', 'application/json');\n\n }\n else{\n\n return new RecipeResource( $recipe );\n }\n\n }", "public function editAction(){\n\t\t$recipe = new Recipe();\n\t\t\n\t\t//updating the meal\n\t\tif ($this->_request->isPost()) {\n\t\n\t\t\t$data = $this->_validateRecipe();\n\t\t\t//if no errors validating fields add recipe\n\t\t\tif ($this->view->errorMsg == null) {\n\t\t\t\t$recipe_id = $this->_request->getPost('recipe_idTF');\n\t\t\t\t\n\t\t\t\t//make sure recipe with this name does not already exist\n\t\t\t\t$where = array(\n\t\t\t\t\t$recipe->getAdapter()->quoteInto('user_id = ?', $this->session->user_id),\n\t\t\t\t\t$recipe->getAdapter()->quoteInto('recipe_id != ?', $recipe_id),\n\t\t\t\t\t$recipe->getAdapter()->quoteInto('title = ?', $data['recipe']['title']),\n\t\t\t\t\t'status is null'\n\t\t\t\t); \n\t\t\t\t$recipe_row = $recipe->fetchRow($where);\n\t\t\t\tif($recipe_row != null){\n\t\t\t\t\t$this->view->errorMsg = 'Meal \"'.$data['recipe']['title'].'\" already exists, please use a different title.';\n\t\t\t\t\t$data['recipe']['recipe_id'] = $recipe_id;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//update recipe\n\t\t\t\t\t$where = $recipe->getAdapter()->quoteInto('recipe_id = ?', $recipe_id);\n\t\t\t\t\t$recipe->update($data['recipe'], $where);\n\t\n\t\t\t\t\t//delete old recipexquantityxingredients\n\t\t\t\t\t$rxqxi = new RecipexQuantityxIngredient();\n\t\t\t\t\t$where = $rxqxi->getAdapter()->quoteInto('recipe_id = ?', $recipe_id);\n\t\t\t\t\t$rxqxi->delete($where);\n\t\t\t\t\t\n\t\t\t\t\t$this->_saveRecipexQuantityxIngredient($recipe_id, $data);\n\t\t\n\t\t\t\t\t//if successful, redirect to main page\n\t\t\t\t \t$this->_redirect($this->baseUrl.'/meals');\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t$this->view->recipe_data = $data;\t\t\n\t\t}\n\t\t//get meal to display in edit form\n\t\telse{\n\t\t\t$filter = new Zend_Filter_StripTags();\n\t\t\t$id = trim($filter->filter($this->_request->getQuery('id')));\n\t\t\tif($id != null){\n\t\t\t\t$where = $recipe->getAdapter()->quoteInto('recipe_id = ?', $id);\n\t\t\t\t$row = $recipe->fetchRow($where);\n\t\t\n\t\t\t\t$data = $this->_getRecipe($row);\n\t\t\t\t$this->view->recipe_data = $data;\n\t\t\n\t\t\t}\n\t\t}\n\t\n\n\t\t//populate amounts and ingredients for autocomplete textfields (COPY&PASTE = YUCK!)\n \t$ingredient_arr = array();\n \t$ingredient = new Ingredient();\n\t\t$ingredient_rs = $ingredient->fetchAll();\n\t\t$i = 0;\n\t\twhile($ingredient_rs->valid()){\n\t\t\t$ingredient = $ingredient_rs->current();\n\t\t\t$ingredient_arr[$i] = $ingredient->name;\n\t\t\t$i++;\n\t\t\t$ingredient_rs->next();\n\t\t}\n \t$this->view->ingredient_data = $ingredient_arr;\n\t\n \t$amount_arr = array();\n \t$quantity = new Quantity();\n\t\t$quantity_rs = $quantity->fetchAll();\n\t\t$i = 0;\n\t\twhile($ingredient_rs->valid()){\n\t\t\t$amount = $quantity_rs->current();\n\t\t\tif($amount->measure != null) $amount_arr[$i] = $this->_convertd2f($amount->amount).' '.$amount->measure;\n\t\t\telse $amount_arr[$i] = $amount->amount;\n\t\t\t$i++;\n\t\t\t$quantity_rs->next();\n\t\t}\n \t$this->view->amount_data = $amount_arr;\n \t\n \t\n \t\n \t// additional view fields required by form\n\t\t$this->view->action = 'edit';\n\t\t$this->_helper->viewRenderer->setNoRender();\n\t\t$this->render('add');\n }", "public function setRecipe($var)\n {\n GPBUtil::checkMessage($var, \\Grafeas\\V1\\Recipe::class);\n $this->recipe = $var;\n\n return $this;\n }", "public function recipeingredients(){\n return $this->hasMany(RecipeIngredient::class);\n }", "public function show($id)\n {\n $recipe = $this->kitchenRecipeRepository->getRecipe($id);\n $quantity = $this->kitchenIngredientKitchenRecipeRepository->getQuantitiesForIngredients($id);\n return view('kitchen.admin.recipes.show', compact('recipe', 'quantity'));\n }", "public function index()\n {\n return IngredientResource::collection(Ingredient::all());\n }", "public function fetchOneById( int $id)\n\t{\n return $this->db->fetchAssoc(\"SELECT * FROM recipe WHERE id=?\", [(int) $id]);\n\t}", "public function download($recipeID = null) {\n // Redirect to recipe search page (default) if no recipe id is provided\n if($recipeID == null) {\n redirect('pdf');\n }\n\n // Get recipe data\n $recipe = $this->recipesModel->getRecipeData($recipeID);\n\n // If recipe does not exist redirect to search page\n if($recipe == null) {\n redirect('pdf');\n }\n\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n // set document information\n $pdf->SetAuthor('TheRecipesProject');\n $pdf->SetTitle($recipe->title);\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_RIGHT);\n $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n $pdf->AddPage();\n $html = '<h1 style=\"text-align:center\">'.$recipe->title.'</h1>\n <p style=\"text-align:center\">Author: '.$recipe->ownerid.'</p>\n <img src=\"'.URLROOT.'/img'.$recipe->imagePath.'\" style=\"text-align:center;object-fit:cover;height: 200px; max-width: 90%;\" alt=\"Recipe Preview Image Here\">\n <h4>Description: </h4><p>'.$recipe->description.'</p>\n <h4>Preparation Time: </h4><p>'.$recipe->prepTime.'</p>\n <h4>Serving Size: </h4><p>'.$recipe->servingSize.'</p>\n <h4>Ingredients: </h4><ul>';\n foreach($recipe->ingredients as $item) {\n $html = $html . '<li><p>' . $item['value'] . '</p></li>';\n }\n $html = $html.'</ul><h4>Directions: </h4><ol>';\n foreach($recipe->directions as $item) {\n $html = $html . '<li><p>' . $item['description'] . '</p></li>';\n }\n $html = $html.'</ol>';\n\n\n // writeHTML($html, $ln=true, $fill=false, $reseth=false, $cell=false, $align='')\n $pdf->writeHTML($html, true, false, true, false);\n\n // Output to screen for view/download\n ob_end_clean();\n $pdf->Output('hello_world.pdf'); \n }", "public function index()\n {\n $recipes = Recipe::all()->load('ingredients');\n\n return view('recipe.index', compact('recipes'));\n }", "public function run()\n {\n DB::table('countries')->truncate();\n DB::table('ingredients')->truncate();\n DB::table('facts')->truncate();\n DB::table('recipes')->truncate();\n DB::table('ingredient_recipe')->truncate();\n DB::table('country_recipe')->truncate();\n\n //data from file DataProvider.php (same folder) => if you want to add recipes to seeder go there\n $data_recipes = DataProvider::getRecipes();\n $countries = DataProvider::getCountries();\n\n //this fills DB with Countries\n foreach ($countries as $iteration) {\n $country = new Country;\n $country->name = $iteration[\"name\"];\n $country->flag = strtolower($iteration[\"flag\"]);\n $country->save();\n }\n\n\n //fill DB with recipes from array $data_recipes\n foreach ($data_recipes as $food) {\n $recipe = new Recipe;\n\n $recipe->name = $food[\"name\"];\n $recipe->instructions = $food[\"instructions\"];\n $recipe->image = $food[\"image\"];\n $recipe->isVegan = $food[\"isVegan\"];\n $recipe->isVegetarian = $food[\"isVegetarian\"];\n $recipe->isLactoseFree = $food[\"isLactoseFree\"];\n $recipe->isGlutenFree = $food[\"isGlutenFree\"];\n $recipe->isNutFree = $food[\"isNutFree\"];\n $recipe->save();\n\n foreach ($food[\"countries\"] as $coun) {\n //we need to get country ID to save it to recipe_coutry table\n $country_generated = Country::where(\"name\", $coun)->first();\n $recipe->countries()->attach($country_generated->id);\n }\n\n foreach ($food[\"ingredients\"] as $ingr) {\n //we need to know if the ingredient is already in the DB if not, it is stored\n $ingredient_generated = Ingredient::where(\"name\", $ingr[2])->first();\n if (!$ingredient_generated) {\n $ingredient = new Ingredient;\n $ingredient->name = $ingr[2];\n $ingredient->save();\n } else {\n $ingredient = $ingredient_generated;\n $ingredient->save();\n }\n\n\n //actually filling the intermediate table ingredient_recipe (notice syntax in attach() method)\n $recipe->ingredients()->attach($ingredient->id, [\"quantity\" => $ingr[0], \"measurement\" => $ingr[1]]);\n }\n }\n }", "function getAllRecipes(){\n\t $list = @mysql_query(\"SELECT * FROM Recipes\");\n\t $array = array();\n\t\t$i = 0;\n\t while($row = @mysql_fetch_assoc($list)) \n\t { \n\t\t $recipeid = $row['RecipeID'];\n\t\t $recipename = mysql_fetch_assoc(@mysql_query(\"SELECT RecipeName FROM Recipes WHERE '$recipeid' = RecipeID\"));\n\t\t $name = $recipename['RecipeName'] ;\t\n\t\t $array[$i] = $name ;\n\t\t \t$i = $i+1;\n\t }\n\t return json_encode($array);\n\t}", "public function view_ingredients($id) {\n //permittedArea();\n $data['view_assistant'] = $this->db->get_where('product_ingredients', ['product_preparation' => $id]);\n theme('view_ingredients', $data);\n }", "public function url()\n {\n return '/recipe/' . $this->recipe->getKey();\n }", "public function fetchRating( int $recipe_id)\n\t{\n return $this->db->fetchAll(\"SELECT * from rating WHERE recipe_id =?\",[$recipe_id]);\n\t}", "public function run()\n {\n // recipe 1\n App\\Recipe::create([\n 'title' => 'ジンバック',\n 'body' => 'さっぱりしていて美味しい',\n 'image' => '/storage/testdata/ジンバック.jpg',\n 'user_id' => 2,\n 'created_at' => Carbon::now()->subDays(32),\n 'updated_at' => Carbon::now()->subDays(32),\n ]);\n // recipe 2\n App\\Recipe::create([\n 'title' => 'ブラックルシアン',\n 'body' => 'めちゃ甘い',\n 'image' => '/storage/testdata/ブラックルシアン.jpg',\n 'user_id' => 1,\n 'created_at' => Carbon::now()->subDays(32),\n 'updated_at' => Carbon::now()->subDays(32),\n ]);\n // recipe 3\n App\\Recipe::create([\n 'title' => 'チャールストンソーダ',\n 'body' => '名前がオシャレ',\n 'image' => '/storage/testdata/チャールストンソーダ.jpg',\n 'user_id' => 1,\n 'created_at' => Carbon::now()->subDays(32),\n 'updated_at' => Carbon::now()->subDays(32),\n ]);\n // recipe 4\n App\\Recipe::create([\n 'title' => 'ジムハイボール',\n 'body' => '王道なハイボール',\n 'image' => '/storage/testdata/ジムハイボール.jpg',\n 'user_id' => 1,\n 'created_at' => Carbon::now()->subDays(32),\n 'updated_at' => Carbon::now()->subDays(32),\n ]);\n // recipe 5\n App\\Recipe::create([\n 'title' => 'グリーンアイズ',\n 'body' => '南国の風味がする夏向きカクテル。メロンリキュールとラムの香りのハーモニー、パイナップルの酸味とココナッツミルクの滑らかな口当たり。メロンリキュール界の革命児カワサキによる革新的(kawasaki SuperEdition)',\n 'image' => '/storage/testdata/グリーンアイズ.jpg',\n 'user_id' => 1,\n 'created_at' => Carbon::now()->subDays(32),\n 'updated_at' => Carbon::now(),\n ]);\n // recipe 6\n App\\Recipe::create([\n 'title' => 'カルーアミルク',\n 'body' => 'コーヒーミルクのようなカクテル',\n 'image' => '/storage/testdata/カルーアミルク.jpg',\n 'user_id' => 1,\n 'created_at' => Carbon::now()->subDays(32),\n 'updated_at' => Carbon::now(),\n ]);\n // recipe 7\n App\\Recipe::create([\n 'title' => 'アイスの実の革命',\n 'body' => 'カクテルカラフルで見ていて楽しくなります',\n 'image' => '/storage/testdata/ice.jpg',\n 'user_id' => 1,\n 'created_at' => Carbon::now()->subDays(32),\n 'updated_at' => Carbon::now()->subDays(32),\n ]);\n }", "public function index()\r\n {\r\n \r\n $user_id = Auth::user()->id;\r\n $user = User::find($user_id);\r\n \r\n $recipes = $user->recipes('recipes')->paginate(6);\r\n \r\n return view('recipes.index', compact('recipes'));\r\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $recipes = $em->getRepository('AppBundle:Recipe')->findAll();\n\n return $this->render('recipe/index.html.twig', array(\n 'recipes' => $recipes,\n ));\n }", "public function show($id)\r\n {\r\n $recipe = Recipe::find($id);\r\n \r\n return view('recipes.show')->with('recipe', $recipe);\r\n \r\n }", "function viewIngredient(){\n $id=$_REQUEST['id'];\n include(\"../model/ingredient.php\");\n $obj=new ingredient();\n\n if($obj->getIngredients($id)) {\n $row=$obj->fetch();\n echo '{\"result\":1,\"ingredients\":[';\n while($row){\n echo json_encode($row);\n $row=$obj->fetch();\n if($row){\n echo \",\";\n }\n }\n echo \"]}\";\n }\n else {\n echo '{\"result\":0}';\n }\n }", "public function recipes() {\n \treturn $this->belongsToMany(Recipe::class)->withTimeStamps();\n }" ]
[ "0.72815096", "0.6678432", "0.6666", "0.6651838", "0.66270787", "0.65889823", "0.6573823", "0.64760685", "0.6463381", "0.6447894", "0.6447776", "0.6377795", "0.63392663", "0.6329324", "0.63073057", "0.62929434", "0.6263412", "0.62192386", "0.62191653", "0.6193134", "0.61678135", "0.616702", "0.61551964", "0.61391515", "0.61221737", "0.6122056", "0.61210495", "0.6118222", "0.61135113", "0.61114913", "0.6099831", "0.6096198", "0.60860056", "0.60860056", "0.60713375", "0.60565495", "0.60550463", "0.6034138", "0.6020054", "0.59817404", "0.59795344", "0.5969793", "0.58981085", "0.5897974", "0.5861009", "0.5860947", "0.58547354", "0.5840432", "0.58156717", "0.58059156", "0.5804057", "0.5798827", "0.57851774", "0.57620037", "0.57618165", "0.57510006", "0.5738987", "0.5704106", "0.56878567", "0.5676244", "0.5675258", "0.56547177", "0.5643667", "0.564322", "0.563944", "0.56312525", "0.56259364", "0.56128216", "0.56104964", "0.5606398", "0.5599278", "0.55939704", "0.55893517", "0.55596256", "0.5538093", "0.55162156", "0.5498951", "0.54884094", "0.54735655", "0.5472031", "0.54717594", "0.54659456", "0.54590404", "0.54390025", "0.54309386", "0.54295075", "0.5428851", "0.5400109", "0.5397182", "0.53956497", "0.5384326", "0.5378142", "0.5357432", "0.53478146", "0.5346061", "0.5333842", "0.5327116", "0.53102094", "0.5292858", "0.52879786" ]
0.6628436
4
Returns recipes title and description containing keywords specified by query string
public function searchRecipes($query) { $query = '%'.$query.'%'; $this->db->query('SELECT * FROM recipes WHERE ( title LIKE ? OR description LIKE ? )'); $this->db->bind(1, $query); $this->db->bind(2, $query); return $this->db->resultSet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function searchRecipesTitle($query) {\n $query = '%'.$query.'%';\n $this->db->query('SELECT * FROM recipes WHERE ( title LIKE ? )');\n $this->db->bind(1, $query);\n return $this->db->resultSet();\n }", "public function index() {\n $count = Configure::read('number_of_search_results');\n\n //Get the query param q from the server\n $keyword = $_GET['q'];\n\n //Search for the recipes using the keyword\n $recipes = $this->Yummly->recipes($keyword, $count);\n\n $this->set(array(\n 'title_for_layout' => 'ChefMemo - Recipes of ' . $keyword,\n 'keyword' => $keyword,\n 'recipes' => $recipes\n ));\n\n }", "function searchRecipe($text=false){\n\t\t$filter=false;\n\t\tif($text!=false){\n\t\t\t$filter=\"Name like '%$text%'\";\n\t\t}\n\t\t\n\t\treturn $this->getRecipe($filter);\n\t}", "abstract function getKeywords();", "public function getRecipeList($title)\n {\n $client = new client();\n $response = $client->request('GET', 'https://spoonacular-recipe-food-nutrition-v1.p.rapidapi.com/recipes/search?number=10&offset=0&query='. $title, ['headers' => [\n 'X-RapidAPI-Key' => 'fce84bdd65msh9340789ab474c49p170d1ajsn3b7244498eac']]);\n\n if($response->getStatusCode() == 200){\n $contents = json_decode($response->getBody()->getContents());\n $recipeArrayID=[];\n $recipes = $contents->results;\n if(sizeof($recipes) > 0){\n $rec = [\"recipe\" => $recipes[0], \"baseURL\" => $contents->baseUri];\n // $rec = new class{};\n // $rec->recipe = $recipes[0]; \n // $rec->baseURL= $contents->baseUri;\n\n return $rec;\n }else{\n return null;\n }\n }else{ \n return null;\n }\n }", "public function search(){\r\n\t\t//Test if the POST parameters exist. If they don't present the user with the\r\n\t\t//search controls/form\r\n\t\tif(!isset($_POST[\"search\"])){\r\n\t\t\t$this->template->display('search.html.php');\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//Get the recipe from the database\r\n\t\t$recipes = Recipe::search($_POST[\"search\"]);\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\t$this->template->recipes = $recipes;\r\n\t\r\n\t\t$this->template->display('results.html.php');\r\n\t}", "public function getRecipeByName($searchTerm)\n {\n \n $db = getAdapter(); \n $statement = $db->createStatement(\"SELECT * FROM Recipe WHERE recipeName LIKE '%\".$searchTerm.\"%'\");\n $result = $statement->execute();\n $rowset = new ResultSet;\n $rowset->initialize($result); \n return $rowset; \n }", "public function getKeywords();", "protected static function GET_search(array $params) {\n\t\tif($search = trim(array_shift($params))) {\n\t\t\tif($db = self::RequireLatestDatabase())\n\t\t\t\tif($select = $db->prepare('select id, name, lastServed, complexity from recipe where name like concat(\\'%\\',?,\\'%\\') order by not name like concat(?,\\'%\\'), name'))\n\t\t\t\t\tif($select->bind_param('ss', $search, $search))\n\t\t\t\t\t\tif($select->execute()) {\n\t\t\t\t\t\t\t$recipe = new Row();\n\t\t\t\t\t\t\tif($select->bind_result($recipe->id, $recipe->name, $recipe->lastServed, $recipe->complexity)) {\n\t\t\t\t\t\t\t\t$recipes = [];\n\t\t\t\t\t\t\t\twhile($select->fetch())\n\t\t\t\t\t\t\t\t\t$recipes[] = $recipe->dupe();\n\t\t\t\t\t\t\t\tself::Success($recipes);\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\tself::DatabaseError('Error binding results from recipe search', $select);\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\tself::DatabaseError('Error searching recipes', $select);\n\t\t\t\t\telse\n\t\t\t\t\t\tself::DatabaseError('Error binding parameters to search recipes', $select);\n\t\t\t\telse\n\t\t\t\t\tself::DatabaseError('Error preparing to search recipes', $db);\n\t\t} else\n\t\t\tself::GET_list(); // no search parameters means we list everything\n\t}", "function searchRecipes($search_term, $category='all')\r\n {\r\n //add wildcards to search\r\n $search_term = '%' . $search_term . '%';\r\n //search all categories\r\n if($category == 'all') {\r\n //define query\r\n $query = \"SELECT * FROM recipe\r\n WHERE (title LIKE :search\r\n OR description LIKE :search\r\n OR ingredients LIKE :search\r\n OR instructions LIKE :search\r\n OR time LIKE :search)\r\n ORDER BY date_created DESC\";\r\n\r\n //prepare statement\r\n $statement = $this->_db->prepare($query);\r\n\r\n //bind parameter\r\n $statement->bindParam(':search', $search_term, PDO::PARAM_STR);\r\n }\r\n //search category supplied\r\n else {\r\n //define query\r\n $query = \"SELECT * FROM recipe\r\n WHERE (category = :category)\r\n AND (title LIKE :search\r\n OR description LIKE :search\r\n OR ingredients LIKE :search\r\n OR instructions LIKE :search\r\n OR time LIKE :search)\r\n ORDER BY date_created DESC\";\r\n\r\n //prepare statement\r\n $statement = $this->_db->prepare($query);\r\n\r\n //bind parameters\r\n $statement->bindParam(':category', $category, PDO::PARAM_STR);\r\n $statement->bindParam(':search', $search_term, PDO::PARAM_STR);\r\n }\r\n\r\n //execute\r\n $statement->execute();\r\n\r\n //get result\r\n $result = $statement->fetchAll(PDO::FETCH_ASSOC);\r\n return $result;\r\n }", "function h_keywords($cat_id){\r\n\t\r\n\t\tconnect(); \r\n\t\t\t$cp_id = clean_input($cat_id);\r\n\t\t\t\r\n\t\t\r\n\t\t\t//\r\n\t\t\tif(!empty($_GET['cat_id'])){ \r\n\t\t\t\t$xyquery = \"SELECT cat_desc_long FROM categories WHERE cat_id = '$cp_id'\";\r\n\t\t\t\t$xyresult = mysql_query($xyquery) or die(mysql_error());\r\n\t\t\t\tlist($cat_desc_long)= mysql_fetch_row($xyresult);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t$heading = $cat_desc_long;\r\n\t\t\t$heading2 = explode('<h2>',$heading);\r\n\t\t\t$heading2 = explode('</h2>', $heading2[1]);\r\n\t\t\t\r\n\t\t\t\tif(!empty($heading2[0])) echo \",\".$heading2[0];\r\n\t\t\t$heading = $cat_desc_long;\r\n\t\t\t$heading3 = explode('<h1>',$heading);\r\n\t\t\t$heading3 = explode('</h1>', $heading3[1]);\r\n\t\t\t\r\n\t\t\t\tif(!empty($heading3[0])) echo \",\".$heading3[0];\r\n\t\t\t$heading = $cat_desc_long;\r\n\t\t\t$heading4 = explode('<h3>',$heading);\r\n\t\t\t$heading4 = explode('</h3>', $heading4[1]);\r\n\t\t\t\r\n\t\t\t\tif(!empty($heading4[0])) echo \",\".$heading4[0];\t\r\n\t\t\t\t\r\n\t\t}", "public function getMetaKeywords();", "public function getRecipeByNameAndDuration($searchTerm, $duration)\n {\n $db = getAdapter(); \n $statement = $db->createStatement(\"SELECT * FROM Recipe WHERE recipeName LIKE '%\".$searchTerm.\"%' AND duration <=\".$duration);\n $result = $statement->execute();\n $rowset = new ResultSet;\n $rowset->initialize($result);\n \n return $rowset; \n }", "public function displayRecipe()\n {\n return $this->title . \"by\" . $this->source;\n }", "public function search($searchTerm)\n {\n $results = array(\n 'snippet' => [],\n 'snippet_code' => [],\n 'page' => [],\n 'product' => [],\n 'actions' => [],\n 'word' => [],\n 'post' => []\n );\n\n $snippets = Yii::$app->user->identity->portal->hasMany(Snippet::className(), ['id' => 'snippet_id'])\n ->viaTable('snippet_portal', ['portal_id' => 'id'])\n ->filterWhere([\n 'or',\n ['like', 'name', $searchTerm],\n ['like', 'description', $searchTerm],\n ])\n ->limit(10)\n ->all();\n\n foreach ($snippets as $snippet) {\n $results['snippet'][] = [\n 'link' => Url::to([\n '/snippet/edit',\n 'id' => $snippet->id\n ]),\n 'name' => $snippet->name,\n 'id' => $snippet->id,\n 'class' => 'suggest-snippet'\n ];\n }\n\n // SNIPPET CODES / ALTERNATIVES\n\n /** @var SnippetCode[] $snippet_codes */\n $snippet_codes = SnippetCode::find()\n ->filterWhere([\n 'or',\n ['like', 'name', $searchTerm],\n ['like', 'code', $searchTerm]\n ])\n ->limit(10)\n ->all();\n\n foreach ($snippet_codes as $snippet_code) {\n $results['snippet_code'][] = [\n 'link' => Url::to([\n '/snippet/edit',\n 'id' => $snippet_code['snippet_id'],\n '#' => 'code' . $snippet_code['id'],\n ]),\n 'name' => $snippet_code->getSnippet()->one()->name . ' -> ' . $snippet_code->name,\n 'id' => $snippet_code->id,\n 'class' => 'suggest-snippet-code'\n ];\n }\n\n // Slovnik\n $words = (new Query())->select(\"id, identifier\")->from(\"word\")->where(['like', 'identifier', $searchTerm])\n ->limit(10)->all();\n\n foreach ($words as $word) {\n $results['word'][] = [\n 'link' => Url::to([\n '/word/edit',\n 'id' => $word['id']\n ]),\n 'name' => $word['identifier'],\n 'id' => $word['id'],\n 'class' => 'suggest-word'\n ];\n }\n\n // PAGES\n\n $pages = Page::find()->filterWhere([\n 'or',\n ['like', 'name', $searchTerm],\n ['like', 'identifier', $searchTerm],\n ['like', 'title', $searchTerm],\n ])\n ->andWhere([\n 'portal_id' => Yii::$app->user->identity->portal_id\n ])\n ->limit(10)\n ->all();\n\n foreach ($pages as $page) {\n $results['page'][] = [\n 'link' => Url::to(['/page/edit', 'id' => $page['id']]),\n 'id' => $page->id,\n 'name' => $page->breadcrumbs,\n 'class' => 'suggest-page'\n ];\n }\n\n // POSTS\n\n $posts = Post::find()->filterWhere([\n 'or',\n ['like', 'name', $searchTerm],\n ['like', 'identifier', $searchTerm],\n ['like', 'title', $searchTerm],\n ])\n ->andWhere([\n 'portal_id' => Yii::$app->user->identity->portal_id\n ])\n ->limit(10)\n ->all();\n\n foreach ($posts as $post) {\n $results['post'][] = [\n 'link' => Url::to(['/post/edit', 'id' => $post['id']]),\n 'id' => $post->id,\n 'name' => $post->name,\n 'class' => 'suggest-post'\n ];\n }\n\n // PRODUCTS\n\n $products = Product::find()\n ->filterWhere([\n 'or',\n ['like', 'name', $searchTerm],\n ['like', 'identifier', $searchTerm],\n ])\n ->andWhere([\n 'language_id' => Yii::$app->user->identity->portal->language_id\n ])\n ->limit(10)\n ->all();\n\n foreach ($products as $product) {\n $results['product'][] = [\n 'link' => Url::to([\n '/product/edit',\n 'id' => $product['id']\n ]),\n 'name' => $product->breadcrumbs,\n 'id' => $product->id,\n 'class' => 'suggest-product'\n ];\n }\n\n $processActions = function ($searchTerm, $list, $prefix, $urlSuffix = '') {\n $actions = [];\n foreach ($list as $item) {\n $name = $prefix . $item[0];\n\n if ($searchTerm == '' || (mb_strlen($name) >= mb_strlen($searchTerm) && mb_substr(mb_strtolower($name), 0, mb_strlen($searchTerm)) == mb_strtolower($searchTerm))) {\n $actions[] = [\n 'link' => Url::to([\n '/' . $item[1] . '/' . $urlSuffix,\n ]),\n 'name' => $name,\n 'class' => 'suggest-action'\n ];\n }\n };\n return $actions;\n };\n\n $listActions = [['stránok', 'page'], ['ďakovačiek', 'thanks'], ['prekladov', 'word'], ['multimédii', 'multimedia'], ['snippetov', 'snippet'], ['produktov', 'product'], ['produktových premenných', 'product-var'], ['typov produktu', 'product-type'], ['tagov', 'tag'], ['šablón', 'template'], ['portálov', 'portal'], ['používateľov', 'user'], ['krajín', 'language']];\n $addActions = [['stránku', 'page'], ['ďakovačku', 'thanks'], ['preklad', 'word'], ['snippet', 'snippet'], ['produkt', 'product'], ['produktovú premennú', 'product-var'], ['typ produktu', 'product-type'], ['tag', 'tag'], ['šablónu', 'template'], ['portál', 'portal'], ['používateľa', 'user'], ['krajinu', 'language']];\n\n $results['actions'] += $processActions($searchTerm, $listActions, 'Zoznam ');\n $results['actions'] += $processActions($searchTerm, $addActions, 'Pridať ', 'edit');\n\n return $results;\n }", "public function actionRecipesForPartialName()\n {\n $recipes = RecipeDao::findAll([\"name LIKE\" => \"%\" . SiteUtil::getUrlParameters()[2]. \"%\"] );\n echo json_encode($this->recipesToArray($recipes));\n }", "protected function getKeywordsExample()\n {\n return '<p><b>' . __('Example') . '</b><p><p>[name][, {color} color][, {size} measurements||size][, {category}] <p>' . __('will be transformed into') . '<br>\n <p>CN Clogs Beach/Garden Clog, Blue color, 10 size, Shoes';\n }", "public function getSeoKeywords();", "function ccontent_search()\n\t{\n\t\t$post_data = linput_post();\n\t\t$table = llang_table('content');\n\t\t$cols = array('body', 'name');\n\t\t$keywords = $post_data['keywords'];\n\n\t\tif (strlen($keywords) >= 3)\n\t\t{\n\t\t\t$data['content'] = lcrud_search($table, $cols, $keywords, 'AND `published`=\\'1\\' ORDER BY `updated` DESC');\n\n\t\t\tfor ($i = 0; $i < count($data['content']); $i++)\n\t\t\t{\n\t\t\t\t$data['content'][$i]['title'] = $data['content'][$i]['name'];\n\t\t\t\t$data['content'][$i]['link'] = mcategories_read_path($data['content'][$i]['link'], false);\n\t\t\t}\n\n\t\t\tif (!count($data['content'])) hmessage_set(l('No results.'));\n\n\t\t\tlloader_load_view('search', $data);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data['content'] = array();\n\t\t\thmessage_set(l('Keyword must be at least 3 characters long'));\n\t\t\tlloader_load_view('search', $data);\n\t\t}\n\t}", "public function searchTitle(Request $request)\n {\n $query = $request->request->get('search');\n $em = $this->getDoctrine()->getManager();\n $result = $em->getRepository('AppBundle:Recipe')->searchTitle($query);\n\n return $this->render('recipe/search.html.twig', [\n 'query' => $query,\n 'recipes' => $result,\n ]);\n }", "public function searchByKeyword($query);", "public function search($keywords) {\n\n\t\t$sql = \"SELECT * FROM {$this->table_name} WHERE title LIKE '%{$keywords}%' OR overview LIKE '%{$keywords}%'\";\n\n\t\t$stmt = $this->conn->query($sql);\n\t\treturn $stmt->fetchAll();\n\t}", "public function index() {\n $output = $this->verifyProvidedInput(['keywords' => 'Keywords are required to perform a search']);\n\n if (empty($output)) {\n $preparedKeywords = htmlspecialchars($this->request->keywords);\n if (!empty($this->request->advancedSearch) && $this->request->advancedSearch) {\n $sortBy = (isset($this->request->sortBy) ? $this->request->sortBy : 'rawListPrice');\n $reverseSort = (isset($this->request->reverseSort) ? boolval($this->request->reverseSort) : false);\n $data = $this->getRETS->getListing()\n ->setSortBy($sortBy)\n ->setReverseSort($reverseSort)\n ->search($preparedKeywords, \n $this->request->extra, \n $this->request->maxPrice, \n $this->request->minPrice, \n $this->request->beds, \n $this->request->baths, \n $this->request->includeResidential, \n $this->request->includeLand, \n $this->request->includeCommercial);\n \n $this->addThumbnails($data);\n $output = $this->respondData($data);\n } else {\n $preparedKeywords = htmlspecialchars($this->request->keywords);\n $data = $this->getRETS->getListing()->searchByKeyword($preparedKeywords);\n $this->addThumbnails($data);\n $output = $this->respondData($data);\n }\n }\n\n return $output;\n }", "function searchByKeyword($searchTerm) {\n $searchTerm=striptags(htmlspecialchars($searchTerm));\n $query=\"SELECT * FROM ads WHERE description LIKE '%{$searchTerm}%'\";\n }", "function test_general_entries_search_on_post_title() {\n\t\t$search_string = \"Jamie's\";\n\t\t$items = self::generate_and_run_search_query( 'create-a-post', $search_string );\n\t\t$msg = 'A general search for ' . $search_string . ' in posts table';\n\t\tself::run_entries_found_tests( $msg, $items, 2, array( 'post-entry-1', 'post-entry-3' ) );\n\t}", "public function postSearch(Request $request){\n\n $results = array();\n\n //Validate search input\n $this->validate($request, ['input' => 'required|max:255']);\n\n //Define search terms, and add search filters to search terms\n $search_terms = $request->input('input');\n $search_terms_array = array_map('strtolower', explode(\" \", $search_terms));\n\n if( !(empty($request['prep_time'])) )\n $max_prep_time = $request->input('prep_time');\n else\n $max_prep_time = PHP_INT_MAX;\n\n if( !(empty($request['cook_time'])) )\n $max_cook_time = $request->input('cook_time');\n else\n $max_cook_time = PHP_INT_MAX;\n\n //Narrow down search to include only certain courses\n if( isset($request['course']) ){\n\n if( $request['course'] == 'entree' )\n $course_results = \\App\\Recipe::where('tags', 'LIKE', '%entree%')->get();\n\n if( $request['course'] == 'main' )\n $course_results = \\App\\Recipe::where('tags', 'LIKE', '%main%')->get();\n\n if( $request['course'] == 'dessert' )\n $course_results = \\App\\Recipe::where('tags', 'LIKE', '%dessert%')->get();\n }\n else{\n\n $course_results = \\App\\Recipe::all();\n }\n\n\n //Narrow down the search to include time constraints\n $timeconstraint_results = array();\n foreach( $course_results as $result ){\n\n if( ($result->prep_time <= $max_prep_time) && ($result->cook_time <= $max_cook_time) ){\n\n array_push($timeconstraint_results, $result);\n }\n }\n\n //Narrow down the search to only include search term matches\n $searchterm_results = array();\n foreach( $timeconstraint_results as $result ){\n\n //Get terms that potentially match search terms\n $title_terms = array_map('strtolower', array_map('trim', explode(\" \", $result->title)));\n $tag_terms = array_map('strtolower', array_map('trim', explode(\"#\", $result->tags)));\n $recipe_terms = array_merge($title_terms, $tag_terms);\n\n if( sizeof(array_intersect($search_terms_array, $recipe_terms)) > 0 ){\n\n array_push($results, $result);\n }\n }\n\n return view('Recipes.search')->with('results', $results);\n\n }", "public function all(){\t\r\n\t\t//Get ALL recipes from the database, but limit the search according to the \r\n\t\t//GET parameters outlining upper and lowerl imits\r\n\t\t$recipes = Recipe::retrieve();\r\n\t\t//Set the recipes results to the template and display\r\n\t\t$this->template->recipes = $recipes;\r\n\t\t$this->template->display('all.html.php');\r\n\t}", "function getsearch_get(){\n $keyword = $this->get('keyword');\n $result = $this->lecturers_model->getsearch_all($keyword);\n $this->response($result); \n\n }", "function getTitle()\n\t{\n\t\t\n\t\t$query = new Bin_Query();\t\n\t\t$title=$_GET['word'];\n\t\tif($title!='')\n\t\t{\n\t\t\t$sql= \"SELECT title FROM products_table WHERE title like '\".$title.\"%'\"; \n\t\t\t$query->executeQuery($sql);\n\t\t\t$arr=$query->records;\n\t\t\treturn Display_DManageProducts::getTitle($query->records);\t\t\t\t\t\n\t\t}\t\n\n\t}", "function search($query) {\n $query = Sanitize::escape($query);\n \t$fields = null;\n \t$titleResults = $this->find(\n\t\t\t'all',\n\t\t\tarray(\n\t\t\t\t'conditions' => \"{$this->name}.title LIKE '%$query%' and {$this->name}.draft=0\",\n\t\t\t\t'fields' => $fields\n\t\t\t)\n\t\t);\n \t$contentResults = array();\n \tif (empty($titleResults)) {\n \t\t$titleResults = array();\n\t\t\t$contentResults = $this->find(\n\t\t\t\t'all',\n\t\t\t\tarray(\n\t\t\t\t\t'conditions' => \"MATCH ({$this->name}.content) AGAINST ('$query')\",\n\t\t\t\t\t'fields' => $fields\n\t\t\t\t)\n\t\t\t);\n \t} else {\n \t\t$alredyFoundIds = join(', ', Set::extract($titleResults, '{n}.' . $this->name . '.id'));\n \t\t$notInQueryPart = '';\n \t\tif (!empty($alredyFoundIds)) {\n \t\t\t$notInQueryPart = \" AND {$this->name}.id NOT IN ($alredyFoundIds) AND {$this->name}.draft=0\";\n \t\t}\n \t\t$contentResults = $this->find(\n\t\t\t\t'all',\n\t\t\t\tarray(\n\t\t\t\t\t'conditions' => \"MATCH ({$this->name}.content) AGAINST ('$query')$notInQueryPart\",\n\t\t\t\t\t'fields' => $fields\n\t\t\t\t)\n\t\t\t);\n \t}\n \t\n \tif (!is_array(($contentResults))) {\n \t\t$contentResults = array();\n \t}\n \n \t$results = array_merge($titleResults, $contentResults);\n \treturn $results;\n }", "public function actionRecipesForTag()\n {\n $recipes = RecipeDao::findAll([\"idTag\" => SiteUtil::getUrlParameters()[2]]);\n echo json_encode($this->recipesToArray($recipes));\n }", "function getRecipe($filter=false){\n\t\t$strQuery=\"select Name, energy,fat,saturatedfat,transfat,cholestrol,carbohydrates,sugars,fiber,proteins,salt,sodium,vitamina,vitaminc,calcium,iron\n\t\t\t\t\tfrom recipes\";\n\t\tif($filter!=false){\n\t\t\t$strQuery=$strQuery . \" where $filter limit 12\";\n\t\t}\n\t\treturn $this->query($strQuery);\n\t}", "public function search($description)\n {\n return Taske::where('description', 'LIKE', \"%{$description}%\")->paginate(15);\n \n }", "public function searchRecipe(String $name)\n {\n $builder = $this->db->table('recipes');\n $builder->like(\"recipe_name\", \"%\" . $name . \"%\");\n $query = $builder->get();\n return $query->getResult();\n }", "protected static function GET_list() {\n\t\tif($db = self::RequireLatestDatabase())\n\t\t\tif($select = $db->prepare('select id, name, lastServed, complexity from recipe order by name'))\n\t\t\t\tif($select->execute()) {\n\t\t\t\t\t$recipe = new Row();\n\t\t\t\t\tif($select->bind_result($recipe->id, $recipe->name, $recipe->lastServed, $recipe->complexity)) {\n\t\t\t\t\t\t$recipes = [];\n\t\t\t\t\t\twhile($select->fetch())\n\t\t\t\t\t\t\t$recipes[] = $recipe->dupe();\n\t\t\t\t\t\tself::Success($recipes);\n\t\t\t\t\t} else\n\t\t\t\t\t\tself::DatabaseError('Error binding results from looking up recipes', $select);\n\t\t\t\t} else\n\t\t\t\t\tself::DatabaseError('Error looking up recipes', $select);\n\t\t\telse\n\t\t\t\tself::DatabaseError('Error preparing to look up recipes', $db);\n\t}", "function qruqsp_tutorials_tutorialSearch($ciniki) {\n //\n // Find all the required and optional arguments\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Tenant'),\n 'start_needle'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Search String'),\n 'limit'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Limit'),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $args = $rc['args'];\n\n //\n // Check access to tnid as owner, or sys admin.\n //\n ciniki_core_loadMethod($ciniki, 'qruqsp', 'tutorials', 'private', 'checkAccess');\n $rc = qruqsp_tutorials_checkAccess($ciniki, $args['tnid'], 'qruqsp.tutorials.tutorialSearch');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n\n //\n // Get the list of tutorials\n //\n $strsql = \"SELECT qruqsp_tutorials.id, \"\n . \"qruqsp_tutorials.title, \"\n . \"qruqsp_tutorials.permalink, \"\n . \"qruqsp_tutorials.synopsis, \"\n . \"qruqsp_tutorials.flags \"\n . \"FROM qruqsp_tutorials \"\n . \"WHERE qruqsp_tutorials.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND (\"\n . \"title LIKE '\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR title LIKE '% \" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR synopsis LIKE '\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR synopsis LIKE '% \" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \") \"\n . \"\";\n if( isset($args['limit']) && is_numeric($args['limit']) && $args['limit'] > 0 ) {\n $strsql .= \"LIMIT \" . ciniki_core_dbQuote($ciniki, $args['limit']) . \" \";\n } else {\n $strsql .= \"LIMIT 25 \";\n }\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQueryArrayTree');\n $rc = ciniki_core_dbHashQueryArrayTree($ciniki, $strsql, 'qruqsp.tutorials', array(\n array('container'=>'tutorials', 'fname'=>'id', \n 'fields'=>array('id', 'title', 'permalink', 'flags', 'synopsis')),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( isset($rc['tutorials']) ) {\n $tutorials = $rc['tutorials'];\n $tutorial_ids = array();\n foreach($tutorials as $iid => $tutorial) {\n $tutorial_ids[] = $tutorial['id'];\n }\n } else {\n $tutorials = array();\n $tutorial_ids = array();\n }\n\n return array('stat'=>'ok', 'tutorials'=>$tutorials, 'nplist'=>$tutorial_ids);\n}", "function find_all_product_info_by_title($title){\n global $db;\n $sql = \"SELECT * FROM products \";\n $sql .= \" WHERE name ='{$title}'\";\n $sql .=\" LIMIT 1\";\n return find_by_sql($sql);\n }", "function get_keywords()\n{\n global $KEYWORDS_TABLE;\n $q = \"select keyword, description from `$KEYWORDS_TABLE` order by keyword;\";\n $rows = dbSelect($q, 'get_keywords()');\n $keywords = array();\n foreach ($rows as $row) {\n $keywords[] = $row[0];\n }\n return $keywords;\n}", "function searchCoursesByQueryAndCategory($searchQuery, $categoryId){\n\n\t\tglobal $conn;\n\n\t\t$query = \"SELECT id, name, author, image FROM Course WHERE CategoryId='\" . $categoryId . \"' AND (name LIKE '%\" . $searchQuery . \"%' OR description LIKE '%\" . $searchQuery . \"%' OR author LIKE '%\" . $searchQuery . \"%') ORDER BY creationDate\";\n\n\t\t$result = $conn->query($query);\n\n\t\treturn fetch_all($result);\n\t}", "public function search(Request $request)\n {\n $appid = '6433c1f8';\n $appkey = 'acf4191deb52673bc8bcbf205e8c2ccc';\n $q = htmlspecialchars($request->search);\n $client = new Client([\n 'base_uri' => 'https://api.edamam.com',\n ]);\n $search = 'search?q='.$q.'&app_id='.$appid.'&app_key='.$appkey.'&from=0&to=12';\n $req = $client->request('GET', $search);\n $data = json_decode($req->getBody(), true);\n\n\n $results = [];\n $keyword = $data['q'];\n foreach($data['hits'] as $arr){\n $results[] = [\n 'uri'=>$arr['recipe']['uri'],\n 'shareAs'=>$arr['recipe']['shareAs'],\n 'sourceUrl'=>$arr['recipe']['url'],\n 'label'=>$arr['recipe']['label'],\n 'image'=>$arr['recipe']['image'],\n 'source'=>$arr['recipe']['source'],\n 'calories'=>$arr['recipe']['calories'],\n 'ingredients'=>count($arr['recipe']['ingredients'])\n ];\n }\n return view('search.resultview')->withKeyword($keyword)->withResults($results);\n }", "function generateRecipe($heading)\n{\n\t$recipe = array();\n\t\n\tif (isMealType($heading) == true)\n\t{\n\t\t$recipe = generateByMealType($heading);\n\t}\n\t\n\tif (isUnderClock($heading) == true)\n\t{\n\t\t$recipe = generateByUnderClock();\n\t}\n\t\n\tif (isNewest($heading) == true)\n\t{\n\t\t$recipe = generateByNewest();\n\t}\n\t\n\tif (isTopHit($heading) == true)\n\t{\n\t\t$recipe = generateByTopHit();\n\t}\n\t\n\tif (isTrendingNow($heading) == true)\n\t{\n\t\t$recipe = generateByTrendingNow();\n\t}\n\t\n\tif (isHoliday($heading) == true)\n\t{\n\t\t$recipe = generateByHoliday($heading);\n\t}\n\t\n\tif (isNew($heading) == true)\n\t{\n\t\t$recipe = generateByNew();\n\t}\n\t\n\tif (isPopularIngredient($heading) == true)\n\t{\n\t\t$recipe = generateByPopularIngredient($heading);\n\t}\n\t\n\tif (isOtherFeature($heading) == true)\n\t{\n\t\t$recipe = generateByOtherFeature($heading);\n\t}\n\t\n\tif (isEthnicity($heading) == true)\n\t{\n\t\t$recipe = generateByEthnicity($heading);\n\t}\n\t \n\treturn $recipe;\n}", "public function show_recipes()\n\t{\n\t\t//Debugging function\n\t\techo '<pre>';\n\t\techo var_dump($this->recipes);\n\t\techo '</pre>';\n\t}", "public function getSearchResult($keywords, $catid='', $start=0, $maxResults=0)\n\t{\n\t\tglobal $addslashes;\n\t\t$keywords = $addslashes($keywords);\n\t\trequire_once(TR_INCLUDE_PATH.'classes/Utility.class.php');\n\t\t// full-text search\n//\t\t$sql = \"SELECT DISTINCT course_id, title, description, created_date\n//\t\t FROM (SELECT cs.course_id as course_id, cs.title as title, cs.description as description\n//\t\t MATCH(cs.title, cs.description) AGAINST ('\".$keywords.\"') as score1,\n//\t\t MATCH(ct.keywords, ct.title, ct.text) AGAINST ('\".$keywords.\"') score2\n//\t\t FROM \".TABLE_PREFIX.\"courses cs, \".TABLE_PREFIX.\"content ct\n//\t\t WHERE cs.access='public'\n//\t\t AND cs.course_id = ct.course_id\n//\t\t AND (MATCH(cs.title, cs.description) AGAINST ('\".$keywords.\"' in boolean mode)\n//\t\t OR MATCH(ct.keywords, ct.title, ct.text) AGAINST ('\".$keywords.\"' in boolean mode))\n//\t\t ORDER BY score1+score2 desc) a\";\n \n\t\t// if the keywords is not given, return false\n\t\t$keywords = trim($keywords);\n//\t\tif ($keywords == '') return false;\n\t\t\n\t\t$all_keywords = Utility::removeEmptyItemsFromArray(explode(' ', $keywords));\n\t\t\n//\t\tif (!is_array($all_keywords) || count($all_keywords) == 0) return false;\n\t\t\n\t\tlist($sql_where, $sql_order) = $this->getSearchSqlParams($all_keywords);\n\t\t\n\t\tif ($sql_where <> '') $sql_where = ' AND '. $sql_where;\n\t\tif (trim($catid) <> '') $sql_where .= ' AND category_id='.intval($catid);\n\t\t\n\t\t// sql search\n\t\t$sql = \"SELECT DISTINCT cs.course_id, cs.title, cs.description, cs.created_date\n\t\t FROM \".TABLE_PREFIX.\"courses cs, \".TABLE_PREFIX.\"content ct, \".TABLE_PREFIX.\"users u\n\t\t WHERE cs.access='public'\n\t\t AND cs.course_id = ct.course_id\n\t\t AND cs.user_id = u.user_id\";\n\t\tif ($sql_where <> '') $sql .= $sql_where;\n\t\tif ($sql_order <> '') $sql .= \" ORDER BY \".$sql_order.\" DESC \";\n\t\t\n\t\tif ($maxResults > 0) $sql .= \" LIMIT \".$start.\", \".$maxResults;\n\n\t\treturn $this->execute($sql);\n\t}", "public function search_results($keywords){\n\n\t\t$returned_results = array();\n\t\t$where = \"\";\n\n\t$keywords = preg_split('/[\\s]+/', $keywords);\n\t\n\t$total_keywords = count($keywords);\n\n\tforeach ($keywords as $key => $keyword) {\n\t\t# code...\n\t\t$where .= \"`product_name` LIKE '%$keyword%'\";\n\n\t\t\tif ( $key != ($total_keywords - 1) ) {\n\t\t\t\t# code...\n\t\t\t\t$where .= \" AND \";\n\t\t\t}\n\t}\n//id\tproduct_name\tsuplier_name\tcategory\tsub_category\tprice\tdescription\timage_1\timage_2\timage_3\tquantity\tdate_added\n $results = \"SELECT `id`,LEFT(`description`,10) as `description`,`product_name` , `suplier_name` , `category` , `sub_category` , `price` , `image_1` FROM `products` WHERE $where\";\n\n $results_num = ($results = mysql_query($results)) ? mysql_num_rows($results) : 0;\n\n \t\tif ($results_num == 0) {\n \t\t\t# code...\n \t\t\treturn false;\n \t\t\n \t\t} else {\n\n \t\t\twhile ($results_row = mysql_fetch_assoc($results)) {\n \t\t\t\t# code...\n \t\t\t\t$returned_results[] = array(\n\n \t\t\t\t\t\t\t\t'id' \t\t\t\t\t=> $results_row['id'],\n \t\t\t\t\t\t\t\t'description' \t\t\t=> $results_row['description'],\n \t\t\t\t\t\t\t\t'product_name'\t\t\t=> $results_row['suplier_name'],\n \t\t\t\t\t\t\t\t'category' \t\t\t\t=> $results_row['category'],\n \t\t\t\t\t\t\t\t'sub_category'\t\t\t=> $results_row['sub_category'],\n \t\t\t\t\t\t\t\t'price' \t\t\t\t=> $results_row['price'],\n \t\t\t\t\t\t\t\t'image_1' \t\t\t\t=> $results_row['image_1'] \n \t\t\t\t\t);\n \t\t\t}\n\n \t\t\treturn $returned_results;\n \n \t\t}\n}", "function dvdinsideSearch($title)\n{\n global $dvdinsideServer, $cache;\n global $CLIENTERROR;\n\n $post = 'action=new&suchen=Suchen&title='.urlencode($title);\n\n $resp = httpClient($dvdinsideServer.'/db/search.php', $cache, array('post' => $post));\n\n if (!$resp['success']) $CLIENTERROR .= $resp['error'].\"\\n\";\n\n if (preg_match_all('/<a href=\\\"details.php\\?id\\=(.+?)\\\">(.+?)<\\/a>.+?<a href=\\\"studio_list.php.+?\\\">(.+?)<\\/a>.+?<td align=\\\"center\\\">(.+?)<\\/td>/is', $resp['data'], $data, PREG_SET_ORDER)) \n {\n foreach ($data as $row) \n {\n if (ereg('<img', $row[2])) continue;\n $info['id'] = \"DI\".trim($row[1]);\n $info['title'] = trim($row[2]);\n $info['studio'] = trim($row[3]);\n $info['datum'] = trim($row[4]);\n $ary[] = $info;\n }\n }\n\n return $ary;\t\n}", "function postingSearchHandler() {\n global $inputs;\n\n $keyword = $inputs['keyword'];\n $res = getAll(\"SELECT a.*,c.name \n FROM posting a \n INNER JOIN member_posting b \n ON a.id = b.posting_id\n INNER JOIN member c \n ON c.id = b.member_id \n WHERE a.title LIKE '%$keyword%' OR a.content LIKE '%$keyword%'\");\n \n formatOutput(true, 'success',$res);\n}", "function fsf_port_getImageKeywords($fsf_port_image_id)\n {\n // Initialize Variables\n $fsf_port_getImageKeywords_output = \"\";\n\n global $fsfcms_api_url; \n\n $fsf_api_file = \"fsf.port.getImageKeywords.php\";\n $fsf_api_options = \"\";\n\n if($fsf_port_image_id !=\"\")\n {\n $fsf_api_options = \"?imageId=\" . $fsf_port_image_id;\n } else {\n $fsf_api_options = \"\";\n }\n\n $fsf_port_getImageKeywords_json = fsf_preacher_curl($fsfcms_api_url, $fsf_api_file, $fsf_api_options);\n $fsf_port_getImageKeywords_keywords = json_decode($fsf_port_getImageKeywords_json, true);\n\n // Process the keywords\n if(array_pop($fsf_port_getImageKeywords_keywords) == 200)\n {\n foreach($fsf_port_getImageKeywords_keywords as $fsf_port_getImageKeywords_keyword)\n { \n $fsf_port_getImageKeywords_output .= \"<a href=\\\"/keywords/\" . $fsf_port_getImageKeywords_keyword['keywordSlug'] . \"\\\">\" . $fsf_port_getImageKeywords_keyword['keyword'] . \"</a>, \";\n } \n $fsf_port_getImageKeywords_output = rtrim($fsf_port_getImageKeywords_output,\", \");\n } else {\n $fsf_port_getImageKeywords_output = $fsf_port_getImageKeywords_keywords['errorMessage'];\n }\n return $fsf_port_getImageKeywords_output;\n }", "function generateByPopularIngredient($heading)\n{\n\t$recipe = array();\n\t$recipeSelector = new Recipe;\n\t$candidates = array();\n\t\n\t//split heading string into name and priority value\n\t$tokens = explode(\" \", $heading);\n\t\n\t$ingredient = $tokens[0];\n\t\n\t//find recipes in database with popular ingredient (plural form) in heading (singular form) \n\tif ((strcmp(\"Berry\", $ingredient ) == 0) || (strcmp(\"Pastry\", $ingredient ) == 0))\n\t{\n\t\t//special singular form \"berry\" not sub-string of plural form (won't detect in database)\n\t\tif (strcmp(\"Berry\", $ingredient) == 0)\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByPopularIngredient(\"Berries\");\n\t\t}\n\t\t\n\t\t//special singular form \"pastry\" not sub-string of plural form (won't detect in database)\n\t\tif (strcmp(\"Pastry\", $ingredient) == 0)\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByPopularIngredient(\"Pastries\");\n\t\t}\n\t}\n\t\n\telse \n\t{\n\t\t$candidates = $recipeSelector->selectByPopularIngredient($ingredient);\n\t}\n\t\n\tif (count($candidates) != 0)\n\t{\n\t\t$recipe = selectRandomCandidate($candidates);\n\t}\n\t\n\telse \n\t{\n\t\t$recipe = null;\n\t}\n\t\n\treturn $recipe;\n}", "function metaTags() {\r\n\t\tif (!defined('IS_UWR1RESULTS_VIEW')) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$season = Uwr1resultsController::season();\r\n\t\t$season = $season.'/'.($season+1); // TODO: make a function for that\r\n\r\n\t\t$keywords = array('Unterwasserrugby', 'UWR', 'Liga', 'Ergebnisse', 'Unterwasser Rugby');\r\n\t\t$tags = array();\r\n\r\n\t\t$view = Uwr1resultsController::WhichView();\r\n\t\tif ('league' == $view) {\r\n\t\t\t$keywords[] = Uwr1resultsModelLeague::instance()->name();\r\n\t\t\t$tags['description'] = 'Ergebnisse der ' . Uwr1resultsModelLeague::instance()->name() . ' im UWR (Saison ' . $season . ') | ' . get_bloginfo('name');\r\n\t\t} else if ('tournament' == $view) {\r\n\t\t\t$keywords[] = Uwr1resultsModelLeague::instance()->name();\r\n\t\t\t$keywords[] = 'Turnier';\r\n\t\t\t$tags['description'] = 'Ergebnisse des UWR Turniers ' . Uwr1resultsModelLeague::instance()->name() . ' | ' . get_bloginfo('name');\r\n\t\t} else if ('index' == $view) {\r\n\t\t\t$keywords[] = 'Bundesliga';\r\n\t\t\t$keywords[] = 'Damenliga';\r\n\t\t\t$keywords[] = 'Landesliga';\r\n\t\t\t$keywords[] = 'Oberliga';\r\n\t\t\t$keywords[] = 'Bezirksliga';\r\n\t\t\t$keywords[] = 'Turniere';\r\n\t\t\t$keywords[] = 'Damen';\r\n\t\t\t$keywords[] = 'Jugend';\r\n\t\t\t$keywords[] = 'Junioren';\r\n\t\t\t$tags['description'] = 'UWR Ergebnisse aus der 1. und 2. Bundesliga, Damenliga, Landesliga, Oberliga und Bezirksliga im ' . get_bloginfo('name') . '.';\r\n\t\t}\r\n\t\t$tags['keywords'] = ((count($keywords) > 0)\r\n\t\t\t? implode(', ', $keywords) . ', '\r\n\t\t\t: '')\r\n\t\t\t. 'UW Rugby, Jugend, Junioren';\r\n\t\tforeach($tags as $name => $content) {\r\n\t\t\tprint '<meta name=\"'.$name.'\" content=\"'.$content.'\" />'.\"\\n\";\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "function groupSearchHandler() {\n global $inputs;\n\n $keyword = $inputs['keyword'];\n $res = getAll(\"SELECT * \n FROM `group` \n WHERE group_name LIKE '%$keyword%' OR description LIKE '%$keyword%'\");\n \n formatOutput(true, 'success',$res);\n}", "public function get_keywordlist($id,$journal_id){\n $sql37 = \"select * from keywords where keyword_id='$id'\";\n $result37 = mysqli_query($this->db,$sql37);\n $keywordsdata = mysqli_fetch_array($result37);\n $this->keywordsimg = $keywordsdata['image'];\n $this->keyword = $keywordsdata['keyword'];\n $this->keyworddescription = $keywordsdata['description'];\n $this->altimg = $keywordsdata['alt_img_text'];\n $this->imgcaption = $keywordsdata['image_caption'];\n $this->metakeywords = $keywordsdata['meta_keywords'];\n $this->metatitle = $keywordsdata['meta_title'];\n $this->metadescription = $keywordsdata['meta_description'];\n return true;\n\n }", "function test_field_specific_search_on_post_title() {\n\n\t\t// Single word. Two matching entries should be found.\n\t\t$search_string = \"Jamie's\";\n\t\t$field_key = 'yi6yvm';\n\t\t$items = self::generate_and_run_field_specific_query( 'create-a-post', $field_key, $search_string );\n\t\t$msg = 'A search for ' . $search_string . ' in post title field ' . $field_key;\n\t\tself::run_entries_found_tests( $msg, $items, 2, array( 'post-entry-1', 'post-entry-3' ) );\n\n\t\t// Single word. No entries should be found.\n\t\t$search_string = 'TextThatShouldNotBeFound';\n\t\t$items = self::generate_and_run_field_specific_query( 'create-a-post', $field_key, $search_string );\n\t\t$msg = 'A search for ' . $search_string . ' in post title field ' . $field_key;\n\t\tself::run_entries_not_found_tests( $msg, $items );\n\t}", "function quasar_get_post_loop_description(){\n\tglobal $post;\n\tif(!$post) return;\n\t\n\t$summary_choice = xr_get_option('post_summary','content');//or excerpt;\n\t\n\t$return = '';\n\t\n\tif($summary_choice === 'content'){\n\t\t$return = quasar_get_the_content();\n\t}elseif($summary_choice === 'excerpt'){\n\t\t$return = rock_check_p(get_the_excerpt());\n\t\t$return .= quasar_get_read_more_link();\n\t}\n\t\n\treturn $return;\n}", "function searchByTitle($title){\n $name = $title['search'];\n return db()->QUERY(\"SELECT * FROM posts WHERE title LIKE '%$name%' ORDER BY title\");\n }", "public function search() {\r\n\t\t$mintURL = $this->Configuration->findByName('Mint URL');\r\n\t\t$queryURL = $mintURL['Configuration']['value'];\r\n\t\t$query = '';\r\n\t\tif (isset($this->params['url']['query'])) {\r\n\t\t\t$query = $this->params['url']['query'];\r\n\t\t}\r\n\r\n\t\t$queryURL = $queryURL.\"/Parties_People/opensearch/lookup?searchTerms=\".$query;\r\n\t\t$queryResponse = \"error\";\r\n\n\t\t$ch = curl_init();\r\n\t\t$timeout = 5;\r\n\t\tcurl_setopt($ch,CURLOPT_URL,$queryURL);\r\n\t\tcurl_setopt($ch,CURLOPT_RETURNTRANSFER,1);\r\n\t\tcurl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);\r\n\t\t$queryResponse = curl_exec($ch);\r\n\t\tcurl_close($ch);\r\n\r\n\t\t$this->autoRender = false;\r\n\t\t$this->response->type('json');\r\n\r\n\t\t$this->response->body($queryResponse);\r\n\t}", "protected function collectDataKeywords()\n {\n /* Even if the original website uses POST with the search page, GET works too */\n $url = $this->getSearchURI();\n $this->collectDeals($url);\n }", "public function getDefinitions()\r\n{\r\n $query_string = \"SELECT word, worddefinition FROM glossary\";\r\n\r\n return $query_string;\r\n}", "function query_db_for_recipes_callback() {\n\tglobal $wpdb;\n\n // echo '<pre>'.$foodName.$needLowCalorie.$needLowSugar.$needLowFat.$needLowSodium.'</pre>';\n // echo '<pre>'.$dataSource.$password.'</pre>';\n\n\t$foodName = $_POST['foodName'];\n\t$needLowCalorie = $_POST['needLowCalorie'];\n\t$needLowSugar = $_POST['needLowSugar'];\n\t$needLowFat = $_POST['needLowFat'];\n\t$needLowSodium = $_POST['needLowSodium'];\n\n $dataSource = $_POST['dataSource'];\n $password = $_POST['password'];\n\n if ($password == 960203) {\n // echo '<pre>'.$foodName.$needLowCalorie.$needLowSugar.$needLowFat.$needLowSodium.'</pre>';\n // echo '<pre>'.$dataSource.$password.'</pre>';\n\n ?>\n\n <!-- recipe list content -->\n <h3>Search Results</h3>\n\n <?php\n // ***step 1: query food name whether it already in db and have data, if not store it and request data\n $ifQueryed = query_food_name_or_store($foodName);\n if ($ifQueryed == false) {\n // echo '<h1>not queryed</h1>';\n\n // ***step 2: if not, request api for food name\n $recipe_data = get_decoded_json_data_from_api($dataSource, $foodName);\n \n // ***step 2.1: store in db\n if ($recipe_data->count > 0) {\n $recipes_array = isset($recipe_data->hits) ? $recipe_data->hits : array();\n store_edam_in_database($recipes_array, $foodName);\n }\n } else {\n // echo '<h1>queryed</h1>';\n }\n \n // step 3: (if yes), query db\n $recipes_list = query_recipe_from_db($foodName, $needLowFat, $needLowSodium, $needLowCalorie, $needLowSugar);\n \n // if results is less than 5, request from edam\n // echo '<h1>'.count($recipes_list).'</h1>';\n if (count($recipes_list) < 3 && $dataSource == 1) {\n // echo '<h1>data is so little</h1>';\n $ifNeedLowFat = 0;\n $ifNeedLowSodium = 0;\n $ifNeedLowCalorie = 0;\n $ifNeedLowSugar = 0;\n if ($needLowFat == \"true\") {\n $ifNeedLowFat = 1;\n }\n if ($needLowSodium == \"true\") {\n $ifNeedLowSodium = 1;\n }\n if ($needLowCalorie == \"true\") {\n $ifNeedLowCalorie = 1;\n }\n if ($needLowSugar == \"true\") {\n $ifNeedLowSugar = 1;\n }\n // echo '<h1>'.$foodName.$ifNeedLowCalorie.$ifNeedLowSugar.$ifNeedLowFat.$ifNeedLowSodium.'</h1>';\n $expanded_recipe_json = get_recipes_from_edam_api($foodName, $ifNeedLowFat, $ifNeedLowSodium, $ifNeedLowCalorie, $ifNeedLowSugar);\n \n // print json on the site\n // echo '<pre>';\n // print_r($expanded_recipe_json);\n // echo '</pre>';\n \n $expanded_recipe_data = json_decode($expanded_recipe_json);\n if ($expanded_recipe_data->count > 0) {\n $expanded_recipes_array = isset($expanded_recipe_data->hits) ? $expanded_recipe_data->hits : array();\n store_edam_in_database($expanded_recipes_array, $foodName);\n }\n $recipes_list = query_recipe_from_db($foodName, $needLowFat, $needLowSodium, $needLowCalorie, $needLowSugar);\n }\n // step 4: print result\n echo print_recipe_list_html_code($recipes_list);\n }\n\n\tdie(); // this is required to terminate immediately and return a proper response\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 }", "function test_general_entries_search_on_frm_item_metas_multiple_words() {\n\t\t$form_id = FrmForm::getIdByKey( 'all_field_types' );\n\t\t$where_clause = array( 'it.form_id' => $form_id );\n\n\t\t// Multiple words are searched. Two matching entries should be found.\n\t\t$search_string = 'Wahlin http://www.stephtest.com';\n\t\t$items = self::run_search_query( $where_clause, $form_id, $search_string );\n\t\t$msg = 'A general search for ' . $search_string . ' in entry metas table';\n\t\tself::run_entries_found_tests( $msg, $items, 3, array( 'jamie_entry_key', 'steph_entry_key', 'jamie_entry_key_2' ) );\n\n\t\t// Multiple words are searched. One matching entry should be found.\n\t\t$search_string = 'Rebecca Wahlin';\n\t\t$items = self::run_search_query( $where_clause, $form_id, $search_string );\n\t\t$msg = 'A general search for ' . $search_string . ' in entry metas table';\n\t\tself::run_entries_found_tests( $msg, $items, 2, array( 'jamie_entry_key', 'jamie_entry_key_2' ) );\n\n\t\t// Multiple words are searched. No matching entries should be found.\n\t\t$search_string = 'StringOne StringTwo';\n\t\t$items = self::run_search_query( $where_clause, $form_id, $search_string );\n\t\t$msg = 'A general search for ' . $search_string . ' in entry metas table';\n\t\tself::run_entries_not_found_tests( $msg, $items );\n\t}", "public function get_keywords() {\n\t\treturn [ 'Feature image', 'photo', 'visual' ];\n\t}", "function descriptionSearch($conn, $keyword)\n {\n $query = \"SELECT DISTINCT whwp_Advert.advert_id FROM whwp_Advert \"\n . \"WHERE advert_description LIKE :keyword \"\n . \"ORDER BY whwp_Advert.advert_price DESC\";\n $conn->prepQuery($query);\n $conn->bind('keyword', \"%\".$keyword.\"%\");\n $advert = $conn->resultset();\n return $advert;\n }", "function keywords_and_description($submit_keywords, $keywords, $seo_desc){\n\t\tif( isset($_POST[$submit_keywords]) ){\n\t\t\t$key_words = $_POST[$keywords];\n\t\t\t$short_desc = $_POST[$seo_desc]; \n\t\t\tuser::update_key_words($key_words, $short_desc);\n\n\t\t\t\theader(\"location: ../../basic_info.php\");\n\t\t}\n\t}", "public function searchResult()\r\n {\r\n // Setting the page title\r\n $this->set(\"title_for_layout\",\"Search Results\");\r\n \r\n // Getting all the categories\r\n $categoryList = $this->Category->getCategoryList();\r\n \r\n // Passing the categories list to views\r\n $this->set('categoryList', $categoryList);\r\n \r\n // initialising the variable\r\n $whereCondition = '';\r\n $search_keyword = '';\r\n // if any search keyword then setting into variable.\r\n if (isset($this->data['Product']['keywords']) && !empty($this->data['Product']['keywords']))\r\n {\r\n $search_keyword = $this->data['Product']['keywords'];\r\n \r\n if(!empty($whereCondition))\r\n {\r\n $whereCondition .= \" AND \";\r\n }\r\n \r\n $whereCondition .= \" (Product.product_name LIKE '%\".$search_keyword.\"%') OR (Product.product_desc LIKE '%\".$search_keyword.\"%') \";\r\n }\r\n \r\n $conditions[] = $whereCondition;\r\n \r\n // Getting the products and categories list agianst search criteria\r\n $productList = $this->Product->getSearchResults($conditions);\r\n \r\n // Passing for first product images by default.\r\n $this->set('productList', $productList);\r\n \r\n // Passing the search keywords to views\r\n $this->set('search_keyword', $search_keyword);\r\n \r\n }", "public function getTitle()\n {\n return \\Yii::t('app', 'Recipe');\n }", "function test_field_specific_search_frm_item_metas() {\n\n\t\t// Single word. One matching entry should be found.\n\t\t$search_string = 'Jamie';\n\t\t$field_key = 'text-field';\n\t\t$items = self::generate_and_run_field_specific_query( 'all_field_types', $field_key, $search_string );\n\t\t$msg = 'A search for ' . $search_string . ' in field ' . $field_key;\n\t\tself::run_entries_found_tests( $msg, $items, 1, array( 'jamie_entry_key' ) );\n\n\t\t// Multiple words. Two matching entries should be found.\n\t\t$search_string = 'Jamie Rebecca Wahlin';\n\t\t$field_key = 'p3eiuk';\n\t\t$items = self::generate_and_run_field_specific_query( 'all_field_types', $field_key, $search_string );\n\t\t$msg = 'A search for ' . $search_string . ' in field ' . $field_key;\n\t\tself::run_entries_found_tests( $msg, $items, 2, array( 'jamie_entry_key', 'jamie_entry_key_2' ) );\n\n\t\t// Single word. No matching entries should be found.\n\t\t$search_string = 'TextThatWillNotBeFound';\n\t\t$field_key = 'text-field';\n\t\t$items = self::generate_and_run_field_specific_query( 'all_field_types', $field_key, $search_string );\n\t\t$msg = 'A search for ' . $search_string . ' in field ' . $field_key;\n\t\tself::run_entries_not_found_tests( $msg, $items );\n\t}", "public function SearchByName(Request $request)\n\t{\n\t\t$searchString = trim(Input::get('searchString'));\n\t\t$negative = false;\n\t\t$primary = false;\n\t\t$secondary = false;\n\t\t$searchClassifier = null;\n\t\t\n\t\t//Pull the negative out\n\t\tif ($searchString[0] == \"-\")\n\t\t{\n\t\t\t$negative = true;\n\t\t\t$searchString = trim(substr($searchString, 1));\n\t\t}\n\t\t\n\t\t//Pull primary and secondary out\n\t\t$flag_marker = strpos($searchString, ':');\n\t\tif ($flag_marker !== false)\n\t\t{\n\t\t\t$flag = strtolower(substr($searchString, 0, $flag_marker));\n\t\t\t\n\t\t\tif ($flag == \"primary\")\n\t\t\t{\n\t\t\t\t$primary = true;\n\t\t\t\t$searchString = trim(substr($searchString, $flag_marker + 1));\n\t\t\t}\n\t\t\telse if ($flag == \"secondary\")\n\t\t\t{\n\t\t\t\t$secondary = true;\n\t\t\t\t$searchString = trim(substr($searchString, $flag_marker + 1));\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t//Pull targeting out\n\t\t$flag_marker = strpos($searchString, ':');\n\t\tif ($flag_marker !== false)\n\t\t{\n\t\t\t//Get the contents before the \":\" to check for search clarifiers\n\t\t\t$searchClassifier = strtolower(substr($searchString, 0, $flag_marker));\n\t\t\t$searchString = trim(substr($searchString, $flag_marker + 1));\n\t\t}\n\t\t\n\t\t$values = array();\n\t\tif ($searchClassifier == \"artist\")\n\t\t{\n\t\t\t$values = SearchLookupHelper::ArtistLookupHelper($searchString);\n\t\t\tforeach ($values as $value)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($value['value'], \"artist:\", $primary, $secondary, $negative);\n\t\t\t\t\n\t\t\t\t$value['value'] = $returnString;\n\t\t\t\t$value['label'] = $returnString;\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"character\")\n\t\t{\n\t\t\t$values = SearchLookupHelper::CharacterLookupHelper($searchString);\n\t\t\tforeach ($values as $value)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($value['value'], \"character:\", $primary, $secondary, $negative);\n\t\t\t\t\n\t\t\t\t$value['value'] = $returnString;\n\t\t\t\t$value['label'] = $returnString;\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"scanalator\")\n\t\t{\n\t\t\t$values = SearchLookupHelper::ScanalatorLookupHelper($searchString);\n\t\t\tforeach ($values as $value)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($value['value'], \"scanalator:\", $primary, $secondary, $negative);\n\t\t\t\t\n\t\t\t\t$value['value'] = $returnString;\n\t\t\t\t$value['label'] = $returnString;\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"series\")\n\t\t{\n\t\t\t$values = SearchLookupHelper::SeriesLookupHelper($searchString);\n\t\t\tforeach ($values as $value)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($value['value'], \"series:\", $primary, $secondary, $negative);\n\t\t\t\t\n\t\t\t\t$value['value'] = $returnString;\n\t\t\t\t$value['label'] = $returnString;\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"tag\")\n\t\t{\n\t\t\t$values = SearchLookupHelper::TagLookupHelper($searchString);\n\t\t\tforeach ($values as $value)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($value['value'], \"tag:\", $primary, $secondary, $negative);\n\t\t\t\t\n\t\t\t\t$value['value'] = $returnString;\n\t\t\t\t$value['label'] = $returnString;\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"language\")\n\t\t{\n\t\t\t$languages = Language::where('languages.name', 'like', '%' . $searchString . '%')->leftjoin('collections', 'languages.id', '=', 'collections.language_id')->select('languages.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->pluck('name');\n\t\t\t\n\t\t\tforeach ($languages as $language)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($language, \"language:\", false, false, $negative);\n\t\t\t\tarray_push($values, ['value' => $returnString, 'label' => $returnString]);\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"rating\")\n\t\t{\n\t\t\t$ratings = Rating::where('ratings.name', 'like', '%' . $searchString . '%')->leftjoin('collections', 'ratings.id', '=', 'collections.rating_id')->select('ratings.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->pluck('name');\n\t\t\t\n\t\t\tforeach ($ratings as $rating)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($rating, \"rating:\", false, false, $negative);\n\t\t\t\tarray_push($values, ['value' => $returnString, 'label' => $returnString]);\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"status\")\n\t\t{\n\t\t\t$statuses = Status::where('statuses.name', 'like', '%' . $searchString . '%')->leftjoin('collections', 'statuses.id', '=', 'collections.status_id')->select('statuses.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->pluck('name');\n\t\t\t\n\t\t\tforeach ($statuses as $status)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($status, \"status:\", false, false, $negative);\n\t\t\t\tarray_push($values, ['value' => $returnString, 'label' => $returnString]);\n\t\t\t}\n\t\t}\n\t\telse \n\t\t{\t\n\t\t\t//Get artists with total\n\t\t\t$artists = Artist::where('artists.name', 'like', '%' . $searchString . '%')->leftjoin('artist_collection', 'artists.id', '=', 'artist_collection.artist_id')->select('artists.*', DB::raw('count(*) as total'))->groupBy('name')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$artists = $artists->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"artist:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t//Get global artist aliases with total\n\t\t\t$global_artist_aliases = ArtistAlias::where('user_id', '=', null)->where('alias', 'like', '%' . $searchString . '%')->leftjoin('artists', 'artists.id', '=', 'artist_alias.artist_id')->leftjoin('artist_collection', 'artists.id', '=', 'artist_collection.artist_id')->select('artist_alias.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$global_artist_aliases = $global_artist_aliases->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->alias, \"artist:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t//Get characters with total\n\t\t\t$characters = Character::where('characters.name', 'like', '%' . $searchString . '%')->leftjoin('character_collection', 'characters.id', '=', 'character_collection.character_id')->select('characters.*', DB::raw('count(*) as total'))->groupBy('name')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$characters = $characters->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"character:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\n\t\t\t//Get global character aliases with total\n\t\t\t$global_character_aliases = CharacterAlias::where('user_id', '=', null)->where('alias', 'like', '%' . $searchString . '%')->leftjoin('characters', 'characters.id', '=', 'character_alias.character_id')->leftjoin('character_collection', 'characters.id', '=', 'character_collection.character_id')->select('character_alias.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\n\t\t\t$global_character_aliases = $global_character_aliases->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->alias, \"character:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\n\t\t\t//Get scanalators with total\n\t\t\t$scanalators = Scanalator::where('scanalators.name', 'like', '%' . $searchString . '%')->leftjoin('chapter_scanalator', 'scanalators.id', '=', 'chapter_scanalator.scanalator_id')->select('scanalators.*', DB::raw('count(*) as total'))->groupBy('name')->orderBy('total', 'desc')->take(5)->get();\n\t\t\n\t\t\t$scanalators = $scanalators->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"scanalator:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t//Get global scanalator aliases with total\n\t\t\t$global_scanalator_aliases = ScanalatorAlias::where('user_id', '=', null)->where('alias', 'like', '%' . $searchString . '%')->leftjoin('scanalators', 'scanalators.id', '=', 'scanalator_alias.scanalator_id')->leftjoin('chapter_scanalator', 'scanalators.id', '=', 'chapter_scanalator.scanalator_id')->select('scanalator_alias.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$global_scanalator_aliases = $global_scanalator_aliases->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->alias, \"scanalator:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t//Get series with total\n\t\t\t$series = Series::where('series.name', 'like', '%' . $searchString . '%')->leftjoin('collection_series', 'series.id', '=', 'collection_series.series_id')->select('series.*', DB::raw('count(*) as total'))->groupBy('name')->orderBy('total', 'desc')->take(5)->get();\n\t\t\n\t\t\t$series = $series->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"series:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t//Get global series aliases with total\n\t\t\t$global_series_aliases = SeriesAlias::where('user_id', '=', null)->where('alias', 'like', '%' . $searchString . '%')->leftjoin('series', 'series.id', '=', 'series_alias.series_id')->leftjoin('collection_series', 'series.id', '=', 'collection_series.series_id')->select('series_alias.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$global_series_aliases = $global_series_aliases->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->alias, \"series:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\n\t\t\t//Get global tags with total\n\t\t\t$tags = Tag::where('tags.name', 'like', '%' . $searchString . '%')->leftjoin('collection_tag', 'tags.id', '=', 'collection_tag.tag_id')->select('tags.*', DB::raw('count(*) as total'))->groupBy('name')->orderBy('total', 'desc')->take(5)->get();\n\t\t\n\t\t\t$tags = $tags->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"tag:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t//Get global tag aliases with total\n\t\t\t$global_tag_aliases = TagAlias::where('user_id', '=', null)->where('alias', 'like', '%' . $searchString . '%')->leftjoin('tags', 'tags.id', '=', 'tag_alias.tag_id')->leftjoin('collection_tag', 'tags.id', '=', 'collection_tag.tag_id')->select('tag_alias.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$global_tag_aliases = $global_tag_aliases->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->alias, \"tag:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t$languages = Language::where('languages.name', 'like', '%' . $searchString . '%')->leftjoin('collections', 'languages.id', '=', 'collections.language_id')->select('languages.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$languages = $languages->map(function ($item) use ($negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"language:\", false, false, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t$ratings = Rating::where('ratings.name', 'like', '%' . $searchString . '%')->leftjoin('collections', 'ratings.id', '=', 'collections.rating_id')->select('ratings.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$ratings = $ratings->map(function ($item) use ($negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"rating:\", false, false, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t$statuses = Status::where('statuses.name', 'like', '%' . $searchString . '%')->leftjoin('collections', 'statuses.id', '=', 'collections.status_id')->select('statuses.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$statuses = $statuses->map(function ($item) use ($negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"status:\", false, false, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t$matches = collect();\n\t\t\t$matches->push($artists);\n\t\t\t$matches->push($global_artist_aliases);\n\t\t\t$matches->push($characters);\n\t\t\t$matches->push($global_character_aliases);\n\t\t\t$matches->push($scanalators);\n\t\t\t$matches->push($global_scanalator_aliases);\n\t\t\t$matches->push($series);\n\t\t\t$matches->push($global_series_aliases);\n\t\t\t$matches->push($tags);\n\t\t\t$matches->push($global_tag_aliases);\n\t\t\t$matches->push($languages);\n\t\t\t$matches->push($ratings);\n\t\t\t$matches->push($statuses);\t\t\t\n\t\t\n\t\t\t$matches = $matches->flatten(1);\n\t\t\t$matches = $matches->sortByDesc('total');\n\t\t\t$typeAheadCollection = $matches->take(5)->pluck('name');\n\t\t\n\t\t\t$typeAheadCollection = $typeAheadCollection->sort();\n\t\t\t\n\t\t\tforeach ($typeAheadCollection as $typeAhead)\n\t\t\t{\n\t\t\t\tarray_push($values, ['value' => $typeAhead, 'label' => $typeAhead]);\n\t\t\t}\t \n\t\t}\n\t\t\n\t\treturn $values;\n\t}", "function getSearchTerms(ProductInterface $product);", "protected function getDescriptionQuery()\n {\n return $this->descriptionQuery;\n }", "function findKeyword() {\n \n }", "public function index()\n {\n return $this->user->recipeLists()->get(['title', 'id']);\n }", "public function index()\n {\n $request = request();\n $category_id = $request->input('category_id');\n $keyword = $request->input('q');\n\n $products = Product::when($category_id, function($query, $category_id) {\n return $query->where('category_id', $category_id);\n })\n ->when($keyword, function($query, $keyword) {\n return $query->where('name', 'LIKE', \"%$keyword%\")\n ->orWhere('description', 'LIKE', \"%$keyword%\");\n })\n ->with('category')\n ->paginate();\n\n return $products;\n }", "static function get_keywords($post_id, $title = null){\n\t\t\t$keywords = get_post_meta($post_id, 'affiliate_keywords', true);\t\t\t\n\t\t\treturn empty($keywords) ? '' : $keywords;\n\t\t}", "public function search_lookbook() {\n\n\t\tif ( ! current_user_can( 'manage_woocommerce' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$keyword = isset($_GET['keyword'])? sanitize_text_field($_GET['keyword']):'';\n\n\t\tif ( empty( $keyword ) ) {\n\t\t\tdie();\n\t\t}\n\t\t$arg = array(\n\t\t\t'post_status' => 'publish',\n\t\t\t'post_type' => 'woocommerce-lookbook',\n\t\t\t'posts_per_page' => 50,\n\t\t\t's' => $keyword\n\n\t\t);\n\t\t$the_query = new WP_Query( $arg );\n\t\t$found_products = array();\n\t\tif ( $the_query->have_posts() ) {\n\t\t\twhile ( $the_query->have_posts() ) {\n\t\t\t\t$the_query->the_post();\n\n\t\t\t\t$product = array( 'id' => get_the_ID(), 'text' => get_the_title() );\n\t\t\t\t$found_products[] = $product;\n\t\t\t}\n\t\t}\n\t\twp_send_json( $found_products );\n\t\tdie;\n\t}", "public function test_search_item_result_with_keyword(){\n $this->browse(function (Browser $browser) {\n $browser->visit('/item-search')\n ->assertPathIs('/item-search')\n ->select('type', 1)\n ->value('#keyword', 'truck')\n ->value('#minprice', '10000')\n ->value('#maxprice', '20000')\n ->click('button[type=\"submit\"]')\n ->assertPathIs('/item-search-result')\n ->assertSee(\"Details\");\n });\n }", "public static function search() {\n\n $string = Input::get('string');\n\n $results = Artist::Where('name', 'like', \"$string%\")->get();\n\n return ($results->toArray());\n }", "function search($keywords)\r\n {\r\n\r\n }", "public function keywordSearch()\n {\n $keyword_search = $this->getPublisher()->getKeywordSearch();\n \n $ks['scope'] = $keyword_search['config']['scope'];\n $ks['persist_sort'] = $keyword_search['config']['persist_sort'];\n $ks['persist_view'] = $keyword_search['config']['persist_view'];\n $ks['persist_input'] = $keyword_search['config']['persist_input'];\n $ks['route'] = $keyword_search['route'];\n $ks['inputs'] = $keyword_search['base_parameters'];\n $ks['keyword'] = $keyword_search['keyword'];\n\n $ks['label'] = $ks['persist_input'] ? $ks['keyword'] : $keyword_search['label_search'];\n $ks['value'] = $ks['persist_input'] ? $ks['keyword'] : '';\n \n $html = \"<form class=\\\"navbar-form navbar-left\\\" method=\\\"get\\\" action=\\\"\".$ks['route'].\"\\\" name=\\\"fKeywordQuery\\\">\";\n\n foreach($ks['inputs'] as $key => $value) {\n $html .= \"\\n <input type=\\\"hidden\\\" name=\\\"\".$key.\"\\\" value=\\\"\".$value.\"\\\">\";\n }\n\n $html .= \"\\n <input type=\\\"search\\\" class=\\\"form-control\\\" name=\\\"keyword\\\" placeholder=\\\"\"\n .$ks['label'].\"\\\" value=\\\"\" .$ks['value'].\"\\\" onchange=\\\"submit\\\">\";\n $html .= \"\\n </form>\";\n \n return $html;\n }", "function dp_meta_keywords() {\n\t$keywords = '';\n\n\tif ( is_singular() && !is_preview() ) {\n\t\t$post = get_queried_object();\n\t\t$taxonomies = get_object_taxonomies( $post->post_type );\n\t\tif ( is_array( $taxonomies ) ) {\n\t\t\tforeach ( $taxonomies as $tax ) {\n\t\t\t\tif ( $terms = get_the_term_list( get_queried_object_id(), $tax, '', ', ', '' ) )\n\t\t\t\t\t$keywords[] = $terms;\n\t\t\t}\n\t\t\tif ( !empty( $keywords ) )\n\t\t\t\t$keywords = join( ', ', $keywords );\n\t\t}\n\t}\n\n\tif(!empty($keywords))\n\t\t$keywords = '<meta name=\"keywords\" content=\"' . esc_attr( strip_tags( $keywords ) ) . '\" />' . \"\\n\";\n\n\techo apply_filters( 'dp_meta_keywords', $keywords );\n}", "public function getQueryKeywords()\n {\n return $this->queryKeywords;\n }", "public function search(Request $r){\n\n $keyword = $r->keyword;\n\n $products = Product::where('name', 'LIKE', '%' . $keyword . '%')->limit(24)->get();\n\n\n $seo_data = array(\n 'title' => $keyword, \n 'tag' => \"search,\".$keyword, \n 'description' => \"shop page\", \n );\n\n \n\n return view('public.product.search',compact('products','seo_data'));\n}", "public function search()\n\t{\n\t\t$snippets = Snippet::where( 'title', 'LIKE', '%'.Input::get('search').'%')->paginate(10);\n\n\t\treturn View::make('admin.snippets')\n\t\t\t->with('snippets', $snippets );\n\t}", "public function get_keywords() {\n return [ 'autostop', 'cta', 'video', 'player', 'embed' ];\n }", "function get_post_from_name($id){\n\t\t$hsl = $this->db->query(\"SELECT * FROM `jsts_post` WHERE `keywords` LIKE '%\".$id.\"%'\");\n\t\treturn $hsl;\n\t}", "protected function buildSearchQuery($searchPhrase){\n\t\t\n\t\t$searchParts = explode(' ',trim($searchPhrase));\n\t\t$str = '';\n\t\tforeach($searchParts as $part) {\n\t\t\t$str .= \"iL.title LIKE '%\".$part.\"%' or iLT.title like '%\".$part.\"%' OR \";\n\t\t\t\n\t\t} \n\t\treturn substr($str, 0, -3);\n\t}", "private function setSearchstring(){\n $search_req = $this->main->getArrayFromSearchString($_GET['content_search']);\n\n $searchstring = '';\n\n foreach($search_req as $key => $val){\n if(strlen($val) > 0){\n $searchstring .= \"`name` LIKE '%\".DB::quote($val).\"%' OR \";\n };\n };\n\n $searchstring .= \"`name` LIKE '%\".DB::quote($_GET['content_search']).\"%'\";\n\n return $searchstring;\n }", "public function search( $keywords ){\n $query = \"SELECT \n @pid := postID AS postID,\n postTitle,\n postBriefDescription,\n ticketCapacity,\n @photoID := ( SELECT photoID FROM photoPost WHERE postID = @pid LIMIT 1 ) AS photoName,\n ( SELECT photoName FROM photo WHERE photoID = @photoID ) AS photoName\n \n FROM post \n WHERE ( post.postTitle LIKE ? OR post.postBriefDescription LIKE ? ) \";\n \n //pad keywords with %keyword%\n $search_param = \"%$keywords%\";\n \n $statement = $this -> connection -> prepare($query);\n $statement -> bind_param('ss',$search_param, $search_param);\n try{\n if($statement -> execute() == false ){\n throw new Exception('query error');\n }\n else{\n $result = $statement -> get_result();\n if( $result -> num_rows > 0 ){\n $this -> searchTotal = $result -> num_rows;\n while( $row = $result -> fetch_assoc() ){\n array_push( $this -> searchResult, $row );\n }\n }\n return $this -> searchResult;\n }\n }\n catch(Exception $exc){\n error_log($exc -> getMessage() );\n }\n }", "public function actionSuggestTags()\n {\n if (isset($_GET['q']) && ($keyword = trim($_GET['q'])) !== '') {\n $tags = Tag::model()->suggestTags($keyword);\n if ($tags !== array())\n echo implode(\"\\n\", (array)$tags);\n }\n }", "private function searchTag()\n {\n $term = $_REQUEST['term'];\n \n $list = array();\n $sql = \"SELECT * \n FROM \" . TAGS_TBL . \" \n WHERE tag_title LIKE '$term%'\";\n try\n {\n $rows = $this->db->select($sql);\n }\n catch(Exception $Exception){}\n \n if($rows)\n {\n foreach($rows as $index => $row)\n {\n $list[] = stripslashes(trim(ucwords(strtolower($row->tag_title))));\n }\n }\n \n $str = implode('\",\"', $list);\n if($str)\n {\n echo '[\"' . $str . '\"]';\n }\n else\n {\n echo '[]';\n }\n \n exit;\n }", "function _show_search_keywords ($input = \"\") {\n\t\t// Get input params\t\t\n\t\t$display_limit\t\t\t= intval(!empty($input[\"display_limit\"]) && $input[\"display_limit\"] < $this->KEYWORDS_DISPLAY_LIMIT ? $input[\"display_limit\"] : $this->KEYWORDS_DISPLAY_LIMIT);\n\t\t$search_words\t\t\t= $input[\"search_words\"];\n\t\t$type\t\t\t\t\t= in_array($input[\"display_type\"], [\"most_popular\",\"random\"]) ? $input[\"display_type\"] : \"most_popular\";\n\t\t$only_from_current_site\t= intval($input[\"only_from_current_site\"]);\n\t\t$fill_with_popular\t\t= $input[\"fill_with_popular\"];\n\t\t// Most popular keywords\n\t\t$this->_most_popular = main()->get_data(\"search_keywords_most_popular\");\n\t\t// Stop if no popular keywords found\n\t\tif (empty($this->_most_popular)) {\n\t\t\treturn false;\n\t\t}\n\t\t// Process keywords by given params\n\t\tif (empty($search_words) && $type == \"most_popular\") {\n\t\t\t$array_from_db = $this->_most_popular;\n\t\t} else {\n\t\t\tif (!empty($search_words)) {\n\t\t\t\t$search_words_array = explode(\",\", $search_words);\n\t\t\t}\n\t\t\t$array_from_db = false; // No not change this, depends on cache !!\n\t\t\t// Try to get data from cache\n\t\t\tif (!empty($search_words_array) && $this->CACHE_ENABLED) {\n\t\t\t\t$se_cache_name = md5($search_words);\n\t\t\t\t$array_from_db = $this->_cache_get($se_cache_name);\n\t\t\t}\n\t\t\t// Prepare and get data from db\n\t\t\tif (!empty($search_words_array) && empty($array_from_db) && !is_array($array_from_db)) {\n\t\t\t\t// use full text searching\n\t\t\t\tif ($this->USE_FULLTEXT_SEARCH) {\n\t\t\t\t\t$search_words_sql = \" AND MATCH(text) AGAINST ('\"._es(implode(\" \", $search_words_array)).\"' IN BOOLEAN MODE) \";\n\t\t\t\t} else {\n\t\t\t\t\tforeach ((array)$search_words_array as $k => $v) {\n\t\t\t\t\t\t$v = trim($v);\n\t\t\t\t\t\tif (empty($v)) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tmp_array[$k] = \" text LIKE '%\"._es($v).\"%' \";\n\t\t\t\t\t}\n\t\t\t\t\tif (!empty($tmp_array)) {\n\t\t\t\t\t\t$search_words_sql = \" AND (\".implode(\" OR \", $tmp_array).\") \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$Q = db()->query(\n\t\t\t\t\t\"SELECT site_url,text,hits \n\t\t\t\t\tFROM \".db('search_keywords').\" \n\t\t\t\t\tWHERE 1 \".(!empty($search_words_sql) ? $search_words_sql : \"\").\" \n\t\t\t\t\t\".($this->MIN_HITS_DISPLAY_LIMIT ? \"HAVING hits > \".$this->MIN_HITS_DISPLAY_LIMIT : \"\").\"\n\t\t\t\t\tORDER BY \".(/*$type == \"most_popular\" ? */\"hits DESC\"/* : \"RAND()\"*/).\" \n\t\t\t\t\tLIMIT \".intval($display_limit * $this->DATA_FROM_DB_MULTIPLY)\n\t\t\t\t);\n\t\t\t\twhile ($A = db()->fetch_assoc($Q)) $array_from_db[$A[\"text\"]] = $A[\"site_url\"];\n\t\t\t\t// Put cache file\n\t\t\t\tif ($this->CACHE_ENABLED) {\n\t\t\t\t\t$this->_cache_put($se_cache_name, $array_from_db);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tforeach ((array)$array_from_db as $text => $site_url) {\n\t\t\tif ($only_from_current_site && (false === strpos($site_url, SITE_ADVERT_URL))) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!strlen($text)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// Another check for display number\n\t\t\tif (++$c > $display_limit && $type == \"most_popular\") {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Process items\n\t\t\t$text = str_replace(\"+\", \" \", str_replace([\"\\\"\",\"'\"], \"\", $text));\n\t\t\t$keywords[$text] = [\n\t\t\t\t\"site_url\"\t=> _prepare_html($site_url),\n\t\t\t\t\"text\"\t\t=> _prepare_html($text),\n\t\t\t];\n\t\t}\n\t\t// Emulate ORDER BY RAND()\n\t\tif ($type != \"most_popular\") {\n\t\t\t$_tmp_keys = array_keys((array)$keywords);\n\t\t\tif (!empty($_tmp_keys)) {\n\t\t\t\tshuffle($_tmp_keys);\n\t\t\t}\n\t\t\tforeach ((array)$_tmp_keys as $_cur_keyword) {\n\t\t\t\tif (++$d > $display_limit) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t$_tmp_keywords[$_cur_keyword] = $keywords[$_cur_keyword];\n\t\t\t}\n\t\t\tif (!empty($_tmp_keywords)) {\n\t\t\t\t$keywords = $_tmp_keywords;\n\t\t\t\tunset($_tmp_keywords);\n\t\t\t\tunset($_tmp_keys);\n\t\t\t}\n\t\t}\n\t\t// Check if we are using search words mode but found too less records\n\t\t$need_to_fill = (int)$display_limit - count($keywords);\n\t\t// Check if we need to fill \n\t\tif (!empty($search_words) && $fill_with_popular && $need_to_fill) {\n\t\t\t// Prepare most popular keywords\n\t\t\t$prepared_popular = [];\n\t\t\tforeach ((array)$this->_most_popular as $text => $site_url) {\n\t\t\t\tif ($only_from_current_site && (false === strpos($site_url, SITE_ADVERT_URL))) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (!strlen($text)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$prepared_popular[$text] = $site_url;\n\t\t\t}\n\t\t\t// Process fill\n\t\t\tfor ($i = 1; $i <= $need_to_fill; $i++) {\n\t\t\t\t$rand_key\t= array_rand($prepared_popular);\n\t\t\t\t$text\t\t= $rand_key;\n\t\t\t\t$site_url\t= $prepared_popular[$text];\n\t\t\t\t// Process items\n\t\t\t\t$text = str_replace(\"+\", \" \", str_replace([\"\\\"\",\"'\"], \"\", $text));\n\t\t\t\t$keywords[$text] = [\n\t\t\t\t\t\"site_url\"\t=> _prepare_html($site_url),\n\t\t\t\t\t\"text\"\t\t=> _prepare_html($text),\n\t\t\t\t];\n\t\t\t}\n\t\t}\n\t\tif (isset($keywords[\"\"])) {\n\t\t\tunset($keywords[\"\"]);\n\t\t}\n\t\t// Stop here if nothing to display\n\t\tif (empty($keywords)) {\n\t\t\treturn false;\n\t\t}\n\t\t// Process template\n\t\t$replace = [\n\t\t\t\"keywords\" => $keywords,\n\t\t];\n\t\treturn tpl()->parse(__CLASS__.\"/main\", $replace);\n\t}", "function generateByMealType($heading)\n{\n\t$recipe = array();\n\t$recipeSelector = new Recipe;\n\t$mealType = \"\";\n\t$candidates = array();\n\t\n\tarray(\"Jump-Start the Day\", \"Breakfast Ideas\", \"Delicious Desserts\", \"Sweet Treats\", \"Time for Dessert\", \"Lunch Time\", \"Lovable Lunches\", \"Dinner Dining\", \"Supper Time\", \n\t\t\t\t\t\t\t\"Appetizers\", \"Starters\", \"Snacks\", \"Snack Ideas\", \"Adult Drinks\", \"Alcoholic Beverages\", \"Quench Your Thirst!\", \"Tasty Beverages\");\n\n\t//get recipe based on given meal category\n\tswitch ($heading)\n\t{\n\t\tcase \"Jump-Start the Day\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Breakfast\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Breakfast Ideas\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Breakfast\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Delicious Desserts\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Dessert\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Sweet Treats\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Dessert\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Time for Dessert\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Dessert\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Lunch Time\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Lunch\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Lovable Lunches\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Lunch\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Dinner Dining\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Dinner\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Supper Time\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Dinner\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\n\t\tcase \"Appetizers\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Appetizer\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Starters\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Appetizer\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Snacks\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Snack\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Snack Ideas\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Snack\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Adult Drinks\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Alcohol\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Alcoholic Beverages\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Alcohol\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Quench Your Thirst!\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Beverage\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcase \"Tasty Beverages\":\n\t\t{\n\t\t\t$candidates = $recipeSelector->selectByMealType(\"Beverage\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\tif (count($candidates) != 0)\n\t{\n\t\t$recipe = selectRandomCandidate($candidates);\n\t}\n\t\n\telse \n\t{\n\t\t$recipe = null;\n\t}\n\n\treturn $recipe;\n}", "public function getSearchText();", "public function retrieveData(){\n\t\t$mParser = new RecipeParser;\n\t\t$mParser->retrieveInfoForObject($this);\n\t}", "public abstract function search_items(\\WP_REST_Request $request);", "private function retrieve_caption() {\n\t\treturn $this->retrieve_excerpt_only();\n\t}", "public function get_row_by_title($goods_title){\n $ar_filter = array('title' => trim($goods_title));\n return $this->get_row_by($ar_filter);\n }", "public function getSearch()\n {\n\t $query = Input::get('q','');\n\n\t // If the input is empty, return empty JSON response\n\t if(trim(urldecode($query)) == '')\n\t return Response::json(['data' => []], 200);\n\n\t // Search the data in DB and retrieve a list of items matching the search query\n\t $data1 = DB::table('songs')\n\t ->where('title','like','%'.$query.'%')\n\t ->orderBy('title','asc')\n\t ->take(5)\n\t ->get(['id', 'title', 'image']);\n\n\t $data2 = DB::table('videos')\n\t ->where('title','like','%'.$query.'%')\n\t ->orderBy('title','asc')\n\t ->take(5)\n\t ->get(['id', 'title', 'image']);\n\n\t $data3 = DB::table('galleries')\n\t ->where('caption','like','%'.$query.'%')\n\t ->orderBy('caption','asc')\n\t ->take(5)\n\t ->get(['id', 'caption', 'image']);\n\n\t $data3 = DB::table('galleries')\n\t ->where('caption','like','%'.$query.'%')\n\t ->orderBy('caption','asc')\n\t ->take(5)\n\t ->get(['id', 'caption', 'image']);\n\n\t // Return JSON-encoded list of items as a response to the request\n \treturn Response::json(['data' => $data]);\n\n }", "function getBasicDetailsByTitle($sek_title)\r\n {\r\n $log = FezLog::get();\r\n $db = DB_API::get();\r\n\r\n $stmt = \"SELECT\r\n *\r\n FROM\r\n \" . APP_TABLE_PREFIX . \"search_key\r\n WHERE \";\r\n if (is_numeric(strpos(APP_SQL_DBTYPE, \"pgsql\"))) { //pgsql is case sensitive\r\n $stmt .= \" sek_title ILIKE \" . $db->quote($sek_title);\r\n } else {\r\n $stmt .= \" sek_title=\" . $db->quote($sek_title);\r\n }\r\n try {\r\n $res = $db->fetchRow($stmt, array(), Zend_Db::FETCH_ASSOC);\r\n }\r\n catch (Exception $ex) {\r\n $log->err($ex);\r\n return '';\r\n }\r\n $res['sek_title_db'] = Search_Key::makeSQLTableName($res['sek_title']);\r\n return $res;\r\n }", "function helpSearchResult($r, $resultAsTitle=false) {\r\n$IPBHTML = \"\";\r\n//--starthtml--//\r\n$IPBHTML .= <<<EOF\r\n<php>\n$st = IPSSearchRegistry::get('in.search_higlight');\n</php>\n<div class='result_info'>\n\t<h3><a href='{parse url=\"app=core&amp;module=help&amp;do=01&amp;HID={$r['type_id_2']}&amp;hl={$st}\" base=\"public\"}'>{$r['content_title']}</a></h3>\n\t<if test=\"showHelpContent:|:!$resultAsTitle\">\n\t<p>\n\t\t{$r['content']}\n\t</p>\n\t</if>\n</div>\r\nEOF;\r\n//--endhtml--//\r\nreturn $IPBHTML;\r\n}", "public function search()\n {\n $keyword = Input::get('q');\n $items = with(new MasterCategory())->search($keyword);\n\n return $this->renderList($items);\n }" ]
[ "0.6260258", "0.6142933", "0.59934634", "0.5904319", "0.5824127", "0.5709628", "0.570016", "0.56579196", "0.5611754", "0.5606446", "0.5584824", "0.5473852", "0.54737926", "0.54268765", "0.541755", "0.53800887", "0.53564155", "0.5346712", "0.53352284", "0.5276532", "0.5252896", "0.5251571", "0.5239298", "0.5193318", "0.5188285", "0.5186121", "0.5159754", "0.51331055", "0.51240975", "0.511011", "0.5090186", "0.5064521", "0.50470674", "0.5033862", "0.5011336", "0.50061375", "0.5001354", "0.49949223", "0.4992992", "0.49878913", "0.49762088", "0.49707386", "0.49553457", "0.49520516", "0.49473268", "0.49446896", "0.49400303", "0.49195755", "0.4912051", "0.49025473", "0.48967493", "0.48891032", "0.4884818", "0.4882205", "0.4880331", "0.487388", "0.4872541", "0.4850816", "0.48479453", "0.4847746", "0.48470294", "0.48450288", "0.48441634", "0.4838737", "0.48367646", "0.48337156", "0.48204002", "0.48034477", "0.47995865", "0.4794695", "0.47938597", "0.47936141", "0.47912097", "0.47839022", "0.47829568", "0.47829312", "0.478054", "0.47796565", "0.4778131", "0.4778025", "0.47770715", "0.47756007", "0.47679263", "0.47676456", "0.47648326", "0.47645268", "0.47641948", "0.47603792", "0.47586578", "0.4753526", "0.47521377", "0.47452384", "0.4739551", "0.47384322", "0.4736463", "0.47317356", "0.47312397", "0.47280934", "0.4727689", "0.47219977" ]
0.67255175
0
Returns recipes title only for keywords specified by query string
public function searchRecipesTitle($query) { $query = '%'.$query.'%'; $this->db->query('SELECT * FROM recipes WHERE ( title LIKE ? )'); $this->db->bind(1, $query); return $this->db->resultSet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTitle()\n\t{\n\t\t\n\t\t$query = new Bin_Query();\t\n\t\t$title=$_GET['word'];\n\t\tif($title!='')\n\t\t{\n\t\t\t$sql= \"SELECT title FROM products_table WHERE title like '\".$title.\"%'\"; \n\t\t\t$query->executeQuery($sql);\n\t\t\t$arr=$query->records;\n\t\t\treturn Display_DManageProducts::getTitle($query->records);\t\t\t\t\t\n\t\t}\t\n\n\t}", "abstract function getKeywords();", "public function searchRecipes($query) {\n $query = '%'.$query.'%';\n $this->db->query('SELECT * FROM recipes WHERE ( title LIKE ? OR description LIKE ? )');\n $this->db->bind(1, $query);\n $this->db->bind(2, $query);\n return $this->db->resultSet();\n }", "function searchRecipe($text=false){\n\t\t$filter=false;\n\t\tif($text!=false){\n\t\t\t$filter=\"Name like '%$text%'\";\n\t\t}\n\t\t\n\t\treturn $this->getRecipe($filter);\n\t}", "public function searchTitle(Request $request)\n {\n $query = $request->request->get('search');\n $em = $this->getDoctrine()->getManager();\n $result = $em->getRepository('AppBundle:Recipe')->searchTitle($query);\n\n return $this->render('recipe/search.html.twig', [\n 'query' => $query,\n 'recipes' => $result,\n ]);\n }", "function test_general_entries_search_on_post_title() {\n\t\t$search_string = \"Jamie's\";\n\t\t$items = self::generate_and_run_search_query( 'create-a-post', $search_string );\n\t\t$msg = 'A general search for ' . $search_string . ' in posts table';\n\t\tself::run_entries_found_tests( $msg, $items, 2, array( 'post-entry-1', 'post-entry-3' ) );\n\t}", "function searchByTitle($title){\n $name = $title['search'];\n return db()->QUERY(\"SELECT * FROM posts WHERE title LIKE '%$name%' ORDER BY title\");\n }", "function uvasomrfd_do_search_title() {\n\t$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );\n\tif(!is_page('27718')){\n\t//if (!strpos($_SERVER[\"REQUEST_URI\"], 'faculty-mentoring-undergraduates')) {\n\tif (is_tax( 'primary')||is_tax( 'training-grant')) {$preterm='Department of ';}\n\tif (is_tax( 'research-discipline')) {$preterm='Research Discipline: ';}\n\tif (is_tax( 'training-grant')) {$preterm='Training Program: ';}\n\t//if (strpos($_SERVER[\"REQUEST_URI\"], '?undergraduates')){$preterm='Faculty Accepting Undergraduates';$term->name='';}\n$title = sprintf( '<div class=\"clearfix\"></div><div id=\"uvasom_page_title\">'.genesis_do_breadcrumbs().'<h1 class=\"archive-title\">%s %s</h1>', apply_filters( 'genesis_search_title_text', __( $preterm, 'genesis' ) ), $term->name).'</div>';\n\techo apply_filters( 'genesis_search_title_output', $title ) . \"\\n\";\n\t}\n}", "public function getKeywords();", "public function searchByKeyword($query);", "function test_field_specific_search_on_post_title() {\n\n\t\t// Single word. Two matching entries should be found.\n\t\t$search_string = \"Jamie's\";\n\t\t$field_key = 'yi6yvm';\n\t\t$items = self::generate_and_run_field_specific_query( 'create-a-post', $field_key, $search_string );\n\t\t$msg = 'A search for ' . $search_string . ' in post title field ' . $field_key;\n\t\tself::run_entries_found_tests( $msg, $items, 2, array( 'post-entry-1', 'post-entry-3' ) );\n\n\t\t// Single word. No entries should be found.\n\t\t$search_string = 'TextThatShouldNotBeFound';\n\t\t$items = self::generate_and_run_field_specific_query( 'create-a-post', $field_key, $search_string );\n\t\t$msg = 'A search for ' . $search_string . ' in post title field ' . $field_key;\n\t\tself::run_entries_not_found_tests( $msg, $items );\n\t}", "public function Filter_title($title, $negate = false) {\r\n\t\t$title\t\t= trim($title);\r\n\t\t$queryParts\t= false;\r\n\r\n\t\tif( $title !== '' ) {\r\n\t\t\t$titleParts\t= explode(' ', $title);\r\n\r\n\t\t\t$where\t= TodoyuSql::buildLikeQueryPart($titleParts, array(self::TABLE . '.title'), $negate);\r\n\r\n\t\t\t$queryParts = array(\r\n\t\t\t\t'where'\t=> $where\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn $queryParts;\r\n\t}", "static function get_keywords($post_id, $title = null){\n\t\t\t$keywords = get_post_meta($post_id, 'affiliate_keywords', true);\t\t\t\n\t\t\treturn empty($keywords) ? '' : $keywords;\n\t\t}", "protected function getTitleQuery()\n {\n return $this->titleQuery;\n }", "function genesis_do_search_title() {\n\n\t$title = sprintf( '<div class=\"archive-description\"><h1 class=\"archive-title\">%s %s</h1></div>', apply_filters( 'genesis_search_title_text', __( 'Search results for: ', 'genesis' ) ), get_search_query() );\n\n\techo apply_filters( 'genesis_search_title_output', $title ) . \"\\n\";\n\n}", "function findKeyword() {\n \n }", "function h_keywords($cat_id){\r\n\t\r\n\t\tconnect(); \r\n\t\t\t$cp_id = clean_input($cat_id);\r\n\t\t\t\r\n\t\t\r\n\t\t\t//\r\n\t\t\tif(!empty($_GET['cat_id'])){ \r\n\t\t\t\t$xyquery = \"SELECT cat_desc_long FROM categories WHERE cat_id = '$cp_id'\";\r\n\t\t\t\t$xyresult = mysql_query($xyquery) or die(mysql_error());\r\n\t\t\t\tlist($cat_desc_long)= mysql_fetch_row($xyresult);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t$heading = $cat_desc_long;\r\n\t\t\t$heading2 = explode('<h2>',$heading);\r\n\t\t\t$heading2 = explode('</h2>', $heading2[1]);\r\n\t\t\t\r\n\t\t\t\tif(!empty($heading2[0])) echo \",\".$heading2[0];\r\n\t\t\t$heading = $cat_desc_long;\r\n\t\t\t$heading3 = explode('<h1>',$heading);\r\n\t\t\t$heading3 = explode('</h1>', $heading3[1]);\r\n\t\t\t\r\n\t\t\t\tif(!empty($heading3[0])) echo \",\".$heading3[0];\r\n\t\t\t$heading = $cat_desc_long;\r\n\t\t\t$heading4 = explode('<h3>',$heading);\r\n\t\t\t$heading4 = explode('</h3>', $heading4[1]);\r\n\t\t\t\r\n\t\t\t\tif(!empty($heading4[0])) echo \",\".$heading4[0];\t\r\n\t\t\t\t\r\n\t\t}", "function tck_add_random( $keyword, $url, $title ) {\n return tck_get_prefix(0) . $keyword;\n }", "function find_all_product_info_by_title($title){\n global $db;\n $sql = \"SELECT * FROM products \";\n $sql .= \" WHERE name ='{$title}'\";\n $sql .=\" LIMIT 1\";\n return find_by_sql($sql);\n }", "function get_title() {\n\t\tglobal $Thesaurus;\n\t\tif (isset($_GET['p'])) {\n\t\t\techo ucwords($_GET['p']);\n\t\t} else if (isset($_GET['cat'])) {\n\t\t\techo ucwords($Thesaurus[$_GET['cat']]['T']);\n\t\t} else {\n\t\t\techo 'Home';\n\t\t}\n\t}", "function get_post_from_name($id){\n\t\t$hsl = $this->db->query(\"SELECT * FROM `jsts_post` WHERE `keywords` LIKE '%\".$id.\"%'\");\n\t\treturn $hsl;\n\t}", "public function getMetaKeywords();", "function edan_search_set_title( $title )\n {\n $options = new esw_options_handler();\n $cache = new esw_cache_handler();\n\n /**\n * if in the loop and the title is cached (or if object group is retrieved successfully)\n * modify the page title on display.\n */\n if(in_the_loop() && edan_search_name_from_url() == $options->get_path() && $options->get_title() != '')\n {\n if(get_query_var('edanUrl'))\n {\n $object = $cache->get()['object'];\n\n if($object)\n {\n if(property_exists($object, 'content') && property_exists($object->{'content'}, 'descriptiveNonRepeating'))\n {\n if(property_exists($object->{'content'}->{'descriptiveNonRepeating'}, 'title'))\n {\n $title = $object->{'content'}->{'descriptiveNonRepeating'}->{'title'}->{'content'};\n }\n }\n elseif(property_exists($object, 'title'))\n {\n if(property_exists($object->{'title'}, 'content'))\n {\n $title = $this->object->{'title'}->{'content'};\n }\n else\n {\n $title = $this->object->{'title'};\n }\n }\n }\n }\n else\n {\n $title = $options->get_title();\n }\n }\n\n return $title;\n }", "public function getTitle($route = NULL) {\n if ($route === NULL) {\n $route = $this->routeMatch->getRouteName();\n }\n $facet = $this->request->get('facets_query');\n\n $title = $this->getTitleFromRoute($route);\n $search = $this->request->query->all();\n\n if ($route === 'search.view') {\n if (!empty($search)) {\n return t('@title results', ['@title' => $title]);\n }\n else {\n return $title;\n }\n }\n // Applying the term being viewed to Judiciary Sentencing guidelines page title.\n elseif ($route === 'view.judicial_decisions_search.sentence_guide_search_page') {\n $current_path = $this->currentPath->getPath();\n // Match the last number in the URL string with the type filter applied.\n if (preg_match_all('/.*\\/type\\/.*-(\\d+)/', $current_path, $matches)) {\n $tid = $matches[1][0];\n if (is_numeric($tid)) {\n $decision_type = Term::load($tid);\n $term_name = $decision_type->getName();\n $title = 'Sentencing guidelines - ' . $term_name;\n }\n }\n else {\n $title = 'Sentencing guidelines';\n }\n return $title;\n }\n else {\n if (!empty($facet) || !empty($search)) {\n return t('@title - search results', ['@title' => $title]);\n }\n else {\n return $title;\n }\n }\n }", "public function search($keywords) {\n\n\t\t$sql = \"SELECT * FROM {$this->table_name} WHERE title LIKE '%{$keywords}%' OR overview LIKE '%{$keywords}%'\";\n\n\t\t$stmt = $this->conn->query($sql);\n\t\treturn $stmt->fetchAll();\n\t}", "function searchByKeyword($searchTerm) {\n $searchTerm=striptags(htmlspecialchars($searchTerm));\n $query=\"SELECT * FROM ads WHERE description LIKE '%{$searchTerm}%'\";\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 }", "public function searchTitleActionGet()\n {\n $title = \"Search for a movie by title\";\n $searchTitle = $this->app->request->getGet(\"searchTitle\");\n\n $this->app->db->connect();\n\n if ($searchTitle) {\n $sql = \"SELECT * FROM movie WHERE title LIKE ?;\";\n $res = $this->app->db->executeFetchAll($sql, [$searchTitle]);\n }\n\n $this->app->page->add(\"movie/search-title\", [\n \"searchTitle\" => $searchTitle,\n ]);\n if (isset($res)) {\n $this->app->page->add(\"movie/show-all\", [\n \"res\" => $res,\n ]);\n }\n\n return $this->app->page->render([\n \"title\" => $title,\n ]);\n }", "public function getTitle()\n {\n return \\Yii::t('app', 'Recipe');\n }", "function searchRecipes($search_term, $category='all')\r\n {\r\n //add wildcards to search\r\n $search_term = '%' . $search_term . '%';\r\n //search all categories\r\n if($category == 'all') {\r\n //define query\r\n $query = \"SELECT * FROM recipe\r\n WHERE (title LIKE :search\r\n OR description LIKE :search\r\n OR ingredients LIKE :search\r\n OR instructions LIKE :search\r\n OR time LIKE :search)\r\n ORDER BY date_created DESC\";\r\n\r\n //prepare statement\r\n $statement = $this->_db->prepare($query);\r\n\r\n //bind parameter\r\n $statement->bindParam(':search', $search_term, PDO::PARAM_STR);\r\n }\r\n //search category supplied\r\n else {\r\n //define query\r\n $query = \"SELECT * FROM recipe\r\n WHERE (category = :category)\r\n AND (title LIKE :search\r\n OR description LIKE :search\r\n OR ingredients LIKE :search\r\n OR instructions LIKE :search\r\n OR time LIKE :search)\r\n ORDER BY date_created DESC\";\r\n\r\n //prepare statement\r\n $statement = $this->_db->prepare($query);\r\n\r\n //bind parameters\r\n $statement->bindParam(':category', $category, PDO::PARAM_STR);\r\n $statement->bindParam(':search', $search_term, PDO::PARAM_STR);\r\n }\r\n\r\n //execute\r\n $statement->execute();\r\n\r\n //get result\r\n $result = $statement->fetchAll(PDO::FETCH_ASSOC);\r\n return $result;\r\n }", "public function actionRecipesForPartialName()\n {\n $recipes = RecipeDao::findAll([\"name LIKE\" => \"%\" . SiteUtil::getUrlParameters()[2]. \"%\"] );\n echo json_encode($this->recipesToArray($recipes));\n }", "public function scopeTitle($query, $input)\n {\n return $query->with('movie')->where('title', 'LIKE', '%'.$input.'%');\n /*$result = $query->with('movie')->where('title', 'LIKE', '%' . $input . '%')\n ->join('movie_tag', 'torrents.movie_id', '=', 'movie_tag.movie_id')\n ->join('tags', 'movie_tag.tag_id', '=', 'tags.id')->get();*/\n }", "public function get_row_by_title($goods_title){\n $ar_filter = array('title' => trim($goods_title));\n return $this->get_row_by($ar_filter);\n }", "function mrl_page_title( $title ) {\r\n global $wp, $wp_query;\r\n $wp->parse_request();\r\n\r\n $title = '';\r\n\r\n if ( get_query_var('my_reading_library_library') )\r\n $title = 'My Library';\r\n\r\n if ( get_query_var('my_reading_library_id') ) {\r\n $book = get_book(intval(get_query_var('my_reading_library_id')));\r\n $title = $book->title . ' by ' . $book->author;\r\n }\r\n\r\n if ( !empty($title) ) {\r\n $title = apply_filters('my_reading_library_page_title', $title);\r\n $separator = apply_filters('my_reading_library_page_title_separator', ' | ');\r\n return $title.$separator;\r\n }\r\n return '';\r\n}", "public function getRecipeList($title)\n {\n $client = new client();\n $response = $client->request('GET', 'https://spoonacular-recipe-food-nutrition-v1.p.rapidapi.com/recipes/search?number=10&offset=0&query='. $title, ['headers' => [\n 'X-RapidAPI-Key' => 'fce84bdd65msh9340789ab474c49p170d1ajsn3b7244498eac']]);\n\n if($response->getStatusCode() == 200){\n $contents = json_decode($response->getBody()->getContents());\n $recipeArrayID=[];\n $recipes = $contents->results;\n if(sizeof($recipes) > 0){\n $rec = [\"recipe\" => $recipes[0], \"baseURL\" => $contents->baseUri];\n // $rec = new class{};\n // $rec->recipe = $recipes[0]; \n // $rec->baseURL= $contents->baseUri;\n\n return $rec;\n }else{\n return null;\n }\n }else{ \n return null;\n }\n }", "public function search(){\r\n\t\t//Test if the POST parameters exist. If they don't present the user with the\r\n\t\t//search controls/form\r\n\t\tif(!isset($_POST[\"search\"])){\r\n\t\t\t$this->template->display('search.html.php');\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//Get the recipe from the database\r\n\t\t$recipes = Recipe::search($_POST[\"search\"]);\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\t$this->template->recipes = $recipes;\r\n\t\r\n\t\t$this->template->display('results.html.php');\r\n\t}", "function ccontent_search()\n\t{\n\t\t$post_data = linput_post();\n\t\t$table = llang_table('content');\n\t\t$cols = array('body', 'name');\n\t\t$keywords = $post_data['keywords'];\n\n\t\tif (strlen($keywords) >= 3)\n\t\t{\n\t\t\t$data['content'] = lcrud_search($table, $cols, $keywords, 'AND `published`=\\'1\\' ORDER BY `updated` DESC');\n\n\t\t\tfor ($i = 0; $i < count($data['content']); $i++)\n\t\t\t{\n\t\t\t\t$data['content'][$i]['title'] = $data['content'][$i]['name'];\n\t\t\t\t$data['content'][$i]['link'] = mcategories_read_path($data['content'][$i]['link'], false);\n\t\t\t}\n\n\t\t\tif (!count($data['content'])) hmessage_set(l('No results.'));\n\n\t\t\tlloader_load_view('search', $data);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data['content'] = array();\n\t\t\thmessage_set(l('Keyword must be at least 3 characters long'));\n\t\t\tlloader_load_view('search', $data);\n\t\t}\n\t}", "public function index() {\n $count = Configure::read('number_of_search_results');\n\n //Get the query param q from the server\n $keyword = $_GET['q'];\n\n //Search for the recipes using the keyword\n $recipes = $this->Yummly->recipes($keyword, $count);\n\n $this->set(array(\n 'title_for_layout' => 'ChefMemo - Recipes of ' . $keyword,\n 'keyword' => $keyword,\n 'recipes' => $recipes\n ));\n\n }", "function postingSearchHandler() {\n global $inputs;\n\n $keyword = $inputs['keyword'];\n $res = getAll(\"SELECT a.*,c.name \n FROM posting a \n INNER JOIN member_posting b \n ON a.id = b.posting_id\n INNER JOIN member c \n ON c.id = b.member_id \n WHERE a.title LIKE '%$keyword%' OR a.content LIKE '%$keyword%'\");\n \n formatOutput(true, 'success',$res);\n}", "public function getSeoKeywords();", "public function getRecipeByName($searchTerm)\n {\n \n $db = getAdapter(); \n $statement = $db->createStatement(\"SELECT * FROM Recipe WHERE recipeName LIKE '%\".$searchTerm.\"%'\");\n $result = $statement->execute();\n $rowset = new ResultSet;\n $rowset->initialize($result); \n return $rowset; \n }", "function get_post_title($post, $field, $post_id = 0, $is_search = 0)\n {\n }", "function get_post_title($post, $field, $post_id = 0, $is_search = 0)\n {\n }", "function get_post_title($post, $field, $post_id = 0, $is_search = 0)\n {\n }", "function sql_search_relative_titles($mastertitle,$field2check) {\n $db = GetGlobal('db');\t\n\t $lan = $lang?$lang:getlocal();\n\t $itmname = $lan?'itmname':'itmfname';\n\t $itmdescr = $lan?'itmdescr':'itmfdescr';\n\t\t$remarks = 'itmremark';\t\n\t\t$sqlout = null;\t\t\n\t\n\t $mt = explode(' ',trim($mastertitle));\n //print_r($mt);\n $sSQL = \"select \".$this->getmapf('code').\" from products where \"; //whole words...\n\t\t \t\t\n\t foreach ($mt as $i=>$lex) {\n\t\t\n\t\t if (($la = trim($lex)) && (strlen($la)>4)) {//words max than 4 chars\n\t\t\n\t\t $ulex = strtoupper($lex);\n\t\t $dlex = strtolower($lex);\n \n\t\t $sqlout[$lex] = \"$itmname like '%$lex%' \";// or $itmdescr like '%$lex%' or $remarks like '%$lex%'\";// or \"; //as is\n\t\t //$sSQL .= \"$itmname like '% $ulex %' or $itmdescr like '% $ulex %' or $remarks like '% $ulex %' or \"; //upper case\t\t\n\t\t //$sSQL .= \"$itmname like '% $dlex %' or $itmdescr like '% $dlex %' or $remarks like '% $dlex %'\"; //lower case\t\t\n\t\t \n\t\t }//if lex\n\t\t} \n\t\t\n //print_r($sqlout); \n\t\tif ($sqlout) {\n\t\t $sSQL .= implode(' or ',$sqlout);\t\t \n\t\t return ($sSQL);\n\t\t}\n\t\telse\n\t\t return null;\n\t}", "protected function getKeywordsExample()\n {\n return '<p><b>' . __('Example') . '</b><p><p>[name][, {color} color][, {size} measurements||size][, {category}] <p>' . __('will be transformed into') . '<br>\n <p>CN Clogs Beach/Garden Clog, Blue color, 10 size, Shoes';\n }", "protected function buildSearchQuery($searchPhrase){\n\t\t\n\t\t$searchParts = explode(' ',trim($searchPhrase));\n\t\t$str = '';\n\t\tforeach($searchParts as $part) {\n\t\t\t$str .= \"iL.title LIKE '%\".$part.\"%' or iLT.title like '%\".$part.\"%' OR \";\n\t\t\t\n\t\t} \n\t\treturn substr($str, 0, -3);\n\t}", "function set_ac_search_args_title( $ep_formatted_args, $args ) {\n\t\n\tif( isset( $args['autocomplete'] ) && $args['autocomplete'] ) {\n\t\t$titleSearchTerm = '';\n\t\t\n\t\t\t$titleSearchTerm = strtolower($args['s']); \n\t\t\n\t\t\t$ep_formatted_args['query'] = array(\n\t\t\t\t\"match_phrase_prefix\" => array(\n\t\t\t\t\t\"post_title.suggest\" => array(\n\t\t\t\t\t\t\"query\" => $titleSearchTerm,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t);\n\t\t\t\n\t\t\t\n\t}\t\n\treturn $ep_formatted_args;\n}", "function title_query() {\n $titles = array();\n\n $result = db_query(\"SELECT f.title FROM {aggregator_feed} f WHERE f.fid IN (:fids)\", array(':fids' => $this->value));\n foreach ($result as $term) {\n $titles[] = check_plain($term->title);\n }\n return $titles;\n }", "function find_product_by_title($product_name){\n global $db;\n $p_name = remove_junk($db->escape($product_name));\n $sql = \"SELECT name FROM products WHERE name like '%$p_name%' LIMIT 5\";\n $result = find_by_sql($sql);\n return $result;\n }", "function sanitize_title_for_query($title)\n {\n }", "public function wpcd_app_meta_or_title_search( $query ) {\n\n\t\tglobal $typenow;\n\n\t\t$post_type = 'wpcd_app';\n\t\t$title = $query->get( '_meta_or_title' );\n\t\tif ( is_admin() && $typenow === $post_type && $query->is_search() && $title ) {\n\t\t\tadd_filter(\n\t\t\t\t'get_meta_sql',\n\t\t\t\tfunction( $sql ) use ( $title ) {\n\t\t\t\t\tglobal $wpdb;\n\n\t\t\t\t\t// Only run once.\n\t\t\t\t\tstatic $nr = 0;\n\t\t\t\t\tif ( 0 !== $nr++ ) {\n\t\t\t\t\t\treturn $sql;\n\t\t\t\t\t}\n\n\t\t\t\t\t$server_meta_search = \"{$wpdb->postmeta}.meta_key = 'parent_post_id' AND {$wpdb->postmeta}.meta_value IN ( SELECT P.ID FROM {$wpdb->posts} AS P LEFT JOIN {$wpdb->postmeta} AS PM on PM.post_id = P.ID WHERE P.post_type = 'wpcd_app_server' and P.post_status = 'private' and ( ( PM.meta_key = 'wpcd_server_provider' AND PM.meta_value LIKE '\" . esc_sql( '%' . $wpdb->esc_like( $title ) . '%' ) . \"' ) OR ( PM.meta_key = 'wpcd_server_ipv4' AND PM.meta_value LIKE '\" . esc_sql( '%' . $wpdb->esc_like( $title ) . '%' ) . \"' ) OR ( PM.meta_key = 'wpcd_server_region' AND PM.meta_value LIKE '\" . esc_sql( '%' . $wpdb->esc_like( $title ) . '%' ) . \"' ) OR ( PM.meta_key = 'wpcd_server_name' AND PM.meta_value LIKE '\" . esc_sql( '%' . $wpdb->esc_like( $title ) . '%' ) . \"' ) ) )\";\n\n\t\t\t\t\t// Modified WHERE.\n\t\t\t\t\t$sql['where'] = sprintf(\n\t\t\t\t\t\t' AND ( (%s) OR (%s) OR (%s) ) ',\n\t\t\t\t\t\t$wpdb->prepare( \"{$wpdb->posts}.post_title LIKE '%%%s%%'\", $title ),\n\t\t\t\t\t\tmb_substr( $sql['where'], 5, mb_strlen( $sql['where'] ) ),\n\t\t\t\t\t\t$server_meta_search\n\t\t\t\t\t);\n\n\t\t\t\t\treturn $sql;\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t}", "private function searchTag()\n {\n $term = $_REQUEST['term'];\n \n $list = array();\n $sql = \"SELECT * \n FROM \" . TAGS_TBL . \" \n WHERE tag_title LIKE '$term%'\";\n try\n {\n $rows = $this->db->select($sql);\n }\n catch(Exception $Exception){}\n \n if($rows)\n {\n foreach($rows as $index => $row)\n {\n $list[] = stripslashes(trim(ucwords(strtolower($row->tag_title))));\n }\n }\n \n $str = implode('\",\"', $list);\n if($str)\n {\n echo '[\"' . $str . '\"]';\n }\n else\n {\n echo '[]';\n }\n \n exit;\n }", "public function titleQuery() {\n $titles = [];\n\n $results = $this->database->query('SELECT cr.vid, cr.nid, cr.title FROM {catalog_item_revision} cr WHERE cr.vid IN ( :vids[] )', [':vids[]' => $this->value])->fetchAllAssoc('vid', PDO::FETCH_ASSOC);\n $nids = [];\n foreach ($results as $result) {\n $nids[] = $result['nid'];\n }\n\n $catalog_items = $this->catalog_itemStorage->loadMultiple(array_unique($nids));\n\n foreach ($results as $result) {\n $catalog_items[$result['nid']]->set('title', $result['title']);\n $titles[] = $catalog_items[$result['nid']]->label();\n }\n\n return $titles;\n }", "abstract public function getRandomKeyword();", "public function searchTitles()\n\t{\n\t\t$this->connectToDatabase();\n\t\t$query = \"CALL albumTitlesSelect(\".\n\t\t\t$this->page->escapeSQL($this->mysqli).\",\".\n\t\t\t$this->listingsLength->escapeSQL($this->mysqli).\",\".\n\t\t\t$this->keyword->escapeSQL($this->mysqli).\",\".\n\t\t\t$this->contentProperties->id->escapeSQL($this->mysqli).\",\".\n\t\t\t\"@total_matches);SELECT CAST(@total_matches AS UNSIGNED) as `total_matches`\";\n\t\t$data = $this->fetchRecordsNonExhaustive($query);\n\t\tif (!$data) {\n\t\t\tthrow new ResourceNotFoundException(\"Error retrieving album titles.\");\n\t\t}\n\t\t/* get record count from sproc results */\n\t\t$this->getSprocPageCount();\n\t\treturn ($data);\n\t}", "function dp_meta_keywords() {\n\t$keywords = '';\n\n\tif ( is_singular() && !is_preview() ) {\n\t\t$post = get_queried_object();\n\t\t$taxonomies = get_object_taxonomies( $post->post_type );\n\t\tif ( is_array( $taxonomies ) ) {\n\t\t\tforeach ( $taxonomies as $tax ) {\n\t\t\t\tif ( $terms = get_the_term_list( get_queried_object_id(), $tax, '', ', ', '' ) )\n\t\t\t\t\t$keywords[] = $terms;\n\t\t\t}\n\t\t\tif ( !empty( $keywords ) )\n\t\t\t\t$keywords = join( ', ', $keywords );\n\t\t}\n\t}\n\n\tif(!empty($keywords))\n\t\t$keywords = '<meta name=\"keywords\" content=\"' . esc_attr( strip_tags( $keywords ) ) . '\" />' . \"\\n\";\n\n\techo apply_filters( 'dp_meta_keywords', $keywords );\n}", "public function searchTitle($title) {\n try {\n // escape quotes\n $checkTitle = str_replace(\"'\", \"''\", $title);\n // search the database, using wildcards\n $sql = \"SELECT * FROM books WHERE title LIKE '%$checkTitle%' ORDER BY author\";\n $stmt = $this->conn->query($sql);\n \n // fetch results as numeric array\n $result = $stmt->setFetchMode(PDO::FETCH_NUM);\n // show results in a list of update forms\n echo \"<br /><div id='searchResult'><h3>Title: -$title-</h3><ul>\";\n while ($row = $stmt->fetch()) {\n // call result form function\n $this->echoResultForm($row);\n }\n echo \"</ul></div>\";\n }\n catch(PDOException $e) {\n echo $e->getMessage();\n }\n }", "function search($query) {\n $query = Sanitize::escape($query);\n \t$fields = null;\n \t$titleResults = $this->find(\n\t\t\t'all',\n\t\t\tarray(\n\t\t\t\t'conditions' => \"{$this->name}.title LIKE '%$query%' and {$this->name}.draft=0\",\n\t\t\t\t'fields' => $fields\n\t\t\t)\n\t\t);\n \t$contentResults = array();\n \tif (empty($titleResults)) {\n \t\t$titleResults = array();\n\t\t\t$contentResults = $this->find(\n\t\t\t\t'all',\n\t\t\t\tarray(\n\t\t\t\t\t'conditions' => \"MATCH ({$this->name}.content) AGAINST ('$query')\",\n\t\t\t\t\t'fields' => $fields\n\t\t\t\t)\n\t\t\t);\n \t} else {\n \t\t$alredyFoundIds = join(', ', Set::extract($titleResults, '{n}.' . $this->name . '.id'));\n \t\t$notInQueryPart = '';\n \t\tif (!empty($alredyFoundIds)) {\n \t\t\t$notInQueryPart = \" AND {$this->name}.id NOT IN ($alredyFoundIds) AND {$this->name}.draft=0\";\n \t\t}\n \t\t$contentResults = $this->find(\n\t\t\t\t'all',\n\t\t\t\tarray(\n\t\t\t\t\t'conditions' => \"MATCH ({$this->name}.content) AGAINST ('$query')$notInQueryPart\",\n\t\t\t\t\t'fields' => $fields\n\t\t\t\t)\n\t\t\t);\n \t}\n \t\n \tif (!is_array(($contentResults))) {\n \t\t$contentResults = array();\n \t}\n \n \t$results = array_merge($titleResults, $contentResults);\n \treturn $results;\n }", "function set_keywords_from_search_query()\n\t{\n\t\t$santizied_search_query = $this->get_sanitized_search_query($this->search_query);\n\t\n\t\t$keywords_to_search_for = explode(' ',$santizied_search_query);\n\t\t$unique_keywords = array_unique($keywords_to_search_for);\n\t\t\n\t\t$this->keywords_to_search_for = $this->remove_ignored_keywords_from_array($unique_keywords);\n\t}", "function agriflex4_search_results_header() {\n\n\t$title = sprintf(\n\t\t'<div class=\"entry-header\"><h1 class=\"entry-title\">Search Results for: %s</h1></div>',\n\t\tget_search_query()\n\t);\n\n\techo wp_kses_post( $title );\n\n}", "function search($keywords)\r\n {\r\n\r\n }", "public function setTitle(string $title): ISearchOption;", "function titleKeyWords()\n\t{\n\t\tif(isset($_REQUEST['questionID']))\n\t\t{\n\t\t\t//print strip_tags(myTruncate(get_forum_nameByAphorismID($_REQUEST['questionID']), 100, ' ', ' ... ')).' - Фрази, афоризми, умни мисли, забавни изказвания, лозунги и др';\n\t\t}\n\t\telse \n\t\t{\n\t\t\tprint 'Фрази, афоризми, умни мисли, забавни изказвания, лозунги и др';\n\t\t}\n\t\n\t}", "public function get_keyword($key = 0)\n {\n }", "public function getByTitle()\n {\n }", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function scopeTitle($query, $title)\n {\n return $query->where('title', 'LIKE', $title);\n }", "function search_results_title() {\r\n if( is_search() ) {\r\n \r\n global $wp_query;\r\n \r\n if( $wp_query->post_count == 1 ) {\r\n $result_title .= '1 search result found';\r\n } else {\r\n $result_title .= 'Showing ' . $wp_query->found_posts . ' results';\r\n }\r\n \r\n $result_title .= \" for “<span style='color:#e83936;'>\" . wp_specialchars($wp_query->query_vars['s'], 1) . \"</span>”\";\r\n \r\n echo $result_title;\r\n \r\n }\r\n}", "private function setSearchstring(){\n $search_req = $this->main->getArrayFromSearchString($_GET['content_search']);\n\n $searchstring = '';\n\n foreach($search_req as $key => $val){\n if(strlen($val) > 0){\n $searchstring .= \"`name` LIKE '%\".DB::quote($val).\"%' OR \";\n };\n };\n\n $searchstring .= \"`name` LIKE '%\".DB::quote($_GET['content_search']).\"%'\";\n\n return $searchstring;\n }", "function title_query() {\n $names = array();\n\n $result = db_select('fooaggregator_feed', 'f')\n ->fields('f', array('title'))\n ->condition('f.fid', $this->value, 'IN')\n ->execute();\n foreach ($result as $o) {\n $names[] = check_plain($o->title);\n }\n\n return $names;\n }", "public function displayRecipe()\n {\n return $this->title . \"by\" . $this->source;\n }", "public function _GetPageTitle() {\n\t\t$page_title = 'Shirtswithstamps: T-Shirts with stamps for every ocassion';\n\t\t\n\t\tif (isset($_GET['DepartmentId']) && isset($_GET['CategoryId'])) {\n\t\t\t$page_title = Catalog::GetDepartmentName($_GET['DepartmentId']).' &raquo; '.Catalog::GetCategoryName($_GET['CategoryId']).' - Shirts With Stamps';\n\t\t\t\n\t\tif (isset($_GET['Page']) && ((int)$_GET['Page']) > 1)\n\t\t\t$page_title = Catalog::GetDepartmentName($_GET['DepartmentId']).' &raquo; '.Catalog::GetCategoryName($_GET['CategoryId']).' - Page '.((int)$_GET['Page']).' - Shirtswithstamps';\t\n\t\t}\n\t\t\n\t\telseif (isset($_GET['DepartmentId'])) {\n\t\t\t$page_title = Catalog::GetDepartmentName($_GET['DepartmentId']).' - Shirts With Stamps';\n\t\t\t\n\t\t\tif (isset($_GET['Page']) && ((int)$_GET['Page']) > 1)\n\t\t\t\t$page_title = Catalog::GetDepartmentName($_GET['DepartmentId']).' - Page '.((int)$_GET['Page']).' - Shirts With Stamps';\n\t\t}\n\t\t\n\t\telseif (isset($_GET['ProductId'])) {\n\t\t\t$page_title = Catalog::GetProductName($_GET['ProductId']).' - Shirts With Stamps';\n\t\t}\n\t\t\n\t\telseif (isset($_GET['SearchResults'])) {\n\t\t\t$page_title = '';\n\t\t\t\n\t\t\t// Display the search string\n\t\t\t$page_title = trim(str_replace('-', ' ', $_GET['SearchString'])).' (';\n\t\t\t\n\t\t\t// Display 'all-words' search or 'any-words' search\n\t\t\t$all_words = isset($_GET['AllWords']) ? $_GET['AllWords'] : 'off';\n\t\t\t\n\t\t\t$page_title .= (($all_words == 'on') ? 'all' : 'any').'-words search';\n\t\t\t\n\t\t\t// Display the page number\n\t\t\tif (isset($_GET['Page']) && ((int)$_GET['Page'] < 1))\n\t\t\t\t$page_title .= ', page '.((int)$_GET['Page']);\n\t\t\t\t\n\t\t\t$page_title .= ')';\n\t\t}\n\t\t\n\t\telse {\n\t\t\tif (isset($_GET['Page']) && ((int)$_GET['Page']) > 1)\n\t\t\t\t$page_title .= ' - Page '.((int)$_GET['Page']);\n\t\t}\n\t\t\n\t\treturn $page_title;\n\t}", "function render_block_core_query_title($attributes)\n {\n }", "public function suggestTitle($keyword,$limit=20)\n\t{\n\t\t$list_test=$this->findAll(array(\n\t\t\t'condition'=>'title LIKE :keyword',\n\t\t\t'order'=>'title DESC',\n\t\t\t'limit'=>$limit,\n\t\t\t'params'=>array(\n\t\t\t\t':keyword'=>'%'.strtr($keyword,array('%'=>'\\%', '_'=>'\\_', '\\\\'=>'\\\\\\\\')).'%',\n\t\t\t),\n\t\t));\n\t\t$titles=array();\n\t\tforeach($list_test as $test)\n\t\t\t$titles[]=$test->title;\n\t\t\treturn $titles;\n\t}", "function getSearch (Request $request) {\n $request->validate(['keyword' => 'required']);\n\n //Get what user input in the search form\n $input = $request->get(\"keyword\");\n\n //If the input is not null => Search the database based and assign them to the result\n if (!empty($input)) {\n //Get all the post\n $posts = Post::latest();\n //query builder\n $posts = $posts->where('post_title', 'like', '%' . $input . '%')->get();\n }\n\n return view('search-results', [\n 'searchResults' => $posts,\n 'keyword' => $input\n ]);\n }", "public function getMetaTitle() {\n\t\t$title = $this->data()->getTitle();\n\t\t$filter = $this->FilterDescription();\n\t\tif($filter) {\n\t\t\t$title = \"{$title} - {$filter}\";\n\t\t}\n\n\t\t$this->extend('updateMetaTitle', $title);\n\t\treturn $title;\n\t}", "function tpc_get_url_keywords( $url ) {\n\tglobal $ydb;\n\t$table = YOURLS_DB_TABLE_URL;\n\t$url = yourls_sanitize_url($url);\n\t$rows = $ydb->fetchObjects(\"SELECT `keyword` FROM `$table` WHERE `url` = :url\", array(\"url\" => $url));\n\n\t$keywords = array_map(function($r) { return $r->keyword; }, $rows);\n\t\n\treturn $keywords;\n}", "function edan_search_set_doc_title( $title )\n {\n $options = new esw_options_handler();\n $cache = new esw_cache_handler();\n\n if(edan_search_name_from_url() == $options->get_path() && $options->get_title() != '')\n {\n if(get_query_var('edanUrl'))\n {\n $object = $cache->get()['object'];\n\n if($object)\n {\n if(property_exists($object, 'content') && property_exists($object->{'content'}, 'descriptiveNonRepeating'))\n {\n if(property_exists($object->{'content'}->{'descriptiveNonRepeating'}, 'title'))\n {\n $title = $object->{'content'}->{'descriptiveNonRepeating'}->{'title'}->{'content'};\n }\n }\n elseif(property_exists($object, 'title'))\n {\n if(property_exists($object->{'title'}, 'content'))\n {\n $title = $this->object->{'title'}->{'content'};\n }\n else\n {\n $title = $this->object->{'title'};\n }\n }\n }\n }\n else\n {\n $title = $options->get_title();\n }\n }\n\n $sitename = get_bloginfo('name');\n return $title . \" - $sitename\";\n }", "function get_term_title($term, $field, $post_id = 0)\n {\n }", "public function search_lookbook() {\n\n\t\tif ( ! current_user_can( 'manage_woocommerce' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$keyword = isset($_GET['keyword'])? sanitize_text_field($_GET['keyword']):'';\n\n\t\tif ( empty( $keyword ) ) {\n\t\t\tdie();\n\t\t}\n\t\t$arg = array(\n\t\t\t'post_status' => 'publish',\n\t\t\t'post_type' => 'woocommerce-lookbook',\n\t\t\t'posts_per_page' => 50,\n\t\t\t's' => $keyword\n\n\t\t);\n\t\t$the_query = new WP_Query( $arg );\n\t\t$found_products = array();\n\t\tif ( $the_query->have_posts() ) {\n\t\t\twhile ( $the_query->have_posts() ) {\n\t\t\t\t$the_query->the_post();\n\n\t\t\t\t$product = array( 'id' => get_the_ID(), 'text' => get_the_title() );\n\t\t\t\t$found_products[] = $product;\n\t\t\t}\n\t\t}\n\t\twp_send_json( $found_products );\n\t\tdie;\n\t}", "function _show_search_keywords ($input = \"\") {\n\t\t// Get input params\t\t\n\t\t$display_limit\t\t\t= intval(!empty($input[\"display_limit\"]) && $input[\"display_limit\"] < $this->KEYWORDS_DISPLAY_LIMIT ? $input[\"display_limit\"] : $this->KEYWORDS_DISPLAY_LIMIT);\n\t\t$search_words\t\t\t= $input[\"search_words\"];\n\t\t$type\t\t\t\t\t= in_array($input[\"display_type\"], [\"most_popular\",\"random\"]) ? $input[\"display_type\"] : \"most_popular\";\n\t\t$only_from_current_site\t= intval($input[\"only_from_current_site\"]);\n\t\t$fill_with_popular\t\t= $input[\"fill_with_popular\"];\n\t\t// Most popular keywords\n\t\t$this->_most_popular = main()->get_data(\"search_keywords_most_popular\");\n\t\t// Stop if no popular keywords found\n\t\tif (empty($this->_most_popular)) {\n\t\t\treturn false;\n\t\t}\n\t\t// Process keywords by given params\n\t\tif (empty($search_words) && $type == \"most_popular\") {\n\t\t\t$array_from_db = $this->_most_popular;\n\t\t} else {\n\t\t\tif (!empty($search_words)) {\n\t\t\t\t$search_words_array = explode(\",\", $search_words);\n\t\t\t}\n\t\t\t$array_from_db = false; // No not change this, depends on cache !!\n\t\t\t// Try to get data from cache\n\t\t\tif (!empty($search_words_array) && $this->CACHE_ENABLED) {\n\t\t\t\t$se_cache_name = md5($search_words);\n\t\t\t\t$array_from_db = $this->_cache_get($se_cache_name);\n\t\t\t}\n\t\t\t// Prepare and get data from db\n\t\t\tif (!empty($search_words_array) && empty($array_from_db) && !is_array($array_from_db)) {\n\t\t\t\t// use full text searching\n\t\t\t\tif ($this->USE_FULLTEXT_SEARCH) {\n\t\t\t\t\t$search_words_sql = \" AND MATCH(text) AGAINST ('\"._es(implode(\" \", $search_words_array)).\"' IN BOOLEAN MODE) \";\n\t\t\t\t} else {\n\t\t\t\t\tforeach ((array)$search_words_array as $k => $v) {\n\t\t\t\t\t\t$v = trim($v);\n\t\t\t\t\t\tif (empty($v)) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tmp_array[$k] = \" text LIKE '%\"._es($v).\"%' \";\n\t\t\t\t\t}\n\t\t\t\t\tif (!empty($tmp_array)) {\n\t\t\t\t\t\t$search_words_sql = \" AND (\".implode(\" OR \", $tmp_array).\") \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$Q = db()->query(\n\t\t\t\t\t\"SELECT site_url,text,hits \n\t\t\t\t\tFROM \".db('search_keywords').\" \n\t\t\t\t\tWHERE 1 \".(!empty($search_words_sql) ? $search_words_sql : \"\").\" \n\t\t\t\t\t\".($this->MIN_HITS_DISPLAY_LIMIT ? \"HAVING hits > \".$this->MIN_HITS_DISPLAY_LIMIT : \"\").\"\n\t\t\t\t\tORDER BY \".(/*$type == \"most_popular\" ? */\"hits DESC\"/* : \"RAND()\"*/).\" \n\t\t\t\t\tLIMIT \".intval($display_limit * $this->DATA_FROM_DB_MULTIPLY)\n\t\t\t\t);\n\t\t\t\twhile ($A = db()->fetch_assoc($Q)) $array_from_db[$A[\"text\"]] = $A[\"site_url\"];\n\t\t\t\t// Put cache file\n\t\t\t\tif ($this->CACHE_ENABLED) {\n\t\t\t\t\t$this->_cache_put($se_cache_name, $array_from_db);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tforeach ((array)$array_from_db as $text => $site_url) {\n\t\t\tif ($only_from_current_site && (false === strpos($site_url, SITE_ADVERT_URL))) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!strlen($text)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// Another check for display number\n\t\t\tif (++$c > $display_limit && $type == \"most_popular\") {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Process items\n\t\t\t$text = str_replace(\"+\", \" \", str_replace([\"\\\"\",\"'\"], \"\", $text));\n\t\t\t$keywords[$text] = [\n\t\t\t\t\"site_url\"\t=> _prepare_html($site_url),\n\t\t\t\t\"text\"\t\t=> _prepare_html($text),\n\t\t\t];\n\t\t}\n\t\t// Emulate ORDER BY RAND()\n\t\tif ($type != \"most_popular\") {\n\t\t\t$_tmp_keys = array_keys((array)$keywords);\n\t\t\tif (!empty($_tmp_keys)) {\n\t\t\t\tshuffle($_tmp_keys);\n\t\t\t}\n\t\t\tforeach ((array)$_tmp_keys as $_cur_keyword) {\n\t\t\t\tif (++$d > $display_limit) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t$_tmp_keywords[$_cur_keyword] = $keywords[$_cur_keyword];\n\t\t\t}\n\t\t\tif (!empty($_tmp_keywords)) {\n\t\t\t\t$keywords = $_tmp_keywords;\n\t\t\t\tunset($_tmp_keywords);\n\t\t\t\tunset($_tmp_keys);\n\t\t\t}\n\t\t}\n\t\t// Check if we are using search words mode but found too less records\n\t\t$need_to_fill = (int)$display_limit - count($keywords);\n\t\t// Check if we need to fill \n\t\tif (!empty($search_words) && $fill_with_popular && $need_to_fill) {\n\t\t\t// Prepare most popular keywords\n\t\t\t$prepared_popular = [];\n\t\t\tforeach ((array)$this->_most_popular as $text => $site_url) {\n\t\t\t\tif ($only_from_current_site && (false === strpos($site_url, SITE_ADVERT_URL))) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (!strlen($text)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$prepared_popular[$text] = $site_url;\n\t\t\t}\n\t\t\t// Process fill\n\t\t\tfor ($i = 1; $i <= $need_to_fill; $i++) {\n\t\t\t\t$rand_key\t= array_rand($prepared_popular);\n\t\t\t\t$text\t\t= $rand_key;\n\t\t\t\t$site_url\t= $prepared_popular[$text];\n\t\t\t\t// Process items\n\t\t\t\t$text = str_replace(\"+\", \" \", str_replace([\"\\\"\",\"'\"], \"\", $text));\n\t\t\t\t$keywords[$text] = [\n\t\t\t\t\t\"site_url\"\t=> _prepare_html($site_url),\n\t\t\t\t\t\"text\"\t\t=> _prepare_html($text),\n\t\t\t\t];\n\t\t\t}\n\t\t}\n\t\tif (isset($keywords[\"\"])) {\n\t\t\tunset($keywords[\"\"]);\n\t\t}\n\t\t// Stop here if nothing to display\n\t\tif (empty($keywords)) {\n\t\t\treturn false;\n\t\t}\n\t\t// Process template\n\t\t$replace = [\n\t\t\t\"keywords\" => $keywords,\n\t\t];\n\t\treturn tpl()->parse(__CLASS__.\"/main\", $replace);\n\t}", "public function search($title)\n {\n return Posts::where('title', 'LIKE', '%' . $title . '%')->get();\n }", "public function search($searchTerm)\n {\n $results = array(\n 'snippet' => [],\n 'snippet_code' => [],\n 'page' => [],\n 'product' => [],\n 'actions' => [],\n 'word' => [],\n 'post' => []\n );\n\n $snippets = Yii::$app->user->identity->portal->hasMany(Snippet::className(), ['id' => 'snippet_id'])\n ->viaTable('snippet_portal', ['portal_id' => 'id'])\n ->filterWhere([\n 'or',\n ['like', 'name', $searchTerm],\n ['like', 'description', $searchTerm],\n ])\n ->limit(10)\n ->all();\n\n foreach ($snippets as $snippet) {\n $results['snippet'][] = [\n 'link' => Url::to([\n '/snippet/edit',\n 'id' => $snippet->id\n ]),\n 'name' => $snippet->name,\n 'id' => $snippet->id,\n 'class' => 'suggest-snippet'\n ];\n }\n\n // SNIPPET CODES / ALTERNATIVES\n\n /** @var SnippetCode[] $snippet_codes */\n $snippet_codes = SnippetCode::find()\n ->filterWhere([\n 'or',\n ['like', 'name', $searchTerm],\n ['like', 'code', $searchTerm]\n ])\n ->limit(10)\n ->all();\n\n foreach ($snippet_codes as $snippet_code) {\n $results['snippet_code'][] = [\n 'link' => Url::to([\n '/snippet/edit',\n 'id' => $snippet_code['snippet_id'],\n '#' => 'code' . $snippet_code['id'],\n ]),\n 'name' => $snippet_code->getSnippet()->one()->name . ' -> ' . $snippet_code->name,\n 'id' => $snippet_code->id,\n 'class' => 'suggest-snippet-code'\n ];\n }\n\n // Slovnik\n $words = (new Query())->select(\"id, identifier\")->from(\"word\")->where(['like', 'identifier', $searchTerm])\n ->limit(10)->all();\n\n foreach ($words as $word) {\n $results['word'][] = [\n 'link' => Url::to([\n '/word/edit',\n 'id' => $word['id']\n ]),\n 'name' => $word['identifier'],\n 'id' => $word['id'],\n 'class' => 'suggest-word'\n ];\n }\n\n // PAGES\n\n $pages = Page::find()->filterWhere([\n 'or',\n ['like', 'name', $searchTerm],\n ['like', 'identifier', $searchTerm],\n ['like', 'title', $searchTerm],\n ])\n ->andWhere([\n 'portal_id' => Yii::$app->user->identity->portal_id\n ])\n ->limit(10)\n ->all();\n\n foreach ($pages as $page) {\n $results['page'][] = [\n 'link' => Url::to(['/page/edit', 'id' => $page['id']]),\n 'id' => $page->id,\n 'name' => $page->breadcrumbs,\n 'class' => 'suggest-page'\n ];\n }\n\n // POSTS\n\n $posts = Post::find()->filterWhere([\n 'or',\n ['like', 'name', $searchTerm],\n ['like', 'identifier', $searchTerm],\n ['like', 'title', $searchTerm],\n ])\n ->andWhere([\n 'portal_id' => Yii::$app->user->identity->portal_id\n ])\n ->limit(10)\n ->all();\n\n foreach ($posts as $post) {\n $results['post'][] = [\n 'link' => Url::to(['/post/edit', 'id' => $post['id']]),\n 'id' => $post->id,\n 'name' => $post->name,\n 'class' => 'suggest-post'\n ];\n }\n\n // PRODUCTS\n\n $products = Product::find()\n ->filterWhere([\n 'or',\n ['like', 'name', $searchTerm],\n ['like', 'identifier', $searchTerm],\n ])\n ->andWhere([\n 'language_id' => Yii::$app->user->identity->portal->language_id\n ])\n ->limit(10)\n ->all();\n\n foreach ($products as $product) {\n $results['product'][] = [\n 'link' => Url::to([\n '/product/edit',\n 'id' => $product['id']\n ]),\n 'name' => $product->breadcrumbs,\n 'id' => $product->id,\n 'class' => 'suggest-product'\n ];\n }\n\n $processActions = function ($searchTerm, $list, $prefix, $urlSuffix = '') {\n $actions = [];\n foreach ($list as $item) {\n $name = $prefix . $item[0];\n\n if ($searchTerm == '' || (mb_strlen($name) >= mb_strlen($searchTerm) && mb_substr(mb_strtolower($name), 0, mb_strlen($searchTerm)) == mb_strtolower($searchTerm))) {\n $actions[] = [\n 'link' => Url::to([\n '/' . $item[1] . '/' . $urlSuffix,\n ]),\n 'name' => $name,\n 'class' => 'suggest-action'\n ];\n }\n };\n return $actions;\n };\n\n $listActions = [['stránok', 'page'], ['ďakovačiek', 'thanks'], ['prekladov', 'word'], ['multimédii', 'multimedia'], ['snippetov', 'snippet'], ['produktov', 'product'], ['produktových premenných', 'product-var'], ['typov produktu', 'product-type'], ['tagov', 'tag'], ['šablón', 'template'], ['portálov', 'portal'], ['používateľov', 'user'], ['krajín', 'language']];\n $addActions = [['stránku', 'page'], ['ďakovačku', 'thanks'], ['preklad', 'word'], ['snippet', 'snippet'], ['produkt', 'product'], ['produktovú premennú', 'product-var'], ['typ produktu', 'product-type'], ['tag', 'tag'], ['šablónu', 'template'], ['portál', 'portal'], ['používateľa', 'user'], ['krajinu', 'language']];\n\n $results['actions'] += $processActions($searchTerm, $listActions, 'Zoznam ');\n $results['actions'] += $processActions($searchTerm, $addActions, 'Pridať ', 'edit');\n\n return $results;\n }", "function get_title($title) \n{\n global $scelus;\n return $title . (isset($scelus['title_append']) ? $scelus['title_append'] : null);\n}", "public function get_keyword()\n {\n if ($this->request->is('post')) {\n //kiem tra xac thuc du lieu\n $this->Book->set($this->request->data);\n if ($this->Book->validates()) {\n $keyword = $this->request->data['Book']['keyword'];\n } else {\n $errors = $this->Book->validationErrors;\n $this->Session->write('search_validation' , $errors);\n }\n $this->redirect(array('action'=>'search','keyword' => $keyword)); //giup chuyen gia tri de luu vao param\n }\n }" ]
[ "0.6314272", "0.59863436", "0.59801906", "0.5965524", "0.5944365", "0.5808339", "0.57880396", "0.56803334", "0.5669686", "0.5658574", "0.56492674", "0.5633799", "0.5610529", "0.55742544", "0.5523392", "0.5523169", "0.551889", "0.5511958", "0.5508049", "0.54987174", "0.54906666", "0.548462", "0.54648834", "0.54533505", "0.54527164", "0.5444307", "0.5441657", "0.5432166", "0.54131556", "0.5401904", "0.53985083", "0.5390508", "0.538823", "0.53801996", "0.537934", "0.53694326", "0.53655726", "0.53548086", "0.53485155", "0.53454065", "0.5344207", "0.53394777", "0.53394777", "0.53394777", "0.533725", "0.5319276", "0.5305549", "0.5303212", "0.5293309", "0.52394897", "0.5217692", "0.52129257", "0.5212661", "0.52092516", "0.51955605", "0.5194381", "0.5189625", "0.5152628", "0.51459056", "0.51451385", "0.5142984", "0.5142166", "0.51420575", "0.51401275", "0.5138571", "0.5135304", "0.51311976", "0.51311976", "0.51311976", "0.51311976", "0.51311976", "0.51311976", "0.51311976", "0.51311976", "0.51311976", "0.51311976", "0.51311976", "0.51311976", "0.51311976", "0.51311976", "0.51311976", "0.51303315", "0.5118762", "0.5110902", "0.51077884", "0.5107559", "0.5106079", "0.5085587", "0.5085153", "0.50669146", "0.5066688", "0.5066215", "0.5065266", "0.50589913", "0.5055837", "0.5055453", "0.50508493", "0.50421244", "0.50361353", "0.5035563" ]
0.67693764
0
Returns average of all comment ratings associated to rid
public function getAverageRating($rid){ $comments = $this->getAllComments($rid); $sum = 0; if(sizeof($comments)!=0){ foreach($comments as $comment){ $sum += $comment->rating; } return $sum/sizeof($comments); } else { return $sum; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAvgRating()\n {\n $sum =0;\n foreach($this->comments as $comment)\n {\n $sum = $sum + $comment->getRating() ;\n }\n\n if(count($this->comments)) return $sum/count($this->comments);\n\n return 0 ;\n }", "public function averageRating()\n {\n $total = 0;\n $average = null;\n\n foreach ($this->notes as $n) {\n $total += $n->note;\n }\n\n $nbNotes = $this->notes->count();\n if ($total > 0 && $nbNotes > 0) {\n $average = $total / $nbNotes;\n }\n\n return $average;\n }", "public function getAvgRating(){\n if($this->ratings){\n return $this->ratings->avg('rating');\n }\n }", "public function averageRate()\n {\n $movie = $this->getKey();\n return DB::table('movies_reviews')\n ->where('movies_id', '=', $movie)\n ->average('rate');\n }", "public function getAverageAndNumberRatings (): array\n {\n /**\n * Hier verwenden wir $this->_buffer, damit der nachfolgende MySQL Query nicht jedes mal aufgerufen werden muss,\n * sondern wir das Ergebnis zwischenspeichern.\n */\n if (empty($this->_buffer)) {\n\n /**\n * Datenbankverbindung herstellen.\n */\n $database = new Database();\n\n /**\n * Query abschicken.\n *\n * Hier verwenden wir die AVG()-Funktion von MySQL um einen Durchschnitt aller ratings zu berechnen. Diese\n * Berechnung könnten wir in PHP auch machen, dazu müssten wir aber alle Einträge aus der Datenbank laden\n * und manuell drüber iterieren. In MySQL brauchen wir nur einen einzigen Query und kriegen alles, was wir\n * brauchen.\n */\n $result = $database->query(\"SELECT AVG(rating) as average, COUNT(*) as count FROM comments WHERE post_id = ? AND rating IS NOT NULL\", [\n 'i:post_id' => $this->id\n ]);\n\n /**\n * Daten aus dem Result holen und Datentypen konvertieren.\n */\n $numberOfRatings = (int)$result[0]['count'];\n $average = (float)$result[0]['average'];\n\n /**\n * Cache anlegen.\n */\n $this->_buffer = [\n 'average' => $average,\n 'numberOfRatings' => $numberOfRatings\n ];\n\n }\n\n /**\n * Werte zurückgeben.\n */\n return $this->_buffer;\n }", "public function ratings(){\n\t$comment_id = ee()->TMPL->fetch_param('comment_id');\t\n\tee()->db->select('knowledge,communication,attention,patience,fees,amount,session,anonymous');\n\tee()->db->where('comment_id',$comment_id);\n\t//ee()->db->where('parent_id',0);\n\t\n\t$query = ee()->db->get('mtt_ratings');\n\t\n\tif ($query->num_rows() > 0){\n\t\n\t$row = $query->row();\n\t\n\t$variables[] = array(\n\t\t'knowledge' => $row->knowledge,\n\t\t'communication' => $row->communication,\n\t\t'attention' => $row->attention,\n\t\t'patience' => $row->patience,\n\t\t'fees' => $row->fees,\n\t\t'amount' => $row->amount,\n\t\t'session' => $row->session,\n\t\t'anonymous' => $row->anonymous,\n\t\t'response'\t=> 'n'\n\t);\n\t\n\treturn ee()->TMPL->parse_variables(ee()->TMPL->tagdata, $variables);\n\t}\n\t\n\t}", "public function rating()\n {\n $rating = Review::where('product_id', $this->id)->avg('rating');\n if ($rating) {\n $rating = (float)$rating;\n $rating = round($rating, 2);\n } else {\n $rating = 0;\n }\n return $rating;\n }", "public function getCustomRatingAttribute(){\n return $this->reviews->avg('rating');\n }", "public function rating()\n {\n return $this->hasOne('App\\Review')\n ->selectRaw('user_id, count(*) as count, avg(would_recommend) as avg, avg(communication) as communication, avg(as_described) as as_described')\n ->groupBy('user_id');\n }", "public function averageRating() : float\n {\n return $this->ratings()->exists() ? $this->ratings()->avg('rating') : 0;\n }", "public function calculateStarRating($ratings)\n {\n // $array = [$ratings->quality, $ratings->price, $ratings->value];\n //Calculate the average.\n return round(array_sum($ratings) / count($ratings), 2);\n }", "public function computeAvgRating()\n {\n return Doctrine_Query::create()\n ->select('AVG(value) as avg_val')\n ->from('Rate')\n ->where('record_model = ? AND record_id = ?', array(\n $this->getModel(),\n $this->getItemId(),\n ))\n ->fetchOne()\n ->avg_val;\n }", "public function fetchAvgRating()\n {\n return number_format($this->ratings()->avg('rating'), 1);\n }", "public function getAverageReviews()\n {\n /* code goes here */\n }", "function get_average_rating($product_id)\r\n\t{\r\n\t\t$product_id_as_int = (int)$product_id;\r\n\t\t\r\n\t\treturn ceil($this->_db->get_first_cell('SELECT AVG(rating) FROM product_review WHERE product_id = ' . $product_id_as_int));\r\n\t}", "public function getRestaurantRating($id){\n $query=$this->db->query(\"SELECT COUNT(review_id) AS num_review,ROUND(AVG(rating),0) AS rating FROM reviews WHERE restaurant_id=\".$id);\n if($query->num_rows){\n $restaurant['num_review']=$query->rows[0]['num_review'];\n if($restaurant['num_review']!=0)\n $restaurant['rating']=$query->rows[0]['rating'];\n else\n $restaurant['rating']=0;\n }\n else{\n $restaurant['num_review']=0;\n $restaurant['rating']=0;\n }\n\n return $restaurant;\n }", "public function getAverageRating($connection,$userID){\n $userID = $this->e($connection,$userID);\n \n $ratings = [];\n //get sold and giverName\n $query_sold = \"SELECT feedback.rating FROM feedback \";\n $query_sold .=\" LEFT JOIN ( \";\n $query_sold .=\" SELECT b1.auctionID,b1.highestBid as currentBid,b2.buyerID as winnerID \";\n $query_sold .=\" FROM ( \";\n $query_sold .=\" SELECT bid.auctionID,MAX(bid.bidValue) AS highestBid \";\n $query_sold .=\" FROM bid \";\n $query_sold .=\" GROUP BY bid.auctionID \";\n $query_sold .=\" ) AS b1 \";\n $query_sold .=\" LEFT JOIN ( \";\n $query_sold .=\" SELECT bid.auctionID, bid.bidValue, bid.buyerID \";\n $query_sold .=\" FROM bid \";\n $query_sold .=\" ) AS b2 \";\n $query_sold .=\" ON b2.auctionID = b1.auctionID AND b2.bidValue = b1.highestBid \";\n $query_sold .=\" ) AS winner ON winner.auctionID = feedback.auctionID \";\n $query_sold .= \"INNER JOIN user ON user.id = winner.winnerID \";\n $query_sold .= \"INNER JOIN auction ON auction.id = feedback.auctionID \";\n $query_sold .= \"WHERE auction.sellerID = {$userID} \";\n $query_sold .= \"AND feedback.giverID = winner.winnerID\";\n\n $result = mysqli_query($connection,$query_sold);\n if ($result){\n while ($row = mysqli_fetch_assoc($result)){\n $ratings[] = $row[\"rating\"];\n }\n }else {\n die( \"Database query failed (get feedbacks 1). \" . mysqli_error( $connection ) );\n }\n\n\n\n //get bought \n $query_bought =\" SELECT feedback.rating FROM feedback \";\n $query_bought .= \"INNER JOIN user ON user.id = feedback.giverID \";\n $query_bought .=\" LEFT JOIN ( \";\n $query_bought .=\" SELECT b1.auctionID,b1.highestBid as currentBid,b2.buyerID as winnerID \";\n $query_bought .=\" FROM ( \";\n $query_bought .=\" SELECT bid.auctionID,MAX(bid.bidValue) AS highestBid \";\n $query_bought .=\" FROM bid \";\n $query_bought .=\" GROUP BY bid.auctionID \";\n $query_bought .=\" ) AS b1 \";\n $query_bought .=\" LEFT JOIN ( \";\n $query_bought .=\" SELECT bid.auctionID, bid.bidValue, bid.buyerID \";\n $query_bought .=\" FROM bid \";\n $query_bought .=\" ) AS b2 \";\n $query_bought .=\" ON b2.auctionID = b1.auctionID AND b2.bidValue = b1.highestBid \";\n $query_bought .=\" ) AS winner \";\n $query_bought .=\" ON winner.auctionID = feedback.auctionID WHERE winner.winnerID={$userID} \";\n $query_bought .=\" AND feedback.giverID <> {$userID}\";\n\n\n $result2 = mysqli_query($connection,$query_bought);\n if ($result2){\n while ($row2 = mysqli_fetch_assoc($result2)){\n $ratings[] = $row2[\"rating\"];\n }\n }else {\n die( \"Database query failed (get feedbacks 2). \" . mysqli_error( $connection ));\n }\n\n $avg = 0;\n if (count($ratings)>0){\n $avg = array_sum($ratings) / count($ratings); \n }\n\n return $avg;\n \n }", "protected function getCriterionsAverageScore(\\SimpleXMLElement $rating)\n {\n $criterions = array('criterion1', 'criterion2', 'criterion3', 'criterion4', 'criterion5', 'criterion6');\n $sum = 0;\n $divider = 0;\n foreach ($criterions as $criterion) {\n $criterionValue = (float) $rating->$criterion;\n if ($criterionValue > 0) {\n ++$divider;\n $sum += $criterionValue;\n }\n }\n $divider = (0 == $divider) ? count($criterions) : $divider;\n\n return $sum / $divider;\n }", "public function average(){\n $i = 0;\n $total = 0;\n for($i = 0; $i < count($this->collection); $i++){\n $total += $this->collection[$i]->amount;\n }\n if($i == 0)\n return 3;\n return (int)round($total/$i);\n }", "public function getCompanyAverageRatings($ratings){\n\n\t\t$total=count($ratings);\n\t\t$culture=$management=$work_live_balance=$career_development=0;\n\n\t\tforeach($ratings as $rating){\n\t\t\t$culture += $rating['culture'];\n\t\t $management += $rating['management'];\n\t\t\t$work_live_balance += $rating['work_live_balance'];\n\t\t\t$career_development += $rating['career_development'];\t\n\t\t}\t\n\t\t\n\t\t$avgCulture = $culture/$total;\n\t\t$avgManagement = $management/$total;\n\t\t$avgWork_live = $work_live_balance/$total;\n\t\t$avgCareer_dev = $career_development/$total;\n\n\t\treturn array('culture'=>$avgCulture, 'management'=>$avgManagement, 'work_live_balance'=>$avgWork_live, 'career_development'=>$avgCareer_dev);\n\t}", "public function averageUserRatings($params = array()) {\n\n $averageUserRatings = $this->select()\n ->from($this->info('name'), array('AVG(rating) AS avg_rating'))\n ->where(\"event_id = ?\", $params['event_id'])\n ->where(\"user_id = ?\", $params['user_id'])\n ->query()\n ->fetchColumn();\n return $averageUserRatings;\n }", "public function getAggregateRating()\n {\n $collection = Mage::getModel('rating/rating_option_vote')\n ->getResourceCollection()\n ->setEntityPkFilter($this->getProduct()->getId())\n ->setStoreFilter(Mage::app()->getStore()->getId());\n return $this->getAverageRatingByCollection($collection);\n }", "function getAvgAuthor($a_id)\n{\n $sql = \"SELECT ROUND(AVG(CAST(CAST (review_author.rating AS char)AS INT)),2) FROM review_author WHERE a_id = $a_id\";\n $result = pg_query($sql);\n $avgscore = pg_fetch_row($result);\n if ($avgscore[0]!=0) echo \"&nbsp; <label class=\\\"label label-warning\\\"><span class=\\\"glyphicon glyphicon-star\\\"></span> \".$avgscore[0].\"</label>\"; \n}", "public function avgViews()\n {\n $query = \"SELECT AVG(views) FROM blog_post \n WHERE deleted = 0\";\n\n $stmt = static::$dbh->query($query);\n\n $views = $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n\n return $views;\n }", "public function getAverageShopRating($userId)\n {\n $verifiedUserIds = UserEntity::find()->select('id')->where(['status' => UserEntity::STATUS_VERIFIED]);\n $reviews = ShopFeedbackEntity::find()->where(['shop_id' => $userId, 'created_by' => $verifiedUserIds])->all();\n\n $count = 0;\n if ($reviews) {\n $sumProductRating = 0; $sumReliabilityRating = 0;\n $sumOperatorRating = 0; $sumMarkerRating = 0; $sumAverageRating = 0;\n\n /** @var $item ShopFeedbackEntity.php */\n foreach ($reviews as $item) {\n $count++;\n $sumProductRating += $item->product_rating;\n $sumReliabilityRating += $item->reliability_rating;\n $sumOperatorRating += $item->operator_rating;\n $sumMarkerRating += $item->marker_rating;\n $sumAverageRating += $item->average_rating;\n }\n\n return [\n 'average_product_rating' => round($sumProductRating / $count, 1),\n 'average_reliability_rating' => round($sumReliabilityRating / $count, 1),\n 'average_operator_rating' => round($sumOperatorRating / $count, 1),\n 'average_marker_rating' => round($sumMarkerRating / $count, 1),\n 'average_rating' => round($sumAverageRating / $count, 1)\n ];\n }\n return false;\n }", "public function getAvgRating($idUser, $idPost){\n $result = $this->getRating($idUser, $idPost);\n if($result != null){\n $return = ($result[\"originality\"] + $result[\"topic\"] + $result[\"language_level\"])/3;\n return number_format($return, 2);\n }\n return null;\n }", "public function calculateAverageRating($data)\n {\n return ($data['product_rating'] + $data['operator_rating']\n + $data['marker_rating'] + $data['reliability_rating']) / 4;\n }", "function ratings($id_us){\n\t\n\t$val = listAll(\"reviews\", \"WHERE r_user_id = '$id_us' GROUP BY r_pro_id\");\n\t$rows_val = mysql_num_rows($val);\n\t\n\tif($rows_val > 0){\n\t\n $user = getUserInfo($id_us);\n\n //usuario creativo/fotografo\n if($user['user_type'] == User::USER_TYPE_PHOTOGRAPHER){\n $rev = listAll(\"reviews\", \"WHERE r_user_id = '$id_us' AND r_type!='CO' AND r_type != 'F'\");\n $rev_rows = mysql_num_rows($rev);\n $calification = 0;\n $trato = 0;\n $calidad = 0;\n $prof = 0;\n $resp = 0;\n $punt = 0;\n $t=0;\n $p=0;\n $r=0;\n $pr=0;\n $ca =0;\n while ($rs_rev = mysql_fetch_object($rev)){\n $calification = $calification + $rs_rev->r_value;\n if($rs_rev->r_type == \"CA\"){\n $calidad = $calidad + $rs_rev->r_value;\n $ca++;\n }else if($rs_rev->r_type == \"T\"){\n $trato = $trato + $rs_rev->r_value;\n $t++;\n }else if($rs_rev->r_type == \"P\"){\n $punt = $punt + $rs_rev->r_value;\n $p++;\n }else if($rs_rev->r_type == \"R\"){\n $resp = $resp + $rs_rev->r_value;\n $r++;\n }else if($rs_rev->r_type == \"PR\"){\n $prof = $prof + $rs_rev->r_value;\n $pr++;\n }\n\n }\n //totales\n $global = $calification/$rev_rows;\n $trato_fin = $trato/$t;\n $calidad_fin = $calidad/$ca;\n $punt_fin = $punt/$p;\n $resp_fin = $resp/$r;\n $prof_fin = $prof/$pr;\n\n //global\n if($global < 2){\n $review['stars'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion '.number_format($global,1,'.',',').'\" alt=\"Calificacion '.number_format($global,1,'.',',').'\"/>';\n $review['starsP']=1;\n }else if(round($global) == 2){\n $review['stars'] = '<img src=\"images/rating_2.jpg\" title=\"Calificacion '.number_format($global,1,'.',',').'\" alt=\"Calificacion '.number_format($global,1,'.',',').'\"/>';\n $review['starsP']=2;\n }else if(round($global) == 3){\n $review['stars'] = '<img src=\"images/rating_3.jpg\" title=\"Calificacion '.number_format($global,1,'.',',').'\" alt=\"Calificacion '.number_format($global,1,'.',',').'\"/>';\n $review['starsP']=3;\n }else if(round($global) == 4){\n $review['stars'] = '<img src=\"images/rating_4.jpg\" title=\"Calificacion '.number_format($global,1,'.',',').'\" alt=\"Calificacion '.number_format($global,1,'.',',').'\"/>';\n $review['starsP']=4;\n }else if(round($global) == 5){\n $review['stars'] = '<img src=\"images/rating_5.jpg\" title=\"Calificacion '.number_format($global,1,'.',',').'\" alt=\"Calificacion '.number_format($global,1,'.',',').'\"/>';\n $review['starsP']=5;\n }\n\n //trato\n if($trato_fin < 2){\n $review['trato_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion '.number_format($trato_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($trato_fin,1,'.',',').'\"/>';\n }else if(round($trato_fin) == 2){\n $review['trato_star'] = '<img src=\"images/rating_2.jpg\" title=\"Calificacion '.number_format($trato_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($trato_fin,1,'.',',').'\"/>';\n }else if(round($trato_fin) == 3){\n $review['trato_star'] = '<img src=\"images/rating_3.jpg\" title=\"Calificacion '.number_format($trato_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($trato_fin,1,'.',',').'\"/>';\n }else if(round($trato_fin) == 4){\n $review['trato_star'] = '<img src=\"images/rating_4.jpg\" title=\"Calificacion '.number_format($trato_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($trato_fin,1,'.',',').'\"/>';\n }else if(round($trato_fin) == 5){\n $review['trato_star'] = '<img src=\"images/rating_5.jpg\" title=\"Calificacion '.number_format($trato_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($trato_fin,1,'.',',').'\"/>';\n }\n\n //calidad\n if($calidad_fin < 2){\n $review['cal_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\"/>';\n }else if(round($calidad_fin) == 2){\n $review['cal_star'] = '<img src=\"images/rating_2.jpg\" title=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\"/>';\n }else if(round($calidad_fin) == 3){\n $review['cal_star'] = '<img src=\"images/rating_3.jpg\" title=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\"/>';\n }else if(round($calidad_fin) == 4){\n $review['cal_star'] = '<img src=\"images/rating_4.jpg\" title=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\"/>';\n }else if(round($calidad_fin) == 5){\n $review['cal_star'] = '<img src=\"images/rating_5.jpg\" title=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\"/>';\n }\n\n //puntualidad\n if($punt_fin < 2){\n $review['punt_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion '.number_format($punt_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($punt_fin,1,'.',',').'\"/>';\n }else if(round($punt_fin) == 2){\n $review['punt_star'] = '<img src=\"images/rating_2.jpg\" title=\"Calificacion '.number_format($punt_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($punt_fin,1,'.',',').'\"/>';\n }else if(round($punt_fin) == 3){\n $review['punt_star'] = '<img src=\"images/rating_3.jpg\" title=\"Calificacion '.number_format($punt_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($punt_fin,1,'.',',').'\"/>';\n }else if(round($punt_fin) == 4){\n $review['punt_star'] = '<img src=\"images/rating_4.jpg\" title=\"Calificacion '.number_format($punt_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($punt_fin,1,'.',',').'\"/>';\n }else if(round($punt_fin) == 5){\n $review['punt_star'] = '<img src=\"images/rating_5.jpg\" title=\"Calificacion '.number_format($punt_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($punt_fin,1,'.',',').'\"/>';\n }\n\n //responsabilidad\n\n if($resp_fin < 2){\n $review['resp_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion '.number_format($resp_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($resp_fin,1,'.',',').'\"/>';\n }else if(round($resp_fin) == 2){\n $review['resp_star'] = '<img src=\"images/rating_2.jpg\" title=\"Calificacion '.number_format($resp_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($resp_fin,1,'.',',').'\"/>';\n }else if(round($resp_fin) == 3){\n $review['resp_star'] = '<img src=\"images/rating_3.jpg\" title=\"Calificacion '.number_format($resp_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($resp_fin,1,'.',',').'\"/>';\n }else if(round($resp_fin) == 4){\n $review['resp_star'] = '<img src=\"images/rating_4.jpg\" title=\"Calificacion '.number_format($resp_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($resp_fin,1,'.',',').'\"/>';\n }else if(round($resp_fin) == 5){\n $review['resp_star'] = '<img src=\"images/rating_5.jpg\" title=\"Calificacion '.number_format($resp_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($resp_fin,1,'.',',').'\"/>';\n }\n //profesionalismo\n\n if($prof_fin < 2){\n $review['prof_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion '.number_format($prof_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($prof_fin,1,'.',',').'\"/>';\n }else if(round($prof_fin) == 2){\n $review['prof_star'] = '<img src=\"images/rating_2.jpg\" title=\"Calificacion '.number_format($prof_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($prof_fin,1,'.',',').'\"/>';\n }else if(round($prof_fin) == 3){\n $review['prof_star'] = '<img src=\"images/rating_3.jpg\" title=\"Calificacion '.number_format($prof_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($prof_fin,1,'.',',').'\"/>';\n }else if(round($prof_fin) == 4){\n $review['prof_star'] = '<img src=\"images/rating_4.jpg\" title=\"Calificacion '.number_format($prof_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($prof_fin,1,'.',',').'\"/>';\n }else if(round($prof_fin) == 5){\n $review['prof_star'] = '<img src=\"images/rating_5.jpg\" title=\"Calificacion '.number_format($prof_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($prof_fin,1,'.',',').'\"/>';\n }\n\n\n $com = listAll(\"reviews\", \"WHERE r_user_id = '$id_us' AND r_type='CO' GROUP BY r_pro_id\");\n $com_rows = mysql_num_rows($com);\n $review['comentarios'] = $com_rows;\n $review['global'] = $global;\n $review['trato'] = $trato_fin ;\n $review['calidad'] = $calidad_fin;\n $review['punt'] = $punt_fin;\n $review['resp'] = $resp_fin;\n $review['prof'] = $prof_fin;\n\n\n //usuario cliente\n } else if($user['user_type'] == User::USER_TYPE_CLIENT){\n $rev = listAll(\"reviews\", \"WHERE r_user_id = '$id_us' AND r_type='C'\");\n $rev_rows = mysql_num_rows($rev);\n $calification = 0;\n while ($rs_rev = mysql_fetch_object($rev)){\n $calification = $calification + $rs_rev->r_value;\n }\n $cal_final = $calification/$rev_rows;\n\n if($cal_final < 2){\n $review['stars'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion '.number_format($cal_final,1,'.',',').' \" alt=\"Calificacion '.number_format($cal_final,1,'.',',').'\"/>';\n }else if(round($cal_final) == 2){\n $review['stars'] = '<img src=\"images/rating_2.jpg\" title=\"Calificacion '.number_format($cal_final,1,'.',',').'\" alt=\"Calificacion '.number_format($cal_final,1,'.',',').'\"/>';\n }else if(round($cal_final) == 3){\n $review['stars'] = '<img src=\"images/rating_3.jpg\" title=\"Calificacion '.number_format($cal_final,1,'.',',').'\" alt=\"Calificacion '.number_format($cal_final,1,'.',',').'\"/>';\n }else if(round($cal_final) == 4){\n $review['stars'] = '<img src=\"images/rating_4.jpg\" title=\"Calificacion '.number_format($cal_final,1,'.',',').'\" alt=\"Calificacion '.number_format($cal_final,1,'.',',').'\"/>';\n }else if(round($cal_final) == 5){\n $review['stars'] = '<img src=\"images/rating_5.jpg\" title=\"Calificacion '.number_format($cal_final,1,'.',',').'\" alt=\"Calificacion '.number_format($cal_final,1,'.',',').'\"/>';\n }\n $com = listAll(\"reviews\", \"WHERE r_user_id = '$id_us' AND r_type='CO' GROUP BY r_pro_id\");\n $com_rows = mysql_num_rows($com);\n $review['comentarios'] = $com_rows;\n $review['global'] = $cal_final;\n\n }\n\t// sino tiene ningun review\n\t} else {\n\t\t$review['stars'] = '<img src=\"images/rating_0.jpg\" title=\"Calificacion 0\" alt=\"Calificacion 0\"/>';\n\t\t$review['starsP']=0;\n\t\t$review['cal_star'] = '<img src=\"images/rating_0.jpg\" title=\"Calificacion 0\" alt=\"Calificacion 0\"/>';\n\t\t$review['resp_star'] = '<img src=\"images/rating_0.jpg\" title=\"Calificacion 0\" alt=\"Calificacion 0\"/>';\n\t\t$review['punt_star'] = '<img src=\"images/rating_0.jpg\" title=\"Calificacion 0\" alt=\"Calificacion 0\"/>';\n\t\t$review['trato_star'] = '<img src=\"images/rating_0.jpg\" title=\"Calificacion 0\" alt=\"Calificacion 0\"/>';\n\t\t$review['prof_star'] = '<img src=\"images/rating_0.jpg\" title=\"Calificacion 0\" alt=\"Calificacion 0\"/>';\n\t\t$review['comentarios'] = 0;\n\t\t$review['global'] = 0;\n\t\t$review['trato'] = 0;\n\t\t$review['calidad'] = 0;\n\t\t$review['punt'] = 0;\n\t\t$review['resp'] = 0;\n\t\t$review['prof'] = 0;\n\t}\n\t\n\treturn $review;\n\t\n}", "public function getAvgNotePresse()\n {\n $result = DB::table('movies')\n ->select(DB::raw('ROUND(AVG(note_presse)) as avgpress'))\n ->first();\n\n return $result;\n }", "function findRating($data)\n {\n $result = array();\n for ($i = 0; $i< count($data);$i++){\n\n $obj = $data[$i];\n $roomID = $data[$i][\"roomId\"];\n\n $obj[\"rating\"] = \"0\";\n\n //query and get the average rating for the user reviews for meeting room given by usres\n $query = $this->db->query(\"SELECT AVG(rating) as rating FROM room_reviews where roomID = $roomID\");\n if($query->num_rows()>0)\n {\n $obj[\"rating\"] = !$query->result_array()[0][\"rating\"]? \"0.0\" :$query->result_array()[0][\"rating\"];\n }\n else\n {\n $obj[\"rating\"] = \"0\";\n\n }\n\n array_push($result, $obj);\n }\n //return the result\n return $result;\n\n }", "public function getavgstarratebyproductid($productID){\n\t\t$count5star=0;\n\t\t$count4star=0;\n\t\t$count3star=0;\n\t\t$count2star=0;\n\t\t$count1star=0;\n\t\t$this->db->where('ProductId', $productID);\n\t\t$this->db->select('Rate');\n\t\t$this->db->from('tbl_review');\n\t\t$query=$this->db->get();\n\n\t\tforeach ($query->result() as $key) {\n\t\t\tswitch ($key->Rate) {\n\t\t\t\tcase '5':\n\t\t\t\t$count5star++;\n\t\t\t\tbreak;\n\t\t\t\tcase '4':\n\t\t\t\t$count4star++;\n\t\t\t\tbreak;\n\t\t\t\tcase '3':\n\t\t\t\t$count3star++;\n\t\t\t\tbreak;\n\t\t\t\tcase '2':\n\t\t\t\t$count2star++;\n\t\t\t\tbreak;\n\t\t\t\tcase '1':\n\t\t\t\t$count1star++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t$totalstar=$count5star+$count4star+$count3star+$count2star+$count1star;\n\t\t$totalpoint=($count5star*5)+($count4star*4)+($count3star*3)+($count2star*2)+($count1star*1);\n\t\tif($totalstar!=0)\n\t\t\t$percent=$totalpoint/$totalstar;\n\t\telse\n\t\t\t$percent=0;\n\t\techo number_format($percent,1);\n\t}", "public function evalAvg()\n {\n $users = User::students()->get();\n $marks = [];\n foreach ( $users as $user )\n {\n if ($this->evalGradeExists($user))\n {\n array_push($marks,$this->userPercentage($user));\n }\n }\n $count = count($marks); //total numbers in array\n $total = 0;\n foreach ($marks as $mark) {\n $total += $mark; // total value of array numbers\n }\n $average = ($total/$count); // get average value\n return round($average,2);\n\n }", "public function getRating($user_id, $driver_id) {\n $stmt = $this->conn->prepare(\"SELECT COUNT(rating) as num, AVG(rating) as average FROM rating WHERE customer_id = ? AND driver_id = ?\");\n $stmt->bind_param(\"ii\", $user_id, $driver_id);\n\n if ($stmt->execute()) {\n\n $stmt->bind_result($num, $average);\n $stmt->fetch();\n $rating = array();\n $rating['num'] = $num; \n if($num == 0){\n $rating['average'] = 0;\n } else {\n $rating['average'] = $average;\n }\n $stmt->close();\n return $rating;\n } else {\n return NULL;\n }\n }", "public function getAverageRatingAttribute() : float\n {\n return $this->averageRating();\n }", "public function getRating()\n\t{\n\t\treturn $this->ratings['rating'];\n\t}", "public function getAverage()\r\n {\r\n $fSum = 0.0;\r\n foreach ($this->aNotes as $fNote) {\r\n $fSum += $fNote;\r\n }\r\n $fAverage = $fSum / count($this->aNotes);\r\n // get only 2 digits after comma\r\n $fAverage = floatval(number_format($fAverage, 2));\r\n return $fAverage;\r\n }", "function getRating($id)\n {\n global $conn;\n $rating = array();\n $likes_query = \"SELECT COUNT(*) FROM rating_info WHERE comment_id = $id AND rating_action='like'\";\n $dislikes_query = \"SELECT COUNT(*) FROM rating_info \n WHERE comment_id = $id AND rating_action='dislike'\";\n $likes_rs = mysqli_query($conn, $likes_query);\n $dislikes_rs = mysqli_query($conn, $dislikes_query);\n $likes = mysqli_fetch_array($likes_rs);\n $dislikes = mysqli_fetch_array($dislikes_rs);\n $rating = [\n 'likes' => $likes[0],\n 'dislikes' => $dislikes[0]\n ];\n return json_encode($rating);\n }", "public function average()\n {\n return $this->getSum() / count($this->values);\n }", "public function getRatingAverage($sum, $count, $round = false)\n\t{\n\t\tif ($count == 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\n\t\t$average = $sum / $count;\n\n\t\tif ($round)\n\t\t{\n\t\t\t$average = round($average / 0.5, 0) * 0.5;\n\t\t}\n\n\t\treturn $average;\n\t}", "public function sumRating() : float\n {\n return $this->ratings()->sum('rating');\n }", "public function getRating();", "public function getRating();", "function DisplayRating($comment) {\n $rating = get_comment_meta(get_comment_ID(), 'crfp-rating', true);\n if ($rating == '') $rating = 0;\n return $comment.'<div class=\"crfp-rating crfp-rating-'.$rating.'\"></div>'; \n }", "public function getAverageRatingByReview(Mage_Review_Model_Review $review)\n {\n $collection = Mage::getModel('rating/rating_option_vote')\n ->getResourceCollection()\n ->setReviewFilter($review->getId())\n ->setStoreFilter(Mage::app()->getStore()->getId());\n\n $rating = $this->getAverageRatingByCollection($collection);\n if (!$rating) {\n return false;\n }\n return $this->formaRatingtNumber($rating);\n }", "public function getAvgVoteResult($cid)\n {\n $sql = \"SELECT IFNULL(AVG(vote_content),0) AS vote_content,\n IFNULL(AVG(vote_difficult),0) AS vote_difficult,\n IFNULL(AVG(vote_work),0) AS vote_work,\n IFNULL(AVG(vote_test),0) AS vote_test,\n IFNULL(AVG(vote_attend),0) AS vote_attend FROM school_class_vote WHERE cid=:cid\";\n return $this->_rdb->fetchRow($sql, array('cid' => $cid));\n }", "public function recalculateRating($rating)\n {\n $reviews = $this->reviews();\n $avgRating = $reviews->avg('rating');\n $this->rating_cache = round($avgRating,1);\n $this->rating_count = $reviews->count();\n $this->save();\n }", "function medieLikeCommentiTotali($dati)\n {\n $totLikes = 0;\n $totCommenti = 0;\n\n foreach ($dati as $media)\n {\n $totLikes += $media->likes->count;\n $totCommenti += $media->comments->count;\n }\n\n return [$totLikes/count($dati), $totCommenti/count($dati)];\n }", "private function _calculateTotalsByRating()\n {\n $sql = new SqlStatement();\n $sql->select(array(\n 'id' => 'ROUND(total)',\n 'val' => 'ROUND(total)',\n 'c' => 'COUNT(*)',\n 'type' => \"'RATING'\"))\n ->from(array('p' => self::RESULTS_TABLE))\n ->group(array('ROUND(total)'));\n \n if ($this->conditions->price) {\n if ($this->conditions->price->min) {\n $sql->where(\"{$this->subquery->actualPrice} >= ?\", array($this->conditions->price->min));\n }\n if ($this->conditions->price->max) {\n $sql->where(\"{$this->subquery->actualPrice} <= ?\", array($this->conditions->price->max));\n }\n }\n \n $res = $this->db->query($sql);\n// echo $sql;\n return $res->rows;\n }", "public function avgRating(Request $request)\n{\n $service_id = $request->service_id;\n $id = $service_id;\n $num_of_ratings= Rating::orderBy('id','asc')->where('service_id',$service_id)->get();\n $service = services::find($id);\n // dd($service);\n // exit();\n //echo $service_id;\n //dd($num_of_ratings);\n $avg= 0;\n // for($i=0; $i<count($num_of_ratings);$i++){\n // $avg=$avg+\n // }\n if(count($num_of_ratings)>0){\n foreach ($num_of_ratings as $num_of_stars) {\n $avg= $avg+ $num_of_stars->stars_rated;\n\n }\n //echo \"average rating is \". $avg/count($num_of_ratings);\n $service->avg_rating = $avg/count($num_of_ratings);\n $service->save();\n return view('average_rating_page',compact('service'));\n }\n else{\n return view('average_rating_page',compact('service'));\n }\n}", "public function averageRate()\n {\n $this->quotes = (isset($this->quotes) && (is_array($this->quotes))) ? array_slice($this->quotes, 0, $this->totalCarriers) : [];\n $rateList = $this->enArrayColumn($this->quotes, 'cost');\n $count = count($this->quotes);\n $count = $count > 0 ? $count : 1;\n $rateSum = array_sum($rateList) / $count;\n $quotesReset = reset($this->quotes);\n\n $rate[] = [\n 'id' => $this->randString(),\n 'carrier_scac' => (isset($quotesReset['carrier_scac'])) ? $quotesReset['carrier_scac'] : \"\",\n 'label' => (isset($quotesReset['label'])) ? $quotesReset['label'] : \"\",\n 'cost' => $rateSum,\n 'markup' => (isset($quotesReset['markup'])) ? $quotesReset['markup'] : \"\",\n 'appendLabel' => (isset($quotesReset['appendLabel'])) ? $quotesReset['appendLabel'] : \"\",\n ];\n return $rate;\n }", "public function getRating(){\n return $this->film['rating'];\n }", "public static function employer_rating_score($employer_id) {\n global $wpdb;\n $sql = \"SELECT AVG(M.meta_value) as rate_point, COUNT(C.comment_ID) as count\n FROM $wpdb->posts as p \n join $wpdb->comments as C \n ON p.ID = c.comment_post_ID \n join $wpdb->commentmeta as M \n ON C.comment_ID = M.comment_id\n WHERE \n p.post_author = $employer_id\n AND p.post_status ='complete'\n AND p.post_type ='\" . PROJECT . \"' \n AND M.meta_key = 'et_rate'\n AND C.comment_type ='fr_review'\n AND C.comment_approved = 1\";\n \n $results = $wpdb->get_results($sql);\n if($results) {\n return array('rating_score' => $results[0]->rate_point , 'review_count' => $results[0]->count );\n }else {\n return array('rating_score' => 0 , 'review_count' => 0 ); \n }\n }", "public function getRatings() : array\n\t{\n\t\treturn $this->ratings;\n\t}", "public function getRatingAttribute()\n {\n return (int) $this->ratings()->sum('rate');\n }", "function listRestaurants()\n{\nglobal $db;\n $stmt = $db->prepare(\n 'SELECT restaurant.*, AVG(review.rating) AS avg_rating FROM restaurant\n LEFT JOIN review ON review.restaurant_id = restaurant.restaurant_id\n GROUP BY review.restaurant_id\n ORDER BY avg_rating DESC;'\n );\n $stmt->execute();\n return $stmt->fetchAll();\n}", "public function averageRating($id)\n {\n try {\n $user = User::findOrFail($id);\n $averageRate = $user->averageRating();\n } catch (\\Exception $e) {\n return response()->json(['message' => 'User rating not available']);\n }\n return response(['averageRate' => $averageRate]);\n }", "public function getReview()\n\t{\n\t\tif (!is_null($this->review)) {\n\t\t\treturn $this;\n\t\t}\n\n\t\t$expression = new Expression;\n\t\t$expression->setBase('//*')->hasClass('hreview-aggregate');\n\n\t\t$this->review = $this->findOne($expression);\n\n\t\tif ($this->review->length === 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$votes = $this->review->selectOne('.count');\n\t\t$votes = $this->getValue($votes);\n\n\t\t$average = $this->review->selectOne('.rating');\n\t\t$averageTry = $average->selectOne('.average');\n\n\t\tif ($averageTry->length === 1) {\n\t\t\t$average = $averageTry;\n\t\t}\n\t\t$average = preg_match('/([0-5](?:\\.[0-9])?)/', $this->getValue($average), $matches);\n\t\t$average = $matches[0];\n\n\t\t$best = $this->review->selectOne('.rating .best');\n\n\t\tif ($best->length === 0) {\n\t\t\t$best = 5;\n\t\t} else {\n\t\t\t$best = $this->getValue($best);\n\t\t}\n\n\t\t$this->ratings = array(\n\t\t\t'rating' => $average,\n\t\t\t'best.rating' => $best,\n\t\t\t'total.votes' => preg_replace('/[^0-9]/', '', $votes)\n\t\t);\n\n\t\treturn $this;\n\t}", "public function ratingReview($name,$description,$rating,$auction_id,$user_id)\n {\n //print_r($data);exit();\n $where = array(\n 'user_id' => $user_id,\n 'auction_id' => $auction_id\n );\n\n $this->db->select(\"id\");\n $this->db->from(\"ssx_auction_reviews\");\n $this->db->where($where);\n $check = $this->db->get();\n\n if($check->num_rows() >= 1)\n {\n $user['type'] = 'messageError';\n $user['title'] = 'Failed';\n $user['message'] = 'You already have rated this auction';\n\n echo json_encode($user);\n }\n else\n {\n $ins = array('name' => $name, 'rating' => $rating, 'description' => $description, 'user_id' => $user_id, 'auction_id' => $auction_id);\n $res = $this->db->insert('ssx_auction_reviews', $ins);\n $id = $this->db->insert_id();\n if (!empty($id)) {\n\n $this->db->set('rating_count', 'rating_count+1', FALSE);\n $this->db->where('id', $auction_id);\n $this->db->update('ssx_auctions');\n\n $countReview = $this->countReviews($auction_id);\n if (!empty($countReview)) {\n $totalReviews = $countReview[0]['COUNT(id)'];\n $totalRating = $countReview[0]['SUM(rating)'];\n if (empty($totalReviereview_formws) && empty($totalRating)) {\n\n $formula = 0;\n } else {\n $formula = $totalRating / $totalReviews;\n }\n\n //$totalRating\n $formula = ceil($formula);\n $this->db->set('average_rating', $formula);\n $this->db->where('id', $auction_id);\n $this->db->update('ssx_auctions');\n\n $auction_slug = $this->db->select(\"slug,user_id,name\")->from(\"ssx_auctions\")->where(\"id\",$auction_id)->get()->result_array();\n $userName = $this->db->select(\"first_name\")->from(\"ssx_users\")->where(\"id\",$user_id)->get()->result_array();\n\n $data = array(\n 'notification_type_id' => 2, \n 'source_id' => $user_id,\n 'target_id' => $auction_id,\n 'target_reference_userId' => $auction_slug[0]['user_id'],\n 'slug' => $auction_slug[0]['slug'],\n 'name' => $auction_slug[0]['name'],\n 'UserName' => $userName[0]['first_name'],\n ); \n\n $this->db->insert('ssx_notifications', $data);\n\n }\n\n $user['type'] = 'messageSuccess';\n $user['title'] = 'Success';\n $user['message'] = 'Your Review And Rating Added Successfully';\n\n echo json_encode($user);\n //echo 1;\n } else {\n $user['type'] = 'messageError';\n $user['title'] = 'Error';\n $user['message'] = 'Failed to Add Rating And Review';\n echo json_encode($user);\n //echo 0;\n }\n }\n }", "function count_rating($product_id,$connect) {\r\n $output = 0;\r\n $query = \"SELECT AVG(rating) as rating FROM rating WHERE product_id = '$product_id'\";\r\n $statement = $connect->prepare($query);\r\n $statement->execute();\r\n $result = $statement->fetchAll();\r\n $total_row = $statement->rowCount();\r\n if($total_row > 0) {\r\n foreach ($result as $row) {\r\n $output = round($row['rating']);\r\n }\r\n }\r\n return $output;\r\n }", "function getTaskRating() {\n\t\t$rating = -$this -> missed * 0.5;\n\t\tforeach ($this->data as $i => $row) {\n\t\t\t//if a event does belong to a ground truth event take the calculated value. Otherwise set its rating to -0.5\n\t\t\tif (!is_null($row['EventId'])) {\n\t\t\t\tif (array_key_exists($i, $this -> rating)) {\n\t\t\t\t\t$rating = $rating + $this -> rating[$i];\n\t\t\t\t} else {\n\t\t\t\t\t$rating = $rating - 0.5;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $rating;\n\t}", "public function getDishRating($id){\n $query=$this->db->query(\"SELECT COUNT(dish_review_id) AS num_review,ROUND(AVG(rating),0) AS rating FROM dish_review WHERE dish_id=\".$id);\n if($query->num_rows){\n $tmp=$query->rows[0];\n $tmp['status']=\"success\";\n }\n else{\n $tmp['status']=\"fail\";\n $tmp['error']=\"Unable to get dish rating\";\n }\n return $tmp;\n }", "public function getReviewRating() : int {\n\t\treturn ($this->reviewRating);\n\t}", "public function getRating()\n {\n if (!$this->getRatingCollection()) {\n $ratingCollection = $this->_voteFactory->create()->getResourceCollection()->setReviewFilter(\n $this->getReviewId()\n )->addRatingInfo(\n $this->_storeManager->getStore()->getId()\n )->setStoreFilter(\n $this->_storeManager->getStore()->getId()\n )->load();\n\n $this->setRatingCollection($ratingCollection->getSize() ? $ratingCollection : false);\n }\n\n return $this->getRatingCollection();\n }", "function sf_get_product_stars() {\n\t\t\n\t\t$stars_output = \"\";\n\t\t\n\t global $wpdb;\n\t global $post;\n\t $count = $wpdb->get_var(\"\n\t\t SELECT COUNT(meta_value) FROM $wpdb->commentmeta\n\t\t LEFT JOIN $wpdb->comments ON $wpdb->commentmeta.comment_id = $wpdb->comments.comment_ID\n\t\t WHERE meta_key = 'rating'\n\t\t AND comment_post_ID = $post->ID\n\t\t AND comment_approved = '1'\n\t\t AND meta_value > 0\n\t\t\");\n\t\t\n\t\t$rating = $wpdb->get_var(\"\n\t\t SELECT SUM(meta_value) FROM $wpdb->commentmeta\n\t\t LEFT JOIN $wpdb->comments ON $wpdb->commentmeta.comment_id = $wpdb->comments.comment_ID\n\t\t WHERE meta_key = 'rating'\n\t\t AND comment_post_ID = $post->ID\n\t\t AND comment_approved = '1'\n\t\t\");\n\t\t\n\t\tif ( $count > 0 ) {\n\t\t\n\t\t $average = number_format($rating / $count, 2);\n\t\t\n\t\t $stars_output .= '<div class=\"starwrapper\" itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\">';\n\t\t\n\t\t $stars_output .= '<span class=\"star-rating\" title=\"'.sprintf(__('Rated %s out of 5', 'woocommerce'), $average).'\"><span style=\"width:'.($average*16).'px\"><span itemprop=\"ratingValue\" class=\"rating\">'.$average.'</span> </span></span>';\n\t\t\n\t\t $stars_output .= '</div>';\n\t\t}\n\t\t\n\t\treturn $stars_output;\n\t}", "function update_after_fre_review($project_id, $comment_id) {\n global $wpdb;\n if (isset($_POST['score']) && $_POST['score']) {\n $rate = (int)$_POST['score'];\n if ($rate > 5) $rate = 5;\n update_comment_meta($comment_id, 'et_rate', $rate);\n update_post_meta($project_id, 'rating_score', $rate);\n }\n $employer_id = (int)get_post_field('post_author', $project_id);\n $profile_id = get_user_meta($employer_id, 'user_profile_id', true);\n $sql = \"SELECT AVG(M.meta_value) as rate_point, COUNT(C.comment_ID) as count\n FROM $wpdb->posts as p \n join $wpdb->comments as C \n ON p.ID = C.comment_post_ID \n join $wpdb->commentmeta as M \n ON C.comment_ID = M.comment_id\n WHERE \n p.post_author = $employer_id\n AND p.post_status ='complete'\n AND p.post_type ='\" . PROJECT . \"' \n AND M.meta_key = 'et_rate'\n AND C.comment_type ='fr_review'\n AND C.comment_approved = 1\";\n \n $results = $wpdb->get_results($sql);\n \n if ($results) {\n wp_cache_set(\"reviews-{$employer_id}\", $results[0]->count);\n \n // update post rating score\n update_post_meta($profile_id, 'rating_score', $results[0]->rate_point);\n } else {\n update_post_meta($profile_id, 'rating_score', $rate);\n }\n\n // send mail to employer.\n $this->mail->review_employer_email($project_id);\n }", "public function getRating(){\r\n\t\treturn $this->rating;\r\n\t}", "public function getAvgRate()\n {\n $avg = 0;\n $nb = 0;\n if (!empty($this->getRates())) {\n foreach($this->getRates() as $rate) {\n $avg += $rate->getNbStar();\n $nb++;\n }\n $avg /= $nb;\n }\n return $avg;\n }", "function average() {\n $total = 0;\n foreach ($this->grades as $value) // goes through grades using foreach\n $total += $value;\n return $total / count($this->grades);\n }", "public function getRating()\n {\n return $this->rating;\n }", "public function getRating()\n {\n return $this->rating;\n }", "public function getRating()\n {\n return $this->rating;\n }", "public function average(): float\n {\n return $this->sum() / $this->count();\n }", "public function getAverageRating($visual, $rating)\n {\n Redis::hset('visual.' . $visual, 'user.' . auth()->id(), $rating);\n $ratings = collect(Redis::hvals('visual.' . $visual))->avg();\n\n return Redis::zadd('visuals-rating', $ratings, $visual);\n }", "public function GetRating(){\n\t\treturn $this->rating;\n\t}", "public static function AvgRatingsPerAttraction($attractionName)\n\t{\n\t\t$avgRating= DB::table('Reviews')->select(DB::raw(\"avg(ratings) as AttractionAvg\"))->where('AttractionName','=',$attractionName)->get();\n\t\treturn $avgRating;\n\t}", "function getVideoRatingNums($id)\n\t{\n\t\t$sql= \"\tselect avg(rating) from yp_video_rating where video_id='$id' \";\n\t\t$result_feedback_param =getSingleResult($sql);\n\t\t//$final_rating= \tgetFinalRating($result_feedback_param);\n\t\treturn number_format($result_feedback_param,2,'.','');\t\n\t}", "function ros_get_grades_average($grads)\n{\n $povprecje = array();\n $cnt = count($grads);\n $povprecje['mistakes'] = 0;\n $povprecje['timeinseconds'] = 0;\n $povprecje['hitsperminute'] = 0;\n $povprecje['precision'] = 0;\n foreach($grads as $grade)\n {\n $povprecje['mistakes'] = $povprecje['mistakes'] + $grade->mistakes; \n $povprecje['timeinseconds'] = $povprecje['timeinseconds'] + $grade->timeinseconds;\n }\n if($cnt != 0){\n $povprecje['mistakes'] = $povprecje['mistakes'] / $cnt;\n $povprecje['timeinseconds'] = $povprecje['timeinseconds'] / $cnt;\n }\n return $povprecje;\n}", "public function rating()\n\t{\n\t\tif ( !( $this instanceof \\IPS\\Node\\Ratings ) )\n\t\t{\n\t\t\tthrow new \\BadMethodCallException;\n\t\t}\n\t\t\n\t\tif ( $this->canRate() )\n\t\t{\n\t\t\t$idColumn = static::$databaseColumnId;\n\t\t\t\t\t\t\n\t\t\t$form = new \\IPS\\Helpers\\Form('rating');\n\t\t\t$form->add( new \\IPS\\Helpers\\Form\\Rating( 'rating', $this->averageRating() ) );\n\t\t\t\n\t\t\tif ( $values = $form->values() )\n\t\t\t{\n\t\t\t\t\\IPS\\Db::i()->insert( 'core_ratings', array(\n\t\t\t\t\t'class'\t\t=> get_called_class(),\n\t\t\t\t\t'item_id'\t=> $this->$idColumn,\n\t\t\t\t\t'member'\t=> \\IPS\\Member::loggedIn()->member_id,\n\t\t\t\t\t'rating'\t=> $values['rating'],\n\t\t\t\t\t'ip'\t\t=> \\IPS\\Request::i()->ipAddress()\n\t\t\t\t), TRUE );\n\t\t\t\t\n\t\t\t\tif ( isset( static::$ratingColumnMap['rating_average'] ) )\n\t\t\t\t{\n\t\t\t\t\t$column = static::$ratingColumnMap['rating_average'];\n\t\t\t\t\t$this->$column = \\IPS\\Db::i()->select( 'AVG(rating)', 'core_ratings', array( 'class=? AND item_id=?', get_called_class(), $this->$idColumn ) )->first();\n\t\t\t\t}\n\t\t\t\tif ( isset( static::$ratingColumnMap['rating_total'] ) )\n\t\t\t\t{\n\t\t\t\t\t$column = static::$ratingColumnMap['rating_total'];\n\t\t\t\t\t$this->$column = \\IPS\\Db::i()->select( 'SUM(rating)', 'core_ratings', array( 'class=? AND item_id=?', get_called_class(), $this->$idColumn ) )->first();\n\t\t\t\t}\n\t\t\t\tif ( isset( static::$ratingColumnMap['rating_hits'] ) )\n\t\t\t\t{\n\t\t\t\t\t$column = static::$ratingColumnMap['rating_hits'];\n\t\t\t\t\t$this->$column = \\IPS\\Db::i()->select( 'COUNT(*)', 'core_ratings', array( 'class=? AND item_id=?', get_called_class(), $this->$idColumn ) )->first();\n\t\t\t\t}\n\n\t\t\t\t$this->save();\n\t\t\t\t\n\t\t\t\tif ( \\IPS\\Request::i()->isAjax() )\n\t\t\t\t{\n\t\t\t\t\t\\IPS\\Output::i()->json( 'OK' );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn $form->customTemplate( array( call_user_func_array( array( \\IPS\\Theme::i(), 'getTemplate' ), array( 'forms', 'core' ) ), 'ratingTemplate' ) );\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn \\IPS\\Theme::i()->getTemplate( 'global', 'core' )->rating( 'veryLarge', $this->averageRating() );\n\t\t}\n\t}", "public function visgo_comment_rating_save_comment_rating( $comment_id ) {\n\t\t\tif ( ( isset( $_POST['rating'] ) ) && ( '' !== $_POST['rating'] ) ) {\n\t\t\t\t$rating = intval( $_POST['rating'] );\n\t\t\t\tadd_comment_meta( $comment_id, 'rating', $rating );\n\t\t\t}\n\t\t}", "public function getRating()\n {\n return $this->rating;\n }", "public function getRatingValue()\n {\n\n if ($this->_dRatingValue === null) {\n $this->_dRatingValue = (double) 0;\n if ($this->isReviewActive() && ($oDetailsProduct = $this->getProduct())) {\n $blShowVariantsReviews = $this->getConfig()->getConfigParam('blShowVariantReviews');\n $this->_dRatingValue = round($oDetailsProduct->getArticleRatingAverage($blShowVariantsReviews), 1);\n }\n }\n\n return (double) $this->_dRatingValue;\n }", "public function getElderScore(){\n $this->db->select('ROUND(AVG(Answers.Score),2) avg_Score, Elder.FirstName FirstName, Elder.LastName LastName, Elder.RoomNumber RoomNumber, Elder.ID_Elder Elder_ID ');\n $this->db->where(\"Answers.Score !=\",6);\n $this->db->join('Elder','Elder.ID_Elder=Answers.ID_Elder');\n $this->db->group_by('Answers.ID_Elder');\n $this->db->order_by('AVG(Answers.Score)',\"asc\");\n $this->db->limit(10);\n $this->db->from('Answers');\n $query= $this->db->get();\n $data['avg_scores']=$query->result();\n return $data;\n }", "public function averageRatingAsPercentage() : float\n {\n $range = config('rateable.minimum') > 0 ? config('rateable.maximum') - config('rateable.minimum') : config('rateable.maximum');\n return ($this->ratings()->count() * $range) != 0 ? $this->sumRating() / ($this->ratings()->count() * $range) * 100 : 0;\n }", "public function product_ratings($product_id)\n\t{\n\t\t$this->db->from('product_review');\n\t\t$this->db->where('product_review_status = 1 AND product_id = '.$product_id);\n\t\t$query = $this->db->get();\n\t\t\n\t\treturn $query;\n\t}", "function query_select_user_rating($user_id) {\n global $connection;\n\n //should be safe but escape:\n $user_id = mysqli_real_escape_string($connection, $user_id);\n\n //construct query\n $query = \"SELECT IF(FLOOR(AVG(stars)) IS NULL, 0, FLOOR(AVG(stars))) AS stars, \";\n $query .= \"COUNT(user_id) AS occurrences \";\n $query .= \"FROM feedback WHERE user_id='{$user_id}'\";\n\n $result = mysqli_query($connection, $query);\n\n if($result)\n $result = mysqli_fetch_assoc($result);\n\n return $result;\n}", "function getRating()\n {\n return $this->rating;\n }", "public static function computeRatingPrediction(){\n $itemRatingPredictionArray = array();\n $sim_Rating_product =self::$sim_Rating_product;\n $simSummation= self::$simSummation;\n foreach ($sim_Rating_product as $key => $value) {\n if($simSummation[$key] != 0){\n $itemRatingPredictionArray[$key]= to2Decimal($value/$simSummation[$key]);\n }\n\n }\n arsort($itemRatingPredictionArray);\n RootMeanSquareEstimation::computeRootMeanSqEst($itemRatingPredictionArray);\n return $itemRatingPredictionArray;\n }", "public function getRatings(): Collection\n {\n\n return $this->ratings;\n\n }", "public function getShopRating ( $db, $thread_id ) {\n \n $stmt = $db->prepare(\" SELECT RT.title, TRRT.rating_type_id, FORMAT( AVG( TRRT.rate ) , 2 ) AS avg_rate\n FROM `comments_phpreview_ratings_rating_types` AS `TRRT`\n\t\t\t\t\t\t\t\tLEFT JOIN `comments_phpreview_rating_types` AS `RT` \n\t\t\t\t\t\t\t\tON RT.id = TRRT.rating_type_id\n\n WHERE TRRT.rating_id IN \n (\n SELECT TR.id \n FROM `comments_phpreview_ratings` AS `TR` \n WHERE TR.status='T' AND TR.thread_id = ?\n ) \n GROUP BY TRRT.rating_type_id\");\n \n $stmt->execute( array($thread_id) );\n $result = $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n \n $stmt = null;\t\n unset($stmt); \n \n return $result;\n \n }", "function update_after_empoyer_review($project_id, $comment_id) {\n global $wpdb;\n \n $rate = 0;\n \n $bid_id_accepted = get_post_meta($project_id, 'accepted', true);\n \n $freelancer_id = get_post_field('post_author', $bid_id_accepted);\n \n $profile_id = get_user_meta($freelancer_id, 'user_profile_id', true);\n \n //update status for project\n wp_update_post(array(\n 'ID' => $project_id,\n 'post_status' => 'complete'\n ));\n \n //update rate for profile\n wp_update_post(array(\n 'ID' => $bid_id_accepted,\n 'post_status' => 'complete'\n ));\n \n if (isset($_POST['score']) && $_POST['score']) {\n $rate = (int)$_POST['score'];\n if ($rate > 5) $rate = 5;\n update_comment_meta($comment_id, 'et_rate', $rate);\n update_post_meta($bid_id_accepted, 'rating_score', $rate);\n }\n \n $sql = \"select AVG(M.meta_value) as rate_point, COUNT(C.comment_ID) as count\n from $wpdb->posts as p \n Join $wpdb->comments as C \n on p.ID = C.comment_post_ID \n join $wpdb->commentmeta as M \n on C.comment_ID = M.comment_id\n Where p.post_author = $freelancer_id\n and p.post_status ='complete'\n and p.post_type ='\" . BID . \"' \n and M.meta_key = 'et_rate'\n and C.comment_type ='em_review'\n and C.comment_approved = 1 \";\n \n $results = $wpdb->get_results($sql);\n \n // update post rating score\n if ($results) {\n wp_cache_set(\"reviews-{$freelancer_id}\", $results[0]->count);\n update_post_meta($profile_id, 'rating_score', $results[0]->rate_point);\n } else {\n update_post_meta($profile_id, 'rating_score', $rate);\n }\n \n // send mail to freelancer.\n $this->mail->review_freelancer_email($project_id);\n }", "public function getAllRatings(){\n return self::all();\n }", "function ratingByPro($id_pro,$id_user){\n\t\n\t$val = listAll(\"reviews\", \"WHERE r_user_eval = '$id_user' AND r_pro_id = '$id_pro'\");\n\t$rows_val = mysql_num_rows($val);\n\t\n\tif($rows_val > 0){\n\t\n\t\t\t$calification = 0;\n\t\t\t$trato = 0;\n\t\t\t$calidad = 0;\n\t\t\t$prof = 0;\n\t\t\t$resp = 0;\n\t\t\t$punt = 0;\n\t\t\t$t=0;\n\t\t\t$p=0;\n\t\t\t$r=0;\n\t\t\t$pr=0;\n\t\t\t$ca =0;\n\t\t\twhile ($rs_rev = mysql_fetch_object($val)){\n\t\t\t\tif($rs_rev->r_type != \"CO\" && $rs_rev->r_type != \"F\"){\n\t\t\t\t$calification = $calification + $rs_rev->r_value;\n\t\t\t\t$t++;\n\t\t\t\t}\n\t\t\t\tif($rs_rev->r_type == \"CA\"){\n\t\t\t\t\t$calidad_fin = $rs_rev->r_value;\n\t\t\t\t\t\n\t\t\t\t}else if($rs_rev->r_type == \"T\"){\n\t\t\t\t\t$trato_fin = $rs_rev->r_value;\n\t\t\t\t\t\n\t\t\t\t}else if($rs_rev->r_type == \"P\"){\n\t\t\t\t\t$punt_fin = $rs_rev->r_value;\n\t\t\t\t\t\n\t\t\t\t}else if($rs_rev->r_type == \"R\"){\n\t\t\t\t\t$resp_fin = $rs_rev->r_value;\n\t\t\t\t\t\n\t\t\t\t}else if($rs_rev->r_type == \"PR\"){\n\t\t\t\t\t$prof_fin = $rs_rev->r_value;\n\n\t\t\t\t}else if($rs_rev->r_type == \"CO\"){\n\t\t\t\t\t$comentario = $rs_rev->r_value;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\t//totales\n\t\t\t$global = $calification/$t;\n\t\n\t\t\t//global\n\t\t\tif($global < 2){\n\t\t\t\t$review['stars'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion '.number_format($global,1,'.',',').'\" alt=\"Calificacion '.number_format($global,1,'.',',').'\"/>';\n\t\t\t}else if(round($global) == 2){\n\t\t\t\t$review['stars'] = '<img src=\"images/rating_2.jpg\" title=\"Calificacion '.number_format($global,1,'.',',').'\" alt=\"Calificacion '.number_format($global,1,'.',',').'\"/>';\n\t\t\t}else if(round($global) == 3){\n\t\t\t\t$review['stars'] = '<img src=\"images/rating_3.jpg\" title=\"Calificacion '.number_format($global,1,'.',',').'\" alt=\"Calificacion '.number_format($global,1,'.',',').'\"/>';\n\t\t\t}else if(round($global) == 4){\n\t\t\t\t$review['stars'] = '<img src=\"images/rating_4.jpg\" title=\"Calificacion '.number_format($global,1,'.',',').'\" alt=\"Calificacion '.number_format($global,1,'.',',').'\"/>';\n\t\t\t}else if(round($global) == 5){\n\t\t\t\t$review['stars'] = '<img src=\"images/rating_5.jpg\" title=\"Calificacion '.number_format($global,1,'.',',').'\" alt=\"Calificacion '.number_format($global,1,'.',',').'\"/>';\n\t\t\t}\n\t\n\t\t\t//trato\n\t\t\tif($trato_fin < 2){\n\t\t\t\t$review['trato_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion '.number_format($trato_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($trato_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($trato_fin) == 2){\n\t\t\t\t$review['trato_star'] = '<img src=\"images/rating_2.jpg\" title=\"Calificacion '.number_format($trato_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($trato_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($trato_fin) == 3){\n\t\t\t\t$review['trato_star'] = '<img src=\"images/rating_3.jpg\" title=\"Calificacion '.number_format($trato_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($trato_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($trato_fin) == 4){\n\t\t\t\t$review['trato_star'] = '<img src=\"images/rating_4.jpg\" title=\"Calificacion '.number_format($trato_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($trato_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($trato_fin) == 5){\n\t\t\t\t$review['trato_star'] = '<img src=\"images/rating_5.jpg\" title=\"Calificacion '.number_format($trato_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($trato_fin,1,'.',',').'\"/>';\n\t\t\t}\n\t\n\t\t\t//calidad\n\t\t\tif($calidad_fin < 2){\n\t\t\t\t$review['cal_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($calidad_fin) == 2){\n\t\t\t\t$review['cal_star'] = '<img src=\"images/rating_2.jpg\" title=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($calidad_fin) == 3){\n\t\t\t\t$review['cal_star'] = '<img src=\"images/rating_3.jpg\" title=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($calidad_fin) == 4){\n\t\t\t\t$review['cal_star'] = '<img src=\"images/rating_4.jpg\" title=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($calidad_fin) == 5){\n\t\t\t\t$review['cal_star'] = '<img src=\"images/rating_5.jpg\" title=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($calidad_fin,1,'.',',').'\"/>';\n\t\t\t}\n\t\n\t\t\t//puntualidad\n\t\t\tif($punt_fin < 2){\n\t\t\t\t$review['punt_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion '.number_format($punt_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($punt_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($punt_fin) == 2){\n\t\t\t\t$review['punt_star'] = '<img src=\"images/rating_2.jpg\" title=\"Calificacion '.number_format($punt_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($punt_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($punt_fin) == 3){\n\t\t\t\t$review['punt_star'] = '<img src=\"images/rating_3.jpg\" title=\"Calificacion '.number_format($punt_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($punt_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($punt_fin) == 4){\n\t\t\t\t$review['punt_star'] = '<img src=\"images/rating_4.jpg\" title=\"Calificacion '.number_format($punt_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($punt_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($punt_fin) == 5){\n\t\t\t\t$review['punt_star'] = '<img src=\"images/rating_5.jpg\" title=\"Calificacion '.number_format($punt_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($punt_fin,1,'.',',').'\"/>';\n\t\t\t}\n\t\n\t\t\t//responsabilidad\n\t\n\t\t\tif($resp_fin < 2){\n\t\t\t\t$review['resp_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion '.number_format($resp_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($resp_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($resp_fin) == 2){\n\t\t\t\t$review['resp_star'] = '<img src=\"images/rating_2.jpg\" title=\"Calificacion '.number_format($resp_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($resp_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($resp_fin) == 3){\n\t\t\t\t$review['resp_star'] = '<img src=\"images/rating_3.jpg\" title=\"Calificacion '.number_format($resp_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($resp_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($resp_fin) == 4){\n\t\t\t\t$review['resp_star'] = '<img src=\"images/rating_4.jpg\" title=\"Calificacion '.number_format($resp_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($resp_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($resp_fin) == 5){\n\t\t\t\t$review['resp_star'] = '<img src=\"images/rating_5.jpg\" title=\"Calificacion '.number_format($resp_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($resp_fin,1,'.',',').'\"/>';\n\t\t\t}\n\t\t\t//profesionalismo\n\t\n\t\t\tif($prof_fin < 2){\n\t\t\t\t$review['prof_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion '.number_format($prof_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($prof_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($prof_fin) == 2){\n\t\t\t\t$review['prof_star'] = '<img src=\"images/rating_2.jpg\" title=\"Calificacion '.number_format($prof_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($prof_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($prof_fin) == 3){\n\t\t\t\t$review['prof_star'] = '<img src=\"images/rating_3.jpg\" title=\"Calificacion '.number_format($prof_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($prof_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($prof_fin) == 4){\n\t\t\t\t$review['prof_star'] = '<img src=\"images/rating_4.jpg\" title=\"Calificacion '.number_format($prof_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($prof_fin,1,'.',',').'\"/>';\n\t\t\t}else if(round($prof_fin) == 5){\n\t\t\t\t$review['prof_star'] = '<img src=\"images/rating_5.jpg\" title=\"Calificacion '.number_format($prof_fin,1,'.',',').'\" alt=\"Calificacion '.number_format($prof_fin,1,'.',',').'\"/>';\n\t\t\t}\n\t\n\t\n\t\t\t\n\t\t\t\n\t\t\t$review['comentario'] = $comentario;\n\t\t\t$review['global'] = $global;\n\t\t\t$review['trato'] = $trato_fin ;\n\t\t\t$review['calidad'] = $calidad_fin;\n\t\t\t$review['punt'] = $punt_fin;\n\t\t\t$review['resp'] = $resp_fin;\n\t\t\t$review['prof'] = $prof_fin;\n\t\t\t}else{\n\t\t\t\t$review['stars'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion 0\" alt=\"Calificacion 0\"/>';\n\t\t\t\t$review['resp_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion 0\" alt=\"Calificacion 0\"/>';\n\t\t\t\t$review['punt_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion 0\" alt=\"Calificacion 0\"/>';\n\t\t\t\t$review['trato_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion 0\" alt=\"Calificacion 0\"/>';\n\t\t\t\t$review['prof_star'] = '<img src=\"images/rating_1.jpg\" title=\"Calificacion 0\" alt=\"Calificacion 0\"/>';\n\t\t\t\t$review['comentarios'] = \"\";\n\t\t\t\t$review['global'] = 1;\n\t\t\t\t$review['trato'] = 1 ;\n\t\t\t\t$review['calidad'] = 1;\n\t\t\t\t$review['punt'] = 1;\n\t\t\t\t$review['resp'] = 1;\n\t\t\t\t$review['prof'] = 1;\n\t\t\t}\n\t\t\t\n\t\t\treturn $review;\n\t\n}", "public static function readProductReviews($productID) {\n $strQuery = DB::table(DB::raw('product_reviews as pr'))\n ->join('users','users.id','=', 'pr.user_id')\n ->where('pr.product_id',$productID)\n ->where('pr.status','approved')\n ->select('users.id','users.full_name','pr.review','pr.rating','pr.created_at')\n ->get();\n \n $ratingCount = 0;\n $avgRating = 0;\n \n //array to store the result\n $arrReviewDetail = array();\n $arrReviewDetail['reviews'] = array();\n \n //initializing the results\n if($strQuery) {\n foreach($strQuery as $row) {\n if(!is_null($row->id)) {\n $ratingCount++;\n $avgRating += $row->rating;\n $arrReviewDetail['reviews'][] = array(\n 'id' => $row->id,\n 'name' => $row->full_name,\n 'image' => \"\",\n 'review' => $row->review,\n 'rating' => $row->rating,\n 'created_at' => $row->created_at\n );\n } \n }\n $arrReviewDetail['total_rating'] = $ratingCount;\n $arrReviewDetail['avg_rating'] = ($ratingCount == 0) ? $avgRating : number_format(($avgRating/$ratingCount),2,'.','');\n }\n else {\n $arrReviewDetail['avg_rating'] = 0.00;\n $arrReviewDetail['total_rating'] = 0.00;\n $arrReviewDetail['reviews'] = array(); \n }\n return $arrReviewDetail; \n }", "function SaveRating($commentID) {\n add_comment_meta($commentID, 'crfp-rating', $_POST['crfp-rating'], true);\n }", "public function getCommentPopularity()\n {\n $total = $this->getLikes() + $this->getDislikes();\n if ($total) {\n $popularity = 100 * ($this->getLikes()\n / ($this->getLikes() + $this->getDislikes()));\n return round($popularity);\n } else {\n return 0;\n }\n }", "public function getAverageConfidence(): float\n {\n return RoadDamageReport::where('roaddamage_id', $this->id)\n ->avg('confidence');\n }", "public function actionRate()\n\t{\n\t\t$note_id = $_POST['note_id'];\n\t\t$student_id = $_POST['student_id'];\n\t\t$rating = $_POST['rating'];\n\n\t\t$model = $this->loadModel($note_id);\n\t\t$model->rate($student_id, $rating);\n\n\t\t$totalRating = $model->getTotalRating();\n\t\t$ratersCount = $model->getRatersCount();\n\n\t\tif ( ! $totalRating)\n\t\t\techo 'N/A';\n\t\telse\n\t\t\techo '' . ((double)$totalRating / $ratersCount) . ' (dari ' . $ratersCount . ' pengguna)';\n\t}", "public function getScore($title){\n $stmt = $this->conn->prepare( 'SELECT rating FROM reviews WHERE title = :title' );\n $stmt->bindParam ( ':title', $title );\n $stmt->execute ();\n $stmt->fetch ();\n $stmh = $this->conn->prepare( 'SELECT rating FROM reviews WHERE title = :title AND rating = \"FRESH\"' );\n $stmh->bindParam ( ':title', $title );\n $stmh->execute ();\n $stmh->fetch ();\n if($stmh->rowCount () == 0)\n return 0;\n else\n return (int) ($stmh->rowCount () / $stmt->rowCount () * 100);\n }", "private function findRatingByProduct($arrProduct){\n $queryResult = DB::table('product_reviews')\n ->whereIN('product_id',$arrProduct)\n ->groupBy('product_id')\n ->select(DB::raw('AVG(rating) as avg_rating, COUNT(*) as total_ratings,product_id'))\n ->get();\n //array to store the result\n $arrRating = array();\n\n //reading the results\n foreach($queryResult as $row) {\n\n $num_of_full_starts = round($row->avg_rating,1);// number of full stars\n $num_of_half_starts = $num_of_full_starts-floor($num_of_full_starts); //number of half stars\n $number_of_blank_starts = 5-($row->avg_rating); //number of white stars\n\n $arrRating[$row->product_id] = array(\n 'averageRating' => $row->avg_rating,\n 'totalRating' => $row->total_ratings,\n 'full_stars' => $num_of_full_starts,\n 'half_stars' => $num_of_half_starts,\n 'blank_stars' => $number_of_blank_starts\n );\n }\n\n \n\n\n return $arrRating;\n }", "function wiziapp_get_rating($postId){\n $postId = intval($postId);\n //polldaddy rating\n $id = get_option('pd-rating-posts-id');\n if(function_exists('polldaddy_show_rating_comments') && $id>0){\n $url = 'http://polldaddy.com/ratings/rate.php?';\n $url_query = array();\n $url_query['cmd'] = 'get';\n $url_query['id'] = get_option('pd-rating-posts-id');\n $url_query['uid'] = 'wp-post-'.$postId;\n $url_query['item_id'] = '_post_'.$postId;\n\n\n $link = $url . http_build_query($url_query);\n $matches = array();\n $get_content = wiziapp_general_http_request('',$link,'GET');\n $get_content = $get_content['body'];\n preg_match(\"/\\.avg_rating = ([a-z0-9]*)/\", $get_content, $matches);\n return wiziapp_convert_rating($matches[1],5);\n }\n //GD Star rating\n global $gdsr;\n if(is_object($gdsr) && get_class($gdsr)== 'GDStarRating' && $postId>0 ){\n $rating = $gdsr->get_article_rating($postId);\n return wiziapp_convert_rating($rating[1]/$rating[0],$gdsr->o['stars']);\n }\n //WP-PostRatings\n if (function_exists('process_ratings') && function_exists('get_post_custom') && $postId>0){\n $post_ratings_data = get_post_custom($postId);\n return wiziapp_convert_rating($post_ratings_data['ratings_average'][0],intval(get_option('postratings_max')));\n }\n}" ]
[ "0.7815952", "0.7160213", "0.69731236", "0.69356567", "0.66185904", "0.6595174", "0.64630806", "0.6456797", "0.64519626", "0.64074165", "0.6389168", "0.63694394", "0.6358621", "0.63110065", "0.62753147", "0.6258707", "0.61612374", "0.6128268", "0.6099714", "0.6086556", "0.60219306", "0.59764737", "0.59654313", "0.5885262", "0.58838236", "0.58838", "0.58798826", "0.58124083", "0.5802436", "0.57965094", "0.57899874", "0.5754663", "0.57448184", "0.5714865", "0.5673502", "0.5668432", "0.56640476", "0.5657505", "0.5652262", "0.56378394", "0.56351227", "0.56351227", "0.5633028", "0.56192905", "0.5612454", "0.55935705", "0.5592827", "0.555342", "0.55518097", "0.55484647", "0.5542455", "0.553792", "0.5535697", "0.55287343", "0.5511637", "0.5506435", "0.54995775", "0.5496734", "0.549375", "0.5489159", "0.5482128", "0.5474453", "0.5467309", "0.54667586", "0.546666", "0.54473555", "0.5440121", "0.5439165", "0.54106194", "0.54106194", "0.54106194", "0.5410225", "0.53996736", "0.5383622", "0.53803843", "0.53783673", "0.5368029", "0.5357691", "0.53285366", "0.5314728", "0.53112483", "0.5294492", "0.52925277", "0.5287122", "0.52812797", "0.52754813", "0.5274333", "0.52727395", "0.5267574", "0.52663195", "0.5248449", "0.52477926", "0.523842", "0.5223448", "0.52174306", "0.5196639", "0.51918125", "0.51879305", "0.5176468", "0.51647127" ]
0.84239227
0
Adds new comment to comments table
public function addNewComment($data){ $this->db->query("INSERT INTO comments (comment_description, rating, recipe_id, ownerid) VALUES (:description, :rating, :recipeid, :ownerid)"); $this->db->bind(':description', $data['comment']); $this->db->bind(':rating', $data['rating']); $this->db->bind(':recipeid', $data['rid']); $this->db->bind(':ownerid',$_SESSION['user_id']); try { $this->db->execute(); } catch (PDOException $e) { return false; } // Return the comment added from the INSERT operation above //$this->db->query('SELECT * FROM comments WHERE comment_id = (SELECT MAX(comment_id) FROM comments)'); $this->db->query('SELECT comments.*, users.user_username FROM comments JOIN users ON ownerid=user_id WHERE comment_id = (SELECT MAX(comment_id) FROM comments)'); return $this->db->single(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add(Comment $comments)\n {\n $query = $this->db->pdo->prepare('INSERT INTO comments(idnews, idparent, niveau, moderate, content, membre, addDate) VALUES (:idnews, :idparent, :niveau, :moderate, :content, :membre, NOW())');\n $query->bindValue(':idnews', $comments->idnews(), PDO::PARAM_INT);\n $query->bindValue(':idparent', $comments->idparent(), PDO::PARAM_INT);\n $query->bindValue(':niveau', $comments->niveau(), PDO::PARAM_INT);\n $query->bindValue(':moderate', $comments->moderate(), PDO::PARAM_INT);\n $query->bindValue(':content', $comments->content(), PDO::PARAM_STR);\n $query->bindValue(':membre', $comments->membre(), PDO::PARAM_STR);\n\n $query->execute();\n }", "public function addComment() {\n $body = $this->getData();\n\n $comentario = $body->comentario;\n $usuario = $body->usuario;\n $fecha = $body->fecha;\n $puntaje = $body->puntaje;\n $id_jugador = $body->id_jugador;\n $id_comentario = $this->model->insert($comentario, $usuario, $fecha, $puntaje, $id_jugador);\n\n if($id_comentario) {\n $this->view->response(\"Se agrego el comentario nùmero: {$id_comentario}\", 200);\n } else {\n $this->view->response(\"El comentario no se pudo agregar \", 500);\n }\n\n }", "abstract protected function add(Comment $comment);", "public function newComment() {\n $datas['chapter_id'] = abs((int) $_GET['id']);\n $datas['author'] = trim(htmlspecialchars((string) $_POST['newCommentAuthor']));\n $datas['content'] = trim(htmlspecialchars((string) $_POST['newCommentContent']));\n\n if (!empty($datas['content']) && !empty($datas['author'])) {\n $commentMngr = new CommentManager();\n $commentMngr->add($datas);\n \n $_SESSION['commentsPseudo'] = $datas['author'];\n } else {\n $GLOBALS['error']['newComment'] = \"Un commentaire ne peut pas être vide et doit impérativement être associé à un pseudo.\";\n }\n }", "public function add(Comment $comment)\n {\n $sql = \"INSERT INTO comments(idArticle, author, content, publishDate)\n VALUES(:idArticle, :author, :content, NOW())\";\n $query = $this->db->prepare($sql);\n $query->execute([\n 'idArticle' => $comment->idArticle(),\n 'author' => $comment->author(),\n 'content' => $comment->content()\n ]);\n }", "function addComment(){\n\t\t$this->Article->Comment->create();\n\t\tif ($this->Article->Comment->save($this->data)) {\n\t\t\techo __('Your comment has been added successfully, and will be viewed soon after approving.', true);\n\t\t} else {\n\t\t\techo __('Your comment could not be added.', true);\n\t\t\techo '<br />';\n\t\t\tforeach($this->Article->Comment->validationErrors as $key=>$val){\n\t\t\t\techo $val.',<br />';\n\t\t\t}\n\t\t\techo 'and try again.';\n\t\t}\n\t\t$this->autoRender = false;\n\t}", "public function addComment(): void\n {\n $this->articleId = $_GET['articleId'];\n $this->content = $_POST['comment'];\n $this->author = $_POST['nickname'];\n $datetime = new DateTime();\n $this->date = $datetime->format('Y-m-d H:i:s');\n\n $this->commentModel->addComment($this->content, $this->date, $this->author, $this->articleId);\n\n // Redirect to the article page\n Router::redirectTo('articleDetails&id=' . $this->articleId);\n exit();\n }", "public function addOneComment(){\n\t\tif (!empty($_POST['user_name']) && !empty($_POST['content'])){\n\t\t\t$values = array(\n \t\t'user_name' => $_POST['user_name'],\n\t\t\t'content' => $_POST['content'],\n\t\t\t'post_id' => $_POST['post_id']\n\t\t);\n\n\t\t$sqlfuncs = array(\n \t\t'date_creation' => 'NOW()',\n\t\t);\n\n\t$this->pInsertFunc(\"INSERT INTO\", \"comment\", $values, $sqlfuncs);\n\t\t\techo '<script>alert(\"Le commentaire a bien été envoyé.\")</script>';\n\t\t}\n\n\t}", "public function addComment()\n {\n $this->isConnect();\n\n $post = $this->token->check($_POST);\n\n $formMessage = $this->commentsValidationForm->checkForm($post);\n\n if(!$formMessage)\n {\n $post['user_id'] = $_SESSION['id'];\n $post['validated'] = ($_SESSION['statut'] === 'admin') ? 1 : null;\n $this->comments->add($post);\n header('Location: index.php?route=front.postById&id=' . $_POST['post_id'] . '&success=' . $_SESSION['statut'] . '#comments');\n exit;\n }\n else\n {\n $postAddUnvalid = $post;\n $post = $this->posts->postById($_GET['id']);\n $comments = $this->comments->commentsById($_GET['id']);\n $this->render('postById', compact('formMessage', 'postAddUnvalid', 'post', 'comments'));\n }\n }", "public function comment($comment)\n {\n $this->comments[] = $comment;\n }", "public function addCommentAction()\n {\n $this->confirmSession();\n\n $this->view->disable();\n if ($this->request->isPost()) {\n $validator = new CommentValidation();\n $errorMessages = $validator->validate($this->request->getPost());\n \n if (count($errorMessages)) {\n $this->redirect('/index/notFound');\n return;\n }\n\n $postId = $this->request->getPost('postId');\n\n $post = News::findFirst([\n 'conditions' => 'id = ?0 AND isDeleted = 0',\n 'bind' => [\n $postId\n ]\n ]);\n \n if (!$post) {\n $this->redirect('/index/notFound');\n return;\n }\n\n $comment = new Comments();\n\n $comment->userId = $this->session->get('user')['id'];\n $comment->newsId = $postId;\n $comment->content = $this->request->getPost('content');\n $comment->createdAt = date('Y-m-d H:i:s');\n\n $comment->save();\n\n $this->redirect(\"/index/postDetails?id={$postId}\");\n }\n }", "public function m_added_comments($data){\n\t\t$this->db->insert('comments',$data);\n\t}", "public function addComment(){\n\t\t try{\n\t\t\t $conn=DBConnection::getConnection();\t\t\t \n\t\t\t \t\t\t \n\t\t\t $insertQuery=\"INSERT INTO comment(comment_description,comment_date,news_id,user_name)VALUES(:des,:com_date,:newsId,:user)\";\n\t\t\t $cmd=$conn->prepare($insertQuery);\n\t\t\t \n\t\t\t $cmd->bindValue(':des',$this->getCommentDescription(),PDO::PARAM_STR);\n\t\t\t $cmd->bindValue(':com_date',$this->getCommentDate(),PDO::PARAM_STR);\n\t\t\t $cmd->bindValue(':newsId',$this->getNewsId(),PDO::PARAM_INT);\n\t\t\t $cmd->bindValue(':user',$this->getUserName(),PDO::PARAM_STR);\n\t\t\t \n\t\t\t $returnedValue=$cmd->execute(); //Returns TRUE on success or FALSE on failure\n\t\t\t return $returnedValue;\n\t\t }catch(PDOException $p){\n\t\t\t echo 'Fail to connect';\n\t\t\t echo $p->getMessage();\n\t\t }\n\t }", "public function addComment()\r\n {\r\n $pdoStatment = $this->pdo->prepare(\r\n 'INSERT INTO `comment`(`content`, `id_User`, `id_Article`) \r\n VALUES(:content, :id_User, :id_Article)'\r\n );\r\n $pdoStatment->bindValue(':content', $this->content, PDO::PARAM_STR);\r\n $pdoStatment->bindValue(':id_User', $this->id_User, PDO::PARAM_INT);\r\n $pdoStatment->bindValue(':id_Article', $this->id_Article, PDO::PARAM_INT);\r\n $pdoStatment->execute();\r\n return $this->pdo->lastInsertId();\r\n }", "public function addComment()\n {\n session_start();\n $superglobalsPost = $this->getSuperglobals()->get_POST();\n $newComment = new CommentManager;\n $superglobalsPost['status'] = \"waiting\";\n $newComment->createComment($superglobalsPost);\n if (isset($superglobalsPost['post_id'])) {\n $post_id = $superglobalsPost['post_id'];\n }\n $titleAction = \"Confirmation d'enregistrement\"; //confirmation message\n $actionConfirmation = \"/post?id=\" . $post_id;\n $textConfirmation = \"Votre commentaire a bien été enregistré\";\n echo $this->getRender()->render('confirmationTemplate.twig', [\n 'titleAction' => $titleAction,\n 'actionConfirmation' => $actionConfirmation,\n 'textConfirmation' => $textConfirmation,\n 'session' => $this->getSuperglobals()->get_SESSION()\n ]);\n }", "public function addComment($comment) {\n $db = new mysql('testserver', 'testuser', 'testpassword');\n $sql = \"INSERT INTO comments_table (parent_id, name, comment, create_date) VALUES (\" . $comment['parent_id'] . \", \" . $comment['name'] . \", \" . $comment['comment'] . \", NOW())\";\n $result = mysql_query($sql, $db);\n if($result) {\n $id = mysql_insert_id();\n $sql = \"SELECT * FROM comments_table where id=\" . $id . \";\";\n $result = mysql_query($sql, $db);\n $comment = mysql_result($result, 0);\n return $comment;\n } else {\n return 'save failed';\n }\n }", "public function InsertComment($details)\n {\n $this->comments[] = $details;\n }", "public function actionAddComment()\n {\n $profile = (new UsersProfile())->getProfile();\n $model = new Comment();\n $model->task_id = Yii::$app->request->get('task_id');\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->task_id]);\n }\n\n return $this->render('add-comment', \\compact('model', 'profile'));\n }", "public function addComment($user, $comment) {\r\n\r\n $timestamp = date(\"Y-m-d-h-i-s-a\", time());\r\n $sql = \"INSERT INTO RecipeComments(page, comment, username, timestamp) VALUES ('$this->page', '$comment', '$user', '$timestamp')\";\r\n \r\n mysqli_query($this->conn, $sql);\r\n\r\n }", "public function createComment($comment, $author, $email, $chapter_id) {\n \n global $db; // defined in models/connect.php\n $sql = $db->prepare('\n INSERT INTO comment (comment, author, email, comment_date,chapter_id) \n VALUES(?, ?, ?, NOW(), ?)\n ');\n $affectedLines = $sql->execute(array($comment, $author, $email, $chapter_id));\n //result is commented out\n }", "protected function loadComments() {\r\n $this->comments = new \\App\\Table\\CommentTable(App::getInstance()->getDb());\r\n }", "public function addcomment($entry_id, $trip_id) {\n if (empty($_POST['content'])) {\n Router::redirect(\"/trips/dashboard/missing\");\n }\n\n # Associate this trip with this user\n $_POST['user_id'] = $this->user->user_id;\n\n $_POST['entry_id'] = $entry_id;\n\n # Unix timestamp of when this trip was created / modified\n $_POST['created'] = Time::now();\n\n DB::instance(DB_NAME)->insert(\"comments\", $_POST);\n\n Router::redirect(\"/trips/dashboard/\".$trip_id);\n }", "public function addComment(Comment $comment)\n {\n $this->comments[] = $comment;\n }", "public function addCommentAction()\n {\n /** @var Facepalm_Model_Row_Comment $comment */\n\n $this->_helper->assertHasParameter('point_id');\n\n $form = new Facepalm_Form_Comment();\n\n if($this->getRequest()->isPost()) {\n $post = $this->getRequest()->getPost();\n\n if($form->isValid($post)) {\n $comments = new Facepalm_Model_Comments();\n $comment = $comments->createRow($form->getValues());\n\n $form->persist($this->getCurrentUser(), $comment);\n\n $this->_helper->sendNotifications(\n $comment, $this->getCurrentUser()\n );\n\n $form->reset();\n }\n }\n\n $points = new Facepalm_Model_Points();\n $point = $points->find($this->_getParam('point_id'))->current();\n\n $form->getElement('point_id')->setValue($point->id);\n\n $this->view->point = $point;\n $this->view->form = $form;\n\n $this->_helper->layout->disableLayout();\n }", "function insertComment() {\n if ($this->getRequestMethod() != \"POST\") {\n $this->response('', 406);\n }\n $comment = json_decode(file_get_contents(\"php://input\"),true);\n $auth = $this->getAuthorization();\n if (!$this->validateAuthorization($comment['user_id'], $auth)) {\n $this->response('', 406);\n }\n \n $columns = 'user_id, video_id, text';\n $values = $comment['user_id'] . ',' . $comment['video_id'] . ',\\'' . $comment['text'] . \"'\";\n \n $query = \"insert into comments(\". $columns . \") VALUES(\". $values . \");\";\n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n $success = array('status' => \"Success\", \"msg\" => \"Comment Posted.\", \"data\" => $comment);\n $this->response(json_encode($success),200);\n }", "public function insertComment($comment, $userid, $username, $profile_image_url, $battle_id, $date) {\n\n $stmt = $this->db->query(\"INSERT INTO comments (comment, userid, created_at, battle_id) VALUES ('$comment', '$userid', '$date', $battle_id)\");\n $stmt->execute();\n }", "public function insertComment($name,$comment,$idOfRecord,$typeOfRecord = \"photo\")\r\n {\r\n \r\n //If passed , insert the comment.\r\n }", "public function create($comment)\n {\n\n }", "public function storeCommentInDB(Comment $comment){\n $query = $this->connect->prepare(\"INSERT INTO `\".self::TABLE_NAME.\"` VALUES('', ?, ?, ?, ?)\");\n $query->bind_param(\"ssss\",\n $this->escape_string($comment->getUserID()),\n $this->escape_string($comment->getDate()),\n $this->escape_string($comment->getCommentMsg()),\n $this->escape_string($comment->getPageID()));\n $query->execute();\n }", "function addComment($franchise_id, $user_id, $comments) {\n global $mysqli, $db_table_prefix;\n $stmt = $mysqli->prepare(\"INSERT INTO \" . $db_table_prefix . \"comments (\n\t\tuser_id,\n\t\tfranchise_id,\n\t\tcomments,\n\t\tdate\n\t\t)\n\t\tVALUES (\n\t\t?,\n\t\t?,\n\t\t?,\n\t\t'\" . time() . \"'\n\t\t)\");\n $stmt->bind_param(\"sss\", $user_id, $franchise_id, $comments);\n $result = $stmt->execute();\n $stmt->close();\n return $result;\n}", "function wb_create_comments_table($con)\n{\n\t$query = 'CREATE TABLE IF NOT EXISTS comments\n\t(\n\t\tcomment_id SERIAL,\n\t\tPRIMARY KEY(comment_id),\n\t\tuser_id BIGINT UNSIGNED NOT NULL,\n\t\tFOREIGN KEY(user_id) REFERENCES users(user_id),\n\t\tpage_id INT UNSIGNED NOT NULL,\n FOREIGN KEY(page_id) REFERENCES sitemap(page_id),\n\t\tdatetime DATETIME,\n\t\tcomment TEXT,\n\t\treply_ref BIGINT UNSIGNED NOT NULL DEFAULT 0\n\t) ENGINE=InnoDB';\n\t\n\twb_query($query, $con);\n}", "public function insertComment() {\n\n if(isset($_POST['btnInsertComment'])){\n $comment = $_POST['comment'];\n $idUser = $_SESSION['user']->id_user;\n $idNews = $_POST['idNews'];\n $created_at = date(\"Y-m-d H-i-s\", time());\n\n\n $regComment = \"/[0-9A-Za-z.,\\n \\r?!]*/\";\n\n $errors = [];\n if($comment == \"\") {\n $errors[] = \"Cant be empty comment\";\n exit;\n }\n else if(!preg_match($regComment, $comment)) {\n $errors[] = \"Wrong format comment\";\n exit;\n }\n try {\n $modelComment = new Comments(Database::instance());\n $modelComment->insertComment($comment, $created_at, $idUser, $idNews);\n\n $this->commentLog($comment, \"INSERT\", 201);\n\n } catch (\\PDOException $ex){\n $this->errorLog(\"insertComment()\", $ex->getMessage());\n\n }\n\n\n } else {\n $this->json(null, 403);\n }\n }", "public function add_comm()\n {\n $this->comments++;\n }", "private function runComment()\n {\n $num = (int) $this->ask('How many records do you want to create for the comments table?');\n factory(Comment::class, $num)->create();\n }", "public function addAction()\n {\n $isPosted = $this->request->getPost('doCreate');\n if (!$isPosted) {\n $this->response->redirect($this->request->getPost('redirect'));\n }\n $comment = $this->getCommentSessionValuesFromForm();\n $comments = new \\Anax\\Comment\\CommentsInSession();\n $comments->setDI($this->di);\n $comments->add($comment);\n $this->response->redirect($this->request->getPost('redirect'));\n }", "public function comments()\n\t{\n\t\t$this->_crud->set_table('ent_cr_comments');\n\t\t$this->_crud->set_subject('Comment');\n\t\t$this->_crud->set_relation('ent_cr_recipes_id','ent_cr_recepies','title');\n\t\t$this->_crud->display_as('ent_cr_recepies_id', 'Recipe');\n\t\t$this->_crud->required_fields('name', 'email', 'comments', 'ent_cr_recipes_id');\n\t\tstatic::$data['name'] = 'crud';\n\t\tstatic::$data['content_replace'] = $this->_crud->render();\n\n\t\t$this->_crud_output('main', static::$data);\n\t}", "public function add() {\n $post_id = $this->request->data['Comment']['post_id'];\n $user_id = $this->Auth->user('id');\n \n \n if ($this->request->is('post')) {\n \n //Post id is not numeric (avoid SQL injection)\n if (!is_numeric($post_id)) {\n $this->Flash->setError(__(\"Vous ne pouvez pas commenter ce post\"));\n return $this->redirect($this->referer());\n }\n \n //Everything is ok, create the comment\n $this->Comment->create();\n $this->request->data['Comment']['user_id'] = $user_id;\n if ($this->Comment->save($this->request->data)) {\n return $this->redirect($this->referer());\n }\n \n $this->Flash->error(__('Ajout de commentaire impossible.'));\n }\n }", "function addComment($chapterId)\r\n\t{\r\n\t\t$commentManager = new CommentManager();\r\n\t\t\r\n\t\trequire_once('view/insertCommentView.php');\r\n\t}", "public function addCommentOnTable($table, $comment)\n {\n $this->db->createCommand()->addCommentOnTable($table, $comment)->execute();\n }", "public function addComment($author, $content, $idPoem) {\n \n $sql = 'INSERT INTO T_COMMENT( COM_DATE, COM_AUTHOR, ' .\n ' COM_CONTENT, ARTICLE_ID ) ' .\n 'VALUES (?, ?, ?, ?) ';\n \n $dt = date(DATE_W3C); // Get current date\n \n $this->executeQuery($sql, array($dt, $author, \n $content, $idPoem));\n \n }", "private function add_comment()\n\t{\n\t\tif(!$this->owner->logged_in())\n\t\t\treturn new View('public_forum/login');\n\t\t\n\t\tif(empty($_POST['body']))\n\t\t\treturn 'Reply cannot be empty.';\n\t\t\n\t\t$post_id = $this->filter;\n\t\t$new_comment = ORM::Factory('forum_cat_post_comment');\n\t\t$new_comment->forum_cat_post_id = $post_id;\n\t\t$new_comment->owner_id\t= $this->owner->get_user()->id;\n\t\t$new_comment->body\t\t\t= $_POST['body'];\n\t\t$new_comment->save();\n\t\treturn 'Thank you, your comment has been added!';\t\t\n\t}", "public function actionAddVehicleCommentInd(){\t \n\t date_default_timezone_set(\"Europe/London\");\n\t \n\t // Gets basic vehicle info used in the save\n\t $vehicle = Vehicles::model()->getBasicInfo($_POST['vehicle_id']);\n\t \n\t // Adds the vehicle comment\n\t $vC = new VehicleComments();\n\t $vC->added_by = Yii::app()->user->id;\n\t $vC->comment = $_POST['comment'];\n\t $vC->date_added = date(\"Y-m-d H:i:s\");\n\t $vC->vehicle_id = $_POST['vehicle_id'];\n\t $vC->make_model_id = $vehicle['make_model_id'];\n\t $vC->save();\n\t}", "function set_comment($new_comment)\n {\n $this->comment = $new_comment;\n }", "public function commentAction() {\r\n $data = json_decode($_POST['data'], true);\r\n if (empty($data['comments'])) {\r\n exit('access deny!');\r\n }\r\n\r\n if (stristr($data['sourceid'], 'nav_fun_')) {\r\n $id = intval(str_ireplace('nav_fun_', '', $data['sourceid']));\r\n $info = Nav_Service_NewsDB::getRecordDao()->get($id);\r\n if (!empty($info['id'])) {\r\n $total = $info['c_num'] + 1;\r\n Nav_Service_NewsDB::getRecordDao()->update(array('c_num' => $total), $id);\r\n $rcKey = 'NAV_FUN_OP:' . intval($info['id']);\r\n Common::getCache()->hSet($rcKey, 'c_num', $total);\r\n }\r\n }\r\n\r\n $addData = array(\r\n 'content' => trim($data['comments'][0]['content']),\r\n 'ctime' => substr($data['comments'][0]['ctime'], 0, 10),\r\n 'ip' => $data['comments'][0]['ip'],\r\n 'cmtid' => $data['comments'][0]['cmtid'],\r\n 'userid' => $data['comments'][0]['user']['userid'],\r\n 'sourceid' => $data['sourceid'],\r\n 'url' => $data['url'],\r\n 'created_at' => Common::getTime(),\r\n );\r\n\r\n // error_log(date('Y-m-d H:i:s') . \" \" . Common::jsonEncode($addData) . \"\\n\", 3, '/tmp/3g_changyan_comment');\r\n User_Service_Changyan::getDao()->insert($addData);\r\n\r\n exit;\r\n }", "public function addComment(): void{\n Quizzes::addComment($_SESSION[\"quizID\"], $_SESSION[\"email\"], $_POST[\"commentText\"]);\n\n $qfa = new QuizFinishUser($_SESSION[\"q\"], $_SESSION[\"ua\"], $_SESSION[\"aa\"]);\n $qfa->generateHTML();\n }", "public function testAdd() {\n $data = array(\n 'fileId' => 1,\n 'version' => 1,\n 'comment' => 'New Comment',\n 'author' => 2,\n );\n\n $comments = new Application_Model_Comments();\n $id = $comments->add($data);\n $comment = $comments->find($id);\n\n $this->assertEquals($id, $comment->id);\n $this->assertEquals($data['fileId'], $comment->fileId);\n $this->assertEquals($data['version'], $comment->version);\n $this->assertEquals($data['comment'], $comment->comment);\n $this->assertEquals($data['author'], $comment->author);\n }", "public function ajaxNewCommentAction() {\n if ($this->request->hasArgument('blogid')) {\n $blogid = $this->request->getArgument('blogid');\n }\n if ($this->request->hasArgument('postid')) {\n $postid = $this->request->getArgument('postid');\n }\n if ($this->request->hasArgument('name')) {\n $name = $this->request->getArgument('name');\n }\n if ($this->request->hasArgument('email')) {\n $email = $this->request->getArgument('email');\n }\n if ($this->request->hasArgument('text')) {\n $text = $this->request->getArgument('text');\n }\n \n $commentRepository = $this->objectManager->get('T3developer\\\\Multiblog\\\\Domain\\\\Repository\\\\CommentRepository');\n \n $newComment = $this->objectManager->get('T3developer\\\\Multiblog\\\\Domain\\\\Model\\\\Comment'); \n $newComment->setBlogid($blogid);\n $newComment->setPostid($postid);\n $newComment->setCommentname($name);\n $newComment->setCommentmail($email);\n $newComment->setCommenttext($text);\n $newComment->setCommentdate(time());\n \n $commentRepository->add($newComment);\n $this->objectManager->get('TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager')->persistAll();\n \n exit;\n }", "function insert_comment($user_id, $comment, $today){\n global $db;\n $query = 'INSERT INTO comments\n (comment, user_id, created)\n VALUES\n (:comment, :user_id, :created)';\n $statement = $db->prepare($query);\n $statement->bindValue(':comment', $comment);\n $statement->bindValue(':user_id', $user_id);\n $statement->bindValue(':created', $today);\n $statement->execute();\n $statement->closeCursor();\n }", "public function save(Comment $comment)\n {\n $this->add($comment);\n }", "public function addComment($comment)\n\t{\n\t\tif(Yii::$app->params['commentNeedApproval'])\n\t\t\t$comment->status=Workflow::STATUS_DRAFT;\n\t\telse\n\t\t\t$comment->status=Workflow::STATUS_APPROVED;\n\t\t$comment->comment_table=Workflow::MODULE_BLOG;\n\t\t$comment->comment_id=$this->id;\n\t\treturn $comment->save();\n\t}", "function InsertComment ($message, $author_name, $author_mail, $answer_to) {\n\t \n\t $sql = \"INSERT INTO NoticeBoard (message, author_name, author_mail, answer_to) \n\t \t\t\tVALUES ('$message', '$author_name', '$author_mail', $answer_to) \";\n\n\t mysqli_query($GLOBALS[\"connection\"], $sql);\t\t\t\n}", "function photos_comments_addComment ($photo_id, $comment_text) {\n\t\t$response = $this->execute(array('method' => 'flickr.photos.comments.addComment', 'photo_id' => $photo_id, 'comment_text' => $comment_text), 10);\n\t\t$object = unserialize($response);\n\t\tif ($object['stat'] == 'ok') {\n\t\t\treturn $object['comment']['id'];\n\t\t} else {\n\t\t\t$this->setError($object['message'], $object['code']);\n\t\t\treturn NULL;\n\t\t}\n\t}", "function create_comment($album_id, $comment){\n $album_id = (int)$album_id;\n $comment = mysql_real_escape_string($comment);\n\n mysql_query(\"INSERT INTO comments (album_id, user_id, comment, timestamp) VALUES ($album_id, \". $_SESSION['user_id'] .\", '$comment', UNIX_TIMESTAMP()) \");\n \n }", "function comment($id_post, $comment) {\n\n\t\tif(!empty($comment))\n\t\t{\n\t\t\t$req = $GLOBALS['bdd']->prepare('INSERT INTO badin(balsamine, bigarade, bouquetin, brimade, bryophite) VALUES(:id_posts, :id_auteur, 2, NOW(), :comment)');\n\t\t\t$req->execute(array('id_posts' => $id_post,\n\t\t\t\t\t\t\t\t'id_auteur' => $_SESSION['id'],\n\t\t\t\t\t\t\t\t'comment' => $comment,\n\t\t\t));\n\t\t}\n\t\telse {\n\t\t}\n\t}", "public function addComment(Request $request, $id){\n\n $comments = new comment();\n $comments->uid = Auth::user()->id;\n $comments->statusId = $id;\n $comments->comment = $request['comment'];\n \n $comments->save();\n return back();\n }", "public function addComment( Comment $Comment )\n {\n DB::instance()->beginTransaction();\n\n\t $Comment->save();\n\n $success = DB::pivot('article_comment_pivot', [\n 'article_id' => $this->getProperty('id'),\n 'comment_id' => $Comment->getProperty('id')\n ]);\n\n $success ? DB::instance()->commit() : DB::instance()->rollBack();\n\n return $Comment;\n }", "function addcomment(&$username, &$comment, &$date, &$users, &$comments, &$dates) {\n $comment = $_POST['comment'];\n $date = date('m/d/y');\n $users[] = $username;\n $comments[] = $comment;\n $dates[] = $date;\n }", "public function create()\n {\n $this->validation[\"body\"][\"format\"][] = $this->body;\n if (!$this->validate()) {\n throw new ValidationException(\"invalid comment\");\n }\n $db = DB::conn();\n $set_params = array(\n \"thread_id\" => $this->thread_id, \n \"username\" => $this->username, \n \"body\" => $this->body\n );\n $db->insert(self::COMMENT_TABLE, $set_params);\n }", "public function record_comment(){\n\t\t\t\n\t\t}", "public function addComment($photo_uid, $comment) {\r\n\t\ttx_cwtcommunity_lib_common::dbUpdateQuery('INSERT INTO tx_cwtcommunity_photo_comments (pid, crdate, cruser_id, photo_uid, text) VALUES ('.tx_cwtcommunity_lib_common::getGlobalStorageFolder().',\"'.time().'\", \"'.tx_cwtcommunity_lib_common::getLoggedInUserUID().'\", \"'.$photo_uid.'\", \"'.$comment.'\");');\r\n\t}", "function addComment($user, $message) {\n $this->comments[] = new Comment($user, $message);\n }", "public function addComment( $comment )\n\t{\n\t\tif ( Yii::app()->params['commentNeedApproval'] )\n\t\t\t$comment->status = Comment::STATUS_PENDING;\n\t\telse\n\t\t\t$comment->status = Comment::STATUS_APPROVED;\n\t\t$comment->howto_id = $this->id;\n\t\treturn $comment->save();\n\t}", "public function addComment($body){\n // Comment::create([\n // 'body' => $body,\n // 'post_id' => $this->id\n // ]);\n\n\t\t$this->comments()->create(compact('body'));\n\t}", "public function commentStore() {\n\t\t$post_id = $_POST['post_id'];\n\t\t$text = $_POST['text'];\n\t\t$comment = new Comment([$post_id, $text]);\n\t\t$comment->save();\n\t}", "function add_comment($post_id, $user_id, $comment)\n{\n $data = array(\n '`post_id`' => (int)$post_id,\n '`body`' => '\"' . addslashes($comment) . '\"',\n '`user_id`' => (int)$user_id,\n '`created_ts`' => time(),\n );\n\n $insert_query = 'INSERT ' . TBL_COMMENTS . '(' . implode(',', array_keys($data)) . ') VALUES (' . implode(',', array_values($data)) . ')';\n\n if($result = mysql_query($insert_query))\n {\n $comment_id = mysql_insert_id();\n $select_query = 'SELECT c.*, u.username\n FROM ' . TBL_COMMENTS . ' c\n JOIN '.TBL_USERS.' u\n ON u.`user_id` = c.`user_id`\n WHERE c.`comment_id`=' . (int)$comment_id;\n $select_result = mysql_query($select_query);\n $row = mysql_fetch_assoc($select_result);\n\n return $row;\n }\n\n return FALSE;\n}", "public function setComment($comment);", "public function setComment($comment);", "public function commenting() {\n if(strlen($this->request->getParameter(\"content\")) > 10)\n {\n $postId = $this->request->getParameter(\"id\");\n $author = $this->request->getParameter(\"author\");\n $content = $this->request->getParameter(\"content\");\n \n $this->comment->addComment($author, $content, $postId);\n $this->redirect('Post','index/'.$postId);\n }\n else {\n echo \"Commentaire trop court\";\n }\n \n // Execute the default action to reload and display the Posts list\n $this->executeAction(\"index\");\n\n }", "public function doCreateComment()\n {\n if (isset($_POST)) {\n if (!$this->comment_is_valid($_POST['text'])) {\n header('Location: /post/details/?id=' . $_POST['post_id']);\n exit();\n }\n $text = htmlspecialchars($_POST['text']);\n $post_id = $_POST['post_id'];\n $this->commentRepository->create($_SESSION['userid'], $text, $post_id);\n }\n }", "public function increaseCommentCount()\n {\n \tif($this->comment_count != null)\n \t\t$this->comment_count++;\n \telse\n \t\t$this->comment_count = 1;\n \t$this->save();\n }", "public function add() {\n\t\tif ($this->request->is('post')) {\n\t\t\tif ($this->ActivityLog->save($this->request->data)) {\n\t\t\t\t$this->Session->setFlash('Comment saved', 'flash_success');\n\t\t\t\tif (array_key_exists('parent_flag_status', $this->request->data['ActivityLog'])) {\n\t\t\t\t\t$this->ActivityLog->updateParentFlag($this->ActivityLog->id, $this->request->data['ActivityLog']['parent_flag_status']);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash('Error saving comment. Try again', 'flash_error');\n\t\t\t}\n\t\t}\n\t\t$this->redirect($this->referer('/'));\n\t}", "public function WriteToCommentsTable() //Inserts comments to Comments Table\r\n {\r\n\r\n $servername = \"localhost\";\r\n $username = \"root\";\r\n $password = \"\";\r\n $db = \"frameusers\";\r\n $table = \"comments\";\r\n\r\n $commentTxt = $_POST['cmt'];\r\n $user = $_SESSION['username'];\r\n $datetime = new DateTime();\r\n\r\n $date = $datetime->format('d-m-Y H:i');\r\n\r\n // Create connection\r\n $conn = new mysqli($servername, $username, $password, $db);\r\n\r\n\r\n // Check connection\r\n if ($conn->connect_error) {\r\n die(\"Connection failed: \" . $conn->connect_error);\r\n }\r\n\r\n else if (!(isset($_SESSION['username'])))\r\n {\r\n echo \"Please login first\";\r\n }\r\n else if ($commentTxt != null)\r\n {\r\n $sql = \"INSERT INTO $table (comment, username, timing )VALUES ('$commentTxt','$user', '$date')\";\r\n\r\n if ($conn->query($sql) === TRUE) {\r\n echo \"<p style='color: orange; position: absolute; left: 45%; top: 90% '>Comment Posted Successfully</p>\";\r\n echo \"<meta http-equiv=\\\"refresh\\\" content=\\\"1;url=http://localhost/secure/\\\" />\";\r\n } else {\r\n //echo \"Error: \" . $sql . \"<br>\" . $conn->error;\r\n echo \"<p style='color: orangered; position: absolute; left: 34%; top: 90% '>Comment was not posted successfully, if the problem persists please contact us</p>\";\r\n }\r\n\r\n $conn->close();\r\n //echo \"Connected successfully\";\r\n }\r\n else\r\n {\r\n echo \"<p style='color: orangered; position: absolute; left: 40%; top: 90% '>Please enter a comment first before posting</p>\";\r\n }\r\n }", "function addComment($id){\n $newComment = $this->commentManager->postComment($id, $_POST['author'], $_POST['comment']);\n if($newComment === false){\n throw new \\Exception(\"Impossible d'ajouter le commentaire\");\n } else {\n header('Location: /episode/'.$id);\n }\n }", "public function add($comment)\n {\n $comments = $this->session->get('comments', []);\n $comments[] = $comment;\n $this->session->set('comments', $comments);\n }", "public function comment()\n {\n $commentManager = new CommentManager();\n \n $comment = $commentManager->getComment($_GET['id']);\n \n require (__DIR__ . '/../view/frontend/commentView.php');\n }", "public function created(Comment $comment)\n {\n //\n }", "public function commentAction() {\n $ses = new Application_Model_Session();\n $ses->startSession();\n {\n $request = $this->getRequest();\n $ExpId = $this->_getParam('expid');\n $form = new Campuswisdom_Form_Comment();\n $this->view->form = $form;\n if ($this->getRequest()->isPost()) {\n if ($form->isValid($request->getPost())) {\n $mapper = new Campuswisdom_Model_ExpMapper();\n $Comment = $form->getValue(\"comment\");\n $mapper->setDbTable('campuswisdom_Model_DbTable_Comments');\n $smthn = $mapper->save($ExpId, $Comment);\n if ($smthn == null) {\n //an error occurred so nothing was saved\n } else {\n $ses->setSessionParameter('comnt', 1);\n }\n $this->_helper->redirector('viewcomments', 'exps', 'default', array('expid' => $ExpId));\n }\n }\n }\n }", "public function addTaskComment(CommentRequest $comment): Comment\n\t{\n\t\t$query = 'INSERT INTO comments (task_id, created_by, created_at, comment) VALUES ( ? , ? , ? , ? )';\n\t\t$stmt = $this->pdo->prepare($query);\n\t\t$stmt->execute([\n\t\t\t$comment->getTaskId(),\n\t\t\t$comment->getCreatedBy(),\n\t\t\t$comment->getCreatedAt(),\n\t\t\t$comment->getComment()\n\t\t]);\n\n\t\t$query = 'SELECT username FROM users WHERE id = ?';\n\t\t$stmt = $this->pdo->prepare($query);\n\t\t$stmt->execute([$comment->getCreatedBy()]);\n\t\t$res = $stmt->fetch();\n\n\t\t$newComment = new Comment($res['username'], $comment->getCreatedAt(), $comment->getComment());\n\n\t\treturn $newComment;\n\t}", "public function setComment(Comment $comment): void;", "public static function addComment( $article_id,$comment_text) {\n $connectin = DB::getConnection();\n $user_id = Page::currentUser();\n $article_id = Filter::Int( $article_id );\n $comment_text = Filter::String($comment_text);\n $return = [];\n\n try {\n $addComment = $connectin->prepare(\"INSERT INTO comments (user_id, article_id, comment) VALUES(:user_id, :article_id, :comment)\");\n $addComment->bindParam(':user_id', $user_id, PDO::PARAM_INT);\n $addComment->bindParam(':article_id', $article_id, PDO::PARAM_INT);\n $addComment->bindParam(':comment', $comment_text, PDO::PARAM_STR);\n $addComment->execute();\n $return['status'] = 'Request compleated';\n $return ['redirect'] = \"/readarticle.php?article=\".$article_id;\n } catch (PDOException $e){\n $return['error']=\"Request error\";\n }\n return $return;\n }", "function insert(Comment $comment): bool;", "public function chapterComment($comment)\n {\n $db = $this->dbConnect();\n $comments = $db->prepare('INSERT INTO comments(chapter_id, author, comment, comment_date) VALUES(:chapter_id, :author, :comment, NOW())');\n $comments->bindValue(':chapter_id', $comment->getChapter_id(), \\PDO::PARAM_INT);\n $comments->bindValue(':author', $comment->getAuthor(), \\PDO::PARAM_STR);\n $comments->bindValue('comment', $comment->getComment(), \\PDO::PARAM_STR);\n $comments->execute();\n\n return $comments;\n }", "public function addTabComment() {\r\n\t\t$tab_comment_model = $this->load_model('TabCommentModel');\r\n\t\t$result = $tab_comment_model->addTabComment($this->params['tab_id'], $_SESSION['user']['ID'], $this->sanitize($this->params['content']));\r\n\r\n\t\tif ($result === true) {\r\n\t\t\t\r\n\t\t\t//give 1 reputation\r\n\t\t\t$user_model = $this->load_model('UserModel');\r\n\t\t\t$user_model->giveReputation($_SESSION['user']['ID'], 1);\r\n\t\t\t\r\n\t\t\t//send notification email\r\n\t\t\t$tab_model = $this->load_model('TabModel');\r\n\t\t\t$tab = $tab_model->getTab($this->params['tab_id']);\r\n\t\t\t\r\n\t\t\tif($tab !== null){\r\n\t\t\t\tif($tab['uploader_ID'] !== $_SESSION['user']['ID']){\r\n\t\t\t\t\t$recipient = $user_model->getUser($tab['uploader_ID']);\r\n\t\t\t\t\tUtils::sendTabCommentEmail($tab, $recipient, $_SESSION['user'], $this->params['content']);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->sendResponse(1, $result);\r\n\t\t} else {\r\n\t\t\t$this->sendResponse(0, ErrorCodes::DB_ERROR);\r\n\t\t}\r\n\t}", "public function add_comment(request $request){\n // dd(Carbon::now());\n \n $user = user_data();\n\n $request->validate([\n 'comment_content' => 'required',\n // 'lost_lead_reason' => 'required',\n \n ]);\n Comments::create([\n 'comment_content' => $request->comment_content,\n 'lost_lead_reason' => $request->lost_lead_reason, \n 'user_id' => $request->user_id,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n \n ]);\n return response()->json([ 'success'=> 'Form is successfully submitted!']);\n\n }", "public function addComment(int $postId, string $username, string $content):bool\n {\n $comment=$this->pdo->prepare(\n 'INSERT INTO comments(commented,content,post_id,commented_by)\n VALUES (now(),:content,:post_id,:commented_by)'\n );\n return $comment->execute(\n [\n 'post_id' => $postId,\n 'commented_by' => $username,\n 'content' =>$content\n ]\n );\n }", "function RecordQuestionComments($questionComments)\n {\n try\n {\n if (count($questionComments) < 1)\n {\n return;\n }\n \n $quesCom = new QuestionComment();\n $questionIdKey= $quesCom->GetQuestionIdKey();\n $commentKey = $quesCom->GetCommentKey();\n \n $db = GetDBConnection();\n \n $query = 'INSERT INTO ' . GetQuestionCommentsIdentifier()\n . ' (' . $questionIdKey\n . ', ' . $commentKey . ') VALUES'\n . ' (:' . $questionIdKey . '0'\n . ', :' . $commentKey . '0' . ')';\n \n for ($i = 1; $i < count($questionComments); $i++)\n {\n $query .= ', (:' . $questionIdKey . $i\n . ', :' . $commentKey . $i . ')';\n }\n \n $query .= ';';\n \n $statement = $db->prepare($query);\n \n for ($i = 0; $i < count($questionComments); $i++)\n {\n $qc = $questionComments[$i];\n \n $statement->bindValue(':' . $questionIdKey . $i, $qc->GetQuestionId());\n $statement->bindvalue(':' . $commentKey . $i, $qc->GetComment());\n }\n \n $statement->execute();\n \n $statement->closeCursor();\n }\n catch (PDOException $ex)\n {\n LogError($ex);\n }\n }", "public function addComment(Comment $comment)\n {\n $comment->setArticle($this);\n $this->comments[] = $comment;\n }", "function add_comment($comment, $obj_id, $reply_to = NULL) {\n global $myquery, $db;\n\n if (!$this->topic_exists($obj_id))\n e(lang(\"grp_tpc_err4\"));\n else {\n $owner = $this->get_group_owner_from_topic($obj_id);\n $add_comment = $myquery->add_comment($comment, $obj_id, $reply_to, 't', $owner);\n if ($add_comment) {\n //Loggin Comment\t\t\t\n $log_array = array\n (\n 'success' => 'yes',\n 'details' => \"comment on a topic\",\n 'action_obj_id' => $obj_id,\n 'action_done_id' => $add_comment,\n );\n insert_log('topic_comment', $log_array);\n\n //Updating Number of comments of topics\n $this->update_comments_count($obj_id);\n }\n return $add_comment;\n }\n }", "public function createComment($postID, $commentText) {\n $uri = 'http://www.blogger.com/feeds/' . $this->blogID . '/' . $postID . '/comments/default'; \n \n $newComment = $this->gdClient->newEntry(); \n $newComment->content = $this->gdClient->newContent($commentText); \n $newComment->content->setType('text'); \n $createdComment = $this->gdClient->insertEntry($newComment, $uri); \n \n echo 'Added new comment: ' . $createdComment->content->text . \"\\n\";\n // Edit link follows format: /feeds/blogID/postID/comments/default/commentID \n $editLink = split('/', $createdComment->getEditLink()->href);\n $commentID = $editLink[8]; \n \n return $commentID; \n }", "function setComments($conn) {\r\n if (isset($_POST['commentSubmit'])) {\r\n $uid = $_POST['uid'];\r\n $date = $_POST['date_time'];\r\n $message = $_POST['message'];\r\n\r\n $sql = \"INSERT INTO comments (c_id, date, message) VALUES ('$uid', '$date', '$message')\";\r\n $result = $conn->query($sql);\r\n } \r\n}", "public function insert_comment( $id, $comment ) {\n\t\tif ( 1 == $comment->comment_approved ) {\n\t\t\t$this->maybe_notify_new_approved_comment( 'approved', '', $comment );\n\t\t}\n\t}", "public function add_comment()\n { \n $data = $this->input->post();\n unset($data['url']);\n $data['postid'] = $data['postid'];\n $comment_id = $this->mention_model->add_comment($data); \n $success = false; \n $success = ($comment_id !== false ? true : false);\n $comment = '';\n if ($comment_id) {\n $comment = $this->comment_single($this->mention_model->get_comment($comment_id, true));\n }\n\n echo json_encode([\n 'success' => $success,\n 'comment' => $comment,\n 'comment_id' => $comment_id\n ]);\n }", "public static function addComment($id = null, $comment = null) {\n if($id == null || $comment == null) {\n return false;\n } else if( $comment['content'] == null ) {\n return false;\n }\n\n $commentdata = array(\n 'comment_post_ID' => $id, // to which post the comment will show up\n 'comment_author' => $comment['name'], //fixed value - can be dynamic \n 'comment_author_email' => $comment['email'], //fixed value - can be dynamic \n 'comment_content' => $comment['content'], //fixed value - can be dynamic \n 'comment_approved' => 0, //set comment's status is pending\n // 'comment_parent' => 0, //0 if it's not a reply to another comment; if it's a reply, mention the parent comment ID here\n // 'user_id' => $current_user->ID, //passing current user ID or any predefined as per the demand\n );\n\n //Insert new comment and get the comment ID\n $cmt_id = wp_new_comment( $commentdata );\n\n return true;\n\n }", "public function createComment ($taskId, $value) {\r\n\t\t$db = new DB();\r\n\t\t$db->connect();\r\n\t\t\r\n\t\t$taskId = $db->esc($taskId);\r\n\t\t$value = $db->fixDoubleSpace($db->esc($value));\r\n\t\t\r\n\t\t$sql = \"INSERT INTO `comment` \r\n\t\t\t\t(`task_id`, `date`, `value`, `user_id`) \r\n\t\t\t\tVALUES ('$taskId', '\".$db->toDate(time()).\"', '$value', '\".$_SESSION['nobug'.RANDOMKEY.'userId'].\"')\";\r\n\t\t$db->query($sql);\r\n\t}", "public static function createComments($request);", "public function addComment(commentObj $obj) {\n\t\tarray_push($this->arrComments, $obj);\n\t}", "public function addComment($id_user, $title, $content, $note)\n {\n $req = $this->pdo->prepare('INSERT INTO comments (id_user, title, content, note)\n VALUE (?, ?, ?, ?)');\n $req->execute([$id_user, $title, $content, $note]);\n //Récupère l'id de l'insertion dans la table\n return $this->pdo->lastInsertId();\n }", "public function NewCommentManga(){\r\n $this->comment(); \r\n $this->pseudoPost();\r\n $this->contentPost();\r\n $this->_commentManager->AddComment($this->_pseudoPostSecure, $this->_contentPostSecure, $_GET['id'],true,false); \r\n header('location: Tome&id='.$_GET[\"id\"]); \r\n }", "public function addComment(\\TYPO3\\Amazingcomments\\Domain\\Model\\Comment $item) {\n\t\t// this is a workaround as the object is sometimes empty with TYPO3 6.0 and then a \"called a member function on a non-object-function\" error shows up\n\t\tif(!$this->comments) {\n\t\t\t#$this->comments = new Tx_Extbase_Persistence_ObjectStorage();\n\t\t\t$this->comments = $this->objectManager->create('\\\\TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\ObjectStorage');\n\t\t}\n\t\t$this->comments->attach($item);\n\t}", "public function testCollectionTicketCommentsAdd()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }" ]
[ "0.7456319", "0.7214265", "0.7143306", "0.71370316", "0.70467794", "0.7045684", "0.703187", "0.6933686", "0.6918402", "0.6899217", "0.68898636", "0.68635625", "0.6773974", "0.674974", "0.67445016", "0.6737513", "0.6718045", "0.6711438", "0.670239", "0.6693142", "0.6682416", "0.6670669", "0.6669265", "0.6661682", "0.6623021", "0.66058445", "0.66045505", "0.65788805", "0.6564139", "0.6556792", "0.6523373", "0.6522711", "0.6514126", "0.6509476", "0.6499123", "0.6487943", "0.6475093", "0.64668864", "0.64663064", "0.64391315", "0.63965684", "0.6390047", "0.635471", "0.6341464", "0.63351834", "0.6328173", "0.63244164", "0.63226336", "0.6304661", "0.62963724", "0.6295858", "0.629266", "0.6290762", "0.62815356", "0.6277001", "0.62685436", "0.62630606", "0.6251143", "0.62435776", "0.6239451", "0.62347066", "0.6229273", "0.6224855", "0.6207865", "0.61965996", "0.6192137", "0.6192137", "0.6186313", "0.6185602", "0.61798096", "0.616693", "0.61491454", "0.61326337", "0.612766", "0.61248463", "0.6119539", "0.6118057", "0.6114363", "0.6097574", "0.6088737", "0.60882777", "0.60861576", "0.6069714", "0.6067538", "0.6058963", "0.60570145", "0.60515547", "0.6031707", "0.6021547", "0.60169697", "0.6016634", "0.6013559", "0.6010758", "0.6004468", "0.6001822", "0.5987508", "0.59812623", "0.5972964", "0.5963722", "0.59607697" ]
0.6500398
34
Returns all comments on recipe given by recipe id, will also fetch username associated to ownerid
public function getAllComments($rid) { $this->db->query('SELECT comments.*, users.user_username FROM comments JOIN users ON ownerid=user_id WHERE recipe_id = :rid ORDER BY date DESC'); $this->db->bind(':rid', $rid); return $this->db->resultSet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getComments()\n {\n $id = $this->getId();\n\n $stmt = \" SELECT c.*, c.id as id, u.username, u.profile_picture FROM _xyz_article_comment_pivot acp \" .\n \" LEFT JOIN _xyz_comment c ON c.id = acp.comment_id \" .\n \" LEFT JOIN _xyz_user u ON u.id = c.user_id \" .\n \" WHERE acp.article_id = $id \"\n ;\n\n $sql = DB::instance()->query( $stmt );\n\n $rows = $sql->fetchAll(\\PDO::FETCH_UNIQUE|\\PDO::FETCH_ASSOC );\n\n $result = CommentCollection::toTree( $rows );\n\n return $result;\n }", "public function getAllComments() {\r\n \r\n $commentEntries = array();\r\n\r\n $sql = \"SELECT *\r\n FROM RecipeComments\r\n WHERE page = '$this->page'\r\n ORDER BY timestamp\"; \r\n \r\n $result = $this->conn->query($sql);\r\n \r\n $rows = $result->num_rows;\r\n \r\n for($i=1; $i<=$rows; $i++) {\r\n $row = $result->fetch_assoc();\r\n array_push($commentEntries, $row[\"username\"]);\r\n array_push($commentEntries, $row[\"comment\"]);\r\n array_push($commentEntries, $row[\"timestamp\"]);\r\n \r\n }\r\n\r\n return $commentEntries;\r\n \r\n }", "public function comments()\n\t{\n\t\t$this->_crud->set_table('ent_cr_comments');\n\t\t$this->_crud->set_subject('Comment');\n\t\t$this->_crud->set_relation('ent_cr_recipes_id','ent_cr_recepies','title');\n\t\t$this->_crud->display_as('ent_cr_recepies_id', 'Recipe');\n\t\t$this->_crud->required_fields('name', 'email', 'comments', 'ent_cr_recipes_id');\n\t\tstatic::$data['name'] = 'crud';\n\t\tstatic::$data['content_replace'] = $this->_crud->render();\n\n\t\t$this->_crud_output('main', static::$data);\n\t}", "public function ListComments($id) {\n try {\n \n\t //$res = $this->db->ExecuteSelectQueryAndFetchAll(\"SELECT Comment.*, User.acronym as owner FROM Comment INNER JOIN User ON Comment.idUser=User.id WHERE idContent=? AND Comment.deleted IS NULL;\", array($id));\n\t $res = $this->db->ExecuteSelectQueryAndFetchAll(self::SQL('select * by content'), array($id));\n\t print_r($id);\n\t print_r($res);\n\t return $res;\n } catch(Exception $e) {\n\t\techo $e;\n\t\treturn null;\n }\n }", "function getPostingComment($id = 0) {\n return getAll(\"SELECT r.content FROM posting_reply pr \n INNER JOIN posting p on pr.posting_id = p.id \n INNER JOIN reply r on pr.reply_id = r.id WHERE p.id = $id\");\n}", "private function GetComments($_id)\n\t{\n\t\t//Get Database\n\t\t$_database = $this->ConnectDatabase();\n\t\t//Create Data\n\t\t$_data = array($_id);\n\t\t//Call and return Database Function\n\t\treturn $this->CallDatabase(\n\t\t\t$_database,\n\t\t\t$_data,\n\t\t\tfunction($_pdo, $_parameters)\n\t\t\t{\n\t\t\t\t//Create Query\n\t\t\t\t$_query = $_pdo->prepare(\"SELECT \n\t\t\t\t\t\tcm.id id, \n\t\t\t\t\t\tcm.description description, \n\t\t\t\t\t\tcm.ratting rate, \n\t\t\t\t\t\tcm.created date, \n\t\t\t\t\t\tcm.type `type`,\n\t\t\t\t\t\tus.nick_name user_nick, \n\t\t\t\t\t\tus.url_profile user_url_perfil\n\t\t\t\t\tFROM Comments cm\n\t\t\t\t\tLEFT JOIN Users us ON us.id = cm.id_user\n\t\t\t\t\tWHERE cm.id_partner = ?\n\t\t\t\t\");\n\t\t\t\t//Execute Query\n\t\t\t\t$_query->execute($_parameters);\n\n\t\t\t\t$_data = null;\n\t\t\t\twhile ($_row = $_query->fetch(PDO::FETCH_ASSOC))\n\t\t\t\t{\n\t\t\t\t\t$_row['user_url_perfil'] = strlen($_row['user_url_perfil']) > 1 ? \n\t\t\t\t\t\t$this->image_client_path . $_row['user_url_perfil'] : \n\t\t\t\t\t\tnull;\n\t\t\t\t\t$_row['date'] = $this->ConvertDataClient($_row['date']);\n\t\t\t\t\t$_data = $_row;\n\t\t\t\t}\n\t\t\t\treturn $_data;\n\t\t\t}\n\t\t);\n\t}", "public function getAllCommentsByBattleID($battle_id) {\n $stmt = $this->db->query(\"SELECT *\n FROM comments\n INNER JOIN users\n ON comments.userid = users.userid\n WHERE battle_id = :id\");\n\n $stmt->bindParam(':id', $battle_id);\n $stmt->execute();\n $rows = array();\n while($row = $stmt->fetch()) {\n $rows[] = $row;\n }\n return $rows;\n\n }", "public function readComment(){\n $sql='SELECT idComentario, comentario, producto.nombre as producto,cliente.nombre as cliente, comentarios.estado as estado, cliente.usuario as usuario FROM cliente, producto, comentarios where producto.idProducto=comentarios.idProducto and cliente.idCliente=comentarios.idCliente and comentarios.idProducto=?';\n $params=array($this->id);\n return Database::getRows($sql, $params);\n }", "public function getComments() {\n\t\treturn $this->api->getCommentsByPhotoId($this->getId());\n\t}", "public function getCommentaire($id){\n $bdd = $this->bdConnect();\n $req = $bdd->prepare('SELECT `id`, `content`, `id_jeu`, `notepost`, `pseudo`, `totalContent`,(SELECT `title` FROM `jeux` WHERE `id`=`id_jeu`)AS titreJeu,(SELECT `categorie` FROM `jeux` WHERE `id`=`id_jeu`)AS categorieJeu FROM `commentaires` WHERE `id`=?');\n $req->execute(array($id));\n return $req;\n }", "public function getAllComments() {\n\n\t\t$sql = \"SELECT comment_id, comment_text, entries.post_title, users.user_name FROM comments\n\t\t\t\tINNER JOIN entries ON comments.post_id = entries.post_id \n\t\t\t\tINNER JOIN users ON users.user_id = comments.comment_author\";\n\t\t//create stdStatemment object | call to Model method from core/Database.php\n\t\treturn $this->setStatement($sql);\n\t}", "function get_all_comments() {\n global $db;\n $query = \"SELECT c.comment_id, c.comment, c.user_id, c.created, u.userName FROM comments c\n JOIN users u on u.user_id = c.user_id\n ORDER BY created DESC\";\n $statement = $db->prepare($query);\n $statement->execute();\n $comments = $statement->fetchAll();\n $statement->closeCursor();\n return $comments; \n }", "public function comments()\n {\n $sort = Sorter::getCommentSortId();\n $orderField = $sort == 1 ? 'rate' : 'id';\n $orderDir = $sort == 1 ? 'desc' : 'asc';\n return $this->morphMany(Comment::class, 'commentable')->orderBy($orderField, $orderDir);\n }", "public function selectComments() {\n $query=\"SELECT c.id_comentario, c.comentario, c.valoracion, cp.catalogo_producto, ec.estado_comentario, CONCAT(cl.nombres, ' ', cl.apellidos) as cliente, c.fecha_comentario\n FROM comentarios c\n INNER JOIN catalogo_productos cp\n ON cp.id_catalogo_producto = c.id_catalogo_producto\n INNER JOIN estados_comentario ec\n ON ec.id_estado_comentario = c.id_estado_comentario\n INNER JOIN clientes cl\n ON cl.id_cliente = c.id_cliente\";\n $params = null;\n return Database::getRow($query, $params);\n }", "public function getComments() {\n $db = new mysql('testserver', 'testuser', 'testpassword');\n $sql = \"SELECT * FROM comments_table where parent_id=0 ORDER BY create_date DESC;\";\n $result = mysql_query($sql, $db);\n $comments = [];\n while ($row = mysql_fetch_assoc($result)) {\n $comment = $row;\n $reply_1_sql = \"SELECT * FROM comments_table where parent_id=\" . $row['id'] . \" ORDER BY create_date DESC;\";\n $result_reply_1 = mysql_query($reply_1_sql, $db);\n $replies = [];\n while ($row1 = mysql_fetch_assoc($result)) {\n $reply = $row1;\n $reply_2_sql = \"SELECT * FROM comments_table where parent_id=\" . $row1['id'] . \" ORDER BY create_date DESC;\";\n $result_reply_2 = mysql_query($reply_2_sql, $db);\n $replies_to_replies = [];\n while ($row2 = mysql_fetch_assoc($result)) {\n $replies_to_replies[] = $row2;\n }\n $reply['replies'] = $replies_to_replies;\n $replies[] = $reply;\n }\n $comment['replies'] = $replies;\n $comments[] = $comment;\n }\n return $comments;\n }", "function selectComments($id_rubric, $type_comment)\n\t{\n\t\tglobal $dbh;\n\n\n\t\t$sql = \"SELECT \tC.id_comment,\n\t\t\t\t\t\tC.type_comment,\n\t\t\t\t\t\tC.content,\n\t\t\t\t\t\tC.dateCreated,\n\t\t\t\t\t\tC.dateModified,\n\n\t\t\t\t\t\tU.id_user,\n\t\t\t\t\t\tU.user_pseudo,\n\t\t\t\t\t\tU.score\n\n\t\t\t\tFROM users AS U, comments AS C\t\t\t\t\n\t\t\t\tWHERE U.id_user = C.id_user\n\t\t\t\tAND C.id_rubric = :id_rubric\n\t\t\t\tAND C.type_comment = :type_comment\n\t\t\t\tORDER BY C.dateCreated DESC\n\t\t\t\tLIMIT 3\";\n\n\t\t$stmt = $dbh->prepare($sql);\n\t\t$stmt->bindValue(\":id_rubric\", $id_rubric);\n\t\t$stmt->bindValue(\":type_comment\", $type_comment);\n\t\t$stmt->execute();\n\t\t\n\t\t//affiche\n\t\treturn $stmt->fetchAll();\n\t}", "public function getComments ()\n {\n $db = $this->dbConnect ();\n $req = $db->prepare ('SELECT id_comment,signalement,id_chapter,author,comment,DATE_FORMAT(dateComment, \\'%d/%m/%Y \\') AS dateComment FROM comments WHERE ? ORDER BY id_comment DESC ');\n $req->execute (array ( 1 ));\n return $req;\n }", "public function recipes($id)\n\t{\n\t\tif (!isset($_SESSION['user']))\n\t\t{\n\t\t\theader(\"Location: /myrecipe/session/new\");\n\t\t\texit;\n\t\t}\n\t\t// this page is only accessable by self and admin (type 2)\n\t\tif (($_SESSION['user']['type'] != 2) && ($_SESSION['user']['id'] != $id))\n\t\t{\n\t\t\theader(\"Location: /myrecipe/users/{$_SESSION['user']['id']}\");\n\t\t\texit;\n\t\t}\n\t\n\t\tif(!$user = User::findUser(array('user_id' => $id)))\n\t\t{\n\t\t\t// something has gone wrong with db request\n\t\t\theader(\"Location: /myrecipe/users/\".$id);\n\t\t\texit;\n\t\t}\n\t\t$this->template->user = $user[0];\n\t\t\n\t\t// get all the recipes uploaded by the user\n\t\t$myrecipes = Recipe::findRecipe(array('recipes.user_id'=>$id, 'recipe_images.is_cover'=>'yes'));\n\t\t$this->template->myrecipes = $myrecipes;\n/*\t\techo \"<pre>\";\n\t\tprint_r($myrecipes);\n\t\techo \"</pre>\";\n*/\t\n\t\t$this->template->display('recipes.html.php');\n\t}", "public function getComment(int $id)\n\t{\n\n\t\treturn $this->select('c.*', 'e.title AS `episode`','ch.name AS `chapter`', 'u.first_name', 'u.last_name', 'c.email')\n\t\t\t ->from('comments c')\n\t\t\t ->join('LEFT JOIN episodes e ON c.episode_id=e.id')\n\t\t\t ->join('LEFT JOIN chapters ch ON e.chapter_id=ch.id')\n\t\t\t ->join('LEFT JOIN users u ON c.user_id=u.id')\n\t\t\t ->where('c.id=?', $id)\n\t\t\t ->fetch();\n\t}", "function getComment() {\n\tglobal $db;\n\t\n\t$query = \"SELECT idComment, content, photo, date, Comment.idUser, idEvent, parentComment, firstName AS userFirstName, lastName AS userLastName FROM Comment,User WHERE User.idUser = Comment.idUser\";\n\t\n\tif (isset($_GET['idComment']))\n\t\t$query .= \" AND idComment = \" . $_GET['idComment'];\n\tif (isset($_GET['idUser']))\n\t\t$query .= \" AND idUser = \" . $_GET['idUser'];\n\tif (isset($_GET['idEvent']))\n\t\t$query .= \" AND idEvent = \" . $_GET['idEvent'];\n\tif (isset($_GET['parentComment']))\n\t\t$query .= \" AND parentComment = \" . $_GET['parentComment'];\n\t\t\t\t\n\t$stmt = $db->prepare($query);\n\t$stmt->execute(); \n\t$comments = $stmt->fetchAll();\n\t\n\t\n\t\n\t/* Content-Type must be defined, otherwise the output is seen as plain text */\n\theader(\"Content-Type: application/json\");\n\techo json_encode($comments);\n}", "function fetchArticleComments()\r\n\t{\r\n\t\t$comments = array();\r\n\t\t$sql = $GLOBALS['db']->Query(\"SELECT * FROM \" . PREFIX . \"_modul_shop_artikel_kommentare WHERE Publik = '1' AND ArtId = '\" . (int)$_REQUEST['product_id'] . \"' ORDER BY Id DESC\");\r\n\t\twhile($row = $sql->fetchrow())\r\n\t\t{\r\n\t\t\t$sql_u = $GLOBALS['db']->Query(\"SELECT Vorname,Nachname FROM \" . PREFIX . \"_users WHERE Id = '$row->Benutzer'\");\r\n\t\t\t$row_u = $sql_u->fetchrow();\r\n\r\n\t\t\t$row->Titel = htmlspecialchars($row->Titel);\r\n\t\t\t$row->Kommentar = nl2br(htmlspecialchars($row->Kommentar));\r\n\t\t\t$row->Autor = substr($row_u->Vorname,0,1) . '. ' . $row_u->Nachname;\r\n\t\t\tarray_push($comments, $row);\r\n\t\t}\r\n\t\treturn $comments;\r\n\t}", "public function getAlbumComments($albumId){\n return DB::select('SELECT comments.*, users.username\n FROM comments\n LEFT JOIN users ON comments.user_id = users.id\n WHERE album_id = ?', array($albumId));\n }", "public static function findCommentsOn($id=0){\n\t\t//So custom find function() is needed\n\t\tglobal $connection;\n\t\t$sql = \"SELECT * FROM \".static::$table_name.\" WHERE post_id = \";\n\t\t$sql .= $connection->real_escape_string($id) . \" ORDER BY created ASC \";\n\t\t//echo $sql;\n\t\treturn static::findBySql($sql);\n\t}", "public function comments()\n {\n // check if user is already loaded, if not, we fetch it from database\n if ($this->_comments) {\n return $this->_comments;\n } else {\n $comments = new Application_Model_DbTable_Comments();\n\n foreach ($comments->findAllBy('post_id', $this->_id) as $comment) {\n $this->_comments[] = $comment ;\n }\n return $this->_comments;\n }\n }", "public function getComments()\n {\n return $this->api->_request('GET', '/api/comments?id='.$this->ID);\n }", "public function getComments($id){\n $id = (int)$id;\n $sql = \"select * from comments WHERE discussion_id = '{$id}'\";\n return $this->db->query($sql);\n }", "public function getComments($objectType, $objectId, $parent = null) {\n \t$query = $this->createQuery();\n \t$query->addCondition('{objectType} = %1% AND {objectId} = %2%', $objectType, $objectId);\n \t$query->addOrderBy('{dateAdded} ASC');\n\n \tif ($parent) {\n \t $query->addCondition('{parent} = %1%', $parent);\n \t} else {\n \t $query->addCondition('{parent} IS NULL');\n \t}\n\n \t$comments = $query->query();\n \tforeach ($comments as $comment) {\n \t\t$comment->replies = $this->getComments($objectType, $objectId, $comment->id);\n \t}\n\n \treturn $comments;\n }", "public function get_reply_comments($id) {\n $this->db->query(\"SELECT * FROM replies, users WHERE comment_id = :id and replies.user_id = users.id\");\n $this->db->bind(':id', $id);\n $row = $this->db->resultSet();\n if ( $this->db->rowCount() > 0) {\n return $row;\n } else {\n return 'false';\n }\n }", "public function getAllComments()\n\t{\n\t\t$req=$this->_bdd->query('SELECT Comments.id, content_com AS content, DATE_FORMAT(date_com, \"%d/%m/%Y %Hh%imin%ss\") AS date, id_users, id_post, moderate, login FROM Comments INNER JOIN Users ON id_users=Users.id WHERE moderate >0 ORDER BY moderate DESC');\n\t\t\n\t\t$comments=[];\n\t\twhile($datas=$req->fetch(PDO::FETCH_ASSOC))\n\t\t{\n\t\t\t\n\t\t\t\t $comments[]=new Comments($datas);\n\t\t\t\t //return $comments;\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn $comments;\n\t}", "public function readCommentCustomer(){\n $sql='SELECT idComentario, comentario, producto.nombre as producto,cliente.nombre as cliente, comentarios.estado as estado, cliente.usuario as usuario FROM cliente, producto, comentarios where producto.idProducto=comentarios.idProducto and cliente.idCliente=comentarios.idCliente and comentarios.idProducto=? and comentarios.estado = 1';\n $params=array($this->id);\n return Database::getRows($sql, $params);\n\n }", "public static function searchComments($id) {\n $db = Db::getInstance();\n $id = intval($id);\n $req = $db->prepare('call searchComment(?)');\n $req->execute([$id]);\n return $req->fetchAll(PDO::FETCH_ASSOC);\n }", "public function comments() {\n\t\t// hasMany(RelatedModel, foreignKeyOnRelatedModel = image_id, localKey = id)\n\t\treturn $this->hasMany('App\\Comment')->with('user')->orderBy('id', 'desc');\n\t}", "private function getCommentShell() {\n // if comment author is NULL (not really a normal data condition), then actually fetch the comment and return it\n if ($this->commentAuthorID === null) {\n try {\n return Connect\\SocialQuestionComment::fetch($this->connectObj->ID);\n }\n catch (\\Exception $e) {\n // failure is probably due to testing, so just fall-through\n }\n }\n return parent::getSocialObjectShell('SocialQuestionComment', $this->socialQuestion, $this->commentAuthorID ?: null);\n }", "public function get_comments($submission_id){\n $this->db->select('comments.comment_id,user_form_info_text.form_field_id,comments.comments,comments.created_by,comments.user_form_info_text_id,CONCAT_WS(\" \",users.firstname,users.lastname) as name')\n ->from('comments comments')\n ->join('user_form_info_text user_form_info_text','comments.submission_id = user_form_info_text.submission_id and user_form_info_text.user_form_info_text_id = comments.user_form_info_text_id','left')\n ->join('users users','users.id = comments.created_by','left')\n ->where('comments.submission_id = '.$submission_id);\n $res = $this->db->get();\n return $res->result_array();\n }", "function get_comments($post_id){\n include('../../common/database/config.php');\n\n $sql = 'SELECT c.id,c.content,c.created_time,u.name FROM comments as c \n LEFT JOIN users as u on c.user_id = u.id\n where c.post_id = \"'.$post_id.'\"';\n $res = mysqli_query($conn,$sql);\n\n $res_array = mysqli_fetch_all($res, MYSQLI_ASSOC);\n\n return $res_array;\n}", "public function getComments()\n {\n return $this->hasMany(Comment::class, ['created_by' => 'id']);\n }", "public function getComments($pictures_id)\n {\n $select = $this->sql\n ->select()\n ->columns(['comments_comment'])\n ->from('comments')\n ->where('pictures_id = '.$pictures_id.'');\n ;\n \n $query = $this->sql->buildSqlString($select);\n\n return $this->adapter->query($query)->execute();\n }", "public function getComments()\n {\n return $this->hasMany(Comments::className(), ['tickets_id' => 'id']);\n }", "public function getAllComment()\n {\n return Comment::find()->with('user')->orderBy(['created_date'=>SORT_DESC])->all();\n \n }", "public function getComments($idPoem) {\n \n $sql = 'SELECT COM_ID as id, ' . \n ' COM_DATE as date, ' . \n ' COM_AUTHOR as author, ' . \n ' COM_CONTENT as content ' . \n 'FROM T_COMMENT ' . \n 'WHERE ARTICLE_ID = ? ';\n \n $comments = $this->executeQuery($sql, array($idPoem));\n \n return $comments;\n }", "function user_get_comment_data($id = null)\n\t{\n\t\t$uid = ($id == null) ? $_SESSION['uid'] : $id;\n\t\t$comments = $this->DB->database_select('user_comments', '*', array('to_user' => $uid));\n\t\treturn $comments;\n\t}", "public function getComments($photo_uid) {\r\n\t\t$comments = tx_cwtcommunity_lib_common::dbQuery('SELECT c.uid, c.crdate, c.cruser_id, c.text, u.username, u.tx_cwtcommunityuser_image AS image FROM tx_cwtcommunity_photo_comments c, fe_users u WHERE c.cruser_id = u.uid AND photo_uid = \"'.intval($photo_uid).'\" AND NOT c.deleted = \"1\" AND NOT c.hidden = 1 ORDER BY c.crdate DESC;');\r\n\t\treturn $comments;\r\n\t}", "function get_comment_author($comment_id = 0)\n {\n }", "function GetComments($f_id)\n\t{\n\t\t$sql_query = \"SELECT comments.*, members.nick_name, members.logo_file FROM `\".$this->sCommentTb.\"` AS comments LEFT JOIN `\".$GLOBALS['g_egltb_members'].\"` AS members ON comments.author_id=members.id HAVING comments.\".$this->sField.\"=\".(int)$f_id.\" ORDER BY comments.created DESC\";\n\t\treturn $this->pDBInterface->FetchArrayObject( $this->pDBInterface->Query( $sql_query ) );\n\t}", "function GetComments($conn)\n\t{\n\t\t// get comments from sql\n\t\t$sql = \"SELECT * FROM comments\";\n\n\t\t// query the database\n\t\t$result = $conn->query($sql);\n\n\t\t// fetch the comments as an array\n\t\twhile ($row = $result->fetch_assoc())\n\t\t{\n\t\t\t// get comments from database that have correct user tag\n\t\t\t$userId = $row['uid'];\n\t\t\t$userSql = \"SELECT * FROM users WHERE idUsers='$userId'\";\n\t\t\t$userResult = $conn->query($userSql);\n\n\t\t\t// get all comments with user tags\n\t\t\tif ($userRow = $userResult->fetch_assoc())\n\t\t\t{\n\t\t\t\t// display user, date and message of the comments\n\t\t\t\techo \"<div class='comment-box'>\n\t\t\t\t\t\t<p style='font-weight:bold; font-size:18px;'>\".$userRow['uidUsers'].\"</p>\n\t\t\t\t\t\t<p style='font-size:12px; margin-top:-10px; color:#6e6e6e;'>\".$row['date'].\"</p>\n\t\t\t\t\t\t<p style='margin-bottom:0px;'>\".nl2br($row['message']).\"</p>\";\n\n\t\t\t\t// if the user is logged in\n\t\t\t\tif (isset($_SESSION['userId']))\n\t\t\t\t{\n\t\t\t\t\t// check if the user matches a comment\n\t\t\t\t\tif ($_SESSION['userId'] == $userRow['idUsers'])\n\t\t\t\t\t{\n\t\t\t\t\t\t// display the buttons for editing and deleting comments\n\t\t\t\t\t\techo \"<form class='comment-box-editform' method='POST' action='comment-edit.php'>\n\t\t\t\t\t\t\t\t\t<input type='hidden' name='cid' value='\".$row['cid'].\"'>\n\t\t\t\t\t\t\t\t\t<input type='hidden' name='uid' value='\".$row['uid'].\"'>\n\t\t\t\t\t\t\t\t\t<input type='hidden' name='date' value='\".$row['date'].\"'>\n\t\t\t\t\t\t\t\t\t<input type='hidden' name='message' value='\".$row['message'].\"'>\n\t\t\t\t\t\t\t\t\t<button>EDIT</button>\n\t\t\t\t\t\t\t\t</form>\n\n\t\t\t\t\t\t\t\t<form class='comment-box-deleteform' method='POST' action='\".DeleteComments($conn).\"'>\n\t\t\t\t\t\t\t\t\t<input type='hidden' name='cid' value='\".$row['cid'].\"'>\n\t\t\t\t\t\t\t\t\t<button type='submit' name='commentDelete'>DELETE</button>\n\t\t\t\t\t\t\t\t</form>\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// close the comment section of html\n\t\t\t\techo \"</div>\";\n\t\t\t}\n\t\t}\n\t}", "function getRelatedRecipes($category, $id)\r\n {\r\n //define query\r\n $query = \"SELECT * FROM recipe\r\n WHERE recipe_id <> :id\r\n AND category = :category\r\n ORDER BY date_created DESC\r\n LIMIT 3\";\r\n\r\n //prepare statement\r\n $statement = $this->_db->prepare($query);\r\n\r\n //bind parameter\r\n $statement->bindParam(':category', $category, PDO::PARAM_INT);\r\n $statement->bindParam(':id', $id, PDO::PARAM_INT);\r\n\r\n //execute\r\n $statement->execute();\r\n\r\n //get result\r\n $result = $statement->fetchAll(PDO::FETCH_ASSOC);\r\n return $result;\r\n }", "public function comments()\n {\n return $this->hasMany(CitationComment::class);\n }", "public function getComments($id_root=0) {\n if ( empty($id_root) ) $id_root = $this->get('id_root');\n return $this->query_loads(\"id_root=$id_root AND id_parent>0 ORDER BY order_list ASC\");\n //return self::getCommentsInOrder($id_root);\n }", "public function comments()\n {\n return $this->hasMany('App\\Comment', 'author_id', 'id');\n }", "public function run()\n {\n Comment::create([\n 'userId' => '1',\n 'recipeId' => '1',\n 'comment' => 'Goda Köttbullar.',\n 'created_at' => date('Y-m-d H:m:s'),\n 'updated_at' => date('Y-m-d H:m:s')\n ]);\n\n Comment::create([\n 'userId' => '3',\n 'recipeId' => '1',\n 'comment' => 'Mycket gott, men jag hade föredragit om receptet inkluderade hur man gör mos till.',\n 'created_at' => date('Y-m-d H:m:s'),\n 'updated_at' => date('Y-m-d H:m:s')\n ]);\n\n Comment::create([\n 'userId' => '2',\n 'recipeId' => '1',\n 'comment' => 'Supergoda, älskas av hela familjen.',\n 'created_at' => date('Y-m-d H:m:s'),\n 'updated_at' => date('Y-m-d H:m:s')\n ]);\n\n Comment::create([\n 'userId' => '3',\n 'recipeId' => '3',\n 'comment' => 'Goda Pannkakor.',\n 'created_at' => date('Y-m-d H:m:s'),\n 'updated_at' => date('Y-m-d H:m:s')\n ]);\n\n Comment::create([\n 'userId' => '2',\n 'recipeId' => '3',\n 'comment' => 'Kul med lite variation på pannkakor, på detta sättet får jag lite hälsosammare mat och barnen får sin önskning om pannkakor uppfylld.',\n 'created_at' => date('Y-m-d H:m:s'),\n 'updated_at' => date('Y-m-d H:m:s')\n ]);\n\n Comment::create([\n 'userId' => '2',\n 'recipeId' => '2',\n 'comment' => 'Älskas av hela familjen.',\n 'created_at' => date('Y-m-d H:m:s'),\n 'updated_at' => date('Y-m-d H:m:s')\n ]);\n\n Comment::create([\n 'userId' => '1',\n 'recipeId' => '2',\n 'comment' => 'Supergoda :)',\n 'created_at' => date('Y-m-d H:m:s'),\n 'updated_at' => date('Y-m-d H:m:s')\n ]);\n\n Comment::create([\n 'userId' => '3',\n 'recipeId' => '2',\n 'comment' => 'Mycket omtyckta hemma.',\n 'created_at' => date('Y-m-d H:m:s'),\n 'updated_at' => date('Y-m-d H:m:s')\n ]);\n\n Comment::create([\n 'userId' => '4',\n 'recipeId' => '1',\n 'comment' => 'Detta receptet kommer hamna bland våra standard go-to recept.',\n 'created_at' => date('Y-m-d H:m:s'),\n 'updated_at' => date('Y-m-d H:m:s')\n ]);\n }", "public function getCommentators()\n {\n return $users = User::select('users.*')\n ->distinct()\n ->join('comments', 'comments.user_id', '=', 'users.id')\n ->where('comments.image_id', $this->id)\n ->get();\n }", "public function getComments() {}", "public function getUsersWhoCommented()\n {\n $content_id = $this->content->id;\n $content_type = $this->content()->first()->getMorphClass();\n $user_id = $this->user->id;\n\n return $this\n ->where('content_id', $content_id)\n ->where('content_type', $content_type)\n ->where('user_id', '!=', $user_id)\n ->get()\n ->pluck('user')\n ->unique();\n }", "public function getComments() \n {\n return $this->hasMany(Comment::className(), [\n 'post_id' => 'id',\n ]);\n }", "function get_both_comments_replies($comment_id) {\n global $db;\n $query = 'SELECT c.comment, c.created, r.reply, r.created, c.comment_id, r.reply_id, u.userName\n FROM comments c \n JOIN replies r on r.comment_id = c.comment_id\n JOIN users u on r.user_id = u.user_id\n WHERE c.comment_id = :comment_id';\n $statement = $db->prepare($query);\n $statement->bindValue(':comment_id', $comment_id);\n $statement->execute();\n $replies = $statement->fetchAll();\n $statement->closeCursor();\n return $replies;\n }", "public function getComments($post_id){\n\t\t$sql = 'SELECT user_name, date_creation, content, state, id FROM comment WHERE post_id=' . $post_id . \" AND state >= 2 ORDER BY id DESC\";\n\t\t$data = $this->db->query($sql);\n\t\treturn $data->fetchAll();\n\t}", "function findCommentsByRelatedId($related_id)\n\t{\n\t\tglobal $conn;\n\t\t\n\t\t$sql = \t\"\n\t\t\tSELECT UserComment.*, (COUNT(Ghost.id) - 1) AS depth\n\t\t\tFROM (user_comments AS UserComment, user_comments as Ghost)\n\t\t\t\t\t\t\t\t \n\t\t\tWHERE\tUserComment.lft BETWEEN Ghost.lft AND Ghost.rgt\n\t\t\tAND\t\tGhost.related_id = :related_id\n\t\t\tAND\t\tUserComment.related_id = :related_id\n\t\t\tAND\t\tUserComment.parent_id is not null\n\t\t\t\t\t\t\t\t\n\t\t\tGROUP BY UserComment.id\n\t\t\tORDER BY UserComment.lft\n\t\t\tLIMIT 50\n\t\t\t\"; // arbitrary limit\n\t\t$stmt = $conn->prepare($sql);\n\t\t$stmt->execute(array('related_id' => $related_id));\n\t\t$res = $stmt->fetchAll();\n\t\tif (!empty($res))\n\t\t{\n\t\t\treturn $res;\n\t\t}\n\t\n\t\treturn array(); // return empty array\n\n\t}", "protected function getComments()\n\t{\n\t\t$options = new JRegistry;\n\n\t\t// Ask if the user wishes to authenticate to GitHub. Advantage is increased rate limit to the API.\n\t\t$this->out('Do you wish to authenticate to GitHub? [y]es / [n]o :', false);\n\n\t\t$resp = trim($this->in());\n\n\t\tif ($resp == 'y' || $resp == 'yes')\n\t\t{\n\t\t\t// Get the username\n\t\t\t$this->out('Enter your GitHub username :', false);\n\t\t\t$username = trim($this->in());\n\n\t\t\t// Get the password\n\t\t\t$this->out('Enter your GitHub password :', false);\n\t\t\t$password = trim($this->in());\n\n\t\t\t// Set the options\n\t\t\t$options->set('api.username', $username);\n\t\t\t$options->set('api.password', $password);\n\t\t}\n\n\t\t// Instantiate JGithub\n\t\t$this->github = new JGithub($options);\n\n\t\ttry\n\t\t{\n\t\t\tforeach ($this->issues as $issue)\n\t\t\t{\n\t\t\t\t$id = $issue->gh_id;\n\t\t\t\t$this->out('Retrieving comments for issue #' . $id . ' from GitHub.', true);\n\n\t\t\t\t$this->comments[$id] = $this->github->issues->getComments('joomla', 'joomla-cms', $id);\n\t\t\t}\n\t\t}\n\t\t// Catch any DomainExceptions and close the script\n\t\tcatch (DomainException $e)\n\t\t{\n\t\t\t$this->out('Error ' . $e->getCode() . ' - ' . $e->getMessage(), true);\n\t\t\t$this->close();\n\t\t}\n\n\t\t// Retrieved items, report status\n\t\t$this->out('Finished retrieving comments for all issues.', true);\n\t}", "public function get_comments_by_parent_id($idParent) {\n $root = simplexml_load_file('data/comments.xml');\n $comments = [];\n foreach($root->xpath(\"//comment\") as $comment) {\n if(intval($comment['idParent']) === $idParent){\n array_push($comments, array(\n 'author' => (string) $comment->author,\n 'mark' => intval($comment->mark),\n 'comment' => (string) $comment->text)\n );\n }\n }\n return $comments;\n }", "public function getAllCommentaires()\n {\n $sql = 'SELECT COM_ID as id, COM_DATE as date,'\n . ' COM_AUTEUR as auteur, COM_CONTENU as contenu FROM t_commentaire'\n . ' ';\n $commentaires = $this->executerRequete($sql);\n return $commentaires;\n }", "public function getRecipes_fromUser($user) {\n\n $query = $this->db\n ->from('recipes')\n ->where('id_owner', $user)\n ->order_by('created_at', 'DESC')\n ->get();\n\n return $result = $query->result();\n }", "public function get_comments($modded = 'N')\r\n\t{\r\n\t\t// get the comments and join on the post so we\r\n\t\t// can get it's name\r\n\t\t$comments = $this->db\r\n\t\t\t\t\t\t->select('comments.*, posts.title as post_title')\r\n\t\t\t\t\t\t->where('comments.show', $modded)\r\n\t\t\t\t\t\t->join($this->_table['posts'], \"posts.id = comments.post_id\")\r\n\t\t\t\t\t\t->get($this->_table['comments'])\r\n\t\t\t\t\t\t->result_array();\r\n\r\n\t\t// there's two ways the comments come\r\n\t\t// out of the database.\r\n\t\tforeach ($comments as &$comment) \r\n\t\t{\r\n\t\t\t// an unregistered user\r\n\t\t\tif ($comment['author'])\r\n\t\t\t{\r\n\t\t\t\t// concat author and email and assign to display_name\r\n\t\t\t\t$comment['display_name'] = $comment['name'] . ' [' . $comment['email'] . ']';\r\n\t\t\t}\r\n\t\t\t// or a registered user\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// concat user_id and [Registered User](from the language files)\r\n\t\t\t\t// assign to display_name\r\n\t\t\t\t$comment['display_name'] = $this->ion_auth->get_db_display_name($comment['user_id']) . ' [' . lang('comments_reg_user') . ']';\r\n\t\t\t}\r\n\t\t}\r\n\t\t// send it on lil doggy\r\n\t\treturn $comments;\r\n\t}", "public function getAllTheComments(){\n\t\t try{\n\t\t\t $conn=DBConnection::GetConnection();\n\t\t\t $myquery=\"SELECT comment_id,comment_description,comment_date,news_id,user_name FROM comment\";\n\t\t\t $result= $conn->query($myquery);\n\t\t\t $comments=array();\n\t\t\t foreach($result as $comment){\n\t\t\t\t$c1=new Comment();\n\t\t\t\t$c1->setCommentId($comment[\"comment_id\"]);\n\t\t\t\t$c1->setCommentDescription($comment[\"comment_description\"]);\n\t\t\t\t$c1->setCommentDate($comment[\"comment_date\"]);\n\t\t\t\t$c1->setNewsId($comment[\"news_id\"]);\n\t\t\t\t$c1->setUserName($comment[\"user_name\"]);\n\t\t\t\tarray_push($comments,$c1);\t\t\t\t\n\t\t\t }\n\t\t\t$conn =null;\n\t\t\treturn $comments;\n\t\t }catch(PDOException $p){\n\t\t\t echo 'Fail to connect';\n\t\t\t echo $p->getMessage();\n\t\t }\n\t }", "public function getComments($suggestionID){\n\t\t$comments = Comment::where('suggestion_id',$suggestionID)->get();\n\t\tforeach($comments as $comment){ // as of now, only echos its content, possible others to echo: time updates/created, user\n\t\t\techo $comment->content;\n\t\t}\n\t}", "public function getAnswerComments($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collAnswerComments === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collAnswerComments = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(AnswerCommentPeer::USER_ID, $this->id);\n\n\t\t\t\tAnswerCommentPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collAnswerComments = AnswerCommentPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(AnswerCommentPeer::USER_ID, $this->id);\n\n\t\t\t\tAnswerCommentPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastAnswerCommentCriteria) || !$this->lastAnswerCommentCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collAnswerComments = AnswerCommentPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastAnswerCommentCriteria = $criteria;\n\t\treturn $this->collAnswerComments;\n\t}", "public function comments($id = null) \n\t{\n\t\t/* COMMENT BLOCK */\n\t\t$total = $this->Model->getCountComments($id);\n\t\t$per_page = 25;\n\n\t\t/* pages nav */\n\t\tlist($pages, $page) = pagination($total, $per_page, $this->getModuleURL('comments/' . ($id ? $id : '')));\n\t\t$this->_globalize(array('comments_pagination' => $pages));\n\n\t\t$offset = ($page - 1) * $per_page;\n\n\t\t$comments = $this->Model->getComments($id, $offset, $per_page);\n\t\tif ($comments && is_array($comments)) {\n\t\t\tforeach ($comments as $index => $entity) {\n\n\t\t\t\t$module = $entity->getModule();\n\t\t\t\t$markers = array();\n\n\t\t\t\t\n\t\t\t\t// COMMENT ADMIN BAR\n\t\t\t\t$ip = ($entity->getIp()) ? $entity->getIp() : 'Unknown';\n\t\t\t\t$moder_panel = '';\n\t\t\t\t$adm = false;\n\t\t\t\tif ($this->ACL->turn(array($module, 'edit_comments'), false)) {\n\t\t\t\t\t$moder_panel .= get_link('',\n\t\t\t\t\t'/' . $module . '/edit_comment_form/' . $entity->getId(), array('class' => 'fps-edit')) . '&nbsp;';\n\t\t\t\t\t$adm = true;\n\t\t\t\t}\n\n\t\t\t\tif ($this->ACL->turn(array($module, 'delete_comments'), false)) {\n\t\t\t\t\t$moder_panel .= get_link('',\n\t\t\t\t\t'/' . $module . '/delete_comment/' . $entity->getId(), array('class' => 'fps-delete', 'onClick' => \"return confirm('\" . __('Are you sure') . \"')\")) . '&nbsp;';\n\t\t\t\t\t$adm = true;\n\t\t\t\t}\n\n\t\t\t\tif ($adm) {\n\t\t\t\t\t$moder_panel = '<a target=\"_blank\" href=\"https://apps.db.ripe.net/search/query.html?searchtext=' \n\t\t\t\t\t\t\t. h($ip) . '\" class=\"fps-ip\" title=\"IP: ' . h($ip) . '\"></a>' . $moder_panel;\n\t\t\t\t}\n\n\n\t\t\t\t$img = array(\n\t\t\t\t\t'alt' => 'User avatar',\n\t\t\t\t\t'title' => h($entity->getName()),\n\t\t\t\t\t'class' => 'ava',\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Аватар\n\t\t\t\tif (file_exists(ROOT . '/sys/avatars/' . $entity->getUser_id() . '.jpg')) \n\t\t\t\t\t$url = get_url('/sys/avatars/' . $entity->getUser_id() . '.jpg');\n\t\t\t\telse \n\t\t\t\t\t$url = get_url('/sys/img/noavatar.png');\n\t\t\t\t\t\n\t\t\t\t$markers['avatar'] = '<img class=\"ava\" src=\"' . $url . '\" alt=\"User avatar\" />';\n\n\t\t\t\t\n\n\t\t\t\tif ($entity->getUser_id()) {\n\t\t\t\t\t$markers['name_a'] = get_link(h($entity->getName()), getProfileUrl((int)$entity->getUser_id()));\n\t\t\t\t\t$markers['user_url'] = get_url(getProfileUrl((int)$entity->getUser_id()));\n\t\t\t\t\t$markers['avatar'] = get_link($markers['avatar'], $markers['user_url']);\n\t\t\t\t} else {\n\t\t\t\t\t$markers['name_a'] = h($entity->getName());\n\t\t\t\t}\n\t\t\t\t$markers['name'] = h($entity->getName());\n\n\n\t\t\t\t$markers['moder_panel'] = $moder_panel;\n\t\t\t\t$markers['message'] = $this->Textarier->parseBBCodes($entity->getMessage(), $entity);\n\n\t\t\t\tif ($entity->getEditdate()!='0000-00-00 00:00:00') {\n\t\t\t\t\t$markers['editdate'] = 'Комментарий был изменён '.$entity->getEditdate();\n\t\t\t\t} else {\n\t\t\t\t\t$markers['editdate'] = '';\n\t\t\t\t}\n\n\t\t\t\t$entity->setEntry_url(get_url('/' . $module . '/view/' . $entity->getEntity_id()));\n\t\t\t\t$entity->setAdd_markers($markers);\n\t\t\t\t\n\t\t\t\t$comments[$index] = $entity;\n\t\t\t}\n\t\t}\n\t\t$this->comments = $this->render('viewcomment.html', array('commentsr' => $comments));\n\n\t\t$title = __('All comments');\n\t\tif ($id && intval($id) > 0) {\n\t\t\t$user = $this->Model->getById(intval($id));\n\t\t\tif ($user)\n\t\t\t\t$title = __('User comments') . ' \"' . h($user->getName()) . '\"';\n\t\t}\n $this->addToPageMetaContext('entity_title', $title);\n\n\n\t\t$navi = array(\n 'add_link' => ($this->ACL->turn(array($this->module, 'add_materials'), false))\n ? get_link(__('Add material'), $this->getModuleURL('add_form/')) : '',\n 'module_url' => get_url($this->getModuleURL()),\n 'category_url' => get_url($this->getModuleURL('comments/' . ($id ? $id : ''))),\n 'category_name' => $title,\n 'navigation' => get_link(__('Home'), '/') . __('Separator')\n . get_link(h($this->module_title), $this->getModuleURL()) . __('Separator')\n . $title,\n );\n\t\t$this->_globalize($navi);\n\n\n\t\treturn $this->_view('');\n\t}", "public function comments()\n {\n return $this->hasMany('App\\Comment', 'id_comment', 'id');\n }", "public function findAllByReservation($reservationId) {\n $sql = \"select * from COMMENT where NUM_RESA=? order by COM_ID\";\n $result = $this->getDb()->fetchAll($sql, array($reservationId));\n\n // Convert query result to an array of Comment objects\n $comments = array();\n foreach ($result as $row) {\n $comId = $row['COM_ID'];\n $comments[$comId] = $this->buildDomainObject($row);\n }\n return $comments;\n }", "public function getById($id)\n {\n return $this->comment\n ->where('id', $id)\n ->get();\n }", "public function comments()\n {\n return $this->morphedByMany('App\\Comment', 'likeable');\n }", "function select_comment_data($comment_id)\n\t{\n\t\tglobal $db;\n\n\t\t$sql = \"SELECT gb.id as comment_id, gb.post, gb.author_id, gb.post_date, gb.ip_address, gb.garage_id,\n\t\t\t\tg.made_year, makes.make, models.model, u.username, CONCAT_WS(' ', g.made_year, makes.make, models.model) AS vehicle\n \t FROM \" . GARAGE_GUESTBOOKS_TABLE . \" AS gb \n\t\t\t\tLEFT JOIN \" . GARAGE_TABLE .\" AS g on g.id = gb.garage_id\n \tLEFT JOIN \" . USERS_TABLE . \" AS u ON g.member_id = u.user_id \n \t\t\t\tLEFT JOIN \" . GARAGE_MAKES_TABLE . \" AS makes ON g.make_id = makes.id\n \t\tLEFT JOIN \" . GARAGE_MODELS_TABLE . \" AS models ON g.model_id = models.id\n WHERE gb.id = $comment_id\n ORDER BY gb.post_date ASC\";\n\n \tif( !($result = $db->sql_query($sql)) )\n \t\t{\n \t\tmessage_die(GENERAL_ERROR, 'Could Not Select Vehicle Comment', '', __LINE__, __FILE__, $sql);\n \t\t}\n\n\t\t$row = $db->sql_fetchrow($result);\n\t\t$db->sql_freeresult($result);\n\n\t\treturn $row;\n\t}", "function view_comments($album_id){\n $album_id = (int)$album_id;\n $comments = array();\n $query = mysql_query(\"SELECT * FROM comments WHERE album_id = $album_id\");\n\n while($comment_row = mysql_fetch_assoc($query)){\n $comments[] = array(\n 'id' => $comment_row['comment_id'],\n 'user_id' => $comment_row['user_id'],\n 'comment' => $comment_row['comment'],\n 'timestamp' => $comment_row['timestamp']\n );\n }\n return $comments;\n }", "public function getComment($idComment)\n\t{\t\n\t\t$req=$this->_bdd->query('SELECT id, content_com AS content, DATE_FORMAT(date_com, \"%d/%m/%Y %Hh%imin%ss\") AS date, id_users AS idUser, id_post AS idPost, moderate FROM Comments WHERE id='.$idComment);\n\t\t//die(var_dump($idComment));\n\t\twhile($datas=$req->fetch(PDO::FETCH_ASSOC))\n\t\t{\n\t\t\t$comment=new Comments($datas);\n\t\t}\n\t\treturn $comment;\n\t}", "public function getAllComments()\n {\n $req = $this->pdo->prepare('SELECT * FROM comments ORDER BY `date` DESC');\n $req->execute();\n\n return $req->fetchAll();\n }", "public function getQuestionComments($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collQuestionComments === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collQuestionComments = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(QuestionCommentPeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionCommentPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collQuestionComments = QuestionCommentPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(QuestionCommentPeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionCommentPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastQuestionCommentCriteria) || !$this->lastQuestionCommentCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collQuestionComments = QuestionCommentPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastQuestionCommentCriteria = $criteria;\n\t\treturn $this->collQuestionComments;\n\t}", "public function getCommentParentsById($args) {\n $db = \\Helper::getDB();\n $db->where('id', $db->escape($args[1]));\n $query = $db->getOne('comments');\n // Comment found\n if($query) {\n // User has permission to view the comment?\n if(\\Auth::checkComment($query['type'], $query['itemId'])) {\n // Empty path array\n $data = array();\n\n // Create objects\n $user = new \\Models\\User($query['userId']);\n $comment = new \\Models\\Comment($query['id'], $query['parentId'], 1, $user, $query['type'], $query['timestamp'], $query['message'], $query['editTimestamp']);\n // If page get additional document data\n if($comment->getType() == 'page') {\n $data[] = 'document';\n // Get document ID\n $db->join('document_pages p', 'p.documentId = d.id', 'LEFT');\n $db->where('p.id', $db->escape($query['itemId']));\n $document = $db->getOne('documents d', 'd.*');\n $data[] = $document['id'];\n // Get additional presentation data\n } elseif($comment->getType() == 'slide') {\n $data[] = 'presentation';\n // Get presentation ID\n $db->join('document_slides s', 's.documentId = d.id', 'LEFT');\n $db->where('s.id', $db->escape($query['itemId']));\n $presentation = $db->getOne('documents d', 'd.*');\n $data[] = $presentation['id'];\n }\n // Get last part of the path\n $data[] = $comment->getType();\n $data[] = $query['itemId'];\n $data[] = 'comment';\n $data[] = $comment->getId();\n } else {\n throw new \\Exception('You do not have permission to view comments for the given item', 3);\n }\n } else {\n throw new \\Exception('Comment does not exists', 1);\n }\n\n return $data;\n }", "public function get_comments()\n {\n }", "public function comments() {\n return $this->morphMany(Comment::class,'commentable', 'parent_type', 'parent_id')->orderBy('created_at', 'ASC');\n }", "public function getAllComments(){\n $comments = $this->db->query('SELECT * FROM comments');\n return $comments;\n }", "public function getComments($postId, $parentCommentId = 0){\n\t\t$commentQuery = $this->mysqli->query(\"SELECT \n\t\t\t\t\t\tcomments.comment_id,\n\t\t\t\t\t\tUNIX_TIMESTAMP(comments.date) as date,\n\t\t\t\t\t\tcomments.content, \n\t\t\t\t\t\tusers.username\n\t\t\t\t\t\tFROM comments LEFT JOIN users ON comments.user_id = users.user_id\n\t\t\t\t\t\tWHERE post_id=\".$postId.\"\n\t\t\t\t\t\tAND replied_comment_id=\".$parentCommentId);\n\t\t\n\t\t$commentArr = array();\n\t\t\n\t\twhile($comment = $commentQuery->fetch_object()){\n\t\t\t$commentObj = new Comment($comment->comment_id, $comment->date, $comment->content);\n\t\t\t$commentObj->setUsername($comment->username);\n\t\t\t\n\t\t\t//Get the comment's votes\n\t\t\t$votes = $this->mysqli->query(\"SELECT\n\t\t\t\t\tvalue, COUNT(user_id) AS count FROM votes\n\t\t\t\t\tWHERE content_id=\".$comment->comment_id.\" AND is_post_vote=0\n\t\t\t\t\tGROUP BY value\n\t\t\t\t\t\");\n\t\t\tif($votesDown = $votes->fetch_object()){\n\t\t\t\t$votesDown = $votesDown->count;\n\t\t\t}else{\n\t\t\t\t$votesDown = 0;\n\t\t\t}\n\t\t\t$commentObj->setVoteDown($votesDown);\n\t\t\t\n\t\t\tif($votesUp = $votes->fetch_object()){\n\t\t\t\t$votesUp = $votesUp->count;\n\t\t\t}else{\n\t\t\t\t$votesUp = 0;\n\t\t\t}\n\t\t\t$commentObj->setVoteUp($votesUp);\n\t\t\t\n\t\t\t$commentObj->addCommentArr($this->getComments($postId, $commentObj->getId()));\n\t\t\t$commentArr[] = $commentObj;\n\t\t}\n\t\t\n\t\treturn $commentArr;\n\t\t\n\t}", "protected function get_comment_ids()\n {\n }", "public function getSourceComments($src_id) { \n \t\n\t\t\t\n\t\t\t$result = $this->adapter->query('select* from allnotes where note_type = 11 and note_ref_id = ? order by note_dt desc',\n array($src_id));\n\t\t\t\n\t\t\t$ar = array();\n\t\t\tif($result)\n\t\t\t{\n\t\t\t$i=0;\n\t\t\t\tforeach ($result as $row) {\n\t\t\t\t\t$ar[$i]['note_user']=$row->note_user;\n\t\t\t\t\t$ar[$i]['note_text']=$row->note_text;\n\t\t\t\t\t$ar[$i]['note_dt']=$row->note_dt;\n\t\t\t\t\t$i+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn $ar;\n }", "public function getcomments($sr, $limit = 5) {\n\t\t$limit = (isset ( $limit )) ? \"?limit=\" . $limit : \"\";\n\t\tif ($sr == 'home' || $sr == 'reddit' || ! isset ( $sr )) {\n\t\t\t$urlListing = \"http://www.reddit.com/.json{$limit}\";\n\t\t} else {\n\t\t\t$urlListing = \"http://www.reddit.com/r/{$sr}/comments/.json{$limit}\";\n\t\t}\n\t\treturn $this->runCurl ( $urlListing );\n\t}", "public function getCommentaireByRecette($idRecette)\n {\n $query = 'SELECT ' . $this->formatFieldsToSelect()\n . ' FROM ' . $this->base_table\n\t\t\t.' where recette_com='.$idRecette\n\t\t\t. ' order by date desc';\n \n $statement = Db::getInstance()->query($query);\n return $statement->fetchAll(PDO::FETCH_CLASS,get_called_class());\n }", "function get_comments(){\n\n\t}", "public function getComments() {\n if(!isset($this->comments)) {\n $this->comments = MergeRequestComment::getListByExample(\n new DBExample(array(\n 'mergeRequestId' => $this->id\n )),\n null,\n array(),\n array(\n 'parentId' => DB::SORT_ASC,\n 'ctime' => DB::SORT_ASC\n )\n );\n }\n\n return $this->comments;\n }", "public function getChildComments($id)\n {\n $comments = Comment::getChildComments($id);\n \n return metaResponse($comments);\n }", "public function view_recipe($id){\n\t\t$query = $this->db->query(\"\n\t\t\tSELECT re.id re_id, re.name re_nm, re.price re_prc, re.instructions re_ins, re.cooking_time re_ct, re.servings re_se, re.image re_im, re.status re_st, re.created_date re_cd, re.updated_date re_ud, rg.name rg_nm, rg.id rid, co.name co_nm, co.id cid, ing.name in_nm, ring.ingredient_amount in_am\n\t\t\tFROM recipe_ingredients ring\n\t\t\tINNER JOIN ingredients ing ON ring.ingredient_id = ing.id\n\t\t\tRIGHT JOIN recipe re ON ring.recipe_id = re.id\n\t\t\tINNER JOIN country co ON re.country_id = co.id\n\t\t\tINNER JOIN region rg ON co.region_id = rg.id\n\t\t\tWHERE md5(re.id) = '$id'\n\t\t\");\n\t\tif ($query->num_rows() > 0){\n\t\t\treturn $query->result();\n\t\t}else{\n\t\t\treturn NULL;\n\t\t}\n\t}", "public function getRecipeById($r_id){\r\n require 'database.php';\r\n $sql = \"SELECT * from recipe WHERE recipe_id = $r_id\";\r\n $output = $DB_con->query($sql);\r\n foreach ($output as $outputs) {\r\n echo \"<div class='container'>\";\r\n echo \"<div class='row cardView'>\";\r\n \r\n echo \"<div class='image_enlarged'>\";\r\n echo \"<img src=\" . $outputs['img_src'] . \">\";\r\n echo \"</div>\";\r\n\r\n echo \"<div class='description'>\";\r\n echo \"<h3>\" . $outputs['title'] . \"</h3>\";\r\n echo \"<h5>\" . $outputs['subtitle'] . \"</h5>\";\r\n echo \"<h5> Serving size \" . $outputs['serving_size'] . \"</h5>\";\r\n //function getIngredientsById has purpose to display ingredients \r\n $this->getIngredientsById($r_id);\r\n echo \"<h3 class='price'> \" . $outputs['price'] . \"</h3>\";\r\n echo \"<a href='./recipeapp/confirm.php?id=\" . $r_id . \"'><button class='order'>\" . \"Order Ingredients\" . \"</button></a>\";\r\n \r\n\r\n \r\n echo \"</div>\";\r\n echo \"</div>\";\r\n echo \"</div>\";\r\n \r\n }\r\n }", "public function getComments($episodeId){\n $comments = $this->db->prepare('SELECT * FROM comments WHERE episode_id=?');\n $comments->execute(array($episodeId));\n return $comments;\n }", "public function show(Recipe $recipe){\n if((!$recipe->approved || $recipe->private) && ($recipe->author_id != Auth::id() || !Auth::user()->hasRole('Admin'))){\n return App::abort(404);\n }\n\n if(!Auth::guest()){\n $recipe->isSaved = Auth::user()->hasRecipe($recipe->id);\n }\n $related_recipes = Recipe::where('category', '=', $recipe->category)->where('id', '<>', $recipe->id)->take(4)->get();\n foreach($related_recipes as $related_recipe){\n $related_recipe->user = User::find($related_recipe->author_id);\n $related_recipe->review_count = Review::where('recipe_id', '=', $related_recipe->id)->count();\n if(!Auth::guest()){\n $related_recipe->isSaved = Auth::user()->hasRecipe($recipe->id);\n }\n }\n $author = User::find($recipe->author_id);\n Event::fire('recipe_view', array($recipe, 'user_id' => $author->id));\n foreach(explode(',',$recipe->category) as $category){\n $categorys[] = Category::find($category);\n }\n $reviews = Review::where('recipe_id', '=', $recipe->id)->take(Review::$defaultReviewCount)->get();\n $total_reviews = Review::where('recipe_id', '=', $recipe->id)->count();\n $user_review = new Review;\n $user_review->rating = 0;\n if(Auth::id()){\n $user_review = Review::where('reviewer_id' ,'=', Auth::id())\n ->where('recipe_id', '=', $recipe->id)->first();\n if(!$user_review){\n $user_review = new Review;\n $user_review->rating = 0;\n }\n }\n\n if($reviews->isEmpty()){\n return View::make('recipe.index')->with(array(\n 'recipe' => $recipe,\n 'categorys' => $categorys,\n 'author' => $author,\n 'reviews' => $reviews,\n 'user_review' => $user_review,\n 'total_reviews' => $total_reviews,\n 'related_recipes' => $related_recipes\n ));\n }\n\n foreach($reviews as $review){\n $review->author = User::find($review->reviewer_id);\n\n if(Auth::id()){\n $helpful = HelpfulReview::where('recipe_id', '=', $recipe->id)\n ->where('review_id', '=', $review->id)\n ->where('user_id', '=', Auth::id())->first();\n if($helpful){\n $review->helpful = $helpful->isHelpful;\n }\n else{\n $review->helpful = '';\n }\n }\n }\n\n $positive_review = Review::where('recipe_id', '=', $recipe->id)->orderBy('rating', 'desc')->orderBy('helpful', 'desc')->first();\n $positive_review->author = User::find($positive_review->reviewer_id);\n $helpful = HelpfulReview::where('recipe_id', '=', $recipe->id)\n ->where('review_id', '=', $positive_review->id)\n ->where('user_id', '=', Auth::id())->first();\n if($helpful){\n $positive_review->helpful = $helpful->isHelpful;\n }\n else{\n $positive_review->helpful = '';\n }\n\n $critical_review = Review::where('recipe_id', '=', $recipe->id)->orderBy('rating', 'asc')->orderBy('helpful', 'desc')->first();\n $critical_review->author = User::find($critical_review->reviewer_id);\n $helpful = HelpfulReview::where('recipe_id', '=', $recipe->id)\n ->where('review_id', '=', $critical_review->id)\n ->where('user_id', '=', Auth::id())->first();\n if($helpful){\n $critical_review->helpful = $helpful->isHelpful;\n }\n else{\n $critical_review->helpful = '';\n }\n\n $review_distribution['total'] = Review::where('recipe_id', '=', $recipe->id)->count();\n $review_distribution[1] = Review::where('recipe_id', '=', $recipe->id)->where('rating', '=', '1')->count() / $review_distribution['total'] * 100;\n $review_distribution[2] = Review::where('recipe_id', '=', $recipe->id)->where('rating', '=', '2')->count() / $review_distribution['total'] * 100;\n $review_distribution[3] = Review::where('recipe_id', '=', $recipe->id)->where('rating', '=', '3')->count() / $review_distribution['total'] * 100;\n $review_distribution[4] = Review::where('recipe_id', '=', $recipe->id)->where('rating', '=', '4')->count() / $review_distribution['total'] * 100;\n $review_distribution[5] = Review::where('recipe_id', '=', $recipe->id)->where('rating', '=', '5')->count() / $review_distribution['total'] * 100;\n\n $reviews_with_pictures = Review::where('image', '<>', '')->where('recipe_id', '=', $review->recipe_id)->get();\n foreach($reviews_with_pictures as $review){\n $review->user = User::find($review->reviewer_id);\n }\n\n return View::make('recipe.index')->with(array(\n 'recipe' => $recipe,\n 'author' => $author,\n 'categorys' => $categorys,\n 'reviews' => $reviews,\n 'total_reviews' => $total_reviews,\n 'user_review' => $user_review,\n 'positive_review' => $positive_review,\n 'critical_review' => $critical_review,\n 'review_distribution' => $review_distribution,\n 'related_recipes' => $related_recipes,\n 'reviews_with_pictures' => $reviews_with_pictures\n ));\n }", "function getCriteriaComment($rubric = null)\n {\n $criteria = $rubric['RubricsCriteria'];\n $lom = $rubric['RubricsLom'];\n $tmp = null;\n\n for ($i = 0; $i<count($criteria); $i++) {\n $criteria_Id = $criteria[$i]['id'];\n for ($j = 0; $j<count($lom); $j++) {\n $lomId = $lom[$j]['id'];\n $data = $this->find('all', array('conditions' => array('criteria_id' => $criteria_Id, 'rubrics_loms_id' => $lomId),\n 'fields' => array('criteria_comment')));\n if (!empty($data)) {\n $tmp['criteria_comment_'.($i+1).'_'.($j+1)] = $data[0]['RubricsCriteriaComment']['criteria_comment'];\n } else {\n $tmp['criteria_comment_'.($i+1).'_'.($j+1)] = null;\n }\n }\n }\n\n return $tmp;\n }", "public function setOwnerId(int $value): GetAllComments\n {\n $this->ownerId = $value;\n return $this;\n }", "function get_post_comments($post_id)\n{\n $select_query = 'SELECT c.*, u.username\n FROM '.TBL_COMMENTS.' c\n JOIN '.TBL_USERS.' u\n ON u.`user_id` = c.`user_id`\n WHERE c.`post_id`='.(int)$post_id.'\n ORDER BY c.`created_ts` ASC';\n\n $comments = array();\n $results = mysql_query($select_query);\n while($row = mysql_fetch_assoc($results))\n {\n $comments[] = $row;\n }\n\n return $comments;\n}", "public function comments()\n {\n return $this->morphMany('App\\Comment', 'commentable')->orderBy('created_at', 'DESC');\n }", "public function getRecipeData($rid) {\n // Query to select recipe\n $this->db->query('SELECT * FROM recipes WHERE rid=:rid');\n $this->db->bind(':rid', $rid);\n $this->db->execute();\n $recipeResult = $this->db->single();\n\n // If recipe does not exist, return null\n if($recipeResult == null) {\n return null;\n }\n\n // Convert from object into array to append owner username, ingredients ,and directions\n $recipeResult = (array)$recipeResult;\n\n // Retrieve owner username and append to result\n $this->db->query('SELECT user_username FROM users WHERE user_id=:uid');\n $this->db->bind(':uid', $recipeResult['ownerid']);\n $this->db->execute();\n $result = $this->db->single();\n $recipeResult['owner_username'] = $result->user_username;\n\n // Query to select recipe's ingredients list\n $this->db->query('SELECT ingredientid, value FROM ingredients WHERE rid=:rid');\n $this->db->bind(':rid', $rid);\n $this->db->execute();\n $ingredientsResult = $this->db->resultSet(true);\n $recipeResult['ingredients'] = $ingredientsResult;\n\n // Query to select recipe's directions list\n $this->db->query('SELECT stepNum, description FROM directions WHERE rid=:rid');\n $this->db->bind(':rid', $rid);\n $this->db->execute();\n $directionsResult = $this->db->resultSet(true);\n $recipeResult['directions'] = $directionsResult;\n\n return (object)$recipeResult;\n }", "public function get_users_comments_data($discussionid = \"\")\n\t{\n\t\t$result = $this->db->from(\"discussion\")->where(array(\"discussion_id\" => $discussionid))->join(\"deals\",\"deals.deal_id\",\"discussion.deal_id\")->limit(1)->get();\n\t\treturn $result;\n\t}", "function getCommentsByUsername($driverUsername){\n\t\t\t$dbManager = dataBase\\DBManager::getInstance();\n\t\t\t$connection = $dbManager->getConnection();\n\t\t\t$query = $connection->query(\"SELECT comment, passUsername FROM drivercomments WHERE driverUsername = '$driverUsername' \");\n\t\t\t return $query;\n\t\t}", "function getComment() {\n return DataObjectPool::get($this->getAdditionalProperty('comment_type'), $this->getAdditionalProperty('comment_id'));\n }", "public function selectCommentsByImageId($imageId) {\n $sql = \"SELECT * FROM `comments` WHERE `image_id` = :image_id ORDER BY `id` ASC\"; \n $stmt = $this->pdo->prepare($sql); \n $stmt->bindValue('image_id', $imageId); \n $stmt->execute(); \n return $stmt->fetchAll(PDO::FETCH_ASSOC); \n }" ]
[ "0.61224645", "0.6109855", "0.60941076", "0.60582006", "0.5990077", "0.5915567", "0.5905671", "0.5865427", "0.58383465", "0.58379555", "0.5833757", "0.58172387", "0.5810213", "0.57930654", "0.57820207", "0.578193", "0.57788545", "0.5764521", "0.57105434", "0.57089597", "0.56992435", "0.569821", "0.56754", "0.56714684", "0.5663193", "0.5657325", "0.5641558", "0.563157", "0.56109107", "0.56050235", "0.5592485", "0.55806404", "0.55801314", "0.5565461", "0.55385315", "0.55383915", "0.5535032", "0.55316466", "0.55219376", "0.5517301", "0.5513252", "0.5513217", "0.5498625", "0.5496943", "0.5494585", "0.5493406", "0.54925376", "0.54841876", "0.54753155", "0.5471256", "0.5463749", "0.5441245", "0.5411547", "0.5394467", "0.539187", "0.53724694", "0.5370739", "0.5370284", "0.53681344", "0.5361097", "0.536061", "0.53478134", "0.5346099", "0.5345713", "0.5345632", "0.5331844", "0.53122556", "0.52998745", "0.52930176", "0.52786005", "0.52579665", "0.52563536", "0.52555674", "0.5253628", "0.5251424", "0.52485305", "0.5238918", "0.52353406", "0.52333", "0.52332383", "0.52298015", "0.5223931", "0.52177644", "0.5217524", "0.521697", "0.52107304", "0.5204382", "0.51961434", "0.5193322", "0.51892316", "0.51886386", "0.5171463", "0.51696295", "0.5169516", "0.5169232", "0.51675236", "0.5165965", "0.51628906", "0.51612526", "0.5161104" ]
0.6960151
0
TODO: dont use hard coded value
public function getFeaturedRecipes(){ $this->db->query("SELECT * FROM recipes ORDER BY rid DESC LIMIT :num"); $this->db->bind(':num', 6); return $this->db->resultSet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function value()\n {\n }", "protected function populate_value()\n {\n }", "public function get_value()\n {\n }", "public function get_value()\n {\n }", "abstract protected function getValue();", "public function value(): string;", "function get_value() {return $this->get();}", "public function value() { }", "public function value() { }", "function getValue() {\n global ${$this->name}, ${$this->name.\"_name\"}, ${$this->name.\"_old\"}; // ${$this->name} = ${\"surname\"} = $surname\n $ext=substr(${$this->name.\"_name\"},-3);\n if ($ext==\"\") $ext=${$this->name.\"_old\"};\n if ($ext==\"\") $ext=$this->value;\n return $ext;\n }", "public function value();", "public function value();", "public function value();", "public function getCurrentVal() {}", "abstract public function getValue();", "abstract public function getValue();", "abstract public function getValue();", "public function getValue() {\n\n }", "abstract public function get() ;", "public function helper()\n\t{\n\t\n\t}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function custom()\n\t{\n\t}", "abstract public function getPasiekimai();", "protected function get_root_value()\n {\n }", "public function getAlternate() {}", "function showValue( $appctx )\n\t\t{\n\t\t}", "public function getValue(){ }", "abstract function get();", "public function value(): int;", "abstract public function get();", "abstract public function get();", "abstract public function get();", "abstract public function get();", "abstract public function get();", "abstract public function get();", "protected function func_default() {}", "public function getStandardValue()\n {\n }", "function __get($value) {\n return false;\n }", "public function getDefaultValue() {}", "public function getDefaultValue() {}", "public function __construct($value)\n {\n }", "public function __construct ($value) {}", "public function __construct ($value) {}", "public function __construct ($value) {}", "function __construct($value){\n $this->value = $value;\n //\n parent::__construct();\n }", "protected function getPropertyValue() {}", "function _set_null_default_value($value) {\n\t\tif ($value == '') {\n\t\t\treturn \"NULL\";\n\t\t} else {\n\t\t\treturn \"'\".$value.\"'\";\n\t\t}\n\t}", "function rest_stabilize_value($value)\n {\n }", "function getFieldLearnerUniqueIdentifier($value = null){\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_LUI');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_LUI');\n\t\t$tooltip = setToolTipNotification(\"LUI\");\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"<div id='lui_con' style='display:none;'></br><label>\".$dataTitle.$tooltip.\"</label><br><input type='text' id='LUI' name='LUI' value='\".$value.\"' class='' maxlength='10' minlength='10'></br><div id='LUI_err_con'></div></div>\";\n\t\t}\n\t\treturn $form_ret;\n\t}", "public function getValue()\n {\n return 1;\n }", "private function _i() {\n }", "public function value()\n {\n }", "public function value()\n {\n }", "public function value()\n {\n }", "public function value()\n {\n }", "protected function __init__() { }", "abstract protected function getSetting() ;", "public function getTesterParameter();", "function value( $value )\n\t{\n\t\t$this->value = $value;\n\t}", "public function __construct($value) {\n $this->value= $value;\n }", "public function __construct($value) {\n $this->value= $value;\n }", "function pre_load_value($value, $post_id, $field)\n {\n }", "protected function test9() {\n\n }", "protected function value_char()\n {\n }", "private function feedOverrideSaverWe($value)\n {\n }", "abstract protected function getMinParameter(): int;", "protected function getValueAttribute() {}", "public function __get($value);", "public function getDefaultValue()\n {\n\treturn $this->default;\n }", "public function value(): string\n {\n return uniqid(prefix: 'dsafsdaf-');\n }", "function load_value( $value, $post_id, $field )\n\t{\n\t\t// Note: This function can be removed if not used\n\t\treturn $value;\n\t}", "public function testRegistrationValuesTooShort(): void { }", "protected function get_default() {\n\t\treturn false;\n\t}", "public static function getParam() {\n\n\t}", "protected function expectedValue(): string\n {\n return 'foo';\n }", "public function getCustom();", "public function getCustom();", "public function getCustom();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();" ]
[ "0.5884279", "0.58762115", "0.57337385", "0.57337385", "0.570794", "0.55773467", "0.5564824", "0.5542075", "0.5542075", "0.5537906", "0.54958075", "0.54958075", "0.54958075", "0.54745114", "0.54103136", "0.54103136", "0.5406263", "0.53803045", "0.53639454", "0.53389066", "0.5336413", "0.5336413", "0.5336413", "0.5336413", "0.5336413", "0.5335543", "0.5335543", "0.5335543", "0.5335543", "0.5335543", "0.5335543", "0.5335543", "0.5335543", "0.5335543", "0.5335543", "0.5335543", "0.5335543", "0.5335543", "0.5335543", "0.53270245", "0.53140277", "0.5305346", "0.5300266", "0.52739835", "0.5267543", "0.52374655", "0.52267396", "0.5215501", "0.5215501", "0.5215501", "0.5215501", "0.5215501", "0.5215501", "0.5215335", "0.5205581", "0.5192994", "0.51907545", "0.51904744", "0.5176872", "0.5162531", "0.5162531", "0.5162531", "0.5144681", "0.51338667", "0.51194966", "0.5119417", "0.51085925", "0.5106953", "0.50998974", "0.50942326", "0.5093388", "0.5093388", "0.5093388", "0.5090338", "0.50834006", "0.50690395", "0.5060578", "0.5047585", "0.5047585", "0.50420535", "0.5041428", "0.50369656", "0.5032971", "0.5026779", "0.5025529", "0.50235516", "0.50166523", "0.5012886", "0.50088274", "0.50002795", "0.49996275", "0.49893937", "0.49846107", "0.49804854", "0.49804854", "0.49804854", "0.49761418", "0.49761418", "0.49761418", "0.49761418", "0.49761418" ]
0.0
-1
Gets the form cells.
public function getCells() { return $this->cells ?: $this->cells = new \Doctrine\Common\Collections\ArrayCollection(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCells()\n {\n return $this->cells;\n }", "public function getCells();", "public function getCellValues()\n {\n return $this->get('CellValues');\n }", "public function getCell()\n {\n return $this->cell;\n }", "private function getFormTableContent(){\n\t\t$s_style = 'font-size:'.$this->_emailFontSize.'; font-family:'.$this->_emailFontFamily.';';\n\t\t$bgCol1='#FFFFFF';\n\t\t$bgCol2='#e4edf9';\n\t\t$bgColDarkerBG='#cddaeb';\n\t\t$colOutline='#8a99ae';\n\t\t$rowCount=0;\n\t\t$NL=\"\\r\\n\";\n\t\t$s_ret='<table cellpadding=\"5\" cellspacing=\"0\" style=\"'.$s_style.'\">'.$NL;\n\t\tforeach($this->_formElements as $o_el){\n\t\t\tif(get_class($o_el)=='FormItBuilder_htmlBlock'){\n\t\t\t\t//do nothing\n\t\t\t}else{\n\t\t\t\tif($o_el->showInEmail()===true){\n\t\t\t\t\t\n\t\t\t\t\t$bgCol=$bgCol1;\n\t\t\t\t\tif($rowCount%2==0){\n\t\t\t\t\t\t$bgCol=$bgCol2;\n\t\t\t\t\t}\n\n\t\t\t\t\t$elType=get_class($o_el);\n\t\t\t\t\t$elId = $o_el->getId();\n\t\t\t\t\t\n\t\t\t\t\tswitch($elType){\n\t\t\t\t\t\tcase 'FormItBuilder_elementMatrix':\n\t\t\t\t\t\t\t$type = $o_el->getType();\n\t\t\t\t\t\t\t$cols = $o_el->getColumns();\n\t\t\t\t\t\t\t$rows = $o_el->getRows();\n\t\t\t\t\t\t\t$r_cnt=0;\n\t\t\t\t\t\t\t$s_val='<table cellpadding=\"5\" cellspacing=\"0\" style=\"'.$s_style.' font-size:10px;\"><tr><td>&nbsp;</td>';\n\t\t\t\t\t\t\t$c_cnt=0;\n\t\t\t\t\t\t\tforeach($cols as $column){\n\t\t\t\t\t\t\t\t$s_val.='<td style=\"'.($c_cnt==0?'border-left:1px solid '.$colOutline.'; ':'').'background-color:'.$bgColDarkerBG.'; border-right:1px solid '.$colOutline.'; border-bottom:1px solid '.$colOutline.'; border-top:1px solid '.$colOutline.';\"><em>'.htmlspecialchars($column).'</em></td>';\n\t\t\t\t\t\t\t\t$c_cnt++;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$s_val.='</tr>';\n\t\t\t\t\t\t\tforeach($rows as $row){\n\t\t\t\t\t\t\t\t$c_cnt=0;\n\t\t\t\t\t\t\t\t$s_val.='<tr><td style=\"'.($r_cnt==0?'border-top:1px solid '.$colOutline.'; ':'').'background-color:'.$bgColDarkerBG.'; border-right:1px solid '.$colOutline.'; border-left:1px solid '.$colOutline.'; border-bottom:1px solid '.$colOutline.';\"><em>'.htmlspecialchars($row).'</em></td>';\n\t\t\t\t\t\t\t\tforeach($cols as $column){\n\t\t\t\t\t\t\t\t\t$s_val.='<td style=\"text-align:center; border-right:1px solid '.$colOutline.'; border-bottom:1px solid '.$colOutline.';\">';\n\t\t\t\t\t\t\t\t\tswitch($type){\n\t\t\t\t\t\t\t\t\t\tcase 'text':\n\t\t\t\t\t\t\t\t\t\t\t$s_val.=htmlspecialchars($_REQUEST[$elId.'_'.$r_cnt.'_'.$c_cnt]);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 'radio':\n\t\t\t\t\t\t\t\t\t\t\t$s_val.=($c_cnt==$_REQUEST[$elId.'_'.$r_cnt]?'&#10004;':'-');\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 'check':\n\t\t\t\t\t\t\t\t\t\t\tif(isset($_REQUEST[$elId.'_'.$r_cnt]) && in_array($c_cnt,$_REQUEST[$elId.'_'.$r_cnt])===true){\n\t\t\t\t\t\t\t\t\t\t\t\t$s_val.='&#10004;';\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t$s_val.='-';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$s_val.='</td>';\n\t\t\t\t\t\t\t\t\t$c_cnt++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$r_cnt++;\n\t\t\t\t\t\t\t\t$s_val.='</tr>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$s_val.='</table>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'FormItBuilder_elementFile':\n\t\t\t\t\t\t\tif(isset($_FILES[$elId])){\n\t\t\t\t\t\t\t\tif($_FILES[$elId]['size']==0){\n\t\t\t\t\t\t\t\t\t$s_val='None';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'FormItBuilder_elementDate':\n\t\t\t\t\t\t\t$s_val='[[+'.htmlspecialchars($o_el->getId()).'_0]] [[+'.htmlspecialchars($o_el->getId()).'_1]] [[+'.htmlspecialchars($o_el->getId()).'_2]]';\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$s_val='[[+'.htmlspecialchars($o_el->getId()).':nl2br]]';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$s_ret.='<tr valign=\"top\" bgcolor=\"'.$bgCol.'\"><td><b>'.htmlspecialchars($o_el->getLabel()).':</b></td><td>'.$s_val.'</td></tr>'.$NL;\n\t\t\t\t\t$rowCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$s_ret.='</table>'.$NL;\n\t\treturn $s_ret;\n\t}", "public function cells();", "public static function formrow(){\n\n\n $forms = \"<tr class='row100 body'>\\n\";\n $forms .= \"<td class='cell100 column1'>\";\n return $forms;\n }", "public function getCellsRead() : array\n {\n\n return $this->cellsRead;\n }", "public function getCellXfCollection() {\n\t\treturn $this->cellXfCollection;\n\t}", "function getElements() {\n return $this->rows_object;\n }", "public function getGrid()\n {\n return $this->all();\n }", "public function getGrid()\n {\n return $this->all();\n }", "public function getSelectedCells() {\n\t\treturn $this->getActiveSheet()->getSelectedCells();\n\t}", "public function getFreeCell()\n {\n $free = array();\n foreach ($this->kitCells as $pos => $value) {\n if ($value === null) {\n $free[] = $pos;\n }\n }\n\n return $free;\n }", "public function cell() {\r\n\t\t$argKeys = ['cell', 'header', 'headerSort', 'skipId', 'cellOptions'];\r\n\t\t$totalArgs = count($argKeys);\r\n\t\t$totalArgKey = $lastArgKey = $totalArgs - 1;\r\n\t\t$args = func_get_args();\r\n\t\t$numArgs = count($args);\r\n\t\tfor ($i = $totalArgKey; $i > 0; $i--) {\r\n\t\t\tif (!empty($args[$i])) {\r\n\t\t\t\t$lastArgKey = $i;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($lastArgKey < $totalArgKey) {\r\n\t\t\t// The last passed argument can always be cell options\r\n\t\t\tif (is_array($args[$lastArgKey])) {\r\n\t\t\t\t$args[$totalArgKey] = $args[$lastArgKey];\r\n\t\t\t\tfor ($i = $lastArgKey; $i < $totalArgKey; $i++) {\r\n\t\t\t\t\t$args[$i] = null;\r\n\t\t\t\t}\r\n\t\t\t\tksort($args);\r\n\t\t\t}\r\n\t\t}\r\n\t\textract(array_combine($argKeys, $args + array_fill(0, $totalArgs, null)));\r\n\t\t\r\n\t\t// Checks if the skipId is in the skip array\r\n\t\tif (!empty($skipId) && $this->_checkSkip($skipId)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t$formAddCell = '&nbsp;';\r\n\t\tif ($this->getHeader) {\r\n\t\t\t$this->columnCount++;\r\n\t\t\t//Stores first instance of non-blank header\r\n\t\t\tif (!empty($header) && !$this->hasHeader) {\r\n\t\t\t\t$this->hasHeader = true;\r\n\t\t\t}\r\n\t\t\tif ($headerSort) {\r\n\t\t\t\tif ($headerSort === true) {\r\n\t\t\t\t\t$headerSort = null;\r\n\t\t\t\t}\r\n\t\t\t\t$header = $this->thSort($header, $headerSort);\r\n\t\t\t}\r\n\t\t\t$thOptions = isset($cellOptions['th']) ? $cellOptions['th'] : $cellOptions;\r\n\t\t\t$this->headers[] = [$header => $thOptions];\r\n\t\t\t\r\n\t\t}\r\n\t\t/*\r\n\t\tif ($editCell = Param::keyCheck($cellOptions, 'edit', true)) {\r\n\t\t\t$formAddCell = $editCell;\r\n\t\t\t$cell = $this->_editCell($cell, $editCell);\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t\tif (is_array($cellOptions)) {\r\n\t\t\t$cell = [$cell, $cellOptions];\r\n\t\t}\r\n\t\t$this->row[] = $cell;\r\n\t\tif ($this->trCount == 0) {\r\n\t\t\t$this->formAddRow[] = $formAddCell;\r\n\t\t}\r\n\t}", "public function getElements() : array\n {\n return $this->formElements;\n }", "public function getFormValues()\n {\n return $this->form->getValues();\n }", "function formProperties() {\n\t\tglobal $l_we_class;\n\n\t\t// Create table\n\t\t$_content = new we_htmlTable(array(\"border\" => 0, \"cellpadding\" => 0, \"cellspacing\" => 0), 12, 5);\n\n\t\t// Row 1\n\t\t$_content->setCol(0, 0, null, $this->formInput2(155, \"width\", 10, \"attrib\", 'onChange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\t\t$_content->setCol(0, 2, null, $this->formInput2(155, \"height\", 10, \"attrib\", 'onChange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\t\t$_content->setCol(0, 4, null, $this->formInput2(155, \"border\", 10, \"attrib\", 'onChange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\n\t\t$_content->setCol(0, 1, null, getPixel(18, 1));\n\t\t$_content->setCol(0, 3, null, getPixel(18, 1));\n\n\t\t// Row 2\n\t\t$_content->setCol(1, 0, array(\"colspan\" => 5), getPixel(1, 5));\n\n\t\t// Row 3\n\t\t$_content->setCol(2, 0, null, $this->formInput2(155, \"align\", 10, \"attrib\", 'onChange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\t\t$_content->setCol(2, 2, null, $this->formInput2(155, \"hspace\", 10, \"attrib\", 'onChange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\t\t$_content->setCol(2, 4, null, $this->formInput2(155, \"vspace\", 10, \"attrib\", 'onChange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\n\t\t$_content->setCol(2, 1, null, getPixel(18, 1));\n\t\t$_content->setCol(2, 3, null, getPixel(18, 1));\n\n\t\t// Row 4\n\t\t$_content->setCol(3, 0, array(\"colspan\" => 5), getPixel(1, 5));\n\n\t\t// Row 5\n\t\t$_content->setCol(4, 0, array(\"colspan\" => 3), $this->formInput2(328, \"alt\", 23, \"attrib\", 'onChange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\t\t$_content->setCol(4, 3, null, getPixel(18, 1));\n\t\t$_content->setCol(4, 4, null, $this->formInput2(155, \"name\", 10, \"attrib\", 'onChange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\n\t\t// Row 6\n\t\t$_content->setCol(5, 0, array(\"colspan\" => 5), getPixel(1, 5));\n\n\t\t//\tRow 7\n\t\t$_content->setCol(6, 0, array(\"colspan\" => 3), $this->formInput2(328, \"title\", 23, \"attrib\", ($this->getElement(\"useMetaTitle\") == 1 ? \"readonly='readonly'\" : \"\") . '\" onChange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\n\t\t$_content->setCol(6, 3, null, getPixel(18, 1));\n\t\t\t$_titleField = \"we_\".$this->Name.\"_attrib[title]\";\n\t\t\t$_metaTitleField = \"we_\".$this->Name.\"_txt[Title]\";\n\t\t\t$useMetaTitle = \"we_\".$this->Name.\"_txt[useMetaTitle]\";\n\t\t//\tdisable field 'title' when checked or not.\n\t\t$_content->setCol(6, 4, array(\"valign\" => \"bottom\"), we_forms::checkboxWithHidden($this->getElement(\"useMetaTitle\"), $useMetaTitle, $l_we_class[\"use_meta_title\"], false, \"defaultfont\", \"if(this.checked){ document.forms[0]['$_titleField'].setAttribute('readonly', 'readonly', 'false'); document.forms[0]['$_titleField'].value = ''; }else{ document.forms[0]['$_titleField'].removeAttribute('readonly', 'false');}_EditorFrame.setEditorIsHot(true);\"));\n\n\t\t// longdesc should be available in images.\n\t\t// check if longdesc is set and get path\n\t\t$longdesc_id_name = \"we_\".$this->Name.\"_attrib[longdescid]\";\n\t\t$longdesc_text_name = 'tmp_longdesc';\n\t\t$longdesc_id = $this->getElement('longdescid');\n\t\tif($longdesc_id){\n $longdescPath = id_to_path($longdesc_id);\n\t\t} else {\n $longdescPath = '';\n\t\t}\n\n\t\t$we_button = new we_button();\n\n\t\t$yuiSuggest =& weSuggest::getInstance();\n\t\t$yuiSuggest->setAcId(\"LonDesc\");\n\t\t$yuiSuggest->setContentType(\"folder,text/webEdition,text/html\");\n\t\t$yuiSuggest->setInput($longdesc_text_name,$longdescPath);\n\t\t$yuiSuggest->setLabel($l_we_class[\"longdesc_text\"]);\n\t\t$yuiSuggest->setMaxResults(20);\n\t\t$yuiSuggest->setMayBeEmpty(1);\n\t\t$yuiSuggest->setResult($longdesc_id_name, $longdesc_id);\n\t\t$yuiSuggest->setSelector(\"Docselector\");\n\t\t$yuiSuggest->setWidth(328);\n\t\t$yuiSuggest->setSelectButton($we_button->create_button(\"select\", \"javascript:we_cmd('openDocselector',document.we_form.elements['$longdesc_id_name'].value,'\" . FILE_TABLE . \"','document.we_form.elements[\\\\'$longdesc_id_name\\\\'].value','document.we_form.elements[\\\\'$longdesc_text_name\\\\'].value','opener._EditorFrame.setEditorIsHot(true);opener.top.we_cmd(\\'reload_editpage\\');','\".session_id().\"','','text/webedition,text/plain,text/html',1)\"));\n\t\t$yuiSuggest->setTrashButton($we_button->create_button('image:btn_function_trash',\"javascript:document.we_form.elements['$longdesc_id_name'].value='-1';document.we_form.elements['$longdesc_text_name'].value='';_EditorFrame.setEditorIsHot(true); YAHOO.autocoml.setValidById('\".$yuiSuggest->getInputId().\"')\"));\n\t\t$_content->setCol(7, 0, array(\"colspan\" => 5), getPixel(1, 5));\n\t\t$_content->setCol(8, 0, array(\"valign\" => \"bottom\", 'colspan' => 5), $yuiSuggest->getYuiFiles() . $yuiSuggest->getHTML() . $yuiSuggest->getYuiCode());\n\n\t\t// Return HTML\n\t\treturn $_content->getHtmlCode();\n \t}", "public function getFormInputIndexes()\n {\n $indexes = $this->getIndexes();\n ob_start();\n foreach ($indexes as $index) {\n list($tableName, $columnName) = explode(\".\", $index);\n $column = $this->Model->columns[$columnName];\n echo Form::hidden($columnName, null, $column['attributes']);\n }\n $output = ob_get_contents();\n ob_end_clean();\n return $output;\n }", "function getCellAttributes()\n\t{\n\t\treturn $this->attrs;\n\t}", "function getCellAttributes()\n\t{\n\t\treturn $this->attrs;\n\t}", "public function getIterateOnlyExistingCells()\n {\n return $this->_onlyExistingCells;\n }", "public function get_cell_info() {\n $types = array();\n $cells = array();\n foreach ($this->get_unique_section('GridMap/Palette')->sections as $cell) {\n if (is_array($cell)) {\n $cell = end($cell);\n }\n /** @var \\Totengeist\\IVParser\\Section $cell */\n $path = explode('/', $cell->path);\n $name = $path[count($path)-1];\n // If the name is empty, the character is '/' and was exploded.\n if ($name == '') {\n $name = '/';\n }\n // If the cell is empty space, it contains no content.\n if (count($cell->content) == 0) {\n $types[$name] = array();\n } else {\n foreach ($cell->content as $key => $type) {\n if (in_array($key, static::$CELLS)) {\n $types[$name][] = $key;\n } elseif (in_array($key, static::$CELL_TYPES)) {\n $key = 'Storage ' . $type;\n $types[$name][] = $key;\n } else {\n $types[$name] = array();\n }\n }\n }\n }\n $typekeys = array_keys($types);\n $cell_width = strlen($typekeys[count($typekeys)-1])+1;\n\n foreach ($this->get_unique_section('GridMap/Cells')->content as $cellk => $cell) {\n for ($i = 0; $i < strlen($cell); $i += $cell_width) {\n $char = trim(substr($cell, $i, $cell_width));\n if (in_array($char, array_keys($types))) {\n foreach ($types[$char] as $type) {\n if (!isset($cells[$type])) {\n $cells[$type] = 1;\n } else {\n $cells[$type]++;\n }\n }\n }\n }\n }\n if (isset($cells['Habitation'])) {\n $cells['HabitationCapacity'] = (int) floor($cells['Habitation']/9);\n }\n\n return $cells;\n }", "public function getForm(): array\n {\n return $this->form;\n }", "public function getForms()\n {\n return $this->form;\n }", "function make_form_row(){\n\t\t$index = $this->col_index;\n\t\t# remove the * at the start of the first line\n\t\t$this->col_data = preg_replace(\"/^\\*/\",\"\",$this->col_data);\n\t\t# split the lines and remove the * from each. The value in each line goes into the array $values\n\t\t$values = preg_split(\"/\\n\\*?/\", $this->col_data);\n\t\t# pad the values array to make sure there are 3 entries\n\t\t$values = array_pad($values, 3, \"\");\n\t\t\n\t\t/*\n\t\tmake three input boxes. TableEdit takes row input from an input array named field a \n\t\tvalue for a particular field[$index] can be an array\n\t\t\tfield[$index][] is the field name\n\t\t\t40 is the length of the box\n\t\t\t$value is the value for the ith line\n\t\t \n\t\t */\n\t\t $form = ''; #initialize\n\t\t foreach($values as $i => $value){\n\t\t\t$form .= \"$i:\".XML::input(\"field[$index][]\",40,$value, array('maxlength'=>255)).\"<br>\\n\";\n\t\t}\n\t\treturn $form;\n\t\n\t}", "function buildForm()\r\n {\r\n $this->buildTabs();\r\n // tab caption\r\n $this->addElement('header', null,\r\n 'Progress2 Generator - Control Panel: cell properties');\r\n\r\n $this->addElement('text', 'cellid', 'Id mask:', array('size' => 32));\r\n $this->addElement('text', 'cellclass', 'CSS class:', array('size' => 32));\r\n\r\n $cellvalue['min'] =& $this->createElement('text',\r\n 'min', 'minimum',\r\n array('size' => 4));\r\n $cellvalue['max'] =& $this->createElement('text',\r\n 'max', 'maximum',\r\n array('size' => 4));\r\n $cellvalue['inc'] =& $this->createElement('text',\r\n 'inc', 'increment',\r\n array('size' => 4));\r\n $this->addGroup($cellvalue, 'cellvalue', 'Value:', ' ');\r\n\r\n $cellsize['width'] =& $this->createElement('text',\r\n 'width', 'width',\r\n array('size' => 4));\r\n $cellsize['height'] =& $this->createElement('text',\r\n 'height', 'height',\r\n array('size' => 4));\r\n $cellsize['spacing'] =& $this->createElement('text',\r\n 'spacing', 'spacing',\r\n array('size' => 2));\r\n $cellsize['count'] =& $this->createElement('text',\r\n 'count', 'count',\r\n array('size' => 2));\r\n $this->addGroup($cellsize, 'cellsize', 'Size:', ' ');\r\n\r\n $cellcolor['active'] =& $this->createElement('text',\r\n 'active', 'active',\r\n array('size' => 7));\r\n $cellcolor['inactive'] =& $this->createElement('text',\r\n 'inactive', 'inactive',\r\n array('size' => 7));\r\n $cellcolor['bgcolor'] =& $this->createElement('text',\r\n 'bgcolor', 'background',\r\n array('size' => 7));\r\n $this->addGroup($cellcolor, 'cellcolor', 'Color:', ' ');\r\n\r\n $cellfont['family'] =& $this->createElement('text',\r\n 'family', 'family',\r\n array('size' => 32));\r\n $cellfont['size'] =& $this->createElement('text',\r\n 'size', 'size',\r\n array('size' => 2));\r\n $cellfont['color'] =& $this->createElement('text',\r\n 'color', 'color',\r\n array('size' => 7));\r\n $this->addGroup($cellfont, 'cellfont', 'Font:', ' ');\r\n\r\n // Buttons of the wizard to do the job\r\n $this->buildButtons(array('apply','process'));\r\n }", "public function rows() {\n\t\treturn $this->row();\n\t}", "public function getCells(): array\n {\n $matrix = [];\n\n foreach ($this->cells as $x => $cellY)\n {\n foreach ($cellY as $y => $cellX)\n {\n $matrix[$x][$y] = $this->cells[$x][$y]->imAlive();\n }\n }\n\n return $matrix;\n }", "function form_content()\r\n {\r\n $table = html_table($this->_width,0,4) ;\r\n $table->set_style(\"border: 1px solid\") ;\r\n\r\n $table->add_row($this->element_label(\"Organization\"),\r\n $this->element_form(\"Organization\")) ;\r\n\r\n $table->add_row($this->element_label(\"Meet Name\"),\r\n $this->element_form(\"Meet Name\")) ;\r\n\r\n $table->add_row($this->element_label(\"Meet Address 1\"),\r\n $this->element_form(\"Meet Address 1\")) ;\r\n\r\n $table->add_row($this->element_label(\"Meet Address 2\"),\r\n $this->element_form(\"Meet Address 2\")) ;\r\n\r\n $table->add_row($this->element_label(\"Meet State\"),\r\n $this->element_form(\"Meet State\")) ;\r\n\r\n $table->add_row($this->element_label(\"Meet Postal Code\"),\r\n $this->element_form(\"Meet Postal Code\")) ;\r\n\r\n $table->add_row($this->element_label(\"Meet Country\"),\r\n $this->element_form(\"Meet Country\")) ;\r\n\r\n $table->add_row($this->element_label(\"Meet Code\"),\r\n $this->element_form(\"Meet Code\")) ;\r\n\r\n $table->add_row($this->element_label(\"Meet Start\"),\r\n $this->element_form(\"Meet Start\")) ;\r\n\r\n $table->add_row($this->element_label(\"Meet End\"),\r\n $this->element_form(\"Meet End\")) ;\r\n\r\n $table->add_row($this->element_label(\"Pool Altitude\"),\r\n $this->element_form(\"Pool Altitude\")) ;\r\n\r\n $table->add_row($this->element_label(\"Course Code\"),\r\n $this->element_form(\"Course Code\")) ;\r\n\r\n $this->add_form_block(null, $table) ;\r\n }", "public function getFormContent()\n {\n return $this->form->getContent();\n }", "public function getFormInputs($table = null)\n {\n return (null == $table)? $this->forminputs : $this->forminputs[$table];\n }", "public function get_rows()\n {\n $lock = !empty($this->configs['rows_edit']) && $this->configs['rows_edit'] == 1 ? true : false;\n\n $tables = $this->file->sheets->first()->tables;\n\n list($query, $power) = $this->get_rows_query($tables);\n\n $head = $tables[0]->columns->map(function($column) { return 'C' . $column->id; })->toArray();\n\n if (Input::has('search.text') && Input::has('search.column_id')) {\n $query->where('C' . Input::get('search.column_id'), Input::get('search.text'));\n }\n\n $query->whereNull('deleted_at')->select($head)->addSelect('id');\n\n $paginate = $this->isCreater()\n ? $query->addSelect('created_by')->paginate(15)\n : $query->where('created_by', $this->user->id)->paginate(15);\n\n $encrypts = $tables[0]->columns->filter(function($column) { return $column->encrypt; });\n\n if (!$encrypts->isEmpty()) {\n $paginate->getCollection()->each(function($row) use($encrypts) {\n $this->setEncrypts($row, $encrypts);\n });\n }\n return ['paginate' => $paginate->toArray(),'lock' => $lock];\n }", "public function getCellPrototype()\n\t{\n\t\treturn $this->cell;\n\t}", "public function getFormInput()\n {\n $values = $this->getFormValues();\n\n return $values->all();\n }", "public function getForm();", "public function getColumns(){\n $rows = array();\n return $rows; \n }", "public function getRows()\n\t{\n\t\t$ret = null;\n\t\tif ($this->_tbody instanceof HtmlElement) {\n\t\t\t$ret = $this->_tbody->getElements();\n\t\t}\n\t\treturn $ret;\n\t}", "protected function form()\n {\n return [];\n }", "protected function form()\n {\n return [];\n }", "public function getFormValues() {\n return $this->values[HVAL_FORMPARAM];\n }", "function getFormHTML()\n\t{\n\t\tstatic $id_num = 1000;\n\n\t\t$type = $this->type;\n\t\t$name = $this->name;\n\t\t$value = $this->_getTypeValue($this->type, $this->value);\n\t\t$default = $this->_getTypeValue($this->type, $this->default);\n\t\t$column_name = 'extra_vars' . $this->idx;\n\t\t$tmp_id = $column_name . '-' . $id_num++;\n\n\t\t$buff = array();\n\t\tswitch($type)\n\t\t{\n\t\t\t// Homepage\n\t\t\tcase 'homepage' :\n\t\t\t\t$buff[] = '<input type=\"text\" name=\"' . $column_name . '\" value=\"' . $value . '\" class=\"homepage\" />';\n\t\t\t\tbreak;\n\t\t\t// Email Address\n\t\t\tcase 'email_address' :\n\t\t\t\t$buff[] = '<input type=\"text\" name=\"' . $column_name . '\" value=\"' . $value . '\" class=\"email_address\" />';\n\t\t\t\tbreak;\n\t\t\t// Phone Number\n\t\t\tcase 'tel' :\n\t\t\t\t$buff[] = '<input type=\"text\" name=\"' . $column_name . '[]\" value=\"' . $value[0] . '\" size=\"4\" maxlength=\"4\" class=\"tel\" />';\n\t\t\t\t$buff[] = '<input type=\"text\" name=\"' . $column_name . '[]\" value=\"' . $value[1] . '\" size=\"4\" maxlength=\"4\" class=\"tel\" />';\n\t\t\t\t$buff[] = '<input type=\"text\" name=\"' . $column_name . '[]\" value=\"' . $value[2] . '\" size=\"4\" maxlength=\"4\" class=\"tel\" />';\n\t\t\t\tbreak;\n\t\t\t// textarea\n\t\t\tcase 'textarea' :\n\t\t\t\t$buff[] = '<textarea name=\"' . $column_name . '\" rows=\"8\" cols=\"42\">' . $value . '</textarea>';\n\t\t\t\tbreak;\n\t\t\t// multiple choice\n\t\t\tcase 'checkbox' :\n\t\t\t\t$buff[] = '<ul>';\n\t\t\t\tforeach($default as $v)\n\t\t\t\t{\n\t\t\t\t\t$checked = '';\n\t\t\t\t\tif($value && in_array(trim($v), $value))\n\t\t\t\t\t{\n\t\t\t\t\t\t$checked = ' checked=\"checked\"';\n\t\t\t\t\t}\n\n\t\t\t\t\t// Temporary ID for labeling\n\t\t\t\t\t$tmp_id = $column_name . '-' . $id_num++;\n\n\t\t\t\t\t$buff[] =' <li><input type=\"checkbox\" name=\"' . $column_name . '[]\" id=\"' . $tmp_id . '\" value=\"' . htmlspecialchars($v, ENT_COMPAT | ENT_HTML401, 'UTF-8', false) . '\" ' . $checked . ' /><label for=\"' . $tmp_id . '\">' . $v . '</label></li>';\n\t\t\t\t}\n\t\t\t\t$buff[] = '</ul>';\n\t\t\t\tbreak;\n\t\t\t// single choice\n\t\t\tcase 'select' :\n\t\t\t\t$buff[] = '<select name=\"' . $column_name . '\" class=\"select\">';\n\t\t\t\tforeach($default as $v)\n\t\t\t\t{\n\t\t\t\t\t$selected = '';\n\t\t\t\t\tif($value && in_array(trim($v), $value))\n\t\t\t\t\t{\n\t\t\t\t\t\t$selected = ' selected=\"selected\"';\n\t\t\t\t\t}\n\t\t\t\t\t$buff[] = ' <option value=\"' . $v . '\" ' . $selected . '>' . $v . '</option>';\n\t\t\t\t}\n\t\t\t\t$buff[] = '</select>';\n\t\t\t\tbreak;\n\t\t\t// radio\n\t\t\tcase 'radio' :\n\t\t\t\t$buff[] = '<ul>';\n\t\t\t\tforeach($default as $v)\n\t\t\t\t{\n\t\t\t\t\t$checked = '';\n\t\t\t\t\tif($value && in_array(trim($v), $value))\n\t\t\t\t\t{\n\t\t\t\t\t\t$checked = ' checked=\"checked\"';\n\t\t\t\t\t}\n\n\t\t\t\t\t// Temporary ID for labeling\n\t\t\t\t\t$tmp_id = $column_name . '-' . $id_num++;\n\n\t\t\t\t\t$buff[] = '<li><input type=\"radio\" name=\"' . $column_name . '\" id=\"' . $tmp_id . '\" ' . $checked . ' value=\"' . $v . '\" class=\"radio\" /><label for=\"' . $tmp_id . '\">' . $v . '</label></li>';\n\t\t\t\t}\n\t\t\t\t$buff[] = '</ul>';\n\t\t\t\tbreak;\n\t\t\t// date\n\t\t\tcase 'date' :\n\t\t\t\t// datepicker javascript plugin load\n\t\t\t\tContext::loadJavascriptPlugin('ui.datepicker');\n\n\t\t\t\t$buff[] = '<input type=\"hidden\" name=\"' . $column_name . '\" value=\"' . $value . '\" />'; \n\t\t\t\t$buff[] =\t'<input type=\"text\" id=\"date_' . $column_name . '\" value=\"' . zdate($value, 'Y-m-d') . '\" class=\"date\" />';\n\t\t\t\t$buff[] =\t'<input type=\"button\" value=\"' . Context::getLang('cmd_delete') . '\" class=\"btn\" id=\"dateRemover_' . $column_name . '\" />';\n\t\t\t\t$buff[] =\t'<script type=\"text/javascript\">';\n\t\t\t\t$buff[] = '//<![CDATA[';\n\t\t\t\t$buff[] =\t'(function($){';\n\t\t\t\t$buff[] =\t'$(function(){';\n\t\t\t\t$buff[] =\t' var option = { dateFormat: \"yy-mm-dd\", changeMonth:true, changeYear:true, gotoCurrent:false, yearRange:\\'-100:+10\\', onSelect:function(){';\n\t\t\t\t$buff[] =\t' $(this).prev(\\'input[type=\"hidden\"]\\').val(this.value.replace(/-/g,\"\"))}';\n\t\t\t\t$buff[] =\t' };';\n\t\t\t\t$buff[] =\t' $.extend(option,$.datepicker.regional[\\'' . Context::getLangType() . '\\']);';\n\t\t\t\t$buff[] =\t' $(\"#date_' . $column_name . '\").datepicker(option);';\n\t\t\t\t$buff[] =\t' $(\"#dateRemover_' . $column_name . '\").click(function(){';\n\t\t\t\t$buff[] =\t' $(this).siblings(\"input\").val(\"\");';\n\t\t\t\t$buff[] =\t' return false;';\n\t\t\t\t$buff[] =\t' })';\n\t\t\t\t$buff[] =\t'});';\n\t\t\t\t$buff[] =\t'})(jQuery);';\n\t\t\t\t$buff[] = '//]]>';\n\t\t\t\t$buff[] = '</script>';\n\t\t\t\tbreak;\n\t\t\t// address\n\t\t\tcase \"kr_zip\" :\n\t\t\t\tif(($oKrzipModel = getModel('krzip')) && method_exists($oKrzipModel , 'getKrzipCodeSearchHtml' ))\n\t\t\t\t{\n\t\t\t\t\t$buff[] = $oKrzipModel->getKrzipCodeSearchHtml($column_name, $value);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t// General text\n\t\t\tdefault :\n\t\t\t\t$buff[] =' <input type=\"text\" name=\"' . $column_name . '\" value=\"' . ($value ? $value : $default) . '\" class=\"text\" />';\n\t\t}\n\t\tif($this->desc)\n\t\t{\n\t\t\t$oModuleController = getController('module');\n\t\t\t$oModuleController->replaceDefinedLangCode($this->desc);\n\t\t\t$buff[] = '<p>' . htmlspecialchars($this->desc, ENT_COMPAT | ENT_HTML401, 'UTF-8', false) . '</p>';\n\t\t}\n\t\t\n\t\treturn join(PHP_EOL, $buff);\n\t}", "public function form_columns($form_id){\n $columns = 0;\n \treturn $columns;\n\n }", "public function form() {\n\t\treturn array();\n\t}", "public function getFormEntry()\n {\n return $this->form->getEntry();\n }", "public function get_cell_info($template) {\n $template['icon-css'] = 'icon-views ont-color-orange ont-icon-22';\n\t\t$template['preview-image-url'] = WPDDL_RES_RELPATH . '/images/post-content.png';\n\t\t$template['name'] = __('Content Template (custom fields, taxonomy and content)', 'ddl-layouts');\n\t\t$template['description'] = __('Display different fields of any page, post or custom type. This cell supports HTML for styling and shortcodes for the different fields.', 'ddl-layouts');\n\t\t$template['button-text'] = __('Assign Content Template Box', 'ddl-layouts');\n\t\t$template['dialog-title-create'] = __('Create a new Content Template Cell', 'ddl-layouts');\n\t\t$template['dialog-title-edit'] = __('Edit Content Template Cell', 'ddl-layouts');\n\t\t$template['dialog-template'] = $this->_dialog_template();\n\t\t$template['category'] = __('Post display', 'ddl-layouts');\n\t\treturn $template;\n\t}", "public function getDddCell()\n {\n return $this->dddCell;\n }", "public function getCells($gameid) {\n\n $sql =<<<SQL\nSELECT * \nFROM $this->tableName \nWHERE gameid=?\nSQL;\n\n $pdo = $this->pdo();\n $statement = $pdo->prepare($sql);\n $statement->execute([$gameid]);\n\n $cells = [];\n\n foreach($statement as $row) {\n $cells[] = new Cell($row);\n }\n\n return $cells;\n\n }", "private function get_forms()\n {\n $forms_array = array();\n\n $forms_array[0] = lang('fs_select_form');\n\n ee()->db->select('form_title, form_id');\n ee()->db->where('site_id', ee()->config->item('site_id'));\n $query = ee()->db->get('forms');\n\n foreach ($query->result() as $row)\n {\n $forms_array[ $row->form_id ] = ee('Security/XSS')->clean($row->form_title);\n }\n\n return $forms_array;\n }", "public function get() {\n\t\treturn $this->rows[$this->rowIndex];\n\t}", "public function getFormFields() {\n $fields = array(\n 'shapes[]' => array(\n 'type' => 'select',\n 'multiplicate' => '5',\n 'values' => array(\n '-' => '-',\n 'cube' => 'cube',\n 'round' => 'round',\n )\n ),\n 'width[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Width'\n ),\n 'higth[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Higth'\n ),\n 'x_position[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'X position'\n ),\n 'y_position[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Y position'\n ),\n 'red[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color red',\n ),\n 'green[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color green',\n ),\n 'blue[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color blue',\n ),\n 'size[]' => array(\n 'type' => 'text',\n 'multiplicate' => '1',\n 'label' => 'Size holst'\n ),\n 'enable[]' => array(\n 'type' => 'checkbox',\n 'multiplicate' => '5',\n 'label' => 'enable'\n )\n );\n return $fields;\n }", "public function getArrayRows()\r\n {\r\n if (null !== $this->_arrayRowsCache) {\r\n return $this->_arrayRowsCache;\r\n }\r\n $result = [];\r\n $temp = []; // save item position\r\n /** @var \\Magento\\Framework\\Data\\Form\\Element\\AbstractElement */\r\n $element = $this->getElement();\r\n $value = $element->getValue();\r\n if(is_array($value)){\r\n unset($value['__empty']);\r\n }\r\n if(!is_array($value)){\r\n if(base64_decode($value, true) == true){\r\n $value = base64_decode($value);\r\n if(base64_decode($value, true) == true) {\r\n $value = base64_decode($value);\r\n }\r\n }\r\n $value = unserialize($value);\r\n }\r\n if ( $value && is_array($value) ) {\r\n foreach ($value as $rowId => $row) {\r\n if(is_array($row)){\r\n $rowColumnValues = [];\r\n foreach ($row as $key => $row_value) {\r\n $row[$key] = $this->escapeHtml($row_value);\r\n if($key == 'position'){\r\n $row[$key] = (int)$row['position'];\r\n }\r\n $row[$key] = htmlspecialchars_decode($row_value);\r\n $rowColumnValues[$this->_getCellInputElementId($rowId, $key)] = $row[$key];\r\n }\r\n if(isset($row['position'])){\r\n $temp[$rowId] = $row['position'];\r\n }\r\n $row['_id'] = $rowId;\r\n $row['column_values'] = $rowColumnValues;\r\n $result[$rowId] = new \\Magento\\Framework\\DataObject($row);\r\n $this->_prepareArrayRow($result[$rowId]);\r\n }\r\n }\r\n }\r\n asort($temp);\r\n $rows = [];\r\n foreach ($temp as $k => $v) {\r\n $rows[$k] = $result[$k];\r\n }\r\n $this->_arrayRowsCache = $rows;\r\n return $this->_arrayRowsCache;\r\n }", "public function formEntries()\n {\n return $this->hasMany('App\\FormEntry');\n }", "public function retrieveFormFields()\n {\n return $this->start()->uri(\"/api/form/field\")\n ->get()\n ->go();\n }", "function getMainForm()\r\n\t{\r\n\t\t// mendapatkan form-form nya row per row.\r\n\t\t// dan kemudian memasukkan value dari query database kedalam input form masing2 yang sesuai\r\n\t\t$i = 0;\r\n\t\t$arrData = array();\r\n\t\t$out = '<tbody>';\r\n\t\t$this->arrInput = get_object_vars($this->input);\r\n\t\twhile ($arrResult = $this->nav->fetch())\r\n\t\t{\r\n\t\t\t$this->arrResult = $arrResult;\r\n\t\t\t$tableId = $this->arrResult[$this->tableId];\r\n\t\t\t$out .= '<tr data-id=\"'.$tableId.'\">';\r\n\t\t\tforeach($this->arrInput AS $input)\r\n\t\t\t{\r\n\t\t\t\tif (!$input->isInsideMultiInput && !$input->isHeader)\r\n\t\t\t\t{\r\n\t\t\t\t\t// digunakan pada sqllinks\r\n\t\t\t\t\tif (preg_match ('~ as ~is',$this->tableId))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (preg_match('~(.*) (as) (.*)~is', $this->tableId, $match))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$this->tableId=$match[3];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ($this->isMultiLanguage && !isset($this->load_lang[$i]) && !empty($this->strField2Lang))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$q = \"SELECT `lang_id`, `\".implode('`, `', $this->strField2Lang).\"` FROM `$this->LanguageTable` WHERE `$this->LanguageTableId`={$tableId}\".$this->LanguageTableWhere;\r\n\t\t\t\t\t\t$this->load_lang[$i] = 1;\r\n\t\t\t\t\t\t$r = $this->db->getAll($q);\r\n\t\t\t\t\t\tforeach($r AS $d)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tforeach($this->strField2Lang AS $f)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$arrResult[$f][$d['lang_id']] = $d[$f];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$arrResult[$input->objectName] = $this->getDefaultValue($input, $arrResult, $i);\r\n\t\t\t\t\t// dapatkan array data report\r\n\t\t\t\t\tif ($this->isReportOn && $input->isIncludedInReport)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$irow = $input->getReportOutput($arrResult[$input->objectName]);\r\n\t\t\t\t\t\tif ($input->reportFunction && is_callable($input->displayFunction))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$irow = call_user_func_array($input->displayFunction, array($irow));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (is_callable($input->exportFunction))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$irow = call_user_func_array($input->exportFunction, array($irow));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$arrData[$i][]\t= $irow;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ($input->isInsideRow)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$out\t.= '<td>';\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$str_value = in_array($input->objectName, ['system_delete_tool']) ? $arrResult[$this->tableId] : $arrResult[$input->objectName];\r\n\t\t\t\t\t$tmp = $input->getOutput($str_value, $input->name.'['.$i.']', $this->setDefaultExtra($input));\r\n\t\t\t\t\tif (!empty($this->disableInput[$input->objectName]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$is_disable = false;\r\n\t\t\t\t\t\tforeach ((array)$this->disableInput[$input->objectName] as $exec)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$comparator = is_array($arrResult[$exec[2]]) ? current($arrResult[$exec[2]]) : $arrResult[$exec[2]];\r\n\t\t\t\t\t\t\teval('if($exec[1] '.$exec[0].' $comparator){$is_disable=true;}');\r\n\t\t\t\t\t\t\tif ($is_disable)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif ($is_disable)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$tmp = preg_replace(array('~(<input\\s?)~is', '~(<select\\s?)~is', '~(<textarea\\s?)~is'), '$1 disabled ', $tmp);\r\n\t\t\t\t\t\t\tif ($input->objectName != 'system_delete_tool')\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$tmp.= $this->setDisableInputRecovery($arrResult[$input->objectName], $input->name.'['.$i.']', $tmp);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ($input->isInsideRow)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$out\t.= $tmp.'</td>';\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tif (!empty($tmp) && preg_match('~hidden~is', $tmp))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$out .= $tmp;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t$out .= '<div class=\"hidden\">'.$tmp.'</div>';\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} // end foreach\r\n\t\t\t$out .= '</tr>';\r\n\t\t\t$i++;\r\n\t\t}\r\n\t\t$out .= '</tbody>';\r\n\t\tif ($this->isReportOn)\r\n\t\t{\r\n\t\t\t$this->reportData['data'] = $arrData;\r\n\t\t}\r\n\t\treturn $out;\r\n\t}", "public function getFormFields()\n {\n return $this->form->getFields();\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 }", "public function getEntries()\n {\n $rows = array();\n // dd($this->xml->entry->asXml()); // <- TO GET XML\n\n if(count($this->xml->entry) > 0) {\n // d($this->xml); // <- NOT GETTING EMPTY CELLS\n\n $colNames = $this->getColumnNames($this->xml);\n // dd($colNames);\n // dd($this->xml);\n\n\n foreach ($this->xml->entry as $entry) {\n $cols = $entry->xpath('gsx:*');\n // dd($cols);\n\n $vals = array();\n foreach($cols as $col) {\n // dd($col); // <- THIS DISPLAYS\n // var_dump((string) $col);\n\n // if (is_null($col) || $col == '' || $col === '' || !isset($col)) {\n // // $col = ' ';\n // $vals[] = ' ';\n // } else {\n $vals[] = $col->__toString();\n // }\n }\n // dd($vals); // <- THIS HAS THE VALUES YOU WANT\n // d($entry);\n // dd($colNames);\n // d($vals); <- ROWS (in a basic array form)\n $rows[] = new ListEntry($entry, array_combine($colNames, $vals));\n\n }\n }\n // dd($rows);\n return $rows;\n }", "public function index() {\n\t\tif($this->Content && $form = $this->Form()) {\n\t\t\t$hasLocation = stristr($this->Content, '$UserDefinedForm');\n\t\t\tif($hasLocation) {\n\t\t\t\t$content = str_ireplace('$UserDefinedForm', $form->forTemplate(), $this->Content);\n\t\t\t\treturn array(\n\t\t\t\t\t'Content' => DBField::create('HTMLText', $content),\n\t\t\t\t\t'Form' => \"\"\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn array(\n\t\t\t'Content' => $this->Content,\n\t\t\t'Form' => $this->Form\n\t\t);\n\t}", "public function getCellXfByIndex($pIndex) {\n\t\treturn $this->cellXfCollection[$pIndex];\n\t}", "public function getArrayRows()\n {\n $result = [];\n /** @var \\Magento\\Framework\\Data\\Form\\Element\\AbstractElement */\n $element = $this->getElement();\n $aValue = $element->getValue(); // get values\n if (is_array($aValue) === false) { // no array given? -> value from config.xml\n $aValue = json_decode($aValue, true); // convert string to array\n }\n if ($aValue && is_array($aValue)) {\n foreach ($aValue as $rowId => $row) {\n $rowColumnValues = [];\n foreach ($row as $key => $value) {\n $row[$key] = $value;\n $rowColumnValues[$this->_getCellInputElementId($rowId, $key)] = $row[$key]; // add value the row\n }\n $row['_id'] = $rowId;\n $row['column_values'] = $rowColumnValues;\n $result[$rowId] = new \\Magento\\Framework\\DataObject($row);\n $this->_prepareArrayRow($result[$rowId]);\n }\n }\n return $result;\n }", "public function get_tabular_form() {\n\t\treturn $this->tabular_form_relation;\n\t}", "public function getForms()\n {\n return ['' => 'None']+$this->select('id', 'title')->orderBy('title', 'asc')->pluck('title', 'id')->toArray();\n }", "function make_form_row(){\n\t\tswitch($this->fieldType){\n\t\t\tcase 'id':\n\t\t\t\treturn $this->obo_id();\n\t\t\t\tbreak;\n\t\t\tcase 'term':\n\t\t\t\treturn $this->obo_term();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$form = parent::make_form_row();\n\t\t\n\t\t}\n\t\treturn $form;\n\t\n\t}", "protected function grid()\n {\n $grid = new Grid(new NewEnergy());\n\n $grid->column('user_id', __('用户'));\n $grid->column('car_id', __('车辆ID'));\n $grid->column('start_mileage', __('开始里程'));\n $grid->column('end_mileage', __('结束里程'));\n $grid->column('mileage', __('里程'));\n $grid->column('type', __('车辆类型'));\n $grid->column('status', __('状态'));\n $grid->column('remark', __('备注'));\n\n return $grid;\n }", "public function form_elements() {\n\n\t\t\t// Instantiate Widget Inputs\n\t\t\t$form_elements = new Layers_Form_Elements();\n\n\t\t\t// Return design bar\n\t\t\treturn $form_elements;\n\n\t\t}", "public function getFormValues()\n {\n $validator = App::make(SubmitForm::class);\n return $validator->getSubmissions();\n }", "public function get_rows() {\n return $this->rows;\n }", "protected function getCellStylesSectionContent()\n {\n return <<<EOD\n<cellStyles count=\"1\">\n <cellStyle builtinId=\"0\" name=\"Normal\" xfId=\"0\"/>\n</cellStyles>\nEOD;\n }", "function getRows() {\n\t\treturn $this->rows;\n\t}", "public function getMyFormFields() {\n $aMyFieldsByForm = [];\n\n # Build Query to get User Based Columns\n $oFieldsSel = new Select(CoreEntityModel::$aEntityTables['user-form-fields']->getTable());\n $oFieldsSel->join(['core_field'=>'core_form_field'],'core_field.Field_ID = user_form_field.field_idfs');\n $oFieldsSel->where(['user_idfs'=>$this->getID()]);\n\n # Get My Fields from Database\n $oMyFieldsDB = CoreEntityModel::$aEntityTables['user-form-fields']->selectWith($oFieldsSel);\n\n foreach($oMyFieldsDB as $oField) {\n # Order By Form\n if(!array_key_exists($oField->form,$aMyFieldsByForm)) {\n $aMyFieldsByForm[$oField->form] = [];\n }\n $aMyFieldsByForm[$oField->form][$oField->Field_ID] = $oField;\n }\n\n return $aMyFieldsByForm;\n }", "function form_content()\r\n {\r\n $table = html_table($this->_width,0,4) ;\r\n $table->set_style(\"border: 0px solid\") ;\r\n\r\n $msg = html_div(\"ft_form_msg\") ;\r\n $msg->add(html_p(html_b(\"Processing the SDIF Queue requires\r\n processing swimmers, swim meets, and/or swim teams which are\r\n not currently stored in the database. Specify how unknown\r\n data should be processed.\"), html_br())) ;\r\n\r\n $td = html_td(null, null, $msg) ;\r\n $td->set_tag_attribute(\"colspan\", \"2\") ;\r\n $table->add_row($td) ;\r\n $table->add_row($this->element_label(\"Swimmers\"), $this->element_form(\"Swimmers\")) ;\r\n $table->add_row($this->element_label(\"Swim Meets\"), $this->element_form(\"Swim Meets\")) ;\r\n $table->add_row($this->element_label(\"Swim Teams\"), $this->element_form(\"Swim Teams\")) ;\r\n\r\n $this->add_form_block(null, $table) ;\r\n }", "public function getFormTemplates();", "public static function getForm();", "function getForm(){\r\n\t\t$data = [\r\n\t\t\t'EFORM' => [\r\n\t\t\t\t'formName' => $this->formName,\r\n\t\t\t\t'scope' => $this->scope,\r\n\t\t\t\t'_uid' => $this->uid,\r\n\t\t\t\t'elements' => $this->fields->getFormViewFields($this),\r\n\t\t\t\t'errors' => $this->errors,\r\n\t\t\t\t'buttons' => $this->buttons->get()\r\n\t\t\t]\r\n\t\t];\r\n\r\n\t\tif($this->actions){\r\n\t\t\t$data['EFORM']['actions'] = $this->actions->getForSmarty();\r\n\t\t}\r\n\t\tif(!empty($this->statuses)){\r\n\t\t\t$data['EFORM']['fieldStatuses'] = $this->statuses;\r\n\t\t}\r\n\r\n\t\t$view = new ViewElementClass();\r\n\t\t$view->type = 'form_start';\r\n\t\t$view->data = $data;\r\n\t\treturn $view;\r\n\t}", "public function getElements() {\n\t\treturn $this->renderables;\n\t}", "function getCalculatedRows();", "abstract function getForm();", "public function getMyFormFields()\n {\n $aMyFieldsByForm = [];\n\n # Build Query to get User Based Columns\n $oFieldsSel = new Select(CoreEntityModel::$aEntityTables['user-form-fields']->getTable());\n $oFieldsSel->join(['core_field' => 'core_form_field'], 'core_field.Field_ID = user_form_field.field_idfs');\n $oFieldsSel->where(['user_idfs' => $this->getID()]);\n $oFieldsSel->order('sort_id ASC');\n\n # Get My Fields from Database\n $oMyFieldsDB = CoreEntityModel::$aEntityTables['user-form-fields']->selectWith($oFieldsSel);\n\n foreach ($oMyFieldsDB as $oField) {\n # Order By Form\n if (! array_key_exists($oField->form, $aMyFieldsByForm)) {\n $aMyFieldsByForm[$oField->form] = [];\n }\n $aMyFieldsByForm[$oField->form][$oField->Field_ID] = $oField;\n }\n\n return $aMyFieldsByForm;\n }", "public function getFields()\n {\n return $this->getForm()->getFields();\n }", "public function form(){\n\t\treturn $this->form;\n\t}", "abstract protected function getForm();", "public function getElements() {\n return $this->elements;\n }", "protected function getElements(){\n return $this->_elements;\n }", "public function forms(): array\n {\n return HOMMFormViewer::$plugin->formViewerService->getForms();\n }", "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 }", "function formProperties(){\n\t\t// Create table\n\t\t$_content = new we_html_table(array('class' => 'default propertydualtable'), 5, 3);\n\t\t$row = 0;\n\t\t// Row 1\n\t\t$_content->setCol($row, 0, null, $this->formInputInfo2(155, 'width', 10, 'attrib', 'onchange=\"_EditorFrame.setEditorIsHot(true);\"', \"origwidth\"));\n\t\t$_content->setCol($row, 1, null, $this->formInputInfo2(155, 'height', 10, 'attrib', 'onchange=\"_EditorFrame.setEditorIsHot(true);\"', \"origheight\"));\n\t\t$_content->setCol($row++, 2, null, $this->formInput2(155, 'border', 10, 'attrib', 'onchange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\n\n\t\t// Row 2\n\t\t$_content->setCol($row, 0, null, $this->formInput2(155, 'align', 10, 'attrib', 'onchange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\t\t$_content->setCol($row, 1, null, $this->formInput2(155, 'hspace', 10, 'attrib', 'onchange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\t\t$_content->setCol($row++, 2, null, $this->formInput2(155, 'vspace', 10, 'attrib', 'onchange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\n\n\t\t// Row 3\n\t\t$_content->setCol($row, 0, array('colspan' => 3), $this->formInput2(328, 'alt', 23, 'attrib', 'onchange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\t\t$_content->setCol($row++, 2, null, $this->formInput2(155, 'name', 10, 'attrib', 'onchange=\"_EditorFrame.setEditorIsHot(true);\"'));\n\n\n\t\t//\tRow 4\n\t\t$_content->setCol($row, 0, array('colspan' => 3), $this->formInput2(328, 'title', 23, 'attrib', ($this->getElement('useMetaTitle') == 1 ? \"readonly='readonly'\" : \"\") . '\" onchange=\"_EditorFrame.setEditorIsHot(true);\"', 'Title'));\n\n\t\t$_titleField = 'we_' . $this->Name . '_attrib[title]';\n\t\t$_metaTitleField = 'we_' . $this->Name . '_txt[Title]';\n\t\t$useMetaTitle = 'we_' . $this->Name . '_attrib[useMetaTitle]';\n\t\t//\tdisable field 'title' when checked or not. on checked true: document.forms[0]['$_titleField'].value='$this->getElement('Title')' and onchecked false: document.forms[0]['$_titleField'].value='' added to fix bug #5814\n\t\t$_content->setCol($row++, 2, array('style' => 'vertical-align:bottom'), we_html_forms::checkboxWithHidden($this->getElement('useMetaTitle'), $useMetaTitle, g_l('weClass', '[use_meta_title]'), false, 'defaultfont', \"if(this.checked){ document.forms[0]['\" . $_titleField . \"'].setAttribute('readonly', 'readonly', 'false'); document.forms[0]['\" . $_titleField . \"'].value = '\" . $this->getElement('Title') . \"'; }else{ document.forms[0]['\" . $_titleField . \"'].removeAttribute('readonly', 'false'); document.forms[0]['\" . $_titleField . \"'].value='';}_EditorFrame.setEditorIsHot(true);\"));\n\n\t\t// longdesc should be available in images.\n\t\t// check if longdesc is set and get path\n\t\t$longdesc_id_name = 'we_' . $this->Name . '_attrib[longdescid]';\n\t\t$longdesc_text_name = 'tmp_longdesc';\n\t\t$longdesc_id = $this->getElement('longdescid');\n\t\t$longdescPath = ($longdesc_id ? id_to_path($longdesc_id) : '');\n\n\t\t$yuiSuggest = & weSuggest::getInstance();\n\t\t$yuiSuggest->setAcId('LonDesc');\n\t\t$yuiSuggest->setContentType('folder,' . we_base_ContentTypes::WEDOCUMENT . ',' . we_base_ContentTypes::HTML);\n\t\t$yuiSuggest->setInput($longdesc_text_name, $longdescPath);\n\t\t$yuiSuggest->setLabel(g_l('weClass', '[longdesc_text]'));\n\t\t$yuiSuggest->setMaxResults(20);\n\t\t$yuiSuggest->setMayBeEmpty(1);\n\t\t$yuiSuggest->setResult($longdesc_id_name, $longdesc_id);\n\t\t$yuiSuggest->setSelector(weSuggest::DocSelector);\n\t\t$yuiSuggest->setWidth(328);\n\t\t$cmd1 = \"document.we_form.elements['\" . $longdesc_id_name . \"'].value\";\n\n\t\t$yuiSuggest->setSelectButton(we_html_button::create_button(we_html_button::SELECT, \"javascript:we_cmd('we_selector_image',\" . $cmd1 . \",'\" . FILE_TABLE . \"','\" . we_base_request::encCmd($cmd1) . \"','\" . we_base_request::encCmd(\"document.we_form.elements['\" . $longdesc_text_name . \"'].value\") . \"','\" . we_base_request::encCmd(\"opener._EditorFrame.setEditorIsHot(true);opener.top.we_cmd('reload_editpage');\") . \"','','','\" . we_base_ContentTypes::WEDOCUMENT . \",\" . we_base_ContentTypes::TEXT . \",\" . we_base_ContentTypes::HTML . \"',1)\"));\n\t\t$yuiSuggest->setTrashButton(we_html_button::create_button(we_html_button::TRASH, \"javascript:document.we_form.elements['\" . $longdesc_id_name . \"'].value='-1';document.we_form.elements['\" . $longdesc_text_name . \"'].value='';_EditorFrame.setEditorIsHot(true); YAHOO.autocoml.setValidById('\" . $yuiSuggest->getInputId() . \"')\"));\n\t\t$_content->setCol($row, 0, array('style' => 'vertical-align:bottom', 'colspan' => 5), $yuiSuggest->getHTML() . $yuiSuggest->getYuiJs());\n\n\t\t// Return HTML\n\t\treturn $_content->getHtml();\n\t}", "function getRows() { return $this->_rows; }", "public function getRowsContainer()\n\t{\n\t\treturn $this->_tbody;\n\t}", "function getCell() {\n \tglobal $synAbsolutePath;\n $ext = $this->translate($this->value);\n $mat=$this->translatePath($this->mat);\n $filename=$mat.$this->createFilename().\".\".$ext;\n $file_exists=file_exists($synAbsolutePath.$filename);\n $isImg=$this->isImage($filename);\n if ($ext and $file_exists and $isImg) $ret=\"<div style='overflow: hidden; height: 25px; display:inline;background: url($filename) no-repeat center;width: 100%' onMouseOver=\\\"openbox('$filename')\\\" onMouseOut=\\\"closebox()\\\"></div>\";\n else if ($ext and $file_exists and !$isImg) $ret=\"<span style='color: gray'>Document $ext</span>\";\n else if ($ext and !$file_exists) $ret=\"<span style='color: gray'>Error $ext</span>\";\n else $ret=\"<span style='color: gray'>Empty</span>\";\n return $ret;\n //die;\n }", "public function getForm()\n {\n return $this;\n }", "protected function getElements()\n {\n return $this->elements;\n }", "protected function grid()\n {\n $grid = new Grid(new Formulario());\n\n $grid->disableExport();\n\n $grid->column('name', __('Nombre'));\n $grid->column('description', __('Descripción'));\n $grid->column('go_to_formulario', 'Continuar a formulario')->display(function ($formId) {\n if ($formId) {\n $form = Formulario::find($formId);\n return \"<span>{$form['name']}</span>\";\n }\n });\n\n $grid->model()->orderBy('id', 'asc');\n\n return $grid;\n }", "protected function grid()\n {\n // return Admin::grid(Campaign_setting_form::class, function (Grid $grid) {\n // });\n }", "public function getRows()\n {\n return $this->rows;\n }", "public function getRows()\n {\n return $this->rows;\n }", "public function get_editentries() {\n return $this->_editentries;\n }", "protected function grid()\n {\n $grid = new Grid(new Collect());\n $grid->disableActions();\n $grid->disableCreateButton();\n $grid->column('name','姓名');\n $grid->column('phone','手机号');\n $grid->column('address','地址');\n $grid->column('time','时间');\n $grid->column('message','备注');\n\n $postsExporter = new ColectExport();\n $postsExporter->fileName = date('Y-m-d H:i:s').'.xlsx';\n $grid->exporter($postsExporter);\n $url = url()->current();\n $url .= \"?_export_=all\";\n $grid->tools(function ($tools)use($grid,$url){\n $tools->append(new Export($grid,$url));\n });\n\n return $grid;\n }", "public function getList(){\n \t$formobj=$this->getFormObj();\n \t$list=array();\n \tfor($i=1;$i<=$formobj->totalPages;$i++){\n \t\tarray_push($list,array(\"val\"=>$i,\"txt\"=>$i));\n \t}\n \treturn $list;\n }", "public static function Form() : iterable\n {\n return [\n 'role_id' => '',\n 'staff_id' => '',\n 'full_name' => '',\n 'date_of_appointment' => '',\n 'status' => '',\n 'category' => '',\n 'phone_number' => '',\n 'highest_qualification' => '',\n 'branch_id' => '',\n 'email' => '',\n 'address' => '',\n 'gender' => '',\n 'referee_1' => '',\n 'referee_2' => '',\n 'referee_1_phone_no' => '',\n 'referee_2_phone_no' => '',\n 'date_of_birth' => '',\n 'nationality' => '',\n 'next_of_kin_name' => '',\n 'next_of_kin_phone_no' => '',\n 'guarantor_name' => '',\n 'guarantor_phone_no' => '',\n 'guarantor_address' => '',\n 'guarantor_relationship' => '',\n 'guarantor_name_2' => '',\n 'guarantor_phone_no_2' => '',\n 'guarantor_address_2' => '',\n 'guarantor_relationship_2' => '',\n 'cv' => '',\n ];\n }" ]
[ "0.73605204", "0.67997134", "0.6504889", "0.64625525", "0.63929254", "0.63905674", "0.6065084", "0.58463144", "0.583741", "0.5826418", "0.57538855", "0.57538855", "0.5712586", "0.5657844", "0.56123054", "0.55994123", "0.5576755", "0.5530039", "0.5513866", "0.54798424", "0.54798424", "0.5464755", "0.5419644", "0.5404624", "0.5372799", "0.5360041", "0.5353956", "0.5323426", "0.53129643", "0.5311388", "0.53099024", "0.53048295", "0.52890205", "0.5266084", "0.5249521", "0.51305294", "0.51218075", "0.5121386", "0.50988775", "0.50988775", "0.50965005", "0.50920373", "0.50838953", "0.5081209", "0.50734293", "0.5064398", "0.5053948", "0.5047516", "0.5036547", "0.50357616", "0.5016015", "0.5003374", "0.49942237", "0.49792513", "0.49789718", "0.49670008", "0.4966672", "0.49665505", "0.49612638", "0.49504933", "0.49338093", "0.49249193", "0.49210542", "0.49159497", "0.49090186", "0.49068266", "0.49048543", "0.48985183", "0.4895011", "0.48775113", "0.48758265", "0.48712873", "0.4864091", "0.4838071", "0.48344678", "0.4833385", "0.48254138", "0.48228732", "0.48182222", "0.48179737", "0.48121515", "0.48111475", "0.4804244", "0.48006368", "0.47966942", "0.47941154", "0.47903693", "0.47890472", "0.47863746", "0.4783271", "0.47828323", "0.4780556", "0.4776333", "0.4774056", "0.4773259", "0.4773259", "0.47645453", "0.476326", "0.47566167", "0.4755135" ]
0.67475903
2
Display a listing of the resource.
public function index() { $calls = \App\Calls::paginate(3); return view(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Display the specified resource.
public function show(Call $call) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit(Call $call) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit() \n\t{\n UserModel::authentication();\n\n //get the user's information \n $user = UserModel::user();\n\n\t\t$this->View->Render('user/edit', ['user' => $user]);\n }" ]
[ "0.78557473", "0.76946205", "0.72731614", "0.7241571", "0.71700776", "0.70650244", "0.7052897", "0.698311", "0.69465625", "0.6944826", "0.69399333", "0.69286525", "0.69031185", "0.68969506", "0.68969506", "0.6878258", "0.6862812", "0.6859171", "0.68560475", "0.68436426", "0.6834711", "0.6810601", "0.680613", "0.6804975", "0.68015367", "0.6795471", "0.6791821", "0.6791821", "0.6787303", "0.6783644", "0.67790574", "0.67766285", "0.6767741", "0.67610145", "0.67455536", "0.67455536", "0.6744367", "0.6743159", "0.6739656", "0.67351145", "0.67246765", "0.67128825", "0.6692859", "0.66916454", "0.6687554", "0.66875297", "0.6687494", "0.6684443", "0.668203", "0.66689324", "0.66680384", "0.6664605", "0.6664605", "0.66621166", "0.66604865", "0.66589504", "0.6655767", "0.66542184", "0.665213", "0.66422516", "0.6631665", "0.663077", "0.6627607", "0.6627607", "0.66193914", "0.6618503", "0.66160196", "0.66146857", "0.6609641", "0.6608315", "0.6605284", "0.6595882", "0.65947276", "0.6594626", "0.65895563", "0.6589339", "0.6587281", "0.65805006", "0.6579201", "0.6579166", "0.657641", "0.6576111", "0.65740323", "0.65692765", "0.6568046", "0.6567221", "0.6565346", "0.6560687", "0.6560687", "0.6560384", "0.65577257", "0.65569293", "0.65558636", "0.6555392", "0.65553015", "0.65542984", "0.655418", "0.6554106", "0.6547678", "0.65473104", "0.6543329" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, Call $call) { // }
{ "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(Call $call) { // }
{ "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
Run the database seeds.
public function run() { DB::table('tournaments')->insert([ [ 'title' => 'Felnőtt Országos Bajnokság', 'datefrom' => '20200201', 'dateto' => '20200202', 'venue_id' => 1, 'requested_umpires' => 13 ], [ 'title' => 'Budapest Bajnokság', 'datefrom' => '20200118', 'dateto' => '20200118', 'venue_id' => 2, 'requested_umpires' => 15 ], [ 'title' => '10th Multi Alarm Hungarian Junior Championships', 'datefrom' => '20200206', 'dateto' => '20200209', 'venue_id' => 1, 'requested_umpires' => 0 ], [ 'title' => 'Vízmű Kupa U11 U15 U19', 'datefrom' => '20190921', 'dateto' => '20190921', 'venue_id' => 1, 'requested_umpires' => 15 ], [ 'title' => 'Senior OB', 'datefrom' => '20181124', 'dateto' => '20181124', 'venue_id' => 3, 'requested_umpires' => 0 ], [ 'title' => 'Csapatbajnokság I. 2. forduló', 'datefrom' => '20190126', 'dateto' => '20190127', 'venue_id' => 1, 'requested_umpires' => 6 ] ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => '[email protected]', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"[email protected]\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'[email protected]'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => '[email protected]',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => '[email protected]',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> '[email protected]',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = [email protected]\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => '[email protected]']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'[email protected]',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','[email protected]')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => '[email protected]']);\n\n factory(Category::class, 5)->create();\n }", "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => '[email protected]',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'[email protected]', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'[email protected]', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }", "public function run()\n {\n \t$roles = DB::table('roles')->pluck('id');\n \t$sexes = DB::table('sexes')->pluck('id');\n \t$faker = \\Faker\\Factory::create();\n\n \tforeach (range(1,20) as $item) {\n \t\tDB::table('users')->insert([\n \t\t\t'role_id' => $faker->randomElement($roles),\n \t\t\t'sex_id' => $faker->randomElement($sexes),\n \t\t\t'name' => $faker->firstName . ' ' . $faker->lastName,\n \t\t\t'dob' => $faker->date,\n \t\t\t'bio' => $faker->text,\n \t\t\t'created_at' => now(),\n \t\t\t'updated_at' => now()\n \t\t]);\n \t} \n }" ]
[ "0.80130625", "0.79795986", "0.79764974", "0.79524934", "0.7950615", "0.79505694", "0.7944086", "0.7941758", "0.7938509", "0.79364634", "0.79335415", "0.7891555", "0.78802574", "0.78790486", "0.7878107", "0.7875447", "0.78703815", "0.7869534", "0.7851931", "0.7850407", "0.7840015", "0.78331256", "0.7826906", "0.78172284", "0.7807776", "0.78024083", "0.78023773", "0.7799859", "0.77994525", "0.77955437", "0.7790015", "0.77884936", "0.7786196", "0.77790534", "0.7776279", "0.7765613", "0.7761798", "0.7760838", "0.7760613", "0.7760611", "0.7759328", "0.7757682", "0.775591", "0.7752759", "0.774942", "0.7748997", "0.7745014", "0.7728245", "0.7727775", "0.77277344", "0.7716621", "0.77139914", "0.7713781", "0.77135956", "0.7713254", "0.7711222", "0.7710622", "0.7710614", "0.77104497", "0.77100515", "0.770471", "0.77039754", "0.7703702", "0.770327", "0.7702392", "0.7700962", "0.7700507", "0.7698413", "0.76974845", "0.7697178", "0.7696662", "0.76933604", "0.76916313", "0.76898587", "0.7689098", "0.76864886", "0.76862013", "0.76860833", "0.7685714", "0.7683389", "0.76831365", "0.7679125", "0.76774627", "0.767677", "0.7676274", "0.76719916", "0.76704824", "0.76679665", "0.7667335", "0.7667264", "0.76645994", "0.7662546", "0.76618296", "0.7660438", "0.76583356", "0.76564723", "0.76530147", "0.7651929", "0.7651548", "0.7651444", "0.76511025" ]
0.0
-1
Run the database seeders.
public function run() { User::truncate(); Category::truncate(); Post::truncate(); $user = User::factory()->create(); $personal=Category::create([ 'name'=>'Personal', 'slug'=>'personal' ]); $family= Category::create([ 'name'=>'Family', 'slug'=>'family' ]); $work= Category::create([ 'name'=>'Work', 'slug'=>'work' ]); Post::create([ 'user_id'=>$user->id, 'category_id'=>$work->id, 'title'=>'My Work Post', 'slug'=>'my-first-post', 'excerpt'=>'Excerpt for my post', 'body'=>'Lorem ipsum amet nzn labas swx karolis kasperiunas inodsfnsdfisdnfisafnipsd' ]); Post::create([ 'user_id'=>$user->id, 'category_id'=>$personal->id, 'title'=>'My Personal Post', 'slug'=>'my-second-post', 'excerpt'=>'Excerpt for my post', 'body'=>'Lorem ipsum amet nzn labas swx karolis kasperiunas inodsfnsdfisdnfisafnipsd' ]); Post::create([ 'user_id'=>$user->id, 'category_id'=>$family->id, 'title'=>'My family Post', 'slug'=>'my-third-post', 'excerpt'=>'Excerpt for my post', 'body'=>'Lorem ipsum amet nzn labas swx karolis kasperiunas inodsfnsdfisdnfisafnipsd' ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n Model::unguard();\n foreach (glob(__DIR__ . '/seeds/*.php') as $filename) {\n require_once($filename);\n }\n // $this->call(UserTableSeeder::class);\n //DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n// $this->call('CustomerTableSeeder');\n $this->call('PhotoTableSeeder');\n// $this->call('ProductTableSeeder');\n// $this->call('StaffTableSeeder');\n// $this->call('PasswordResetsTableSeeder');\n// $this->call('UsersTableSeeder');\n $this->call('CustomersTableSeeder');\n $this->call('EmployeesTableSeeder');\n $this->call('InventoryTransactionTypesTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n $this->call('OrderDetailsStatusTableSeeder');\n $this->call('OrdersTableSeeder');\n $this->call('InvoicesTableSeeder');\n $this->call('OrdersTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n $this->call('OrdersStatusTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n\n $this->call('OrdersTaxStatusTableSeeder');\n $this->call('PrivilegesTableSeeder');\n $this->call('EmployeePrivilegesTableSeeder');\n $this->call('ProductsTableSeeder');\n $this->call('InventoryTransactionsTableSeeder');\n $this->call('PurchaseOrderDetailsTableSeeder');\n\n $this->call('PurchaseOrderStatusTableSeeder');\n $this->call('PurchaseOrdersTableSeeder');\n $this->call('SalesReportsTableSeeder');\n $this->call('ShippersTableSeeder');\n $this->call('StringsTableSeeder');\n $this->call('SuppliersTableSeeder');\n //DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n Model::reguard();\n }", "public function run()\n {\n Model::unguard();\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n }\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(EntrustTableSeeder::class);\n\n $this->call(AccounttypeSeeder::class);\n $this->call(AppUserTableSeeder::class);\n $this->call(AppEmailUserTableSeeder::class);\n\n\n $this->call(CountryTableSeeder::class);\n $this->call(CityTableSeeder::class);\n\n\n $this->call(PostTypeTableSeeder::class);\n $this->call(PostSubTypeTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(AppPostSolvedTableSeeder::class);\n\n\n $this->call(AppCommentTypeTableSeeder::class);\n // $this->call(AppCommentTableSeeder::class);\n // $this->call(AppSubCommentTableSeeder::class);\n\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }\n\n Model::reguard();\n }", "public function run()\n {\n $this->seed('FormsMenuItemsTableSeeder');\n $this->seed('FormsDataTypesTableSeeder');\n $this->seed('FormsDataRowsTableSeeder');\n $this->seed('FormsPermissionsTableSeeder');\n $this->seed('FormsSettingsTableSeeder');\n $this->seed('FormsTableSeeder');\n }", "public function run()\n {\n $this->seedUsers();\n $this->seedAdmins();\n $this->seedMeals();\n\n $this->seedOrder();\n $this->seedOrderlist();\n\n $this->seedReload();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \t$this->call('RolTableSeeder');\n \t$this->call('UserTableSeeder');\t\t\n \t$this->call('UserProfileTableSeeder');\n \t$this->call('AppTableSeeder');\n \t$this->call('AppXUserTableSeeder');\n \t$this->call('ModuleTableSeeder');\n \t$this->call('OptionTableSeeder');\n \t$this->call('PermitTableSeeder');\n $this->call('DepartmentTableSeeder');\n $this->call('CityTableSeeder');\n $this->call('CategoryTableSeeder');\t\n $this->call('StageTableSeeder');\n $this->call('ConectorsTableSeeder');\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(ConditionsTableSeeder::class);\n $this->call(DeliveriesTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(AdvertsTableSeeder::class);\n // plaats postcode import in eigen / aparte seeder class ==>> Made migration (else DB:rename doesn't work inside seeder, makes copy)\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t// $this->call('TopicsTableSeeder');\n\t\t// $this->call('GiftsTableSeeder');\n\t\t// $this->call('GiftPostersTableSeeder');\n\t\t// // $this->call('GiftPhotoIntrosTableSeeder');\n\t\t// $this->call('PostersTableSeeder');\n\t\t// $this->call('UsersTableSeeder');\n\t\t// $this->call('GiftFocusTableSeeder');\n\t\t// $this->call('SearchTableSeeder');\n\t\t// $this->call('ArticlesTableSeeder');\n\t\t// $this->call('ArticlePartsTableSeeder');\n\t\t// $this->call('ArticleJoinsTableSeeder');\n\t\t// $this->call('ArticleJoinPartsTableSeeder');\n\t\t// $this->call('ArticleJoinComsTableSeeder');\n\t\t// $this->call('ArticleJoinReplysTableSeeder');\n\t\t// $this->call('CharactorsTableSeeder');\n\t\t// $this->call('ObjectsTableSeeder');\n\t\t// $this->call('PricesTableSeeder');\n\t\t// $this->call('ScenesTableSeeder');\n\t\t$this->call('OfficalNoticePartsTableSeeder');\n\t}", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n $this->call(userTableSeeder::class);\n $this->call(hrl1TableSeeder::class);\n $this->call(hrl1CategoryTableSeeder::class);\n $this->call(hrl1PositionTableSeeder::class);\n $this->call(tel1TableSeeder::class);\n $this->call(pel2TableSeeder::class);\n $this->call(pel4TableSeeder::class);\n // $this->call(tel1CostfactorTableSeeder::class);\n\n }", "public function run()\n {\n $this->call(\\Database\\Seeders\\GroupByRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\SingleIndexRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\MultiIndexRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\JoinFiveTablesSeeder::class);\n\n// DB::table('users')->truncate();\n// DB::table('user_details')->truncate();\n//\n// // 試しに一回流す\n// $data = $this->makeData(0, 'userFactory', 1);\n// DB::table('users')->insert($data);\n// $data = $this->makeData(0, 'userDetailFactory', 1);\n// DB::table('user_details')->insert($data);\n//\n// // $this->call(UsersTableSeeder::class);\n// DB::table('users')->truncate();\n// DB::table('user_details')->truncate();\n//\n// for ($i = 0; $i < 40; $i++) {\n// $data = $this->makeData($i, 'userFactory', 2500);\n// DB::table('users')->insert($data);\n// }\n//\n// for ($i = 0; $i < 40; $i++) {\n// $data = $this->makeData($i, 'userDetailFactory', 2500);\n// DB::table('user_details')->insert($data);\n// }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'phone' => '0507507763',\n 'password' => bcrypt('admin'),\n 'role' => 'admin',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n DB::table('default_settings')->insert([\n 'default_count' => 10,\n 'cake_count' => 7,\n 'cheesecake_count' => 5,\n 'cupcake_count' => 40,\n ]);\n $this->call(AdditionalDecorationSeeder::class);\n $this->call(AdditionalFillerSeeder::class);\n $this->call(CakeFillingSeeder::class);\n $this->call(CakeSideDecorationSeeder::class);\n $this->call(CakeTopDecorationSeeder::class);\n $this->call(StatusSeeder::class);\n $this->call(DeliverySeeder::class);\n $this->call(OrderSeeder::class);\n $this->call(CakeSizeSeeder::class);\n $this->call(CakeSeeder::class);\n $this->call(ProductSeeder::class);\n $this->call(CategorySeeder::class);\n $this->call(ProductCategorySeeder::class);\n\n // $this->call(OrderCakeSeeder::class);\n\n }", "public function run()\n {\n Model::unguard();\n\n // $this->call(UserTableSeeder::class);\n\n Model::reguard();\n \t$this->call('DepartamentoTableSeeder');\n \t$this->call('MunicipioTableSeeder');\n\t\t$this->call('SalasTableSeeder');\n \t$this->call('UserstatusesTableSeeder');\n\t\t$this->call('TipoCasosTableSeeder');\n\t\t$this->call('TipoContraparteTableSeeder');\n\t\t$this->call('PermissionsTableSeeder');\n\t\t$this->call('RolesTableSeeder');\n \t$this->call('UsersTableSeeder');\n\t\t//$this->call('ClientesTableSeeder');\n\t\t//$this->call('TribunalesTableSeeder');\n\t\t//$this->call('ContactosTableSeeder');\n\t\t//$this->call('CasosTableSeeder');\n\t}", "public function run()\n {\n $this->seedRegularUsers();\n $this->seedAdminUser();\n }", "public function run()\n {\n //$this->call(AboutTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n //$this->call(SettingsTableSeeder::class);\n \n\t #iseed_start\n\n\t //$this->call('UsersTableSeeder');\n\t $this->call('AboutTableSeeder');\n $this->call('GalleriesTableSeeder');\n $this->call('MessagesTableSeeder');\n $this->call('MessageStatusesTableSeeder');\n $this->call('ProjectsTableSeeder');\n $this->call('ProjectPropertiesTableSeeder');\n $this->call('PropertiesTableSeeder');\n $this->call('SettingsTableSeeder');\n #iseed_end\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n $this->call([\n SiteSettingsSeeder::class,\n LaratrustSeeder::class,\n CountrySeeder::class,\n GovernorateSeeder::class,\n FaqSeeder::class,\n SitePageSeeder::class,\n UsersSeeder::class,\n ]);\n\n Country::whereiso(\"EG\")->update(['enable_shipping' => true]);\n\n factory(User::class, 400)->create();\n\n Category::create([\n 'en' => [\n 'name' => \"cake tools\"\n ]\n ]);\n\n Category::create([\n 'en' => [\n 'name' => \"Party Supplies\"\n ]\n ]);\n\n $this->call([\n ProductCategorySeeder::class,\n ProductSeeder::class\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call('DevicetypesTableSeeder');\n $this->call('HscontactsTableSeeder');\n $this->call('HighsiteVisitCategoriesTableSeeder');\n $this->call('BackhaultypesTableSeeder');\n $this->call('SystemsTableSeeder');\n }", "public function run()\n {\n $this->call('CategoryTableSeeder');\n $this->call('ProductTableSeeder');\n $this->call('ProductCategoriesTableSeeder');\n $this->call('GalleryImagesTableSeeder');\n $this->call('ProductGalleryTableSeeder');\n $this->call('ProductInventoryTableSeeder');\n $this->call('ProductInventoryPricesTableSeeder');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call('GendersTableSeeder');\n $this->call('CountriesTableSeeder');\n $this->call('CitiesTableSeeder');\n $this->call('RolesTableSeeder');\n $this->call('UsersTableSeeder');\n $this->call('StatusesTableSeeder');\n }", "public function run()\n {\n $this->call(RolesDatabaseSeeder::class);\n $this->call(UsersDatabaseSeeder::class);\n $this->call(LocalesDatabaseSeeder::class);\n $this->call(MainDatabaseSeeder::class);\n }", "public function run()\n {\n $this->call(UserSeed::class);\n $this->call(CategorySeed::class);\n $this->call(ExperienceSeeder::class);\n $this->call(LocationSeeder::class);\n $this->call(SalarySeeder::class);\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(UserSeeder::class);\n $this->call(AuditeeSeeder::class);\n $this->call(AuditorSeeder::class);\n $this->call(CategorySeeder::class);\n $this->call(ContractorSeeder::class);\n $this->call(DepartmentSeeder::class);\n $this->call(SiteSeeder::class);\n $this->call(MonitoringSeeder::class);\n }", "public function run()\n\t{\n\t\tModel::unguard();\n\n\t\t// $this->call('UserTableSeeder');\n\t\t$this->call('YearsTableSeeder');\n\t\t$this->call('PeriodosTableSeeder');\n\t\t$this->call('TiposDocumentosTableSeeder'); // Listo!\n\t\t$this->call('PaisesTableSeeder'); // Listo!\n\t\t$this->call('UserTableSeeder');\n\t\t$this->call('RoleTableSeeder');\n\t\t//$this->call('ProfesoresTableSeeder');\n\t\t//$this->call('AlumnosTableSeeder');\n\t\t$this->call('ImagesTableSeeder'); // Insertar registros de las imágenes por default\n\t\t$this->call('NivelesEducativosTableSeeder');\n\t\t$this->call('GradosTableSeeder');\n\t\t$this->call('GruposTableSeeder');\n\t\t//$this->call('MatriculasTableSeeder');\n\t\t//$this->call('VtVotacionesTableSeeder');\n\t\t//$this->call('VtAspiracionesTableSeeder');\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // Para que no verifique el control de claves foráneas al hacer el truncate haremos:\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n\t\t// Primero hacemos un truncate de las tablas para que no se estén agregando datos\n\t\t// cada vez que ejecutamos el seeder.\n\t\t//Foto::truncate();\n\t\t//Album::truncate();\n\t\t//Usuario::truncate();\n DB::table('users')->delete();\n DB::table('ciudades')->delete();\n DB::table('tiendas')->delete();\n DB::table('ofertas')->delete();\n DB::table('ventas')->delete();\n\n\n\t\t// Es importante el orden de llamada.\n\t\t$this->call('UserSeeder');\n $this->call('CiudadSeeder');\n\t\t$this->call('TiendaSeeder');\n $this->call('OfertaSeeder');\n $this->call('VentaSeeder');\n }", "public function run()\n {\n $this->call(UserRolesSeeder::class);\n $this->call(UserPermissionsSeeder::class);\n $this->call(UserSeeder::class);\n $this->call(EspecieSeeder::class);\n $this->call(MascotaSeeder::class);\n /*Mascota::factory(44)->create();*/\n }", "public function run()\n {\n// $this->call('CheckoutUniquesTableSeeder');\n $this->call('StatusTableSeeder');\n $this->call('RolesTableSeeder');\n $this->call('LoginTypeTableSeeder');\n $this->call('UsersTableSeeder');\n $this->call('FilesTableSeeder');\n $this->call('CategoriesTableSeeder');\n $this->call('EventsTableSeeder');\n $this->call('GoodsTableSeeder');\n $this->call('ProfilesTableSeeder');\n $this->call('CustomersTableSeeder');\n $this->call('BasketsTableSeeder');\n $this->call('BasketsGoodsTableSeeder');\n $this->call('PaymentTableSeeder');\n $this->call('AddressesTableSeeder');\n $this->call('ReceiversTableSeeder');\n }", "public function run()\n {\n Model::unguard();\n\n $this->call(ConfigTableSeeder::class);\n $this->call(LanguagesTableSeeder::class);\n $this->call(LocalesTableSeeder::class);\n // $this->call(PackageTableSeeder::class);\n // $this->call(PageDesignTableSeeder::class);\n // if(env('APP_ENV', false) == 'demo') {\n // $this->call(UsersTableSeeder::class);\n // }\n // $this->call(CustomerGroupTableSeeder::class);\n \n // $this->call(TicketStatusTableSeeder::class);\n // $this->call(MailProviderTabelSeeder::class);\n $this->call(DepartmentTableSeeder::class);\n // $this->call(FrontEndTableSeeder::class);\n \n\n Model::reguard();\n }", "public function run()\n {\n $this->call(PermissionSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(groupTableSeeder::class);\n $this->call(usergroupTableSeeder::class);\n $this->call(MotifTableSeeder::class);\n /*$this->call('filesTableSeeder');\n $this->call('periodTableSeeder');\n $this->call('contributionTableSeeder');\n\n $this->call('adsTableSeeder');\n $this->call('ads_has_filesTableSeeder');\n $this->call('ballotTableSeeder');\n $this->call('propositionTableSeeder');\n */\n //Model::reguard();\n }", "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t$this->call('CarouselTableSeeder');\n\t\t$this->call('NewsTableSeeder');\n\t\t$this->call('GlobalServiceCategoriesTableSeeder');\n\t\t$this->call('ServiceCategoriesTableSeeder');\n\t\t$this->call('ServicesTableSeeder');\n\t\t$this->call('CentresTableSeeder');\n\t\t$this->call('MembersTableSeeder');\n\t\t$this->call('LinksTableSeeder');\n $this->call('DocumentsCategoriesTableSeeder');\n\t\t$this->call('VideosTableSeeder');\n\t\t$this->call('PressTableSeeder');\n \n $this->call('UsersTableSeeder');\n\t}", "public function run()\n {\n $this->call(ProvinceTableSeeder::class);\n $this->call(MrtTableSeeder::class);\n $this->call(BtsTableSeeder::class);\n $this->call(UserTableSeeder::class);\n\n $this->call(DealerTableSeeder::class);\n $this->call(Mrt_searchTableSeeder::class);\n $this->call(Bts_searchTableSeeder::class);\n $this->call(ShoppingTableSeeder::class);\n $this->call(ShoppingToTableSeeder::class);\n \n \n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(CvTableSeeder::class);\n $this->call(SkillTableSeeder::class);\n $this->call(CvSkillTableSeeder::class); \n $this->call(UniversitiesTableSeeder::class);\n $this->call(EducationTableSeeder::class);\n $this->call(CompaniesTableSeeder::class);\n $this->call(WorkExperincesTableSeeder::class);\n $this->call(PortfolioTableSeeder::class);\n $this->call(ReferencesTableSeeder::class);\n }", "public function run()\n {\n //Nota: primero ejecuta los seeders de las tablas maestras, luego comentalos y ejecuta el de las tablas hijas\n\n //$this->call(UsersTableSeeder::class);\n $this->call('AliquotTableSeeder');\n $this->call('PrecioTableSeeder');\n $this->call('GroupsTableSeeder');\n $this->call('ProductTableSeeder');\n $this->call('RommTableSeeder');\n $this->call('ClientTableSeeder');\n $this->call('RequestTableSeeder');\n $this->call('TypeTableSeeder');\n $this->call('FaenaTableSeeder');\n $this->call('DepartmentTableSeeder');\n $this->call('PositionTableSeeder');\n\n\n\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(CreateUsersSeeder::class);\n $this->call(GameTableSeeder::class);\n\n $this->call(ScenariosTableSeeder::class);\n $this->call(PrefabsTableSeeder::class);\n $this->call(PrefabScanrioTableSeeder::class);\n\n\n // $this->call(KnowledgeComponentsTableSeeder::class);\n }", "public function run()\n {\n $this->call(CountrySeeder::class);\n $this->call(CitySeeder::class);\n\n $this->call(UserSeeder::class);\n $this->call(StatusSeeder::class);\n Company::factory(20)->create();\n $this->call(StatusSeeder::class);\n $this->call(RoleSeeder::class);\n $this->call(CategorySeeder::class);\n Offer::factory(100)->create();\n Review::factory(100)->create();\n Project::factory(30)->create();\n Image::factory(90)->create();\n }", "public function run()\n {\n Model::unguard();\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n }\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(EntrustTableSeeder::class);\n $this->call(SchoolsTableSeeder::class);\n $this->call(CourseTableSeeder::class);\n $this->call(ClassesTableSeeder::class);\n $this->call(FilesTableSeeder::class);\n $this->call(StudentsTableSeeder::class);\n $this->call(CourseFilesTableSeeder::class);\n $this->call(ResultsTableSeeder::class);\n $this->call(MarksTableSeeder::class);\n $this->call(LaboratoryTableSeeder::class);\n $this->call(LabPhotosTableSeeder::class);\n $this->call(StaffsTableSeeder::class);\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }\n\n Model::reguard();\n }", "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('RolesTableSeeder');\n\t\t$this->call('BooksTableSeeder');\n\t\t$this->call('SubjectsTableSeeder');\n\t\t$this->call('ExercisesTableSeeder');\n\t\t$this->call('QuestionsTableSeeder');\n\t\t$this->call('AnswersTableSeeder');\n\t\t$this->call('ScoresTableSeeder');\n\t\t$this->call('RoleUserTableSeeder');\n\t\t$this->call('HighscoresTableSeeder');\n\t\t$this->call('LowscoresTableSeeder');\n\t\t$this->call('SubscriptionsTableSeeder');\n\n\t}", "public function run()\n\t{\n $this->cleanDatabase();\n\n Eloquent::unguard();\n\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('ProductsTableSeeder');\n\t\t$this->call('CartsTableSeeder');\n $this->call('StoreTableSeeder');\n $this->call('AdvertisementsTableSeeder');\n \n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(AdminTablesSeeder::class);\n\n $this->call(TemplatesTableSeeder::class);\n\n $this->call(ActivitiesSeeder::class);\n\n $this->call(AwardsSeeder::class);\n\n// $this->call(CertificatesSeeder::class);\n $this->call(AdminMenuTableSeeder::class);\n $this->call(ActivitiesTableSeeder::class);\n// $this->call(AwardsTableSeeder::class);\n }", "public function run()\n\t{\n\t\tEloquent::unguard();\n\t\t$this->call('UserTableSeeder');\n\t\t$this->call('LocationTableSeeder');\t\t\n\t\t$this->call('CategoriesTableSeeder');\n $this->call('VendorTableSeeder');\n $this->call('TaskTableSeeder');\n $this->call('BudgetTableSeeder');\n $this->call('BudgetRangeTableSeeder');\n\n $this->call('SongTableSeeder');\n $this->call('SongCategoryTableSeeder');\n\n $this->call('TabsTableSeeder');\n\n $this->call('FtNamTuoiTableSeeder');\n $this->call('FtXemNgayTableSeeder');\n $this->call('FtHungNienTableSeeder');\n $this->call('WeddingWebsiteTableSeeder');\n $this->call('TabWebsiteTableSeeder');\n $this->call('UserCheckListTableSeeder');\n\n\t}", "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t// $this->call('UserTableSeeder');\n\t\t$this->call('DwellersTableSeeder');\n\t\t$this->call('ExpensesTableSeeder');\n\t\t$this->call('MonthsTableSeeder');\n\t\t$this->call('CategoriesTableSeeder');\n\t\t$this->call('ResidentialsTableSeeder');\n\t\t$this->call('RolesTableSeeder');\n\t\t$this->call('PermissionsTableSeeder');\n\t\t$this->call('ApartmentsTableSeeder');\n\t}", "public function run()\n {\n $this->call([UsersTableSeeder::class]);\n $this->call([ContratosTableSeeder::class]);\n $this->call([UsuariosTableSeeder::class]);\n $this->call([UnidadesTableSeeder::class]);\n $this->call([AtestadosTableSeeder::class]);\n }", "public function run()\n\t{\n\t\tModel::unguard();\n\n\t\t// $this->call('UserTableSeeder');\n\t\t$this->call('ArticlesSeeder');\n $this->call('CategoriesSeeder');\n $this->call('LangsSeeder');\n $this->call('UsersSeeder');\n $this->call('TextsSeeder');\n\n\t}", "public function run()\n\t{\n\t\t//composer require fzaninotto/faker\n\t\t\n\t\t$this->call(populateAllSeeder::class);\n\t\t\n\t}", "public function run()\n {\n $this->call(MedicalTestTypesSeeder::class);\n $this->call(MedicalCentersSeeder::class);\n $this->call(MedicalTestsSeeder::class);\n $this->call(MedicalTestPricesSeeder::class);\n }", "public function run()\n {\n // Disable guard for seeder\n Eloquent::unguard();\n\n $this->call(AvasTableSeeder::class);\n $this->call(WineriesTableSeeder::class);\n $this->call(AvaWineryTableSeeder::class);\n $this->call(TimesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(FavoritesTableSeeder::class);\n $this->call(WishlistsTableSeeder::class);\n }", "public function run()\n {\n $this->call(UserTableSeeder::class);\n $this->call(AboutSeeder::class);\n $this->call(ContactTableSeeder::class);\n $this->call(SliderSeeder::class);\n $this->call(TeamMemberSeeder::class);\n $this->call(BangabandhuInfoSeeder::class);\n }", "public function run() {\n $this->call(UserSeeder::class);\n $this->call(PermissionSeeder::class);\n $this->call(CreateAdminUserSeeder::class);\n // $this->call(PhoneSeeder::class);\n // $this->call(AddressSeeder::class);\n\n $this->call(ContactFormSeeder::class);\n //$this->call(ContactSeeder::class);\n\n User::factory()->count(20)->create()->each(function ($user) {\n // Seed the relation with one address\n $address = Address::factory()->make();\n $user->address()->save($address);\n\n // Seed the relation with one phone\n $phone = Phone::factory()->make();\n $user->phone()->save($phone);\n\n // Seed the relation with 15 contacts\n $contact = Contact::factory()->count(25)->make();\n $user->contacts()->saveMany($contact);\n });\n }", "public function run()\n {\n Model::unguard();\n\n // $this->call(UserTableSeeder::class);\n $this->call(DepartamentoSeeder::class);\n $this->call(ProvinciaSeeder::class);\n $this->call(DistritoSeeder::class);\n $this->call(PersonSeeder::class);\n $this->call(WorkertypeSeeder::class);\n $this->call(MenuoptioncategorySeeder::class);\n $this->call(MenuoptionSeeder::class);\n $this->call(UsertypeSeeder::class);\n $this->call(PermissionSeeder::class);\n $this->call(UserSeeder::class);\n\n Model::reguard();\n }", "public function run()\n {\n $this->call(OrgCategoriesSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(TargetSubcategoriesTableSeeder::class);\n $this->call(TargetCategoriesTableSeeder::class);\n $this->call(TargetItemsTableSeeder::class);\n $this->call(ParentalStatusesSeeder::class);\n $this->call(GenderSeeder::class); \n $this->call(EducationSeeder::class); \n $this->call(IncomeSeeder::class); \n $this->call(LanguagesSeeder::class); \n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n /* Curso::factory(8)->create(); */\n /* $this->call(CidepartamentoSeeder::class);\n $this->call(CategoriaSeeder::class);\n $this->call(GeneroSeeder::class); */\n\n /* $this->call(UserSeeder::class); */\n\n\n /* Estudiante::factory(20)->create(); */\n\n /* Profesore::factory(12)->create(); */\n\n\n /* $this->call(EstudianteSeeder::class); */\n /* $this->call(CursoSeeder::class); */\n }", "public function run()\n {\n $this->call(BodypartSeeder::class);\n $this->call(ExerciseSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(JournalExerciseSeeder::class);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(EtatSeeder::class);\n $this->call(VilleSeeder::class);\n $this->call(CentreSeeder::class);\n $this->call(ReservationSeeder::class);\n $this->call(PrioriteSeeder::class);\n $this->call(EtatCentreSeeder::class);\n $this->call(AgendaSeeder::class);\n $this->call(SaisonDetailSeeder::class);\n }", "public function run()\n { \n $this->call(CategoriesTableSeeder::class); \n $this->call(ConsumableTableSeeder::class);\n $this->call(NonconsumableTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(RoleTableSeeder::class);\n $this->call(EquipmentTableSeeder::class);\n $this->call(LocationTableSeeder::class);\n $this->call(ProperinventoryTableSeeder::class);\n// $this->call(TruncateBorrowTableSeeder::class);\n\n }", "public function run()\n {\n if (defined('STDERR')) fwrite(STDERR, print_r(\"\\n--- Seeding ---\\n\", TRUE));\n\n if (App::environment('production')) {\n if (defined('STDERR')) fwrite(STDERR, print_r(\"--- ERROR: Seeding in Production is prohibited ---\\n\", TRUE));\n return;\n }\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(ProvincesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n $this->call(DistrictsTableSeeder::class);\n $this->call(ConfigsTableSeeder::class);\n $this->call(ConfigContentsTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n if (defined('STDERR')) fwrite(STDERR, print_r(\"Set FOREIGN_KEY_CHECKS=1 --- DONE\\n\", TRUE));\n\n // \\Artisan::call('command:regenerate-user-feeds');\n\n \\Cache::flush();\n\n if (defined('STDERR')) fwrite(STDERR, print_r(\"--- End Seeding ---\\n\\n\", TRUE));\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n\n $this->call('UsersTableSeeder');\n $this->call('ItemsTableSeeder');\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(LaratrustSeeder::class);\n $this->call(OverrideLaratrustDefaultUser::class);\n $this->call(DefaultUnitTableSeeder::class);\n $this->call(PhoneProviderTableSeeder::class);\n\n /* DUMMY DATA */\n if (App::environment('local', 'dev')) {\n\n $this->command->info('Local/Development Enviroment Detected. Starting Dummy Data Seeder...');\n\n $this->call(BankTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n $this->call(ProductTypeTableSeeder::class);\n $this->call(SupplierTableSeeder::class);\n $this->call(CustomerTableSeeder::class);\n $this->call(TrucksTableSeeder::class);\n $this->call(VendorTruckingTableSeeder::class);\n $this->call(WarehouseTableSeeder::class);\n $this->call(PriceLevelTableSeeder::class);\n $this->call(TruckMaintenancesTableSeeder::class);\n }\n\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n factory(App\\Lead::class,150)->create()->each(function($u){\n $u->domains()->save(factory(App\\Domain::class)->make());\n })->each(function($u){\n $u->communicationValues()->save(factory(\\App\\CommunicationValue::class)->make());\n });\n\n $this->call(DomainsTableSeeder::class);\n\n $this->call(CommunicationValuesTableSeeder::class);\n\n $this->call(CommentsTableSeeder::class);\n\n $this->call(CommunicationRecordsTableSeeder::class);\n }", "public function run()\n {\n \n\n \n $this->call(BodyTypeTableSeeder::class);\n $this->call(ChildrenWithYouTableSeeder::class);\n $this->call(CountryGrewUpTableSeeder::class);\n $this->call(DressTableSeeder::class);\n $this->call(EducationTableSeeder::class);\n $this->call(EthnicityTableSeeder::class);\n $this->call(HobbiesTableSeeder::class);\n $this->call(HowManyChildrenTableSeeder::class);\n $this->call(LanguageTableSeeder::class); \n $this->call(MaritalStatusTableSeeder::class);\n $this->call(ProfessionTableSeeder::class);\n $this->call(RoleTableSeeder::class); \n $this->call(SextableSeeder::class);\n $this->call(StatusInCanadaTableSeeder::class);\n $this->call(StatustableSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(AdminActionsTableSeeder::class);\n\n // $this->call(SeedWholeDatabaseSeeder::class);\n \n $this->call(LocationSeederTable::class);\n \n \n \n }", "public function run() {\n\n // seeder para insertar trabajos\n $this->call(LanaSeeder::class);\n\n // seeder para insertar usuarios\n $this->call(UsuariosSeeder::class);\n\n // seeder para introducir trabajadores\n $this->call(LangileaSeeder::class);\n\n //seeder para insertar informacion de las fotos\n $this->call(ArgazkiSeeder::class);\n\n //seeder para insertar informacion de las citas\n $this->call(ZitaSeeder::class);\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(personasSeeder::class);\n $this->call(personalSeeder::class);\n $this->call(adminSeeder::class);\n $this->call(carrerasSeeder::class);\n $this->call(alumnoSeeder::class);\n $this->call(PlanDeEstudiosSeeder::class);\n $this->call(MateriasSeeder::class);\n $this->call(profesoresSeeder::class);\n $this->call(coordinadoresSeeder::class);\n $this->call(GruposSeeder::class);\n $this->call(eventosSeeder::class);\n $this->call(CalificacionesSeeder::class);\n $this->call(AulasSeeder::class);\n $this->call(ConfiguracionSeeder::class);\n $this->call(kardexSeeder::class);\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(GenresTableSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(ArtistTableSeeder::class);\n $this->call(AlbumTableSeeder::class);\n $this->call(TrackTableSeeder::class);\n $this->call(ListenedTableSeeder::class);\n $this->call(TrackGenreTableSeeder::class);\n $this->call(TrackStatusTableSeeder::class);\n $this->call(SubscriptionTableSeeder::class);\n }", "public function run()\n {\n $this->call([UserDatabaseSeeder::class,Lab406DatabaseSeeder::class]);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(PostsTableSeeder::class);\n $this->call(OfficesTableSeeder::class);\n $this->call(SpecialtiesTableSeeder::class);\n $this->call(DoctorsTableSeeder::class);\n $this->call(SurgeriesTableSeeder::class);\n $this->call(ExamsTableSeeder::class);\n $this->call(ConfigurationsTableSeeder::class);\n $this->call(ChileTableSeeder::class);\n $this->call(AgreementsTableSeeder::class);\n $this->call(RoleTableSeeder::class);\n \n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(OnemTableSeeder::class);\n $this->call(DurumTableSeeder::class);\n $this->call(YetkiTableSeeder::class);\n $this->call(BildirimTursSeeder::class);\n\n }", "public function run()\n {\n $this->disableForeignKeys();\n\n\n $this->call(CountriesTableSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(PermissionRoleTableSeeder::class);\n $this->call(UserRoleTableSeeder::class);\n $this->call(LabsTableSeeder::class);\n $this->call(ClinicNurseSeeder::class);\n\n $this->call(ClinicTableSeeder::class);\n $this->call(AppointmentTableSeeder::class);\n $this->call(UserSpecialtiesTableSeeder::class);\n\n $this->enableForeignKeys();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(StartUpTableSeeder::class);\n $this->call(StartUpCategoryTableSeeder::class);\n $this->call(TechPostsTableSeeder::class);\n $this->call(TechCategoryTableSeeder::class);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(RegionsTableSeeder::class);\n $this->call(ProvincesTableSeeder::class);\n $this->call(DistrictsTableSeeder::class);\n $this->call(SubDistrictsTableSeeder::class);\n $this->call(PostcodesTableSeeder::class);\n\n if (env('APP_ENV') !== 'production') {\n // Wipe up 5 churches, and each church has 5 cells, and each cell has 20 members associated with.\n // In other word, we wipe up 500 church members.\n for ($i = 0; $i < 2; $i++) {\n $church = factory(\\App\\Models\\Church::class)->create();\n\n $church->areas()->saveMany(factory(\\App\\Models\\Area::class, 2)->create([\n 'church_id' => $church->id\n ])->each(function($area) {\n $area->cells()->saveMany(factory(\\App\\Models\\Cell::class, 2)->create([\n 'area_id' => $area->id\n ])->each(function($cell) {\n $cell->members()->saveMany(factory(App\\Models\\Member::class, 10)->create([\n 'cell_id' => $cell\n ]));\n }));\n }));\n }\n }\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(DefaultUserSeeder::class);\n $this->call(SportsProductsSeeder::class);\n $this->call(PhonesProductsSeeder::class);\n $this->call(HeadphonesProductsSeeder::class);\n $this->call(ShirtsProductsSeeder::class);\n $this->call(FurnituresProductsSeeder::class);\n $this->call(VideoGamesProductsSeeder::class);\n $this->call(Payment_MethodsSeeder::class);\n $this->call(ShippingMethodsSeeder::class);\n }", "public function run()\n {\n Model::unguard();\n\n // $this->call(UserTableSeeder::class);\n \n\t\n\n $this->call('CategoriaTableSeeder');\n $this->call('Ciclo_VidaTableSeeder');\n $this->call('Forma_FarmaceuticaTableSeeder');\n $this->call('Modalidad_VentaTableSeeder');\n $this->call('Presentacion_ComercialTableSeeder');\n $this->call('Via_AdministracionTableSeeder');\n\n $this->call('RolTableSeeder');\n $this->call('UsuarioTableSeeder');\n $this->call('PermisoTableSeeder');\n $this->call('MensajeTableSeeder');\n $this->call('PermisoUsuarioSeeder');\n\n\tModel::reguard();\n }", "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t$this->call('UserTableSeeder');\n\t\t$this->call('CategoriasSeeder');\n\t\t$this->call('ClientesSeeder');\n\t\t$this->call('CanchasSeeder');\n\t\t$this->call('DiasSeeder');\n\t\t$this->call('FeriadosSeeder');\n\t\t$this->call('BandasHorariasSeeder');\n\t\t$this->call('PreciosSeeder');\n\t}", "public function run()\n {\n Model::unguard();\n\n $this->call('UserTableSeeder');\n $this->call('ProfiloTableSeeder');\n $this->call('GruppoTableSeeder');\n $this->call('UsershasgruppoTableSeeder');\n $this->call('ServizioTableSeeder');\n $this->call('GruppohasservizioTableSeeder');\n $this->call('CategoriaTableSeeder');\n $this->call('GenereTableSeeder');\n $this->call('TagliaTableSeeder');\n $this->call('CollezioneTableSeeder');\n $this->call('ColoreTableSeeder');\n $this->call('MarcaTableSeeder');\n $this->call('ModelloTableSeeder');\n //$this->call('CarrelloTableSeeder');\n //$this->call('FotoTableSeeder');\n //$this->call('OrdineTableSeeder');\n //$this->call('PreferitoTableSeeder');\n $this->call('QuantitaTableSeeder');\n $this->call('GenerehasmodelloTableSeeder');\n //$this->call('RecensioneTableSeeder');\n $this->call('GenerehascategoriaTableSeeder');\n $this->call('FotositoTableSeeder');\n //$this->call('CouponTableSeeder');\n //$this->call('AltreTableSeeder');\n //$this->call('ProdottoordinatoTableSeeder');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n \n $this->call(ZonasSeeder::class);\n $this->call(DepartamentosSeeder::class);\n $this->call(MunicipiosSeeder::class);\n $this->call(CategoriasSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(usersSeeder::class);\n $this->call(TiposPruebasSeeder::class);\n $this->call(ResultadosPruebasSeeder::class);\n $this->call(GravedadesSintomasSeeder::class);\n $this->call(SintomasSeeder::class);\n }", "public function run()\n {\n\n $this->call(NotificationsSeeder::class);\n factory(\\App\\Models\\City::class, 20)->create();\n $this->call(TransactionStatusSeeder::class);\n $this->call(LeadStatusesSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(UsersSeeder::class);\n $this->call(UserCitySeeder::class);\n $this->call(LeadRejectionReasonsSeeder::class);\n factory(\\App\\Models\\User::class, 4)->create();\n factory(\\App\\Models\\Lead::class, 100)->create();\n $this->call(LeadTypesSeeder::class);\n\n }", "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t// $this->call('AdminTableSeeder');\n\t\t// $this->call('UserTableSeeder');\n\t\t// $this->call('MenuTableSeeder');\n\t\t// $this->call('ProductTableSeeder');\n\t\t// $this->call('CategoryTableSeeder');\n\t\t// $this->call('OptionTableSeeder');\n\t\t// $this->call('OptionGroupTableSeeder');\n\t\t// $this->call('TypeTableSeeder');\n\t\t// $this->call('LayoutTableSeeder');\n\t\t// $this->call('LayoutDetailTableSeeder');\n\t\t// $this->call('BannerTableSeeder');\n\t\t// $this->call('ConfigureTableSeeder');\n\t\t// $this->call('PageTableSeeder');\n\t\t// $this->call('ImageTableSeeder');\n\t\t// $this->call('ImageableTableSeeder');\n\t\t// ======== new Seed =======\n\t\t$this->call('AdminsTableSeeder');\n\t\t$this->call('BannersTableSeeder');\n\t\t$this->call('CategoriesTableSeeder');\n\t\t$this->call('ConfiguresTableSeeder');\n\t\t$this->call('ImageablesTableSeeder');\n\t\t$this->call('ImagesTableSeeder');\n\t\t$this->call('LayoutsTableSeeder');\n\t\t$this->call('LayoutDetailsTableSeeder');\n\t\t$this->call('MenusTableSeeder');\n\t\t$this->call('OptionablesTableSeeder');\n\t\t$this->call('OptionsTableSeeder');\n\t\t$this->call('OptionGroupsTableSeeder');\n\t\t$this->call('PagesTableSeeder');\n\t\t$this->call('PriceBreaksTableSeeder');\n\t\t$this->call('ProductsTableSeeder');\n\t\t$this->call('ProductsCategoriesTableSeeder');\n\t\t$this->call('SizeListsTableSeeder');\n\t\t$this->call('TypesTableSeeder');\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('ContactsTableSeeder');\n\t\t$this->call('RolesTableSeeder');\n\t\t$this->call('PermissionsTableSeeder');\n\t\t$this->call('PermissionRoleTableSeeder');\n\t\t$this->call('AssignedRolesTableSeeder');\n\t\t$this->call('OrdersTableSeeder');\n\t\t$this->call('OrderDetailsTableSeeder');\n\t\tCache::flush();\n\t\t// BackgroundProcess::copyFromVI();\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call('PersonaSeeder');\n $this->call('RolSeeder');\n $this->call('PrivilegiosSeeder');\n $this->call('UsuarioSeeder');\n $this->call('PrivilegiosDefaultSeeder');\n $this->call('UsuarioPrivilegiosSeeder');\n }", "public function run()\r\n {\r\n $this->call(EcomCategoriesTableSeeder::class);\r\n $this->call(EcomProductsTableSeeder::class);\r\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(InfosEntrepriseSeeder::class);\n $this->call(InfosPalierCommissionseeder::class);\n $this->call(AbonnementSeeder::class);\n $this->call(ParrainageSeeder::class);\n $this->call(DircommissionSeeder::class);\n $this->call(BiensTableSeeder::class);\n $this->call(PasserellesTableSeeder::class);\n $this->call(FormationsSeeder::class);\n $this->call(FormationCategoriesSeeder::class);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(StatusesTableSeeder::class);\n $this->call(BulletinsTableSeeder::class);\n $this->call(OffersTableSeeder::class);\n }", "public function run()\n {\n\n $this->call(UsersTableSeeder::class);\n $this->call(StudentsTableSeeder::class);\n\n $this->call(SectionsTableSeeder::class);\n $this->call(SectionsTableHeaderFooterSeeder::class);\n $this->call(QuestionsTableSeeder::class);\n $this->call(AnswersTableSeeder::class);\n\n $this->call(LocationsTableSeeder::class);\n $this->call(WardsTableSeeder::class);\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n \n $this->call(BooksTableSeeder::class);\n \n $this->call(BookUnitsTableSeeder::class);\n \n $this->call(BooksInHandsTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(EstateTableSeeder::class);\n $this->call(EstateImageTableSeeder::class);\n $this->call(EstateArticleTableSeeder::class);\n $this->call(EstateArticleImagesTableSeeder::class);\n $this->call(ArticleTableSeeder::class);\n $this->call(LinkageTokenTableSeeder::class);\n\n // mall\n $this->call(ShopBusinessTableSeeder::class);\n $this->call(ShopFloorTableSeeder::class);\n $this->call(ShopTableSeeder::class);\n $this->call(CommodityTableSeeder::class);\n $this->call(CommodityImageTableSeeder::class);\n\n // 电商推荐\n $this->call(LinkageRoleSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call('RoleTableSeeder');\n $this->call('PositionsTableSeeder');\n $this->call('EditionTypesTableSeeder');\n $this->call('StagesTableSeeder');\n $this->call('WorkType_PositionsTableSeeder');\n $this->call('WorkTypesTableSeeder');\n\n\n }", "public function run()\n {\n $this->call(StaffsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(FreeTimesTableSeeder::class);\n $this->call(HolidaysTableSeeder::class);\n $this->call(SickDaysTableSeeder::class);\n $this->call(LieuHoursTableSeeder::class);\n }", "public function run()\n {\n $this->call(qTableSeeder::class);\n $this->call(examinerTableSeeder::class);\n $this->call(answerTableSeeder::class);\n $this->call(custLeadTableSeeder::class);\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n {\n $this->call('EstacionesSeeder');\n $this->call('RutasSeeder');\n $this->call('RutaEstacionSeeder');\n $this->call('CapacidadSeeder');\n //$this->call('VehiculosSeeder');\n //$this->call('TripulantesSeeder');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call([\n HomeSeeder::class,\n ]);\n\n $this->call([\n NewsSeeder::class,\n ]);\n\n $this->call([\n ProductSeeder::class,\n ]);\n\n $this->call([\n ProgramSeeder::class,\n ]);\n \n $this->call([\n AboutSeeder::class,\n ]);\n\n $this->call([\n ContactSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(UserTableSeeder::class);\n $this->call(RolesAndPermissionsSeeder::class);\n $this->call(ProductTypeTableSeeder::class); \n $this->call(BrandTableSeeder::class);\n $this->call(EmployeeTypeTableSeeder::class);\n \n $this->call(CitiesTableSeeder::class);\n $this->call(BranchTableSeeder::class);\n\n //$this->call(CustomerTableSeeder::class);\n //$this->call(EmployeeTableSeeder::class);\n //$this->call(ProductTableSeeder::class);\n //$this->call(StockTableSeeder::class);\n \n }", "public function run()\n {\n $this->call(GenderSeeder::class);\n $this->call(TitleSeeder::class);\n $this->call(CountrySeeder::class);\n $this->call(LocationSeeder::class);\n $this->call(EmployeeSeeder::class);\n $this->call(DepartmentSeeder::class);\n $this->call(EmployeeDepartmentSeeder::class);\n $this->call(NotesSeeder::class);\n }", "public function run()\n\t{\n\t\tModel::unguard();\n\n\t\t$this->call('StatusGroupTableSeeder');\n $this->call('StatusTableSeeder');\n $this->call('StatusMappingTableSeeder');\n $this->call('RoleGroupTableSeeder');\n $this->call('RoleTableSeeder');\n $this->call('RoleMappingTableSeeder');\n $this->call('ResponsibilityTableSeeder');\n $this->call('RoleResponsibilityTableSeeder');\n $this->call('MenuTableSeeder');\n $this->call('MenuResponsibilityTableSeeder');\n $this->call('UserTableSeeder');\n $this->call('ProjectTypeTableSeeder');\n\t}", "public function run()\n {\n $this->call(PerspectivasTableSeeder::class);\n $this->call(ObjetivosTableSeeder::class);\n $this->call(IniciativasTableSeeder::class);\n $this->call(ProgramacionesTableSeeder::class);\n $this->call(AvancesTableSeeder::class);\n }", "public function run()\n {\n $this->call(OptionsTableSeeder::class);\n $this->call(AdvicesTableSeeder::class);\n $modules = Module::all();\n foreach ($modules as $module) {\n $name = $module->get('name');\n $this->call('Modules\\\\' . $name . '\\\\Database\\\\Seeders\\\\' . $name . 'DatabaseSeeder');\n }\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(AdopcionsTableSeeder::class);\n $this->call(MascotasTableSeeder::class);\n $this->call(RequisitograsTableSeeder::class);\n $this->call(RequisitopeqsTableSeeder::class);\n $this->call(RequisitosTableSeeder::class);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(GuestsTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(StatesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n $this->call(DistrictsTableSeeder::class);\n $this->call(PanelsTableSeeder::class);\n $this->call(ComplaintsTableSeeder::class);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'[email protected]'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call([\n LevelsTableSeeder::class,\n LocationsTableSeeder::class,\n UsersTableSeeder::class,\n UnitsTableSeeder::class,\n CategoriesTableSeeder::class,\n SubcategoriesTableSeeder::class,\n CategorySubcategoryTableSeeder::class,\n // ProductsTableSeeder::class,\n RegionsTableSeeder::class,\n DistrictsTableSeeder::class,\n WardsTableSeeder::class,\n UserWardTableSeeder::class,\n LocationUserTableSeeder::class,\n StatusesTableSeeder::class,\n TransactiontypesTableSeeder::class,\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(ExamSubjectSeeder::class);\n $this->call(ActivitiesSeeder::class);\n $this->call(CountriesSeeder::class);\n $this->call(StatesSeeder::class);\n $this->call(StudentSchoolNameSeeder::class);\n $this->call(WriteitDetailSeeder::class);\n $this->call(WriteitPersonalSeeder::class);\n $this->call(WriteitQuestionSeeder::class);\n $this->call(Collegeyears::class);\n }" ]
[ "0.8647181", "0.8537607", "0.84950906", "0.8493692", "0.8485473", "0.84805495", "0.84482235", "0.8440458", "0.8432637", "0.84251094", "0.842233", "0.8414579", "0.8410823", "0.84093714", "0.8395824", "0.8395099", "0.839497", "0.8393797", "0.83898157", "0.83884156", "0.83864564", "0.83823127", "0.8376608", "0.83763146", "0.83755636", "0.8373925", "0.8373468", "0.83720773", "0.837101", "0.83673376", "0.8366301", "0.8358262", "0.835799", "0.83578014", "0.8355375", "0.83533597", "0.83528364", "0.83524096", "0.835112", "0.83484906", "0.83442205", "0.8344006", "0.83434373", "0.834325", "0.83396876", "0.8339585", "0.8337724", "0.83343333", "0.8333432", "0.833206", "0.8330595", "0.83301127", "0.83286256", "0.83284503", "0.83278716", "0.8326891", "0.83248794", "0.83226746", "0.8322234", "0.83218193", "0.832121", "0.83177745", "0.83164513", "0.83149403", "0.8314581", "0.83144027", "0.83103645", "0.83082294", "0.8307784", "0.83071446", "0.83065873", "0.8306154", "0.83035797", "0.830126", "0.8300139", "0.83000755", "0.82999706", "0.8299092", "0.8298449", "0.8298201", "0.8296137", "0.82956123", "0.8294689", "0.8293998", "0.8293911", "0.8293869", "0.82936126", "0.8292804", "0.82912064", "0.82910466", "0.8290446", "0.8289908", "0.8289498", "0.828917", "0.82882243", "0.82878834", "0.8285728", "0.8283466", "0.82825243", "0.82825005", "0.82815874" ]
0.0
-1
Seed the application's database.
public function run() { // Ressalto que a ordem aqui importa muito, para não criar problema com as dependencias existentes. $this->call([ // Inserts das configurações do Sistema ConfiguracaoTableSeeder::class, // Insert das informações do usuário CategoriaTableSeeder::class, // Insert das informações do material cientifico ColecaoTableSeeder::class, PapelTableSeeder::class, ArquivoExtensaoTableSeeder::class, SituacaoTableSeeder::class, ]); if(!app()->environment('production')): // Caso esteja no ambiente de teste ou desenvolvimento.. $this->call([ // Insert das informações do usuário InformacaoPessoalTableSeeder::class, UsuarioTableSeeder::class, // Insert das informações do material cientifico CursoTableSeeder::class, DisciplinaTableSeeder::class, // Insert de palavras chaves TagsTableSeeder::class, ]); endif; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function dbSeed(){\n\t\tif (App::runningUnitTests()) {\n\t\t\t//Turn foreign key checks off\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');// <- USE WITH CAUTION!\n\t\t\t//Seed tables\n\t\t\tArtisan::call('db:seed');\n\t\t\t//Turn foreign key checks on\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;');// <- SHOULD RESET ANYWAY BUT JUST TO MAKE SURE!\n\t\t}\n\t}", "protected function seedDB()\n {\n $ans = $this->ask('Seed your database?: ', 'y');\n\n // Check if the answer is true\n if (preg_match('/^y/', $ans))\n {\n $this->call('db:seed');\n $this->comment('');\n $this->comment('Database successfully seeded.');\n $this->comment('=====================================');\n echo \"Your app is now ready!\";\n }\n }", "protected function seedDatabase(): void\n {\n $this->seedProductCategories();\n $this->seedProducts();\n }", "public function setupDatabase()\n {\n Artisan::call('migrate:refresh');\n Artisan::call('db:seed');\n\n self::$setupDatabase = false;\n }", "public function run()\n {\n $this->seed('FormsMenuItemsTableSeeder');\n $this->seed('FormsDataTypesTableSeeder');\n $this->seed('FormsDataRowsTableSeeder');\n $this->seed('FormsPermissionsTableSeeder');\n $this->seed('FormsSettingsTableSeeder');\n $this->seed('FormsTableSeeder');\n }", "public function run()\n {\n if (defined('STDERR')) fwrite(STDERR, print_r(\"\\n--- Seeding ---\\n\", TRUE));\n\n if (App::environment('production')) {\n if (defined('STDERR')) fwrite(STDERR, print_r(\"--- ERROR: Seeding in Production is prohibited ---\\n\", TRUE));\n return;\n }\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(ProvincesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n $this->call(DistrictsTableSeeder::class);\n $this->call(ConfigsTableSeeder::class);\n $this->call(ConfigContentsTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n if (defined('STDERR')) fwrite(STDERR, print_r(\"Set FOREIGN_KEY_CHECKS=1 --- DONE\\n\", TRUE));\n\n // \\Artisan::call('command:regenerate-user-feeds');\n\n \\Cache::flush();\n\n if (defined('STDERR')) fwrite(STDERR, print_r(\"--- End Seeding ---\\n\\n\", TRUE));\n }", "protected function setupDatabase()\n {\n $this->call('migrate');\n $this->call('db:seed');\n\n $this->info('Database migrated and seeded.');\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function seedDatabase(): void\n {\n echo \"Running seeds\";\n\n // Folder where all the seeds are.\n $folder = __DIR__ . '/../seeds/';\n\n // Scan all files/folders inside database.\n $files = \\scandir($folder);\n\n $seeders = [];\n foreach ($files as $key => $file) {\n\n // All files that don't start with a dot.\n if ($file[0] !== '.') {\n\n // Load the file.\n require_once $folder . $file;\n\n // We have to call the migrations after because\n // some seeds are dependant from other seeds.\n $seeders[] = explode('.', $file)[0];\n }\n }\n\n // Run all seeds.\n foreach ($seeders as $seeder) {\n (new $seeder)->run();\n }\n }", "protected function seedDatabase()\n {\n //$this->app->make('db')->table(static::TABLE_NAME)->delete();\n\n TestExtendedModel::create([\n 'unique_field' => '999',\n 'second_field' => null,\n 'name' => 'unchanged',\n 'active' => true,\n 'hidden' => 'invisible',\n ]);\n\n TestExtendedModel::create([\n 'unique_field' => '1234567',\n 'second_field' => '434',\n 'name' => 'random name',\n 'active' => false,\n 'hidden' => 'cannot see me',\n ]);\n\n TestExtendedModel::create([\n 'unique_field' => '1337',\n 'second_field' => '12345',\n 'name' => 'special name',\n 'active' => true,\n 'hidden' => 'where has it gone?',\n ]);\n }", "public function initDatabase()\n {\n $this->call('migrate');\n\n $userModel = config('admin.database.users_model');\n\n if ($userModel::count() == 0) {\n $this->call('db:seed', ['--class' => AdminSeeder::class]);\n }\n }", "public function run ()\n {\n if (App::environment() === 'production') {\n exit('Seed should be run only in development/debug environment.');\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('role_user')->truncate();\n\n // Root user\n $user = User::find(1);\n $user->assignRole('owner');\n\n $user = User::find(2);\n $user->assignRole('admin');\n\n $user = User::find(3);\n $user->assignRole('admin');\n\n $user = User::find(4);\n $user->assignRole('moderator');\n\n $user = User::find(5);\n $user->assignRole('moderator');\n \n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n Model::unguard();\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n }\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(EntrustTableSeeder::class);\n\n $this->call(AccounttypeSeeder::class);\n $this->call(AppUserTableSeeder::class);\n $this->call(AppEmailUserTableSeeder::class);\n\n\n $this->call(CountryTableSeeder::class);\n $this->call(CityTableSeeder::class);\n\n\n $this->call(PostTypeTableSeeder::class);\n $this->call(PostSubTypeTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(AppPostSolvedTableSeeder::class);\n\n\n $this->call(AppCommentTypeTableSeeder::class);\n // $this->call(AppCommentTableSeeder::class);\n // $this->call(AppSubCommentTableSeeder::class);\n\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }\n\n Model::reguard();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('users')->truncate();\n DB::table('password_resets')->truncate();\n DB::table('domains')->truncate();\n DB::table('folders')->truncate();\n DB::table('bookmarks')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $this->seedUserAccount('[email protected]');\n $this->seedUserAccount('[email protected]');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n // $this->call(UsersTableSeeder::class);\n /* Schema::dropIfExists('employees');\n Schema::dropIfExists('users');\n Schema::dropIfExists('requests');\n Schema::dropIfExists('requeststatus');*/\n User::truncate();\n InstallRequest::truncate();\n RequestStatus::truncate();\n\n $cantidadEmployyes = 20;\n $cantidadUsers = 20;\n $cantidadRequestStatus = 3;\n $cantidadRequests = 200;\n\n factory(User::class, $cantidadUsers)->create();\n factory(RequestStatus::class, $cantidadRequestStatus)->create();\n factory(InstallRequest::class, $cantidadRequests)->create();\n }", "public function run()\n {\n Model::unguard();\n foreach (glob(__DIR__ . '/seeds/*.php') as $filename) {\n require_once($filename);\n }\n // $this->call(UserTableSeeder::class);\n //DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n// $this->call('CustomerTableSeeder');\n $this->call('PhotoTableSeeder');\n// $this->call('ProductTableSeeder');\n// $this->call('StaffTableSeeder');\n// $this->call('PasswordResetsTableSeeder');\n// $this->call('UsersTableSeeder');\n $this->call('CustomersTableSeeder');\n $this->call('EmployeesTableSeeder');\n $this->call('InventoryTransactionTypesTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n $this->call('OrderDetailsStatusTableSeeder');\n $this->call('OrdersTableSeeder');\n $this->call('InvoicesTableSeeder');\n $this->call('OrdersTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n $this->call('OrdersStatusTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n\n $this->call('OrdersTaxStatusTableSeeder');\n $this->call('PrivilegesTableSeeder');\n $this->call('EmployeePrivilegesTableSeeder');\n $this->call('ProductsTableSeeder');\n $this->call('InventoryTransactionsTableSeeder');\n $this->call('PurchaseOrderDetailsTableSeeder');\n\n $this->call('PurchaseOrderStatusTableSeeder');\n $this->call('PurchaseOrdersTableSeeder');\n $this->call('SalesReportsTableSeeder');\n $this->call('ShippersTableSeeder');\n $this->call('StringsTableSeeder');\n $this->call('SuppliersTableSeeder');\n //DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n Model::reguard();\n }", "public function run()\n\t{\n $this->cleanDatabase();\n\n Eloquent::unguard();\n\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('ProductsTableSeeder');\n\t\t$this->call('CartsTableSeeder');\n $this->call('StoreTableSeeder');\n $this->call('AdvertisementsTableSeeder');\n \n\t}", "public function run()\n {\n \tDB::table('seeds')->truncate();\n\n $seeds = array(\n array(\n 'name' => 'PreferencesTableSeeder_Update_11_18_2013',\n ),\n array(\n 'name' => 'PreferencesTableSeeder_Update_11_20_2013',\n ),\n );\n\n // Uncomment the below to run the seeder\n DB::table('seeds')->insert($seeds);\n }", "public function run()\n {\n $this->createDefaultPermissionSeeder(env('DB_CONNECTION', 'mysql'));\n }", "public function run()\n {\n $this->createDefaultPermissionSeeder(env('DB_CONNECTION', 'mysql'));\n }", "protected function setUp(): void\n {\n $db = new DB;\n\n $db->addConnection([\n 'driver' => 'sqlite',\n 'database' => ':memory:',\n ]);\n\n $db->bootEloquent();\n $db->setAsGlobal();\n\n $this->createSchema();\n }", "public function run()\n {\n //$this->call('UserTableSeeder');\n //$this->call('ProjectTableSeeder');\n //$this->call('TaskTableSeeder');\n\n /**\n * Prepare seeding\n */\n $faker = Faker::create();\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n Model::unguard();\n\n /**\n * Seeding user table\n */\n App\\User::truncate();\n factory(App\\User::class)->create([\n 'name' => 'KCK',\n 'email' => '[email protected]',\n 'password' => bcrypt('password')\n ]);\n\n /*factory(App\\User::class, 9)->create();\n $this->command->info('users table seeded');*/\n\n /**\n * Seeding roles table\n */\n Spatie\\Permission\\Models\\Role::truncate();\n DB::table('model_has_roles')->truncate();\n $superAdminRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '최고 관리자'\n ]);\n $adminRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '관리자'\n ]);\n $regularRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '정회원'\n ]);\n $associateRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '준회원'\n ]);\n\n App\\User::where('email', '!=', '[email protected]')->get()->map(function ($user) use ($regularRole) {\n $user->assignRole($regularRole);\n });\n\n App\\User::whereEmail('[email protected]')->get()->map(function ($user) use ($superAdminRole) {\n $user->assignRole($superAdminRole);\n });\n $this->command->info('roles table seeded');\n\n /**\n * Seeding articles table\n */\n App\\Article::truncate();\n $users = App\\User::all();\n\n $users->each(function ($user) use ($faker) {\n $user->articles()->save(\n factory(App\\Article::class)->make()\n );\n });\n $this->command->info('articles table seeded');\n\n /**\n * Seeding comments table\n */\n App\\Comment::truncate();\n $articles = App\\Article::all();\n\n $articles->each(function ($article) use ($faker, $users) {\n for ($i = 0; $i < 10; $i++) {\n $article->comments()->save(\n factory(App\\Comment::class)->make([\n 'author_id' => $faker->randomElement($users->pluck('id')->toArray()),\n //'parent_id' => $article->id\n ])\n );\n };\n });\n $this->command->info('comments table seeded');\n\n /**\n * Seeding tags table\n */\n App\\Tag::truncate();\n DB::table('article_tag')->truncate();\n $articles->each(function ($article) use ($faker) {\n $article->tags()->save(\n factory(App\\Tag::class)->make()\n );\n });\n $this->command->info('tags table seeded');\n\n /**\n * Seeding attachments table\n */\n App\\Attachment::truncate();\n if (!File::isDirectory(attachment_path())) {\n File::deleteDirectory(attachment_path(), true);\n }\n\n $articles->each(function ($article) use ($faker) {\n $article->attachments()->save(\n factory(App\\Attachment::class)->make()\n );\n });\n\n //$files = App\\Attachment::pluck('name');\n\n if (!File::isDirectory(attachment_path())) {\n File::makeDirectory(attachment_path(), 777, true);\n }\n\n /*\n foreach ($files as $file) {\n File::put(attachment_path($file), '');\n }\n */\n\n $this->command->info('attachments table seeded');\n\n /**\n * Close seeding\n */\n Model::reguard();\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(CountriesTableSeeder::class);\n $this->call(StatesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n\n factory(Group::class)->create();\n factory(Contact::class, 5000)->create();\n }", "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t// $this->call('AdminTableSeeder');\n\t\t// $this->call('UserTableSeeder');\n\t\t// $this->call('MenuTableSeeder');\n\t\t// $this->call('ProductTableSeeder');\n\t\t// $this->call('CategoryTableSeeder');\n\t\t// $this->call('OptionTableSeeder');\n\t\t// $this->call('OptionGroupTableSeeder');\n\t\t// $this->call('TypeTableSeeder');\n\t\t// $this->call('LayoutTableSeeder');\n\t\t// $this->call('LayoutDetailTableSeeder');\n\t\t// $this->call('BannerTableSeeder');\n\t\t// $this->call('ConfigureTableSeeder');\n\t\t// $this->call('PageTableSeeder');\n\t\t// $this->call('ImageTableSeeder');\n\t\t// $this->call('ImageableTableSeeder');\n\t\t// ======== new Seed =======\n\t\t$this->call('AdminsTableSeeder');\n\t\t$this->call('BannersTableSeeder');\n\t\t$this->call('CategoriesTableSeeder');\n\t\t$this->call('ConfiguresTableSeeder');\n\t\t$this->call('ImageablesTableSeeder');\n\t\t$this->call('ImagesTableSeeder');\n\t\t$this->call('LayoutsTableSeeder');\n\t\t$this->call('LayoutDetailsTableSeeder');\n\t\t$this->call('MenusTableSeeder');\n\t\t$this->call('OptionablesTableSeeder');\n\t\t$this->call('OptionsTableSeeder');\n\t\t$this->call('OptionGroupsTableSeeder');\n\t\t$this->call('PagesTableSeeder');\n\t\t$this->call('PriceBreaksTableSeeder');\n\t\t$this->call('ProductsTableSeeder');\n\t\t$this->call('ProductsCategoriesTableSeeder');\n\t\t$this->call('SizeListsTableSeeder');\n\t\t$this->call('TypesTableSeeder');\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('ContactsTableSeeder');\n\t\t$this->call('RolesTableSeeder');\n\t\t$this->call('PermissionsTableSeeder');\n\t\t$this->call('PermissionRoleTableSeeder');\n\t\t$this->call('AssignedRolesTableSeeder');\n\t\t$this->call('OrdersTableSeeder');\n\t\t$this->call('OrderDetailsTableSeeder');\n\t\tCache::flush();\n\t\t// BackgroundProcess::copyFromVI();\n\t}", "public function run()\n {\n Model::unguard();\n\n User::create([\n 'email' => '[email protected]',\n 'name' => 'admin',\n 'password' => Hash::make('1234'),\n 'email_verified_at' => Carbon::now()\n ]);\n\n factory(User::class, 200)->create();\n\n // $this->call(\"OthersTableSeeder\");\n }", "public function run()\n {\n $this->seedRegularUsers();\n $this->seedAdminUser();\n }", "public function run()\n {\n if (\\App::environment() === 'local') {\n\n // Delete existing data\n\n\n Eloquent::unguard();\n\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // Truncate all tables, except migrations\n $tables = array_except(DB::select('SHOW TABLES'), ['migrations']);\n foreach ($tables as $table) {\n $tables_in_database = \"Tables_in_\" . Config::get('database.connections.mysql.database');\n DB::table($table->$tables_in_database)->truncate();\n }\n\n // supposed to only apply to a single connection and reset it's self\n // but I like to explicitly undo what I've done for clarity\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n //get roles\n $this->call('AccountSeeder');\n $this->call('CountrySeeder');\n $this->call('StateSeeder');\n $this->call('CitySeeder');\n $this->call('OptionSeeder');\n $this->call('TagSeeder');\n $this->call('PrintTemplateSeeder');\n $this->call('SettingsSeeder');\n\n\n\n if(empty($web_installer)) {\n $admin = Sentinel::registerAndActivate(array(\n 'email' => '[email protected]',\n 'password' => \"admin\",\n 'first_name' => 'Admin',\n 'last_name' => 'Doe',\n ));\n $admin->user_id = $admin->id;\n $admin->save();\n\n $adminRole = Sentinel::findRoleById(1);\n $adminRole->users()->attach($admin);\n }\n else {\n $admin = Sentinel::findById(1);\n }\n\n //add dummy staff and customer\n $staff = Sentinel::registerAndActivate(array(\n 'email' => '[email protected]',\n 'password' => \"staff\",\n 'first_name' => 'Staff',\n 'last_name' => 'Doe',\n ));\n $admin->users()->save($staff);\n\n foreach ($this->getPermissions() as $permission) {\n $staff->addPermission($permission);\n }\n $staff->save();\n\n $customer = Sentinel::registerAndActivate(array(\n 'email' => '[email protected]',\n 'password' => \"customer\",\n 'first_name' => 'Customer',\n 'last_name' => 'Doe',\n ));\n Customer::create(array('user_id' => $customer->id, 'belong_user_id' => $staff->id));\n $staff->users()->save($customer);\n\n //add respective roles\n\n $staffRole = Sentinel::findRoleById(2);\n $staffRole->users()->attach($staff);\n $customerRole = Sentinel::findRoleById(3);\n $customerRole->users()->attach($customer);\n\n\n\n DB::table('sales_teams')->truncate();\n DB::table('opportunities')->truncate();\n\n //Delete existing seeded users except the first 4 users\n User::where('id', '>', 3)->get()->each(function ($user) {\n $user->forceDelete();\n });\n\n //Get the default ADMIN\n $user = User::find(1);\n $staffRole = Sentinel::getRoleRepository()->findByName('staff');\n $customerRole = Sentinel::getRoleRepository()->findByName('customer');\n\n //Seed Sales teams for default ADMIN\n foreach (range(1, 4) as $j) {\n $this->createSalesTeam($user->id, $j, $user);\n $this->createOpportunity($user, $user->id, $j);\n }\n\n\n //Get the default STAFF\n $staff = User::find(2);\n $this->createSalesTeam($staff->id, 1, $staff);\n $this->createSalesTeam($staff->id, 2, $staff);\n\n //Seed Sales teams for each STAFF\n foreach (range(1, 4) as $j) {\n $this->createSalesTeam($staff->id, $j, $staff);\n $this->createOpportunity($staff, $staff->id, $j);\n }\n\n foreach (range(1, 3) as $i) {\n $staff = $this->createStaff($i);\n $user->users()->save($staff);\n $staffRole->users()->attach($staff);\n\n $customer = $this->createCustomer($i);\n $staff->users()->save($customer);\n $customerRole->users()->attach($customer);\n $customer->customer()->save(factory(\\App\\Models\\Customer::class)->make());\n\n\n //Seed Sales teams for each STAFF\n foreach (range(1, 5) as $j) {\n $this->createSalesTeam($staff->id, $j, $staff);\n $this->createOpportunity($staff, $i, $j);\n }\n\n }\n\n //finally call it installation is finished\n file_put_contents(storage_path('installed'), 'Welcome to LCRM');\n }\n }", "public function run()\n {\n if (env('DB_DATABASE') == 'connection') {\n Connection::create([\n \"ruc\" => \"12312312312\",\n \"basedata\" => \"nbdata2018_1\",\n ]);\n \n Connection::create([\n \"ruc\" => \"12312312315\",\n \"basedata\" => \"nbdata2018_2\",\n ]);\n \n $this->call(ConnectionTableSeeder::class);\n } else {\n $this->call(AppSeeder::class);\n }\n }", "public function setupDatabase()\n {\n exec('rm ' . storage_path() . '/testdb.sqlite');\n exec('cp ' . 'database/database.sqlite ' . storage_path() . '/testdb.sqlite');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n # truncates tables before seeding\n foreach ($this->toTruncate as $table) {\n DB::table($table)->delete();\n }\n\n factory(App\\Models\\Product::class, 25)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n Post::truncate();\n Comment::truncate();\n // CommentReply::truncate();\n \n\n\n factory(User::class,10)->create();\n factory(Post::class,20)->create();\n factory(Comment::class,30)->create();\n // factory(CommentReply::class,30)->create();\n }", "public function run()\n\t{\n \n Eloquent::unguard();\n //DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\t\t$this->call('UserTableSeeder');\n\t $this->call('LayerTableSeeder');\n $this->call('UserLevelTableSeeder');\n $this->call('RoleUserTableSeeder');\n $this->call('RoleLayerTableSeeder');\n $this->call('BookmarkTableSeeder');\n \n //DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = [email protected]\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n DB::statement('SET foreign_key_checks = 0');\n DB::table('topics')->truncate();\n\n factory(\\App\\Topic::class, 100)->create();\n // ->each(function($topic) {\n\n // // Seed para a relação com group\n // $topic->group()->save(factory(App\\Group::class)->make());\n\n // // Seed para a relação com topicMessages\n // $topic->topicMessages()->save(factory(App\\TopicMessage::class)->make());\n\n // // Seed para a relação com user\n // $topic->user()->save(factory(App\\User::class)->make());\n // });\n \n DB::statement('SET foreign_key_checks = 1');\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n Categoria::truncate();\n Atractivo::truncate();\n Galeria::truncate();\n User::truncate();\n\n $this->call(CategoriasTableSeeder::class);\n $this->call(AtractivosTableSeeder::class);\n $this->call(GaleriasTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n }", "public function run(Faker $faker)\n {\n Schema::disableForeignKeyConstraints();\n DB::table('users')->insert([\n 'name' => $faker->name(),\n 'email' => '[email protected]',\n 'password' => Hash::make('12345678'),\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n\t $this->call(CategoryTableSeed::class);\n\t $this->call(ProductTableSeed::class);\n\t $this->call(UserTableSeed::class);\n }", "public function run()\n {\n $this->cleanDatabase();\n\n factory(User::class, 50)->create();\n factory(Document::class, 30)->create();\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n \t// DB::table('webapps')->delete();\n\n $webapps = array(\n\n );\n\n // Uncomment the below to run the seeder\n // DB::table('webapps')->insert($webapps);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'[email protected]'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $tables = array(\n 'users',\n 'companies',\n 'stands',\n 'events',\n 'visitors',\n 'api_keys'\n );\n\n if (!App::runningUnitTests()) {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n }\n\n foreach ($tables as $table) {\n DB::table($table)->truncate();\n }\n\n $this->call(UsersTableSeeder::class);\n $this->call(EventsTableSeeder::class);\n $this->call(CompaniesTableSeeder::class);\n $this->call(StandsTableSeeder::class);\n $this->call(VisitorsTableSeeder::class);\n\n if (!App::runningUnitTests()) {\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n $clear = $this->command->confirm('Wil je de database leegmaken? (Dit haalt alle DATA weg)');\n\n if ($clear):\n $this->command->callSilent('migrate:refresh');\n $this->command->info('Database Cleared, starting seeding');\n endif;\n\n $this->call([\n SeedSeeder::class,\n RoleSeeder::class,\n UserSeeder::class,\n // BoardgameSeeder::class,\n BoardgamesTableSeeder::class,\n StatusSeeder::class,\n TournamentSeeder::class,\n AchievementsSeeder::class,\n TournamentUsersSeeder::class,\n ]);\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n $this->call(PaisSeeder::class);\n $this->call(DepartamentoSeeder::class);\n $this->call(MunicipioSeeder::class);\n $this->call(PersonaSeeder::class);\n }", "public function run()\n {\n //\n if (App::environment() === 'production') {\n exit('Do not seed in production environment');\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // disable foreign key constraints\n\n DB::table('events')->truncate();\n \n Event::create([\n 'id' => 1,\n 'name' => 'Spot Registration For Throat Cancer',\n 'cancerId' => 1,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addMonths(12),\n 'eventType'\t\t=> 'register',\n 'formId'\t\t=> null,\n ]);\n\n Event::create([\n 'id' => 2,\n 'name' => 'Spot Screening For Throat Cancer',\n 'cancerId' => 1,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addMonths(12),\n 'eventType'\t\t=> 'screen',\n 'formId'\t\t=> 1,\n ]);\n \n Event::create([\n 'id' => 3,\n 'name' => 'Spot Registration For Skin Cancer',\n 'cancerId' => 2,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addMonths(12),\n 'eventType'\t\t=> 'register',\n 'formId'\t\t=> null,\n ]);\n\n\n Event::create([\n 'id' => 3,\n 'name' => 'Registration cum Screening camp for Throat Cancer',\n 'cancerId' => 1,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addWeeks(1),\n 'eventType'\t\t=> 'register_screen',\n 'formId'\t\t=> 1,\n ]);\n \n DB::statement('SET FOREIGN_KEY_CHECKS = 1'); // enable foreign key constraints\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // Para que no verifique el control de claves foráneas al hacer el truncate haremos:\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n\t\t// Primero hacemos un truncate de las tablas para que no se estén agregando datos\n\t\t// cada vez que ejecutamos el seeder.\n\t\t//Foto::truncate();\n\t\t//Album::truncate();\n\t\t//Usuario::truncate();\n DB::table('users')->delete();\n DB::table('ciudades')->delete();\n DB::table('tiendas')->delete();\n DB::table('ofertas')->delete();\n DB::table('ventas')->delete();\n\n\n\t\t// Es importante el orden de llamada.\n\t\t$this->call('UserSeeder');\n $this->call('CiudadSeeder');\n\t\t$this->call('TiendaSeeder');\n $this->call('OfertaSeeder');\n $this->call('VentaSeeder');\n }", "public function run()\n {\n $this->call(\\Database\\Seeders\\GroupByRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\SingleIndexRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\MultiIndexRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\JoinFiveTablesSeeder::class);\n\n// DB::table('users')->truncate();\n// DB::table('user_details')->truncate();\n//\n// // 試しに一回流す\n// $data = $this->makeData(0, 'userFactory', 1);\n// DB::table('users')->insert($data);\n// $data = $this->makeData(0, 'userDetailFactory', 1);\n// DB::table('user_details')->insert($data);\n//\n// // $this->call(UsersTableSeeder::class);\n// DB::table('users')->truncate();\n// DB::table('user_details')->truncate();\n//\n// for ($i = 0; $i < 40; $i++) {\n// $data = $this->makeData($i, 'userFactory', 2500);\n// DB::table('users')->insert($data);\n// }\n//\n// for ($i = 0; $i < 40; $i++) {\n// $data = $this->makeData($i, 'userDetailFactory', 2500);\n// DB::table('user_details')->insert($data);\n// }\n }", "public function run()\n {\n $this->truncateTables([\n 'users',\n 'categories',\n 'types',\n 'courses',\n 'classrooms',\n 'contents',\n 'companies',\n ]);\n\n $this->call(CompanyTableSeeder::class);\n $this->call(TypeTableSeeder::class);\n $this->call(RoleTableSeeder::class);\n $this->call(CategoryTableSeeder::class);\n $this->call(CoursesTableSeeder::class);\n $this->call(PermissionTableSeeder::class);\n $this->call(ContentTableSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(ClassroomTableSeeder::class);\n $this->call(TestTableSeeder::class);\n $this->call(BankTableSeeder::class);\n\n\n // factory(\\App\\User::class, 50)\n // ->create()\n // ->each(function ($user) {\n // // $user->companies()->save();\n // $company = \\App\\Company::inRandomOrder()->first();\n // $user->companies()->attach($company->id);\n // $user->assignRole(['participante']);\n // });\n /*\n factory(\\App\\User::class, 50)\n ->create()\n ->each(function ($user) {\n $user->assignRole(['participante']);\n });*/\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Question::truncate();\n Option::truncate();\n// Answer::truncate();\n Quiz::truncate();\n QuizQuestion::truncate();\n\n //for admin\n $admin = factory(User::class)->create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'is_admin' => 1,\n ]);\n\n //for user\n $user = factory(User::class)->create([\n 'name' => 'User',\n 'email' => '[email protected]',\n ]);\n\n factory(Question::class, 100)->create()->each(function ($question) {\n factory(Option::class, mt_rand(2, 4))->create([\n 'question_id' => $question->id,\n ]);\n });\n\n factory(Quiz::class, 10)->create()->each(function ($quiz) {\n\n factory(QuizQuestion::class, mt_rand(5, 10))->create();\n });\n\n\n }", "public function run()\n {\n $this->call([\n SiteSettingsSeeder::class,\n LaratrustSeeder::class,\n CountrySeeder::class,\n GovernorateSeeder::class,\n FaqSeeder::class,\n SitePageSeeder::class,\n UsersSeeder::class,\n ]);\n\n Country::whereiso(\"EG\")->update(['enable_shipping' => true]);\n\n factory(User::class, 400)->create();\n\n Category::create([\n 'en' => [\n 'name' => \"cake tools\"\n ]\n ]);\n\n Category::create([\n 'en' => [\n 'name' => \"Party Supplies\"\n ]\n ]);\n\n $this->call([\n ProductCategorySeeder::class,\n ProductSeeder::class\n ]);\n }", "public function run()\n {\n $this->call(PermissionsTableSeeder::class);\n\n if (App::environment('local')) {\n $this->call(FakeUsersTableSeeder::class);\n $this->call(FakeArticlesTableSeeder::class);\n $this->call(FakeEventsTableSeeder::class);\n }\n }", "public function run()\n {\n Model::unguard();\n\n $this->call(CategoryTypesTableSeeder::class);\n $this->call(CategoryTableSeeder::class);\n $this->call(AccountTypesTableSeeder::class);\n $this->call(TransactionTypesTableSeeder::class);\n\n if (App::environment() !== 'production') {\n $this->call(UserTableSeeder::class);\n $this->call(AccountBudgetTableSeeder::class);\n $this->call(TransactionTableSeeder::class);\n }\n\n Model::reguard();\n }", "public function run()\n {\n User::truncate();\n Product::truncate();\n User::forceCreate([\n 'name' => 'foo',\n 'email' => '[email protected]',\n 'password' => bcrypt('password'),\n ]);\n factory(User::class, 5)->create();\n factory(Product::class, 5)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n {\n $this->call([UsersTableSeeder::class]);\n $this->call([ContratosTableSeeder::class]);\n $this->call([UsuariosTableSeeder::class]);\n $this->call([UnidadesTableSeeder::class]);\n $this->call([AtestadosTableSeeder::class]);\n }", "public function run()\n {\n Model::unguard();\n\n // $this->call(\"OthersTableSeeder\");\n\n // DB::table('locations')->insert([\n // 'id' => 1,\n // 'name' => 'Default',\n // 'name' => 'district',\n // 'district_id' => 1,\n // 'province_id' => 1,\n // ]);\n }", "public function run()\n {\n $data = include env('DATA_SEED');\n\n \\Illuminate\\Support\\Facades\\DB::table('endpoints')->insert((array)$data);\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('admins')->truncate();\n\n for ($i = 0; $i < 10; $i++)\n {\n $faker = Factory::create('en_US');\n $values = [\n 'name' => $faker->userName,\n 'email' => $faker->freeEmail,\n 'password' => bcrypt($faker->password),\n 'phone' => $faker->phoneNumber,\n 'status' => random_int(0,1)\n ];\n admin::create($values);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n DB::beginTransaction();\n// $this->seed();\n DB::commit();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n \\DB::table('provinces')->delete();\n \\DB::table('cities')->delete();\n \\DB::table('districts')->delete();\n // import provinces and cities from sql file\n $sqlFile = app_path() . '/../database/raw/administrative_indonesia_without_districts.sql';\n DB::unprepared(file_get_contents($sqlFile));\n $this->command->info('Successfully seed Provinces and Cities!');\n\n // import districts with latitude and longitude from csv file\n $csvFile = app_path() . '/../database/raw/administrative_indonesia_districts_with_lat_lng.csv';\n $districts = $this->csvToArray($csvFile);\n // check if lat lng exists\n foreach ($districts as $i => $d) {\n if ($d['latitude'] == '') $districts[$i]['latitude'] = 0;\n if ($d['longitude'] == '') $districts[$i]['longitude'] = 0;\n }\n // insert it\n $insert = District::insert($districts);\n if ($insert) $this->command->info('Successfully seed Districts!');\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(RegionsTableSeeder::class);\n $this->call(ProvincesTableSeeder::class);\n $this->call(DistrictsTableSeeder::class);\n $this->call(SubDistrictsTableSeeder::class);\n $this->call(PostcodesTableSeeder::class);\n\n if (env('APP_ENV') !== 'production') {\n // Wipe up 5 churches, and each church has 5 cells, and each cell has 20 members associated with.\n // In other word, we wipe up 500 church members.\n for ($i = 0; $i < 2; $i++) {\n $church = factory(\\App\\Models\\Church::class)->create();\n\n $church->areas()->saveMany(factory(\\App\\Models\\Area::class, 2)->create([\n 'church_id' => $church->id\n ])->each(function($area) {\n $area->cells()->saveMany(factory(\\App\\Models\\Cell::class, 2)->create([\n 'area_id' => $area->id\n ])->each(function($cell) {\n $cell->members()->saveMany(factory(App\\Models\\Member::class, 10)->create([\n 'cell_id' => $cell\n ]));\n }));\n }));\n }\n }\n }", "public function run()\n {\n User::create([\n 'name' => 'Regynald',\n 'email' => '[email protected]',\n 'password' => Hash::make('123456789'),\n 'url' => 'http://zreyleo-code.com',\n ]);\n\n User::create([\n 'name' => 'Leonardo',\n 'email' => '[email protected]',\n 'password' => Hash::make('123456789')\n ]);\n\n // seed sin model\n /* DB::table('users')->insert([\n 'name' => 'Regynald',\n 'email' => '[email protected]',\n 'password' => Hash::make('123456789'),\n 'url' => 'http://zreyleo-code.com',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ]); */\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->environmentPath = env('APP_ENV') === 'production' ||\n env('APP_ENV') === 'qa' ||\n env('APP_ENV') === 'integration' ?\n 'Production':\n 'local';\n //disable FK\n Model::unguard();\n DB::statement(\"SET session_replication_role = 'replica';\");\n\n // $this->call(HrEmployeeTableSeeder::class);\n $this->call(\"Modules\\HR\\Database\\Seeders\\\\$this->environmentPath\\HrEmployeePosTableSeeder\");\n // $this->call(HrEmployeePresetsDiscountTableSeeder::class);\n\n // Enable FK\n DB::statement(\"SET session_replication_role = 'origin';\");\n Model::reguard();\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "protected static function seed()\n {\n foreach (self::fetch('database/seeds', false) as $file) {\n Bus::need($file);\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n $faker = F::create('App\\Proovedores');\n for($i=0; $i < 10; $i++){\n DB::table('users')->insert([\n 'usuario' => $i,\n 'password' => $i,\n 'email' => $faker->email,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Delete all records.\n DB::table('users')->delete();\n // Reset AUTO_INCREMENT.\n DB::table('users')->truncate();\n\n // Dev user.\n App\\Models\\User::create([\n 'email' => '[email protected]',\n 'password' => '$2y$10$t6q81nz.XrMrh20NHDvxUu/szwHBwgzPd.01e8uuP0qVy0mPa6H/e',\n 'first_name' => 'L5',\n 'last_name' => 'App',\n 'username' => 'l5-app',\n 'is_email_verified' => 1,\n ]);\n\n // Dummy users.\n TestDummy::times(10)->create('App\\Models\\User');\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n User::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // We did this for test purposes. Shouldn't be doing this for production\n $password = Hash::make('123456');\n\n User::create([\n 'name' => 'Administrator',\n 'email' => '[email protected]',\n 'password' => $password,\n ]);\n }", "public function run()\n {\n Model::unguard();\n \n factory('App\\User','admin')->create();\n factory('App\\Evento',100)->create();\n //factory('App\\User','miembro',10)->create();\n factory('App\\Telefono',13)->create();\n factory('App\\Notificacion',10)->create();\n factory('App\\Rubro',10)->create();\n factory('App\\Tecnologia',10)->create();\n factory('App\\Cultivo',10)->create();\n factory('App\\Etapa',10)->create();\n factory('App\\Variedad',10)->create();\n factory('App\\Caracteristica',10)->create();\n factory('App\\Practica',30)->create();\n factory('App\\Tag',15)->create();\n // $this->call(PracticaTableSeeder::class);\n $this->call(TrTableSeeder::class);\n $this->call(MesTableSeeder::class);\n $this->call(SemanasTableSeeder::class);\n $this->call(PsTableSeeder::class);\n $this->call(MsTableSeeder::class);\n $this->call(CeTableSeeder::class);\n $this->call(CvTableSeeder::class);\n $this->call(PtSeeder::class);\n \n\n Model::unguard();\n }", "public function run() {\n $this->call(UserSeeder::class);\n $this->call(PermissionSeeder::class);\n $this->call(CreateAdminUserSeeder::class);\n // $this->call(PhoneSeeder::class);\n // $this->call(AddressSeeder::class);\n\n $this->call(ContactFormSeeder::class);\n //$this->call(ContactSeeder::class);\n\n User::factory()->count(20)->create()->each(function ($user) {\n // Seed the relation with one address\n $address = Address::factory()->make();\n $user->address()->save($address);\n\n // Seed the relation with one phone\n $phone = Phone::factory()->make();\n $user->phone()->save($phone);\n\n // Seed the relation with 15 contacts\n $contact = Contact::factory()->count(25)->make();\n $user->contacts()->saveMany($contact);\n });\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n Activity::truncate();\n User::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n $this->call(UserTableSeeder::class);\n $this->call(ActivityTableSeeder::class);\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n \\App\\User::truncate();\n \\App\\Category::truncate();\n \\App\\Product::truncate();\n \\App\\Transaction::truncate();\n DB::table('category_product')->truncate();\n\n \\App\\User::flushEventListeners();\n \\App\\Category::flushEventListeners();\n \\App\\Product::flushEventListeners();\n \\App\\Transaction::flushEventListeners();\n\n\n $usersQuentity = 1000;\n $categoriesQuentity = 30;\n $productsQuentity = 1000;\n $transactionsQuentity = 1000;\n\n factory(\\App\\User::class, $usersQuentity)->create();\n factory(\\App\\Category::class, $categoriesQuentity)->create();\n factory(\\App\\Product::class, $productsQuentity)->create()->each(\n function ($product){\n $categories = \\App\\Category::all()->random(mt_rand(1, 5))->pluck('id');\n\n $product->categories()->attach($categories);\n }\n );\n factory(\\App\\Transaction::class, $transactionsQuentity)->create();\n\n }", "public function run()\n {\n Eloquent::unguard();\n \n $this->call('AdminMemberTableSeeder');\n $this->call('BankInfoTableSeeder');\n $this->call('LocationLookUpTableSeeder');\n $this->call('OrderStatusTableSeeder');\n $this->call('AdminRoleTableSeeder');\n\n }", "public static function setUpBeforeClass()\n {\n parent::setUpBeforeClass();\n $app = require __DIR__ . '/../../bootstrap/app.php';\n /** @var \\Pterodactyl\\Console\\Kernel $kernel */\n $kernel = $app->make(Kernel::class);\n $kernel->bootstrap();\n $kernel->call('migrate:fresh');\n\n \\Artisan::call('db:seed');\n }", "public function run()\n {\n Model::unguard();\n\n if( !User::where('email', '[email protected]')->count() ) {\n User::create([\n 'nombre'=>'Nick'\n ,'apellidos'=>'Palomino'\n ,'email'=>'[email protected]'\n ,'password'=> Hash::make('1234567u')\n ,'celular'=>'966463589'\n ]);\n }\n\n $this->call('CategoriaTableSeeder');\n $this->call('WhateverSeeder');\n $this->call('ProductTableSeeder');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n Model::unguard();\n\n $this->command->info('seed start!');\n\n // 省市县\n $this->call('RegionTableSeeder');\n // 用户、角色\n $this->call('UserTableSeeder');\n // 权限\n $this->call('PurviewTableSeeder');\n // 博文分类\n $this->call('CategoryTableSeeder');\n // 博文、评论、标签\n $this->call('ArticleTableSeeder');\n // 心情\n $this->call('MoodTableSeeder');\n // 留言\n $this->call('MessageTableSeeder');\n // 文件\n $this->call('StorageTableSeeder');\n\n $this->command->info('seed end!');\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n {\n $this->call(RolesDatabaseSeeder::class);\n $this->call(UsersDatabaseSeeder::class);\n $this->call(LocalesDatabaseSeeder::class);\n $this->call(MainDatabaseSeeder::class);\n }", "public function run()\n {\n\n Schema::disableForeignKeyConstraints(); //in order to execute truncate before seeding\n\n $this->call(UsersTableSeeder::class);\n $this->call(PostCategoriesSeeder::class);\n $this->call(TagsSeeder::class);\n $this->call(PostsSeeder::class);\n\n Schema::enableForeignKeyConstraints();\n\n\n }", "public function run()\n {\n // DB::table('users')->insert([\n // ['id'=>1, 'email'=>'nhat','password'=>bcrypt(1234), 'lever'=>0]\n // ]);\n // $this->call(UsersTableSeeder::class);\n // $this->call(CatTableSeeder::class);\n // $this->call(TypeTableSeeder::class);\n // $this->call(AppTableSeeder::class);\n // $this->call(GameTableSeeder::class);\n \n \n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n $this->seedUsers();\n $this->seedAdmins();\n $this->seedMeals();\n\n $this->seedOrder();\n $this->seedOrderlist();\n\n $this->seedReload();\n }", "public function run()\n\t{\n\t\t//composer require fzaninotto/faker\n\t\t\n\t\t$this->call(populateAllSeeder::class);\n\t\t\n\t}", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n Model::unguard();\n\n $faker =Faker\\Factory::create();\n\n // $this->call(UserTableSeeder::class);\n\n $this->seedTasks($faker);\n $this->seedTags($faker);\n\n Model::reguard($faker);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n\n $this->call([\n CountriesSeeder::class,\n ProvincesSeeder::class,\n SettingsSeeder::class,\n AdminsTableSeeder::class,\n ]);\n }" ]
[ "0.8064933", "0.7848158", "0.7674873", "0.724396", "0.7216743", "0.7132209", "0.70970356", "0.70752203", "0.704928", "0.699208", "0.6987078", "0.69839287", "0.6966499", "0.68990964", "0.6868679", "0.68468624", "0.68307716", "0.68206114", "0.6803113", "0.6803113", "0.6801801", "0.6789746", "0.6788733", "0.6788008", "0.6786291", "0.67765796", "0.67742485", "0.677106", "0.67651874", "0.6761959", "0.675823", "0.67337847", "0.6733437", "0.67295784", "0.67290515", "0.6724652", "0.67226326", "0.6722267", "0.6721339", "0.6715842", "0.67070943", "0.67060536", "0.67031103", "0.6702514", "0.6702361", "0.67017967", "0.6695973", "0.6693496", "0.66868156", "0.66837406", "0.6678434", "0.66755766", "0.66726524", "0.666599", "0.664943", "0.6640641", "0.663921", "0.66387916", "0.6636016", "0.6633116", "0.6629787", "0.6627134", "0.6625862", "0.661699", "0.66093796", "0.6602538", "0.65996546", "0.659914", "0.6596484", "0.6596383", "0.65922767", "0.65922284", "0.65913564", "0.65889347", "0.65812707", "0.65811145", "0.6579546", "0.6578819", "0.6575912", "0.65749073", "0.6574314", "0.657148", "0.65696406", "0.6568972", "0.65624833", "0.6560332", "0.6559092", "0.6557491", "0.65555155", "0.6554255", "0.65509576", "0.6548099", "0.65479296", "0.6545845", "0.65443295", "0.65434265", "0.65432936", "0.654295", "0.65426385", "0.6541781", "0.6539325" ]
0.0
-1
Create a new command instance.
public function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }", "public function createCommand()\r\n\t{\r\n\t\t$obj = new DbCommand($this,$this->dbms);\r\n\t\treturn $obj;\r\n\t}", "public function createCommand() {\n\t\treturn new UnboxedCommand( $this );\n\t}", "protected function createCommand($args) {\n $command = new Command();\n $command->id = ifseta($args, 'id');\n $command->name = ifseta($args, 'name');\n $command->url = ifseta($args, 'url');\n $command->description = ifseta($args, 'description');\n $command->uses = ifseta($args, 'uses');\n $command->creationDate = ifseta($args, 'creation_date');\n $command->lastUseDate = ifseta($args, 'last_use_date');\n $command->goldenEggDate = ifseta($args, 'golden_egg_date');\n return $command;\n }", "static public function create($cmd = null, $args = null)\n {\n return new self($cmd, $args);\n }", "public function createCommand($kernel, string $commandName = null, string $commandDescription = null): Command;", "public function makeCommand() \n {\n if($this->CrontabCommandObject === NULL)\n {\n $this->CrontabCommandObject = new \\root\\library\\Crontab\\CrontabCommand\\CrontabCommand();\n }\n \n return $this->CrontabCommandObject;\n }", "public function testInstantiation()\n {\n $command = new CreateRule('dummy name');\n }", "public function command(Command $command);", "public function __construct($command)\n {\n $this->command = $command;\n }", "public static function create(array $data)\n {\n $command = new static();\n $command->exchangeArray($data);\n return $command;\n }", "protected function getCreateCommand()\n {\n $command = new IndexCreateCommand();\n $command->setContainer($this->getContainer());\n\n return $command;\n }", "public function createCommand($string = '')\n {\n return $this->createStringable($string);\n }", "public function createCommand($type) {\r\n $command = $this->xml->createElement('command');\r\n $command->setAttribute('xsi:type', $type);\r\n $command->setAttribute('xmlns', '');\r\n $this->xmlSchema($command);\r\n return $command;\r\n }", "public function __construct()\n {\n // We will go ahead and set the name, description, and parameters on console\n // commands just to make things a little easier on the developer. This is\n // so they don't have to all be manually specified in the constructors.\n if (isset($this->signature)) {\n $this->configureUsingFluentDefinition();\n } else {\n parent::__construct($this->name);\n }\n\n // Once we have constructed the command, we'll set the description and other\n // related properties of the command. If a signature wasn't used to build\n // the command we'll set the arguments and the options on this command.\n $this->setDescription((string) $this->description);\n\n $this->setHelp((string) $this->help);\n\n $this->setHidden($this->isHidden());\n\n if (! isset($this->signature)) {\n $this->specifyParameters();\n }\n }", "public function make(string $name, PreprocessorInterface $preprocessor = null): CommandInterface;", "private function _getCommandByClassName($className)\n {\n return new $className;\n }", "public function newCommand($regex, $callable) {\n $cmd = new Command();\n $cmd->regex = $regex;\n $cmd->callable = $callable;\n return $this->addCommand($cmd);\n }", "public static function create($commandID, ...$args)\n {\n $arguments = func_get_args();\n\n return new static(array_shift($arguments), $arguments);\n }", "private function __construct($command = null)\n {\n $this->command = $command;\n }", "public static function factory(string $command, string $before = '', string $after = ''): self\n {\n return new self($command, $before, $after);\n }", "public function getCommand() {}", "protected function buildCommand()\n {\n $command = new Command(\\Tivie\\Command\\ESCAPE);\n $command\n ->chdir(realpath($this->repoDir))\n ->setCommand($this->gitDir)\n ->addArgument(new Argument('tag', null, null, false))\n ->addArgument(new Argument($this->tag, null, null, true));\n\n return $command;\n }", "public function testCanBeInstantiated()\n {\n $command = $this->createInstance();\n $this->assertInstanceOf('\\\\Dhii\\\\ShellInterop\\\\CommandInterface', $command, 'Command must be an interoperable command');\n $this->assertInstanceOf('\\\\Dhii\\\\ShellCommandInterop\\\\ConfigurableCommandInterface', $command, 'Command must be a configurable command');\n $this->assertInstanceOf('\\\\Dhii\\\\ShellCommandInterop\\\\MutableCommandInterface', $command, 'Command must be a mutable command');\n }", "public function getCommand();", "protected function createCommand($name, array $parameters = [])\n {\n return new Fluent(\n array_merge(\n compact('name'),\n $parameters)\n );\n }", "public function testCanPassCommandStringToConstructor()\n {\n $command = new Command('/bin/ls -l');\n\n $this->assertEquals('/bin/ls -l', $command->getExecCommand());\n }", "public function makeCommandInstanceByType(...$args): CommandInterface\n {\n $commandType = array_shift($args);\n\n switch ($commandType) {\n case self::PROGRAM_READ_MODEL_FETCH_ONE_COMMAND:\n return $this->makeFetchOneCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_FIND_COMMAND:\n return $this->makeFindCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_FIND_LITE_COMMAND:\n return $this->makeFindLiteCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_CREATE_TASK_COMMAND:\n return $this->makeItemCreateTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_CREATE_COMMAND:\n return $this->makeItemCreateCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_UPDATE_TASK_COMMAND:\n return $this->makeItemUpdateTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_UPDATE_COMMAND:\n return $this->makeItemUpdateCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_DELETE_TASK_COMMAND:\n return $this->makeItemDeleteTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_DELETE_COMMAND:\n return $this->makeItemDeleteCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_ADD_ID_COMMAND:\n return $this->makeItemAddIdCommand(...$args);\n\n default:\n throw new FactoryException(sprintf('Command bus for type `%s` not found!', (string) $commandType));\n }\n }", "public function __construct($cmd)\n {\n $this->cmd = $cmd;\n }", "public function getCommand()\n {\n }", "public function command($class)\n {\n $runnable = $this->resolveClass($class);\n\n if ( ! $runnable instanceof Command) {\n throw new InvalidArgumentException(get_class($runnable).' must be an instance of '.Command::class.'.');\n }\n\n $command = $runnable;\n\n if ($runnable instanceof Taggable) {\n $command = new Cached($command, $this);\n }\n\n if ($runnable instanceof Transactional) {\n $command = new Transaction($command, $this, $this->makeFromContainer(ConnectionInterface::class));\n }\n\n if ($runnable instanceof Eventable) {\n $command = new Evented($command, $this);\n }\n\n return $this->newBuilder($command);\n }", "protected function createCommandFactory(): CommandFactory\n {\n return new CommandFactory([\n 'CLOSE' => Command\\CLOSE::class,\n ]);\n }", "public static function register() {\n\n if ( !defined( 'WP_CLI' ) || !WP_CLI ) {\n return;\n }\n \n $instance = new static;\n if(empty( $instance->namespace )) {\n throw new \\Exception(\"Command namespace not defined\", 1);\n \n }\n\t\t\\WP_CLI::add_command( $instance->namespace, $instance, $instance->args ?? null );\n\t}", "public function addCommand($command);", "public function add(Command $command);", "abstract protected function getCommand();", "public function createCommand()\r\n\t{\r\n\t\t//start the string\r\n\t\t$command = '';\r\n\t\t\r\n\t\t//add the java command or the path to java\r\n\t\t$command .= $this->java_path;\r\n\t\t\r\n\t\t//add the class path\r\n\t\t$command .= ' -cp \"'. $this->stanford_path . $this->seperator . '*\" ';\r\n\t\t\r\n\t\t//add options\r\n\t\t$options = implode(' ', $this->java_options);\r\n\t\t$command .= '-'.$options;\r\n\t\t\r\n\t\t//add the call to the pipeline object\r\n\t\t$command .= ' edu.stanford.nlp.pipeline.StanfordCoreNLP ';\r\n\r\n\t\t//add the annotators\r\n\t\t$command .= '-annotators '. $this->listAnnotators();\r\n\t\t\r\n\t\t//add the input and output directors\r\n\t\t$command .= ' -file '. $this->tmp_file . ' -outputDirectory '. $this->tmp_path;\r\n\t\t\r\n\t\t//this is for testing purposes\r\n\t\t//$command .= ' -file '. $this->tmp_path .'\\\\nlp3F25.tmp' . ' -outputDirectory '. $this->tmp_path;\r\n\t\t\r\n\t\t//if using regexner add this to the command string\r\n\t\tif($this->annotators['regexner'] === true)\r\n\t\t{\r\n\t\t\t$command .=' -regexner.mapping '. $this->regexner_path . $this->seperator . $this->regexner_file;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn $command;\r\n\t}", "protected function createCommand(string $name, array $parameters = []): Fluent\n {\n return new Fluent(array_merge(compact('name'), $parameters));\n }", "public function __construct()\n {\n parent::__construct(static::NAME, static::VERSION);\n $this->add(new DefaultCommand());\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->command_name = config(\"custom-commands.command_name\");\n\n parent::__construct($this->signature = $this->command_name);\n\n $this->commands = (array) config(\"custom-commands.commands\");\n \n $this->table = config(\"custom-commands.table\");\n\n $this->row = config(\"custom-commands.row\");\n\n $this->changeEnv = (boolean) config(\"custom-commands.change_env\");\n\n }", "protected function createCommandFile()\n {\n $command_file_full_path = $this->command_dir_path . DIRECTORY_SEPARATOR . $this->arg->getCommandFileName();\n\n // Check if the command already exists\n if (file_exists($command_file_full_path)) {\n throw new Exception('Command already exists.');\n }\n\n // Create the file for the new command\n $command_file = fopen($command_file_full_path, 'w');\n\n // TODO: Create Script Generator to generate the PHP scripts for the new command.\n\n fclose($command_file);\n\n $this->console->getOutput()->println('File created at: ' . $command_file_full_path);\n $this->console->getOutput()->success('Command ' . $this->arg->getSignature() . ' created successfully.');\n }", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public static function create(InteropContainer $container)\n {\n $middleware = $container->get('cmd.middleware');\n return new CommandBusFactory($middleware);\n }", "private function createCli() {\n $this->cli = new Cli();\n $this->commands = $this->commandParser->getAllCommands();\n\n foreach ($this->commands as $command) {\n if ($command->isDefault()) {\n $this->cli->command(\"*\");\n foreach ($command->getOptions() as $option) {\n $this->cli->opt($option->getName(), $option->getDescription(), $option->isRequired(), $option->getType());\n }\n foreach ($command->getArguments() as $argument) {\n if (!$argument->isVariadic())\n $this->cli->arg($argument->getName(), $argument->getDescription(), $argument->isRequired());\n }\n }\n if ($command->getName() != \"\") {\n $this->cli->command($command->getName())->description($command->getDescription());\n foreach ($command->getOptions() as $option) {\n $this->cli->opt($option->getName(), $option->getDescription(), $option->isRequired(), $option->getType());\n }\n foreach ($command->getArguments() as $argument) {\n if (!$argument->isVariadic())\n $this->cli->arg($argument->getName(), $argument->getDescription(), $argument->isRequired());\n }\n }\n }\n\n\n }", "public function testInstantiation()\n {\n $this->assertInstanceOf('Contao\\ManagerBundle\\Command\\InstallWebDirCommand', $this->command);\n }", "public function command(string $command): self\n {\n $this->addCommands[] = $command;\n\n return $this;\n }", "public function create() {}", "protected function createProcess($cmd)\n {\n return new Process(explode(' ', $cmd));\n }", "public function create(){}", "protected function getCommandFactory(): Command\\Factory\n {\n return new Command\\RedisFactory();\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->commandData = new CommandData($this, CommandData::$COMMAND_TYPE_API);\n }", "public function testNewCommand() : void\n {\n $this->assertFalse($this->command->hasArguments());\n $this->assertEquals(\"\", $this->command->getArguments());\n }", "protected function createCommandBuilder()\n\t{\n\t\treturn new CSqliteCommandBuilder($this);\n\t}", "public function __construct($command, $config = [])\n {\n $this->command = $command;\n $this->_output = $this->getDefaultOutput();\n parent::__construct($config);\n }", "public function __construct(){\n\n global $argv;\n\n if(!isset($argv[1])){\n echo 'You must supply a command!' . PHP_EOL;\n exit;\n }//if\n\n $args = $argv;\n\n $scriptName = array_shift($args);\n $method = array_shift($args);\n\n $method = explode('-',$method);\n foreach($method as $k => $v){\n if($k != 0){\n $method[$k] = ucwords($v);\n }//if\n }//foreach\n\n $method = implode('',$method);\n\n $resolved = false;\n\n if(method_exists($this,$method)){\n call_user_func(Array($this,$method), $args);\n $resolved = true;\n }//if\n else {\n foreach(static::$extendedCommands as $commandClass){\n if(method_exists($commandClass,$method)){\n call_user_func(Array($commandClass,$method), $args);\n $resolved = true;\n break;\n }//if\n }//foreach\n }//el\n\n if(!$resolved){\n echo \"`{$method}` is not a valid CLI command!\";\n }//if\n\n echo PHP_EOL;\n exit;\n\n }", "public function forCommand($command)\n {\n $this->command = $command;\n $this->pipe = new NullPipe();\n $this->manager = new InteractiveProcessManager($this->userInteraction);\n\n return $this;\n }", "public function __construct()\n {\n parent::__construct('pwman', '0.1.0');\n\n $getCommand = new Get();\n $this->add($getCommand);\n\n $setCommand = new Set();\n $this->add($setCommand);\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }", "public function createCommand(?string $sql = null, array $params = []): Command;", "public function __construct($command = NULL, $name = NULL)\n {\n $args = func_get_args();\n\n switch ($command) {\n case self::CONSTR_CMD_POPULATE_SYNCED_ARRAY:\n case self::CONSTR_CMD_POP_FROM_ARR:\n case self::CONSTR_CMD_POP_FROM_OBJ:\n case self::CONSTR_CMD_POP_FROM_DB:\n case self::CONSTR_CMD_NEW:\n $this->setup_name = $name;\n\n # shift off known args\n array_shift($args);\n array_shift($args);\n break;\n }\n\n switch ($command) {\n case self::CONSTR_CMD_POP_FROM_ARR:\n $this->applyArray($args[0]);\n break;\n case self::CONSTR_CMD_POP_FROM_OBJ:\n break;\n case self::CONSTR_CMD_POP_FROM_DB:\n break;\n case self::CONSTR_CMD_POPULATE_SYNCED_ARRAY:\n $this->applyArray($args[0]);\n $this->setAllLoaded();\n break;\n default:\n throw new OrmInputException('Guessing not supported, please explicitly specify construction type');\n self::constructGuess($args);\n }\n\n $this->ensureObjectInDb();\n }", "public function generateCommands();", "protected function newInstanceCommand($commandClass)\n {\n $class = new ReflectionClass($commandClass);\n\n return $class->newInstanceArgs($this->resolveCommandParameters($class));\n }", "protected function buildCommand()\n {\n return $this->command;\n }", "public function makeItemCreateCommand(string $processUuid, array $item): ItemCreateCommand\n {\n $processUuid = ProcessUuid::fromNative($processUuid);\n $uuid = Uuid::fromNative(null);\n $item = Item::fromNative($item);\n\n return new ItemCreateCommand($processUuid, $uuid, $item);\n }", "public function __construct($commandName, $args = [], $description = '') {\n if (!$this->setName($commandName)) {\n $this->setName('--new-command');\n }\n $this->addArgs($args);\n\n if (!$this->setDescription($description)) {\n $this->setDescription('<NO DESCRIPTION>');\n }\n }", "public function getCommand($name, array $args = array())\n {\n return parent::getCommand($name, $args)\n ->setRequestSerializer(RequestSerializer::getInstance());\n }", "protected function buildCommand()\n {\n $command = new Command(\\Tivie\\Command\\DONT_ADD_SPACE_BEFORE_VALUE);\n $command\n ->chdir(realpath($this->repoDir))\n ->setCommand($this->gitDir)\n ->addArgument(new Argument('rev-parse'))\n ->addArgument(new Argument('HEAD'));\n\n return $command;\n }", "protected function instantiateCommand(Request $request, $args)\n {\n $command = new DeletePackageCustomerCommand($args);\n\n $requestBody = $request->getParsedBody();\n\n $this->setCommandFields($command, $requestBody);\n\n return $command;\n }", "public function createCommand($sql = null, $params = [])\n {\n $command = new Command([\n 'db' => $this,\n 'sql' => $sql,\n ]);\n\n return $command->bindValues($params);\n }", "protected function setCommand($value) {\n\t\t$this->_command = trim($value);\n\t\treturn $this;\n\t}", "public function setCommand($command)\n {\n $this->command = $command;\n\n return $this;\n }", "public function buildCommand()\n {\n return parent::buildCommand();\n }", "private function registerMakeModuleCommand()\n {\n $this->app->singleton('command.make.module', function($app) {\n return $app['Caffeinated\\Modules\\Console\\Generators\\MakeModuleCommand'];\n });\n\n $this->commands('command.make.module');\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->currentDirectory = getcwd();\n $this->baseIndentLevel = 0;\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\HelpCommand\", \"help\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\InitializePlanetCommand\", \"init\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PackAndPushUniToolCommand\", \"packpushuni\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PackLightPluginCommand\", \"packlightmap\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PushCommand\", \"push\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PushUniverseSnapshotCommand\", \"pushuni\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\UpdateSubscriberDependenciesCommand\", \"updsd\");\n\n }", "public function getCommand(string $command);", "protected function registerCommand(){\n\t\t$this->app->singleton('fakeid.command.setup', function ($app){\n\t\t\treturn new SetupCommand();\n\t\t});\n\n\t\t$this->commands('fakeid.command.setup');\n\t}", "public function addCommand($command, $args = [], $data = [])\n {\n $item = new ScreenCommand();\n $item->screen_id = $this->id;\n $item->command = $command;\n $item->arguments = $args;\n $item->fill($data);\n $item->save();\n\n return $item;\n }", "public function test_creating_command_from_container()\n {\n $now = new \\DateTime();\n $this->container->add('DateTime', $now);\n $command = 'Spekkionu\\DomainDispatcher\\Test\\Commands\\CommandWithConstructor';\n $result = $this->dispatcher->dispatch($command);\n $this->assertSame($now, $result);\n }", "protected function createProcess(): Process\n {\n $command = [\n $this->settings['executable']\n ];\n\n $command[] = $this->from;\n $command[] = $this->to;\n\n // Set the margins if needed.\n if ($this->settings['marginsType'] !== self::MARGIN_TYPE_NO_MARGINS) {\n $command[] = '--marginsType=' . $this->settings['marginsType'];\n }\n\n // If we need to proxy with node we just need to prepend the $command with `node`.\n if ($this->settings['proxyWithNode']) {\n array_unshift($command, 'node');\n }\n\n // If there's no graphical environment we need to prepend the $command with `xvfb-run\n // --auto-servernum`.\n if (! $this->settings['graphicalEnvironment']) {\n array_unshift($command, '--auto-servernum');\n array_unshift($command, 'xvfb-run');\n }\n\n return new Process($command);\n }", "private function registerCommand()\n {\n $this->app->singleton('command.shenma.push', function () {\n return new \\Larva\\Shenma\\Push\\Commands\\Push();\n });\n\n $this->app->singleton('command.shenma.push.retry', function () {\n return new \\Larva\\Shenma\\Push\\Commands\\PushRetry();\n });\n }", "public function __construct(string $command, string $before = '', string $after = '')\n {\n $this->command = $command;\n $this->before = $before;\n $this->after = $after;\n }", "public function generateCommand($singleCommandDefinition);", "public function create() {\n }", "public function create() {\n }", "public function create() {\r\n }", "public function create() {\n\n\t}", "private function getImportCommand()\n {\n return new IndexImportCommand(self::getContainer());\n }", "public function __construct($command)\n {\n $this->command = $command;\n\n $this->command->line('Installing Images: <info>✔</info>');\n }", "public function __construct()\n {\n self::$instance =& $this;\n\n $commanddir = Config::main('directory');\n $excludes = Config::main('exclude');\n\n if(is_null($commanddir))\n die('Could not find commands directory. It should be specified in the main config.');\n\n //The directory where commands reside should be relative\n //to the directory with the clip executable.\n $dir = realpath(__DIR__.\"/{$commanddir}\");\n\n $cmdfiles = scandir($dir);\n //Loop through each file in the commands directory\n foreach($cmdfiles as $file)\n {\n //Assume that each file uses the standard '.php' file extension.\n $command = substr($file, 0, -4);\n\n //Ignore the unnecessary directories as commands and anything that\n //has been marked for exclusion then attempt to include the valid ones.\n if($file !== '.' && $file !== '..' && array_search($command, $excludes) === false && include(\"{$dir}/{$file}\"))\n {\n if(class_exists($command, false))\n {\n $obj = new $command;\n //Only load commands that use the clip command interface\n if($obj instanceof Command)\n $this->commands[strtolower($command)] = $obj;\n }\n }\n }\n }", "public function __construct($action, $command = null) {\n parent::__construct($action, self::NAME);\n\n $fieldFactory = FieldFactory::getInstance();\n\n $commandField = $fieldFactory->createField(FieldFactory::TYPE_STRING, self::FIELD_COMMAND, $command);\n\n $this->addField($commandField);\n }", "public function createCommand($db = null, $action = 'get')\n {\n if ($db === null) {\n $db = Yii::$app->get(Connection::getDriverName());\n }\n $this->addAction($action);\n $commandConfig = $db->getQueryBuilder()->build($this);\n\n return $db->createCommand($commandConfig);\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();" ]
[ "0.8010746", "0.7333379", "0.72606754", "0.7164165", "0.716004", "0.7137585", "0.6748632", "0.67234164", "0.67178184", "0.6697025", "0.6677973", "0.66454077", "0.65622073", "0.65437883", "0.64838654", "0.64696646", "0.64292693", "0.6382209", "0.6378306", "0.63773245", "0.6315901", "0.6248427", "0.6241929", "0.6194334", "0.6081284", "0.6075819", "0.6069913", "0.60685146", "0.6055616", "0.6027874", "0.60132784", "0.60118896", "0.6011778", "0.5969603", "0.59618074", "0.5954538", "0.59404427", "0.59388787", "0.5929363", "0.5910562", "0.590651", "0.589658", "0.589658", "0.589658", "0.58692765", "0.58665586", "0.5866528", "0.58663124", "0.5852474", "0.5852405", "0.58442044", "0.58391577", "0.58154446", "0.58055794", "0.5795853", "0.5780188", "0.57653266", "0.57640004", "0.57584697", "0.575748", "0.5742612", "0.5739361", "0.5732979", "0.572247", "0.5701043", "0.5686879", "0.5685233", "0.56819254", "0.5675983", "0.56670785", "0.56606543", "0.5659307", "0.56567776", "0.56534046", "0.56343585", "0.56290466", "0.5626615", "0.56255764", "0.5608852", "0.5608026", "0.56063116", "0.56026554", "0.5599553", "0.5599351", "0.55640906", "0.55640906", "0.5561977", "0.5559745", "0.5555084", "0.5551485", "0.5544597", "0.55397296", "0.5529626", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908" ]
0.0
-1
Execute the console command.
public function handle() { // $obj = new ContractChecker(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "public function handle()\n {\n //get us the Converter class instance and call the convert() method on it.\n $this->info(\n \\Aregsar\\Converter\\ConverterFacade::convert($this->argument(\"currency\"))\n );\n }", "public function handle()\n {\n $this->locale = $this->argument('locale');\n\n $this->loadGroupLines();\n\n $this->loadNameSpacedLines();\n\n $this->info('Complete');\n }", "public function handle()\n {\n $this->importUser($this->argument('username'));\n $this->call('ldap:show-user', $this->arguments());\n }", "public function handle() {\n $user = User::where('id', $this->argument('userId'))->first();\n $this->info($user->email);\n }", "public function handle()\n {\n $translations = collect(json_decode(file_get_contents('https://raw.githubusercontent.com/getbible/Bibles/master/translations.json')))->flatten();\n switch($this->argument('action')) {\n case 'fetch':\n $this->fetchBibles($translations);\n break;\n case 'convert':\n $this->convertBibles($translations);\n break;\n }\n }", "public function handle()\n {\n\n $settings = Setting::fetch();\n $id = $this->argument('id');\n $this->scrape_game_data($id);\n }", "public function handle()\n {\n try {\n $evalstr = $this->evaluater->evaluate($this->argument('evalString'));\n $this->info($evalstr);\n } catch (ForbiddenSymbolsException $exception) {\n $this->error($exception->getMessage());\n } catch (IncorrectSymbolsException $exception) {\n $this->error($exception->getMessage());\n }\n }", "public function handle()\n {\n // env('CALENDARINDEX_TOKEN', '6f2bd927201ba4b22bb57df08db0c517e51732de')\n $this->getData($this->argument('country'), $this->argument('region'));\n }", "public function handle()\n {\n $email = $this->argument('email');\n $name = $this->argument('name');\n\n $this->info(\"starting to generate users details\");\n\n }", "public function handle()\n {\n\t\t$this->info('Importing translations...');\n\n\t\t$this->manager->importTranslations(true);\n }", "public function handle()\n {\n $user = null;\n\n if ($email = $this->option(\"email\", false)) {\n $user = $this->findByEmail($email);\n }\n\n if ($id = $this->option(\"id\", false)) {\n $user = $this->findById($id);\n }\n\n if (empty($user)) {\n $this->warn(\"User no found\");\n }\n else {\n $this->setRoleToUser($user);\n }\n }", "public function handle()\n {\n $name = ucwords($this->argument('name'));\n $this->call('repository:contract', [ 'name' => $name ]);\n $this->call('repository:class', [ 'name' => $name, '--driver' => $this->option('driver') ]);\n }", "public function handle()\n\t{\n\t\t// Superuser\n\t\tif( ! $this->option('no-superuser'))\n\t\t\t$this->call('setup:superuser');\n\n\t\t// Countries\n\t\tif( ! $this->option('no-countries'))\n\t\t\t$this->call('setup:countries', ['country' => array_filter(explode(',', $this->option('countries')))]);\n\n\t\t// Languages\n\t\tif( ! $this->option('no-languages'))\n\t\t\t$this->call('setup:languages', ['language' => array_filter(explode(',', $this->option('languages')))]);\n\n\t\t// Currencies\n\t\tif( ! $this->option('no-currencies'))\n\t\t\t$this->call('setup:currencies', ['currency' => array_filter(explode(',', $this->option('currencies')))]);\n\n\t\t// Clear cache\n\t\t$this->call('cache:clear');\n\t}", "public function handle()\n\t{\n\t\t$name = $this->argument('name');\n\t\t\n\t\t$this->info(\"Searching eve api for {$name}\");\n\t\t$result = Corporation::searchEVEAPI($name);\n\n\t\t$this->info(\"results\");\n\t\tforeach($result as $corp)\n\t\t{\n\t\t\tprint $corp->name . \" \" . $corp->id . \"\\r\\n\";\n\t\t}\n\t}", "public function handle()\n {\n $user = $this->argument('user');\n $this->info('Display this on the screen, user ' . $user);\n return 0;\n }", "public function handle()\n {\n $this->userVectors->test($this->option('force'));\n }", "public function handle()\n {\n $mapping = $this->formatMappingName((string)$this->argument('mapping'));\n \n $model = $this->option('model') ? $this->formatModelName($this->option('model')) : null;\n \n $this->filesystem->put(\n $this->buildMappingFilePath($mapping),\n $this->buildMapping(\n $this->getDefaultStub(),\n $mapping,\n $model\n )\n );\n \n $this->composer->dumpAutoloads();\n }", "public function handle()\n {\n switch ($this->argument('type')) {\n case 'dns':\n $this->dnscheck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n case 'whois':\n $this->whoischeck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n }\n }", "public function handle()\n {\n $subscriptionUpdateService = new SubscriptionUpdateService();\n $subscriptionUpdateService->runUpdates();\n }", "public function handle()\n {\n $option = $this->argument('option');\n\n if (! in_array($option, ['expired', 'all'])) {\n return $this->error('Invalid option supplied to command...');\n }\n\n $this->comment('Beginning pruning process...');\n\n $this->comment($this->pruneDatabase($option) . ' deleted from database...');\n\n $this->comment($this->pruneFiles($option) . ' deleted from files...');\n\n $this->info('Nonces pruned successfully!');\n }", "public function handle()\n\t{\n\t\t\n\t\t$source_directory = $this->argument( 'source_directory' );\n\t\t$target_directory = $this->argument( 'target_directory' );\n\t\t$template = (string) $this->option( 'template' );\n\n\t\t$statik = new \\App\\Statik\\Statik;\n\n\t\t$statik->generateHTMLFiles( $this, $source_directory, $target_directory, $template ) && $this->info( \"\\e[1;32mDONE!\" );\n\n\t}", "public function handle()\n {\n if (!$this->argument('file')) {\n $this->info('Please specify file to call.');\n }\n\n $file = $this->argument('file');\n\n if (!$this->fileHandler->exists($file)) {\n $this->info('Wrong path or file not exist.');\n }\n\n $this->executeFile($file);\n }", "public function handle()\n {\n $user = $this->argument('user');\n $this->scanner->setUserName($user);\n $this->scanner->scanUser();\n }", "public function handle()\n {\n if ($this->argument('user')) {\n $userId = $this->argument('user');\n\n $this->info(\"Liquidate affiliate commission for user \" . $userId);\n\n $user = $this->userService->findById($userId);\n\n if ($user) {\n $this->walletService->liquidateUserBalance($user);\n } else {\n $this->error(\"User not found\");\n }\n\n $this->info(\"Done\");\n } else {\n $this->info(\"Liquidate all commissions\");\n\n $this->walletService->liquidateAllUsersBalance();\n\n $this->info(\"Done\");\n }\n }", "public function handle()\n {\n $action = $this->choice('what action do you have on mind', [\n 'add-relation', 'remove-columns', 'column-type', 'rename-column'\n ]);\n switch ($action) {\n case 'add-relation':\n $this->addRelation();\n break;\n\n case 'remove-columns':\n $this->removeColumns();\n break;\n case 'column-type':\n $this->columnType();\n break;\n case 'rename-column':\n $this->renameColumn();\n break;\n default:\n $this->error('Unsupported action requested...');\n }\n $this->info('Command executed successfully');\n }", "public function handle()\n {\n $arguments = $this->arguments();\n $storageDir = $arguments['storageDir'];\n $localStorageDir = $arguments['localStorageDir'];\n $url = $arguments['url'];\n $cmd = sprintf(\"./app/Console/Commands/ShellScripts/screen_shot.sh %s %s %s\", $storageDir, $localStorageDir, $url);\n\n while (true) {\n $result = shell_exec($cmd);\n print_r($result);\n sleep(3);\n }\n }", "public function handle()\n {\n $city = $this->argument('city');\n\n $weatherService = new CurrentWeatherService();\n try {\n $weather = $weatherService->getByCity($city);\n } catch (WeatherException $e) {\n $this->error($e->getMessage());\n return;\n }\n\n $this->info('Weather for city '.$city);\n dump($weather->toArray());\n }", "public function handle()\n {\n $this->getModels($this->argument('model'));\n $this->getLanguages($this->argument('locale'));\n $this->createMultiLanguageRecords();\n }", "public function handle()\n {\n $this->processOptions();\n\n echo json_encode( $this->dateTimeRange ) . \"\\n\";\n\n $this->dispatch( new ProcessNewActionsJob(\n $this->dateTimeRange ,\n str_random( 16 ),\n $this->option('runtime-threshold')\n ) );\n }", "public function handle()\n {\n $fightId = $this->argument('fight_id');\n $metricId = $this->argument('metric_id');\n //$strategyName = 'App\\\\'.$this->argument('metric_name');\n\n $metric = BossMetric::find($metricId);\n if ($metric === null) {\n $this->error(\"Error: no metric with id: $metricId found!\");\n return;\n }\n\n $fight = Fight::find($fightId);\n\n if ($fight === null) {\n $this->error(\"Error: no fight with id: $fightId found!\");\n return;\n }\n\n $strategy = $metric->getStrategy();\n $strategy->setFight($fight);\n $strategy->run();\n }", "public function handle()\n {\n\t\t$this->call('vendor:publish');\n\t\t$this->call('migrate');\n\t\t$this->call('db:seed');\n\t\t$this->call('factotum:storage');\n\t\t$this->call('factotum:storage');\n }", "public function handle()\n {\n $user_id = $this->argument('user') ?? null;\n\n if (is_null($user_id)) {\n $users = User::all();\n\n foreach ($users as $user) {\n $this->showUserBalance($user);\n }\n } else {\n $user = User::find($user_id);\n\n $this->showUserBalance($user);\n }\n }", "public function handle()\n {\n $this->capsuleService->getAll();\n $this->line('Command Worked');\n }", "public function handle()\n {\n $platform_wechat_id = $this->argument('id');\n $customer_id = $this->argument('customer_id');\n $this->info(\"Starting at \".date('Y-m-d H:i:s').\". Running initial for 【{$this->signature}】\");\n $this->getUserInfoList($platform_wechat_id,$customer_id);\n $this->info(\"End at \".date('Y-m-d H:i:s').\". over for 【{$this->signature}】\");\n }", "public function handle()\n {\n $this->publishAssets();\n $this->call('twill:flush-manifest');\n $this->call('view:clear');\n }", "public function handle()\n {\n \n $argument = $this->argument('data');\n \n $this->prepare( $argument );\n \n $this->make();\n \n $this->info( 'migration has been created : '. $this->fileName );\n \n }", "public function handle()\n {\n chdir(resource_path('assets/ts'));\n $path = $this->argument(\"path\");\n if(isset($path))\n {\n Logger::info('execute '.$path);\n Command::executeRaw('tsc', [\"-p\", $path]);\n }else\n Logger::info('execute tsc');\n Command::executeRaw('tsc');\n }", "public function handle()\n {\n $this->info('Starting date change command.');\n\n Word::where('language_id', 1)->update(array('created_at' => '1970-01-01 00:00:01'));\n Word::where('language_id', 2)->update(array('created_at' => '1970-01-01 00:00:01'));\n\n $this->info('Dates have been changed to 1970-01-01 00:00:01');\n }", "public function handle()\n {\n $this->info($this->slugger->encode($this->argument('id')));\n }", "public function handle()\n {\n $this->line(static::$logo);\n $this->line('Neat admin current version:' . Neat::version());\n\n $this->comment('');\n $this->comment('Available commands:');\n\n $this->listAvailableCommands();\n }", "public function handle()\n {\n $this->revisions->updateListFiles();\n }", "public function handle(): void\n {\n // Set argument\n $this->url = $this->argument(self::URL_ARGUMENT);\n\n // Handler takes care of computation\n (new CommandHandler($this))->compute();\n }", "public function handle()\n {\n try\n {\n $filename = $this->argument('filename');\n Excel::import(new ObjectsImport, $filename);\n\n $this->info('Data import is now completed');\n }\n catch(Exception $ex)\n {\n $this->error($ex->getMessage());\n }\n }", "public function handle() {\n $entity = $this->validateEntity($this->argument('entity'));\n $job = new DataProcessingJob($entity, str_random(16));\n $this->dispatch($job);\n }", "public function handle()\n {\n $isProductionMode = 'prod' == $this->argument('mode');\n\n if ($isProductionMode) {\n if (!$this->confirm('Are you sure to run in production mode? Running this command may cause critical issues?')) {\n exit(1);\n }\n }\n\n $this->_recalculate($isProductionMode);\n }", "public function handle()\n {\n if(!$this->verify()) {\n $rank = $this->createRankSuperAdmin();\n $user = $this->createUserSuperAdmin();\n $user->Ranks()->attach($rank);\n $this->line('Felicitaciones');\n } else {\n $this->error('No se puede ejecutar');\n }\n }", "public function handle()\n {\n // Get CLI Input\n $user_id = $this->option(\"uid\");\n\n // User Products\n ( new CommandManager() )->showUserProducts( $user_id );\n }", "public function handle()\n {\n $force = $this->option('force');\n\n if($this->option('without-bulk')){\n $this->withoutBulk = true;\n }\n\n if ($this->generateClass($force)){\n $this->info('Generating permissions for '.$this->modelBaseName.' finished');\n }\n }", "public function handle()\n {\n $userId = $this->argument('user');\n\n /** @var User $user */\n $user = User::findOrFail($userId);\n\n // Get token.\n $info = (new Client())->auth();\n\n // Save to db.\n $user->access_token = $info['access_token'];\n $user->access_secret = $info['access_secret'];\n $user->save();\n\n $this->line(\"Saved access token and secret for user: {$user->email}\");\n }", "public function handle()\n {\n $tournaments = Tournament::all()->toArray();\n foreach ($tournaments as $tournament) {\n $slug = $this->tournamentRepoObj->generateSlug($tournament['name'].Carbon::createFromFormat('d/m/Y', $tournament['start_date'])->year,'');\n DB::table('tournaments')\n ->where('id', $tournament['id'])\n ->update([\n 'slug' => $slug\n ]);\n }\n $this->info('Script executed.');\n }", "public function handle()\n {\n $m = new MemberFromText;\n $m->train();\n $id = $m->predict($this->argument('text'));\n dump(Miembro::find($id)->toArray());\n }", "public function handle()\n {\n $this->generator\n ->setConsole($this)\n ->run();\n }", "public function handle()\n {\n $this->createController();\n $this->createServiceDir();\n\n exit;\n $args = [\n '--provider' => TestProvider::class\n ];\n $className = $this->argument('className');\n if (!$className) {\n $className = 'MethodsList';\n }\n $className = ucwords($className);\n $this->call('vendor:publish', $args);\n $this->info('Display this on the screen ' . $className);\n }", "public function handle()\n {\n $this->createDirectories();\n\n $this->publishTests();\n\n $this->info('Authentication tests generated successfully.');\n }", "public function handle()\n {\n $this->setDbConnection(\n $this->input->getOption('database') ?: config('ghost-database.default_connection')\n );\n\n $native = $this->input->getOption('native-import') ?: config('ghost-database.use_native_importer');\n\n $snapshot = $this->import($native);\n\n $this->info(\"Snapshot `{$snapshot->name}` loaded!\");\n }", "public function handle()\n {\n $exec = $this->argument('exec');\n\n switch ($exec) {\n case 'download' :\n $this->download();\n break;\n\n case 'generate' :\n $this->generate();\n break;\n\n default :\n echo \"Choose 'download' or 'generate' for this command\";\n break;\n }\n }", "public function handle()\n {\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-admin.js', '--group' => 'admin']);\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-frontend.js', '--group' => 'frontend']);\n $this->call(TranslationsGenerateCommand::class);\n }", "public function handle()\n {\n $tenantName = $this->argument('tenant');\n\n $tenant = Tenant::where('name', $tenantName)->orWhere('subdomain', $tenantName)->first();\n\n if ($tenant) {\n $tenant->setActive();\n \\Artisan::call('tinker');\n } else {\n $this->error('Error: Tenant not found');\n }\n }", "public function handle()\n {\n try {\n if (!empty($userId = $this->argument('user'))) {\n $user = User::find($userId);\n } else {\n $user = User::inRandomOrder()->first();\n }\n\n if (empty($user)) {\n throw new \\Exception('User not found');\n }\n\n echo JWTAuth::fromUser($user);\n } catch (\\Exception $e) {\n echo $e->getMessage();\n }\n\n }", "public function handle()\n {\n $this->fetchAndSetToken();\n $imagesToDownload = $this->peekImages(WatchedApp::pluck('package_name'));\n $this->fetchImages($imagesToDownload);\n\n if ($this->option('dont-optimize')) {\n return;\n }\n\n $this->runOptimizeCommand();\n }", "public function handle()\n {\n $this->setCryptIVFromUrl($this->argument('url'));\n\n $participant = URLParser::parseByName('santa.index', $this->argument('url'))->participant;\n if($participant) {\n $draw = $participant->draw;\n } else {\n $draw = URLParser::parseByName('organizer.index', $this->argument('url'))->draw;\n }\n\n $this->table(\n ['ID', 'Name', 'Email'],\n $draw->participants()->get(['id', 'name', 'email'])->toArray()\n );\n }", "public function handle()\n {\n $this->warn('Starting Retrieve Data');\n\n PeopleService::retrieveData();\n\n $this->info('Retrieve Data Completed');\n }", "public function handle()\n {\n $user_from = $this->option('from');\n $user_to = $this->option('to');\n $sum = $this->option('sum');\n\n CreateTransaction::dispatch($this->usersRepository->getByID($user_from), $this->usersRepository->getByID($user_to), $sum, true);\n $this->transactionsRepository->getAll()->each(function ($transaction){\n \tExecuteTransaction::dispatch($transaction);\n });\n }", "public function handle()\n {\n // if you are on the local environment\n if (!(app()->isLocal() || app()->runningUnitTests())) {\n $this->error('This command is only available on the local environment.');\n return;\n }\n\n $fqdn = $this->argument('fqdn');\n if ($tenant = Tenant::retrieveBy($fqdn)){\n $tenant->delete($fqdn);\n $this->info(\"Tenant {$fqdn} successfully deleted.\");\n }else {\n $this->error('This fqdn doesn\\'t exist.');\n }\n\n }", "public function handle()\n {\n \n $period = $this->option('period');\n \n switch ($period) {\n\n case 'half_month':\n $this->info('Grabing Half Month Income...');\n $this->halfMonth();\n break;\n\n case 'monthly':\n $this->info('Grabing Monthly Income...');\n $this->monthly();\n break;\n \n default:\n $this->info('Grabing Daily Income...');\n $this->daily();\n break;\n\n }\n\n \n }", "public function handle()\n {\n $countryFiles = $this->getFiles();\n\n foreach ($countryFiles as $fileName) {\n $this->seed($fileName);\n }\n\n $this->info('End.');\n }", "public function handle()\n {\n $check = PublishTraitsService::publishTraits();\n\n if ($check)\n {\n $this->info('All files have been published');\n }\n\n $this->info('Failed to publish');\n }", "public function fire()\n {\n $entityName = $this->argument('entityName');\n $startEntityId = $this->argument('startEntityId');\n $endEntityId = $this->argument('endEntityId');\n $depth = $this->argument('depth');\n\n $this->fixturePath = $this->option('outputPath');\n\n $this->info(\"Generating fixtures for $entityName in {$this->fixturePath}...\");\n \n $this->generateFixtures($entityName, $startEntityId, $endEntityId, $depth);\n }", "public function handle()\n {\n $user = User::where('username', $this->argument('user'))\n ->orWhere('email', $this->argument('user'))\n ->first();\n\n if ($user != null) {\n $user->assign('admin');\n $this->line(\"{$user->email} was successfully made an admin.\");\n } else {\n $this->line(\"No user found where username or email is '{$this->argument('user')}'\");\n }\n }", "public function handle()\n {\n event( 'laraview:compile' );\n $this->checkForSelectedViewGeneration();\n\n app( RegisterBlueprint::class )\n ->console( $this )\n ->generate();\n }", "public function handle() {\n try {\n $this->roomService->loadRoomOccupations();\n Log::notice('untis:occupations executed successfully.');\n $this->line('Loaded room occupations from WebUntis.');\n } catch (Exception $e) {\n Log::error('Error loading room occupations.', ['exception' => $e]);\n $this->error('Error loading room occupations: ' . $e->getMessage());\n }\n }", "public function handle()\n {\n $project = Project::with(['team.admins', 'team.members'])->findOrFail($this->option('project-id'));\n $user = User::findOrFail($this->option('user-id'));\n if ($this->option('admin')) {\n $project->team->admins()->syncWithoutDetaching($user);\n } else {\n $project->team->members()->syncWithoutDetaching($user);\n }\n return Command::SUCCESS;\n }", "public function handle()\n {\n $this->call('vendor:publish', [\n '--provider' => \"Qoraiche\\MailEclipse\\MailEclipseServiceProvider\",\n ]);\n }", "public function handle()\n {\n $this->loadIxList();\n $this->loadIxMembersList();\n $this->updateIxInfo();\n $this->updateIxMembersInfo();\n }", "public function handle()\n\t{\n\t\tif ($this->option('dev')) {\n\t\t\tsystem('php '.base_path('.deploy/deploy-dev.php'));\n\t\t} else {\n\t\t\tsystem('php '.base_path('.deploy/deploy.php'));\n\t\t}\n\t}", "public function handle()\n {\n $date_from = $this->argument('date_from');\n\t\t$date_to = $this->argument('date_to');\n\t\tif(!$date_from) {\n\t\t\t$date_from = Carbon::today()->subDays(5);\n\t\t}\n\t\tif(!$date_to) {\n\t\t\t$date_to = Carbon::yesterday();\n\t\t}\n\t\tStats::computeMembers($this->argument('venue_id'), $date_from, $date_to);\n }", "public function handle()\n {\n switch ($this->argument('type')){\n case 'fih':\n $scrapper = new Scrappers\\FederationScrapper();\n $scrapper->get($this->option('level'));\n print $scrapper->message();\n break;\n }\n }", "public function handle(Command $command);", "public function handle(Command $command);", "public function handle()\n {\n Log::info(\"seed:dash Command is working fine!\");\n $this->info('Dashboard Database seeding completed successfully.');\n }", "public function handle()\n {\n $originalId = $this->argument('original_id');\n\n $status = true;\n if ($this->option('status') === 'false') {\n $status = false;\n }\n\n if ($video = Video::where('original_id', $originalId)->first()) {\n $video->dmca_claim = $status;\n $video->save();\n\n $this->info('Video\\'s dmca_claim set to: ' . json_encode($status));\n return ;\n }\n\n $this->error('No video found with original_id of: ' . $originalId);\n return;\n }", "public function handle()\n {\n $this->call('config:clear');\n\n $this->call('config:update');\n\n $this->info('Configuration cached successfully!');\n }", "public function handle()\n {\n $filePath = 'public/' . $this->argument('fileName');\n $count = $this->argument('count');\n \n $fileData = array_slice(file($filePath), 0, $count);\n $this->info(implode('', $fileData));\n }", "public function handle()\n {\n //\n $modelName = $this->argument('model');\n $column = $this->argument('column');\n $this->generateMutation($modelName, $column);\n\n }", "public function handle()\n {\n $email = $this->argument('email');\n\n Mail::to($email)->send(new SendMailable('Test Mail'));\n\n if (Mail::failures()) {\n $this->info('Email failed to send');\n } else {\n $this->info('Email successfully sent');\n }\n }", "public function handle()\n {\n $this->call('route:trans:clear');\n\n $this->cacheRoutesPerLocale();\n\n $this->info('Routes cached successfully for all locales!');\n }", "public function handle()\n {\n $this->info('Welcome to command for Bantenprov\\WilayahIndonesia package');\n }", "public function handle()\n {\n if($this->hasOption('no_dump') && $this->option('no_dump')){\n $this->composer_dump = false;\n }\n $this->readyDatas();\n $this->datas['startSymbol']='{{';\n $this->datas['endSymbol']='}}';\n $this->create();\n }", "public function handle()\n {\n $repository = new OglasiCrawlerRepository();\n $ads = $repository->getAds();\n $repository->saveAds($ads);\n\n echo 'Ads were successfully retrieved' . PHP_EOL;\n }", "public function handle()\n {\n $this->makeDir($this->basePath . $this->kebabPlural());\n\n $this->exportViews();\n\n $this->info('Resource views generated successfully.');\n }", "public function handle()\n {\n $movies = \\App\\Models\\Movie::whereNull('meta')->take(40)->orderBy('id')->get();\n $movies->each(function($movie){ sleep(1); $movie->getMeta(); });\n return Command::SUCCESS;\n }", "public function handle()\n {\n $this->packageGenerator->setConsole($this)\n ->setPackage($this->argument('package'))\n ->setType('shipping')\n ->setForce($this->option('force'))\n ->generate();\n }", "public function handle()\n {\n $test = $this->argument('test');\n\n $dir = config('speed-test.dir');\n\n $className = ucfirst(\\Str::camel($test));\n\n $namespace = config('speed-test.namespace');\n\n $class = class_entity($className)\n ->namespace($namespace);\n\n $class->method('speed1')\n ->line($this->option('line'))->doc(function ($doc) use ($className) {\n /** @var DocumentorEntity $doc */\n $doc->tagCustom('times', $this->option('times'));\n $doc->description($this->option('description') ?: \"{$className} Speed 1\");\n });\n\n if (! is_dir($dir)) {\n mkdir($dir, 0777, 1);\n }\n\n file_put_contents(\n $dir.'/'.$className.'.php',\n $class->wrap('php')\n );\n\n $this->info('Speed created!');\n\n return 0;\n }", "public function handle()\n {\n $message = $this->GenerateRandomUser($this->argument('count'));\n $this->info($message);\n }", "public function handle()\n {\n // Configuration...\n $this->callSilent('vendor:publish', ['--tag' => 'model-login-config']);\n\n // Migrations\n $this->callSilent('vendor:publish', ['--tag' => 'model-login-migrations']);\n\n $this->info('Model Login resources published.');\n }", "public function handle()\n {\n $host = Cache::get('executingHost', null);\n $this->info(\"Host: ${host}\");\n\n if ($host === null) {\n $this->info('実行するホストが選択されていません');\n return;\n }\n\n if (Schema::hasTable('companies') && Company::count() !== 0) {\n $this->info('マイグレーションが既に1回以上実行されています');\n return;\n }\n\n $should_execute = $host === $this->argument('executingHost');\n\n if ($should_execute) {\n Artisan::call('migrate:fresh', ['--seed' => true]);\n $this->info('マイグレーションが完了しました');\n\n Cache::forget('executingHost');\n } else {\n $this->info('別ホストにてマイグレーションが行われます');\n }\n }", "public function handle()\n {\n if ($this->validation()) {\n $money = $this->argument('money');\n Cache::increment('amount', $money);\n }\n }", "public function handle()\n {\n $this->publishConfig();\n $this->publishClassStub();\n $this->generateAndStoreKey();\n\n $this->info('Use the details below for your \"Lead delivery options\" in Google Ads.');\n $this->info('Webhook URL: ' . route('GoogleAdsLeadExtensionController@index'));\n $this->info('Key: ' . $this->generated_key);\n }", "public function handle()\n {\n $this->info('Publishing stuff..');\n\n $this->publishFiles();\n\n $this->info('Setup complete. Enjoy!');\n }", "public function handle()\n {\n $opts = $this->options();\n $args = $this->arguments();\n #print_r($opts);\n #print_r($args);\n\n # Redundant as argument validation handled by Laravel\n #\n if (!isset($args['destination'])) {\n printf(\"Usage: php artisan %s\\n\", $this->signature);\n exit(1);\n }\n\n # Default to normal message type\n #\n if (!isset($opts['type'])) {\n $opts['type'] = 'normal';\n }\n\n $uac = new UserApiController();\n\n if ($opts['type'] == 'normal') {\n if (!isset($opts['message'])) {\n printf(\"Usage: php artisan %s\\n\\n\", $this->signature);\n printf(\"ERROR: Message must be specified for type 'normal'\\n\");\n exit(1);\n }\n $result = $uac->sendSms(\n $args['destination'],\n $opts['message'],\n $opts['route']\n );\n }\n else if ($opts['type'] == 'otp') {\n $result = $uac->sendVerificationSms(\n $args['destination'],\n '<code>',\n '<name>',\n $opts['route'],\n '<appName>'\n );\n }\n\n if ($result === true) {\n printf(\"INFO: SMS message to %s sent successfully (%s)\\n\",\n $args['destination'], $opts['type']);\n }\n else {\n printf(\"INFO: SMS message to %s failed to send (%s)\\n\", \n $args['destination'], $opts['type']);\n printf(\"ERROR: %s\\n\", $result);\n }\n\n return;\n }" ]
[ "0.6469971", "0.64641356", "0.6427384", "0.6349752", "0.63188183", "0.62750113", "0.6261585", "0.6261214", "0.6235854", "0.6225116", "0.6222161", "0.6214144", "0.6193531", "0.6191337", "0.6183868", "0.61772275", "0.61766857", "0.6172786", "0.6149171", "0.6148903", "0.61484134", "0.61469173", "0.6138112", "0.61347705", "0.61316174", "0.61158997", "0.6113888", "0.6110495", "0.6108539", "0.61056405", "0.6102598", "0.61022663", "0.61016774", "0.6096468", "0.6094955", "0.60922974", "0.6088507", "0.6083433", "0.6082336", "0.6077499", "0.60767883", "0.6075641", "0.6073871", "0.6072606", "0.60701466", "0.60694647", "0.60693175", "0.6067332", "0.6061484", "0.6059711", "0.6059688", "0.60574067", "0.60503477", "0.6042625", "0.6040687", "0.6032303", "0.60306066", "0.602774", "0.60255086", "0.60207987", "0.60190594", "0.6018816", "0.60144967", "0.60144013", "0.6014115", "0.6011956", "0.60092497", "0.6007996", "0.60079277", "0.60061836", "0.60051036", "0.6001119", "0.6001112", "0.6000026", "0.5999729", "0.5991934", "0.59873074", "0.5987054", "0.59868026", "0.59868026", "0.59856236", "0.59836555", "0.5980716", "0.5976703", "0.5976261", "0.5973673", "0.5969664", "0.59683484", "0.5966431", "0.5965345", "0.59645647", "0.59615767", "0.5960291", "0.59555584", "0.59549415", "0.5952351", "0.59519506", "0.594845", "0.5946748", "0.5946337", "0.5944945" ]
0.0
-1
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() != null;\n }", "public function authorize(): bool\n {\n return $this->user() !== null;\n }", "public function authorize(): bool\n {\n return $this->isUserAuthorised();\n }", "public function authorize()\n {\n return !is_null($this->user());\n }", "public function authorize()\n {\n return request()->user() != null;\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 // this was my best guess\n return $this->user()->id === $this->route('user')->id;\n }", "public function isAuthorized()\n {\n return $this->cookieHelper->requestCookieExists('auth');\n }", "public function authorize()\n {\n return !empty(Auth::user()) && ($this->user()->isAnAdmin() || $this->user()->hasRole('user'));\n }", "public function authorize()\n {\n $originAccount = Account::find($this->get('origin_account_id'));\n return $originAccount->user_id == auth()->id();\n }", "public function authorize()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default:\n return $this->user()->type == 'App\\\\Staff' ? true : false;\n break;\n }\n\n return false;\n }", "public function authorize()\n {\n if($this->user()->role == \"admin\" || $this->user()->id == $this->request->get('author_id')) return true;\n else return false;\n }", "public function authorize()\n {\n if(\\Auth::guest())\n {\n return false;\n } else {\n // Action 1 - Check if authenticated user is a superadmin\n if(\\Auth::User()->hasRole('superadmin'))\n return true;\n\n // Action 2 - Find UUID from request and compare to authenticated user\n $user = User::where('uuid', $this->user_uuid)->firstOrFail();\n if($user->id == \\Auth::User()->id)\n return true;\n\n // Action 3 - Fail request\n return false;\n }\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 }", "public function isAuthorized(): bool\n {\n // TODO: implement authorization check\n\n return true;\n }", "public function isAuthorized() {}", "public function authorize()\n {\n return request()->loggedin_role === 1;\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 authorize()\n {\n $accessor = $this->user();\n\n return $accessor->isAdmin() || $accessor->hasKey('post-users');\n }", "public function authorize()\n {\n $user = \\Auth::getUser();\n\n return $user->user_type == 1;\n }", "public function authorize()\n {\n return auth()->check() ? true : false;\n }", "public function authorize()\n {\n return auth()->check() ? true : false;\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 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 authorize()\n {\n $user = JWTAuth::parseToken()->authenticate();\n $organisation = Organization::findOrFail($this->route('organizations'));\n return $organisation->admin_id == $user->id;\n }", "public function authorize()\n {\n if($this->user()->isAdmin())\n return true;\n\n return false;\n }", "function isAuthorized()\n {\n $authorized = parent::isAuthorized();\n return $authorized;\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 $this->user = User::query()->find($this->route()->parameter('user'));\n $this->merge(['verified' => $this->get('verified') ? 1 : 0]);\n\n return true;\n }", "public function authorize()\n {\n $user = request()->user('api');\n return $user->isSenior();\n }", "public function authorize()\n {\n return is_client_or_staff();\n }", "public function isAuthorized() {\n\t\treturn true;\n\t}", "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "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 isAuthorized()\n\t{\n\t\t$sessionVal = Yii::$app->session->get($this->sessionParam);\n\t\treturn (!empty($sessionVal));\n\t}", "public function authorize() {\n\n return auth()->user() && auth()->user()->username === $this->user->username;\n }", "public function authorize()\n {\n return session('storefront_key') || request()->session()->has('api_credential');\n }", "public function authorize()\n {\n if ($this->user()->isAdmin($this->route('organization'))) {\n return true;\n }\n\n return false;\n\n }", "public function authorized()\n {\n return $this->accepted && ! $this->test_mode;\n }", "public function authorize()\n {\n return $this->user() && $this->user()->role === Constants::USER_ROLE_ADMIN;\n }", "public function authorize()\n {\n if (!auth()->check()) {\n return false;\n }\n return true;\n }", "public function hasAuthorized() {\n return $this->_has(1);\n }", "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 /*\n if ($this->loan_id && is_numeric($this->loan_id) && $loan = Loan::whereId($this->loan_id)->first()) {\n // loan_id belongs to requesting user\n return $loan && $this->user()->id == $loan->user_id;\n }\n */\n return true; // let rules handle it\n }", "public function authorize()\n {\n //TODO Authorice Request (without Controller)\n return auth()->user()->role_id === 1;\n }", "public function authorize(): bool\n {\n return $this->user()->id === $this->article->user->id;\n }", "public function isAuth()\n {\n return $this->session->hasAuthorisation();\n }", "public function authorize()\n {\n return $this->user()->rol == 'admin' ? true : false;\n }", "public function authorize()\n {\n if(Auth::user())\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public function authorize()\n {\n //Check if user is authorized to access this page\n if($this->user()->authorizeRoles(['admin', 'hrmanager', 'hruser'])) {\n return true;\n } else {\n return false;\n }\n }", "public function authorize()\n {\n return \\Auth::check() ? true : false;\n }", "public function authorize()\n\t{\n\t\treturn true; //no user checking\n\t}", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "public function authorize()\n {\n return !empty(Auth::user());\n }", "public function authorize()\n {\n return $this->groupHasUser() || $this->hasSeller();\n }", "public function isAuthorized() {\n\t\t\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\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}", "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 if (!\\Auth::guest()) {\n $user = \\Auth::getUser();\n if ($user->type == User::USER_TYPE_ADMIN) {\n return true;\n }\n }\n\n return false;\n }", "public function authorize()\n {\n if (auth()->user()->is_admin) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n if ($this->user()->is_admin){\n return true;\n }\n else if ($this->method == \"PUT\"){\n if ($this->user()->id == $this->input('id')){\n return true;\n }\n }\n return false;\n }", "public function authorize(): bool\n {\n return parent::authorize() && (int)$this->playList->user_id === auth()->user()->id;\n }", "public function authorize() {\n\t\treturn $this->user()->is_admin;\n\t}", "public function authorize()\n {\n if (Auth::check()) {\n \n return true;\n \n }\n return false;\n }", "public function authorize()\n {\n $user = Auth::user();\n return $user && $user->rol == 'admin';\n }", "public function authorize()\n {\n // TODO: Check if has business\n return session()->has('id');\n }", "public function authorize()\n\t{\n\t\t// Nutzern akzeptiert werden\n\t\tif(Auth::check())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function authorize()\n {\n return $this->auth->check();\n }", "public function authorize()\n {\n if (auth()->check() && auth()->user()->isAdmin()) {\n return true;\n }\n\n return false;\n }", "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 if (auth()->user()->isAdmin() || auth()->user()->isCustomer()) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->container['auth']->check();\n }", "function isAuthorized($request) {\n return true;\n }", "public function authorize()\n {\n return Auth::guest() || isMember();\n }", "public function authorize()\n {\n return auth()->user() && auth()->user()->isCeo();\n }", "public function authorize(): bool\n {\n $deckId = $this->request->get('deck_id');\n $userId = Deck::whereKey($deckId)->value('user_id');\n\n return $userId === user()->id;\n }", "public function authorize()\n {\n return Auth::check() && Auth::user()->is_contractor;\n }", "public function authorize()\n {\n return TRUE;\n }", "public function authorize()\n {\n $user = User::find($this->id);\n\n if (!$user) {\n $user = User::where('no_ahli', $this->no_ahli)->first();\n }\n if ($user && $user->id == auth()->user()->id) return true;\n if (auth()->user()->is('admin')) return true;\n\n return false;\n }", "public function authorize()\n {\n # if it's false, it will rejected\n return true;\n }", "public function authorize()\n {\n $isValid = auth()->user()->is($this->route('task')->attempt->checklist->owner);\n\n return $isValid;\n }", "public function authorize()\n {\n $user = Auth::user();\n\n return ($user->getRole() == 'admin');\n }", "public function is_authorized() {\n\t\t$authorized = true;\n\t\tif ( $this->is_access_token_expired() ) {\n\t\t\t$authorized = false;\n\t\t}\n\n\t\treturn $authorized;\n\t}", "public function authorize()\n {\n $user = User::findOrFail($this->route('id'));\n\n return $user->hasRole('admin') || $user->hasRole('teacher');\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 isAuthorized() {\n\t\treturn (bool)$this->_storage->hasData();\n\t}", "public function authorize() : bool\n {\n // TODO check request to xhr in middleware\n return true;\n }", "public function authorize()\n {\n // User system not implemented\n return true;\n }", "public function authorize()\n {\n $idExpense = $this->input('expense');\n $expense = Expense::find($idExpense);\n\n return $expense && $this->user()->id == $expense->user_id;\n }", "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 $user = $this->findFromUrl('user');\n return $this->user()->can('update', $user);\n }", "public function authorize()\n {\n $user = Auth::user();\n $orderElement = OrderElement::find($this->input(\"order_element_id\"));\n $order = $orderElement->order;\n\n if ($user->id == $order->user_id) {\n return true;\n } else {\n return false;\n }\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()\n {\n if (session()->has('user'))\n {\n $participantController = new ParticipantController();\n\n return !$participantController->isParticipating($this->input('id_user'), $this->input('id_event'));\n }\n else\n {\n return false;\n }\n }", "public function authorize()\n {\n return (Auth::user()->allowSuperAdminAccess || Auth::user()->allowAdminAccess);\n }" ]
[ "0.83988106", "0.8375419", "0.8375419", "0.83422995", "0.8251736", "0.82455397", "0.82108665", "0.8144899", "0.8109159", "0.8082", "0.7990051", "0.7987851", "0.798199", "0.7958163", "0.7949029", "0.7946942", "0.79250675", "0.7913215", "0.78981346", "0.78917295", "0.78889436", "0.78883326", "0.78593844", "0.783886", "0.783886", "0.7837413", "0.7822166", "0.78110564", "0.78064126", "0.77906877", "0.7785905", "0.7780735", "0.77793187", "0.7761016", "0.77523595", "0.77171916", "0.77171916", "0.77143407", "0.7711753", "0.7701846", "0.7692613", "0.7690749", "0.7690104", "0.7688827", "0.7671174", "0.76656014", "0.76646394", "0.7654714", "0.76486903", "0.76410675", "0.76410496", "0.76400185", "0.763243", "0.7628761", "0.7626861", "0.76255405", "0.76200867", "0.76200867", "0.76113725", "0.7602363", "0.7601313", "0.7600614", "0.7600614", "0.75994784", "0.7597175", "0.7593741", "0.758599", "0.7584371", "0.75786763", "0.7560661", "0.7551552", "0.75501144", "0.7550086", "0.7541874", "0.75402915", "0.75372165", "0.7536008", "0.7527105", "0.7515016", "0.7511648", "0.7498465", "0.7495165", "0.74936795", "0.74896306", "0.7486042", "0.7484901", "0.7479097", "0.74750495", "0.7470983", "0.7470015", "0.7463743", "0.7463166", "0.7461619", "0.7460629", "0.74603736", "0.74478126", "0.74382544", "0.7435131", "0.7432152", "0.7430674", "0.74216324" ]
0.0
-1
Get the validation rules that apply to the request.
public function rules() { $rules = [ 'name' => 'required', 'slug' => 'required|unique:coupons,slug,' . $this->coupon, 'startDate'=> 'required', 'endingDate'=> 'required', 'active'=> 'required', 'idBrand'=> 'required', ]; if($this->get('imgUrl')){ $rules = array_merge($rules,['imgUrl'=>'mimes:jpg,jpeg,png,gif']); } return $rules; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the schema\n $schema = $this->getSchema();\n\n return $schema->getRules($this);\n }", "public function rules()\n {\n return $this->validationRules;\n }", "public function rules()\n {\n $rules = [];\n switch ($this->getMethod()):\n case \"POST\":\n $rules = [\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"PUT\":\n $rules = [\n 'id' => 'required|numeric',\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"DELETE\":\n $rules = [\n 'id' => 'required|numeric'\n ];\n break;\n endswitch;\n return $rules;\n }", "public static function getRules()\n {\n return (new static)->getValidationRules();\n }", "public function getRules()\n {\n return $this->validation_rules;\n }", "public function getValidationRules()\n {\n return [];\n }", "public function getValidationRules() {\n return [\n 'email' => 'required|email',\n 'name' => 'required|min:3',\n 'password' => 'required',\n ];\n }", "public function rules()\n {\n if($this->isMethod('post')){\n return $this->post_rules();\n }\n if($this->isMethod('put')){\n return $this->put_rules();\n }\n }", "public function rules()\n {\n $rules = [];\n\n // Validation request for stripe keys for stripe if stripe status in active\n if($this->has('stripe_status')){\n $rules[\"api_key\"] = \"required\";\n $rules[\"api_secret\"] = \"required\";\n $rules[\"webhook_key\"] = \"required\";\n }\n\n if($this->has('razorpay_status')){\n $rules[\"razorpay_key\"] = \"required\";\n $rules[\"razorpay_secret\"] = \"required\";\n $rules[\"razorpay_webhook_secret\"] = \"required\";\n }\n\n // Validation request for paypal keys for paypal if paypal status in active\n if($this->has('paypal_status')){\n $rules[\"paypal_client_id\"] = \"required\";\n $rules[\"paypal_secret\"] = \"required\";\n $rules[\"paypal_mode\"] = \"required_if:paypal_status,on|in:sandbox,live\";\n }\n\n\n return $rules;\n }", "protected function getValidationRules()\n {\n $rules = [\n 'title' => 'required|min:3|max:255',\n ];\n\n return $rules;\n }", "public function getRules()\n\t{\n\t\t$rules['user_id'] = ['required', 'exists:' . app()->make(User::class)->getTable() . ',id'];\n\t\t$rules['org_id'] = ['required', 'exists:' . app()->make(Org::class)->getTable() . ',id'];\n\t\t$rules['role'] = ['required', 'string', 'in:' . implode(',', Static::ROLES)];\n\t\t$rules['scopes'] = ['nullable', 'array'];\n\t\t$rules['ended_at'] = ['nullable', 'date'];\n\t\t$rules['photo_url'] = ['nullable', 'string'];\n\n\t\treturn $rules;\n\t}", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n case 'PUT':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n }\n }", "public function rules()\n {\n\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'min:6|same:password',\n 'role_id' => 'required'\n ];\n break;\n case 'PUT':\n case 'PATCH':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n\n default:\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n }\n return $rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n switch($this->method()) {\n case 'GET':\n return [];\n case 'POST':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'DELETE':\n return [];\n default:break;\n }\n \n }", "public function rules($request) {\n $function = explode(\"@\", $request->route()[1]['uses'])[1];\n return $this->getRouteValidateRule($this->rules, $function);\n // // 获取请求验证的函数名\n // // ltrim(strstr($a,'@'),'@')\n // if (count(explode(\"@\", Request::route()->getActionName())) >= 2) {\n // $actionFunctionName = explode(\"@\", Request::route()->getActionName()) [1];\n // }\n\n // // 取配置并返回\n // if (isset($this->rules[$actionFunctionName])) {\n // if (is_array($this->rules[$actionFunctionName])) {\n // return $this->rules[$actionFunctionName];\n // }\n // else {\n // return $this->rules[$this->rules[$actionFunctionName]];\n // }\n // }\n // else {\n // return [];\n // }\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_MovieID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CountryID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_BroadCastDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t\t'_CreatedDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n if ($this->method() === 'POST') {\n return $this->rulesForCreating();\n }\n\n return $this->rulesForUpdating();\n }", "public function rules()\n {\n $validation = [];\n if ($this->method() == \"POST\") {\n $validation = [\n 'name' => 'required|unique:users',\n 'email' => 'required|unique:users|email',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'required|min:6',\n 'roles' => 'required',\n ];\n } elseif ($this->method() == \"PUT\") {\n $validation = [\n 'name' => 'required|unique:users,name,' . $this->route()->parameter('id') . ',id',\n 'email' => 'required|unique:users,email,' . $this->route()->parameter('id') . ',id|email',\n 'roles' => 'required',\n ];\n\n if ($this->request->get('change_password') == true) {\n $validation['password'] = 'required|min:6|confirmed';\n $validation['password_confirmation'] = 'required|min:6';\n }\n }\n\n return $validation;\n }", "protected function getValidationRules()\n {\n $class = $this->model;\n\n return $class::$rules;\n }", "public function rules()\n {\n $data = $this->request->all();\n $rules['username'] = 'required|email';\n $rules['password'] = 'required'; \n\n return $rules;\n }", "public function rules()\n {\n $rules = $this->rules;\n\n $rules['fee'] = 'required|integer';\n $rules['phone'] = 'required|min:8|max:20';\n $rules['facebook'] = 'required|url';\n $rules['youtube'] = 'required|url';\n $rules['web'] = 'url';\n\n $rules['requestgender'] = 'required';\n $rules['serviceaddress'] = 'required|max:150';\n $rules['servicetime'] = 'required|max:150';\n $rules['language'] = 'required|max:150';\n $rules['bust'] = 'required|max:100|integer';\n $rules['waistline'] = 'required|max:100|integer';\n $rules['hips'] = 'required|max:100|integer';\n $rules['motto'] = 'max:50';\n\n return $rules;\n }", "protected function getValidRules()\n {\n return $this->validRules;\n }", "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n case 'PUT':\n {\n return [\n 'name' => 'required',\n ];\n }\n default:break;\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n {\n return [\n 'mobile' => ['required','max:11','min:11'],\n 'code' => ['required','max:6','min:6'],\n 'avatar' => ['required'],\n 'wx_oauth' => ['required'],\n 'password' => ['nullable','min:6','max:20']\n ];\n }\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default: {\n return [];\n }\n }\n }", "public function rules()\n {\n switch ($this->getRequestMethod()) {\n case 'index':\n return [\n 'full_name' => 'nullable|string',\n 'phone' => 'nullable|string',\n ];\n break;\n case 'store':\n return [\n 'crm_resource_id' => 'required|exists:crm_resources,id',\n 'channel' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$channel),\n 'call_status' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$call_statuses),\n ];\n break;\n default:\n return [];\n break;\n }\n }", "public function rules()\n {\n //With password\n if(request('password') || request('password_confirmation')) {\n return array_merge($this->passwordRules(), $this->defaultRules());\n }\n //Without password\n return $this->defaultRules();\n }", "public function rules()\n {\n $rules = [\n '_token' => 'required'\n ];\n\n foreach($this->request->get('emails') as $key => $val) {\n $rules['emails.'.$key] = 'required|email';\n }\n\n return $rules;\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CoverImageID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_TrackID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Status' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Rank' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CreateDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n { \n return $this->rules;\n }", "public function getValidationRules()\n {\n if (method_exists($this, 'rules')) {\n return $this->rules();\n }\n\n $table = $this->getTable();\n $cacheKey = 'validate.' . $table;\n\n if (config('validate.cache') && Cache::has($cacheKey)) {\n return Cache::get($cacheKey);\n }\n\n // Get table info for model and generate rules\n $manager = DB::connection()->getDoctrineSchemaManager();\n $details = $manager->listTableDetails($table);\n $foreignKeys = $manager->listTableForeignKeys($table);\n\n $this->generateRules($details, $foreignKeys);\n\n if (config('validate.cache')) {\n Cache::forever($cacheKey, $this->rules);\n }\n\n return $this->rules;\n }", "public function getValidationRules()\n {\n $rules = $this->getBasicValidationRules();\n\n if (in_array($this->type, ['char', 'string', 'text', 'enum'])) {\n $rules[] = 'string';\n if (in_array($this->type, ['char', 'string']) && isset($this->arguments[0])) {\n $rules[] = 'max:' . $this->arguments[0];\n }\n } elseif (in_array($this->type, ['timestamp', 'date', 'dateTime', 'dateTimeTz'])) {\n $rules[] = 'date';\n } elseif (str_contains(strtolower($this->type), 'integer')) {\n $rules[] = 'integer';\n } elseif (str_contains(strtolower($this->type), 'decimal')) {\n $rules[] = 'numeric';\n } elseif (in_array($this->type, ['boolean'])) {\n $rules[] = 'boolean';\n } elseif ($this->type == 'enum' && count($this->arguments)) {\n $rules[] = 'in:' . join(',', $this->arguments);\n }\n\n return [$this->name => join('|', $rules)];\n }", "public function rules()\n {\n $rules = [];\n if ($this->isMethod('post')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n } elseif ($this->isMethod('put')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n }\n return $rules;\n }", "public function validationRules()\n {\n return [];\n }", "public function rules()\n {\n $rules = $this->rules;\n if(Request::isMethod('PATCH')){\n $rules['mg_name'] = 'required|min:2,max:16';\n }\n return $rules;\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_EventID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_SourceID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_HasEvent' => array(\n\t\t\t\t'inArray' => array('values' => array(self::HASEVENT_0, self::HASEVENT_1),),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n $rules = [];\n switch ($this->method()){\n case 'GET':\n $rules['mobile'] = ['required', 'regex:/^1[3456789]\\d{9}$/'];\n break;\n case 'POST':\n if($this->route()->getActionMethod() == 'sms') {\n $rules['area_code'] = ['digits_between:1,6'];\n if(in_array($this->get('type'), ['signup', 'reset_pay_pwd'])) {\n $rules['mobile'] = ['required', 'digits_between:5,20'];\n if($this->get('type') == 'signup' && !$this->get('area_code')) {\n $this->error('请选择区号');\n }\n }\n $rules['type'] = ['required', Rule::in(\\App\\Models\\Captcha::getSmsType())];\n }\n break;\n }\n return $rules;\n }", "public function rules()\n {\n if ($this->isMethod('post')) {\n return $this->createRules();\n } elseif ($this->isMethod('put')) {\n return $this->updateRules();\n }\n }", "public function rules()\n {\n $rules = [\n 'first_name' => ['required'],\n 'birthdate' => ['required', 'date', 'before:today'],\n ];\n\n if (is_international_session()) {\n $rules['email'] = ['required', 'email'];\n }\n\n if (should_collect_international_phone()) {\n $rules['phone'] = ['phone'];\n }\n\n if (is_domestic_session()) {\n $rules['phone'] = ['required', 'phone'];\n }\n\n return $rules;\n }", "public function rules()\n {\n dd($this->request->get('answer'));\n foreach ($this->request->get('answer') as $key => $val)\n {\n $rules['answer.'.$key] = 'required';\n }\n\n return $rules;\n }", "public function rules()\n {\n return static::$rules;\n }", "function getRules() {\n\t\t$fields = $this->getFields();\n\t\t$allRules = array();\n\n\t\tforeach ($fields as $field) {\n\t\t\t$fieldRules = $field->getValidationRules();\n\t\t\t$allRules[$field->getName()] = $fieldRules;\n\t\t}\n\n\t\treturn $allRules;\n\t}", "public static function getValidationRules(): array\n {\n return [\n 'name' => 'required|string|min:1|max:255',\n 'version' => 'required|float',\n 'type' => 'required|string',\n ];\n }", "public function rules()\n {\n $rules = [\n 'name' => 'required',\n 'phone' => 'required|numeric',\n 'subject' => 'required',\n 'message' => 'required',\n 'email' => 'required|email',\n ];\n\n return $rules;\n }", "public function getValidationRules(): array\n {\n return [\n 'email_address' => 'required|email',\n 'email_type' => 'nullable|in:html,text',\n 'status' => 'required|in:subscribed,unsubscribed,cleaned,pending',\n 'merge_fields' => 'nullable|array',\n 'interests' => 'nullable|array',\n 'language' => 'nullable|string',\n 'vip' => 'nullable|boolean',\n 'location' => 'nullable|array',\n 'location.latitude' => ['regex:/^[-]?(([0-8]?[0-9])\\.(\\d+))|(90(\\.0+)?)$/'], \n 'location.longitude' => ['regex:/^[-]?((((1[0-7][0-9])|([0-9]?[0-9]))\\.(\\d+))|180(\\.0+)?)$/'],\n 'marketing_permissions' => 'nullable|array',\n 'tags' => 'nullable|array'\n ];\n }", "protected function getValidationRules()\n {\n return [\n 'first_name' => 'required|max:255',\n 'last_name' => 'required|max:255',\n 'email' => 'required|email|max:255',\n 'new_password' => 'required_with:current_password|confirmed|regex:' . config('security.password_policy'),\n ];\n }", "public function rules()\n {\n // get 直接放行\n if( request()->isMethod('get') ){\n return []; // 规则为空\n }\n\n // 只在post的时候做验证\n return [\n 'username' => 'required|min:2|max:10', \n 'password' => 'required|min:2|max:10', \n 'email' => 'required|min:2|max:10|email', \n 'phoneNumber' => 'required|min:2|max:10', \n\n ];\n }", "public function rules()\n {\n\n $rules = [\n 'id_tecnico_mantenimiento' => 'required',\n 'id_equipo_mantenimiento' => 'required'\n ];\n\n if ($this->request->has('status')) {\n $rules['status'] = 'required';\n }\n\n if ($this->request->has('log_mantenimiento')) {\n $rules['log_mantenimiento'] = 'required';\n }\n\n return $rules;\n }", "public function rules()\n {\n $this->buildRules();\n return $this->rules;\n }", "public function rules()\n {\n $rules = [];\n\n if ($this->isUpdate() || $this->isStore()) {\n $rules = array_merge($rules, [\n 'name' => 'required|string',\n 'email' => 'email',\n 'password' => 'confirmed|min:6',\n\n ]);\n }\n\n if ($this->isStore()) {\n $rules = array_merge($rules, [\n\n ]);\n }\n\n if ($this->isUpdate()) {\n $rules = array_merge($rules, [\n ]);\n }\n\n return $rules;\n }", "public function rules()\n {\n switch (true) {\n case $this->wantsToList():\n $rules = $this->listRules;\n break;\n case $this->wantsToStore():\n $rules = $this->storeRules;\n break;\n case $this->wantsToUpdate():\n $this->storeRules['email'] = 'required|email|between:5,100|unique:users,email,' . $this->route('administrators');\n\n $rules = $this->storeRules;\n break;\n default:\n $rules = [];\n }\n\n return $rules;\n }", "public function rules()\n {\n if($this->isMethod('post')) {\n return $this->storeRules();\n }\n else if($this->isMethod('put') || $this->isMethod('patch')){\n return $this->updateRules();\n }\n }", "abstract protected function getValidationRules();", "public function rules()\n\t{\n\t\treturn ModelHelper::getRules($this);\n\t}", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return $this->getPostRules();\n case 'PUT':\n return $this->getPutRules();\n }\n }", "public function rules()\n {\n $rules = [\n 'name' => 'required|string|min:2',\n 'email' => \"required|email|unique:users,email, {$this->request->get('user_id')}\",\n 'role_id' => 'required|numeric',\n 'group_id' => 'required|numeric',\n ];\n\n if ($this->request->has('password')){\n $rules['password'] = 'required|min:6';\n }\n\n return $rules;\n }", "public function rules()\n {\n if($this->method() == 'POST')\n {\n return [\n 'reason'=>'required',\n 'date_from'=>'required',\n 'date_to'=>'required',\n 'attachment'=>'required',\n ];\n }\n }", "public function rules()\n {\n $method = $this->method();\n if ($this->get('_method', null) !== null) {\n $method = $this->get('_method');\n }\n // $this->offsetUnset('_method');\n switch ($method) {\n case 'DELETE':\n case 'GET':\n break; \n case 'POST':\n $mailRules = \\Config::get('database.default').'.users';\n break;\n case 'PUT':\n $user = $this->authService->authJWTUserForm();\n $mailRules = \\Config::get('database.default').'.users,email,'.$user->getKey();\n break;\n case 'PATCH':\n break;\n default:\n break;\n }\n \n return [\n 'name' => 'required|string|max:256',\n 'email' => 'required|string|email|max:255|unique:'.$mailRules,\n 'password' => 'required|string|min:3',\n ];\n }", "public function rules() {\n $rule = [\n 'value' => 'bail|required',\n ];\n if ($this->getMethod() == 'POST') {\n $rule += ['type' => 'bail|required'];\n }\n return $rule;\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n case 'PUT':\n case 'PATCH': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n default:\n break;\n }\n\n return [\n //\n ];\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST':\n case 'PUT':\n case 'PATCH': {\n return [\n 'name' => 'required|string|max:255',\n 'iso_code_2' => 'required|string|size:2',\n 'iso_code_3' => 'required|string|size:3',\n ];\n }\n default:\n return [];\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n return [];\n case 'POST':\n return [\n 'name' => 'required|string',\n 'lastName' => 'string',\n 'gender' => 'boolean',\n 'avatar' => 'sometimes|mimes:jpg,png,jpeg|max:3048'\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'oldPassword' => 'required|string',\n 'newPassword' => 'required|string',\n ];\n default:\n break;\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n {\n return [\n 'validation' => [\n 'accepted'\n ]\n ];\n }\n case 'POST':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'published_at_time' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n 'unpublished_time' => [\n 'nullable',\n ],\n ];\n }\n case 'PUT':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n ];\n }\n case 'PATCH':\n {\n return [];\n }\n default:\n break;\n }\n }", "public function rules()\n {\n if (in_array($this->method(), ['PUT', 'PATCH'])) {\n $user = User::findOrFail(\\Request::input('id'))->first();\n\n array_forget($this->rules, 'email');\n $this->rules = array_add($this->rules, 'email', 'required|email|max:255|unique:users,email,' . $user->id);\n }\n\n return $this->rules;\n }", "public function rules()\n {\n $method = explode('@', $this->route()->getActionName())[1];\n return $this->get_rules_arr($method);\n }", "public function rules()\n {\n $rules = parent::rules();\n $extra_rules = [];\n $rules = array_merge($rules, $extra_rules);\n return $rules;\n }", "public function rules()\n {\n\t\tswitch($this->method()) {\n\t\t\tcase 'POST':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tdefault:break;\n\t\t}\n }", "public function rules()\n {\n $this->sanitize();\n return [\n 'event_id' => 'required',\n 'member_id' => 'required',\n 'guild_pts' => 'required',\n 'position' => 'required',\n 'solo_pts' => 'required',\n 'league_id' => 'required',\n 'solo_rank' => 'required',\n 'global_rank' => 'required',\n ];\n }", "public function rules()\n {\n $this->rules['email'] = ['required', 'min:6', 'max:60', 'email'];\n $this->rules['password'] = ['required', 'min:6', 'max:60'];\n\n return $this->rules;\n }", "public function getValidatorRules()\n {\n if ($validator = $this->getValidator()) {\n return $validator->getRulesForField($this->owner);\n }\n \n return [];\n }", "public function getValidationRules() : array;", "public function rules()\n {\n switch ($this->route()->getActionMethod()) {\n case 'login': {\n if ($this->request->has('access_token')) {\n return [\n 'access_token' => 'required',\n 'driver' => 'required|in:facebook,github,google',\n ];\n }\n return [\n 'email' => 'required|email',\n 'password' => 'required|min:6',\n ];\n }\n case 'register': {\n return [\n 'email' => 'required|email|unique:users,email',\n 'password' => 'required|min:6',\n 'name' => 'required',\n ];\n }\n default: return [];\n }\n }", "public function rules()\n {\n Validator::extend('mail_address_available', function($attribute, $value, $parameters, $validator){\n return MailAddressSpec::isAvailable($value);\n });\n Validator::extend('password_available', function($attribute, $value, $parameters, $validator){\n return PassWordSpec::isAvailable($value);\n });\n\n return [\n 'mail_address' => [\n 'required',\n 'mail_address_available'\n ],\n 'password' => [\n 'required',\n 'password_available',\n ],\n ];\n }", "public function rules()\n {\n switch (strtolower($this->method())) {\n case 'get':\n return $this->getMethodRules();\n case 'post':\n return $this->postMethodRules();\n case 'put':\n return $this->putMethodRules();\n case 'patch':\n return $this->patchMethodRules();\n case 'delete':\n return $this->deleteMethodRules();\n }\n }", "public function rules()\n {\n /**\n * This is the original way, expecting post params for each user value\n */\n return [\n 'firstName' => 'required|min:2|max:255',\n 'lastName' => 'required|min:2|max:255',\n 'phone' => 'min:9|max:25',\n 'gender' => 'in:M,V',\n 'dateOfBirth' => 'before:today|after:1890-01-01',\n 'email' => 'email|min:12|max:255',\n ];\n }", "public function getValidationRules(): array {\n\t\t$result = [];\n\t\t\n\t\tforeach ($this->getSections() as $section) {\n\t\t\t$result = array_merge($result, $section->getValidationRules());\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function rules()\n\t{\n\t\t$rule = [];\n\t\tif(Request::path() == 'api/utility/upload-image'){\n\t\t\t$rule = [\n\t\t\t\t'imagePath' => 'required',\n\t\t\t];\n\t\t}else if(Request::path() == 'api/utility/check-transaction'){\n\t\t\t$rule = [\n\t\t\t\t'countNumber' => 'required',\n\t\t\t];\n\t\t}\n\t\treturn $rule;\n\t}", "public function rules()\n {\n $rules = array();\n return $rules;\n }", "public function rules()\n {\n $this->setValidator($this->operation_type);\n return $this->validator;\n }", "public function rules()\n {\n switch($this->method()){\n case 'POST':\n return [\n 'name' => 'required',\n 'app_id' => 'required',\n 'account_id' => 'required',\n 'start_at' => 'required',\n 'end_at' => 'required',\n 'content' => 'required',\n ];\n break;\n default:\n return [];\n break;\n }\n\n }", "protected function get_validation_rules()\n {\n }", "public function rules()\n {\n $rules = [\n 'users' => 'required|array',\n ];\n\n foreach($this->request->get('users') as $key => $user) {\n $rules['users.'. $key . '.name'] = 'required|string|min:3|max:255';\n $rules['users.'. $key . '.phone'] = 'required|regex:/^[0-9\\+\\s]+$/|min:10|max:17';\n $rules['users.'. $key . '.country'] = 'required|string|min:2:max:3';\n }\n\n return $rules;\n }", "public function rules()\n {\n $rules = [\n 'mail_driver' => 'required',\n 'mail_name' => 'required',\n 'mail_email' => 'required',\n ];\n\n $newRules = [];\n\n if($this->mail_driver == 'smtp') {\n $newRules = [\n 'mail_host' => 'required',\n 'mail_port' => 'required|numeric',\n 'mail_username' => 'required',\n 'mail_password' => 'required',\n 'mail_encryption' => 'required',\n ];\n }\n\n return array_merge($rules, $newRules);\n }", "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n $rules['location'] = 'required';\n $rules['end_recruit_date'] = 'required';\n $rules['time_taken'] = 'required';\n $rules['payment'] = 'required';\n $rules['objective'] = 'required';\n $rules['method_desc'] = 'required';\n $rules['health_condition'] = 'required';\n $rules['required_applicant'] = 'required|integer';\n $rules['applicant'] = 'nullable';\n $rules['datetime'] = 'required';\n\n return $rules;\n }", "public function rules()\n {\n switch($this->method()) {\n\n case 'PUT':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n case 'POST':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n default:\n return [];\n }\n\n }", "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n\n return $rules;\n }", "public function rules()\n {\n switch(Route::currentRouteName()){\n case 'adminBinding' :\n return [\n 'order_id' => 'required|integer',\n 'money' => 'required|numeric',\n ];\n case 'adminUnbinding' :\n return [\n 'order_id' => 'required|integer',\n 'pivot_id' => 'required|integer',\n ];\n case 'adminReceiptSave' :\n case 'adminReceiptUpdate' :\n return [\n 'customer_id' => 'required',\n 'receiptcorp' => 'required',\n 'account' => 'required',\n 'account_id' => 'required',\n 'bank' => 'required',\n 'currency_id' => 'required',\n 'advance_amount' => 'required|numeric',\n 'picture' => 'required',\n 'business_type' => 'required|in:1,2,3,4,5',\n 'exchange_type' => 'required_unless:currency_id,354|in:1,2',\n 'expected_received_at' => 'required|date_format:Y-m-d',\n ];\n case 'adminReceiptExchange' :\n return [\n 'rate' => 'required|numeric',\n ];\n default :\n return [];\n }\n }", "public function rules()\n {\n $rules = [];\n $method = $this->getMethod();\n switch ($method) {\n case 'GET':\n if (Route::currentRouteName() === 'schoolActivity.getSchoolActivity') {\n $rules = [\n ];\n }\n break;\n }\n return $rules;\n }", "public function rules()\n {\n $rules = new Collection();\n\n if (!$this->user() or !$this->user()->addresses()->count()) {\n $rules = $rules->merge($this->addressRules('billing'));\n if ($this->has('different_shipping_address')) {\n $rules = $rules->merge($this->addressRules('shipping'));\n }\n\n return $rules->toArray();\n }\n\n return $rules->merge([\n 'billing_address_id' => 'required|numeric',\n 'shipping_address_id' => 'required|numeric',\n ])->toArray();\n }", "public function rules(): array\n {\n switch ($this->method()) {\n case 'POST':\n return $this->__rules() + $this->__post();\n case 'PUT':\n return $this->__rules() + $this->__put();\n default:\n return [];\n }\n }", "public function defineValidationRules()\n {\n return [];\n }", "public function rules(Request $request)\n {\n return Qc::$rules;\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'user_name' => 'nullable|string',\n 'excel' => 'nullable|file|mimes:xlsx',\n 'category' => 'required|int|in:' . implode(',', array_keys(UserMessage::$categories)),\n 'content' => 'required|string|max:500',\n 'member_status' => 'required|int|in:' . implode(',', array_keys(User::$statuses)),\n ];\n break;\n }\n }", "public function rules()\n {\n return [\n 'lead_id' => [\n 'required', 'string',\n ],\n 'api_version' => [\n 'required', 'string',\n ],\n 'form_id' => [\n 'required', 'int',\n ],\n 'campaign_id' => [\n 'required', 'int',\n ],\n 'google_key' => [\n 'required', 'string', new GoogleKeyRule,\n ],\n ];\n }" ]
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7675849", "0.76724476", "0.76665044", "0.7657698", "0.7641827", "0.7630892", "0.76293766", "0.7617708", "0.76102096", "0.7607475", "0.7602442", "0.7598732", "0.7597544", "0.75924", "0.75915384", "0.7588146", "0.7581354", "0.7555758", "0.755526", "0.7551423", "0.7546329", "0.7541439", "0.75366044", "0.75363225", "0.7530296", "0.7517988", "0.75155175", "0.7508439", "0.75069886", "0.7505724", "0.749979", "0.7495976", "0.74949056", "0.7492888", "0.7491117", "0.74901396", "0.7489651", "0.7486808", "0.7486108", "0.7479687", "0.7478561", "0.7469412", "0.74635684", "0.74619836", "0.7461325", "0.74591017", "0.7455279", "0.745352", "0.7453257", "0.7449877", "0.74486", "0.7441391", "0.7440429", "0.7435489", "0.7435326", "0.74341524", "0.7430354", "0.7429103", "0.7423808", "0.741936", "0.74152505", "0.7414828", "0.741382", "0.74126065", "0.74105227", "0.740555", "0.7404385", "0.74040926", "0.74015605", "0.73905706", "0.73837525", "0.73732615", "0.7371123", "0.7369176", "0.73619753", "0.73554605", "0.73448825", "0.7344659", "0.73427117", "0.73357755" ]
0.0
-1
Display a listing of the resource.
public function index() { $committees = Committee::all(); return view('committees.index', compact('committees')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { return view('committees.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}" ]
[ "0.7594622", "0.7594622", "0.7588457", "0.7580005", "0.75723624", "0.7499764", "0.7436887", "0.74322647", "0.7387517", "0.735172", "0.73381543", "0.73117113", "0.72958225", "0.7280436", "0.7273787", "0.72433424", "0.7230227", "0.7225085", "0.71851814", "0.71781176", "0.7174025", "0.7149406", "0.71431303", "0.7142905", "0.7136737", "0.712733", "0.7122102", "0.71148264", "0.71148264", "0.71148264", "0.7111841", "0.7092733", "0.70843536", "0.70822084", "0.7079442", "0.70571405", "0.70571405", "0.7055195", "0.70391846", "0.7039114", "0.7035626", "0.7033991", "0.70300245", "0.7026507", "0.7026417", "0.7019451", "0.7017105", "0.7004775", "0.70031846", "0.6999904", "0.6995238", "0.6994825", "0.699354", "0.6988824", "0.6986871", "0.6965804", "0.6965542", "0.69560695", "0.69515944", "0.6950682", "0.6947703", "0.69433117", "0.6941539", "0.6939613", "0.69377476", "0.69377476", "0.693678", "0.69344354", "0.69314486", "0.6927608", "0.69264024", "0.6922966", "0.69181216", "0.69150716", "0.6911192", "0.69095594", "0.69092506", "0.6907887", "0.69018227", "0.69008595", "0.69006085", "0.6900209", "0.68949944", "0.6892768", "0.6891944", "0.6891552", "0.6891552", "0.6891443", "0.68886423", "0.6888326", "0.68856037", "0.68835604", "0.68813664", "0.6878345", "0.6876079", "0.6873206", "0.6873183", "0.687048", "0.687014", "0.686966", "0.68695843" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // dd(request(['name'])); // Committee::create(request(['name'])); Committee::create([ 'name' => request('name'), 'show' => $request->has('show') ]); return redirect('/277640/committees'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.7285922", "0.714503", "0.71324795", "0.6639801", "0.6620405", "0.6568167", "0.65257645", "0.650948", "0.64484984", "0.6375281", "0.6373189", "0.63650924", "0.63650924", "0.63650924", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731" ]
0.0
-1
Show the form for editing the specified resource.
public function edit(Committee $committee) { return view('committees.edit', compact('committee')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, Committee $committee) { $committee->name = request('name'); $committee->show = $request->has('show'); $committee->save(); return redirect('/277640/committees'); }
{ "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(Committee $committee) { $committee->delete(); return redirect('/277640/committees'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "public function remove($id);", "public function remove($id);", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6671365", "0.6660839", "0.66361386", "0.6632988", "0.6624729", "0.6542195", "0.6541645", "0.6466739", "0.6288393", "0.61767083", "0.6129533", "0.608954", "0.6054169", "0.60443425", "0.60073143", "0.59338665", "0.59317696", "0.592145", "0.5920155", "0.59065086", "0.5897853", "0.58968836", "0.58958197", "0.58958197", "0.58958197", "0.58958197", "0.58800334", "0.5869308", "0.5861188", "0.5811069", "0.5774596", "0.5763277", "0.5755447", "0.5747713", "0.5742094", "0.573578", "0.5727048", "0.57164854", "0.5712422", "0.57092893", "0.57080173", "0.5707143", "0.5704078", "0.5696418", "0.5684556", "0.5684556", "0.56790006", "0.5678463", "0.5658492", "0.564975", "0.5648406", "0.56480885", "0.5641393", "0.5638992", "0.56302536", "0.56228197", "0.5616424", "0.5607389", "0.56033397", "0.5602035", "0.55991143", "0.55988586", "0.5590501", "0.5581284", "0.55681103", "0.5566215", "0.55644745", "0.5563726", "0.55593926", "0.55583876", "0.5548547", "0.5542015", "0.5541403", "0.5541403", "0.55397224", "0.55390894", "0.55376494", "0.5531044", "0.5529739", "0.55279493", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527671", "0.5527155", "0.5526666", "0.55245256", "0.552101", "0.55183184" ]
0.0
-1
Create a new controller instance.
public function __construct() { $this->middleware('guest')->except('logout'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $model_name = $this->qualifyClass($this->getNameInput());\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $model_name,\n ]);\n\n $path = base_path() . \"/app/Http/Controllers/{$controller}Controller.php\";\n $this->cleanupDummy($path, $name);\n }", "private function makeInitiatedController()\n\t{\n\t\t$controller = new TestEntityCRUDController();\n\n\t\t$controller->setLoggerWrapper(Logger::create());\n\n\t\treturn $controller;\n\t}", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n ]));\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"Api/{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $name = str_replace(\"Service\",\"\",$this->argument('name'));\n\n $this->call('make:controller', [\n 'name' => \"{$name}Controller\"\n ]);\n }", "protected function createController()\n {\n $params = [\n 'name' => $this->argument('name'),\n ];\n\n if ($this->option('api')) {\n $params['--api'] = true;\n }\n\n $this->call('wizard:controller', $params);\n }", "public function generateController () {\r\n $controllerParam = \\app\\lib\\router::getPath();\r\n $controllerName = \"app\\controller\\\\\" . end($controllerParam);\r\n $this->controller = new $controllerName;\r\n }", "public static function newController($controller)\n\t{\n\t\t$objController = \"App\\\\Controllers\\\\\".$controller;\n\t\treturn new $objController;\n\t}", "public function createController()\n\t{\n\t\tif(class_exists($this->controller))\n\t\t{\n\t\t\t// get the parent class he extends\n\t\t\t$parents = class_parents($this->controller);\n\n\t\t\t// $parents = class_implements($this->controller); used if our Controller was just an interface not a class\n\n\t\t\t// check if the class implements our Controller Class\n\t\t\tif(in_array(\"Controller\", $parents))\n\t\t\t{\n\t\t\t\t// check if the action in the request exists in that class\n\t\t\t\tif(method_exists($this->controller, $this->action))\n\t\t\t\t{\n\t\t\t\t\treturn new $this->controller($this->action, $this->request);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is not exist\n\t\t\t\t\techo 'Method '. $this->action .' doesn\\'t exist in '. $this->controller;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The controller doesn't extends our Controller Class\n\t\t\t\techo $this->controller.' doesn\\'t extends our Controller Class';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Controller Doesn't exist\n\t\t\techo $this->controller.' doesn\\'t exist';\n\t\t}\n\t}", "public function createController( ezcMvcRequest $request );", "public function createController() {\n //check our requested controller's class file exists and require it if so\n /*if (file_exists(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\")) {\n require(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\");\n } else {\n throw new Exception('Route does not exist');\n }*/\n\n try {\n require_once __DIR__ . '/../Controllers/' . $this->controllerName . '.php';\n } catch (Exception $e) {\n return $e;\n }\n \n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n \n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\",$parents)) { \n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->endpoint)) {\n return new $this->controllerClass($this->args, $this->endpoint, $this->domain);\n } else {\n throw new Exception('Action does not exist');\n }\n } else {\n throw new Exception('Class does not inherit correctly.');\n }\n } else {\n throw new Exception('Controller does not exist.');\n }\n }", "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "private function controller()\n {\n $location = $this->args[\"location\"] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n $relative_location = $this->args['application_folder'] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n\n if (!empty($this->args['subdirectories']))\n {\n $location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n $relative_location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n }\n\n if (!is_dir($location))\n {\n mkdir($location, 0755, TRUE);\n }\n\n $relative_location .= $this->args['filename'];\n $filename = $location . $this->args['filename'];\n\n $args = array(\n \"class_name\" => ApplicationHelpers::camelize($this->args['name']),\n \"filename\" => $this->args['filename'],\n \"application_folder\" => $this->args['application_folder'],\n \"parent_class\" => (isset($this->args['parent'])) ? $this->args['parent'] : $this->args['parent_controller'],\n \"extra\" => $this->extra,\n 'relative_location' => $relative_location,\n 'helper_name' => strtolower($this->args['name']) . '_helper',\n );\n\n $template = new TemplateScanner(\"controller\", $args);\n $controller = $template->parse();\n\n $message = \"\\t\";\n if (file_exists($filename))\n {\n $message .= 'Controller already exists : ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'light_blue');\n }\n $message .= $relative_location;\n }\n elseif (file_put_contents($filename, $controller))\n {\n $message .= 'Created controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'green');\n }\n $message .= $relative_location;\n }\n else\n {\n $message .= 'Unable to create controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'red');\n }\n $message .= $relative_location;\n }\n\n // The controller has been generated, output the confirmation message\n fwrite(STDOUT, $message . PHP_EOL);\n\n // Create the helper files.\n $this->helpers();\n\n $this->assets();\n\n // Create the view files.\n $this->views();\n\n return;\n }", "public function createController( $controllerName ) {\r\n\t\t$refController \t\t= $this->instanceOfController( $controllerName );\r\n\t\t$refConstructor \t= $refController->getConstructor();\r\n\t\tif ( ! $refConstructor ) return $refController->newInstance();\r\n\t\t$initParameter \t\t= $this->setParameter( $refConstructor );\r\n\t\treturn $refController->newInstanceArgs( $initParameter ); \r\n\t}", "public function create($controllerName) {\r\n\t\tif (!$controllerName)\r\n\t\t\t$controllerName = $this->defaultController;\r\n\r\n\t\t$controllerName = ucfirst(strtolower($controllerName)).'Controller';\r\n\t\t$controllerFilename = $this->searchDir.'/'.$controllerName.'.php';\r\n\r\n\t\tif (preg_match('/[^a-zA-Z0-9]/', $controllerName))\r\n\t\t\tthrow new Exception('Invalid controller name', 404);\r\n\r\n\t\tif (!file_exists($controllerFilename)) {\r\n\t\t\tthrow new Exception('Controller not found \"'.$controllerName.'\"', 404);\r\n\t\t}\r\n\r\n\t\trequire_once $controllerFilename;\r\n\r\n\t\tif (!class_exists($controllerName) || !is_subclass_of($controllerName, 'Controller'))\r\n\t\t\tthrow new Exception('Unknown controller \"'.$controllerName.'\"', 404);\r\n\r\n\t\t$this->controller = new $controllerName();\r\n\t\treturn $this;\r\n\t}", "private function createController($controllerName)\n {\n $className = ucfirst($controllerName) . 'Controller';\n ${$this->lcf($controllerName) . 'Controller'} = new $className();\n return ${$this->lcf($controllerName) . 'Controller'};\n }", "public function createControllerObject(string $controller)\n {\n $this->checkControllerExists($controller);\n $controller = $this->ctlrStrSrc.$controller;\n $controller = new $controller();\n return $controller;\n }", "public function create_controller($controller, $action){\n\t $creado = false;\n\t\t$controllers_dir = Kumbia::$active_controllers_dir;\n\t\t$file = strtolower($controller).\"_controller.php\";\n\t\tif(file_exists(\"$controllers_dir/$file\")){\n\t\t\tFlash::error(\"Error: El controlador '$controller' ya existe\\n\");\n\t\t} else {\n\t\t\tif($this->post(\"kind\")==\"applicationcontroller\"){\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends ApplicationController {\\n\\n\\t\\tfunction $action(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tif(@file_put_contents(\"$controllers_dir/$file\", $filec)){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends StandardForm {\\n\\n\\t\\tpublic \\$scaffold = true;\\n\\n\\t\\tpublic function __construct(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tfile_put_contents(\"$controllers_dir/$file\", $filec);\n\t\t\t\tif($this->create_model($controller, $controller, \"index\")){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($creado){\n\t\t\t Flash::success(\"Se cre&oacute; correctamente el controlador '$controller' en '$controllers_dir/$file'\");\n\t\t\t}else {\n\t\t\t Flash::error(\"Error: No se pudo escribir en el directorio, verifique los permisos sobre el directorio\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$this->route_to(\"controller: $controller\", \"action: $action\");\n\t}", "private function instanceController( string $controller_class ): Controller {\n\t\treturn new $controller_class( $this->request, $this->site );\n\t}", "public function makeController($controller_name)\n\t{\n\t\t$model\t= $this->_makeModel($controller_name, $this->_storage_type);\n\t\t$view\t= $this->_makeView($controller_name);\n\t\t\n\t\treturn new $controller_name($model, $view);\n\t}", "public function create()\n {\n $output = new \\Symfony\\Component\\Console\\Output\\ConsoleOutput();\n $output->writeln(\"<info>Controller Create</info>\");\n }", "protected function createDefaultController() {\n Octopus::requireOnce($this->app->getOption('OCTOPUS_DIR') . 'controllers/Default.php');\n return new DefaultController();\n }", "private function createControllerDefinition()\n {\n $id = $this->getServiceId('controller');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('controller'));\n $definition\n ->addMethodCall('setConfiguration', [new Reference($this->getServiceId('configuration'))])\n ->addMethodCall('setContainer', [new Reference('service_container')])\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "public function createController( $ctrlName, $action ) {\n $args['action'] = $action;\n $args['path'] = $this->path . '/modules/' . $ctrlName;\n $ctrlFile = $args['path'] . '/Controller.php';\n // $args['moduleName'] = $ctrlName;\n if ( file_exists( $ctrlFile ) ) {\n $ctrlPath = str_replace( CITRUS_PATH, '', $args['path'] );\n $ctrlPath = str_replace( '/', '\\\\', $ctrlPath ) . '\\Controller';\n try { \n $r = new \\ReflectionClass( $ctrlPath ); \n $inst = $r->newInstanceArgs( $args ? $args : array() );\n\n $this->controller = Citrus::apply( $inst, Array( \n 'name' => $ctrlName, \n ) );\n if ( $this->controller->is_protected == null ) {\n $this->controller->is_protected = $this->is_protected;\n }\n return $this->controller;\n } catch ( \\Exception $e ) {\n prr($e, true);\n }\n } else {\n return false;\n }\n }", "protected function createTestController() {\n\t\t$controller = new CController('test');\n\n\t\t$action = $this->getMock('CAction', array('run'), array($controller, 'test'));\n\t\t$controller->action = $action;\n\n\t\tYii::app()->controller = $controller;\n\t\treturn $controller;\n\t}", "public static function newController($controllerName, $params = [], $request = null) {\n\n\t\t$controller = \"App\\\\Controllers\\\\\".$controllerName;\n\n\t\treturn new $controller($params, $request);\n\n\t}", "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "public function createController($pi, array $params)\n {\n $class = $pi . '_Controller_' . ucfirst($params['page']);\n\n return new $class();\n }", "public function createController() {\n //check our requested controller's class file exists and require it if so\n \n if (file_exists(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\" ) && $this->controllerName != 'error') {\n require(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\");\n \n } else {\n \n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n\n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\", $parents)) {\n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->action)) { \n return new $this->controllerClass($this->action, $this->urlValues);\n \n } else {\n //bad action/method error\n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badview\", $this->urlValues);\n }\n } else {\n $this->urlValues['controller'] = \"error\";\n //bad controller error\n echo \"hjh\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"b\", $this->urlValues);\n }\n } else {\n \n //bad controller error\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n }", "protected static function createController($name) {\n $result = null;\n\n $name = self::$_namespace . ($name ? $name : self::$defaultController) . 'Controller';\n if(class_exists($name)) {\n $controllerClass = new \\ReflectionClass($name);\n if($controllerClass->hasMethod('run')) {\n $result = new $name();\n }\n }\n\n return $result;\n }", "public function createController(): void\n {\n $minimum_buffer_min = 3;\n $token_ok = $this->routerService->ds_token_ok($minimum_buffer_min);\n if ($token_ok) {\n # 2. Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = $this->worker($this->args);\n\n if ($results) {\n # Redirect the user to the NDSE view\n # Don't use an iFrame!\n # State can be stored/recovered using the framework's session or a\n # query parameter on the returnUrl\n header('Location: ' . $results[\"redirect_url\"]);\n exit;\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "protected function createController($controllerClass)\n {\n $cls = new ReflectionClass($controllerClass);\n return $cls->newInstance($this->environment);\n }", "protected function createController($name)\n {\n $controllerClass = 'controller\\\\'.ucfirst($name).'Controller';\n\n if(!class_exists($controllerClass)) {\n throw new \\Exception('Controller class '.$controllerClass.' not exists!');\n }\n\n return new $controllerClass();\n }", "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "public function makeTestController(TestController $controller)\r\n\t{\r\n\t}", "static function factory($GET=array(), $POST=array(), $FILES=array()) {\n $type = (isset($GET['type'])) ? $GET['type'] : '';\n $objectController = $type.'_Controller';\n $addLocation = $type.'/'.$objectController.'.php';\n foreach ($_ENV['locations'] as $location) {\n if (is_file($location.$addLocation)) {\n return new $objectController($GET, $POST, $FILES);\n } \n }\n throw new Exception('The controller \"'.$type.'\" does not exist.');\n }", "public function create()\n {\n $general = new ModeloController();\n\n return $general->create();\n }", "public function makeController($controllerNamespace, $controllerName, Log $log, $session, Request $request, Response $response)\r\n\t{\r\n\t\t$fullControllerName = '\\\\Application\\\\Controller\\\\' . (!empty($controllerNamespace) ? $controllerNamespace . '\\\\' : '') . $controllerName;\r\n\t\t$controller = new $fullControllerName();\r\n\t\t$controller->setConfig($this->config);\r\n\t\t$controller->setRequest($request);\r\n\t\t$controller->setResponse($response);\r\n\t\t$controller->setLog($log);\r\n\t\tif (isset($session))\r\n\t\t{\r\n\t\t\t$controller->setSession($session);\r\n\t\t}\r\n\r\n\t\t// Execute additional factory method, if available (exists in \\Application\\Controller\\Factory)\r\n\t\t$method = 'make' . $controllerName;\r\n\t\tif (is_callable(array($this, $method)))\r\n\t\t{\r\n\t\t\t$this->$method($controller);\r\n\t\t}\r\n\r\n\t\t// If the controller has an init() method, call it now\r\n\t\tif (is_callable(array($controller, 'init')))\r\n\t\t{\r\n\t\t\t$controller->init();\r\n\t\t}\r\n\r\n\t\treturn $controller;\r\n\t}", "public static function create()\n\t{\n\t\t//check, if an AccessGroupController instance already exists\n\t\tif(AccessGroupController::$accessGroupController == null)\n\t\t{\n\t\t\tAccessGroupController::$accessGroupController = new AccessGroupController();\n\t\t}\n\n\t\treturn AccessGroupController::$accessGroupController;\n\t}", "public static function buildController()\n\t{\n\t\t$file = CONTROLLER_PATH . 'indexController.class.php';\n\n\t\tif(!file_exists($file))\n\t\t{\n\t\t\tif(\\RCPHP\\Util\\Check::isClient())\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \"Welcome RcPHP!\\n\";\n }\n}';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \\'<style type=\"text/css\">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: \"微软雅黑\"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style=\"padding: 24px 48px;\"> <h1>:)</h1><p>Welcome <b>RcPHP</b>!</p></div>\\';\n }\n}';\n\t\t\t}\n\t\t\tfile_put_contents($file, $controller);\n\t\t}\n\t}", "public function getController( );", "public static function getInstance() : Controller {\n if ( null === self::$instance ) {\n self::$instance = new self();\n self::$instance->options = new Options(\n self::OPTIONS_KEY\n );\n }\n\n return self::$instance;\n }", "static function appCreateController($entityName, $prefijo = '') {\n\n $controller = ControllerBuilder::getController($entityName, $prefijo);\n $entityFile = ucfirst(str_replace($prefijo, \"\", $entityName));\n $fileController = \"../../modules/{$entityFile}/{$entityFile}Controller.class.php\";\n\n $result = array();\n $ok = self::createArchive($fileController, $controller);\n ($ok) ? array_push($result, \"Ok, {$fileController} created\") : array_push($result, \"ERROR creating {$fileController}\");\n\n return $result;\n }", "public static function newInstance($path = \\simpleChat\\Utility\\ROOT_PATH)\n {\n $request = new Request();\n \n \n if ($request->isAjax())\n {\n return new AjaxController();\n }\n else if ($request->jsCode())\n {\n return new JsController();\n }\n else\n {\n return new StandardController($path);\n }\n }", "private function createInstance()\n {\n $objectManager = new \\Magento\\Framework\\TestFramework\\Unit\\Helper\\ObjectManager($this);\n $this->controller = $objectManager->getObject(\n \\Magento\\NegotiableQuote\\Controller\\Adminhtml\\Quote\\RemoveFailedSku::class,\n [\n 'context' => $this->context,\n 'logger' => $this->logger,\n 'messageManager' => $this->messageManager,\n 'cart' => $this->cart,\n 'resultRawFactory' => $this->resultRawFactory\n ]\n );\n }", "function loadController(){\n $name = ucfirst($this->request->controller).'Controller' ;\n $file = ROOT.DS.'Controller'.DS.$name.'.php' ;\n /*if(!file_exists($file)){\n $this->error(\"Le controleur \".$this->request->controller.\" n'existe pas\") ;\n }*/\n require_once $file;\n $controller = new $name($this->request);\n return $controller ;\n }", "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "public static function & instance()\n {\n if (self::$instance === null) {\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Include the Controller file\n require Router::$controller_path;\n\n try {\n // Start validation of the controller\n $class = new ReflectionClass(ucfirst(Router::$controller).'_Controller');\n } catch (ReflectionException $e) {\n // Controller does not exist\n Event::run('system.404');\n }\n\n if ($class->isAbstract() or (IN_PRODUCTION and $class->getConstant('ALLOW_PRODUCTION') == false)) {\n // Controller is not allowed to run in production\n Event::run('system.404');\n }\n\n // Run system.pre_controller\n Event::run('system.pre_controller');\n\n // Create a new controller instance\n $controller = $class->newInstance();\n\n // Controller constructor has been executed\n Event::run('system.post_controller_constructor');\n\n try {\n // Load the controller method\n $method = $class->getMethod(Router::$method);\n\n // Method exists\n if (Router::$method[0] === '_') {\n // Do not allow access to hidden methods\n Event::run('system.404');\n }\n\n if ($method->isProtected() or $method->isPrivate()) {\n // Do not attempt to invoke protected methods\n throw new ReflectionException('protected controller method');\n }\n\n // Default arguments\n $arguments = Router::$arguments;\n } catch (ReflectionException $e) {\n // Use __call instead\n $method = $class->getMethod('__call');\n\n // Use arguments in __call format\n $arguments = array(Router::$method, Router::$arguments);\n }\n\n // Stop the controller setup benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Start the controller execution benchmark\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');\n\n // Execute the controller method\n $method->invokeArgs($controller, $arguments);\n\n // Controller method has been executed\n Event::run('system.post_controller');\n\n // Stop the controller execution benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_execution');\n }\n\n return self::$instance;\n }", "protected function instantiateController($class)\n {\n $controller = new $class();\n\n if ($controller instanceof Controller) {\n $controller->setContainer($this->container);\n }\n\n return $controller;\n }", "public function __construct (){\n $this->AdminController = new AdminController();\n $this->ArticleController = new ArticleController();\n $this->AuditoriaController = new AuditoriaController();\n $this->CommentController = new CommentController();\n $this->CourseController = new CourseController();\n $this->InscriptionsController = new InscriptionsController();\n $this->ModuleController = new ModuleController();\n $this->PlanController = new PlanController();\n $this->ProfileController = new ProfileController();\n $this->SpecialtyController = new SpecialtyController();\n $this->SubscriptionController = new SubscriptionController();\n $this->TeacherController = new TeacherController();\n $this->UserController = new UserController();\n $this->WebinarController = new WebinarController();\n }", "protected function makeController($prefix)\n {\n new MakeController($this, $this->files, $prefix);\n }", "public function createController($route)\n {\n $controller = parent::createController('gymv/' . $route);\n return $controller === false\n ? parent::createController($route)\n : $controller;\n }", "public static function createFrontController()\n {\n return self::createInjectorWithBindings(self::extractArgs(func_get_args()))\n ->getInstance('net::stubbles::websites::stubFrontController');\n }", "public static function controller($name)\n {\n $name = ucfirst(strtolower($name));\n \n $directory = 'controller';\n $filename = $name;\n $tracker = 'controller';\n $init = (boolean) $init;\n $namespace = 'controller';\n $class_name = $name;\n \n return self::_load($directory, $filename, $tracker, $init, $namespace, $class_name);\n }", "protected static function instantiateMockController()\n {\n /** @var Event $oEvent */\n $oEvent = Factory::service('Event');\n\n if (!$oEvent->hasBeenTriggered(Events::SYSTEM_STARTING)) {\n\n require_once BASEPATH . 'core/Controller.php';\n\n load_class('Output', 'core');\n load_class('Security', 'core');\n load_class('Input', 'core');\n load_class('Lang', 'core');\n\n new NailsMockController();\n }\n }", "private static function controller()\n {\n $files = ['Controller'];\n $folder = static::$root.'MVC'.'/';\n\n self::call($files, $folder);\n }", "public function createController()\n\t{\n\t\t$originalFile = app_path('Http/Controllers/Reports/SampleReport.php');\n\t\t$newFile = dirname($originalFile) . DIRECTORY_SEPARATOR . $this->class . $this->sufix . '.php';\n\n\t\t// Read original file\n\t\tif( ! $content = file_get_contents($originalFile))\n\t\t\treturn false;\n\n\t\t// Replace class name\n\t\t$content = str_replace('SampleReport', $this->class . $this->sufix, $content);\n\n\t\t// Write new file\n\t\treturn (bool) file_put_contents($newFile, $content);\n\t}", "public function runController() {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t // Set the method to load\n \t $sController = ucwords(\"{$this->getController()}Controller\");\n } else {\n\n // Set the controller with the router\n $sController = ucwords(\"{$this->getController()}\".ucfirst($this->getRouter()).\"Controller\");\n }\n \t// Check for class\n \tif (class_exists($sController, true)) {\n \t\t// Set a new instance of Page\n \t\t$this->setPage(new Page());\n \t\t// The class exists, load it\n \t\t$oController = new $sController();\n\t\t\t\t// Now check for the proper method \n\t\t\t\t// inside of the controller class\n\t\t\t\tif (method_exists($oController, $this->loadConfigVar('systemSettings', 'controllerLoadMethod'))) {\n\t\t\t\t\t// We have a valid controller, \n\t\t\t\t\t// execute the initializer\n\t\t\t\t\t$oController->init($this);\n\t\t\t\t\t// Set the variable scope\n\t \t\t$this->setViewScope($oController);\n\t \t\t// Render the layout\n\t \t\t$this->renderLayout();\n\t\t\t\t} else {\n\t\t\t\t\t// The initializer does not exist, \n\t\t\t\t\t// which means an invalid controller, \n\t\t\t\t\t// so now we let the caller know\n\t\t\t\t\t$this->setError($this->loadConfigVar('errorMessages', 'invalidController'));\n\t\t\t\t\t// Run the error\n\t\t\t\t\t// $this->runError();\n\t\t\t\t}\n \t// The class does not exist\n \t} else {\n\t\t\t\t// Set the system error\n\t \t\t$this->setError(\n\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t':controllerName', \n\t\t\t\t\t\t$sController, \n\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t'controllerDoesNotExist'\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n \t\t// Run the error\n\t\t\t\t// $this->runError();\n \t}\n \t// Return instance\n \treturn $this;\n }", "public function controller()\n\t{\n\t\n\t}", "protected function buildController()\n {\n $columns = collect($this->columns)->pluck('column')->implode('|');\n\n $permissions = [\n 'create:'.$this->module->createPermission->name,\n 'edit:'.$this->module->editPermission->name,\n 'delete:'.$this->module->deletePermission->name,\n ];\n\n $this->controller = [\n 'name' => $this->class,\n '--model' => $this->class,\n '--request' => $this->class.'Request',\n '--permissions' => implode('|', $permissions),\n '--view-folder' => snake_case($this->module->name),\n '--fields' => $columns,\n '--module' => $this->module->id,\n ];\n }", "function getController(){\n\treturn getFactory()->getBean( 'Controller' );\n}", "protected function getController()\n {\n $uri = WingedLib::clearPath(static::$parentUri);\n if (!$uri) {\n $uri = './';\n $explodedUri = ['index', 'index'];\n } else {\n $explodedUri = explode('/', $uri);\n if (count($explodedUri) == 1) {\n $uri = './' . $explodedUri[0] . '/';\n } else {\n $uri = './' . $explodedUri[0] . '/' . $explodedUri[1] . '/';\n }\n }\n\n $indexUri = WingedLib::clearPath(\\WingedConfig::$config->INDEX_ALIAS_URI);\n if ($indexUri) {\n $indexUri = explode('/', $indexUri);\n }\n\n if ($indexUri) {\n if ($explodedUri[0] === 'index' && isset($indexUri[0])) {\n static::$controllerName = Formater::camelCaseClass($indexUri[0]) . 'Controller';\n $uri = './' . $indexUri[0] . '/';\n }\n if (isset($explodedUri[1]) && isset($indexUri[1])) {\n if ($explodedUri[1] === 'index') {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($indexUri[1]);\n $uri .= $indexUri[1] . '/';\n }\n } else {\n $uri .= 'index/';\n }\n }\n\n $controllerDirectory = new Directory(static::$parent . 'controllers/', false);\n if ($controllerDirectory->exists()) {\n $controllerFile = new File($controllerDirectory->folder . static::$controllerName . '.php', false);\n if ($controllerFile->exists()) {\n include_once $controllerFile->file_path;\n if (class_exists(static::$controllerName)) {\n $controller = new static::$controllerName();\n if (method_exists($controller, static::$controllerAction)) {\n try {\n $reflectionMethod = new \\ReflectionMethod(static::$controllerName, static::$controllerAction);\n $pararms = [];\n foreach ($reflectionMethod->getParameters() as $parameter) {\n $pararms[$parameter->getName()] = $parameter->isOptional();\n }\n } catch (\\Exception $exception) {\n $pararms = [];\n }\n return [\n 'uri' => $uri,\n 'params' => $pararms,\n ];\n }\n }\n }\n }\n return false;\n }", "public function __construct()\n {\n $this->controller = new DHTController();\n }", "public function createController($controllers) {\n\t\tforeach($controllers as $module=>$controllers) {\n\t\t\tforeach($controllers as $key=>$controller) {\n\t\t\t\tif(!file_exists(APPLICATION_PATH.\"/modules/$module/controllers/\".ucfirst($controller).\"Controller.php\")) {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",\"Create '\".ucfirst($controller).\"' controller in $module\");\t\t\t\t\n\t\t\t\t\texec(\"zf create controller $controller index-action-included=0 $module\");\t\t\t\t\t\n\t\t\t\t}\telse {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",ucfirst($controller).\"' controller in $module already exists\");\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "protected function instantiateController($class)\n {\n return new $class($this->routesMaker);\n }", "private function createController($table){\n\n // Filtering file name\n $fileName = $this::cleanToName($table[\"name\"]) . 'Controller.php';\n\n // Prepare the Class scheme inside the controller\n $contents = '<?php '.$fileName.' ?>';\n\n\n // Return a boolean to process completed\n return Storage::disk('controllers')->put($this->appNamePath.'/'.$fileName, $contents);\n\n }", "public function GetController()\n\t{\n\t\t$params = $this->QueryVarArrayToParameterArray($_GET);\n\t\tif (!empty($_POST)) {\n\t\t\t$params = array_merge($params, $this->QueryVarArrayToParameterArray($_POST));\n\t\t}\n\n\t\tif (!empty($_GET['q'])) {\n\t\t\t$restparams = GitPHP_Router::ReadCleanUrl($_SERVER['REQUEST_URI']);\n\t\t\tif (count($restparams) > 0)\n\t\t\t\t$params = array_merge($params, $restparams);\n\t\t}\n\n\t\t$controller = null;\n\n\t\t$action = null;\n\t\tif (!empty($params['action']))\n\t\t\t$action = $params['action'];\n\n\t\tswitch ($action) {\n\n\n\t\t\tcase 'search':\n\t\t\t\t$controller = new GitPHP_Controller_Search();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commitdiff':\n\t\t\tcase 'commitdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Commitdiff();\n\t\t\t\tif ($action === 'commitdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blobdiff':\n\t\t\tcase 'blobdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Blobdiff();\n\t\t\t\tif ($action === 'blobdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'history':\n\t\t\t\t$controller = new GitPHP_Controller_History();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'shortlog':\n\t\t\tcase 'log':\n\t\t\t\t$controller = new GitPHP_Controller_Log();\n\t\t\t\tif ($action === 'shortlog')\n\t\t\t\t\t$controller->SetParam('short', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'snapshot':\n\t\t\t\t$controller = new GitPHP_Controller_Snapshot();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tree':\n\t\t\tcase 'trees':\n\t\t\t\t$controller = new GitPHP_Controller_Tree();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tags':\n\t\t\t\tif (empty($params['tag'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Tags();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tcase 'tag':\n\t\t\t\t$controller = new GitPHP_Controller_Tag();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'heads':\n\t\t\t\t$controller = new GitPHP_Controller_Heads();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blame':\n\t\t\t\t$controller = new GitPHP_Controller_Blame();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blob':\n\t\t\tcase 'blobs':\n\t\t\tcase 'blob_plain':\t\n\t\t\t\t$controller = new GitPHP_Controller_Blob();\n\t\t\t\tif ($action === 'blob_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'atom':\n\t\t\tcase 'rss':\n\t\t\t\t$controller = new GitPHP_Controller_Feed();\n\t\t\t\tif ($action == 'rss')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::RssFormat);\n\t\t\t\telse if ($action == 'atom')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::AtomFormat);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commit':\n\t\t\tcase 'commits':\n\t\t\t\t$controller = new GitPHP_Controller_Commit();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'summary':\n\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'project_index':\n\t\t\tcase 'projectindex':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('txt', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'opml':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('opml', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'login':\n\t\t\t\t$controller = new GitPHP_Controller_Login();\n\t\t\t\tif (!empty($_POST['username']))\n\t\t\t\t\t$controller->SetParam('username', $_POST['username']);\n\t\t\t\tif (!empty($_POST['password']))\n\t\t\t\t\t$controller->SetParam('password', $_POST['password']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'logout':\n\t\t\t\t$controller = new GitPHP_Controller_Logout();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'graph':\n\t\t\tcase 'graphs':\n\t\t\t\t//$controller = new GitPHP_Controller_Graph();\n\t\t\t\t//break;\n\t\t\tcase 'graphdata':\n\t\t\t\t//$controller = new GitPHP_Controller_GraphData();\n\t\t\t\t//break;\n\t\t\tdefault:\n\t\t\t\tif (!empty($params['project'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\t} else {\n\t\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t}\n\t\t}\n\n\t\tforeach ($params as $paramname => $paramval) {\n\t\t\tif ($paramname !== 'action')\n\t\t\t\t$controller->SetParam($paramname, $paramval);\n\t\t}\n\n\t\t$controller->SetRouter($this);\n\n\t\treturn $controller;\n\t}", "public function testCreateTheControllerClass()\n {\n $controller = new Game21Controller();\n $this->assertInstanceOf(\"\\App\\Http\\Controllers\\Game21Controller\", $controller);\n }", "public static function createController( MShop_Context_Item_Interface $context, $name = null );", "public function __construct()\n {\n\n $url = $this->splitURL();\n // echo $url[0];\n\n // check class file exists\n if (file_exists(\"../app/controllers/\" . strtolower($url[0]) . \".php\")) {\n $this->controller = strtolower($url[0]);\n unset($url[0]);\n }\n\n // echo $this->controller;\n\n require \"../app/controllers/\" . $this->controller . \".php\";\n\n // create Instance(object)\n $this->controller = new $this->controller(); // $this->controller is an object from now on\n if (isset($url[1])) {\n if (method_exists($this->controller, $url[1])) {\n $this->method = $url[1];\n unset($url[1]);\n }\n }\n\n // run the class and method\n $this->params = array_values($url); // array_values 값들인 인자 0 부터 다시 배치\n call_user_func_array([$this->controller, $this->method], $this->params);\n }", "public function getController();", "public function getController();", "public function getController();", "public function createController($pageType, $template)\n {\n $controller = null;\n\n // Use factories first\n if (isset($this->controllerFactories[$pageType])) {\n $callable = $this->controllerFactories[$pageType];\n $controller = $callable($this, 'templates/'.$template);\n\n if ($controller) {\n return $controller;\n }\n }\n\n // See if a default controller exists in the theme namespace\n $class = null;\n if ($pageType == 'posts') {\n $class = $this->namespace.'\\\\Controllers\\\\PostsController';\n } elseif ($pageType == 'post') {\n $class = $this->namespace.'\\\\Controllers\\\\PostController';\n } elseif ($pageType == 'page') {\n $class = $this->namespace.'\\\\Controllers\\\\PageController';\n } elseif ($pageType == 'term') {\n $class = $this->namespace.'\\\\Controllers\\\\TermController';\n }\n\n if (class_exists($class)) {\n $controller = new $class($this, 'templates/'.$template);\n\n return $controller;\n }\n\n // Create a default controller from the stem namespace\n if ($pageType == 'posts') {\n $controller = new PostsController($this, 'templates/'.$template);\n } elseif ($pageType == 'post') {\n $controller = new PostController($this, 'templates/'.$template);\n } elseif ($pageType == 'page') {\n $controller = new PageController($this, 'templates/'.$template);\n } elseif ($pageType == 'search') {\n $controller = new SearchController($this, 'templates/'.$template);\n } elseif ($pageType == 'term') {\n $controller = new TermController($this, 'templates/'.$template);\n }\n\n return $controller;\n }", "private function loadController($controller)\r\n {\r\n $className = $controller.'Controller';\r\n \r\n $class = new $className($this);\r\n \r\n $class->init();\r\n \r\n return $class;\r\n }", "public static function newInstance ($class)\n {\n try\n {\n // the class exists\n $object = new $class();\n\n if (!($object instanceof sfController))\n {\n // the class name is of the wrong type\n $error = 'Class \"%s\" is not of the type sfController';\n $error = sprintf($error, $class);\n\n throw new sfFactoryException($error);\n }\n\n return $object;\n }\n catch (sfException $e)\n {\n $e->printStackTrace();\n }\n }", "public function create()\n {\n //TODO frontEndDeveloper \n //load admin.classes.create view\n\n\n return view('admin.classes.create');\n }", "private function generateControllerClass()\n {\n $dir = $this->bundle->getPath();\n\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $target = sprintf(\n '%s/Controller/%s/%sController.php',\n $dir,\n str_replace('\\\\', '/', $entityNamespace),\n $entityClass\n );\n\n if (file_exists($target)) {\n throw new \\RuntimeException('Unable to generate the controller as it already exists.');\n }\n\n $this->renderFile($this->skeletonDir, 'controller.php', $target, array(\n 'actions' => $this->actions,\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'dir' => $this->skeletonDir,\n 'bundle' => $this->bundle->getName(),\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'format' => $this->format,\n ));\n }", "static public function Instance()\t\t// Static so we use classname itself to create object i.e. Controller::Instance()\r\n {\r\n // Only one object of this class is required\r\n // so we only create if it hasn't already\r\n // been created.\r\n if(!isset(self::$_instance))\r\n {\r\n self::$_instance = new self();\t// Make new instance of the Controler class\r\n self::$_instance->_commandResolver = new CommandResolver();\r\n\r\n ApplicationController::LoadViewMap();\r\n }\r\n return self::$_instance;\r\n }", "private function create_mock_controller() {\n eval('class TestController extends cyclone\\request\\SkeletonController {\n function before() {\n DispatcherTest::$beforeCalled = TRUE;\n DispatcherTest::$route = $this->_request->route;\n }\n\n function after() {\n DispatcherTest::$afterCalled = TRUE;\n }\n\n function action_act() {\n DispatcherTest::$actionCalled = TRUE;\n }\n}');\n }", "public function AController() {\r\n\t}", "protected function initializeController() {}", "public function dispatch()\n { \n $controller = $this->formatController();\n $controller = new $controller($this);\n if (!$controller instanceof ControllerAbstract) {\n throw new Exception(\n 'Class ' . get_class($controller) . ' is not a valid controller instance. Controller classes must '\n . 'derive from \\Europa\\ControllerAbstract.'\n );\n }\n $controller->action();\n return $controller;\n }", "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }", "private function addController($controller)\n {\n $object = new $controller($this->app);\n $this->controllers[$controller] = $object;\n }", "function Controller($ControllerName = Web\\Application\\DefaultController) {\n return Application()->Controller($ControllerName);\n }", "public function getController($controllerName) {\r\n\t\tif(!isset(self::$instances[$controllerName])) {\r\n\t\t $package = $this->getPackage(Nomenclature::getVendorAndPackage($controllerName));\r\n\t\t if(!$package) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t return $controller;\r\n\t\t //return false;\r\n\t\t }\r\n\r\n\t\t if(!$package || !$package->controllerExists($controllerName)) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t $package->addController($controller);\r\n\t\t } else {\r\n\t\t $controller = $package->getController($controllerName);\r\n\t\t }\r\n\t\t} else {\r\n\t\t $controller = self::$instances[$controllerName];\r\n\t\t}\r\n\t\treturn $controller;\r\n\t}", "public function testInstantiateSessionController()\n {\n $controller = new SessionController();\n\n $this->assertInstanceOf(\"App\\Http\\Controllers\\SessionController\", $controller);\n }", "private static function loadController($str) {\n\t\t$str = self::formatAsController($str);\n\t\t$app_controller = file_exists(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t$lib_controller = file_exists(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\n\t\tif ( $app_controller || $lib_controller ) {\n\t\t\tif ($app_controller) {\n\t\t\t\trequire_once(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequire_once(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\n\t\t\t$controller = new $str();\n\t\t\t\n\t\t\tif (!$controller instanceof Controller) {\n\t\t\t\tthrow new IsNotControllerException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new ControllerNotExistsException($str);\n\t\t}\n\t}", "public function __construct()\n {\n // and $url[1] is a controller method\n if ($_GET['url'] == NULL) {\n $url = explode('/', env('defaultRoute'));\n } else {\n $url = explode('/', rtrim($_GET['url'],'/'));\n }\n\n $file = 'controllers/' . $url[0] . '.php';\n if (file_exists($file)) {\n require $file;\n $controller = new $url[0];\n\n if (isset($url[1])) {\n $controller->{$url[1]}();\n }\n } else {\n echo \"404 not found\";\n }\n }", "protected function _controllers()\n {\n $this['watchController'] = $this->factory(static function ($c) {\n return new Controller\\WatchController($c['app'], $c['searcher']);\n });\n\n $this['runController'] = $this->factory(static function ($c) {\n return new Controller\\RunController($c['app'], $c['searcher']);\n });\n\n $this['customController'] = $this->factory(static function ($c) {\n return new Controller\\CustomController($c['app'], $c['searcher']);\n });\n\n $this['waterfallController'] = $this->factory(static function ($c) {\n return new Controller\\WaterfallController($c['app'], $c['searcher']);\n });\n\n $this['importController'] = $this->factory(static function ($c) {\n return new Controller\\ImportController($c['app'], $c['saver'], $c['config']['upload.token']);\n });\n\n $this['metricsController'] = $this->factory(static function ($c) {\n return new Controller\\MetricsController($c['app'], $c['searcher']);\n });\n }", "public function __construct() {\r\n $this->controllerLogin = new ControllerLogin();\r\n $this->controllerGame = new ControllerGame();\r\n $this->controllerRegister = new ControllerRegister();\r\n }", "public function controller ($post = array())\n\t{\n\n\t\t$name = $post['controller_name'];\n\n\t\tif (is_file(APPPATH.'controllers/'.$name.'.php')) {\n\n\t\t\t$message = sprintf(lang('Controller_s_is_existed'), APPPATH.'controllers/'.$name.'.php');\n\n\t\t\t$this->msg[] = $message;\n\n\t\t\treturn $this->result(false, $this->msg[0]);\n\n\t\t}\n\n\t\t$extends = null;\n\n\t\tif (isset($post['crud'])) {\n\n\t\t\t$crud = true;\n\t\t\t\n\t\t}\n\t\telse{\n\n\t\t\t$crud = false;\n\n\t\t}\n\n\t\t$file = $this->_create_folders_from_name($name, 'controllers');\n\n\t\t$data = '';\n\n\t\t$data .= $this->_class_open($file['file'], __METHOD__, $extends);\n\n\t\t$crud === FALSE || $data .= $this->_crud_methods_contraller($post);\n\n\t\t$data .= $this->_class_close();\n\n\t\t$path = APPPATH . 'controllers/' . $file['path'] . strtolower($file['file']) . '.php';\n\n\t\twrite_file($path, $data);\n\n\t\t$this->msg[] = sprintf(lang('Created_controller_s'), $path);\n\n\t\t//echo $this->_messages();\n\t\treturn $this->result(true, $this->msg[0]);\n\n\t}", "protected function getController(Request $request) {\n try {\n $controller = $this->objectFactory->create($request->getControllerName(), self::INTERFACE_CONTROLLER);\n } catch (ZiboException $exception) {\n throw new ZiboException('Could not create controller ' . $request->getControllerName(), 0, $exception);\n }\n\n return $controller;\n }", "public function create() {}", "public function __construct()\n {\n $this->dataController = new DataController;\n }", "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "private function setUpController()\n {\n $this->controller = new TestObject(new SharedControllerTestController);\n\n $this->controller->dbal = DBAL::getDBAL('testDB', $this->getDBH());\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }" ]
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.6877748", "0.68702674", "0.68622285", "0.6839049", "0.6779292", "0.6703522", "0.66688496", "0.66600126", "0.6650373", "0.66436416", "0.6615505", "0.66144013", "0.6588728", "0.64483404", "0.64439476", "0.6429303", "0.6426485", "0.6303757", "0.6298291", "0.6293319", "0.62811387", "0.6258778", "0.62542456", "0.616827", "0.6162314", "0.61610043", "0.6139887", "0.613725", "0.61334985", "0.6132223", "0.6128982", "0.61092585", "0.6094611", "0.60889256", "0.6074893", "0.60660255", "0.6059098", "0.60565156", "0.6044235", "0.60288006", "0.6024102", "0.60225666", "0.6018304", "0.60134345", "0.60124683", "0.6010913", "0.6009284", "0.6001683", "0.5997471", "0.5997012", "0.59942573", "0.5985074", "0.5985074", "0.5985074", "0.5967613", "0.5952533", "0.5949068", "0.5942203", "0.5925731", "0.5914304", "0.5914013", "0.59119135", "0.5910308", "0.5910285", "0.59013796", "0.59003943", "0.5897524", "0.58964556", "0.58952993", "0.58918965", "0.5888943", "0.5875413", "0.5869938", "0.58627135", "0.58594996", "0.5853714", "0.5839484", "0.5832913", "0.582425", "0.58161044", "0.5815566" ]
0.0
-1
Handle a login request to the application.
public function login(Request $request) { $request->validate([ 'email' => 'required|email', 'password' => 'required|string', 'group' => 'required|in:admin,user' ],[ 'group.in' => 'Please select admin or user.' ]); if(Auth::guard($request->group)->attempt(['email' => $request->email, 'password' => $request->password])) { return redirect()->intended(route('dashboard')); } Session::flash('error', 'Email or Password is incorrect.'); return redirect()->back()->withInput($request->except('password')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handleLogin( ){\n\t\t// Filter allowed data\n\t\t$data = Request::only([ 'uid', 'password' ]);\n\n\t\t// Validate user input\n\t\t$validator = Validator::make(\n\t\t\t$data,\n\t\t\t[\n\t\t\t\t'uid' => 'required',\n\t\t\t\t'password' => 'required',\n\t\t\t]\n\t\t);\n\n\t\tforeach ($data as $key => $value) {\n\t\t\t$data[$key] = $this->sanitizeLDAP( $value );\n\t\t}\n\n\t\tif($validator->fails()){\n\t\t\t// If validation fails, send back with errors\n\t\t\treturn Redirect::route('login')->withErrors( $validator )->withInput( );\n\t\t}\n\n\t\tif( Auth::attempt( [ 'uid' => $data['uid'], 'password' => $data['password']], true ) ){\n\t\t\t// If login is successful, send them to home\n\t\t\treturn Redirect::route( 'home' );\n\t\t} else {\n\t\t\t// Otherwise, tell them they're wrong\n\t\t\treturn Redirect::route( 'login' )\n\t\t\t\t\t\t ->withErrors([ \n\t\t\t\t\t\t\t\t'message' => 'I\\'m sorry, that username and password aren\\'t correct.' \n\t\t\t\t\t\t\t]);\n\t\t}\n\n\t\treturn Redirect::route( 'login' )->withInput( );\n\t}", "public static function handle_login() {\n $params = $_POST;\n $player = Player::authenticate($params['username'], $params['password']);\n if(!$player) {\n View::make('player/login.html', array('error' => 'Väärä käyttäjätunnus tai salasana.', 'username' => $params['username']));\n } else {\n $_SESSION['user'] = $player->id;\n\n Redirect::to('/', array('message' => 'Kirjautunut käyttäjänä ' . $player->username));\n }\n }", "public function onLogin(Request $request)\n {\n $username = $request->input('username');\n $password = $request->input('password');\n \n // save posted data in user data object model\n $user = new UserModel(-1, $username, $password);\n \n // call security buesiness service\n $service = new SecurityService(); \n $status = $service->login($user);\n \n // render a failed or passed response view and pass the user model in passed view\n if($status)\n {\n $data = ['model' => $user];\n return view('loginPassed')->with($data);\n }\n else \n {\n return view('loginFailed');\n }\n }", "protected function loginIfRequested() {}", "public function login(){\n \t\t//TODO redirect if user already logged in\n \t\t//TODO Seut up a form\n \t\t//TODO Try to log in\n \t\t//TODO Redirect\n \t\t//TODO Error message\n \t\t//TODO Set subview and load layout\n\n \t}", "public function processLogin()\n {\n $user = $this->post['user'];\n\n // Run the form validation\n $errors = $this->validateLogin($user);\n\n // If the form is valid, check the login credentials and\n // if valid log the user in otherwise display the form again.\n if (empty($errors)) {\n if ($this->authentication->login($user['email'], $user['password'])) {\n header('location: /admin/');\n return http_response_code();\n } else {\n $errors[] = 'Invalid login credentials';\n return $this->loginForm($errors);\n }\n } else {\n return $this->loginForm($errors);\n }\n }", "public static function login()\n {\n (new Authenticator(request()))->login();\n }", "public function loginAction() {\n $auth = $this->app->container[\"settings\"][\"auth\"];\n\n // Note: There is no point to check whether the user is authenticated, as there is no authentication\n // check for this route as defined in the config.yml file under the auth.passthrough parameter.\n\n $request = $this->app->request;\n $max_exptime = strtotime($auth[\"maxlifetime\"]);\n $default_exptime = strtotime($auth[\"lifetime\"]);\n $exptime = $default_exptime;\n\n if ( $request->isFormData() )\n {\n $username = $request->post(\"username\");\n $password = $request->post(\"password\");\n $exptime = self::getExpirationTime($request->post(\"expiration\"), $default_exptime, $max_exptime);\n }\n\n if ( preg_match(\"/^application\\\\/json/i\", $request->getContentType()) )\n {\n $json = json_decode($request->getBody(), true);\n if ( $json !== NULL )\n {\n $username = $json[\"username\"];\n $password = $json[\"password\"];\n $exptime = self::getExpirationTime(isset($json[\"expiration\"])?$json[\"expiration\"]:null, $default_exptime, $max_exptime);\n }\n }\n\n if ( empty($username) || empty($password) ) {\n $this->renderUnauthorized();\n return;\n }\n\n /**\n * @var \\PDO\n */\n $pdo = $this->app->getPDOConnection();\n $user = $pdo->select()\n ->from(\"tbl_user\")\n ->where(\"username\", \"=\", $username)\n ->where(\"password\", \"=\", sha1($password))\n ->where(\"status\", \">\", 0)\n ->execute()\n ->fetch();\n\n if ( empty($user) )\n {\n $this->renderUnauthorized();\n return;\n }\n\n $pdo->update(array(\"lastlogin_time\"=>gmdate(\"Y-m-d H:i:s\")))\n ->table(\"tbl_user\")\n ->where(\"id\", \"=\", $user[\"id\"])\n ->execute();\n\n $this->app->setAuthData(Factory::createAuthData($user, $exptime));\n\n $this->render(200);\n }", "public function postLoginAction()\n {\n //get input\n $inputs = $this->getPostInput();\n\n //define default\n $default = [\n 'status' => 'active'\n ];\n\n // Validate input\n $params = $this->myValidate->validateApi($this->userLogin, $default, $inputs);\n\n if (isset($params['validate_error']))\n {\n //Validate error\n return $this->responseError($params['validate_error'], '/users');\n }\n\n //process user login\n $result = $this->userService->checkLogin($params);\n\n //Check response error\n if (!$result['success'])\n {\n //process error\n return $this->responseError($result['message'], '/users');\n }\n\n //return data\n $encoder = $this->createEncoder($this->modelName, $this->schemaName);\n\n return $this->response($encoder, $result['data']);\n }", "public function login()\n {\n $authorized = $this->authorize( $_POST );\n if( !empty( $authorized ) && $authorized !== false ){\n $this->register_login_datetime( $authorized );\n ( new Events() )->trigger( 1, true );\n } else {\n ( new Events() )->trigger( 2, true );\n }\n }", "public function loginAction()\n {\n // get the view vars\n $errors = $this->view->errors;\n $site = $this->view->site;\n $loginUser = $this->view->loginUser;\n\n if ( $loginUser ) {\n $homeUrl = $site->getUrl( 'home' );\n return $this->_redirect( $homeUrl );\n }\n\n // set the input params\n $this->processInput( null, null, $errors );\n\n // check if there were any errors\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'errors' );\n }\n\n return $this->renderPage( 'authLogin' );\n }", "public function p_login() {\n\n\t\t# Sanitize the user entered data to prevent any funny-business (re: SQL Injection Attacks)\n\t\t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n\t\t# Hash submitted password so we can compare it against one in the db\n\t\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n\t\t# Search the db for this email and password\n\t\t# Retrieve the token if it's available\n\t\t$q = \"SELECT token \n\t\t\tFROM users \n\t\t\tWHERE email = '\".$_POST['email'].\"' \n\t\t\tAND password = '\".$_POST['password'].\"'\";\n\n\t\t$token = DB::instance(DB_NAME)->select_field($q);\n\n\t\t# If we didn't find a matching token in the database, it means login failed\n\t\tif(!$token) {\n\n\t\t\t# Send them back to the login page\n\t\t\tRouter::redirect(\"/users/login/error\");\n\n\t\t# But if we did, login succeeded! \n\t\t} else {\n\t\t\tsetcookie(\"token\", $token, strtotime('+1 year'), '/');\n\t\t\t# Send them to the main page - or whever you want them to go\n\t\t\tRouter::redirect(\"/\");\n\t\t}\n\t}", "public function processLogin(): void;", "public function login(Request $request);", "public function loginAction()\r\n\t{\r\n\t\r\n\t\t$post_back = $this->request->getParam( \"postback\" );\r\n\t\t$config_https = $this->registry->getConfig( \"SECURE_LOGIN\", false, false );\r\n\t\r\n\t\t// if secure login is required, then force the user back thru https\r\n\t\r\n\t\tif ( $config_https == true && $this->request->uri()->getScheme() == \"http\" )\r\n\t\t{\r\n\t\t\t$uri = $this->request->uri();\r\n\t\t\t$uri->setScheme('https');\r\n\t\r\n\t\t\treturn $this->redirect()->toUrl((string) $uri);\r\n\t\t}\r\n\t\r\n\t\t### remote authentication\r\n\t\r\n\t\t$result = $this->authentication->onLogin();\r\n\t\r\n\t\tif ( $result == Scheme::REDIRECT )\r\n\t\t{\r\n\t\t\treturn $this->doRedirect();\r\n\t\t}\r\n\t\r\n\t\t### local authentication\r\n\t\r\n\t\t// if this is not a 'postback', then the user has not submitted the form, they are arriving\r\n\t\t// for first time so stop the flow and just show the login page with form\r\n\t\r\n\t\tif ( $post_back == null ) return 1;\r\n\t\r\n\t\t$bolAuth = $this->authentication->onCallBack();\r\n\t\r\n\t\tif ( $bolAuth == Scheme::FAILED )\r\n\t\t{\r\n\t\t\t// failed the login, so present a message to the user\r\n\t\r\n\t\t\treturn array(\"error\" => \"authentication\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn $this->doRedirect();\r\n\t\t}\r\n\t}", "public function login() {\n $this->FormHandler->setRequired('employeeCode');\n $this->FormHandler->setRequired('employeePassword');\n\n\n if ($this->FormHandler->run() === true) {\n $employeeCode = $this->FormHandler->getPostValue('employeeCode');\n $employePassword = $this->FormHandler->getPostValue('employeePassword');\n if ($this->User->checkLoginCredentials($employeeCode, $employePassword) === true) {\n // Log them in and redirect\n $this->User->loginClient($_SESSION, $employeeCode);\n redirect('employee/dashboard');\n }\n }\n else if ($this->User->checkIfClientIsLoggedIn($_SESSION) === true) {\n redirect('employee/dashboard');\n }\n\n loadHeader();\n include APP_PATH . '/view/user/login.php';\n loadFooter();\n }", "public function handleLogin(){\n $username = htmlentities(trim($_POST['username']));\n $password = htmlentities(trim($_POST['password']));\n $loginSebagai = htmlentities(trim($_POST['login_sebagai']));\n\n $loginResult = WebDb::handleLogin($username,$password, $loginSebagai);\n\n if(!$loginResult) {\n Session::set(\"login_gagal\",\"Username atau password salah\");\n header(\"Location: /it-a\");\n die();\n }\n Session::set(\"user_id\",$username);\n Session::set(\"login_sebagai\",$loginSebagai);\n header(\"Location: /it-a/dashboard\");\n }", "public function postLogin()\n\t{\n\n\t\t$input = array(\n\t\t 'email' => \\Input::get( 'email' ),\n\t\t 'password' => \\Input::get( 'password' ),\n\t\t 'remember' => \\Input::get( 'remember' ),\n\t\t);\n\n\t\t// If you wish to only allow login from confirmed users, call logAttempt\n\t\t// with the second parameter as true.\n\t\t// logAttempt will check if the 'email' perhaps is the username.\n\t\tif ( \\Confide::logAttempt( $input, true ) ) \n\t\t{\n\t\t return \\Redirect::intended('/company'); \n\t\t}\n\t\telse\n\t\t{\n\t\t $user = new \\User;\n\n\t\t // Check if there was too many login attempts\n\t\t if( \\Confide::isThrottled( $input ) )\n\t\t {\n\t\t $err_msg = \\Lang::get('confide::confide.alerts.too_many_attempts');\n\t\t }\n\t\t elseif( $user->checkUserExists( $input ) and ! $user->isConfirmed( $input ) )\n\t\t {\n\t\t $err_msg = \\Lang::get('confide::confide.alerts.not_confirmed');\n\t\t }\n\t\t else\n\t\t {\n\t\t $err_msg = \\Lang::get('confide::confide.alerts.wrong_credentials');\n\t\t }\n\n\t\t return \\Redirect::action('controllers\\company\\AuthController@getLogin')\n\t\t ->withInput(\\Input::except('password'))\n\t\t ->with( 'error', $err_msg );\n\t\t}\n\n\t}", "public function loginAction()\n {\n $data = $this->getRequestData();\n if ($this->getDeviceSession(false)) {\n $this->setErrorResponse('Your device is already running a session. Please logout first.');\n }\n $session = Workapp_Session::login($data['username'], $data['password']);\n if (!$session) {\n $this->setErrorResponse('No user with such username and password');\n }\n $session->registerAction($_SERVER['REMOTE_ADDR']);\n $this->_helper->json(array('session_uid' => $session->getSessionUid()));\n }", "public function login()\n {\n /* validation requirement */\n $validator = $this->validation('login', request());\n\n if ($validator->fails()) {\n\n return $this->core->setResponse('error', $validator->messages()->first(), NULL, false , 400 );\n }\n\n $credentials = request(['email', 'password']);\n\n if (! $token = auth()->attempt($credentials)) {\n\n return $this->core->setResponse('error', 'Please check your email or password !', NULL, false , 400 );\n }\n\n return $this->respondWithToken($token, 'login');\n }", "public function login()\n {\n if(is_logged_in()) {\n redirect_to(url('thread/index'));\n }\n\n $user = new User;\n $page = Param::get('page_next', 'login');\n\n switch($page) {\n case 'login':\n break;\n\n case 'lobby':\n $user->username = Param::get('username');\n $user->password = Param::get('password');\n\n try {\n $user = $user->verify();\n $_SESSION['id'] = $user['id'];\n } catch (UserNotFoundException $e) {\n $page = 'login';\n }\n break;\n\n default:\n throw new UserNotFoundException(\"User not found\");\n }\n\n $this->set(get_defined_vars());\n $this->render($page);\n }", "public function login()\n {\n if ($this->getCurrentUser()->get('id')) {\n $this->redirect($this->Auth->redirectUrl());\n }\n\n if ($user = $this->Auth->identify()) {\n $this->Auth->setUser($user);\n\n // set cookie\n if (!empty($this->getRequest()->getData('remember_me'))) {\n if ($CookieAuth = $this->Auth->getAuthenticate('Lil.Cookie')) {\n $CookieAuth->createCookie($this->getRequest()->getData());\n }\n }\n } else {\n if ($this->getRequest()->is('post') || env('PHP_AUTH_USER')) {\n $this->Flash->error(__d('lil', 'Invalid username or password, try again'));\n }\n }\n\n if ($this->getCurrentUser()->get('id')) {\n $redirect = $this->Auth->redirectUrl();\n $event = new Event('Lil.Auth.afterLogin', $this->Auth, [$redirect]);\n $this->getEventManager()->dispatch($event);\n\n return $this->redirect($redirect);\n }\n }", "private function login(){\n \n }", "public function loginAction() : object\n {\n $title = \"Logga in\";\n\n // Deal with incoming variables\n $user = getPost('user');\n $pass = getPost('pass');\n $pass = MD5($pass);\n\n if (hasKeyPost(\"login\")) {\n $sql = loginCheck();\n $res = $this->app->db->executeFetchAll($sql, [$user, $pass]);\n if ($res != null) {\n $this->app->session->set('user', $user);\n return $this->app->response->redirect(\"content\");\n }\n }\n\n // Add and render page to login\n $this->app->page->add(\"content/login\");\n return $this->app->page->render([\"title\" => $title,]);\n }", "abstract protected function doLogin();", "public function postLogin()\n {\n if ($this->request->is('post')) {\n $input = $this->request->getData();\n // Check validate login of input data\n $validate = $this->Client->newEntity($input, ['validate' => 'login']);\n\n // Check this validate had error or not\n if ($validate->errors()) {\n $this->set($validate->errors());\n // Check login by account of Shop and redirect to Index page if success\n } else if ($shop = $this->Shop->checkLoginForShop($input) != null) {\n // Change to Model Shop to check authenticate.\n $this->Auth->config('authenticate', [\n 'Form' => ['userModel' => 'Shop']\n ]);\n\n $shop = $this->Auth->identify();\n $this->Auth->setUser($shop);\n\n return $this->redirect(['controller' => 'Pages', 'action' => 'index']);\n // Check login by account of Client and redirect to Index page if success\n } else if ($client = $this->Auth->identify()) {\n $this->Auth->setUser($client);\n return $this->redirect(['controller' => 'Pages', 'action' => 'home']);\n } else {\n $this->Flash->error('Username or password are not correct..');\n }\n $this->login();\n }\n }", "public function login()\n {\n\t\t$login = Input::get('login');\n\t\t$password = Input::get('password');\n\t\ttry{\n\t\t\n\t\t\t$user = Auth::authenticate([\n\t\t\t\t'login' => $login,\n\t\t\t\t'password' => $password\n\t\t\t]);\n\t\t\t$this->setToken($user);\n\t\t\treturn $this->sendResponse('You are now logged in');\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\treturn $this->sendResponse($e->getMessage());\n\t\t}\n }", "function login() {\n\t\tif (isset($_REQUEST['username']) && !empty($_REQUEST['username'])) {\n\t\t\t$username = $_REQUEST['username'];\n\n\t\t\t$userDAO = implementationUserDAO_Dummy::getInstance();\n\t\t\t$users = $userDAO->getUsers();\n\n\t\t\tforeach ($users as $key => $user) {\n\t\t\t\tif ($user->getUsername() === $username) {\n\t\t\t\t\t$userFound = $user;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (isset($userFound) && $userFound != null) {\n\n\t\t\t\tif (isset($_REQUEST['password']) && !empty($_REQUEST['password'])) {\n\t\t\t\t\t$password = $_REQUEST['password'];\n\n\t\t\t\t\tif ($userFound->getPassword() === $password) {\n\n\t\t\t\t\t\tsession_start();\n\t\t\t\t\t\t$_SESSION['USERNAME']= $username;\n\n\t\t\t\t\t\t$url = getPreviousUrl();\n\t\t\t\t\t\t$newUrl = substr($url, 0, strpos($url, \"?\"));\n\n\t\t\t\t\t\tredirectToUrl($newUrl);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\t$this->resendLoginPage('danger', 'Mot de passe invalide.');\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\t// redirecting to login with bad password alert\n\t\t\t\t\t$this->resendLoginPage('danger', 'Mot de passe invalide.');\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->resendLoginPage('danger', 'Login invalide.');\n\t\t\t}\n\t\t}\n\n\t\telse {\n\t\t\t// redirecting to login page with bad username alert\n\t\t\t$this->resendLoginPage('danger', 'Login invalide.');\n\t\t}\n\n\n\t}", "public function access() {\n \tif ($_SERVER['REQUEST_METHOD'] === 'POST') {\n\n \t\t$user = Auth::login($_POST['email'], $_POST['pw']);\n \t\tif($user) {\n \t\t\tApp::redirect('dashboard');\n \t\t}\n\t\t\tSession::set('_old_input', $_POST);\n\t\t\tSession::set('_errors', ['login' => \"Email y/o password incorrectos.\"]);\n\t\t\tApp::redirect('login');\n\n \t}\n\n }", "public function postLogin() {\n\n\t\t// get input parameters\n\t\t//\n\t\t$username = Input::get('username');\n\t\t$password = Input::get('password');\n\n\t\t// validate user\n\t\t//\n\t\t$user = User::getByUsername($username);\n\t\tif ($user) {\n\t\t\tif (User::isValidPassword($password, $user->password)) {\n\t\t\t\tif ($user->hasBeenVerified()) {\n\t\t\t\t\tif ($user->isEnabled()) {\n\t\t\t\t\t\t$userAccount = $user->getUserAccount();\n\t\t\t\t\t\t$userAccount->penultimate_login_date = $userAccount->ultimate_login_date;\n\t\t\t\t\t\t$userAccount->ultimate_login_date = gmdate('Y-m-d H:i:s');\n\t\t\t\t\t\t$userAccount->save();\n\t\t\t\t\t\t$res = Response::json(array('user_uid' => $user->user_uid));\n\t\t\t\t\t\tSession::set('timestamp', time());\n\t\t\t\t\t\tSession::set('user_uid', $user->user_uid);\n\t\t\t\t\t\treturn $res;\n\t\t\t\t\t} else\n\t\t\t\t\t\treturn Response::make('User has not been approved.', 401);\n\t\t\t\t} else\n\t\t\t\t\treturn Response::make('User email has not been verified.', 401);\n\t\t\t} else\n\t\t\t\treturn Response::make('Incorrect username or password.', 401);\n\t\t} else\n\t\t\treturn Response::make('Incorrect username or password.', 401);\n\n\t\t/*\n\t\t$credentials = array(\n\t\t\t'username' => $username,\n\t\t\t'password' => $password\n\t\t);\n\n\t\tif (Auth::attempt($credentials)) {\n\t\t\treturn Response::json(array(\n\t\t\t\t'user_uid' => $user->uid\n\t\t\t));\n\t\t} else\n\t\t\treturn Response::error('500');\n\t\t*/\n\t}", "public function loginAction()\n {\n // Instantiate the form that asks the user to log in.\n $form = new Application_Form_LoginForm();\n\n // Initialize the error message to be empty.\n $this->view->formResponse = '';\n\n // For security purposes, only proceed if this is a POST request.\n if ($this->getRequest()->isPost())\n {\n // Process the filled-out form that has been posted:\n // if the input values are valid, attempt to authenticate.\n $formData = $this->getRequest()->getPost();\n if ($form->isValid($formData))\n {\n if ( $this->_authenticate($formData) )\n {\n $this->_helper->redirector('index', 'index');\n }\n }\n }\n\n // Render the view.\n $this->view->form = $form;\n }", "protected function login()\n {\n $this->send(Response::nick($this->config['nick']));\n $this->send(Response::user(\n $this->config['nick'],\n $this->config['hostname'],\n $this->config['servername'],\n $this->config['realname']\n ));\n }", "public function loginUser()\n {\n $request = new Request();\n\n $email = $request->input('email');\n $password = $request->input('password');\n\n // Check email\n if (!$email) {\n $this->showLoginForm(['Please enter email']);\n }\n // Check password\n if (!$password) {\n $this->showLoginForm(['Please enter password']);\n }\n\n // Check user exist and then password\n $user = $this->getUser($email);\n $password = md5($password);\n if (!$user || $password !== $user['password']) {\n $this->showLoginForm(['Error on login']);\n }\n\n // Save login details to cookies\n if (!defined('APP_USERS_COOKIES_EMAIL')\n || !defined('APP_USERS_COOKIES_PASSWORD')) {\n $this->showLoginForm(['Error on login']);\n }\n setcookie(APP_USERS_COOKIES_EMAIL, $email);\n setcookie(APP_USERS_COOKIES_PASSWORD, $password);\n\n // Redirect to endpoint\n header(\"Location: \" . self::ENDPOINTS['success_login']);\n }", "public function login() {\r\n\r\n // signal any observers that the user has logged in\r\n $this->setState(\"login\");\r\n }", "public function processLogin(LoginRequest $request)\n {\n try {\n \n $remember = (bool) $request->get('remember', false);\n \n if (Sentinel::authenticate($request->all(), $remember)) {\n \n return redirect()->intended();\n }\n \n $errors = trans('sentinel.errors.credentials');\n \n }\n catch (NotActivatedException $e) {\n \n $errors = trans('sentinel.errors.activation'); \n }\n catch (ThrottlingException $e) {\n \n $errors = trans('sentinel.errors.throttle', ['delay' => $e->getDelay()]);\n }\n \n return redirect()->back()\n ->withInput()\n ->withErrors($errors);\n }", "public function login() {\n\t\tif(!empty(Session::get('http_response'))) {\n\t\t\thttp_response_code(Session::get('http_response'));\n\t\t\tSession::delete('http_response');\n\t\t}\n\t\tif($_POST && isset($_POST['login']) && isset($_POST['password'])) {\n\t\t\t$user = $this->_model->getLogin(strtolower($_POST['login']));\n\t\t\tif($user && $user->enabled) {\n\t\t\t\tif(hash_equals($user->password,crypt($_POST['password'],$user->password))) {\n\t\t\t\t\tif($user->blocked) {\n\t\t\t\t\t\thttp_response_code(403);\n\t\t\t\t\t\tSession::setMessage(array('alert'=>'warning','icon'=>'exclamation','text'=>\"User is blocked\"));\n\t\t\t\t\t} elseif($user->verified) {\n\t\t\t\t\t\tSession::set('user',$user);\n\t\t\t\t\t\tSession::setMessage(array('alert'=>'success','icon'=>'check','text'=>\"User has logged in successfully\"));\n\t\t\t\t\t\t$redirect = Session::get('login_redirect');\n\t\t\t\t\t\tRouter::redirect(Session::get('login_redirect'));\n\t\t\t\t\t} else {\n\t\t\t\t\t\thttp_response_code(401);\n\t\t\t\t\t\tSession::setMessage(array('alert'=>'warning','icon'=>'exclamation','text'=>\"User is not yet confirmed\"));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\thttp_response_code(401);\n\t\t\t\t\tSession::setMessage(array('alert'=>'danger','icon'=>'ban','text'=>\"Invalid login name or password\"));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\thttp_response_code(401);\n\t\t\t\tSession::setMessage(array('alert'=>'danger','icon'=>'ban','text'=>\"Invalid login name or password\"));\n\t\t\t}\t\n\t\t}\n\t}", "public function login()\n\t{\n\t\tif ($this->request->is('post')) {\n\n\t\t\t// If no parameter passed to login(), CakePHP automatically give the request params as parameters.\n\t\t\tif ($this->Auth->login()) {\n\t\t\t\treturn $this->redirect($this->Auth->redirectUrl());\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->set('signInFail', true); // view vars\n\t\t\t}\n\t\t}\n\t}", "public function login($request)\n\t\t{\n\t\t\tif (isset($request->username) && isset($request->passphrase))\n\t\t\t\treturn $this->authenticate($request);\n\t\t}", "public function doLogin()\n {\n $rules = array(\n 'email' => 'required|email',\n 'password' => 'required|alphaNum|min:3'\n );\n \n // validate inputs from the form\n $validator = Validator::make(Input::all(), $rules);\n \n // if the validator fails, redirect back to the form\n if ($validator->fails()) {\n return Redirect::to('/')\n ->withErrors($validator)\n ->withInput(Input::except('password'));\n } else {\n // create our user data for the authentication\n $userdata = array(\n 'email' => Input::get('email'),\n 'password' => Input::get('password')\n );\n \n // attempt to do the login\n $response = $this->requestLoginApi($userdata);\n\n if ($response->status == true) {\n // validation successful, save cookie!\n return Redirect::to('showsearch')\n ->withCookie(Cookie::make('accessToken', $response->data->accessToken, 60))\n ->with('message', 'Auth OK! (Token created)');\n \n } else {\n // validation fail, send back to login form\n return Redirect::to('/')\n ->withErrors(\"Invalid credentials\")\n ->withInput(Input::except('password'));\n }\n }\n }", "public function loginAction(Request $request){\n //for the view\n $params = array(\"title\" => _(\"Sign in\"));\n\n $params['loginUsername'] = \"\";\n\n //handle login form\n if (!empty($_POST)){\n $error = true;\n\n $loginUsername = $_POST['loginUsername'];\n $params['loginUsername'] = $loginUsername;\n $password = $_POST['password'];\n\n //validation\n $validator = new CustomValidator();\n\n $validator->validateLoginUsername($loginUsername);\n $validator->validatePassword($password);\n\n //if valid\n if ($validator->isValid()){\n //find user from db\n $userManager = new UserManager();\n $user = $userManager->findByEmailOrUsername($loginUsername);\n\n //if user found\n if($user){\n\n// hash password\n $securityHelper = new SH();\n $hashedPassword = $securityHelper->hashPassword( $password, $user->getSalt());\n// $hashedPassword = bcrypt($password);\n\n //compare hashed passwords\n if ($hashedPassword === $user->getPassword()){\n //login\n $error = false;\n $this->logUser($request, $user);\n $json = new JsonResponse();\n $json->setData(array(\"redirectTo\" => '/skills'));\n $json->send();\n }\n }\n }\n if($error){\n $params['error']['global'] = _(\"You username/email and password do not match\");\n }\n }\n return view('auth.login',['params'=>$params]);\n// $view = new View(\"login.php\", $params);\n// $view->setLayout(\"../View/layouts/modal.php\");\n// $view->send(true);\n }", "public function loginAction() {\n $auth = Zend_Auth::getInstance();\n\n if ($auth->hasIdentity()) {\n $this->_redirect($this->getUrl());\n }\n\n $request = $this->getRequest();\n\n $redirect = $request->getPost('redirect');\n if (strlen($redirect) == 0)\n $redirect = $request->getServer('REQUEST_URI');\n if (strlen($redirect) == 0)\n $redirect = $this->getUrl();\n\n $errors = array();\n\n if ($request->isPost()) {\n // get the hash\n $hash = $request->getPost('hash');\n\n if ($this->checkHash($hash)) {\n $username = $request->getPost('username');\n $password = $request->getPost('password');\n\n if (strlen($username) == 0 || strlen($password) == 0)\n $errors['username'] = 'Required field must not be blank';\n\n if (count($errors) == 0) {\n $adapter = new Champs_Auth_Doctrine($username, $password);\n\n $result = $auth->authenticate($adapter);\n\n if ($result->isValid()) {\n $this->_redirect($this->getUrl());\n }\n\n $errors['username'] = 'Your login details were invalid';\n }\n }\n }\n\n // setup hash\n $this->initHash();\n\n $this->view->errors = $errors;\n $this->view->redirect = $redirect;\n }", "private function _login(){\r\n\r\n // It will always be called via ajax so we will respond as such\r\n $result = new stdClass();\r\n $response = 400;\r\n\r\n if($_SERVER['REQUEST_METHOD'] == 'POST'){\r\n\r\n try {\r\n\r\n\r\n $username = $_POST['username'];\r\n $password = $_POST['password'];\r\n\r\n $path = ROOT.'/site/config/auth.txt';\r\n $adapter = new AuthAdapter($path,\r\n 'MRZPN',\r\n $username,\r\n $password);\r\n\r\n //$result = $adapter->authenticate($username, $password);\r\n\r\n $auth = new AuthenticationService();\r\n $result = $auth->authenticate($adapter);\r\n\r\n\r\n if(!$result->isValid()){\r\n $result->error = \"Incorrect username and password combination!\";\r\n /*\r\n foreach ($result->getMessages() as $message) {\r\n $result->error = \"$message\\n\";\r\n }\r\n */\r\n } else {\r\n $response = 200;\r\n $result->url = WEBROOT;\r\n }\r\n\r\n\r\n\r\n } catch (Exception $e) {\r\n $result->error = $e->getMessage();\r\n }\r\n\r\n }\r\n\r\n // Return the response\r\n http_response_code($response);\r\n echo json_encode($result);\r\n exit;\r\n\r\n }", "public function login_action() \n\t{\n $rules = array(\n 'mail' => 'valid_email|required',\n 'pass' => 'required'\n );\n \n \n //validate the info\n $validated = FormValidation::is_valid($_POST, $rules);\n \n // Check if validation was successful\n if($validated !== TRUE): \n \n //exit with an error\n exit(Alert::error(false, true, $validated));\n\n endif;\n\n // they've passed the filter login try and log 'em in\n\t\tUserModel::login(); \n }", "private function handleJustLoggedIn() {\n $this->authenticatedView->setViewMessage(\"Welcome\");\n\n $keepLoggedIn = $this->userRequest->wantsToStayLoggedIn();\n \n if ($keepLoggedIn) {\n $userCredentials = $this->getUserCredentials();\n $cookieHandler = new CookieHandler();\n $cookieHandler->serveCookie($userCredentials);\n }\n }", "protected function handleLogin(Request $request)\n {\n $domain = $this->builder->auth()->adminDomain();\n\n /** @var PasswordProvider $passwordProvider */\n $passwordProvider = $domain->provider('password');\n\n $data = $request->data();\n $user = $passwordProvider->login(\n $data->getRequired('username'),\n $data->getRequired('password')\n );\n\n if($user === null) {\n return $this->getTemplate(array(\n 'loginFailed' => true\n ));\n }\n\n return $this->loggedInRedirect();\n }", "function doLoginAction() {\n if ($this->request->isPost() && $this->request->isAjax()) {\n try {\n $user = new User(\n $this->request->getPost('username')\n , $this->request->getPost('password')\n );\n\n if ($user->isRegisted()) {\n $reponse = $this->_translator()->get(\n __CLASS__ . __METHOD__\n . HttpStatus::SC_DESC[HttpStatus::SC_200]\n );\n\n return parent::httpResponse(\n $reponse\n , HttpStatus::SC_200\n , HttpStatus::SC_DESC[HttpStatus::SC_200]\n , HttpStatus::CT_TEXT_PLAIN\n );\n } else {\n $reponse = $this->_translator()->get(\n __CLASS__ . __METHOD__\n . HttpStatus::SC_DESC[HttpStatus::SC_401]\n );\n\n return parent::httpResponse(\n $reponse\n , HttpStatus::SC_401\n , HttpStatus::SC_DESC[HttpStatus::SC_401]\n , HttpStatus::CT_TEXT_PLAIN\n );\n }\n } catch (Exception $e) {\n return parent::httpResponse($e->getMessage());\n }\n }\n }", "public function doLogin(LoginRequest $request)\n { \n try {\n $data = $request->all();\n\n if (AuthSam::login($data, $request->remember_me)) {\n AuthSam::getSubsidychecklist();\n $user_id = AuthSam::getUser()->id;\n $users = DB::table('user_login_info')->where('user_id', $user_id)->get()->count();\n if ($users >= 2)\n DB::table('user_login_info')->where('user_id', $user_id)->take(1)->delete();\n $dataLog = [\n 'user_id' => $user_id,\n 'ipaddress' => $request->ip(),\n 'login_day' => date(\"Y-m-d\"),\n ];\n DB::table('user_login_info')->insert($dataLog);\n Cache::flush();\n if(AuthSam::permission_lock()==1) {\n if (AuthSam::permission()) {\n return redirect('/agency/home');\n } else {\n return redirect('/client/F0');\n }\n }else{\n if (AuthSam::permission()) {\n $url = '/agency/home_lock';\n } else {\n $url = '/client/F0_lock';\n }\n session()->forget(['is_login', 'user_id', 'permission', 'subsidy_check_list', 'follow_list']);\n return redirect($url);\n }\n \n } else {\n return redirect('/login')->with('error', 'ユーザー名とパスワードが違います。');\n }\n } catch(Exception $e) {\n return redirect('/login')->with('error', 'ユーザー名とパスワードが違います。');\n }\n \n }", "public function do_login()\n {\n $this->userObject = new User();\n\n // grab the uID of the person signing in\n $uid = $this->userObject->checkUser($_POST['user_email'], $_POST['user_password']);\n\n // if the uID exists\n if ($uid) {\n\n $this->set('message', 'You logged in!');\n\n // grab the array of user-data from the database\n $user = $this->userObject->getUser($uid);\n\n // leave out the password\n unset($user['password']);\n unset($user[4]);\n\n // if (strlen($_SESSION['redirect']i) > 0) { // basically, if someone types in the url with the funciton after,\n // // supposed to redirect people to the pages they want.\n // $view = $_SESSION['redirect'];\n // unset($_SESSION['redirect']);\n // header('Location: ' . BASE_URL . $view);\n\n // make the SESSION key 'user' and set it equal to the aray of user-data\n $_SESSION['user'] = $user;\n\n header('Location: /index.php/');\n\n } else {\n\n $this->set('error', 'Sorry! Looks like something might be messed up with your Username or Password! :p');\n }\n }", "public function loginAction()\r\n\t{\r\n\t\t$this->setSubTitle($this->loginSubTitle);\r\n\t\t\r\n\t\t$this->view->form = new $this->loginFormClassName();\r\n\t\t\r\n\t\t$this->checkAuth();\r\n\t}", "private function _signInRequested()\n {\n if ($this->model->signIn($_POST['username'], $_POST['password'])) {\n $this->utility->redirect('write');\n } else {\n $this->view->display($this->model);\n }\n }", "public function login($request)\n {\n return $this->start()->uri(\"/api/login\")\n ->bodyHandler(new JSONBodyHandler($request))\n ->post()\n ->go();\n }", "public function postLogin()\n {\n $this->validate($this->request, [\n 'username' => 'required',\n 'password' => 'required',\n ]);\n\n if ($this->hasTooManyLoginAttempts($this->request)) {\n return $this->sendLockoutResponse($this->request);\n }\n\n $credentials = $this->request->only('username', 'password');\n\n if ($this->auth->attempt($credentials, $this->request->has('remember'))) {\n return ($this->request->ajax())\n ? response()->json(['success' => true])\n : redirect()->intended($this->redirectPath());\n }\n\n $this->incrementLoginAttempts($this->request);\n\n $errors = ['username' => t('invalid_creds')];\n\n if ($this->request->ajax()) {\n return response()->json(['username' => [t('invalid_creds')]], 422);\n }\n\n return redirect($this->loginPath())\n ->withInput($this->request->only('username', 'remember'))\n ->withErrors([\n 'username' => t('invalid_creds'),\n ]);\n }", "public static function doLogin($request, $response, $args) {\n $username = strtolower($request->getParsedBody()['username']);\n $password = $request->getParsedBody()['password'];\n\n //Check login isn't empty\n if(empty($username) || empty($password)) {\n return self::renderAlert($response, 'login', 'danger', 'Username or password incorrect');\n }\n\n //Check user exist\n $user = DB::getInstance()->get('users', '*', [ 'username' => $username ]);\n if(empty($user)) {\n return self::renderAlert($response, 'login', 'danger', 'Username or password incorrect');\n }\n\n //Check password\n if(!password_verify($password, $user['password'])) {\n return self::renderAlert($response, 'login', 'danger', 'Username or password incorrect');\n }\n\n $_SESSION['MEMBER']['username'] = $username;\n return $response->withHeader('Location', '/')->withStatus(302);\n }", "public function post_signin()\n\t{\n\t\tif(Service\\Validation\\Login::passes(Input::all()))\n\t\t{\n\t\t\tif(Service\\Security::authorize(array('username' => Input::get('username'), 'password' => Input::get('password'))))\n\t\t\t{\n\t\t\t\treturn Redirect::home();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn Redirect::to_route('login')->with_input()->with_errors(new Messages(array(\n\t\t\t\t\t__('login.failed')->get()\n\t\t\t\t)));\n\t\t\t}\n\t\t}\n\n\t\treturn Redirect::to_route('login')->with_input()->with_errors(Service\\Validation::errors());\n\t}", "public function postLogin(Request $request)\n {\n return $this->login($request);\n }", "public function postLogin(Request $request)\n {\n return $this->login($request);\n }", "public function handleUserLogin($event) {\n //Log user login\n $activity = new Activity;\n $activity->activity_type = 'login';\n $activity->actor_id = $event->user->id;\n $activity->actor_type = 'user';\n $activity->activity_data = '';\n $activity->user_agent = $this->request->header('User-Agent');\n $activity->actor_ip = $this->request->ip();\n $activity->save();\n }", "public static function handleLogin()\n\t\t{\n\t\t\t@session_start();\n\t\t\t$logged=$_SESSION['loggedIn'];\n\t\t\t$redirectPage=$_SERVER['REQUEST_URI'];\n\t\t\tif($logged==false){\n\t\t\t\tsession_destroy();\n\t\t\t\tsession_start();\n\t\t\t\tSession::set('redirectPage',$redirectPage);\n\t\t\t\t echo '<script type=\"text/javascript\">';\n\t\t echo 'window.location.href=\"'.$URL.'/login\";';\n\t\t echo '</script>';\n\t\t echo '<noscript>';\n\t\t echo '<meta http-equiv=\"refresh\" content=\"0;url='.$url.'\" />';\n\t\t echo '</noscript>'; \n\t\t\t\texit;\t\n\t\t\t}\t\t\n\t\t\tif (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 3600)) {\n\t\t\t // last request was more than 60 minutes ago\n\t\t\t session_destroy();\n\t\t\t\tsession_start();\n\t\t\t Session::set('redirectPage',$redirectPage);\n\t\t\t echo '<script type=\"text/javascript\">';\n\t\t echo 'window.location.href=\"'.$URL.'/login\";';\n\t\t echo '</script>';\n\t\t echo '<noscript>';\n\t\t echo '<meta http-equiv=\"refresh\" content=\"0;url='.$url.'\" />';\n\t\t echo '</noscript>'; \n\t\t\t\texit;\t\n\t\t\t}\n\t\t\t$_SESSION['LAST_ACTIVITY'] = time(); // update last activity time stamp\n\t\t\t\n\t\t}", "public function login ($request)\n {\n if ($request->getMethod() === 'POST') {\n\n $datas = $this->getParams($request);\n $users = $this->container->get('users.login');\n $user = $this->getNewEntity($datas);\n\n $found_username = array_search($user->username, array_column($users,'username'));\n $found_email = array_search($user->username, array_column($users,'email'));\n\n // Match -> (Username or Email) and Password Ok\n if (\n (strlen($found_username) > 0) &&\n (password_verify($user->password,$users[$found_username]['password'])) ||\n (strlen($found_email) > 0) && \n (password_verify($user->password,$users[$found_email]['password'])) \n ) {\n return $this->openGate($user); \n }\n\n }\n\n // fuction for encrypt new password\n // $this->encrypt('password');die();\n\n $header = $this->getHeaderEntity('login');\n $username = '';\n return $this->renderer->render($this->viewPath . '/login', compact('header', 'username'));\n }", "public function login() {\n\t\tif ($this->request->is('post')) {\n\t\t\tif ($this->Auth->login()) {\n\t\t\t\treturn $this->redirect($this->Auth->redirect());\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(__('Invalid username or password, try again'));\n\t\t\t}\n\t\t}\n\t}", "public function loginUri(Request $request);", "public function login(Request $request)\n {\n //\n }", "public function login();", "public function login();", "private function user_login() {\n\t\t\t// Cross validation if the request method is POST else it will return \"Not Acceptable\" status\n\t\t\tif($this->get_request_method() != \"POST\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\tif(!isset($_POST['password']) && !isset($_POST['email'])) {\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Parameter email and password is required\");\n\t\t\t\t$this->response($this->json($error), 200);\n\t\t\t}\n\t\t\tif(!isset($_POST['email'])) {\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Parameter email is required\");\n\t\t\t\t$this->response($this->json($error), 200);\n\t\t\t}\n\t\t\tif(!isset($_POST['password'])) {\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Parameter password is required\");\n\t\t\t\t$this->response($this->json($error), 200);\n\t\t\t}\n\t\t\t$email = $this->_request['email'];\n\t\t\t$password = $this->_request['password'];\n\t\t\t$hashed_password = sha1($password);\n\t\t\t\t\t\t\t\t\t\t// Input validations\n\t\t\tif(!empty($email) and !empty($password)) {\n\t\t\t\tif(filter_var($email, FILTER_VALIDATE_EMAIL)) {\n\t\t\t\t\t$sql = \"SELECT user_name, user_email, user_phone_no, user_pic, user_address, remember_token\n\t\t\t\t\t\t\t\t\tFROM table_user\n\t\t\t\t\t\t\t\t\tWHERE user_email = '$email'\n\t\t\t\t\t\t\t\t\tAND user_password = '\".$hashed_password.\"'\n\t\t\t\t\t\t\t\t\tLIMIT 1\";\n\t\t\t\t\t$stmt = $this->db->prepare($sql);\n\t\t\t\t\t$stmt->execute();\n\t\t\t\t $results = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n if($stmt->rowCount()=='0') {\n $error = array('status' => \"Failed\", \"msg\" => \"Invalid Email address or Password\");\n $this->response($this->json($error), 200);\n }\n\t\t\t\t\t\t$error = array('status' => \"Success\", \"msg\" => \"Sucessfully Login!\", \"data\" => json_encode($results) );\n\t\t\t\t\t\t$this->response($this->json($error), 200);\n\t\t\t\t}\n\t\t\t} else{\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Fields are required\");\n\t\t\t\t$this->response($this->json($error), 200);\n\t\t\t}\n\t\t\t// If invalid inputs \"Bad Request\" status message and reason\n\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Invalid Email address or Password\");\n\t\t\t$this->response($this->json($error), 200);\n\t\t}", "private function doLogin()\n {\n if (!isset($this->token)) {\n $this->createToken();\n $this->redis->set('cookie_'.$this->token, '[]');\n }\n\n $loginResponse = $this->httpRequest(\n 'POST',\n 'https://sceneaccess.eu/login',\n [\n 'form_params' => [\n 'username' => $this->username,\n 'password' => $this->password,\n 'submit' => 'come on in',\n ],\n ],\n $this->token\n );\n\n $this->getTorrentsFromHTML($loginResponse);\n }", "protected function loginAuthenticate(){\n\n\t\t\n\t}", "public function __handleAuthentication() {\n $allowActions = array('adminLogin');\n\n if(strpos($this->action, 'admin') !== false && !in_array($this->action, $allowActions)) {\n $params = $this->getParams();\n\n if(empty($params['token']) || !$this->Session->check($params['token'])) {\n $this->sendError(API_MSG_INCORRECT_INPUT, API_CODE_NG, API_HTTP_CODE_200);\n }\n }\n }", "public function processLoginAction(Request $request, Application $app)\n {\n // Set the 'user logged in' session to false (default value)\n $_SESSION['isUserLoggedIn'] = false;\n\n // Retrieve user details from the text input (username and password)\n $usernameFromInput = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_STRING);\n $passwordFromInput = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_STRING);\n\n // Retrieve details from Database\n $user = Login::getOneByUsername($usernameFromInput);\n\n // If username from input field is not empty and password is verified\n if ($user) {\n\n // Retrieve details from Database\n $usernameFromDb = $user->getUsername();\n //$passwordFromDb = $user->getPassword();\n\n $isPresent = LoginController::matchUserWithPassword($usernameFromInput, $passwordFromInput);\n $isRole = Login::matchUserWithRole($usernameFromDb);\n\n if ($usernameFromInput != $usernameFromDb) {\n return $app->redirect('/index');\n }\n\n // If username exists, and password matches\n if ($isPresent != null) {\n\n // Store username in 'user' in 'session'\n $app['session']->set('user', array('username' => $usernameFromDb));\n\n // Set the 'user logged in' session to true\n $_SESSION['isUserLoggedIn'] = true;\n\n // If role is assigned to the user, redirect the user to the specific page\n if ($isRole) {\n if ($user->getRole() == 'admin') {\n return $app->redirect('/adminIndex');\n } elseif ($user->getRole() == 'student') {\n return $app->redirect('/studentIndex');\n } elseif ($user->getRole() == 'member') {\n return $app->redirect('/memberIndex');\n }\n }\n }\n }\n\n $argsArray = [\n 'loginError' => 'Wrong Username or Password! Try again!'\n ];\n\n $templateName = 'index';\n return $app['twig']->render($templateName . '.html.twig', $argsArray);\n }", "public function login(Request $request)\n {\n Auth::attempt($request->input());\n echo json_encode(['status' => Auth::check()]);\n }", "public function usersLogin() {\n // login uses its own handle\n $httpLogin = $this->_prepareLoginRequest();\n $url = $this->_appendApiKey($this->uriBase . '/users/login.json');\n $data = array('login' => $this->username, 'password' => $this->password);\n return $this->_processRequest($httpLogin, $url, 'post', $data);\n }", "public function login() {\r\n if ($this->request->is('post')) {\r\n \r\n //If the user is authenticated...\r\n if ($this->Auth->login()) {\r\n \r\n if ($this->isAdmin()) $this->redirect(\"/admin/halls\");\r\n else $this->redirect(\"/halls\");\r\n }\r\n else {\r\n $this->Session->setFlash(__('Invalid username or password, try again'));\r\n }\r\n }\r\n }", "public function doLogin()\n {\n\n //check if all the fields were filled\n if (!Request::checkVars(Request::postData(), array('username', 'password'))) {\n echo json_encode(array(\"swal\" => array(\"title\" => \"Oops!\", \"text\" => \"Complete all the fields!\", \"type\" => \"error\")));\n exit;\n }\n\n //create the user entity with the spcific login data\n $userEntity = new User(array('username' => Request::post('username'), 'password' => Request::post('password'), 'email' => null, 'name' => null));\n\n //check if the user exists and get it as entity if exists\n if (!$userEntity = $this->repository->findUser($userEntity)) {\n echo json_encode(array(\"swal\" => array(\"title\" => \"Oops!\", \"text\" => \"The username does not exist!\", \"type\" => \"error\")));\n exit;\n }\n\n //get the user ID from database\n $userEntity->setAttr('access', $this->repository->getAccessByUsername(Request::post('username')));\n\n //check if the login credentials are correct for login\n if (!$this->repository->checkLogin($userEntity, Request::post('password'))) {\n echo json_encode(array(\"swal\" => array(\"title\" => \"Oops!\", \"text\" => \"The user/email is incorrect!\", \"type\" => \"error\")));\n exit;\n }\n\n $userEntity->setAttr('access', $this->repository->getAccessByUsername(Request::post('username')));\n\n //set the session using the user data\n $this->session->setSession($userEntity);\n\n echo json_encode(\n array(\n \"swal\" => array(\"title\" => \"Success!\", \"text\" => \"You successfully logged in!\", \"type\" => \"success\", \"hideConfirmButton\" => true),\n \"redirect\" => array(\"url\" => BASE_URL . '/index.php?page=home', 'time' => 1)\n )\n );\n }", "public function postLogin()\n\t{\n\t\tif (Auth::attempt(Input::only('email', 'password')))\n\t\t{\n\t\t\treturn Redirect::to('/')->withErrors('You have successfully logged in!');\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Redirect::to('/')->withErrors('Invalid Credentials')->withInput();\n\t\t}\n\n\t}", "function handle_logins()\n{\n if (get_param_integer('httpauth', 0) == 1) {\n require_code('users_inactive_occasionals');\n force_httpauth();\n }\n $username = trim(post_param_string('login_username', ''));\n if (($username != '') && ($username != do_lang('GUEST'))) {\n require_code('users_active_actions');\n handle_active_login($username);\n }\n\n // If it was a log out\n $page = get_param_string('page', ''); // Not get_page_name for bootstrap order reasons\n if (($page == 'login') && (get_param_string('type', '', true) == 'logout')) {\n require_code('users_active_actions');\n handle_active_logout();\n }\n}", "function SubmitLoginDetails()\n\t{\n\t\t// Login logic is handled by Application::CheckAuth method\n\t\tAuthenticatedUser()->CheckAuth();\n\t}", "public function login()\n {\n // make sure request is post\n if( ! SCMUtility::requestIsPost())\n {\n View::make('templates/system/error.php',array());\n return;\n }\n\n $email = SCMUtility::stripTags( (isset($_POST['email'])) ? $_POST['email'] : '' );\n $password = SCMUtility::stripTags( (isset($_POST['password'])) ? $_POST['password'] : '' );\n\n if( ! Session::Auth($email,$password) )\n {\n SCMUtility::setFlashMessage('Invalid email/password.','danger');\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n return;\n }\n\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n }", "public function doLogin(){\n $rules = array(\n 'userid' => 'required|max:30',\n 'password' => 'required',\n );\n $display = array(\n 'userid' => 'User ID',\n 'password' => 'Password'\n );\n\n $validator = \\Validator::make(\\Input::all(), $rules, array(), $display);\n if($validator->fails()) {\n return \\Redirect::back()\n ->withErrors($validator)\n ->withInput(\\Input::all());\n }else{\n $user = User::where('username', '=', \\Input::get('userid'))\n ->first();\n if(isset($user->id)){\n if($user->level < 3) {\n if (\\Hash::check(\\Input::get('password'), $user->password)) {\n \\Session::put('logedin', $user->id);\n \\Session::put('loginLevel', $user->level);\n \\Session::put('nickname', $user->nickname);\n }\n return \\Redirect::nccms('/');\n }else{\n \\Session::flash('error', 'Permission Error.');\n return \\Redirect::nccms('login');\n }\n }else{\n \\Session::flash('error', 'Email/Password Error.');\n return \\Redirect::nccms('login');\n }\n }\n }", "public function login(Request $request) {\n $result = array('status' => false, 'data' => $request->all(), 'messages' => array('success' => '', 'errors' => ''));\n\n return ($request->isMethod('POST')) ? $this->mainController->doLogin($request->all()) : $result;\n }", "public function p_login() {\n $_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n # Hash submitted password so we can compare it against one in the db\n $_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n # Search the db fpr this email and password\n # Retrieve the token if it's available\n $q = \"SELECT token\n FROM users\n WHERE email = '\".$_POST['email'].\"' \n AND password = '\".$_POST['password'].\"'\";\n\n $token = DB::instance(DB_NAME)->select_field($q);\n\n # If we didn't find a matching token in the db, it means login failed\n if(!$token) {\n\n Router::redirect(\"/users/login/error\");\n \n\n # But if we did, login succeeded!\n } else {\n\n \n /* \n Store this token in a cookie using setcookie()\n Important Note: *Nothing* else can echo to the page before setcookie is called\n Not even one single white space.\n param 1 = name of the cookie\n param 2 = the value of the cookie\n param 3 = when to expire\n param 4 = the path of the cookie (a single forward slash sets it for the entire domain)\n */\n setcookie(\"token\", $token, strtotime('+2 weeks'), '/');\n \n\n # Send them to the main page - or wherevr you want them to go\n Router::redirect(\"/\");\n # Send them back to the login page\n }\n }", "public function login() {\n $userName = Request::post('user_name');\n $userPassword = Request::post('user_password');\n if (isset($userName) && isset($userPassword)) {\n // perform the login method, put result (true or false) into $login_successful\n $login_successful = LoginModel::login($userName, $userPassword);\n\n // check login status: if true, then redirect user login/showProfile, if false, then to login form again\n if ($login_successful) {\n //if the user successfully logs in, reset the count\n $userID = Session::get('user_id');\n LoginModel::validLogin($userID);\n Redirect::to('login/loginHome');\n } else {\n Redirect::to('login/index');\n }\n }\n }", "public function action_login()\n {\n if(\\Auth::check())\n {\n \\Response::redirect('admin/dashboard');\n }\n\n // Set validation\n $val = \\Validation::forge('login');\n $val->add_field('username', 'Name', 'required');\n $val->add_field('password', 'Password', 'required');\n\n // Run validation\n if($val->run())\n {\n if(\\Auth::instance()->login($val->validated('username'), $val->validated('password')))\n {\n \\Session::set_flash('success', \\Lang::get('nvadmin.public.login_success'));\n \\Response::redirect('admin/dashboard');\n }\n else\n {\n $this->data['page_values']['errors'] = \\Lang::get('nvadmin.public.login_error');\n }\n }\n else\n {\n $this->data['page_values']['errors'] = $val->show_errors();\n }\n\n // Set templates variables\n $this->data['template_values']['subtitle'] = 'Login';\n $this->data['template_values']['description'] = \\Lang::get('nvadmin.public.login');\n $this->data['template_values']['keywords'] = 'login, access denied';\n }", "public function executeLogin(sfWebRequest $request) {\n $this->getUser()->login();\n $this->forward($request->getParameter('module'), $request->getParameter('action'));\n }", "public function login()\n\t{\n\n\t\tif ( ( $this->get_access_key() === null || $this->get_access_secret() === null ) )\n\t\t{\n echo 'case 1';\n $oauth = new \\OAuth( $this->tokens['consumer_key'], $this->tokens['consumer_secret'] );\n\n $request_token_info = $oauth->getRequestToken( $this->request_token_url, $this->get_callback() );\n\n if ($request_token_info)\n {\n\n $this->set_request_tokens( $request_token_info );\n }\n\n // Now we have the temp credentials, let's get the real ones.\n\n // Now let's get the OAuth token\n\t\t\t\\Response::redirect( $this->get_auth_url() );\n return;\n\t\t}\n\n\t\treturn $this->check_login();\n\t}", "public function doAuthentication();", "function loginHandler($inputs = []) {\n $username = $inputs['username'];\n $password = $inputs['password'];\n $sql = 'SELECT * FROM `admin` WHERE `name` = ? AND password = ?';\n $res = getOne($sql, [$username, $password]);\n if (!$res) {\n formatOutput(false, 'username or password error');\n }\n else{\n $buildingRes = getOne(\"SELECT * FROM `admin_building` WHERE admin_id =?\", [$res['id']]);\n $bid = isset($buildingRes['building_id']) ? $buildingRes['building_id'] : '0';\n setLogin($res['id'],$bid);\n formatOutput(true, 'login success', $res);\n }\n}", "public function onSignin()\n {\n try {\n /*\n * Validate input\n */\n $data = post();\n $rules = [];\n\n $rules['login'] = 'required|email|between:6,255';\n\n $rules['password'] = 'required|between:6,255';\n\n if (!array_key_exists('login', $data)) {\n $data['login'] = post('username', post('email'));\n }\n\n $validation = Validator::make($data, $rules);\n if ($validation->fails()) {\n throw new ValidationException($validation);\n }\n\n /*\n * Authenticate user\n */\n $credentials = [\n 'login' => array_get($data, 'login'),\n 'password' => array_get($data, 'password')\n ];\n\n Event::fire('rainlab.user.beforeAuthenticate', [$this, $credentials]);\n\n $user = Auth::authenticate($credentials, true);\n if ($user->isBanned()) {\n Auth::logout();\n throw new AuthException(/*Sorry, this user is currently not activated. Please contact us for further assistance.*/'rainlab.user::lang.account.banned');\n }\n\n /*\n * Redirect\n */\n if ($redirect = $this->makeRedirection(true)) {\n return $redirect;\n }\n }\n catch (Exception $ex) {\n if (Request::ajax()) throw $ex;\n else Flash::error($ex->getMessage());\n }\n }", "public function executeLogin(sfWebRequest $request)\n {\n //set the referrer used when loggin in.\n $this->getUser()->setReferer($this->getContext()->getActionStack()->getSize() > 1 ? $request->getUri() : $request->getReferer());\n \n $this->form = new sfAuthSigninForm();\n \n if ($request->isMethod('post')) {\n $this->form->bind($request->getParameter('sf_auth_signin'));\n \n if ($this->form->isValid()) {\n $this->getUser()->setFlash('success', $this->getContext()->getI18N()->__('Welcome back :)'));\n \n $referer = $this->getUser()->getReferer($request->getReferer());\n $this->redirectUnless(empty($referer), $referer);\n $this->redirect('@homepage'); \n }\n }\n }", "public function login()\n\t{\n\t\tif ( func_get_args() ) {\n\t\t\t$args = phpSmug::processArgs( func_get_args() );\n\t\t\tif ( array_key_exists( 'EmailAddress', $args ) ) {\n\t\t\t\t// Login with password\n\t\t\t\t$this->request( 'smugmug.login.withPassword', array( 'EmailAddress' => $args['EmailAddress'], 'Password' => $args['Password'] ) );\n\t\t\t} else if ( array_key_exists( 'UserID', $args ) ) {\n\t\t\t\t// Login with hash\n\t\t\t\t$this->request( 'smugmug.login.withHash', array( 'UserID' => $args['UserID'], 'PasswordHash' => $args['PasswordHash'] ) );\n\t\t\t}\n\t\t\t$this->loginType = 'authd';\n\t\t\t\n\t\t} else {\n\t\t\t// Anonymous login\n\t\t\t$this->loginType = 'anon';\n\t\t\t$this->request( 'smugmug.login.anonymously' );\n\t\t}\n\t\t$this->SessionID = $this->parsed_response['Login']['Session']['id'];\n\t\treturn $this->parsed_response ? $this->parsed_response['Login'] : FALSE;\n\t}", "public function login()\n {\n $login = new Login();\n\n $path = '/inloggen';\n if (CSRF::validate() && $login->check()) {\n // try to send the user to the reservation form or sign up for meet the expert page\n $path = Session::get('path');\n unset($_SESSION['path']);\n\n if (empty($path)) {\n $path = '/';\n }\n }\n\n return new RedirectResponse($path);\n }", "public function authenticate()\n\t{\n\t\t# make the call to the API\n\t\t$response = App::make('ApiClient')->post('login', Input::only('email', 'password'));\n\n\t\t# if the user was authenticated\n\t\tif(isset($response['success']))\n\t\t{\t\n\t\t\t# save the returned user object to the session for later use\n\t\t\tUser::startSession($response['success']['data']['user']);\n\n\t\t\t# we got here from a redirect. if they came via a new account registration then reflash the \n\t\t\t# session so we can use the data on the next page load\n\t\t\tif(Session::has('success')) {\n\t\t\t\tSession::reflash();\n\t\t\t}\t\t\t\n\n\t\t\tif(Input::get('redirect') && ! Session::has('ignoreRedirect')) {\n\t\t\t\treturn Redirect::to(Input::get('redirect'));\n\t\t\t}\n\n\t\t\t# and show the profile page\n\t\t\treturn Redirect::to('profile');\t\n\t\t}\n\t\t# auth failed. return to the log in screen and display an error\n\t\telse \n\t\t{ \n\t\t\t# save the API response to some flash data\n\t\t\tSession::flash('login-errors', getErrors($response));\n\n\t\t\t# also flash the input so we can replay it out onto the reg form again\n\t\t\tInput::flash();\n\n\t\t\t# ... and show the log in page again\n\t\t\treturn Redirect::to('login');\n\t\t}\n\t}", "public function login(Request $request)\n {\n $this->validateLogin($request);\n\n $user = Sentinel::authenticateAndRemember($request->only($this->username(), 'password'));\n\n if ($request->ajax()) {\n if (! $user) {\n $response = [\n 'status' => 'error',\n 'message' => __('These credentials do not match our records.')\n ];\n\n return response()->json($response);\n }\n\n $response = [\n 'status' => 'success',\n 'message' => __('Successfull Login'),\n 'user' => $user\n ];\n\n return response()->json($response);\n }\n\n if (! $user) {\n return back()->with('error', __('These credentials do not match our records.'));\n }\n\n AccessLog::add($user);\n\n return redirect(route('shopper.dashboard.home'))->with('success', __('Successfull Login'));\n }", "public function actionLogin()\n {\n \\Yii::$app->response->format = Response::FORMAT_JSON;\n\n if(Yii::$app->request->isPost) {\n\n $model = new LoginForm();\n\n\n if ($model->load(Yii::$app->getRequest()->getBodyParams(), '') && $model->login()) {\n\n return ['status'=> 'success', 'access_token' => Yii::$app->user->identity->getAuthKey()];\n } else {\n\n return ['status' => 'error', 'message' => 'Wrong username or password'];;\n }\n\n }\n\n\n return ['status' => 'wrong', 'message' => 'Wrong HTTP method, POST needed'];\n }", "function memberLoginHandler() {\n global $inputs;\n\n $username = $inputs['username'];\n $password = $inputs['password'];\n $sql = 'select * from `member` where name = ? and password = ?';\n $res = getOne($sql, [$username, $password]);\n\n if (!$res) {\n formatOutput(false, 'username or password error');\n } else {\n setMemberLogin($res['id']);\n formatOutput(true, 'login success', $res);\n }\n}", "public function login(Request $request)\n {\n $this->validateLogin($request); \n\n if ($user = $this->attemptLogin($request)) {\n return $this->sendLoginResponse($request, $user);\n } \n\n return $this->sendFailedLoginResponse($request);\n }", "public function postLogin(Request $request)\n {\n $this->validate($request, [\n 'email' => 'required|email',\n 'password' => 'required',\n ]);\n\n $credentials = $request->all();\n $remember = false;\n\n if(array_key_exists('remember', $credentials)){\n $remember = true;\n }\n\n try {\n if($user = Sentinel::authenticate($credentials, $remember)){\n Sentinel::login($user);\n return redirect()->route('admin.dashboard');\n }\n Session::flash('message', \"Your email/password combination do not match!\");\n return redirect()->back();\n\n } catch(NotActivatedException $e) {\n Session::flash('message', \"Your account has not been activated yet.\");\n return redirect()->back();\n } catch(ThrottlingException $e) {\n $min = intval($e->getDelay() / 60);\n $timeToGo = $min . ':' . str_pad(($e->getDelay() % 60), 2, '0', STR_PAD_LEFT);\n Session::flash('message', \"Your IP is blocked, You will have to wait \". $timeToGo . \" minutes\");\n return redirect()->back();\n }\n\n }", "public function LoginCheck()\n {\n $protocol = Yii::app()->params['protocol'];\n $servername = Yii::app()->request->getServerName();\n $user = Yii::app()->session['username'];\n if (empty($user)) {\n $returnUrl = $protocol . $servername . Yii::app()->homeUrl;\n $this->redirect($returnUrl);\n }\n }", "public function loginProcess(UserLoginRequest $request)\n {\n $processReaction = $this->userEngine->processLogin($request->all());\n\n return __processResponse($processReaction, [\n 1 => __('Welcome, you are logged in successfully.'),\n 2 => __('Authentication failed. Please check your \n email/password & try again.'),\n ], [], true);\n }", "abstract public function loginAction(Celsus_Parameters $parameters, Celsus_Response_Model $responseModel);", "public function postLogin(Request $request)\n {\n $backToLogin = redirect()->route('admin-login')->withInput();\n $findUser = Sentinel::findByCredentials(['login' => $request->input('email')]);\n\n\n // If we can not find user based on email...\n if (! $findUser) {\n flash()->error('Wrong email or username!');\n\n return $backToLogin;\n }\n\n try {\n $remember = (bool) $request->input('remember_me');\n // If password is incorrect...\n if (! Sentinel::authenticate($request->all(), $remember)) {\n flash()->error('Wrong email or username!');\n\n return $backToLogin;\n }\n\n if (strtolower(Sentinel::check()->roles[0]->slug) == 'cro') {\n flash()->error('You Have No Access!');\n Sentinel::logout();\n return $backToLogin;\n }\n\n $log['description'] = 'A user log in';\n $insertLog = new LogActivity();\n $insertLog->insertNewLogActivity($log);\n\n flash()->success('Login success!');\n //return redirect()->route('admin-dashboard');\n return redirect()->route('admin-index-event');\n } catch (ThrottlingException $e) {\n\n $log['description'] = 'A user login failed because too many attempts';\n $insertLog = new LogActivity();\n $insertLog->insertNewLogActivity($log);\n\n flash()->error('Too many attempts!');\n } catch (NotActivatedException $e) {\n flash()->error('Please activate your account before trying to log in.');\n } catch (\\Exception $e) {\n\n $log['description'] = $e->getMessage().' '.$e->getFile().' on line:'.$e->getLine();\n $insertLog = new LogActivity();\n $insertLog->insertNewLogActivity($log);\n \n }\n\n return $backToLogin;\n }", "public function login() {\r\n if (!empty($_POST)) {\r\n $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_STRING);\r\n $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_STRING);\r\n\r\n $hash = hash('sha512', $password . Configuration::USER_SALT);\r\n unset($password);\r\n\r\n $user = UserModel::getByUsernameAndPasswordHash($username, $hash);\r\n unset($hash);\r\n\r\n if ($user) {\r\n Session::set('user_id', $user->user_id);\r\n Session::set('username', $username);\r\n Session::set('ip', filter_input(INPUT_SERVER, 'REMOTE_ADDR'));\r\n Session::set('ua', filter_input(INPUT_SERVER, 'HTTP_USER_AGENT', FILTER_SANITIZE_STRING));\r\n\r\n Misc::redirect('');\r\n } else {\r\n $this->set('message', 'Nisu dobri login parametri.');\r\n sleep(1);\r\n }\r\n }\r\n }" ]
[ "0.7669814", "0.74851155", "0.7442612", "0.72329086", "0.7112905", "0.7103887", "0.70698494", "0.7055757", "0.7029516", "0.6985367", "0.6953118", "0.69134593", "0.6885101", "0.687445", "0.6863917", "0.6856037", "0.6848747", "0.684784", "0.68152297", "0.680864", "0.68045515", "0.67792654", "0.6771233", "0.67666423", "0.67659724", "0.67419285", "0.67255026", "0.66824514", "0.66804695", "0.6661723", "0.66615164", "0.66599214", "0.6653103", "0.6650553", "0.664819", "0.66480184", "0.66423595", "0.66292566", "0.6616117", "0.66158235", "0.6614166", "0.66131216", "0.66108733", "0.66001797", "0.6598898", "0.65979165", "0.65857095", "0.6582395", "0.65822494", "0.65788734", "0.657026", "0.65687394", "0.65674514", "0.6563829", "0.6560272", "0.6560272", "0.65553254", "0.6548969", "0.6548335", "0.65271837", "0.6519302", "0.65027267", "0.64946365", "0.64946365", "0.64943993", "0.64915204", "0.64838105", "0.6480556", "0.6471744", "0.6466453", "0.64642614", "0.64604133", "0.6456966", "0.64559203", "0.6455759", "0.64528894", "0.64402467", "0.6433877", "0.6431453", "0.64256763", "0.6411047", "0.6408026", "0.6405608", "0.64052635", "0.64042723", "0.64006245", "0.63940746", "0.6390829", "0.6385385", "0.63831717", "0.63792276", "0.63753724", "0.6374533", "0.6369184", "0.6369093", "0.63690686", "0.6366873", "0.6366771", "0.6365373", "0.6362475", "0.635908" ]
0.0
-1
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() != null;\n }", "public function authorize(): bool\n {\n return $this->user() !== null;\n }", "public function authorize(): bool\n {\n return $this->isUserAuthorised();\n }", "public function authorize()\n {\n return !is_null($this->user());\n }", "public function authorize()\n {\n return request()->user() != null;\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 // this was my best guess\n return $this->user()->id === $this->route('user')->id;\n }", "public function isAuthorized()\n {\n return $this->cookieHelper->requestCookieExists('auth');\n }", "public function authorize()\n {\n return !empty(Auth::user()) && ($this->user()->isAnAdmin() || $this->user()->hasRole('user'));\n }", "public function authorize()\n {\n $originAccount = Account::find($this->get('origin_account_id'));\n return $originAccount->user_id == auth()->id();\n }", "public function authorize()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default:\n return $this->user()->type == 'App\\\\Staff' ? true : false;\n break;\n }\n\n return false;\n }", "public function authorize()\n {\n if($this->user()->role == \"admin\" || $this->user()->id == $this->request->get('author_id')) return true;\n else return false;\n }", "public function authorize()\n {\n if(\\Auth::guest())\n {\n return false;\n } else {\n // Action 1 - Check if authenticated user is a superadmin\n if(\\Auth::User()->hasRole('superadmin'))\n return true;\n\n // Action 2 - Find UUID from request and compare to authenticated user\n $user = User::where('uuid', $this->user_uuid)->firstOrFail();\n if($user->id == \\Auth::User()->id)\n return true;\n\n // Action 3 - Fail request\n return false;\n }\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 }", "public function isAuthorized(): bool\n {\n // TODO: implement authorization check\n\n return true;\n }", "public function isAuthorized() {}", "public function authorize()\n {\n return request()->loggedin_role === 1;\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 authorize()\n {\n $accessor = $this->user();\n\n return $accessor->isAdmin() || $accessor->hasKey('post-users');\n }", "public function authorize()\n {\n $user = \\Auth::getUser();\n\n return $user->user_type == 1;\n }", "public function authorize()\n {\n return auth()->check() ? true : false;\n }", "public function authorize()\n {\n return auth()->check() ? true : false;\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 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 authorize()\n {\n $user = JWTAuth::parseToken()->authenticate();\n $organisation = Organization::findOrFail($this->route('organizations'));\n return $organisation->admin_id == $user->id;\n }", "public function authorize()\n {\n if($this->user()->isAdmin())\n return true;\n\n return false;\n }", "function isAuthorized()\n {\n $authorized = parent::isAuthorized();\n return $authorized;\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 $this->user = User::query()->find($this->route()->parameter('user'));\n $this->merge(['verified' => $this->get('verified') ? 1 : 0]);\n\n return true;\n }", "public function authorize()\n {\n $user = request()->user('api');\n return $user->isSenior();\n }", "public function authorize()\n {\n return is_client_or_staff();\n }", "public function isAuthorized() {\n\t\treturn true;\n\t}", "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "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 isAuthorized()\n\t{\n\t\t$sessionVal = Yii::$app->session->get($this->sessionParam);\n\t\treturn (!empty($sessionVal));\n\t}", "public function authorize() {\n\n return auth()->user() && auth()->user()->username === $this->user->username;\n }", "public function authorize()\n {\n return session('storefront_key') || request()->session()->has('api_credential');\n }", "public function authorize()\n {\n if ($this->user()->isAdmin($this->route('organization'))) {\n return true;\n }\n\n return false;\n\n }", "public function authorize()\n {\n return $this->user() && $this->user()->role === Constants::USER_ROLE_ADMIN;\n }", "public function authorized()\n {\n return $this->accepted && ! $this->test_mode;\n }", "public function authorize()\n {\n if (!auth()->check()) {\n return false;\n }\n return true;\n }", "public function hasAuthorized() {\n return $this->_has(1);\n }", "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 /*\n if ($this->loan_id && is_numeric($this->loan_id) && $loan = Loan::whereId($this->loan_id)->first()) {\n // loan_id belongs to requesting user\n return $loan && $this->user()->id == $loan->user_id;\n }\n */\n return true; // let rules handle it\n }", "public function authorize()\n {\n //TODO Authorice Request (without Controller)\n return auth()->user()->role_id === 1;\n }", "public function authorize(): bool\n {\n return $this->user()->id === $this->article->user->id;\n }", "public function authorize()\n {\n return $this->user()->rol == 'admin' ? true : false;\n }", "public function isAuth()\n {\n return $this->session->hasAuthorisation();\n }", "public function authorize()\n {\n if(Auth::user())\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public function authorize()\n {\n //Check if user is authorized to access this page\n if($this->user()->authorizeRoles(['admin', 'hrmanager', 'hruser'])) {\n return true;\n } else {\n return false;\n }\n }", "public function authorize()\n {\n return \\Auth::check() ? true : false;\n }", "public function authorize()\n\t{\n\t\treturn true; //no user checking\n\t}", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "public function authorize()\n {\n return !empty(Auth::user());\n }", "public function authorize()\n {\n return $this->groupHasUser() || $this->hasSeller();\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 isAuthorized() {\n\t\t\n\t}", "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 if (!\\Auth::guest()) {\n $user = \\Auth::getUser();\n if ($user->type == User::USER_TYPE_ADMIN) {\n return true;\n }\n }\n\n return false;\n }", "public function authorize()\n {\n if (auth()->user()->is_admin) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n if ($this->user()->is_admin){\n return true;\n }\n else if ($this->method == \"PUT\"){\n if ($this->user()->id == $this->input('id')){\n return true;\n }\n }\n return false;\n }", "public function authorize(): bool\n {\n return parent::authorize() && (int)$this->playList->user_id === auth()->user()->id;\n }", "public function authorize() {\n\t\treturn $this->user()->is_admin;\n\t}", "public function authorize()\n {\n if (Auth::check()) {\n \n return true;\n \n }\n return false;\n }", "public function authorize()\n {\n $user = Auth::user();\n return $user && $user->rol == 'admin';\n }", "public function authorize()\n\t{\n\t\t// Nutzern akzeptiert werden\n\t\tif(Auth::check())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function authorize()\n {\n // TODO: Check if has business\n return session()->has('id');\n }", "public function authorize()\n {\n if (auth()->check() && auth()->user()->isAdmin()) {\n return true;\n }\n\n return false;\n }", "public function authorize()\n {\n return $this->auth->check();\n }", "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 if (auth()->user()->isAdmin() || auth()->user()->isCustomer()) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->container['auth']->check();\n }", "function isAuthorized($request) {\n return true;\n }", "public function authorize()\n {\n return Auth::guest() || isMember();\n }", "public function authorize()\n {\n return auth()->user() && auth()->user()->isCeo();\n }", "public function authorize(): bool\n {\n $deckId = $this->request->get('deck_id');\n $userId = Deck::whereKey($deckId)->value('user_id');\n\n return $userId === user()->id;\n }", "public function authorize()\n {\n return Auth::check() && Auth::user()->is_contractor;\n }", "public function authorize()\n {\n return TRUE;\n }", "public function authorize()\n {\n $user = User::find($this->id);\n\n if (!$user) {\n $user = User::where('no_ahli', $this->no_ahli)->first();\n }\n if ($user && $user->id == auth()->user()->id) return true;\n if (auth()->user()->is('admin')) return true;\n\n return false;\n }", "public function authorize()\n {\n # if it's false, it will rejected\n return true;\n }", "public function authorize()\n {\n $isValid = auth()->user()->is($this->route('task')->attempt->checklist->owner);\n\n return $isValid;\n }", "public function authorize()\n {\n $user = Auth::user();\n\n return ($user->getRole() == 'admin');\n }", "public function is_authorized() {\n\t\t$authorized = true;\n\t\tif ( $this->is_access_token_expired() ) {\n\t\t\t$authorized = false;\n\t\t}\n\n\t\treturn $authorized;\n\t}", "public function authorize()\n {\n $user = User::findOrFail($this->route('id'));\n\n return $user->hasRole('admin') || $user->hasRole('teacher');\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 isAuthorized() {\n\t\treturn (bool)$this->_storage->hasData();\n\t}", "public function authorize()\n {\n $idExpense = $this->input('expense');\n $expense = Expense::find($idExpense);\n\n return $expense && $this->user()->id == $expense->user_id;\n }", "public function authorize()\n {\n // User system not implemented\n return true;\n }", "public function authorize() : bool\n {\n // TODO check request to xhr in middleware\n return true;\n }", "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 $user = $this->findFromUrl('user');\n return $this->user()->can('update', $user);\n }", "public function authorize()\n {\n $user = Auth::user();\n $orderElement = OrderElement::find($this->input(\"order_element_id\"));\n $order = $orderElement->order;\n\n if ($user->id == $order->user_id) {\n return true;\n } else {\n return false;\n }\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()\n {\n if (session()->has('user'))\n {\n $participantController = new ParticipantController();\n\n return !$participantController->isParticipating($this->input('id_user'), $this->input('id_event'));\n }\n else\n {\n return false;\n }\n }", "public function authorize()\n {\n return (Auth::user()->allowSuperAdminAccess || Auth::user()->allowAdminAccess);\n }" ]
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.7891453", "0.7890965", "0.7862504", "0.78414804", "0.78414804", "0.7837965", "0.78248763", "0.7812292", "0.7809632", "0.77928597", "0.7788316", "0.7781619", "0.77815884", "0.7763308", "0.7754035", "0.7717961", "0.7717961", "0.77171147", "0.77138597", "0.7705001", "0.7693082", "0.7692783", "0.76915383", "0.76909506", "0.76733255", "0.7667128", "0.7665592", "0.7656238", "0.7650853", "0.764326", "0.76431626", "0.76431614", "0.7635147", "0.76311624", "0.76294273", "0.7627076", "0.76207024", "0.76207024", "0.76139116", "0.76036394", "0.76035625", "0.76035625", "0.76032084", "0.7602515", "0.76007926", "0.75971127", "0.7588128", "0.7586303", "0.7581912", "0.7563037", "0.7554785", "0.75526226", "0.755171", "0.75436753", "0.75432944", "0.7540682", "0.7538806", "0.75280696", "0.751548", "0.75149626", "0.7501161", "0.74959517", "0.74956346", "0.74911124", "0.7489147", "0.74858016", "0.748033", "0.7478443", "0.7472642", "0.7472576", "0.7465409", "0.7464371", "0.74630046", "0.7462218", "0.7461453", "0.7449168", "0.74399257", "0.74358094", "0.7433247", "0.7432659", "0.74248093" ]
0.0
-1
Get the validation rules that apply to the request.
public function rules() { Session::flash('id', (int)$this->request->get('id')); Session::flash('activityType', 'public'); $event = new Event(); $event = $event->findOrFail($this->request->get('id')); return [ 'tickets' => 'required|numeric|in:'.implode(',', array_combine($event->publicTicketSelection(), $event->publicTicketSelection())), 'voorwaarden' => 'accepted', 'id' => 'required|integer', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the schema\n $schema = $this->getSchema();\n\n return $schema->getRules($this);\n }", "public function rules()\n {\n return $this->validationRules;\n }", "public function rules()\n {\n $rules = [];\n switch ($this->getMethod()):\n case \"POST\":\n $rules = [\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"PUT\":\n $rules = [\n 'id' => 'required|numeric',\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"DELETE\":\n $rules = [\n 'id' => 'required|numeric'\n ];\n break;\n endswitch;\n return $rules;\n }", "public static function getRules()\n {\n return (new static)->getValidationRules();\n }", "public function getRules()\n {\n return $this->validation_rules;\n }", "public function getValidationRules()\n {\n return [];\n }", "public function getValidationRules() {\n return [\n 'email' => 'required|email',\n 'name' => 'required|min:3',\n 'password' => 'required',\n ];\n }", "public function rules()\n {\n if($this->isMethod('post')){\n return $this->post_rules();\n }\n if($this->isMethod('put')){\n return $this->put_rules();\n }\n }", "public function rules()\n {\n $rules = [];\n\n // Validation request for stripe keys for stripe if stripe status in active\n if($this->has('stripe_status')){\n $rules[\"api_key\"] = \"required\";\n $rules[\"api_secret\"] = \"required\";\n $rules[\"webhook_key\"] = \"required\";\n }\n\n if($this->has('razorpay_status')){\n $rules[\"razorpay_key\"] = \"required\";\n $rules[\"razorpay_secret\"] = \"required\";\n $rules[\"razorpay_webhook_secret\"] = \"required\";\n }\n\n // Validation request for paypal keys for paypal if paypal status in active\n if($this->has('paypal_status')){\n $rules[\"paypal_client_id\"] = \"required\";\n $rules[\"paypal_secret\"] = \"required\";\n $rules[\"paypal_mode\"] = \"required_if:paypal_status,on|in:sandbox,live\";\n }\n\n\n return $rules;\n }", "protected function getValidationRules()\n {\n $rules = [\n 'title' => 'required|min:3|max:255',\n ];\n\n return $rules;\n }", "public function getRules()\n\t{\n\t\t$rules['user_id'] = ['required', 'exists:' . app()->make(User::class)->getTable() . ',id'];\n\t\t$rules['org_id'] = ['required', 'exists:' . app()->make(Org::class)->getTable() . ',id'];\n\t\t$rules['role'] = ['required', 'string', 'in:' . implode(',', Static::ROLES)];\n\t\t$rules['scopes'] = ['nullable', 'array'];\n\t\t$rules['ended_at'] = ['nullable', 'date'];\n\t\t$rules['photo_url'] = ['nullable', 'string'];\n\n\t\treturn $rules;\n\t}", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n case 'PUT':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n }\n }", "public function rules()\n {\n\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'min:6|same:password',\n 'role_id' => 'required'\n ];\n break;\n case 'PUT':\n case 'PATCH':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n\n default:\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n }\n return $rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n switch($this->method()) {\n case 'GET':\n return [];\n case 'POST':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'DELETE':\n return [];\n default:break;\n }\n \n }", "public function rules($request) {\n $function = explode(\"@\", $request->route()[1]['uses'])[1];\n return $this->getRouteValidateRule($this->rules, $function);\n // // 获取请求验证的函数名\n // // ltrim(strstr($a,'@'),'@')\n // if (count(explode(\"@\", Request::route()->getActionName())) >= 2) {\n // $actionFunctionName = explode(\"@\", Request::route()->getActionName()) [1];\n // }\n\n // // 取配置并返回\n // if (isset($this->rules[$actionFunctionName])) {\n // if (is_array($this->rules[$actionFunctionName])) {\n // return $this->rules[$actionFunctionName];\n // }\n // else {\n // return $this->rules[$this->rules[$actionFunctionName]];\n // }\n // }\n // else {\n // return [];\n // }\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_MovieID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CountryID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_BroadCastDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t\t'_CreatedDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n if ($this->method() === 'POST') {\n return $this->rulesForCreating();\n }\n\n return $this->rulesForUpdating();\n }", "public function rules()\n {\n $validation = [];\n if ($this->method() == \"POST\") {\n $validation = [\n 'name' => 'required|unique:users',\n 'email' => 'required|unique:users|email',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'required|min:6',\n 'roles' => 'required',\n ];\n } elseif ($this->method() == \"PUT\") {\n $validation = [\n 'name' => 'required|unique:users,name,' . $this->route()->parameter('id') . ',id',\n 'email' => 'required|unique:users,email,' . $this->route()->parameter('id') . ',id|email',\n 'roles' => 'required',\n ];\n\n if ($this->request->get('change_password') == true) {\n $validation['password'] = 'required|min:6|confirmed';\n $validation['password_confirmation'] = 'required|min:6';\n }\n }\n\n return $validation;\n }", "public function rules()\n {\n $data = $this->request->all();\n $rules['username'] = 'required|email';\n $rules['password'] = 'required'; \n\n return $rules;\n }", "protected function getValidationRules()\n {\n $class = $this->model;\n\n return $class::$rules;\n }", "public function rules()\n {\n $rules = $this->rules;\n\n $rules['fee'] = 'required|integer';\n $rules['phone'] = 'required|min:8|max:20';\n $rules['facebook'] = 'required|url';\n $rules['youtube'] = 'required|url';\n $rules['web'] = 'url';\n\n $rules['requestgender'] = 'required';\n $rules['serviceaddress'] = 'required|max:150';\n $rules['servicetime'] = 'required|max:150';\n $rules['language'] = 'required|max:150';\n $rules['bust'] = 'required|max:100|integer';\n $rules['waistline'] = 'required|max:100|integer';\n $rules['hips'] = 'required|max:100|integer';\n $rules['motto'] = 'max:50';\n\n return $rules;\n }", "protected function getValidRules()\n {\n return $this->validRules;\n }", "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n case 'PUT':\n {\n return [\n 'name' => 'required',\n ];\n }\n default:break;\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n {\n return [\n 'mobile' => ['required','max:11','min:11'],\n 'code' => ['required','max:6','min:6'],\n 'avatar' => ['required'],\n 'wx_oauth' => ['required'],\n 'password' => ['nullable','min:6','max:20']\n ];\n }\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default: {\n return [];\n }\n }\n }", "public function rules()\n {\n switch ($this->getRequestMethod()) {\n case 'index':\n return [\n 'full_name' => 'nullable|string',\n 'phone' => 'nullable|string',\n ];\n break;\n case 'store':\n return [\n 'crm_resource_id' => 'required|exists:crm_resources,id',\n 'channel' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$channel),\n 'call_status' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$call_statuses),\n ];\n break;\n default:\n return [];\n break;\n }\n }", "public function rules()\n {\n //With password\n if(request('password') || request('password_confirmation')) {\n return array_merge($this->passwordRules(), $this->defaultRules());\n }\n //Without password\n return $this->defaultRules();\n }", "public function rules()\n {\n $rules = [\n '_token' => 'required'\n ];\n\n foreach($this->request->get('emails') as $key => $val) {\n $rules['emails.'.$key] = 'required|email';\n }\n\n return $rules;\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CoverImageID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_TrackID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Status' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Rank' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CreateDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n { \n return $this->rules;\n }", "public function getValidationRules()\n {\n if (method_exists($this, 'rules')) {\n return $this->rules();\n }\n\n $table = $this->getTable();\n $cacheKey = 'validate.' . $table;\n\n if (config('validate.cache') && Cache::has($cacheKey)) {\n return Cache::get($cacheKey);\n }\n\n // Get table info for model and generate rules\n $manager = DB::connection()->getDoctrineSchemaManager();\n $details = $manager->listTableDetails($table);\n $foreignKeys = $manager->listTableForeignKeys($table);\n\n $this->generateRules($details, $foreignKeys);\n\n if (config('validate.cache')) {\n Cache::forever($cacheKey, $this->rules);\n }\n\n return $this->rules;\n }", "public function getValidationRules()\n {\n $rules = $this->getBasicValidationRules();\n\n if (in_array($this->type, ['char', 'string', 'text', 'enum'])) {\n $rules[] = 'string';\n if (in_array($this->type, ['char', 'string']) && isset($this->arguments[0])) {\n $rules[] = 'max:' . $this->arguments[0];\n }\n } elseif (in_array($this->type, ['timestamp', 'date', 'dateTime', 'dateTimeTz'])) {\n $rules[] = 'date';\n } elseif (str_contains(strtolower($this->type), 'integer')) {\n $rules[] = 'integer';\n } elseif (str_contains(strtolower($this->type), 'decimal')) {\n $rules[] = 'numeric';\n } elseif (in_array($this->type, ['boolean'])) {\n $rules[] = 'boolean';\n } elseif ($this->type == 'enum' && count($this->arguments)) {\n $rules[] = 'in:' . join(',', $this->arguments);\n }\n\n return [$this->name => join('|', $rules)];\n }", "public function rules()\n {\n $rules = [];\n if ($this->isMethod('post')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n } elseif ($this->isMethod('put')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n }\n return $rules;\n }", "public function validationRules()\n {\n return [];\n }", "public function rules()\n {\n $rules = $this->rules;\n if(Request::isMethod('PATCH')){\n $rules['mg_name'] = 'required|min:2,max:16';\n }\n return $rules;\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_EventID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_SourceID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_HasEvent' => array(\n\t\t\t\t'inArray' => array('values' => array(self::HASEVENT_0, self::HASEVENT_1),),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n $rules = [];\n switch ($this->method()){\n case 'GET':\n $rules['mobile'] = ['required', 'regex:/^1[3456789]\\d{9}$/'];\n break;\n case 'POST':\n if($this->route()->getActionMethod() == 'sms') {\n $rules['area_code'] = ['digits_between:1,6'];\n if(in_array($this->get('type'), ['signup', 'reset_pay_pwd'])) {\n $rules['mobile'] = ['required', 'digits_between:5,20'];\n if($this->get('type') == 'signup' && !$this->get('area_code')) {\n $this->error('请选择区号');\n }\n }\n $rules['type'] = ['required', Rule::in(\\App\\Models\\Captcha::getSmsType())];\n }\n break;\n }\n return $rules;\n }", "public function rules()\n {\n if ($this->isMethod('post')) {\n return $this->createRules();\n } elseif ($this->isMethod('put')) {\n return $this->updateRules();\n }\n }", "public function rules()\n {\n $rules = [\n 'first_name' => ['required'],\n 'birthdate' => ['required', 'date', 'before:today'],\n ];\n\n if (is_international_session()) {\n $rules['email'] = ['required', 'email'];\n }\n\n if (should_collect_international_phone()) {\n $rules['phone'] = ['phone'];\n }\n\n if (is_domestic_session()) {\n $rules['phone'] = ['required', 'phone'];\n }\n\n return $rules;\n }", "public function rules()\n {\n dd($this->request->get('answer'));\n foreach ($this->request->get('answer') as $key => $val)\n {\n $rules['answer.'.$key] = 'required';\n }\n\n return $rules;\n }", "public function rules()\n {\n return static::$rules;\n }", "function getRules() {\n\t\t$fields = $this->getFields();\n\t\t$allRules = array();\n\n\t\tforeach ($fields as $field) {\n\t\t\t$fieldRules = $field->getValidationRules();\n\t\t\t$allRules[$field->getName()] = $fieldRules;\n\t\t}\n\n\t\treturn $allRules;\n\t}", "public static function getValidationRules(): array\n {\n return [\n 'name' => 'required|string|min:1|max:255',\n 'version' => 'required|float',\n 'type' => 'required|string',\n ];\n }", "public function rules()\n {\n $rules = [\n 'name' => 'required',\n 'phone' => 'required|numeric',\n 'subject' => 'required',\n 'message' => 'required',\n 'email' => 'required|email',\n ];\n\n return $rules;\n }", "public function getValidationRules(): array\n {\n return [\n 'email_address' => 'required|email',\n 'email_type' => 'nullable|in:html,text',\n 'status' => 'required|in:subscribed,unsubscribed,cleaned,pending',\n 'merge_fields' => 'nullable|array',\n 'interests' => 'nullable|array',\n 'language' => 'nullable|string',\n 'vip' => 'nullable|boolean',\n 'location' => 'nullable|array',\n 'location.latitude' => ['regex:/^[-]?(([0-8]?[0-9])\\.(\\d+))|(90(\\.0+)?)$/'], \n 'location.longitude' => ['regex:/^[-]?((((1[0-7][0-9])|([0-9]?[0-9]))\\.(\\d+))|180(\\.0+)?)$/'],\n 'marketing_permissions' => 'nullable|array',\n 'tags' => 'nullable|array'\n ];\n }", "protected function getValidationRules()\n {\n return [\n 'first_name' => 'required|max:255',\n 'last_name' => 'required|max:255',\n 'email' => 'required|email|max:255',\n 'new_password' => 'required_with:current_password|confirmed|regex:' . config('security.password_policy'),\n ];\n }", "public function rules()\n {\n // get 直接放行\n if( request()->isMethod('get') ){\n return []; // 规则为空\n }\n\n // 只在post的时候做验证\n return [\n 'username' => 'required|min:2|max:10', \n 'password' => 'required|min:2|max:10', \n 'email' => 'required|min:2|max:10|email', \n 'phoneNumber' => 'required|min:2|max:10', \n\n ];\n }", "public function rules()\n {\n\n $rules = [\n 'id_tecnico_mantenimiento' => 'required',\n 'id_equipo_mantenimiento' => 'required'\n ];\n\n if ($this->request->has('status')) {\n $rules['status'] = 'required';\n }\n\n if ($this->request->has('log_mantenimiento')) {\n $rules['log_mantenimiento'] = 'required';\n }\n\n return $rules;\n }", "public function rules()\n {\n $this->buildRules();\n return $this->rules;\n }", "public function rules()\n {\n $rules = [];\n\n if ($this->isUpdate() || $this->isStore()) {\n $rules = array_merge($rules, [\n 'name' => 'required|string',\n 'email' => 'email',\n 'password' => 'confirmed|min:6',\n\n ]);\n }\n\n if ($this->isStore()) {\n $rules = array_merge($rules, [\n\n ]);\n }\n\n if ($this->isUpdate()) {\n $rules = array_merge($rules, [\n ]);\n }\n\n return $rules;\n }", "public function rules()\n {\n switch (true) {\n case $this->wantsToList():\n $rules = $this->listRules;\n break;\n case $this->wantsToStore():\n $rules = $this->storeRules;\n break;\n case $this->wantsToUpdate():\n $this->storeRules['email'] = 'required|email|between:5,100|unique:users,email,' . $this->route('administrators');\n\n $rules = $this->storeRules;\n break;\n default:\n $rules = [];\n }\n\n return $rules;\n }", "public function rules()\n {\n if($this->isMethod('post')) {\n return $this->storeRules();\n }\n else if($this->isMethod('put') || $this->isMethod('patch')){\n return $this->updateRules();\n }\n }", "abstract protected function getValidationRules();", "public function rules()\n\t{\n\t\treturn ModelHelper::getRules($this);\n\t}", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return $this->getPostRules();\n case 'PUT':\n return $this->getPutRules();\n }\n }", "public function rules()\n {\n $rules = [\n 'name' => 'required|string|min:2',\n 'email' => \"required|email|unique:users,email, {$this->request->get('user_id')}\",\n 'role_id' => 'required|numeric',\n 'group_id' => 'required|numeric',\n ];\n\n if ($this->request->has('password')){\n $rules['password'] = 'required|min:6';\n }\n\n return $rules;\n }", "public function rules()\n {\n if($this->method() == 'POST')\n {\n return [\n 'reason'=>'required',\n 'date_from'=>'required',\n 'date_to'=>'required',\n 'attachment'=>'required',\n ];\n }\n }", "public function rules()\n {\n $method = $this->method();\n if ($this->get('_method', null) !== null) {\n $method = $this->get('_method');\n }\n // $this->offsetUnset('_method');\n switch ($method) {\n case 'DELETE':\n case 'GET':\n break; \n case 'POST':\n $mailRules = \\Config::get('database.default').'.users';\n break;\n case 'PUT':\n $user = $this->authService->authJWTUserForm();\n $mailRules = \\Config::get('database.default').'.users,email,'.$user->getKey();\n break;\n case 'PATCH':\n break;\n default:\n break;\n }\n \n return [\n 'name' => 'required|string|max:256',\n 'email' => 'required|string|email|max:255|unique:'.$mailRules,\n 'password' => 'required|string|min:3',\n ];\n }", "public function rules() {\n $rule = [\n 'value' => 'bail|required',\n ];\n if ($this->getMethod() == 'POST') {\n $rule += ['type' => 'bail|required'];\n }\n return $rule;\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n case 'PUT':\n case 'PATCH': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n default:\n break;\n }\n\n return [\n //\n ];\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST':\n case 'PUT':\n case 'PATCH': {\n return [\n 'name' => 'required|string|max:255',\n 'iso_code_2' => 'required|string|size:2',\n 'iso_code_3' => 'required|string|size:3',\n ];\n }\n default:\n return [];\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n return [];\n case 'POST':\n return [\n 'name' => 'required|string',\n 'lastName' => 'string',\n 'gender' => 'boolean',\n 'avatar' => 'sometimes|mimes:jpg,png,jpeg|max:3048'\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'oldPassword' => 'required|string',\n 'newPassword' => 'required|string',\n ];\n default:\n break;\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n {\n return [\n 'validation' => [\n 'accepted'\n ]\n ];\n }\n case 'POST':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'published_at_time' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n 'unpublished_time' => [\n 'nullable',\n ],\n ];\n }\n case 'PUT':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n ];\n }\n case 'PATCH':\n {\n return [];\n }\n default:\n break;\n }\n }", "public function rules()\n {\n if (in_array($this->method(), ['PUT', 'PATCH'])) {\n $user = User::findOrFail(\\Request::input('id'))->first();\n\n array_forget($this->rules, 'email');\n $this->rules = array_add($this->rules, 'email', 'required|email|max:255|unique:users,email,' . $user->id);\n }\n\n return $this->rules;\n }", "public function rules()\n {\n $method = explode('@', $this->route()->getActionName())[1];\n return $this->get_rules_arr($method);\n }", "public function rules()\n {\n $rules = parent::rules();\n $extra_rules = [];\n $rules = array_merge($rules, $extra_rules);\n return $rules;\n }", "public function rules()\n {\n\t\tswitch($this->method()) {\n\t\t\tcase 'POST':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tdefault:break;\n\t\t}\n }", "public function rules()\n {\n $this->sanitize();\n return [\n 'event_id' => 'required',\n 'member_id' => 'required',\n 'guild_pts' => 'required',\n 'position' => 'required',\n 'solo_pts' => 'required',\n 'league_id' => 'required',\n 'solo_rank' => 'required',\n 'global_rank' => 'required',\n ];\n }", "public function rules()\n {\n $this->rules['email'] = ['required', 'min:6', 'max:60', 'email'];\n $this->rules['password'] = ['required', 'min:6', 'max:60'];\n\n return $this->rules;\n }", "public function getValidatorRules()\n {\n if ($validator = $this->getValidator()) {\n return $validator->getRulesForField($this->owner);\n }\n \n return [];\n }", "public function getValidationRules() : array;", "public function rules()\n {\n switch ($this->route()->getActionMethod()) {\n case 'login': {\n if ($this->request->has('access_token')) {\n return [\n 'access_token' => 'required',\n 'driver' => 'required|in:facebook,github,google',\n ];\n }\n return [\n 'email' => 'required|email',\n 'password' => 'required|min:6',\n ];\n }\n case 'register': {\n return [\n 'email' => 'required|email|unique:users,email',\n 'password' => 'required|min:6',\n 'name' => 'required',\n ];\n }\n default: return [];\n }\n }", "public function rules()\n {\n Validator::extend('mail_address_available', function($attribute, $value, $parameters, $validator){\n return MailAddressSpec::isAvailable($value);\n });\n Validator::extend('password_available', function($attribute, $value, $parameters, $validator){\n return PassWordSpec::isAvailable($value);\n });\n\n return [\n 'mail_address' => [\n 'required',\n 'mail_address_available'\n ],\n 'password' => [\n 'required',\n 'password_available',\n ],\n ];\n }", "public function rules()\n {\n switch (strtolower($this->method())) {\n case 'get':\n return $this->getMethodRules();\n case 'post':\n return $this->postMethodRules();\n case 'put':\n return $this->putMethodRules();\n case 'patch':\n return $this->patchMethodRules();\n case 'delete':\n return $this->deleteMethodRules();\n }\n }", "public function rules()\n {\n /**\n * This is the original way, expecting post params for each user value\n */\n return [\n 'firstName' => 'required|min:2|max:255',\n 'lastName' => 'required|min:2|max:255',\n 'phone' => 'min:9|max:25',\n 'gender' => 'in:M,V',\n 'dateOfBirth' => 'before:today|after:1890-01-01',\n 'email' => 'email|min:12|max:255',\n ];\n }", "public function getValidationRules(): array {\n\t\t$result = [];\n\t\t\n\t\tforeach ($this->getSections() as $section) {\n\t\t\t$result = array_merge($result, $section->getValidationRules());\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function rules()\n\t{\n\t\t$rule = [];\n\t\tif(Request::path() == 'api/utility/upload-image'){\n\t\t\t$rule = [\n\t\t\t\t'imagePath' => 'required',\n\t\t\t];\n\t\t}else if(Request::path() == 'api/utility/check-transaction'){\n\t\t\t$rule = [\n\t\t\t\t'countNumber' => 'required',\n\t\t\t];\n\t\t}\n\t\treturn $rule;\n\t}", "public function rules()\n {\n $rules = array();\n return $rules;\n }", "public function rules()\n {\n $this->setValidator($this->operation_type);\n return $this->validator;\n }", "public function rules()\n {\n switch($this->method()){\n case 'POST':\n return [\n 'name' => 'required',\n 'app_id' => 'required',\n 'account_id' => 'required',\n 'start_at' => 'required',\n 'end_at' => 'required',\n 'content' => 'required',\n ];\n break;\n default:\n return [];\n break;\n }\n\n }", "public function rules()\n {\n $rules = [\n 'users' => 'required|array',\n ];\n\n foreach($this->request->get('users') as $key => $user) {\n $rules['users.'. $key . '.name'] = 'required|string|min:3|max:255';\n $rules['users.'. $key . '.phone'] = 'required|regex:/^[0-9\\+\\s]+$/|min:10|max:17';\n $rules['users.'. $key . '.country'] = 'required|string|min:2:max:3';\n }\n\n return $rules;\n }", "protected function get_validation_rules()\n {\n }", "public function rules()\n {\n $rules = [\n 'mail_driver' => 'required',\n 'mail_name' => 'required',\n 'mail_email' => 'required',\n ];\n\n $newRules = [];\n\n if($this->mail_driver == 'smtp') {\n $newRules = [\n 'mail_host' => 'required',\n 'mail_port' => 'required|numeric',\n 'mail_username' => 'required',\n 'mail_password' => 'required',\n 'mail_encryption' => 'required',\n ];\n }\n\n return array_merge($rules, $newRules);\n }", "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n $rules['location'] = 'required';\n $rules['end_recruit_date'] = 'required';\n $rules['time_taken'] = 'required';\n $rules['payment'] = 'required';\n $rules['objective'] = 'required';\n $rules['method_desc'] = 'required';\n $rules['health_condition'] = 'required';\n $rules['required_applicant'] = 'required|integer';\n $rules['applicant'] = 'nullable';\n $rules['datetime'] = 'required';\n\n return $rules;\n }", "public function rules()\n {\n switch($this->method()) {\n\n case 'PUT':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n case 'POST':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n default:\n return [];\n }\n\n }", "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n\n return $rules;\n }", "public function rules()\n {\n switch(Route::currentRouteName()){\n case 'adminBinding' :\n return [\n 'order_id' => 'required|integer',\n 'money' => 'required|numeric',\n ];\n case 'adminUnbinding' :\n return [\n 'order_id' => 'required|integer',\n 'pivot_id' => 'required|integer',\n ];\n case 'adminReceiptSave' :\n case 'adminReceiptUpdate' :\n return [\n 'customer_id' => 'required',\n 'receiptcorp' => 'required',\n 'account' => 'required',\n 'account_id' => 'required',\n 'bank' => 'required',\n 'currency_id' => 'required',\n 'advance_amount' => 'required|numeric',\n 'picture' => 'required',\n 'business_type' => 'required|in:1,2,3,4,5',\n 'exchange_type' => 'required_unless:currency_id,354|in:1,2',\n 'expected_received_at' => 'required|date_format:Y-m-d',\n ];\n case 'adminReceiptExchange' :\n return [\n 'rate' => 'required|numeric',\n ];\n default :\n return [];\n }\n }", "public function rules()\n {\n $rules = [];\n $method = $this->getMethod();\n switch ($method) {\n case 'GET':\n if (Route::currentRouteName() === 'schoolActivity.getSchoolActivity') {\n $rules = [\n ];\n }\n break;\n }\n return $rules;\n }", "public function rules()\n {\n $rules = new Collection();\n\n if (!$this->user() or !$this->user()->addresses()->count()) {\n $rules = $rules->merge($this->addressRules('billing'));\n if ($this->has('different_shipping_address')) {\n $rules = $rules->merge($this->addressRules('shipping'));\n }\n\n return $rules->toArray();\n }\n\n return $rules->merge([\n 'billing_address_id' => 'required|numeric',\n 'shipping_address_id' => 'required|numeric',\n ])->toArray();\n }", "public function rules(): array\n {\n switch ($this->method()) {\n case 'POST':\n return $this->__rules() + $this->__post();\n case 'PUT':\n return $this->__rules() + $this->__put();\n default:\n return [];\n }\n }", "public function rules(Request $request)\n {\n return Qc::$rules;\n }", "public function defineValidationRules()\n {\n return [];\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'user_name' => 'nullable|string',\n 'excel' => 'nullable|file|mimes:xlsx',\n 'category' => 'required|int|in:' . implode(',', array_keys(UserMessage::$categories)),\n 'content' => 'required|string|max:500',\n 'member_status' => 'required|int|in:' . implode(',', array_keys(User::$statuses)),\n ];\n break;\n }\n }", "public function rules()\n {\n return [\n 'lead_id' => [\n 'required', 'string',\n ],\n 'api_version' => [\n 'required', 'string',\n ],\n 'form_id' => [\n 'required', 'int',\n ],\n 'campaign_id' => [\n 'required', 'int',\n ],\n 'google_key' => [\n 'required', 'string', new GoogleKeyRule,\n ],\n ];\n }" ]
[ "0.83426684", "0.8012867", "0.79357", "0.7925642", "0.7922824", "0.79036003", "0.785905", "0.77895427", "0.77832615", "0.7762324", "0.77367616", "0.7732319", "0.7709478", "0.7691477", "0.76847756", "0.7682022", "0.7682022", "0.7682022", "0.7682022", "0.7682022", "0.7682022", "0.7675238", "0.76745033", "0.7665319", "0.76570827", "0.764131", "0.7629555", "0.7629431", "0.7617311", "0.7609077", "0.76070553", "0.7602018", "0.759865", "0.7597791", "0.75919396", "0.7590118", "0.75871897", "0.75797164", "0.7555521", "0.755503", "0.75503516", "0.75458753", "0.75403965", "0.75360876", "0.7535538", "0.75300974", "0.7518105", "0.75145686", "0.75076634", "0.7506042", "0.75051844", "0.7498838", "0.7495001", "0.7494829", "0.74931705", "0.7490103", "0.7489394", "0.7489037", "0.7485875", "0.74857", "0.7478841", "0.74781114", "0.74692464", "0.74632394", "0.7461548", "0.74611425", "0.74590236", "0.74544203", "0.7453257", "0.7452147", "0.74498093", "0.7447976", "0.7441319", "0.7440709", "0.7435135", "0.7434774", "0.74325204", "0.74295586", "0.74287397", "0.74233043", "0.7418827", "0.74155605", "0.7413598", "0.7413494", "0.74120796", "0.740962", "0.74052715", "0.74039626", "0.7403312", "0.7400803", "0.7390036", "0.7383104", "0.73728377", "0.73704565", "0.73687065", "0.73608035", "0.7355335", "0.73462147", "0.7344126", "0.73427063", "0.7334932" ]
0.0
-1
Check if customer is authorized to enter the checkout If customer is not identified > redirect to cart with notice
public function checkIsVerified(Varien_Event_Observer $observer) { if (!Mage::getModel('postident/config')->isEnabled()) { return; } /* @var $controller Mage_Checkout_CartController */ $controller = $observer->getControllerAction(); if (($controller->getRequest()->getControllerName() == 'onepage' && $controller->getRequest()->getActionName() != 'success') && false === Mage::getModel('postident/verification')->userIsVerified() ) { //Set quote to hasErrors -> this causes a redirect to cart in all cases $controller->getOnepage()->getQuote()->setHasError(true); //Add notice message, that the user has to be verified before he is allowed to enter the checkout Mage::getSingleton("core/session")->addNotice( Mage::helper("postident")->__("An identification by E-POSTIDENT is necessary to enter the checkout.") ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function forceCheckoutOnContribute(){\n\t\tif(!$this->canContribute()){\n\t\t\t$_SESSION['flashMessage'] = \"Sorry, you will need complete this purchase before you can send another gift.\";\n\t\t\tview::Redirect('cart', 'index');\n\t\t}\n\t}", "protected function customerValidate(){\n\t\tif($this->config->get('ts_login')){\n\t\t\tif(!$this->customer->getId()){\n\t\t\t\tif(!isset($this->session->data['ts_customer'])){\n\t\t\t\t\t$this->session->data['redirect'] = $this->url->link('ticketsystem/generatetickets','','SSL');\n\t\t\t\t\t$this->response->redirect($this->url->link('ticketsystem/login','','SSL'));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected function _redirectToCart()\n {\n $this->_redirect(\"checkout/cart\");\n }", "function customer_pre_process() {\n global $user;\n if (!$user || $user['role'] != ROLE_CUSTOMER) {\n redirect('/');\n }\n}", "function cart_redirect() {\n\t\tglobal $post;\n\t\tif ( $post->post_name == 'cart' ) {\n\t\t\t$longleafurl = get_option('heweb17_longleaf_url');\n\t\t\tif ( $longleafurl && WC()->cart->get_cart_contents_count() == 0 ) {\n\t\t\t\twp_redirect( trailingslashit( $longleafurl ) );\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t}", "public function gotoCheckOutPage(){\n if(session('cart')){\n $cart = session('cart');\n if(count($cart['items'])>0){\n return $this->redirect('/checkout');\n }\n\n }\n $this->dispatchBrowserEvent('from-backend',['is'=>'toastr','type'=>'info','message'=>'Cart is empty.']);\n }", "public function vpup_redirect_to_cart( $should_redirect ) \n {\n // Check our quantities and redirect if any products are set. \n if( $should_redirect ) {\n $cart_redirect_url = get_site_url() . '/cart';\n echo \"<script>window.location.replace('\" . $cart_redirect_url . \"')</script>\";\n }\n }", "protected function _redirectToCartOrError()\n {\n if ($this->_getQuote()->getIsActive()) {\n $this->_redirectToCart();\n } else {\n $this->_redirectToError();\n }\n }", "function shd_maybe_redirect() {\n\n\tif( ! is_page( 'update' ) ) {\n\t\treturn;\n\t}\n\n\tif( ! class_exists( '\\Stripe\\Stripe' ) ) {\n\t\treturn;\n\t}\n\n\tif( empty( $_GET['customer_id'] ) || empty( $_GET['email'] ) ) {\n\t\twp_redirect( home_url() ); exit; // Get out of here if loading page from anywhere but Baremetrics email\n\t}\n\n\t$email = sanitize_text_field( $_GET['email'] );\n\t$customer_id = sanitize_text_field( $_GET['customer_id'] );\n\n\t/*\n\t * Check if this is an RCP customer\n\t */\n\n\t\\Stripe\\Stripe::setApiKey( RCP_STRIPE_KEY );\n\n\ttry {\n\n\t\t$customer = \\Stripe\\Customer::retrieve( $customer_id );\n\n\t\tif( ! empty( $customer->subscriptions->data ) ) {\n\n\t\t\tforeach( $customer->subscriptions->data as $sub ) {\n\t\t\t\tif( false !== strpos( $sub->plan->name, 'restrict-content-pro' ) ) {\n\t\t\t\t\twp_redirect( 'https://restrictcontentpro.com/account/?sh_action=update#tabs=1' ); exit;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\twp_redirect( 'https://pippinsplugins.com/account/update-billing-card/?sh_action=update' ); exit;\n\n\n\t} catch ( Exception $e ) {\n\n\n\t\t/*\n\t\t * Not and RCP customer, check if it's an AffiliateWP customer\n\t\t */\n\n\t\t\\Stripe\\Stripe::setApiKey( AFFWP_STRIPE_KEY );\n\n\t\ttry {\n\n\t\t\t$customer = \\Stripe\\Customer::retrieve( $customer_id );\n\t\t\twp_redirect( 'https://affiliatewp.com/account/?sh_action=update#tabs=1' ); exit;\n\n\t\t} catch ( Exception $e ) {\n\n\t\t\t/*\n\t\t\t * Not and RCP or AffWP customer, check if it's an EDD customer\n\t\t\t */\n\n\t\t\t\\Stripe\\Stripe::setApiKey( EDD_STRIPE_KEY );\n\n\t\t\ttry {\n\n\t\t\t\t$customer = \\Stripe\\Customer::retrieve( $customer_id );\n\t\t\t\twp_redirect( 'https://easydigitaldownloads.com/your-account/?sh_action=update#tab-subscriptions' ); exit;\n\n\t\t\t} catch ( Exception $e ) {\n\n\t\t\t\t$message = 'Customer ' . $customer_id . ' was not found. Email address was ' . $email;\n\n\t\t\t\twp_mail( '[email protected]', 'Dunning Email Failed for ' . $email, $message );\n\n\t\t\t\t// Still no customer found, bail\n\t\t\t\twp_redirect( home_url() ); exit;\n\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}", "public function preDispatch()\n {\n parent::preDispatch();\n \n if (!Mage::getSingleton('customer/session')->authenticate($this)) {\n $this->setFlag('', 'no-dispatch', true);\n \n // adding message in customer login page\n Mage::getSingleton('core/session')\n ->addSuccess(Mage::helper('ordercustom')->__('Please sign in or create a new account'));\n }\n }", "public function redirectAction()\n {\n $session = Mage::getSingleton('checkout/session');\n $session->setCriptopayStandardQuoteId($session->getQuoteId());\n\n $order = Mage::getModel('sales/order');\n $order->loadByIncrementId($session->getLastRealOrderId());\n $order->addStatusToHistory(\n $order->getStatus(),\n Mage::helper('criptopay')->__('Customer was redirected to CriptoPay')\n );\n $order->save();\n\n $this->getResponse()\n ->setBody($this->getLayout()\n ->createBlock('criptopay/standard_redirect')\n ->setOrder($order)\n ->toHtml());\n\n $session->unsQuoteId();\n }", "function glv_login_redirect( $redirect_to, $request, $user ) {\t\tif ( class_exists( 'WooCommerce' ) ) {\n\t\t\tif ( WC()->cart->get_cart_contents_count() != 0 ) {\n\t\t\t\t$redirect_to = get_permalink( get_option( 'woocommerce_myaccount_page_id' ) );\n\n//\t\t\t Do something fun\n\t\t\t}\n\t\t}\n\n\t\treturn $redirect_to;\n\t}", "public static function check_customer($url='../userProfileCreate'){\n\t\tself::check_auth();\n\n\t\tif(!Session::has('user') || (Session::has('user') && Session::get('user')['user_type'] < \\Models\\User::customer)){\n\t\t\tView::redirect($url,['warning'=>'ابتدا باید پروفایل خود را کامل کنید']);\n\t\t}\n\t}", "public function forceCheckoutOnCreate(){\n\t\tif(!$this->canCreate()){\n\t\t\t$_SESSION['flashMessage'] = \"Sorry, you will need complete this purchase before you can send another gift.\";\n\t\t\tview::Redirect('gift', 'cart');\n\t\t}\n\t}", "public function preDispatch()\n {\n parent::preDispatch();\n if (!Mage::getSingleton('customer/session')->authenticate($this)) {\n $this->setFlag('', Mage_Core_Controller_Varien_Action::FLAG_NO_DISPATCH, true);\n\n // adding message in customer login page\n Mage::getSingleton('core/session')\n ->addSuccess(Mage::helper('inchoo_tickets')->__('Please sign in or create a new account.'));\n }\n }", "public function customer()\n {\n \n // Sustomer is stil step 0\n $this->set_step(0);\n\n\n\n // You are logged in, you dont have access here\n if($this->current_user)\n {\n $this->set_step(1);\n redirect( NC_ROUTE. '/checkout/billing');\n }\n\n\n\n // Check to see if a field is available\n if( $this->input->post('customer') )\n {\n\n $input = $this->input->post();\n switch($input['customer'])\n {\n case 'register':\n $this->session->set_userdata('nitrocart_redirect_to', NC_ROUTE .'/checkout/billing');\n redirect('users/register');\n break;\n case 'guest':\n $this->session->set_userdata('user_id', 0);\n $this->set_step(1);\n redirect( NC_ROUTE. '/checkout/billing');\n break;\n default:\n break;\n }\n //more like an system error!\n $this->session->set_flashdata( JSONStatus::Error , 'Invalid selection');\n redirect( NC_ROUTE . '/checkout');\n }\n\n $this->set_step(0);\n\n $this->template\n ->title(Settings::get('shop_name'), 'Account') \n ->set_breadcrumb('User Account')\n ->build( $this->theme_layout_path . 'customer');\n }", "public function successAction()\n\t{\n\t\t$this->_redirect('checkout/onepage/success', array('_secure'=>true));\n\t}", "function checkout() \n\t\t{\n\t\t\t// Minimum order value has not been reached, set a custom error message notifying the user.\t\t\t\n\t\t\tif (! $this->flexi_cart->minimum_order_status())\n\t\t\t{\n\t\t\t\t$this->flexi_cart->set_error_message('The minimum order value of '.$this->flexi_cart->minimum_order().' has not been reached.', 'public');\n\t\t\t\t// Set a message to the CI flashdata so that it is available after the page redirect.\n\t\t\t\t$this->session->set_flashdata('message', $this->flexi_cart->get_messages());\n\t\t\t\tredirect('cart');\n\t\t\t}\n\t\t\t\n\t\t\t// There are no items in the cart that can currently be shipped to the current shipping location, set a custom error message notifying the user.\n\t\t\tif (! $this->flexi_cart->location_shipping_status(FALSE))\n\t\t\t{\n\t\t\t\t$this->flexi_cart->set_error_message('There are no items in the cart that can currently be shipped to the current shipping location.', 'public');\n\t\t\t\t// Set a message to the CI flashdata so that it is available after the page redirect.\n\t\t\t\t$this->session->set_flashdata('message', $this->flexi_cart->get_messages());\n\t\t\t\tredirect('cart');\n\t\t\t}\n\n\t\t\t$this->load->model('demo_cart_model');\n\n\t\t\t// Check whether the cart is empty and redirect the user away.\n\t\t\tif (! $this->flexi_cart->cart_status())\n\t\t\t{\n\t\t\t\t$this->flexi_cart->set_error_message('You must add an item to the cart before you can checkout.', 'public');\n\n\t\t\t\t// Set a message to the CI flashdata so that it is available after the page redirect.\n\t\t\t\t$this->session->set_flashdata('message', $this->flexi_cart->get_messages());\n\t\t\t\t\n\t\t\t\tredirect('cart');\n\t\t\t}\n\n\t\t\t// Load PayPal library config file.\n\t\t\t$this->config->load('paypal');\n\n\t\t\t$paypal_config = array(\n\t\t\t\t// Sandbox / testing mode option.\n\t\t\t\t'Sandbox' \t\t=> $this->config->item('Sandbox'),\n\t\t\t\t// PayPal API username of the API caller\n\t\t\t\t'APIUsername' \t=> $this->config->item('APIUsername'),\n\t\t\t\t// PayPal API password of the API caller\n\t\t\t\t'APIPassword' \t=> $this->config->item('APIPassword'),\n\t\t\t\t// PayPal API signature of the API caller\n\t\t\t\t'APISignature' \t=> $this->config->item('APISignature'),\n\t\t\t\t// PayPal API subject (email address of 3rd party user that has granted API permission for your app)\n\t\t\t\t'APISubject' \t=> '',\n\t\t\t\t// API version you'd like to use for your call. You can set a default version in the class and leave this blank if you want.\n\t\t\t\t'APIVersion' \t=> $this->config->item('APIVersion'),\n\t\t\t\t'DeviceID' \t\t=> $this->config->item('DeviceID'),\n\t\t\t\t'ApplicationID' => $this->config->item('ApplicationID'),\n\t\t\t\t'DeveloperEmailAccount' => $this->config->item('DeveloperEmailAccount')\n\t\t\t);\n\n\t\t\t// Load PayPal library\n\t\t\t$this->load->library('paypal/paypal_pro', $paypal_config);\n\t\t\t\n\t\t\t/**\n\t\t\t * Here we are setting up the parameters for a basic Express Checkout flow.\n\t\t\t *\n\t\t\t * The template provided at /vendor/angelleye/paypal-php-library/templates/SetExpressCheckout.php\n\t\t\t * contains a lot more parameters that we aren't using here, so I've removed them to keep this clean.\n\t\t\t *\n\t\t\t * $domain used here is set in the config file.\n\t\t\t */\n\t\t\t$SECFields = array(\n\t\t\t\t// The expected maximum total amount the order will be, including S&H and sales tax.\n\t\t\t\t'maxamt' \t=> $this->flexi_cart->total($discounts = TRUE, $format_value = FALSE),\n\t\t\t\t'returnurl' => site_url('checkout_review'),\n\t\t\t\t'cancelurl' => site_url('checkout_failed'),\n\t\t\t\t// Header banner image\n\t\t\t\t// 'hdrimg' => '',\n\t\t\t\t'logoimg' \t=> base_url($this->store->owner()->logo),\n\t\t\t\t// A label that overrides the business name in the PayPal account on the PayPal hosted checkout pages. 127 char max.\n\t\t\t\t'brandname' => $this->store->owner()->name,\n\t\t\t\t'customerservicenumber' => $this->store->owner()->name,\n\t\t\t);\n\n\t\t\t/**\n\t\t\t * Now we begin setting up our payment(s).\n\t\t\t *\n\t\t\t * Express Checkout includes the ability to setup parallel payments,\n\t\t\t * so we have to populate our $Payments array here accordingly.\n\t\t\t *\n\t\t\t * For this sample (and in most use cases) we only need a single payment,\n\t\t\t * but we still have to populate $Payments with a single $Payment array.\n\t\t\t *\n\t\t\t * Once again, the template file includes a lot more available parameters,\n\t\t\t * but for this basic sample we've removed everything that we're not using,\n\t\t\t * so all we have is an amount.\n\t\t\t */\n\t\t\t$Payments = array();\n\t\t\t$Payment = array(\n\t\t\t\t// Required. The total cost of the transaction to the customer. If shipping cost and tax charges are known, include them in this value. If not, this value should be the current sub-total of the order.\n\t\t\t\t'amt' => $this->flexi_cart->total($discounts = TRUE, $format_value = FALSE),\n\t\t\t\t// Subtotal of items only.\n\t\t\t\t'itemamt' => $this->flexi_cart->item_summary_total($discounts = TRUE, $format_value = FALSE),\n\t\t\t\t// A three-character currency code. Default is USD.\n\t\t\t\t'currencycode' => $this->flexi_cart->currency_name(),\n\t\t\t\t// Total shipping costs for this order. If you specify SHIPPINGAMT you mut also specify a value for ITEMAMT.\n\t\t\t\t'shippingamt' => $this->flexi_cart->shipping_total($discounts = TRUE, $format_value = FALSE),\n\t\t\t);\n\n\t\t\t/**\n\t\t\t * Here we push our single $Payment into our $Payments array.\n\t\t\t */\n\t\t\tarray_push($Payments, $Payment);\n\n\t\t\t$OrderItems = array();\n\t\t\tforeach ($this->flexi_cart->cart_items() as $key => $item)\n\t\t\t{\n\t\t\t\tarray_push($OrderItems, array(\n\t\t\t\t\t'l_name' => $item['name'], // Item Name. 127 char max.\n\t\t\t\t\t// 'l_desc' => '', // Item description. 127 char max.\n\t\t\t\t\t'l_amt' => $this->flexi_cart->item_price_total($item['row_id'], $discounts = TRUE, $format_value = FALSE), // Cost of individual item.\n\t\t\t\t\t'l_number' => $item['id'], // Item Number. 127 char max.\n\t\t\t\t\t'l_qty' => $item['quantity'], // Item quantity. Must be any positive integer.\n\t\t\t\t\t// 'l_taxamt' => '', // Item's sales tax amount.\n\t\t\t\t));\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Now we gather all of the arrays above into a single array.\n\t\t\t */\n\t\t\t$PayPalRequestData = array(\n\t\t\t\t'SECFields' => $SECFields,\n\t\t\t\t'Payments' => $Payments,\n\t\t\t\t'OrderItems' => $OrderItems,\n\t\t\t);\n\n\t\t\t/**\n\t\t\t * Here we are making the call to the SetExpressCheckout function in the library,\n\t\t\t * and we're passing in our $PayPalRequestData that we just set above.\n\t\t\t */\n\t\t\t$PayPalResult = $this->paypal_pro->SetExpressCheckout($PayPalRequestData);\n\n\t\t\t/**\n\t\t\t * Now we'll check for any errors returned by PayPal, and if we get an error,\n\t\t\t * we'll save the error details to a session and redirect the user to an\n\t\t\t * error page to display it accordingly.\n\t\t\t *\n\t\t\t * If all goes well, we save our token in a session variable so that it's\n\t\t\t * readily available for us later, and then redirect the user to PayPal\n\t\t\t * using the REDIRECTURL returned by the SetExpressCheckout() function.\n\t\t\t */\n\t\t\tif(!$this->paypal_pro->APICallSuccessful($PayPalResult['ACK']))\n\t\t\t{\n\t\t\t\t$this->data['errors'] = array('Errors'=>$PayPalResult['ERRORS']);\n\t\t\t\t\n\t\t\t\t// Get products.\n\t\t\t\t$this->load->library('store');\n\t\t\t\t\n\t\t\t\t$products = $this->store->products(array(\n\t\t\t\t\t'limit' => 12\n\t\t\t\t));\n\t\t\t\t\n\t\t\t\t$this->data['products'] = $products['rows'];\t\n\t\t\t\t$this->data['total'] = $products['total'];\t\n\t\t\t\t$this->data['pagination'] = $products['pagination'];\n\n\t\t\t\t$this->load->view('public/cart/checkout_error', $this->data);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Successful call.\n\n\t\t\t\t// Set PayPalResult into session userdata (so we can grab data from it later on a 'payment complete' page)\n\t\t\t\t$this->session->set_userdata('PayPalResult', $PayPalResult);\n\n\t\t\t\t// Move to PayPal checkout\n\t\t\t\tredirect($PayPalResult['REDIRECTURL'], 'Location');\n\t\t\t}\n\t\t}", "public function isCustomerLoggedIn() {\n\t\tif ( Auth::check() ) {\n\t\t\treturn response( 1 );\n\t\t} else if ( Session::has( \"guest\" ) ) {\n\t\t\treturn response( 1 );\n\t\t} else {\n\t\t\tif ( isset( $_GET['href'] ) ) {\n\t\t\t\t$url = $_GET['href'];\n\t\t\t\tif ( strpos( $url, url( \"\" ) ) !== false ) {\n\t\t\t\t\tSession::put( \"smPackageUrl\", $url );\n\t\t\t\t\tSession::save();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn response( 0 );\n\t\t}\n\t}", "public function confirmAction()\r\n {\r\n if (empty($this->View()->sUserLoggedIn)) {\r\n return $this->forward('login', 'account', null, array('sTarget'=>'sKUZOOffer', 'sTargetAction'=>'confirm'));\r\n } elseif ($this->basket->sCountBasket() < 1) {\r\n return $this->redirect(array(\r\n 'module' => 'frontend',\r\n 'controller' => 'checkout',\r\n 'action' => 'cart'\r\n ));\r\n }\r\n\r\n $this->View()->sCountry = $this->getSelectedCountry();\r\n $this->View()->sState = $this->getSelectedState();\r\n $this->View()->sPayment = $this->getSelectedPayment();\r\n $this->View()->sUserData[\"payment\"] = $this->View()->sPayment;\r\n\r\n $this->View()->sDispatch = $this->getSelectedDispatch();\r\n $this->View()->sPayments = $this->getPayments();\r\n $this->View()->sDispatches = $this->getDispatches();\r\n\r\n $this->View()->sBasket = $this->getBasket();\r\n\r\n $this->View()->sLaststock = $this->basket->sCheckBasketQuantities();\r\n $this->View()->sShippingcosts = $this->View()->sBasket['sShippingcosts'];\r\n $this->View()->sShippingcostsDifference = $this->View()->sBasket['sShippingcostsDifference'];\r\n $this->View()->sAmount = $this->View()->sBasket['sAmount'];\r\n $this->View()->sAmountWithTax = $this->View()->sBasket['sAmountWithTax'];\r\n $this->View()->sAmountTax = $this->View()->sBasket['sAmountTax'];\r\n $this->View()->sAmountNet = $this->View()->sBasket['AmountNetNumeric'];\r\n\r\n $this->View()->sPremiums = $this->getPremiums();\r\n\r\n $this->View()->sNewsletter = isset($this->session['sNewsletter']) ? $this->session['sNewsletter'] : null;\r\n $this->View()->sComment = isset($this->session['sComment']) ? $this->session['sComment'] : null;\r\n\r\n $this->View()->sShowEsdNote = $this->getEsdNote();\r\n\r\n $this->View()->sDispatchNoOrder = $this->getDispatchNoOrder();\r\n if(!$this->View()->sDispatch)\r\n {\r\n $this->View()->sDispatchNoOrder = true;\r\n }\r\n $this->View()->sRegisterFinished = !empty($this->session['sRegisterFinished']);\r\n\r\n $this->saveTemporaryOrder();\r\n\r\n if ($this->getMinimumCharge()) {\r\n return $this->forward('cart');\r\n }\r\n\r\n if($this->View()->sBasket['sAmount'] < Shopware()->Config()->inquiryvalue)\r\n {\r\n return $this->redirect(array(\r\n 'module' => 'frontend',\r\n 'controller' => 'checkout',\r\n 'action' => 'cart',\r\n 'amountError' => true\r\n ));\r\n }\r\n\r\n if(Shopware()->Plugins()->Backend()->sKUZOOffer()->assertMinimumVersion(\"5.2\")) {\r\n $activeBillingAddressId = $this->session->offsetGet('checkoutBillingAddressId', null);\r\n if(empty($activeBillingAddressId)) {\r\n $activeBillingAddressId = $this->View()->sUserData['additional']['user']['default_billing_address_id'];\r\n }\r\n\r\n $activeShippingAddressId = $this->session->offsetGet('checkoutShippingAddressId', null);\r\n if(empty($activeShippingAddressId)) {\r\n $activeShippingAddressId = $this->View()->sUserData['additional']['user']['default_shipping_address_id'];\r\n }\r\n\r\n $this->View()->assign('activeBillingAddressId', $activeBillingAddressId);\r\n $this->View()->assign('activeShippingAddressId', $activeShippingAddressId);\r\n\r\n $this->View()->assign('invalidBillingAddress', !$this->isValidAddress($activeBillingAddressId));\r\n $this->View()->assign('invalidShippingAddress', !$this->isValidAddress($activeShippingAddressId));\r\n\r\n $billingAddress = Shopware()->Models()->find('Shopware\\Models\\Customer\\Address',$activeBillingAddressId);\r\n $this->get('shopware_account.address_service')->setDefaultBillingAddress($billingAddress);\r\n $shippingAddress = Shopware()->Models()->find('Shopware\\Models\\Customer\\Address',$activeShippingAddressId);\r\n $this->get('shopware_account.address_service')->setDefaultShippingAddress($shippingAddress);\r\n\r\n $userData = $this->View()->sUserData;\r\n $userAddressData = Shopware()->Modules()->Admin()->sGetUserData();\r\n $userData['billingaddress'] = $userAddressData['billingaddress'];\r\n $userData['shippingaddress'] = $userAddressData['shippingaddress'];\r\n $this->View()->sUserData = $userData;\r\n }\r\n\r\n $this->session['sOrderVariables'] = new ArrayObject($this->View()->getAssign(), ArrayObject::ARRAY_AS_PROPS);\r\n $this->View()->sKUZOOffer = true;\r\n $this->View()->sTargetAction = 'confirm';\r\n }", "public function redirectAction()\n {\n\t\t\n $session = Mage::getSingleton('checkout/session');\n $session->setHdfcStandardQuoteId($session->getQuoteId());\n\t\t$order = $this->getOrder();\n\t\t\n \n if (!$order->getId()) {\n\t\t\n\t\t\t$this->_forward('failurerefresh');\n return;\n }\n\n $order->addStatusToHistory(\n $order->getStatus(),\n Mage::helper('hdfc')->__('Customer was redirected to hdfc')\n );\n $order->save();\n\n $this->getResponse()\n ->setBody($this->getLayout()\n ->createBlock('hdfc/standard_redirect')\n ->setOrder($order)\n ->toHtml());\n\n $session->unsQuoteId();\n }", "public function index()\n {\n //basically reset the steps\n $this->set_step(0);\n\n if($this->current_user)\n {\n $this->session->set_userdata('user_id', $this->current_user->id);\n $this->set_step(1);\n redirect( NC_ROUTE .'/checkout/billing');\n }\n //else\n redirect( NC_ROUTE . '/checkout/customer');\n }", "public function action_checkout()\n\t{\n\t\t$user_id = $this->request->param('id');\n\n\t\t$charge = Access::checkout_user($user_id);\n\n\t\tif ($charge === NULL)\n\t\t{\n\t\t\treturn $this->_flash_error(\n\t\t\t\t'Member has not checkin yet.',\n\t\t\t\t'admin/member/info/'.$user_id);\n\t\t}\n\n\t\treturn $this->_flash_success(\n\t\t\t\t\"{$charge} credits deducted.\",\n\t\t\t\t'admin/member/info/'.$user_id);\n\t}", "public function preDispatch() {\r\n parent::preDispatch();\r\n if (!$this->getRequest()->isDispatched()) {\r\n return;\r\n }\r\n \r\n if (!$this->_getSession()->authenticate($this)) {\r\n Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl('customer/account/login'));\r\n } elseif ($this->_getSession()->getCustomerGroupid() == 0) {\r\n Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl('reseller/index/login'));\r\n } else {\r\n Mage::getSingleton('core/session')->setResellersession(1);\r\n if ($this->_getSession()->getCustomerGroupId() == 1 || $this->_getSession()->getCustomerGroupId() == 2) {\r\n Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl(''));\r\n }\r\n }\r\n }", "protected function _checkCustomerAuthentication()\n {\n // get customer session object\n $session = $this->_getCustomerSession();\n\n // check whether customer is logged in\n if ( !$session->isLoggedIn() ) {\n // if customer is not logged in throw an exception\n Mage::throwException(Mage::helper('mymodule')->__('Not logged in'));\n }\n }", "public function creditredirectAction()\n {\n $session = Mage::getSingleton('checkout/session');\n $session->setAlipayPaymentCreditId($session->getCreditLastOrderId());\n\n $creditorder = $this->getCreditOrder();\n\n if (!$creditorder->getId()) {\n $this->norouteAction();\n return;\n }\n\n $this->getResponse()\n ->setBody($this->getLayout()\n ->createBlock('alipay/creditredirect')\n ->setCreditOrder($creditorder)\n ->toHtml());\n\n }", "private function Checkout()\n\t{\n\t\t// ensure products are in stock\n\t\t$this->CheckStockLevels();\n\n\t\t// If the customer is signed in, then the first step of the checkout is actually the choose billing address page so show that\n\t\tif(CustomerIsSignedIn()) {\n\t\t\t$this->ChooseBillingAddress();\n\t\t\treturn;\n\t\t}\n\n\t\t$_SESSION['CHECKOUT']['CHECKOUT_TYPE'] = 'normal';\n\n\t\tif(isset($_REQUEST['bad_login']) && $_REQUEST['bad_login'] == 1) {\n\t\t\t$GLOBALS['LoginMessage'] = getLang('BadLoginDetails');\n\t\t\t$GLOBALS['MessageClass'] = 'ErrorMessage';\n\t\t}\n\t\telse {\n\t\t\t$GLOBALS['HideLoginMessage'] = 'none';\n\t\t}\n\n\t\t// Otherwise, we need to show the login page for checking out\n\t\tif(GetConfig('GuestCheckoutEnabled') && (!isset($_REQUEST['action']) || $_REQUEST['action'] != 'multiple')) {\n\t\t\t$GLOBALS['HideCheckoutRegistrationRequired'] = 'display: none';\n\t\t}\n\t\telse {\n\t\t\t$GLOBALS['HideCheckoutGuest'] = 'display: none';\n\t\t}\n\n\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->SetPageTitle(GetConfig('StoreName').' - '.GetLang('Checkout'));\n\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate('checkout');\n\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();\n\t}", "public function redirectAction() \n\t{\n\t\t$session = Mage::getSingleton('checkout/session');\n $order = Mage::getModel('sales/order');\n $order->loadByIncrementId($session->getLastRealOrderId());\n $order->addStatusToHistory($order->getStatus(), Mage::helper('payza')->__('Customer was redirected to Payza.'));\n $order->save();\n\t\t\n\t\t$this->loadLayout();\n $block = $this->getLayout()->createBlock('Mage_Core_Block_Template','payza',array('template' => 'payza/redirect.phtml'));\n\t\t$this->getLayout()->getBlock('content')->append($block);\n $this->renderLayout();\n\t}", "public function onCustomerLogin($event)\n {\n /**\n * handle the user login event to manage the after login, if the user has added any products as guest then\n * the cart items from session will be transferred from cookie to the cart table in the database.\n *\n * Check whether cookie is present or not and then check emptiness and then do the appropriate actions.\n */\n Cart::mergeCart();\n }", "protected function success_redirect()\n {\n tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));\n }", "public function successAction() {\n\t\t\n\t\t//echo \"in b2b\";die;\n\t\t$session = Mage::getSingleton('checkout/session');\n\t\t\n\t\t$logFileName = 'magentoorder.log';\n\t\t\n\t\tMage::log('----------------- START ------------------------------- ', null, $logFileName);\t\n\t\t\n\t\t$quote = $session->getQuote();\n\t\t$quoteId = $quote->getEntityId();\n\t\t$privateId = $session->getPrivateId();\n\t\t\n\t\t\n\t\t\n\t\tif($privateId){\n\t\t\t$orderData = Mage::getModel('collectorbank/api')->getOrderResponse();\t\n\t\t\t\n\t\t\tif(isset($orderData['error'])){\n\t\t\t\t$session->addError($orderData['error']['message']);\n\t\t\t\t$this->_redirect('checkout/cart');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$orderDetails = $orderData['data'];\t\t\n\t\t\n\t\t\n\t\tif($orderDetails){\t\t\n\t\t\t$email = $orderDetails['customer']['email'];\n\t\t\t$mobile = $orderDetails['customer']['mobilePhoneNumber'];\n\t\t\t$firstName = $orderDetails['customer']['deliveryAddress']['firstName'];\n\t\t\t$lastName = $orderDetails['customer']['deliveryAddress']['lastName'];\n\t\t\t\n\t\t\t\n\t\t\t$store = Mage::app()->getStore();\n\t\t\t$website = Mage::app()->getWebsite();\n\t\t\t$customer = Mage::getModel('customer/customer')->setWebsiteId($website->getId())->loadByEmail($email);\n\t\t\t\t// if the customer is not already registered\n\t\t\t\tif (!$customer->getId()) {\n\t\t\t\t\t$customer = Mage::getModel('customer/customer');\t\t\t\n\t\t\t\t\t$customer->setWebsiteId($website->getId())\n\t\t\t\t\t\t\t ->setStore($store)\n\t\t\t\t\t\t\t ->setFirstname($firstName)\n\t\t\t\t\t\t\t ->setLastname($lastName)\n\t\t\t\t\t\t\t ->setEmail($email); \n\t\t\t\t\ttry {\n\t\t\t\t\t \n\t\t\t\t\t\t$password = $customer->generatePassword(); \n\t\t\t\t\t\t$customer->setPassword($password); \n\t\t\t\t\t\t// set the customer as confirmed\n\t\t\t\t\t\t$customer->setForceConfirmed(true); \n\t\t\t\t\t\t// save customer\n\t\t\t\t\t\t$customer->save(); \n\t\t\t\t\t\t$customer->setConfirmation(null);\n\t\t\t\t\t\t$customer->save();\n\t\t\t\t\t\t\n\t\t\t\t\t\t// set customer address\n\t\t\t\t\t\t$customerId = $customer->getId(); \n\t\t\t\t\t\t$customAddress = Mage::getModel('customer/address'); \n\t\t\t\t\t\t$customAddress->setData($billingAddress)\n\t\t\t\t\t\t\t\t\t ->setCustomerId($customerId)\n\t\t\t\t\t\t\t\t\t ->setIsDefaultBilling('1')\n\t\t\t\t\t\t\t\t\t ->setIsDefaultShipping('1')\n\t\t\t\t\t\t\t\t\t ->setSaveInAddressBook('1');\n\t\t\t\t\t\t\n\t\t\t\t\t\t// save customer address\n\t\t\t\t\t\t$customAddress->save();\n\t\t\t\t\t\t// send new account email to customer \n\t\t\t\t\t\t\n\t\t\t\t\t\t$storeId = $customer->getSendemailStoreId();\n\t\t\t\t\t\t$customer->sendNewAccountEmail('registered', '', $storeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\tMage::log('Customer with email '.$email.' is successfully created.', null, $logFileName);\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Mage_Core_Exception $e) {\t\t\t\t\t\t\n\t\t\t\t\t\tMage::log('Cannot add customer for '.$e->getMessage(), null, $logFileName);\n\t\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t\tMage::log('Cannot add customer for '.$email, null, $logFileName);\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t\t\n\t\t\t// Assign Customer To Sales Order Quote\n\t\t\t$quote->assignCustomer($customer);\n\t\t\t\n\t\t\tif($orderDetails['customer']['deliveryAddress']['country'] == 'Sverige'){\t$scountry_id = \"SE\";\t}\n\t\t\tif($orderDetails['customer']['billingAddress']['country'] == 'Sverige'){ $bcountry_id = \"SE\";\t}\n\t\t\t\n\t\t\t$billingAddress = array(\n\t\t\t\t'customer_address_id' => '',\n\t\t\t\t'prefix' => '',\n\t\t\t\t'firstname' => $firstName,\n\t\t\t\t'middlename' => '',\n\t\t\t\t'lastname' => $lastName,\n\t\t\t\t'suffix' => '',\n\t\t\t\t'company' => $orderDetails['customer']['billingAddress']['coAddress'], \n\t\t\t\t'street' => array(\n\t\t\t\t\t '0' => $orderDetails['customer']['billingAddress']['address'], // compulsory\n\t\t\t\t\t '1' => $orderDetails['customer']['billingAddress']['address2'] // optional\n\t\t\t\t ),\n\t\t\t\t'city' => $orderDetails['customer']['billingAddress']['city'],\n\t\t\t\t'country_id' => $scountry_id, // two letters country code\n\t\t\t\t'region' => '', // can be empty '' if no region\n\t\t\t\t'region_id' => '', // can be empty '' if no region_id\n\t\t\t\t'postcode' => $orderDetails['customer']['billingAddress']['postalCode'],\n\t\t\t\t'telephone' => $mobile,\n\t\t\t\t'fax' => '',\n\t\t\t\t'save_in_address_book' => 1\n\t\t\t);\n\t\t\n\t\t\t$shippingAddress = array(\n\t\t\t\t'customer_address_id' => '',\n\t\t\t\t'prefix' => '',\n\t\t\t\t'firstname' => $firstName,\n\t\t\t\t'middlename' => '',\n\t\t\t\t'lastname' => $lastName,\n\t\t\t\t'suffix' => '',\n\t\t\t\t'company' => $orderDetails['customer']['deliveryAddress']['coAddress'], \n\t\t\t\t'street' => array(\n\t\t\t\t\t '0' => $orderDetails['customer']['deliveryAddress']['address'], // compulsory\n\t\t\t\t\t '1' => $orderDetails['customer']['deliveryAddress']['address2'] // optional\n\t\t\t\t ),\n\t\t\t\t'city' => $orderDetails['customer']['deliveryAddress']['city'],\n\t\t\t\t'country_id' => $scountry_id, // two letters country code\n\t\t\t\t'region' => '', // can be empty '' if no region\n\t\t\t\t'region_id' => '', // can be empty '' if no region_id\n\t\t\t\t'postcode' => $orderDetails['customer']['deliveryAddress']['postalCode'],\n\t\t\t\t'telephone' => $mobile,\n\t\t\t\t'fax' => '',\n\t\t\t\t'save_in_address_book' => 1\n\t\t\t);\n\t\t\n\t\t\n\t\t\t// Add billing address to quote\n\t\t\t$billingAddressData = $quote->getBillingAddress()->addData($billingAddress);\n\t\t \n\t\t\t// Add shipping address to quote\n\t\t\t$shippingAddressData = $quote->getShippingAddress()->addData($shippingAddress);\n\t\t\t\n\t\t\t//check for selected shipping method\n\t\t\t$shippingMethod = $session->getSelectedShippingmethod();\n\t\t\tif(empty($shippingMethod)){\n\t\t\t\t$allShippingData = Mage::getModel('collectorbank/config')->getActiveShppingMethods();\n\t\t\t\t$orderItems = $orderDetails['order']['items'];\n\t\t\t\tforeach($orderItems as $oitem){\n\t\t\t\t\t//echo \"<pre>\";print_r($oitem);\n\t\t\t\t\tif(in_array($oitem['id'], $allShippingData)) {\n\t\t\t\t\t\t$shippingMethod = $oitem['id'];\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Collect shipping rates on quote shipping address data\n\t\t\t$shippingAddressData->setCollectShippingRates(true)->collectShippingRates();\n\n\t\t\t// Set shipping and payment method on quote shipping address data\n\t\t\t$shippingAddressData->setShippingMethod($shippingMethod);\t\t\t\n\t\t\t\n\t\t\t//$paymentMethod = 'collectorpay';\n\t\t\t$paymentMethod = 'collectorbank_invoice';\n\t\t\t// Set shipping and payment method on quote shipping address data\n\t\t\t$shippingAddressData->setPaymentMethod($paymentMethod);\t\t\t\n\t\t\t\n\t\t\t$colpayment_method = $orderDetails['purchase']['paymentMethod'];\n\t\t\t$colpayment_details = json_encode($orderDetails['purchase']);\n\t\t\t\n\t\t\t// Set payment method for the quote\n\t\t\t$quote->getPayment()->importData(array('method' => $paymentMethod,'coll_payment_method' => $colpayment_method,'coll_payment_details' => $colpayment_details));\n\t\t\t\n\n\t\t\ttry{\n\t\t\t\t$orderReservedId = $session->getReference();\n\t\t\t\t$quote->setResponse($orderDetails);\n\t\t\t\t$quote->setCollCustomerType($orderDetails['customerType']);\n\t\t\t\t$quote->setCollBusinessCustomer($orderDetails['businessCustomer']);\n\t\t\t\t$quote->setCollStatus($orderDetails['status']);\n\t\t\t\t$quote->setCollPurchaseIdentifier($orderDetails['purchase']['purchaseIdentifier']);\n\t\t\t\t$quote->setCollTotalAmount($orderDetails['order']['totalAmount']);\n\t\t\t\tif($orderDetails['reference'] == $orderReservedId){\n\t\t\t\t\t$quote->setReservedOrderId($orderReservedId);\n\t\t\t\t} else {\n\t\t\t\t\t$quote->setReservedOrderId($orderDetails['reference']);\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t \t// Collect totals of the quote\n\t\t\t\t$quote->collectTotals();\n\t\t\t\t$quote->save();\n\t\t\t\t\n\t\t\t\t$service = Mage::getModel('sales/service_quote', $quote);\n\t\t\t\t$service->submitAll();\n\t\t\t\t$incrementId = $service->getOrder()->getRealOrderId();\n\t\t\t\t\n\t\t\t\tif($session->getIsSubscribed() == 1){\n\t\t\t\t\tMage::getModel('newsletter/subscriber')->subscribe($email);\n\t\t\t\t} \t\t\t\t\n\t\t\t\t\n\t\t\t\t$session->setLastQuoteId($quote->getId())\n\t\t\t\t\t->setLastSuccessQuoteId($quote->getId())\n\t\t\t\t\t->clearHelperData();\n\t\t\t\t\t\n\t\t\t\tMage::getSingleton('checkout/session')->clear();\n\t\t\t\tMage::getSingleton('checkout/cart')->truncate()->save();\n\t\t\t\t\n\t\t\t\t$session->unsPrivateId();\n\t\t\t\t$session->unsReference();\n\t\t\t\t\n\t\t\t\t // Log order created message\n\t\t\t\tMage::log('Order created with increment id: '.$incrementId, null, $logFileName);\t\t\t\t\t\t\n\t\t\t\t$result['success'] = true;\n\t\t\t\t$result['error'] = false;\n\t\t\t\t\n\t\t\t\t$order = Mage::getModel('sales/order')->loadByIncrementId($incrementId);\n\t\t\t\t\n\t\t\t\t$this->loadLayout();\n\t\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\t\tif ($block){//check if block actually exists\t\t\t\t\t\n\t\t\t\t\t\tif ($order->getId()) {\n\t\t\t\t\t\t\t$orderId = $order->getId();\n\t\t\t\t\t\t\t$isVisible = !in_array($order->getState(),Mage::getSingleton('sales/order_config')->getInvisibleOnFrontStates());\n\t\t\t\t\t\t\t$block->setOrderId($incrementId);\n\t\t\t\t\t\t\t$block->setIsOrderVisible($isVisible);\n\t\t\t\t\t\t\t$block->setViewOrderId($block->getUrl('sales/order/view/', array('order_id' => $orderId)));\n\t\t\t\t\t\t\t$block->setViewOrderUrl($block->getUrl('sales/order/view/', array('order_id' => $orderId)));\n\t\t\t\t\t\t\t$block->setPrintUrl($block->getUrl('sales/order/print', array('order_id'=> $orderId)));\n\t\t\t\t\t\t\t$block->setCanPrintOrder($isVisible);\n\t\t\t\t\t\t\t$block->setCanViewOrder(Mage::getSingleton('customer/session')->isLoggedIn() && $isVisible);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->renderLayout();\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (Mage_Core_Exception $e) {\n\t\t\t\t\t$result['success'] = false;\n\t\t\t\t\t$result['error'] = true;\n\t\t\t\t\t$result['error_messages'] = $e->getMessage(); \n\t\t\t\t\tMage::log('Order creation is failed for invoice no '.$orderDetails['purchase']['purchaseIdentifier'] .\"Error is --> \".Mage::helper('core')->jsonEncode($result), null, $logFileName);\t\t\n\t\t\t\t\t//Mage::app()->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));\n\t\t\t\t\t$this->loadLayout();\n\t\t\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\t\t\tif ($block){\n\t\t\t\t\t\tif($orderDetails['purchase']['purchaseIdentifier']){\n\t\t\t\t\t\t\t$block->setInvoiceNo($orderDetails['purchase']['purchaseIdentifier']);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$block->setCode(222);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->renderLayout();\t\t\t\t\t\n\t\t\t} \t\t\t\n\t\t} \n\t\t\n\t\t} else {\n\t\t\tMage::log('Order is already generated.', null, $logFileName);\t\t\n\t\t\t$this->loadLayout(); \n\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\tif ($block){\n\t\t\t\t$block->setCode(111);\n\t\t\t}\n\t\t\t$this->renderLayout();\n\t\t}\n\n\t\tMage::log('----------------- END ------------------------------- ', null, $logFileName);\t\t\n\t}", "protected function _loginPostRedirect()\n {\n $session = $this->_getSession();\n if ($session->isLoggedIn()) {\n $redirectUrl = Mage::getUrl('/');\n } else {\n $redirectUrl = Mage::getUrl('customer/account/login');\n }\n $this->_redirectUrl($redirectUrl);\n }", "public function authorize()\n {\n return Cart::load()->getTotalQuantity() > 1;\n }", "public function redirectLoginNotApproved(Varien_Event_Observer $observer)\n {\n $event = $observer->getEvent();\n\n // members-only is enabled for store\n if ($this->config->isMembersOnlyStore()) {\n\n /** @var Mage_Customer_Model_Customer $customer */\n $customer = $event->getCustomer();\n\n if (!$customer->getMemberApproved()) {\n\n $customerSession = $this->getCustomerSession();\n\n $customerSession->logout();\n\n $customerSession->renewSession();\n\n $this->helper->displayNotice('CUSTOMER_NOT_APPROVED');\n\n }\n\n }\n }", "public function checkAndRedirectUserToFinishUrl(){\n if(isset($_COOKIE['wc_midtrans_last_order_finish_url'])){\n // authorized transacting-user\n wp_redirect($_COOKIE['wc_midtrans_last_order_finish_url']);\n }else{\n // else, unauthorized user, redirect to shop homepage by default.\n wp_redirect( get_permalink( wc_get_page_id( 'shop' ) ) );\n }\n }", "public function redirectAction()\n {\n $model = new KBariotis_NBP_Model_NBP();\n\n $redirectUrl = $model->getRedirectUrl();\n\n if ($redirectUrl)\n $this->_redirectUrl($redirectUrl);\n else\n $this->_redirectUrl(Mage::getUrl('checkout/onepage/failure'));\n }", "public function redirectAction()\n {\n /** @var $session Mage_Checkout_Model_Session */\n $session = Mage::getSingleton('checkout/session');\n\n /** @var $checkout MultiSafepay_Msp_Model_Checkout */\n $checkout = Mage::getModel(\"msp/checkout\");\n\n // empty cart -> redirect\n if (!$session->getQuote()->hasItems()) {\n $this->getResponse()->setRedirect(Mage::getUrl('checkout/cart'));\n return;\n }\n\n // create new quote\n /** @var $storeQuote Mage_Sales_Model_Quote */\n $storeQuote = Mage::getModel('sales/quote')->setStoreId(Mage::app()->getStore()->getId());\n $storeQuote->setCustomerId(Mage::getModel('customer/session')->getCustomerId());\n $storeQuote->merge($session->getQuote());\n $storeQuote->setItemsCount($session->getQuote()->getItemsCount())->setItemsQty($session->getQuote()->getItemsQty())->setChangedFlag(false);\n $storeQuote->save();\n\n $baseCurrency = $session->getQuote()->getBaseCurrencyCode();\n $currency = Mage::app()->getStore($session->getQuote()->getStoreId())->getBaseCurrency();\n $session->getQuote()->collectTotals()->save();\n\n // replace quote into session\n $oldQuote = $session->getQuote();\n $oldQuote->setIsActive(false)->save();\n $session->replaceQuote($storeQuote);\n Mage::getModel('checkout/cart')->init();\n Mage::getModel('checkout/cart')->save();\n\n // checkout\n $checkoutLink = $checkout->startCheckout();\n\n header(\"Location: \" . $checkoutLink);\n exit();\n }", "public function successAction()\n {\n $event = Mage::getModel('payanyway/event')\n ->setEventData($this->getRequest()->getParams());\n try {\n $quoteId = $event->successEvent();\n $this->_getCheckout()->setLastSuccessQuoteId($quoteId);\n $this->_redirect('checkout/onepage/success');\n return;\n } catch (Mage_Core_Exception $e) {\n $this->_getCheckout()->addError($e->getMessage());\n } catch(Exception $e) {\n Mage::logException($e);\n }\n $this->_redirect('checkout/cart');\n }", "public function validateCustomerEdit()\n {\n $customer = $this->_objectManager->create(\n \\Magento\\Customer\\Model\\Customer::class\n )->load(\n $this->_request->getParam('id')\n );\n if ($customer->getId() && !in_array($customer->getWebsiteId(), $this->_role->getRelevantWebsiteIds())) {\n $this->_forward();\n }\n }", "public function vpup_set_cart() \n {\n // Used to decide if we need to redirect to the cart. \n $should_redirect = false;\n\n // TODO: Refactor this to be dynamic. \n // Check our Product Quantity then add a cart item, if we have any items. \n if( $_GET[ 'vetCertQuantity' ] > 0 ) {\n WC()->cart->add_to_cart( 147, $_GET[ 'vetCertQuantity'] );\n $should_redirect = true;\n }\n\n // Check our Product Quantity then add a cart item, if we have any items. \n if( $_GET[ 'vetCertAvianQuantity' ] > 0 ) {\n WC()->cart->add_to_cart( 149, $_GET[ 'vetCertAvianQuantity'] );\n $should_redirect = true;\n }\n\n // Check our Product Quantity then add a cart item, if we have any items. \n if( $_GET[ 'groomerQuantity' ] > 0 ) {\n WC()->cart->add_to_cart( 150, $_GET[ 'groomerQuantity'] );\n $should_redirect = true;\n }\n\n // Check our Product Quantity then add a cart item, if we have any items. \n if( $_GET[ 'trainerQuantity' ] > 0 ) {\n WC()->cart->add_to_cart( 151, $_GET[ 'trainerQuantity'] );\n $should_redirect = true;\n }\n\n // Return our cart redirect value\n return $should_redirect;\n }", "function redirect_to_checkout( $checkout_url ) {\n global $woocommerce;\n if( ! empty( $_GET['quick_buy'] ) ) {\n $checkout_url = $woocommerce->cart->get_checkout_url();\n }\n return $checkout_url;\n}", "public function checkoutPage()\n {\n $cartSession = session('cart');\n // Check if cart has a product\n if (empty($cartSession) || empty($cartSession[\"products\"])) {\n return redirect()->back()->withErrors(['You need to add a product in your cart!']);\n }\n\n // buildCardData() returns an array with\n // \"products\" => product data from DB\n // \"cartProducts\" => products ids and quantities\n // \"productCost\" => sum of products\n // \"shippingCost\" => cost of shipping methods\n return view('checkout', $this->orderHandler->buildCartData());\n }", "function checkout_redirect_page() {\r\n\t\tglobal $blog_id;\r\n\r\n\t\t/*\r\n\t\tif( !current_user_can('edit_pages') ) {\r\n\t\t\techo \"<p>\" . __('Nice Try...', 'psts') . \"</p>\"; //If accessed properly, this message doesn't appear.\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t*/\r\n\r\n\t echo '<div class=\"wrap\">';\r\n\t echo \"<script type='text/javascript'>window.location='\".$this->checkout_url($blog_id).\"';</script>\";\r\n\t echo '<a href=\"'.$this->checkout_url($blog_id).'\">Go Here</a>';\r\n\t echo '</div>'; //div wrap\r\n\t}", "public function bsuccessAction() {\n\t\t\n\t\t$session = Mage::getSingleton('checkout/session');\n\t\t\n\t\t$logFileName = 'magentoorder.log';\n\t\t\n\t\tMage::log('----------------- START ------------------------------- ', null, $logFileName);\t\n\t\t\n\t\t$quote = $session->getQuote();\n\t\t$quoteId = $quote->getEntityId();\n\t\t\n\t\t\n\t\t$typeData = $session->getTypeData();\n\t\t\n\t\t$privateId = $session->getBusinessPrivateId();\n\t\tif($privateId){\n\t\t\t$orderData = Mage::getModel('collectorbank/api')->getOrderResponse();\t\n\t\t\t//echo \"<pre>business \";print_r($orderData);die;\n\t\t\tif(isset($orderData['error'])){\n\t\t\t\t$session->addError($orderData['error']['message']);\n\t\t\t\t$this->_redirect('checkout/cart');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$orderDetails = $orderData['data'];\t\t\n\t\t\n\t\t\n\t\tif($orderDetails){\t\t\n\t\t\t$email = $orderDetails['businessCustomer']['email'];\n\t\t\t$mobile = $orderDetails['businessCustomer']['mobilePhoneNumber'];\n\t\t\t$firstName = $orderDetails['businessCustomer']['deliveryAddress']['companyName'];\n\t\t\t$lastName = $orderDetails['businessCustomer']['referencePerson'];\n\t\t\t\n\t\t\t\n\t\t\t$store = Mage::app()->getStore();\n\t\t\t$website = Mage::app()->getWebsite();\n\t\t\t$customer = Mage::getModel('customer/customer')->setWebsiteId($website->getId())->loadByEmail($email);\n\t\t\t\t// if the customer is not already registered\n\t\t\t\tif (!$customer->getId()) {\n\t\t\t\t\t$customer = Mage::getModel('customer/customer');\t\t\t\n\t\t\t\t\t$customer->setWebsiteId($website->getId())\n\t\t\t\t\t\t\t ->setStore($store)\n\t\t\t\t\t\t\t ->setFirstname($firstName)\n\t\t\t\t\t\t\t ->setLastname($lastName)\n\t\t\t\t\t\t\t ->setEmail($email); \n\t\t\t\t\ttry {\n\t\t\t\t\t \n\t\t\t\t\t\t$password = $customer->generatePassword(); \n\t\t\t\t\t\t$customer->setPassword($password); \n\t\t\t\t\t\t// set the customer as confirmed\n\t\t\t\t\t\t$customer->setForceConfirmed(true); \n\t\t\t\t\t\t// save customer\n\t\t\t\t\t\t$customer->save(); \n\t\t\t\t\t\t$customer->setConfirmation(null);\n\t\t\t\t\t\t$customer->save();\n\t\t\t\t\t\t\n\t\t\t\t\t\t// set customer address\n\t\t\t\t\t\t$customerId = $customer->getId(); \n\t\t\t\t\t\t$customAddress = Mage::getModel('customer/address'); \n\t\t\t\t\t\t$customAddress->setData($billingAddress)\n\t\t\t\t\t\t\t\t\t ->setCustomerId($customerId)\n\t\t\t\t\t\t\t\t\t ->setIsDefaultBilling('1')\n\t\t\t\t\t\t\t\t\t ->setIsDefaultShipping('1')\n\t\t\t\t\t\t\t\t\t ->setSaveInAddressBook('1');\n\t\t\t\t\t\t\n\t\t\t\t\t\t// save customer address\n\t\t\t\t\t\t$customAddress->save();\n\t\t\t\t\t\t// send new account email to customer \n\t\t\t\t\t\t\n\t\t\t\t\t\t$storeId = $customer->getSendemailStoreId();\n\t\t\t\t\t\t$customer->sendNewAccountEmail('registered', '', $storeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\tMage::log('Customer with email '.$email.' is successfully created.', null, $logFileName);\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Mage_Core_Exception $e) {\t\t\t\t\t\t\n\t\t\t\t\t\tMage::log('Cannot add customer for '.$e->getMessage(), null, $logFileName);\n\t\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t\tMage::log('Cannot add customer for '.$email, null, $logFileName);\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t\t\n\t\t\t// Assign Customer To Sales Order Quote\n\t\t\t$quote->assignCustomer($customer);\n\t\t\t\n\t\t\tif($orderDetails['businessCustomer']['deliveryAddress']['country'] == 'Sverige'){\t$scountry_id = \"SE\";\t}\n\t\t\tif($orderDetails['businessCustomer']['invoiceAddress']['country'] == 'Sverige'){ $bcountry_id = \"SE\";\t}\n\t\t\t\n\t\t\t$billingAddress = array(\n\t\t\t\t'customer_address_id' => '',\n\t\t\t\t'prefix' => '',\n\t\t\t\t'firstname' => $firstName,\n\t\t\t\t'middlename' => '',\n\t\t\t\t'lastname' => $lastName,\n\t\t\t\t'suffix' => '',\n\t\t\t\t'company' => $orderDetails['businessCustomer']['invoiceAddress']['companyName'], \n\t\t\t\t'street' => array(\n\t\t\t\t\t '0' => $orderDetails['businessCustomer']['invoiceAddress']['address'], // compulsory\n\t\t\t\t\t '1' => $orderDetails['businessCustomer']['invoiceAddress']['address2'] // optional\n\t\t\t\t ),\n\t\t\t\t'city' => $orderDetails['businessCustomer']['invoiceAddress']['city'],\n\t\t\t\t'country_id' => $scountry_id, // two letters country code\n\t\t\t\t'region' => '', // can be empty '' if no region\n\t\t\t\t'region_id' => '', // can be empty '' if no region_id\n\t\t\t\t'postcode' => $orderDetails['businessCustomer']['invoiceAddress']['postalCode'],\n\t\t\t\t'telephone' => $mobile,\n\t\t\t\t'fax' => '',\n\t\t\t\t'save_in_address_book' => 1\n\t\t\t);\n\t\t\n\t\t\t$shippingAddress = array(\n\t\t\t\t'customer_address_id' => '',\n\t\t\t\t'prefix' => '',\n\t\t\t\t'firstname' => $firstName,\n\t\t\t\t'middlename' => '',\n\t\t\t\t'lastname' => $lastName,\n\t\t\t\t'suffix' => '',\n\t\t\t\t'company' => $orderDetails['businessCustomer']['deliveryAddress']['companyName'], \n\t\t\t\t'street' => array(\n\t\t\t\t\t '0' => $orderDetails['businessCustomer']['deliveryAddress']['address'], // compulsory\n\t\t\t\t\t '1' => $orderDetails['businessCustomer']['deliveryAddress']['address2'] // optional\n\t\t\t\t ),\n\t\t\t\t'city' => $orderDetails['businessCustomer']['deliveryAddress']['city'],\n\t\t\t\t'country_id' => $scountry_id, // two letters country code\n\t\t\t\t'region' => '', // can be empty '' if no region\n\t\t\t\t'region_id' => '', // can be empty '' if no region_id\n\t\t\t\t'postcode' => $orderDetails['businessCustomer']['deliveryAddress']['postalCode'],\n\t\t\t\t'telephone' => $mobile,\n\t\t\t\t'fax' => '',\n\t\t\t\t'save_in_address_book' => 1\n\t\t\t);\n\t\t\n\t\t\n\t\t\t// Add billing address to quote\n\t\t\t$billingAddressData = $quote->getBillingAddress()->addData($billingAddress);\n\t\t \n\t\t\t// Add shipping address to quote\n\t\t\t$shippingAddressData = $quote->getShippingAddress()->addData($shippingAddress);\n\t\t\t\n\t\t\t//check for selected shipping method\n\t\t\t$shippingMethod = $session->getSelectedShippingmethod();\n\t\t\tif(empty($shippingMethod)){\n\t\t\t\t$allShippingData = Mage::getModel('collectorbank/config')->getActiveShppingMethods();\n\t\t\t\t$orderItems = $orderDetails['order']['items'];\n\t\t\t\tforeach($orderItems as $oitem){\n\t\t\t\t\t//echo \"<pre>\";print_r($oitem);\n\t\t\t\t\tif(in_array($oitem['id'], $allShippingData)) {\n\t\t\t\t\t\t$shippingMethod = $oitem['id'];\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Collect shipping rates on quote shipping address data\n\t\t\t$shippingAddressData->setCollectShippingRates(true)->collectShippingRates();\n\n\t\t\t// Set shipping and payment method on quote shipping address data\n\t\t\t$shippingAddressData->setShippingMethod($shippingMethod);\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t$paymentMethod = 'collectorbank_invoice';\n\t\t\t// Set shipping and payment method on quote shipping address data\n\t\t\t$shippingAddressData->setPaymentMethod($paymentMethod);\t\t\t\n\t\t\t\n\t\t\t$colpayment_method = $orderDetails['purchase']['paymentMethod'];\n\t\t\t$colpayment_details = json_encode($orderDetails['purchase']);\n\t\t\t\n\t\t\t\n\t\t\t// Set payment method for the quote\n\t\t\t$quote->getPayment()->importData(array('method' => $paymentMethod,'coll_payment_method' => $colpayment_method,'coll_payment_details' => $colpayment_details));\n\t\t\t\n\t\t\t//die;\n\t\t\ttry{\n\t\t\t\t$orderReservedId = $session->getReference();\n\t\t\t\t$quote->setResponse($orderDetails);\n\t\t\t\t$quote->setCollCustomerType($orderDetails['customerType']);\n\t\t\t\t$quote->setCollBusinessCustomer($orderDetails['businessCustomer']);\n\t\t\t\t$quote->setCollStatus($orderDetails['status']);\n\t\t\t\t$quote->setCollPurchaseIdentifier($orderDetails['purchase']['purchaseIdentifier']);\n\t\t\t\t$quote->setCollTotalAmount($orderDetails['order']['totalAmount']);\n\t\t\t\tif($orderDetails['reference'] == $orderReservedId){\n\t\t\t\t\t$quote->setReservedOrderId($orderReservedId);\n\t\t\t\t} else {\n\t\t\t\t\t$quote->setReservedOrderId($orderDetails['reference']);\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t \t// Collect totals of the quote\n\t\t\t\t$quote->collectTotals();\n\t\t\t\t$quote->save();\n\t\t\t\t\n\t\t\t\t$service = Mage::getModel('sales/service_quote', $quote);\n\t\t\t\t$service->submitAll();\n\t\t\t\t$incrementId = $service->getOrder()->getRealOrderId();\n\t\t\t\t\n\t\t\t\tif($session->getIsSubscribed() == 1){\n\t\t\t\t\tMage::getModel('newsletter/subscriber')->subscribe($email);\n\t\t\t\t} \t\t\t\t\n\t\t\t\t\n\t\t\t\t$session->setLastQuoteId($quote->getId())\n\t\t\t\t\t->setLastSuccessQuoteId($quote->getId())\n\t\t\t\t\t->clearHelperData();\n\t\t\t\t\t\n\t\t\t\tMage::getSingleton('checkout/session')->clear();\n\t\t\t\tMage::getSingleton('checkout/cart')->truncate()->save();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$session->unsBusinessPrivateId();\n\t\t\t\t$session->unsReference();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t // Log order created message\n\t\t\t\tMage::log('Order created with increment id: '.$incrementId, null, $logFileName);\t\t\t\t\t\t\n\t\t\t\t$result['success'] = true;\n\t\t\t\t$result['error'] = false;\n\t\t\t\t\n\t\t\t\t$order = Mage::getModel('sales/order')->loadByIncrementId($incrementId);\n\t\t\t\t\n\t\t\t\t$this->loadLayout();\n\t\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\t\tif ($block){//check if block actually exists\t\t\t\t\t\n\t\t\t\t\t\tif ($order->getId()) {\n\t\t\t\t\t\t\t$orderId = $order->getId();\n\t\t\t\t\t\t\t$isVisible = !in_array($order->getState(),Mage::getSingleton('sales/order_config')->getInvisibleOnFrontStates());\n\t\t\t\t\t\t\t$block->setOrderId($incrementId);\n\t\t\t\t\t\t\t$block->setIsOrderVisible($isVisible);\n\t\t\t\t\t\t\t$block->setViewOrderId($block->getUrl('sales/order/view/', array('order_id' => $orderId)));\n\t\t\t\t\t\t\t$block->setViewOrderUrl($block->getUrl('sales/order/view/', array('order_id' => $orderId)));\n\t\t\t\t\t\t\t$block->setPrintUrl($block->getUrl('sales/order/print', array('order_id'=> $orderId)));\n\t\t\t\t\t\t\t$block->setCanPrintOrder($isVisible);\n\t\t\t\t\t\t\t$block->setCanViewOrder(Mage::getSingleton('customer/session')->isLoggedIn() && $isVisible);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->renderLayout();\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (Mage_Core_Exception $e) {\n\t\t\t\t\t$result['success'] = false;\n\t\t\t\t\t$result['error'] = true;\n\t\t\t\t\t$result['error_messages'] = $e->getMessage(); \n\t\t\t\t\tMage::log('Order creation is failed for invoice no '.$orderDetails['purchase']['purchaseIdentifier'] .\"Error is --> \".Mage::helper('core')->jsonEncode($result), null, $logFileName);\t\t\n\t\t\t\t\t$this->loadLayout();\n\t\t\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\t\t\tif ($block){\n\t\t\t\t\t\tif($orderDetails['purchase']['purchaseIdentifier']){\n\t\t\t\t\t\t\t$block->setInvoiceNo($orderDetails['purchase']['purchaseIdentifier']);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$block->setCode(222);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->renderLayout();\t\t\t\t\t\n\t\t\t} \t\t\t\n\t\t} \n\t\t\n\t\t} else {\n\t\t\tMage::log('Order is already generated.', null, $logFileName);\t\t\n\t\t\t$this->loadLayout(); \n\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\tif ($block){\n\t\t\t\t$block->setCode(111);\n\t\t\t}\n\t\t\t$this->renderLayout();\n\t\t}\n\n\t\tMage::log('----------------- END ------------------------------- ', null, $logFileName);\t\t\n\t}", "function withdrawrequestAction() {\n /**\n * Check whether customer logged in or not\n */\n if (! $this->_getSession ()->isLoggedIn ()) {\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( 'You must have a Seller Account to access this page' ) );\n $this->_redirect ( 'marketplace/seller/login' );\n return;\n }\n /**\n * load and render layout\n */\n $this->loadLayout ();\n $this->renderLayout ();\n }", "public function check_cointopay_response() {\n\t\t\tglobal $woocommerce;\n\t\t\t$woocommerce->cart->empty_cart();\n\t\t\t$orderid = ( !empty(intval($_REQUEST['CustomerReferenceNr'])) ) ? intval($_REQUEST['CustomerReferenceNr']) : 0;\n\t\t\t$ordstatus = ( !empty(sanitize_text_field($_REQUEST['status'])) ) ? sanitize_text_field($_REQUEST['status']) : '';\n\t\t\t$ordtransactionid = ( !empty(sanitize_text_field($_REQUEST['TransactionID'])) ) ? sanitize_text_field($_REQUEST['TransactionID']) : '';\n\t\t\t$ordconfirmcode = ( !empty(sanitize_text_field($_REQUEST['ConfirmCode'])) ) ? sanitize_text_field($_REQUEST['ConfirmCode']) : '';\n\t\t\t$notenough = ( isset($_REQUEST['notenough']) ) ? intval($_REQUEST['notenough']) : '';\n\n\t\t\t$order = new WC_Order($orderid);\n\t\t\t$data = array(\n\t\t\t\t'mid' => $this->merchantid,\n\t\t\t\t'TransactionID' => $ordtransactionid,\n\t\t\t\t'ConfirmCode' => $ordconfirmcode,\n\t\t\t);\n\t\t\t$transactionData = $this->validate_order($data);\n\t\t\tif(200 !== $transactionData['status_code']){\n\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">'.$transactionData['message'] .'</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\t get_footer();\n\t\t\t\t\texit;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif($transactionData['data']['Security'] != $ordconfirmcode){\n\t\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">Data mismatch! ConfirmCode doesn\\'t match</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\telseif($transactionData['data']['CustomerReferenceNr'] != $orderid){\n\t\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">Data mismatch! CustomerReferenceNr doesn\\'t match</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\telseif($transactionData['data']['TransactionID'] != $ordtransactionid){\n\t\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">Data mismatch! TransactionID doesn\\'t match</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\telseif($transactionData['data']['Status'] != $ordstatus){\n\t\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">Data mismatch! status doesn\\'t match. Your order status is '. $transactionData['data']['Status'].'</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (( 'paid' === $ordstatus ) && ( 0 === $notenough )) {\n\t\t\t\t\t// Do your magic here, and return 200 OK to Cointopay.\n\t\t\t\t\tif ('processing' === $order->status) {\n\t\t\t\t\t\t$order->update_status('processing', sprintf(__('IPN: Payment completed notification from Cointopay', 'woocommerce')));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$order->payment_complete();\n\t\t\t\t\t\t$order->update_status('processing', sprintf(__('IPN: Payment completed notification from Cointopay', 'woocommerce')));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$order->save();\n\t\t\t\t\t\n\t\t\t\t\t$order->add_order_note( __( 'IPN: Update status event for Cointopay to status COMPLETED:', 'woocommerce' ) . ' ' . $orderid);\n\n\t\t\t\t\tget_header();\n\t\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#0fad00\">Success!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/check.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">The payment has been received and confirmed successfully.</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #0fad00;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br><br><br></div></div></div>';\n\t\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t} elseif ('failed' === $ordstatus && 1 === $notenough) {\n\t\t\t\t\t$order->update_status('on-hold', sprintf(__('IPN: Payment failed notification from Cointopay because notenough', 'woocommerce')));\n\t\t\t\t\tget_header();\n\t\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">The payment has been failed.</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br><br><br></div></div></div>';\n\t\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t} else {\n\t\t\t\t\t$order->update_status('failed', sprintf(__('IPN: Payment failed notification from Cointopay', 'woocommerce')));\n\t\t\t\t\tget_header();\n\t\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">The payment has been failed.</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color:#ff0000;border:none;color: white;padding:15px 32px;text-align: center;text-decoration:none;display:inline-block;font-size:16px;\">Back</a><br><br><br><br></div></div></div>';\n\t\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}//end if\n\t\t\t\n\n\t\t}", "function pre_confirmation_check() {\n global $cartID;\n global $cart;\n \n if (empty($cart->cartID)) {\n $cartID = $cart->cartID = $cart->generate_cart_id();\n }\n \n if (! tep_session_is_registered('cartID')) {\n tep_session_register('cartID');\n }\n }", "function localproduct_add_to_cart_redirect() {\n\t\tglobal $woocommerce;\n\t\t$checkout_url = $woocommerce->cart->get_checkout_url();\n\n\t\treturn $checkout_url;\n\t}", "public function returnAction() \n\t\t{\n\t\t\t$oIdealcheckoutdirectebankingModel = Mage::getSingleton('idealcheckoutdirectebanking/idealcheckoutdirectebanking');\n\n\t\t\t$sOrderId = $this->getRequest()->get('order_id');\n\t\t\t$sOrderCode = $this->getRequest()->get('order_code');\n\n\t\t\tif($oIdealcheckoutdirectebankingModel->validatePayment($sOrderId, $sOrderCode))\n\t\t\t{ \n\t\t\t\t$this->_redirect('checkout/onepage/success', array('_secure' => true));\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t$this->_redirect('checkout/cart');\n\t\t\t} \n\t\t}", "private function _redirect()\n\t{\n\n\t\t$this->_urlPagSeguro = $this->request->post['url_ps'];\n\n\t\tif (!empty($this->_urlPagSeguro )) {\n\t\t\theader('Location: ' . $this->_urlPagSeguro);\n\t\t\t$this->cart->clear();\n\t\t}\n\t}", "public function checkout()\n {\n if(session()->has('cart') && count(session()->get('cart')) == 0){\n return 'none';\n }\n\n\n //Joseph-190508 >>>\n //if(Cart::where('user_id', auth()->id())->delete()){\n //if(auth()->user()->carts()->delete()){\n if(true){ //tmp\n //Joseph-190508 <<< \n /* if(session()->has('cart'))\n {\n session(['cart' => []]);\n } */\n return 'true';\n }\n else{\n return 'false';\n }\n }", "public function redirectAction()\n {\n $session = Mage::getSingleton('checkout/session');\n $session->setAlipayPaymentQuoteId($session->getQuoteId());\n\n $order = $this->getOrder();\n\n if (!$order->getId()) {\n $this->norouteAction();\n return;\n }\n\n $order->addStatusToHistory(\n $order->getStatus(),\n Mage::helper('alipay')->__('客户跳转到支付宝网站')\n );\n $order->save();\n\n $this->getResponse()\n ->setBody($this->getLayout()\n ->createBlock('alipay/redirect')\n ->setOrder($order)\n ->toHtml());\n\n $session->unsQuoteId();\n }", "public function index()\n {\n if(Cart::content()->isNotEmpty()){\n return view('order.checkout');\n }else{\n return redirect()->route('acceuil', app()->getLocale());\n }\n \n }", "public function get_out()\n {\n if((Session::has('cus_id')) || (Session::has('shipping'))){\n $customer = Customer::where('id',Session::get('cus_id'))->first();\n }\n else {\n $customer = false;\n }\n if(Cart::content() == '[]'){\n return redirect()->route('home');\n }\n $content = Cart::content();\n return view('pages.checkout.checkout',compact('content','customer'));\n }", "public function checkout()\n\t{\t\n\t\t// Sanitize User Input\n\t\t$input = [];\n\t\tforeach(Input::all() as $key=>$val) {\n\t\t\t$input[$key]= $val;\n\t\t}\n\n\t\t// Instantiate PayPal API \n\t\t$result = App::make('tools\\Billing\\BillingInterface');\n\t\t\n\t\t// Make Request to PayPal API\n\t\t// Passes the transaction ID to pull\n\t\t// the transaction info. from the database\n\t\t// Returns a Pay Key to point to PayPal transaction\n\t\t$result = $result->charge(['hash'=>$input['hash']]);\n\n\t\t// Append the Pay Key to the PayPal End Point\n\t\t$url = 'https://www.paypal.com/cgi-bin/webscr?cmd=_ap-payment&paykey='\n\t\t\t\t.$result['payKey'];\n\n\t\t// Redirect Client to PayPal for Checkout\t\t\n\t\treturn Redirect::to($url);\n\t}", "public function index()\n { \n if(Auth::check()){\n $user_id = auth::user()->id;\n if($user_id==2){\n return redirect('/delivery/payment');\n } \n }\n return view('admin_ui.view-product');\n }", "public function validateCustomerbalance()\n {\n if (!($id = $this->_request->getParam('id'))) {\n $this->_forward();\n return;\n }\n $customer = $this->_objectManager->create(\\Magento\\Customer\\Model\\Customer::class)->load($id);\n if (!$customer->getId() || !in_array($customer->getWebsiteId(), $this->_role->getRelevantWebsiteIds())) {\n $this->_forward();\n }\n }", "public function checkoutController(ViewInterface $view, Request $request) {\n\t\tLoggerRegistry::debug('CustomerModule::checkoutController()');\n\t\t$trolleyData = $this->trolley()->getData();\n\t\tif (!empty($trolleyData)) {\n\t\t\tif ($this->getEngine()->getUserManager()->isLoggedIn()) {\n\t\t\t\t$view['form-key'] = $this->config('checkout.form-key');\n\t\t\t\t$view['activate-script'] = $this->config('checkout.activate-script');\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new RedirectResponse($this->getEngine()->userIntegration()->getAuthenticationLinkUrl('login', $request));\n\t\t\t}\n\t\t} else {\n\t\t\treturn new RedirectResponse($this->getRouteUrl('trolley'));\n\t\t}\n\t}", "public function index(Request $request)\n {\n $products = $this->cartRepo->getCartItems();\n\n // if(!auth()->check())\n // {\n // return redirect()->route('login')->with(['error' => 'Login / Register in order to checkout']);\n // }\n\n $customer = $request->user();\n\n $courier = $this->courierRepo->findCourierById(request()->session()->get('courierId', 1));\n $shippingFee = $this->cartRepo->getShippingFee($courier);\n\n\n $countries = Country::get();\n //Check the if impression kit is in cart then show medical form as checkout page otherwise show simple checkout page\n $impressionKit = false;\n $aligners = false;\n\n foreach($this->cartRepo->getCartItems() as $item)\n {\n $product = Product::with(['categories'])->find($item->id);\n foreach($product->categories as $category)\n {\n if($category->label == \"IK\")\n $impressionKit = true;\n\n if($category->label == \"Aligners\")\n $aligners = true;\n }\n }\n\n $statesList = array(\"AL\"=>\"Alabama\", \"AK\"=>\"Alaska\", \"AZ\"=>\"Arizona\", \"AR\"=>\"Arkansas\", \"CA\"=>\"California\", \"CO\"=>\"Colorado\", \"CT\"=>\"Connecticut\", \"DE\"=>\"Delaware\", \"DC\"=>\"District of Columbia\", \"FL\"=>\"Florida\", \"GA\"=>\"Georgia\", \"HI\"=>\"Hawaii\", \"ID\"=>\"Idaho\", \"IL\"=>\"Illinois\", \"IN\"=>\"Indiana\", \"IA\"=>\"Iowa\", \"KS\"=>\"Kansas\", \"KY\"=>\"Kentucky\", \"LA\"=>\"Louisiana\", \"ME\"=>\"Maine\", \"MD\"=>\"Maryland\", \"MA\"=>\"Massachusetts\", \"MI\"=>\"Michigan\", \"MN\"=>\"Minnesota\", \"MS\"=>\"Mississippi\", \"MO\"=>\"Missouri\", \"MT\"=>\"Montana\", \"NE\"=>\"Nebraska\", \"NV\"=>\"Nevada\", \"NH\"=>\"New Hampshire\", \"NJ\"=>\"New Jersey\", \"NM\"=>\"New Mexico\", \"NY\"=>\"New York\", \"NC\"=>\"North Carolina\", \"ND\"=>\"North Dakota\", \"OH\"=>\"Ohio\", \"OK\"=>\"Oklahoma\", \"OR\"=>\"Oregon\", \"PA\"=>\"Pennsylvania\", \"RI\"=>\"Rhode Island\", \"SC\"=>\"South Carolina\", \"SD\"=>\"South Dakota\", \"TN\"=>\"Tennessee\", \"TX\"=>\"Texas\", \"UT\"=>\"Utah\", \"VT\"=>\"Vermont\", \"VA\"=>\"Virginia\", \"WA\"=>\"Washington\", \"WV\"=>\"West Virginia\", \"WI\"=>\"Wisconsin\",\"WY\"=>\"Wyoming\");\n\n\n // if($impressionKit)\n // $view = 'front.checkout';\n // else\n $view = 'front.checkout.checkout2-update';\n\n return view($view, [\n 'customer' => $customer ?: null,\n 'billingAddress' => '',\n 'address' => $customer ? $customer->addresses()->first() : null,\n 'products' => $this->cartRepo->getCartItems(),\n 'subtotal' => $this->cartRepo->getSubTotal(),\n 'tax' => $this->cartRepo->getTax(),\n 'total' => $this->cartRepo->getSubTotal(),\n 'cartItems' => $this->cartRepo->getCartItemsTransformed(),\n 'shippingFee' => $shippingFee,\n 'countries' => $countries,\n 'aligners' => $aligners,\n 'statesList' => $statesList,\n ]);\n }", "function checkout_check() {\n\t\treturn false;\n\t}", "public function indexAction() {\r\n if($this->Request()->getParam('controller', false)==\"sKUZOOffer\") {\r\n return $this->forward('offers');\r\n }\r\n\r\n if ($this->basket->sCountBasket()<1 || empty($this->View()->sUserLoggedIn)) {\r\n $this->forward('cart');\r\n } else {\r\n $this->forward('confirm');\r\n }\r\n }", "function bootscore_redirect_on_login_failed() {\n if (!WC()->session->has_session()) {\n WC()->session->set_customer_session_cookie(true);\n }\n wp_redirect(wp_validate_redirect(wc_get_page_permalink('myaccount')));\n exit;\n}", "public function mustRedirect();", "public function kick_pro_suc(){\n\n\t\tif (empty($_GET['order_success'])) {\n\n\t\t\t$this->redirect_to('index.php');\n\t\t}\n\t}", "public function authorize()\n\t{\n\t\treturn current_user()->hasValidCoffeeShop();\n\t}", "public function abortAction()\n {\n /** @var $session Mage_Checkout_Model_Session */\n $session = Mage::getSingleton('checkout/session');\n $order = Mage::getModel('sales/order');\n\n try {\n /** @var $order Mage_Sales_Model_Order */\n\n $order->loadByIncrementId($session->getLastRealOrderId());\n $order->addStatusHistoryComment('Customer cancelled the payment',false);\n\n if (!$order->getId()) {\n Mage::throwException('No order for processing found');\n }\n if($order->canCancel()) {\n $order->cancel()->save();\n }\n } catch (Exception $e) {\n\n }\n\n $quote = Mage::getSingleton('sales/quote');\n $quote->load($order->getQuoteId());\n $session->setQuoteId($order->getQuoteId());\n $session->getQuote()->setIsActive(1)->save();\n\n // redirect customer to the cart (dirty)\n $redirectUrl = Mage::helper('checkout/cart')->getCartUrl();\n $block = new Mage_Core_Block_Template();\n $block->setTemplate('mcpservice/redirect.phtml');\n $block->assign('url',$redirectUrl);\n $block->assign('media_url',Mage::getBaseUrl() . '/../../media/micropayment/');\n $block->assign('year',date('Y'));\n $block->assign('payment_method',$order->getPayment());\n $block->assign('target','parent');\n\n echo $block->renderView();\n\n }", "public function referredAction()\n {\n $this->_logger->debug(__('Calling referredAction'));\n try {\n $this->loadLayout()\n ->_initLayoutMessages('checkout/session')\n ->_initLayoutMessages('catalog/session')\n ->_initLayoutMessages('customer/session');\n $this->renderLayout();\n $this->_logger->info(__('Successful to redirect to referred page.'));\n } catch (\\Exception $e) {\n $this->_logger->error(json_encode($this->getRequest()->getParams()));\n $this->_logger->error($e->getMessage());\n $this->_getCheckoutSession()->addError($this->__('An error occurred during redirecting to referred page.'));\n }\n }", "function redirect_orders_no_login() {\n \n if ( is_user_logged_in() ) {\n return;\n }\n \n $order_id = isset( $_GET['order_id'] ) ? $_GET['order_id'] : false;\n \n if ( is_post_type_archive( 'shop_order' ) || ( true == $order_id ) ) {\n \n wp_redirect( sprintf( '%s#modal-sign-in', trailingslashit( site_url() ) ) ); \n exit;\n }\n}", "public function return_page_action ()\n\t{\n\t\t$status = $this->get_order_status($_GET['order_id']);\n\n\t\tif ($status == \"paid\")\n\t\t{\n\t\t\t// Cleanup cart and session.\n\t\t\tglobal $cart;\n\t\t\t$cart->reset(TRUE);\n\n\t\t\ttep_session_unregister(\"sendto\");\n\t\t\ttep_session_unregister(\"billto\");\n\t\t\ttep_session_unregister(\"shipping\");\n\t\t\ttep_session_unregister(\"payment\");\n\t\t\ttep_session_unregister(\"comments\");\n\n\t\t\t// Show success page.\n\t\t\theader(\"Location: /checkout_success.php\");\n\t\t}\n\t\telse \n\t\t{\n\t\t\t// Send back to cart.\n\t\t\theader(\"Location: /shopping_cart.php\");\n\t\t}\n\t}", "public function customers(){\r\n if(isset($_SESSION['admindata'])){\r\n $this->load->view('layout/header', $nav['navdisable'] = \"none\");\r\n $this->load->view('admin/customer');\r\n $this->load->view('layout/footer');\r\n } else {\r\n $this->load->view('layout/header');\r\n $this->load->view('admin/login');\r\n $this->load->view('layout/footer'); \r\n }\r\n }", "public function confirmAction()\n {\n try {\n $orderId = (int) $this->getRequest()->getParam('order_id');\n $hash = $this->getRequest()->getParam('hash');\n $this->loadValidOrder($orderId, $hash);\n\n //Load and render basic layout\n $this->loadLayout();\n\n // set page title\n $title = $this->getLayout()->getBlock('dhlonlineretoure_customer_address_edit')->getTitle();\n $this->getLayout()->getBlock('head')->setTitle($this->__($title));\n\n // set current navigation entry\n $navigationBlock = $this->getLayout()->getBlock('customer_account_navigation');\n if ($navigationBlock) {\n $navigationBlock->setActive('sales/order/history');\n }\n\n $this->renderLayout();\n } catch (Exception $e) {\n //Show error message to user\n Mage::getSingleton('core/session')->addError($e->getMessage());\n Mage::helper(\"dhlonlineretoure/data\")->log($e->getMessage());\n\n $this->_redirect('*/*/error');\n }\n }", "public function review()\n {\n $data = request()->all();\n\n if (! session()->has('subscription_cart') && ! isset($data['token'])) {\n return redirect()->route($this->_config['redirect']);\n }\n\n $nvps = \"&USER=\" . company()->getSuperConfigData('subscription.payment.paypal.user_name')\n . \"&PWD=\" . company()->getSuperConfigData('subscription.payment.paypal.password')\n . \"&SIGNATURE=\" . company()->getSuperConfigData('subscription.payment.paypal.signature')\n . \"&METHOD=GetExpressCheckoutDetails\" \n . \"&VERSION=108\" \n . \"&TOKEN=\" . $data['token'];\n \n $getEC = $this->paypalHelper->request($nvps);\n\n if (isset($data['PayerID'])) {\n session()->put('PayerID', $data['PayerID']);\n } else {\n session()->put('PayerID', $getEC['PAYERID']);\n }\n\n session()->put('token', $data['token']);\n \n return redirect()->route('admin.subscription.paypal.payment');\n }", "public function okAction() { \n $this->setSession();\n $this->setOrder($this->getOrderIdFromResponse());\n $this->setPayment();\n $this->checkHash($this->getPaymentHashFromResponse());\n $this->_session->getQuote()->setIsActive(false)->save();\n if ($this->isNewOrder()) {\n $this->_redirect('checkout/onepage/success', array('_secure'=>true)); \n } else {\n $this->loadLayout();\n $this->renderLayout(); \n } \n }", "public function customerLogin($observer) {\n\t\tif ($customerId = $observer->getCustomer()->getId()) {\n\t\t\t$helper = Mage::helper('rublonmodule');\n\t\t\t$helper->setModule(RublonMagentoModule::FRONT);\n\t\t\tif ($helper->isRublonConfigured() AND $helper->isRublonEnabled() AND $helper->isRublonSecuredUser($customerId)) {\n\t\t\t\t$helper->authenticateCustomer($observer);\n\t\t\t}\n\t\t}\n\t}", "public function success()\n {\n setcookie(\"shoppingCart\", \"\", time() - 3600, \"/\");\n return $this->twig->render('checkout/success.html.twig');\n }", "public function handle($request, Closure $next)\n { \n if(Cart::count() <= 0)\n { \n $request->session()->flash('status', 'In order to checkout you must have products in cart.');\n\n return redirect()->route('StoreCart');\n }\n\n return $next($request);\n }", "private function ConfirmOrder()\n\t{\n\t\tif(isset($_SESSION['CHECKOUT']['CHECKOUT_TYPE']) && $_SESSION['CHECKOUT']['CHECKOUT_TYPE'] == 'express') {\n\t\t\t$redirectOnError = getConfig('ShopPath').'/checkout.php?action=express';\n\t\t}\n\t\telse {\n\t\t\t$redirectOnError = getConfig('ShopPath').'/checkout.php?action=checkout';\n\t\t}\n\n\t\t// If guest checkout is not enabled and the customer isn't signed in then send the customer\n\t\t// back to the beginning of the checkout process.\n\t\tif(!GetConfig('GuestCheckoutEnabled') && !CustomerIsSignedIn()) {\n\t\t\tredirect($redirectOnError);\n\t\t}\n\n\t\t// The current quote cannot be finalized - don't let it proceed\n\t\tif(!$this->getQuote()->canBeFinalized()) {\n\t\t\tredirect($redirectOnError);\n\t\t}\n\n\t\t// ensure products are in stock\n\t\t$this->CheckStockLevels();\n\n\t\t// ensure that the applied coupon still valid\n\t\ttry {\n\t\t\t$this->getQuote()->reapplyCoupons(true);\n\t\t}\n\t\tcatch(ISC_QUOTE_EXCEPTION $e) {\n\t\t\t$GLOBALS['CheckoutErrorMsg'] = $e->getMessage();\n\t\t}\n\n\t\t$GLOBALS['EnterCouponCode'] = isc_html_escape(GetLang('EnterCouponCode'));\n\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->SetPageTitle(GetConfig('StoreName') . \" - \" . GetLang('ConfirmYourOrder'));\n\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate(\"checkout_confirm\");\n\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();\n\t}", "protected function _loginPostRedirect() {\n $session = $this->_getSession();\n\n if (!$session->getBeforeAuthUrl() || $session->getBeforeAuthUrl() == Mage::getBaseUrl()) {\n // Set default URL to redirect customer to\n $session->setBeforeAuthUrl(Mage::helper('customer')->getAccountUrl());\n // Redirect customer to the last page visited after logging in\n if ($session->isLoggedIn()) {\n if (!Mage::getStoreConfigFlag(\n Mage_Customer_Helper_Data::XML_PATH_CUSTOMER_STARTUP_REDIRECT_TO_DASHBOARD\n )) {\n $referer = $this->getRequest()->getParam(Mage_Customer_Helper_Data::REFERER_QUERY_PARAM_NAME);\n if ($referer) {\n // Rebuild referer URL to handle the case when SID was changed\n $referer = Mage::getModel('core/url')\n ->getRebuiltUrl(Mage::helper('core')->urlDecode($referer));\n if ($this->_isUrlInternal($referer)) {\n $session->setBeforeAuthUrl($referer);\n }\n }\n } else if ($session->getAfterAuthUrl()) {\n $session->setBeforeAuthUrl($session->getAfterAuthUrl(true));\n }\n } else {\n $session->setBeforeAuthUrl(Mage::helper('customer')->getLoginUrl());\n }\n } else if ($session->getBeforeAuthUrl() == Mage::helper('customer')->getLogoutUrl()) {\n $session->setBeforeAuthUrl(Mage::helper('customer')->getDashboardUrl());\n } else {\n if (!$session->getAfterAuthUrl()) {\n $session->setAfterAuthUrl($session->getBeforeAuthUrl());\n }\n if ($session->isLoggedIn()) {\n $session->setBeforeAuthUrl($session->getAfterAuthUrl(true));\n }\n }\n $this->_redirectUrl($session->getBeforeAuthUrl(true));\n }", "function user_login($email_address, $redirect = true) {\n global $order, $customer_id, $customer_default_address_id, $customer_first_name, $customer_country_id, $customer_zone_id;\n\n global $session_started, $language, $cart;\n if ($session_started == false) {\n tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));\n }\n\n require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGIN);\n\n $check_customer_query = tep_db_query(\"select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id, customers_paypal_payerid from \" . TABLE_CUSTOMERS . \" where customers_email_address = '\" . tep_db_input($email_address) . \"'\");\n $check_customer = tep_db_fetch_array($check_customer_query);\n\n if (!tep_db_num_rows($check_customer_query)) {\n $this->away_with_you(MODULE_PAYMENT_PAYPAL_DP_TEXT_BAD_LOGIN, true);\n }\n\n if (SESSION_RECREATE == 'True') {\n tep_session_recreate();\n }\n\n $check_country_query = tep_db_query(\"select entry_country_id, entry_zone_id from \" . TABLE_ADDRESS_BOOK . \" where customers_id = '\" . (int)$check_customer['customers_id'] . \"' and address_book_id = '\" . (int)$check_customer['customers_default_address_id'] . \"'\");\n $check_country = tep_db_fetch_array($check_country_query);\n\n $customer_id = $check_customer['customers_id'];\n $customer_default_address_id = $check_customer['customers_default_address_id'];\n $customer_first_name = $check_customer['customers_firstname'];\n $customer_country_id = $check_country['entry_country_id'];\n $customer_zone_id = $check_country['entry_zone_id'];\n tep_session_register('customer_id');\n tep_session_register('customer_default_address_id');\n tep_session_register('customer_first_name');\n tep_session_register('customer_country_id');\n tep_session_register('customer_zone_id');\n\n $order->customer['id'] = $customer_id;\n\n tep_db_query(\"update \" . TABLE_CUSTOMERS_INFO . \" set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '\" . (int)$customer_id . \"'\");\n\n $cart->restore_contents();\n if ($redirect) {\n $this->away_with_you();\n }\n\n return true;\n }", "public function checkout()\n\t {\n $this->db->where('email',$this->session->userdata('email'));\n $qry=$this->db->get('user');\n $data['user']=$qry->row();\n\t $data['cartItems'] = $this->cart->contents();\n\t\t $this->load->view('checkout',$data);\n\t }", "public function only_logged_in_customer_can_see_home_page()\n {\n $response = $this->get('/home')\n ->assertRedirect('/login');\n\n }", "public function customers()\n {\n if ($_SESSION['role'] == 1)\n { \n //get customers info from the database\n $Customer = $this->model('Customer');\n $this->customers = $Customer->adminGetCustomers(); \n $this->view('AdminDashboard/customers', ['viewName' => 'Dashboard - Customers']);\n }\n else\n {\n header('location: '.URL.'Login');\n }\n\n }", "private function redirectToSpotifyAuthorizeUrl()\n {\n header(\"Location: {$this->session->getAuthorizeUrl($this->options)}\");\n die();\n }", "public function preDispatch()\n {\n parent::preDispatch();\n if (!Mage::getSingleton('customer/session')->authenticate($this)) {\n $this->setFlag('', 'no-dispatch', true);\n }\n }", "public function getCheckout(){ \n $cart = session()->get('cart');\n\n if(count((array) session('cart')) > 0) {\n return view('pages.revieworder')->with('cart', $cart);\n }else {\n return view('pages.cart');\n }\n \n }", "public function confirm()\n {\n\n\n $this->load->model('checkout/order');\n\n if (!isset($this->session->data['order_id'])) {\n $this->response->redirect($this->url->link('checkout/cart'));\n return;\n }\n $order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);\n if (false === $order_info) {\n $this->response->redirect($this->url->link('checkout/cart'));\n return;\n }\n\n $orderID = $this->session->data['order_id'];\n $order_total = $order_info['total'];\n $order_total = round($order_total, 2);\n $currency_code = $order_info['currency_code'];\n $redirect_url = $this->config->get($this->code.'_redirect_url');\n\n $AccountID = $this->config->get($this->code.'_payment_api_accountID');\n $AccountPrivateKey = $this->config->get($this->code.'_payment_api_privateKey');\n if (isset($this->session->data['meth'])) {\n $data['meth'] = $this->session->data['meth'];\n }\n $payinput = \"knet\";\n if(!empty($data['meth'])){\n \t$payinput = $data['meth'];\n }else{\n \t$payinput = 'knet';\n }\n \n\n $this->redirect_post($AccountID,$AccountPrivateKey,$redirect_url,$order_total,$payinput);\n }", "public function postProcess()\n {\n /*\n * Oops, an error occured.\n */\n if (Tools::getValue('action') == 'error') {\n return $this->displayError('An error occurred while trying to redirect the customer');\n } else {\n $this->context->smarty->assign(array(\n 'cart_id' => Context::getContext()->cart->id,\n 'secure_key' => Context::getContext()->customer->secure_key,\n ));\n\n return $this->setTemplate('redirect.tpl');\n }\n }", "public function callbacktransparentredirectAction()\n {\n $model = Mage::getModel('paymentsensegateway/direct');\n $order = Mage::getModel('sales/order');\n $order->load(Mage::getSingleton('checkout/session')->getLastOrderId());\n $nVersion = Mage::getModel('paymentsensegateway/direct')->getVersion();\n \n \n $hmHashMethod = $model->getConfigData('hashmethod');\n $szPassword = $model->getConfigData('password');\n $szPreSharedKey = $model->getConfigData('presharedkey');\n \n $szPaREQ = $this->getRequest()->getParams('Oper');\n $szPaRES = $this->getRequest()->getParams('TotalPagado');\n $nStatusCode = $this->getRequest()->getParams('Razon');\n \n if($szPaREQ && $szPaRES != 0)\n {\n self::_paymentComplete($szPaREQ, $szPaRES, $nStatusCode);\n }\n \n else\n {\n $error = Paymentsense_Paymentsensegateway_Model_Common_GlobalErrors::ERROR_260;\n Mage::logException($exc);\n \n $orderState = 'pending_payment';\n $orderStatus = 'pys_failed_hosted_payment';\n $order->setCustomerNote(Mage::helper('paymentsensegateway')->__('Transparent Redirect Payment Failed'));\n $order->setState($orderState, $orderStatus, $nStatusCode, false);\n $order->save();\n \n \n Mage::getSingleton('core/session')->addError($error);\n \n \n $this->_clearSessionVariables();\n $this->_redirect('checkout/onepage/failure');\n }\n \n \n \n }", "public function paginaCheckout()\n {\n if (!Auth::user()) {\n return redirect()->route('login')->with('error', 'Debes estar logeado para hacer esta operación');\n }\n if (!$this->checkStockArticulos()) {\n return redirect()->route('shop.cart')->with('failure_message', 'No hay stock suficiente');\n }\n $distritos_json = file_get_contents(\"json/distritos.json\");\n $distritos = json_decode($distritos_json);\n return view('shop.checkout')->with(['Titulo' => 'Checkout', 'distritos' => $distritos]);\n }", "function instant_checkout($product_id)\n\t{\n\t\t$product = $this->database->getProductbyId($product_id);\n\n\t\tif($product)\n\t\t{\n\t\t\t$this->_add_to_cart($product);\n\t\t}\n\t\t\n\t\tredirect('checkout/');\n\t}", "public function preDispatch()\n {\n parent::preDispatch();\n\n if (!Mage::getSingleton('customer/session')->authenticate($this)) {\n $this->setFlag('', 'no-dispatch', true);\n }\n }", "public function preDispatch()\n {\n parent::preDispatch();\n\n if (!Mage::getSingleton('customer/session')->authenticate($this)) {\n $this->setFlag('', 'no-dispatch', true);\n }\n }", "public function preDispatch()\n {\n parent::preDispatch();\n $action = $this->getRequest()->getActionName();\n $loginUrl = Mage::helper('customer')->getLoginUrl();\n if (!Mage::getSingleton('customer/session')->authenticate($this, $loginUrl)) {\n $this->setFlag('', self::FLAG_NO_DISPATCH, true);\n }\n }", "public function index(Request $request)\n {\n $products = $this->cartRepo->getCartItems();\n\n if(!auth()->check())\n {\n return redirect()->route('login')->with(['error' => 'Login / Register in order to checkout']);\n }\n \n // $customer = $request->user();\n $rates = null;\n $shipment_object_id = null;\n\n if (env('ACTIVATE_SHIPPING') == 1) {\n $shipment = $this->createShippingProcess($customer, $products);\n if (!is_null($shipment)) {\n $shipment_object_id = $shipment->object_id;\n $rates = $shipment->rates;\n }\n }\n\n // Get payment gateways\n $paymentGateways = collect(explode(',', config('payees.name')))->transform(function ($name) {\n return config($name);\n })->all();\n\n\n // $billingAddress = $customer->addresses()->first();\n\n $courier = $this->courierRepo->findCourierById(request()->session()->get('courierId', 1));\n $shippingFee = $this->cartRepo->getShippingFee($courier);\n\n\n $countries = Country::get();\n //Check the if impression kit is in cart then show medical form as checkout page otherwise show simple checkout page\n $impressionKit = false;\n $aligners = false;\n\n foreach($this->cartRepo->getCartItems() as $item)\n {\n $product = Product::with(['categories'])->find($item->id);\n foreach($product->categories as $category)\n {\n if($category->label == \"IK\")\n $impressionKit = true;\n\n if($category->label == \"Aligners\")\n $aligners = true;\n }\n }\n \n\n if($impressionKit)\n $view = 'front.checkout';\n else \n $view = 'front.checkout2';\n\n return view($view, [\n // 'customer' => $customer,\n 'billingAddress' => '',\n // 'addresses' => $customer->addresses()->get(),\n 'products' => $this->cartRepo->getCartItems(),\n 'subtotal' => $this->cartRepo->getSubTotal(),\n 'tax' => $this->cartRepo->getTax(),\n // 'total' => $this->cartRepo->getTotal(2, $shippingFee),\n 'total' => $this->cartRepo->getSubTotal(),\n 'payments' => $paymentGateways,\n 'cartItems' => $this->cartRepo->getCartItemsTransformed(),\n 'shipment_object_id' => $shipment_object_id,\n 'shippingFee' => $shippingFee,\n 'rates' => $rates,\n 'countries' => $countries,\n 'aligners' => $aligners\n ]);\n }", "protected function checkRedirect() {}", "public function check_in(Request $request)\n {\n //\n $data_email = $request->email;\n $data_pass = md5($request->pass);\n $checkin = Customer::where([['customers_email','=',$data_email],['password','=',$data_pass]])->first();\n\n if ($checkin) {\n // dd($checkin);\n Session::put('cus_id',$checkin->id);\n Session::put('cus_name',$checkin->customers_name);\n if (Cart::content()) {\n return redirect()->route('checkout.out');\n }\n else{\n return redirect()->route('home');\n }\n \n }\n else {\n return redirect()->back()->with('thongbao','đăng nhập thất bại!');\n }\n\n }", "public function checkout()\n {\n \\Stripe\\Stripe::setApiKey('sk_test_51Id5N7LalF3Lv2yPdxRPVkPJeWtfGFzsGhxulmJnxVW7jBA7y7USFGU5J00rhaPJVdVl1d888NDajQ05PuTpUdOK009T0dXPlD');\n \n $amount = 10;\n $amount *= 10;\n $amount = (int) $amount;\n \n $payment_intent = \\Stripe\\PaymentIntent::create([\n 'description' => 'Stripe Test Payment',\n 'amount' => $amount,\n 'currency' => 'USD',\n 'description' => 'Payment From Codehunger',\n 'payment_method_types' => ['card'],\n ]);\n $intent = $payment_intent->client_secret;\n\n return view('subscriber_page',compact('intent'));\n\n }", "function thim_learnpress_checkout_free_course() {\n\treturn add_query_arg( 'redirect_to', 'http://' . $_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"], thim_get_login_page_url() );\n}", "public function checkout_success()\n\t{\n\t\t$data['cart_items_count'] = $this->m_cart->get_cart_count();\n\t\t$data['settings'] = $this->m_settings->get_all();\n\t\t$data['info'] = $this->session->flashdata('ch_sucss_msg');\n\t\t$this->load->view('frontend/templates/header',$data);\n\t\t$this->load->view('frontend/templates/main_top_bg');\n\t\t$this->load->view('frontend/pages/boss/checkout_success',$data);\n\t\t$this->load->view('frontend/templates/footer', $data);\n\t}", "public function test_only_logged_in_users_can_see_detailed_customer_list()\n {\n // the login page, assert \"true\"\n $response = $this->get('/customers/detailedlist')->assertRedirect('/login');\n\n }", "public function checkoutAction()\r\n\t{\r\n\r\n\t\t$this->_view->hienthi = false;\r\n\t\t$this->_view->_title = 'Thông tin đặt hàng';\r\n\t\t$this->_view->motoInCart = $this->_model->listItem($this->_arrParam, ['task' => 'motos_in_cart']);\r\n\t\t// $this->_view->user = $this->_model->infoItem($this->_arrParam, ['task' => 'info_user']);\r\n\r\n\t\tif (isset($this->_arrParam['form']['token'])) {\t\t //khi nhan nut xac nhan\t\r\n\t\t\t$this->_validate->validateInfoOrder($this->_arrParam['form_user']);\r\n\t\t\t$this->_arrParam['form_user'] = $this->_validate->getResult();\r\n\t\t\tif (!$this->_validate->isValid()) {\r\n\t\t\t\t$this->_view->user = $this->_model->infoItem($this->_arrParam, ['task' => 'info_user']);\r\n\t\t\t\t$this->_view->hienthi = true;\r\n\t\t\t\t$this->_view->errors = $this->_validate->showErrorsPublic();\r\n\t\t\t} else {// khong co loi\r\n\r\n\t\t\t\t$this->_model->save($this->_arrParam, ['task' => 'submit_cart']);\r\n\t\t\t\t// URL::redirect('frontend', 'index', 'notice', ['type' => 'dat_hang_thanh_cong']);\r\n\t\t\t}\r\n\t\t} else { // moi vao trang\r\n\t\t\t$this->_view->hienthi = true;\r\n\t\t\t$this->_view->user = $this->_model->infoItem($this->_arrParam, ['task' => 'info_user']);\r\n\t\t}\r\n\t\t$this->_view->render($this->_arrParam['controller'] . '/checkout');\r\n\t}" ]
[ "0.7058747", "0.67745286", "0.6764376", "0.6703454", "0.6653177", "0.65376234", "0.6536304", "0.6477532", "0.64377725", "0.6389578", "0.63479745", "0.6326604", "0.6325176", "0.6321382", "0.6315917", "0.6299186", "0.629414", "0.6260947", "0.6248504", "0.6244631", "0.6244279", "0.6212482", "0.62007165", "0.61988115", "0.6195614", "0.6195413", "0.6192988", "0.6176185", "0.61428076", "0.6107955", "0.6098276", "0.6083814", "0.60775", "0.6066211", "0.60654527", "0.6062823", "0.6057161", "0.60245717", "0.60234046", "0.60198337", "0.6017315", "0.60139424", "0.6004693", "0.60040206", "0.6000575", "0.5987705", "0.5984367", "0.59842604", "0.59836257", "0.597923", "0.59733254", "0.59690326", "0.59542483", "0.59494394", "0.59392726", "0.5934096", "0.5932579", "0.5931762", "0.591034", "0.5875014", "0.58672047", "0.5828803", "0.5828732", "0.5825451", "0.5824294", "0.5819617", "0.5817732", "0.58064526", "0.5798234", "0.57981586", "0.5794511", "0.57909805", "0.57895625", "0.57888436", "0.5770194", "0.5767345", "0.5765308", "0.5764679", "0.5763316", "0.57632613", "0.5762328", "0.57604086", "0.575963", "0.5759571", "0.5742298", "0.5737491", "0.5735792", "0.57320136", "0.5731496", "0.57301277", "0.57250327", "0.57250327", "0.57181585", "0.5703845", "0.56968707", "0.56955254", "0.56931674", "0.56822675", "0.567851", "0.5677399", "0.5677317" ]
0.0
-1
Add a layout handle on "checkout_cart_index"page IF veritifaction doesn't exist for the customer AND verification is required THEN add the layout handle
public function addLayoutHandle(Varien_Event_Observer $observer) { /* @var $update Mage_Core_Model_Layout_Update */ $update = $observer->getEvent()->getLayout()->getUpdate(); $userIsVerified = Mage::getModel("postident/verification")->userIsVerified(); //New handle for all store parts if (true === $this->getConfig()->isEnabled() && false === $userIsVerified) { $update->addHandle('postident_verification_required'); } //New handle for shoppinh_cart if (true === $this->getConfig()->isEnabled() && "checkout-cart-index" == $this->getHelper()->getPageCode() && false === $userIsVerified) { $update->addHandle('postident_checkout_cart_verification_required'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function layoutAction()\n {\n if (!$this->_isActive()) {\n $this->norouteAction();\n return;\n }\n\n if ($this->_expireAjax()) {\n return;\n }\n\n $this->loadLayout();\n $this->getResponse()->setBody(\n $this->getLayout()->getBlock('checkout.layout')->toHtml()\n );\n }", "protected function _prepareLayout()\n {\n $section = $this->getAction()->getRequest()->getParam('section', false);\n if ($section == 'paynovapayment') {\n $this->getLayout()\n ->getBlock('head')\n ->addJs('mage/adminhtml/paynovapayment.js');\n }\n parent::_prepareLayout();\n }", "public function _prepareLayout()\n {\n $this->setSubscription(Mage::getSingleton('customer/session')->getNewSubscription());\n\n // Call parent\n parent::_prepareLayout();\n }", "protected function setupLayout()\n\t{\n\n $this->user = Auth::user();\n $this->theme = Theme::uses('default')->layout('default');\n $user = $this->user;\n $this->theme->bind('user', function() use($user)\n {\n return $user;\n });\n $cat = Category::all();\n $this->theme->bind('cat', function() use($cat)\n {\n return $cat;\n });\n if (Session::get('cart')){\n $cart_count = count(Session::get('cart'));\n $this->theme->bind('cart_count', function() use($cart_count)\n {\n return $cart_count;\n });\n }\n\t}", "public function initProductLayout($product, $controller)\n {\n $design = Mage::getSingleton('catalog/design');\n $settings = $design->getDesignSettings($product);\n\n /*if ($settings->getCustomDesign()) {\n $design->applyCustomDesign($settings->getCustomDesign());\n }*/\n\n\n\n\n\n if(Mage::helper('zmags')->isMobile())\n {\n\n\n $_theme = \"zmags/mobile\";\n\n }else{\n $_theme = \"zmags/default\";\n }\n\n if ($_theme) {\n\n list($package, $theme) = explode('/', $_theme);\n Mage::getSingleton('core/design_package')\n ->setPackageName($package)\n ->setTheme($theme);\n\n\n }\n\n\n\n $update = $controller->getLayout()->getUpdate();\n\n\n $update->addHandle('default');\n\n\n $controller->addActionLayoutHandles();\n\n\n $update->addHandle('PRODUCT_TYPE_' . $product->getTypeId());\n $update->addHandle('PRODUCT_' . $product->getId());\n $controller->loadLayoutUpdates();\n\n $update->addUpdate($product->getCustomLayoutUpdate());\n\n\n //$update->merge(strtolower($controller->getFullActionName()).'_FINAL');\n\n /*// Apply custom layout update once layout is loaded\n $layoutUpdates = $settings->getLayoutUpdates();\n if ($layoutUpdates) {\n if (is_array($layoutUpdates)) {\n foreach($layoutUpdates as $layoutUpdate) {\n $update->addUpdate($layoutUpdate);\n }\n }\n }\n\n*/\n\n\n $controller->generateLayoutXml()->generateLayoutBlocks();\n\n // Apply custom layout (page) template once the blocks are generated\n /* if ($settings->getPageLayout()) {\n $controller->getLayout()->helper('page/layout')->applyTemplate($settings->getPageLayout());\n }\n\n $currentCategory = Mage::registry('current_category');\n $root = $controller->getLayout()->getBlock('root');\n if ($root) {\n $controllerClass = $controller->getFullActionName();\n if ($controllerClass != 'catalog-product-view') {\n $root->addBodyClass('catalog-product-view');\n }\n $root->addBodyClass('product-' . $product->getUrlKey());\n if ($currentCategory instanceof Mage_Catalog_Model_Category) {\n $root->addBodyClass('categorypath-' . $currentCategory->getUrlPath())\n ->addBodyClass('category-' . $currentCategory->getUrlKey());\n }\n }*/\n $head = $controller->getLayout()->getBlock('head');\n\n if( Mage::getStoreConfig( 'zmags/design/product_template' ) !=\"default\" )\n {\n $slug = Mage::getStoreConfig( 'zmags/configuration/slug' );\n $head->addCss('../../../../index.php/'.$slug.'/zmags.css');\n }\n\n\n return $this;\n }", "protected function _prepareLayout()\n {\n $public_key = Mage::getStoreConfig(MercadoPago_Core_Helper_Data::XML_PATH_PUBLIC_KEY);\n\n //init js no header\n $block = Mage::app()->getLayout()->createBlock('core/text', 'js_mercadopago');\n if (Mage::getStoreConfigFlag(MercadoPago_OneStepCheckout_Helper_Data::XML_PATH_ONS_ACTIVE)) {\n $block->setText(\n sprintf(\n '\n <script type=\"text/javascript\">var PublicKeyMercadoPagoCustom = \"' . $public_key . '\";</script>\n <script src=\"https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js\"></script>\n <script type=\"text/javascript\" src=\"%s\"></script>\n <script type=\"text/javascript\" src=\"%s\"></script>\n <script type=\"text/javascript\" src=\"%s\"></script>',\n Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS, true) . 'mercadopago/mercadopago_osc.js',\n Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS, true) . 'mercadopago/tiny.min.js',\n Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS, true) . 'mercadopago/tinyJ.js'\n )\n );\n\n $head = Mage::app()->getLayout()->getBlock('after_body_start');\n\n if ($head) {\n $head->append($block);\n }\n\n return Mage_Payment_Block_Form_Cc::_prepareLayout();\n } else {\n return parent::_prepareLayout();\n }\n\n }", "public function checkIn()\n\t{\n\t\t$this->layout = 'index';\n\t}", "protected function setupLayout() {\n\t\tif ( ! is_null($this->layout)) {\n\n\n\t\t\t$cb_js_var = array(\n\t\t\t\t'site_url' => url('/'),\n\t\t\t\t'admin_url' => url('/admin'),\n\t\t\t\t'admin_assets_url' => asset('packages/vizioart/cookbook/'),\n\t\t\t\t'admin_api_url' => url('/admin/api')\n\t\t\t);\n\n\n\t\t\t$this->layout = View::make($this->layout, array(\n\t\t\t\t'cb_js_var' => $cb_js_var\n\t\t\t));\n\t\t}\n\t}", "protected function setNonAuthenticatedPageLayout() {\n if (!$this->app->router->isWsCall) {\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::HeaderTemplate;\n }\n\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::ContenTemplate;\n\n if (!$this->app->router->isWsCall) {\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::FooterTemplate;\n }\n }", "protected function _prepareLayout()\n {\n // Set custom submit url route for form - to submit updated options to cart\n $block = $this->getLayout()->getBlock('product.info');\n if ($block) {\n $block->setSubmitRouteData(\n [\n 'route' => 'checkout/cart/updateItemOptions',\n 'params' => ['id' => $this->getRequest()->getParam('id')],\n ]\n );\n }\n\n return parent::_prepareLayout();\n }", "protected function _prepareLayout()\n\t{\n\t\t$this->getLayout()->getBlock('head')->setTitle($this->__($this->_helper->pageTitle()));\n $this->getLayout()->getBlock('root')->setTemplate('page/1column.phtml');\n\t\t$this->getLayout()->getBlock('head')->addCss('css/extrembler/prelogin/form.css');\n\t\t$this->getLayout()->getBlock('root')->unsetChild('header');\n\t\t$this->getLayout()->getBlock('content')->insert('store_language');\n\t\t$this->getLayout()->getBlock('root')->unsetChild('footer');\n\t return parent::_prepareLayout();\n\t}", "public function controller_action_layout_generate_blocks_after(Varien_Event_Observer $observer){\r\n\t\tif(!Mage::helper('vendorscms')->moduleEnable()) return;\r\n\t\t$action = $observer->getEvent()->getAction();\r\n\t\t$layout = $observer->getEvent()->getLayout();\r\n\t\tif($vendor = Mage::registry('vendor')){\r\n\t\t\t/*Remove all default blocks*/\r\n\t\t\t$leftBlock = $layout->getBlock('left');\r\n\t\t\t//$layout->getBlock('left')->unsetChildren();\r\n\t\t\tif($leftBlock) foreach($leftBlock->getChild() as $key=>$value){\r\n\t\t\t\tif(substr($key, 0,7) == 'vendors') continue;\r\n\t\t\t\t$leftBlock->unsetChild($key);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$rightBlock = $layout->getBlock('right');\r\n\t\t\t//$layout->getBlock('left')->unsetChildren();\r\n\t\t\tif($rightBlock) foreach($rightBlock->getChild() as $key=>$value){\r\n\t\t\t\tif(substr($key, 0,7) == 'vendors') continue;\r\n\t\t\t\t$rightBlock->unsetChild($key);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$layout->getBlock('footer')->unsetChildren();\r\n\t\t\t\r\n\t\t\t/*Remove default top menu*/\r\n\t\t\t$layout->getBlock('top.menu')->unsetChildren();\r\n\t\t\t\r\n\t\t\t/*Remove default top search*/\r\n\t\t\t//$layout->getBlock('top.search')->addAttribute('ignore', true);\r\n\t\t\t/*Change Logo to vendor logo*/\r\n\t\t\t$headerBlock = $layout->getBlock('header');\r\n\t\t\t$headerBlock->setLogo($vendor->getLogo(),$vendor->getTitle());\r\n\t\t\t/*Process frontend instance*/\r\n\t\t\t$apps = Mage::getModel('vendorscms/app')->getCollection()->addFieldToFilter('vendor_id',$vendor->getId())->addOrder('sort_order','ASC');\r\n\t\t\tforeach($apps as $app){\r\n\t\t\t\tMage::helper('vendorscms')->processFrontendApp($app,$layout,$action);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif($vendorConfig = Mage::helper('vendorsconfig')->getVendorConfig('design/config/theme',$vendor->getId())){\r\n\t\t\t\t$vendorConfig = explode(\"/\", $vendorConfig);\r\n\t\t\t\tMage::getDesign()->setPackageName($vendorConfig[0]);\r\n\t\t\t\tMage::getDesign()->setTheme($vendorConfig[1]);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function wp_register_layout_support($block_type)\n {\n }", "function beforeLayout() {\n }", "protected function setAuthenticatedPageLayout() {\n if (!$this->app->router->isWsCall) {\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::HeaderTemplate;\n// require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::HeaderTemplate;\n }\n\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::ContenTemplate;\n\n if (!$this->app->router->isWsCall) {\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::FooterTemplate;\n }\n }", "function apptivo_ecommerce_order_review() {\r\n apptivo_ecommerce_get_template('checkout/review_order.php', false);\r\n}", "protected function setupLayout() {\n\t\t$this->data['route'] = Route::getCurrentRoute()->getPath();\t\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->data['enrolledCourses'] = NULL;\n\t\t\t\n\t\t\tif (Auth::check() && in_array(Auth::user()->user_type, array(3, 5))) {\n\t\t\t\t$this->data['enrolledCourses'] = EnrolledCourses::getEnrolledCourses();\n\t\t\t\t$this->data['endedCourses'] = EnrolledCourses::getEndedCourses();\n\t\t\t\t$this->data['profiling'] = User::getRegProfile();\t\n\t\t\t\t$this->data['profiling_ctr'] = $this->data['profiling'];\t\t\t\t\n\t\t\t} else if (Auth::check() && Auth::user()->user_type == 2) {\n\t\t\t\t$this->data['assigned_courses'] = Courses::getAssignedCourses();\n\t\t\t}\n\n\t\t\t$this->layout = View::make($this->layout, $this->data);\n\t\t}\n\t}", "public function swc_shop_layout() {\n\t\t$shop_layout\t\t\t\t\t= get_theme_mod( 'swc_shop_layout', 'default' );\n\t\t$archive_description\t\t\t= get_theme_mod( 'swc_archive_description', 'default' );\n\t\t$product_layout\t\t\t\t\t= get_theme_mod( 'swc_product_layout', 'default' );\n\t\t$header_search\t\t\t\t\t= get_theme_mod( 'swc_header_search', true );\n\t\t$header_cart\t\t\t\t\t= get_theme_mod( 'swc_header_cart', true );\n\t\t$homepage_content\t\t\t\t= get_theme_mod( 'swc_homepage_content', true );\n\t\t$homepage_cats\t\t\t\t\t= get_theme_mod( 'swc_homepage_categories', true );\n\t\t$homepage_recent\t\t\t\t= get_theme_mod( 'swc_homepage_recent', true );\n\t\t$homepage_featured\t\t\t\t= get_theme_mod( 'swc_homepage_featured', true );\n\t\t$homepage_top_rated\t\t\t\t= get_theme_mod( 'swc_homepage_top_rated', true );\n\t\t$homepage_on_sale\t\t\t\t= get_theme_mod( 'swc_homepage_on_sale', true );\n\t\t$homepage_best_sellers\t\t\t= get_theme_mod( 'swc_homepage_best_sellers', true );\n\t\t$archive_results_count\t\t\t= get_theme_mod( 'swc_product_archive_results_count', true );\n\t\t$archive_sorting\t\t\t\t= get_theme_mod( 'swc_product_archive_sorting', true );\n\t\t$archive_image\t\t\t\t\t= get_theme_mod( 'swc_product_archive_image', true );\n\t\t$archive_sale_flash\t\t\t\t= get_theme_mod( 'swc_product_archive_sale_flash', true );\n\t\t$archive_rating\t\t\t\t\t= get_theme_mod( 'swc_product_archive_rating', true );\n\t\t$archive_price\t\t\t\t\t= get_theme_mod( 'swc_product_archive_price', true );\n\t\t$archive_add_to_cart\t\t\t= get_theme_mod( 'swc_product_archive_add_to_cart', true );\n\t\t$archive_product_description\t= get_theme_mod( 'swc_product_archive_description', false );\n\t\t$product_gallery_layout\t\t\t= get_theme_mod( 'swc_product_gallery_layout', 'default' );\n\t\t$product_details_tabs\t\t\t= get_theme_mod( 'swc_product_details_tab', true );\n\t\t$product_related\t\t\t\t= get_theme_mod( 'swc_related_products', true );\n\t\t$product_meta\t\t\t\t\t= get_theme_mod( 'swc_product_meta', true );\n\t\t$product_description\t\t\t= get_theme_mod( 'swc_product_description', true );\n\n\t\tif ( class_exists( 'WooCommerce' ) ) {\n\n\t\t\tif ( is_shop() || is_product_taxonomy() || is_product_category() || is_product_tag() ) {\n\t\t\t\tif ( 'full-width' == $shop_layout ) {\n\t\t\t\t\tremove_action( 'storefront_sidebar', 'storefront_get_sidebar' );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( is_product() ) {\n\t\t\t\tif ( 'hidden' == $product_gallery_layout ) {\n\t\t\t\t\tremove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );\n\t\t\t\t}\n\n\t\t\t\tif ( 'full-width' == $product_layout ) {\n\t\t\t\t\tremove_action( 'storefront_sidebar', 'storefront_get_sidebar' );\n\t\t\t\t}\n\n\t\t\t\tif ( false == $product_details_tabs ) {\n\t\t\t\t\tremove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );\n\t\t\t\t}\n\n\t\t\t\tif ( false == $product_related ) {\n\t\t\t\t\tremove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );\n\t\t\t\t}\n\n\t\t\t\tif ( false == $product_description ) {\n\t\t\t\t\tremove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );\n\t\t\t\t}\n\n\t\t\t\tif ( false == $product_meta ) {\n\t\t\t\t\tremove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( 'beneath' == $archive_description ) {\n\t\t\t\tremove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );\n\t\t\t\tremove_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 10 );\n\t\t\t\tadd_action( 'woocommerce_after_main_content', 'woocommerce_taxonomy_archive_description', 5 );\n\t\t\t\tadd_action( 'woocommerce_after_main_content', 'woocommerce_product_archive_description', 5 );\n\t\t\t}\n\t\t}\n\n\t\tif ( false == $header_search ) {\n\t\t\tremove_action( 'storefront_header', 'storefront_product_search', \t40 );\n\t\t}\n\n\t\tif ( false == $header_cart ) {\n\t\t\t$header_layout = get_theme_mod( 'sd_header_layout' );\n\n\t\t\tif ( $header_layout && 'inline' == $header_layout ) {\n\t\t\t\tremove_action( 'storefront_header', 'storefront_header_cart', \t\t69 );\n\t\t\t} else {\n\t\t\t\tremove_action( 'storefront_header', 'storefront_header_cart', \t\t60 );\n\t\t\t}\n\n\t\t}\n\n\t\tif ( false == $homepage_content ) {\n\t\t\tremove_action( 'homepage', 'storefront_homepage_content', 10 );\n\t\t}\n\n\t\tif ( false == $homepage_cats ) {\n\t\t\tremove_action( 'homepage', 'storefront_product_categories', 20 );\n\t\t}\n\n\t\tif ( false == $homepage_recent ) {\n\t\t\tremove_action( 'homepage', 'storefront_recent_products', 30 );\n\t\t}\n\n\t\tif ( false == $homepage_featured ) {\n\t\t\tremove_action( 'homepage', 'storefront_featured_products', 40 );\n\t\t}\n\n\t\tif ( false == $homepage_top_rated ) {\n\t\t\tremove_action( 'homepage', 'storefront_popular_products', 50 );\n\t\t}\n\n\t\tif ( false == $homepage_on_sale ) {\n\t\t\tremove_action( 'homepage', 'storefront_on_sale_products', 60 );\n\t\t}\n\n\t\tif ( false == $homepage_best_sellers ) {\n\t\t\tremove_action( 'homepage', 'storefront_best_selling_products', 70 );\n\t\t}\n\n\t\tif ( false == $archive_results_count ) {\n\t\t\tremove_action( 'woocommerce_after_shop_loop', 'woocommerce_result_count', 20 );\n\t\t\tremove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );\n\t\t}\n\n\t\tif ( false == $archive_sorting ) {\n\t\t\tremove_action( 'woocommerce_after_shop_loop', 'woocommerce_catalog_ordering', 10 );\n\t\t\tremove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10 );\n\t\t}\n\n\t\tif ( false == $archive_image ) {\n\t\t\tremove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );\n\t\t}\n\n\t\tif ( false == $archive_sale_flash ) {\n\t\t\tremove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 6 );\n\t\t}\n\n\t\tif ( false == $archive_rating ) {\n\t\t\tremove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );\n\t\t}\n\n\t\tif ( false == $archive_price ) {\n\t\t\tremove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );\n\t\t}\n\n\t\tif ( false == $archive_add_to_cart ) {\n\t\t\tremove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );\n\t\t}\n\n\t\tif ( true == $archive_product_description ) {\n\t\t\tadd_action( 'woocommerce_after_shop_loop_item', array( $this, 'swc_loop_product_description' ), 6 );\n\t\t}\n\t}", "public function _prepareLayout()\n {\n $this->setTemplate('authorizenetcim/form/cc.phtml');\n }", "public function hookHeader()\n {\n if ($this->context->controller instanceof OrderConfirmationController) {\n $this->context->controller->addJS($this->_path . '/views/js/scratch-card.js');\n $this->context->controller->addCSS($this->_path . '/views/css/front.css');\n }\n }", "protected function _prepareLayout()\n {\n parent::_prepareLayout();\n if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {\n $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);\n }\n }", "protected function _prepareLayout()\n {\n parent::_prepareLayout();\n if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {\n $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);\n }\n }", "function hankart_add_product_layouts_area() {\n get_template_part(\"inc/template_parts/single-prod-layouts\");\n}", "function wp_render_layout_support_flag($block_content, $block)\n {\n }", "public function checkout()\r\n\t{\r\n\t\t$data['view_file_name'] = 'checkout_view';\r\n $this->template->load_info_view('order/checkout_view',$data);\r\n\t}", "public function customization_checkout_page() {\n\n\t\t\tif ( ! is_checkout() ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Display order notes.\n\t\t\tif ( ! astra_get_option( 'checkout-order-notes-display' ) ) {\n\t\t\t\tadd_filter( 'woocommerce_enable_order_notes_field', '__return_false' );\n\t\t\t}\n\t\t\t// Display coupon.\n\t\t\tif ( ! astra_get_option( 'checkout-coupon-display' ) ) {\n\t\t\t\tremove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 );\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Two Step Checkout Page\n\t\t\t */\n\t\t\tif ( astra_get_option( 'two-step-checkout' ) && 'default' === astra_get_option( 'checkout-layout-type' ) ) {\n\t\t\t\tadd_action( 'woocommerce_checkout_before_customer_details', 'astra_two_step_checkout_form_wrapper_div', 1 );\n\t\t\t\tadd_action( 'woocommerce_checkout_before_customer_details', 'astra_two_step_checkout_form_ul_wrapper', 2 );\n\t\t\t\tadd_action( 'woocommerce_checkout_order_review', 'astra_woocommerce_div_wrapper_close', 30 );\n\t\t\t\tadd_action( 'woocommerce_checkout_order_review', 'astra_woocommerce_ul_close', 30 );\n\t\t\t\tadd_action( 'woocommerce_checkout_before_customer_details', 'astra_two_step_checkout_address_li_wrapper', 5 );\n\t\t\t\tadd_action( 'woocommerce_checkout_after_customer_details', 'astra_woocommerce_li_close' );\n\t\t\t\tadd_action( 'woocommerce_checkout_before_order_review', 'astra_two_step_checkout_order_review_wrap', 1 );\n\t\t\t\tadd_action( 'woocommerce_checkout_after_order_review', 'astra_woocommerce_li_close', 40 );\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Two Step Modern Checkout Page\n\t\t\t */\n\t\t\tif ( ! defined( 'CARTFLOWS_VER' ) && astra_get_option( 'two-step-checkout' ) && 'modern' === astra_get_option( 'checkout-layout-type' ) && ! is_wc_endpoint_url( 'order-received' ) ) {\n\n\t\t\t\tadd_action( 'astra_entry_content_before', array( $this, 'get_checkout_form_note' ), 10, 1 );\n\n\t\t\t\tadd_action( 'woocommerce_checkout_before_customer_details', array( $this, 'add_two_step_first_step_wrapper' ), 13 );\n\n\t\t\t\tadd_action( 'astra_entry_content_before', array( $this, 'add_two_step_second_step_wrapper' ), 11 );\n\n\t\t\t\tadd_action( 'astra_entry_content_before', array( $this, 'add_two_step_nav_menu' ), 12, 1 );\n\n\t\t\t\tadd_action( 'woocommerce_checkout_after_customer_details', array( $this, 'add_two_step_next_btn' ), 12 );\n\n\t\t\t\tadd_action( 'woocommerce_checkout_after_customer_details', array( $this, 'add_two_step_closing_div' ), 13 );\n\n\t\t\t\tadd_action( 'astra_entry_content_after', array( $this, 'add_two_step_closing_div' ), 14 );\n\n\t\t\t\tadd_action( 'woocommerce_checkout_before_order_review_heading', array( $this, 'add_two_step_second_step_order_wrapper' ), 14 );\n\n\t\t\t\tadd_action( 'woocommerce_checkout_after_order_review', array( $this, 'add_two_step_closing_div' ), 14 );\n\n\t\t\t}\n\n\t\t\tif ( astra_get_option( 'checkout-distraction-free' ) ) {\n\n\t\t\t\t// HFB Support for distration free checkout.\n\t\t\t\tif ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) {\n\t\t\t\t\tremove_action( 'astra_header', array( Astra_Builder_Header::get_instance(), 'prepare_header_builder_markup' ) );\n\t\t\t\t\tremove_action( 'astra_footer', array( Astra_Builder_Footer::get_instance(), 'footer_markup' ), 10 );\n\t\t\t\t}\n\n\t\t\t\tremove_action( 'astra_header', 'astra_header_markup' );\n\t\t\t\tremove_action( 'astra_footer', 'astra_footer_markup' );\n\n\t\t\t\tadd_action( 'astra_header', array( $this, 'checkout_header_markup' ) );\n\t\t\t\tadd_action( 'astra_footer', array( $this, 'checkout_footer_markup' ) );\n\n\t\t\t\t// Store Sidebar Layout.\n\t\t\t\tadd_filter( 'astra_page_layout', array( $this, 'checkout_sidebar_layout' ), 99 );\n\t\t\t}\n\t\t}", "public function hookHeader()\n\t{\n\t\t/* If 1.4 and no backward, then leave */\n\t\tif (!$this->backward)\n\t\t\treturn;\n\n\t\t/* Continue only if we are in the checkout process */\n\t\tif (Tools::getValue('controller') != 'order-opc' && (!($_SERVER['PHP_SELF'] == __PS_BASE_URI__.'order.php' || $_SERVER['PHP_SELF'] == __PS_BASE_URI__.'order-opc.php' || Tools::getValue('controller') == 'order' || Tools::getValue('controller') == 'orderopc' || Tools::getValue('step') == 3)))\n\t\t\treturn;\n\n\t\t/* Load JS and CSS files through CCC */\n\t\t$this->context->controller->addCSS($this->_path.'views/css/stripe-prestashop.css');\n\t\t\n\t\treturn '<script src=\"https://checkout.stripe.com/checkout.js\"></script>';\n\t}", "protected function _prepareLayout()\n {\n $otp = $this->oauth2otp->create();\n\n // The final url to use (must utilise same admin key as current user)\n // If session code is not enabled in the url key, then the cookie will work for us\n // We set this here because the session key may be included in the url - this cannot be achieved reliably within\n // the frontend controller callback, as the request will not have admin access permissions (cookie or other).\n\n $successUrl = $this->backendHelper->getUrl( 'hotlink_brightpearl/oauth2/confirm' ); // No more OTP\n\n\n // To be copy and pasted into Proxy UI\n $callbackUrl = $this->brightpearlHelper->getBaseCallbackUrl( 'hotlink_brightpearl/oauth2/callback',\n array( '_query' => array( 'otp' => $otp ) ) );\n\n $this->oauth2otp->save( $otp, $callbackUrl, $successUrl );\n\n $this->setCallbackUrl( $callbackUrl );\n\n $this->setProxyUrl( $this->oauth2config->getProxyUrl() );\n return parent::_prepareLayout();\n }", "public function beforeLoadLayout($observer)\n {\n \t//Si la page générée est pour une mise en cache (varnish_static) on se considère comme non loggé\n\t if (Mage::registry('varnish_static')) {\n\t\t\t$observer->getEvent()->getLayout()->getUpdate()->addHandle('customer_logged_out');\n\t\t} else {\n\t\t\tparent::beforeLoadLayout($observer);\n\t\t}\n\n\t\tif (Mage::getStoreConfig('system/external_page_cache/varnish_customer_group_cache')) {\n\t \t//Si on est loggé on ajoute un cookie avec l'id de group (utilisé dans varnish pour hasher différement les pages selon le grope de client)\n\t\t\t$session = Mage::getSingleton('customer/session');\n\t\t\t$cookie = Mage::getSingleton('core/cookie');\n\t\t\t$cgCookie = $cookie->get(self::CUSTOMER_GROUP_COOKIE);\n\t\t\tif ( $session->isLoggedIn()) {\n\t\t\t\tif ($cgCookie) {\n\t\t\t\t\t$cookie->renew(self::CUSTOMER_GROUP_COOKIE, $session->getLifeTime());\n\t\t\t\t} else {\n\t\t\t\t\t$cookie->set(self::CUSTOMER_GROUP_COOKIE, $session->getCustomerGroupId() , $session->getLifeTime());\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($cgCookie) {\n\t\t\t\t\t$cookie->delete(self::CUSTOMER_GROUP_COOKIE);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n }", "public function initContent()\n {\n $this->display_column_left = false;\n $this->display_column_right = false;\n\n // Debug\n // $cart234 = $this->context->cart;\n // $cart_methods = get_class_methods(new Cart());\n // print_r(get_object_vars($this->context));\n // $foo = $this->context->foo;\n\n // Get POST params\n // Favoring Prestashop's Tools::getValue($key, $default_value) over using the superglobals directly\n // $number_of_installments = 0; // default to 0\n // if ($_POST['number_of_installments'])\n // \t$number_of_installments = $_POST['number_of_installments'];\n $number_of_installments = Tools::getValue('number_of_installments', 0);\n\n // Call parent\n parent::initContent();\n\n // Set template to use\n $this->setTemplate('paymentConfirmation.tpl');\n\n // Get cart id\n $id_cart = $this->context->cart->id;\n\n // Set language code\n // TODO Make it a little more general?\n // Accepted values: en-US, el-GR, ru-RU, de-DE\n $language_code = $this->context->language->language_code;\n\n // Get merchant reference\n $merchant_reference = WinbankRedirectTransaction::getMerchantReferenceByCartId($id_cart);\n\n // Set params to be sent with the bank link\n $param_back_link = '';\n\n // Set URL to make POST request\n $api_url = '';\n\n // Assign cart data to smarty\n $this->context->smarty->assign(array(\n 'nb_products' => $this->context->cart->nbProducts(),\n 'total_amount' => $this->context->cart->getOrderTotal(true, Cart::BOTH),\n 'shipping_amount' => $this->context->cart->getOrderTotal(true, Cart::ONLY_SHIPPING),\n 'products_amount' => $this->context->cart->getOrderTotal(true, Cart::ONLY_PRODUCTS_WITHOUT_SHIPPING),\n 'path' => $this->module->getPathUri(),\n 'api_url' => $api_url,\n 'number_of_installments' => $number_of_installments,\n 'acquirer_id' => Configuration::get('WINBANKREDIRECT_CRED_ACQUIRERID'),\n 'merchant_id' => Configuration::get('WINBANKREDIRECT_CRED_MERCHANTID'),\n 'pos_id' => Configuration::get('WINBANKREDIRECT_CRED_POSID'),\n 'user' => Configuration::get('WINBANKREDIRECT_CRED_USERNAME'),\n 'language_code' => $language_code,\n 'merchant_reference' => $merchant_reference,\n 'param_back_link' => $param_back_link\n ));\n }", "public function addActionLayoutHandles()\n {\n parent::addActionLayoutHandles();\n if ($this->_isActive()\n && in_array($this->getRequest()->getActionName(), $this->_addBaseHandleToActions)) {\n $this->getLayout()->getUpdate()->addHandle(self::LAYOUT_HANDLE_BASE);\n $designHandle = $this->_getHelper()->getDesignLayoutHandle();\n if ($designHandle === false) { // Old layout system\n $designHandle = self::LAYOUT_HANDLE_DEPRACATED;\n }\n\n $this->getLayout()->getUpdate()->addHandle($designHandle);\n }\n\n $loadedHandels = $this->getLayout()->getUpdate()->getHandles();\n\n if (in_array('checkout_onepage_review', $loadedHandels)\n && $this->getRequest()->getActionName() !== 'review') {\n $this->getRequest()->setActionName('review'); // Fix issue with review load in savePayment\n }\n\n if ($this->_isActive() && $this->_getHelper()->getCompatibilityMode('template') !== false) {\n $this->getLayout()->getUpdate()->addHandle(\n $this->getFullActionName() . '_' . $this->_getHelper()->getCompatibilityMode('template')\n );\n }\n\n if ($this->_isActive()) {\n $this->getLayout()->getUpdate()->addHandle(\n $this->getFullActionName() . '_checkitout'\n );\n\n if (in_array($this->getRequest()->getActionName(), $this->_stepsWithRequiredPayment)) {\n $this->getOnepage()->stubPaymentMethod();\n }\n }\n\n return $this;\n }", "function apptivo_ecommerce_checkout_order_review() {\t\r\n\t\r\n\tapptivo_ecommerce_get_template('checkout/checkout_review_order.php', false);\r\n}", "public function hookBackOfficeHeader() {\n $id_product = Tools::getValue('id_product');\n $product = new Product($id_product);\n $query = 'SELECT * FROM `' . _DB_PREFIX_ . 'product_personalized_area` WHERE `id_product`=\"'.$product->id.'\" ORDER BY `id_custom`';\n $alreadyCustomisedProducts = Db::getInstance()->ExecuteS($query);\n $qtyAlreadyCustomisedProducts = (empty($alreadyCustomisedProducts)) ? 0 : count($alreadyCustomisedProducts);\n if($qtyAlreadyCustomisedProducts > 0){\n $customised_values = $alreadyCustomisedProducts;\n }else{\n $customised_values = array();\n }\n if (!empty($product) && isset($product->id)) {\n $this->context->controller->addCSS($this->_path . 'views/css/imgareaselect-animated.css');\n $this->context->controller->addJS($this->_path . 'views/js/jquery.imgareaselect.pack.js');\n $this->context->controller->addJS($this->_path . 'views/js/back.js');\n Media::addJsDef(array(\n 'customized_area' => array(\n 'customised_values' => $customised_values\n )\n ));\n }\n\n if ($this->context->shop->getContext() == Shop::CONTEXT_GROUP) {\n $this->context->controller->addCSS($this->_path . 'views/css/hide_product_tab.css');\n }\n\n }", "public function beforeGetLayout(View $view)\n {\n\n $orderId = $view->getOrderId();\n\n $settledUrl = $view->getUrl(static::URL_PATH_MARK, [\n 'order_id' => $orderId, 'mark' => BTCPayServerInvoice::STATUS_SETTLED\n ]);\n\n $invalidUrl = $view->getUrl(static::URL_PATH_MARK, [\n 'order_id' => $orderId, 'mark' => BTCPayServerInvoice::STATUS_INVALID\n ]);\n\n $settledMessage = __('Are you sure you want to mark this BTCPay Invoice as settled?');\n\n $invalidMessage = __('Are you sure you want to mark this BTCPayInvoice as invalid?');\n\n $view->addButton(\n 'mark_settled',\n [\n 'label' => __('Mark as Settled'),\n 'class' => '',\n 'onclick' => \"confirmSetLocation('{$settledMessage}', '{$settledUrl}')\"\n ]\n );\n\n $view->addButton(\n 'mark_invalid',\n [\n 'label' => __('Mark as Invalid'),\n 'class' => '',\n 'onclick' => \"confirmSetLocation('{$invalidMessage}', '{$invalidUrl}')\"\n ]\n );\n }", "public function initContent()\n {\n // Hide left and right columns\n $this->display_column_left = false;\n $this->display_column_right = false;\n parent::initContent();\n\n $cart_id = (int)Tools::getValue('cart_id');\n $cart = $this->context->cart;\n if (!empty($cart_id))\n $cart = new Cart($cart_id);\n\n $customer = new Customer($cart->id_customer);\n $order = new Order(Order::getOrderByCartId($cart->id));\n\n if ($cart->OrderExists() == true) {\n $url = 'index.php?controller=order-detail&id_order=' . $order->id;\n if (Cart::isGuestCartByCartId($cart->id))\n $url = 'index.php?controller=guest-tracking&id_order=' . $order->reference . '&order_reference=' . $order->reference . '&email=' . urlencode($customer->email);\n\n Tools::redirect($url, __PS_BASE_URI__, null, 'HTTP/1.1 301 Moved Permanently');\n\n }\n }", "protected function _prepareLayout()\n {\n $accordion = $this->getLayout()->createBlock('adminhtml/widget_accordion');\n $accordion->addItem('storecredit_history', array(\n 'title' => Mage::helper('storecreditpro')->__('Credit History'),\n 'open' => false,\n 'class' => '',\n 'ajax' => true,\n 'content_url' => $this->getUrl('adminhtml/storecreditpro_customer/history', array('_current' => true))\n ));\n $this->setChild('mw_storecredit_history', $accordion);\n \n\n return parent::_prepareLayout();\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n\n if (Request::Ajax())\n {\n $this->layout = View::make('layouts.ajax');\n }\n else\n $this->layout = View::make($this->layout);\n\n $this->layout->content = \" \";\n }\n }", "protected function _prepareLayout()\n {\n parent::_prepareLayout();\n \n if ( Mage::getSingleton('magna_news/wysiwyg_config')->isEnabled() )\n {\n $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);\n }\n }", "public function controllerActionLayoutLoadBefore($observer)\n\t{\n\t if (0 == Mage::getStoreConfig('checkout/cart/redirect_to_cart')\n\t && true === Mage::getSingleton('core/session')->getBcpRecollectTotals()) {\n \t $quote = Mage::getModel('checkout/cart')->getQuote();\n \t $quote->setTotalsCollectedFlag(false)->collectTotals();\n \t Mage::getSingleton('core/session')->setBcpRecollectTotals(false);\n\t }\n\t}", "public function initializeLandingPageSession()\n {\n Mage::getSingleton('core/session')->setSkipStraightToCheckoutOnCartAdd(true);\n }", "protected function _prepareLayout()\n {\n $this->getLayout()->getBlock('head')->addCss('css/buckaroo_buckaroo3extended/supportTab.css');\n return parent::_prepareLayout();\n }", "public function afterProcess(\\Magento\\Checkout\\Block\\Checkout\\LayoutProcessor $processor, $jsLayout)\n {\n $shippingConfig = &$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']\n ['children']['shippingAddress'];\n $paymentConfig = &$jsLayout['components']['checkout']['children']['steps']['children']['billing-step']\n ['children']['payment'];\n\n if ($this->amazonConfig->isEnabled()) {\n $shippingConfig['component'] = 'Amazon_PayV2/js/view/shipping';\n $shippingConfig['children']['customer-email']['component'] = 'Amazon_PayV2/js/view/form/element/email';\n $shippingConfig['children']['address-list']['component'] = 'Amazon_PayV2/js/view/shipping-address/list';\n $shippingConfig['children']['address-list']['rendererTemplates']['new-customer-address']\n ['component'] = 'Amazon_PayV2/js/view/shipping-address/address-renderer/default';\n\n $shippingConfig['children']['shipping-address-fieldset']['children']['inline-form-manipulator'] = [\n 'component' => 'Amazon_PayV2/js/view/shipping-address/inline-form',\n 'sortOrder' => 1000,\n ];\n\n $paymentConfig['children']['payments-list']['component'] = 'Amazon_PayV2/js/view/payment/list';\n\n unset($paymentConfig['children']['renders']['children']['amazonlogin']); // legacy\n\n // \"Show Amazon Pay in payment methods\"?\n if (!$this->amazonConfig->isPayButtonAvailableAsPaymentMethod()) {\n unset($paymentConfig['children']['renders']['children']['amazon_payment_v2-button']);\n }\n\n } else {\n unset($shippingConfig['children']['customer-email']['children']['amazon-payv2-button-region']);\n unset($shippingConfig['children']['before-form']['children']['amazon-payv2-address']);\n unset($paymentConfig['children']['renders']['children']['amazon_payment_v2-method']);\n unset($paymentConfig['children']['renders']['children']['amazon_payment_v2-button']);\n }\n\n return $jsLayout;\n }", "protected function _prepareLayout()\n {\n if (!Mage::app()->isSingleStoreMode()) {\n $this->setChild('store_switcher',\n $this->getLayout()->createBlock('adminhtml/store_switcher')\n ->setUseConfirm(false)\n ->setSwitchUrl($this->getUrl('*/*/*', array('store'=>null)))\n );\n }\n $this->setChild('grid', $this->getLayout()->createBlock('advancedattributes/manage_filters_grid', 'filters.grid'));\n return parent::_prepareLayout();\n }", "public function prepare_layout($layout_script = NULL)\n {\n return $this->request->get_controller('catalog')->prepare_layout($layout_script);\n }", "public function index() {\n $prodData['cart_total'] = number_format($this->cart->getTotal(),2);\n $cart_layouts['md'] = '';\n $cart_layouts['sm'] = '';\n $cart_layouts['xs'] = '';\n\n $cart_count = $this->cart->countProducts();\n if($cart_count == 0)\n {\n $cart_layouts['cart_class'] = '';\n $prodData['cart_count'] = 'empty';\n }\n // elseif ($cart_count > 99) {\n // $prodData['cart_count'] = '99+';\n // }\n else {\n $prodData['cart_count'] = $cart_count. ' items';\n $cart_layouts['cart_class'] = 'full';\n }\n\n // $prodData['cart_count'] = 3;\n $cart_layouts['md'] = $this->load->view('ssan/cart_menu', $prodData);\n $cart_layouts['sm'] = $this->load->view('ssan/cart_menu_sm', $prodData);\n $cart_layouts['xs'] = $this->load->view('ssan/cart_menu_xs', $prodData);\n\n return $cart_layouts;\n }", "function estore_woocommerce_layout_class() {\n\tglobal $post;\n\n\t$layout = get_theme_mod( 'estore_woocommerce_global_layout', 'right_sidebar' );\n\n\n\t// Front page displays in Reading Settings\n\t$page_for_posts = get_option('page_for_posts');\n\n\t// Get Layout meta\n\tif($post) {\n\t\t$layout_meta = get_post_meta( $post->ID, 'estore_page_specific_layout', true );\n\t}\n\t// Home page if Posts page is assigned\n\tif( is_home() && !( is_front_page() ) ) {\n\t\t$queried_id = get_option( 'page_for_posts' );\n\t\t$layout_meta = get_post_meta( $queried_id, 'estore_page_specific_layout', true );\n\n\t\tif( $layout_meta != 'default_layout' && $layout_meta != '' ) {\n\t \t\t$layout = get_post_meta( $queried_id, 'estore_page_specific_layout', true );\n\t\t}\n\t}\n\n\telseif( is_page() ) {\n\t\t$layout = get_theme_mod( 'estore_woocommerce_global_layout', 'right_sidebar' );\n\t\tif( $layout_meta != 'default_layout' && $layout_meta != '' ) {\n\t\t\t$layout = get_post_meta( $post->ID, 'estore_page_specific_layout', true );\n\t\t}\n\t}\n\n\telseif( is_single() ) {\n\t\t$layout = get_theme_mod( 'estore_woocommerce_product_layout', 'right_sidebar' );\n\t\tif( $layout_meta != 'default_layout' && $layout_meta != '' ) {\n\t\t\t$layout = get_post_meta( $post->ID, 'estore_page_specific_layout', true );\n\t\t}\n\t}\n\n\treturn $layout;\n}", "protected function _prepareLayout()\n {\n\n\t\t\n $addButtonProps = [\n 'id' => 'add_new',\n 'label' => __('Add New'),\n 'class' => 'add primary',\n 'button_class' => '',\n 'class_name' => 'Magento\\Backend\\Block\\Widget\\Button',\n 'onclick' => \"setLocation('\" . $this->_getCreateUrl() . \"')\",\n ];\n\t\t\n $this->buttonList->add('add_new', $addButtonProps);\n\t\t\n\t\t$addUploadButtonProps = [\n 'id' => 'upload_csv',\n 'label' => __('Upload CSV'),\n 'class' => 'add primary',\n 'button_class' => '',\n 'class_name' => 'Magento\\Backend\\Block\\Widget\\Button',\n\t\t\t'onclick' => \"setLocation('\" . $this->_getUploadUrl() . \"')\",\n ];\n $this->buttonList->add('upload_csv', $addUploadButtonProps);\n\t\t\n\n $this->setChild(\n 'grid',\n $this->getLayout()->createBlock('Serole\\MemberList\\Block\\Adminhtml\\Memberlist\\Grid', 'serole.memberlist.grid')\n );\n return parent::_prepareLayout();\n }", "public function onBeforeRender()\n\t{\n\t\t// Get the application.\n\t\t$app = JFactory::getApplication();\n\n\t\t// Detecting Active Variables.\n\t\t$option = $app->input->getCmd('option', '');\n\t\t$view = $app->input->getCmd('view', '');\n\t\t$layout = $app->input->getCmd('layout', 'default');\n\n\t\t// Only in Admin.\n\t\tif ($app->isSite())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif ($option == 'com_installer' && $view == 'manage' && $layout == 'default')\n\t\t{\n\t\t\t// Get the toolbar object instance.\n\t\t\t$toolbar = JToolBar::getInstance('toolbar');\n\t\t\t$toolbar->appendButton('Confirm', 'PLG_SYSTEM_PACKAGER_MSG_EXPORT', 'cogs', 'JTOOLBAR_EXPORT', 'export', true);\n\t\t}\n\t}", "protected function applyPageLayout()\n {\n $this->content = \"\n @extends('generated/layout')\n \";\n }", "public function setLayout() {\n if ($this->controller == 'login' || $this->controller == 'infos') {\n $this->viewBuilder()->setLayout('empty');\n } else if ($this->controller == 'ajax') {\n $this->viewBuilder()->setLayout('ajax');\n } else {\n $this->viewBuilder()->setLayout('chotreo');\n }\n }", "protected function _prepareLayout()\n {\n $this->setTemplate('Magento_UrlRewrite::edit.phtml');\n\n $this->_addBackButton();\n $this->_prepareLayoutFeatures();\n\n return parent::_prepareLayout();\n }", "public function _prepareLayout()\n {\n $this->_getGiveawayCollection();\n\n // add Home breadcrumb\n $oBreadcrumbs = $this->getLayout()->getBlock('breadcrumbs');\n\n // if we don't have breadcrumbs in layout, just continue\n if (!$oBreadcrumbs) {\n return parent::_prepareLayout();\n }\n\n $sTitle = $this->__('Free Allowances');\n if ($oBreadcrumbs) {\n $oBreadcrumbs->addCrumb(\n 'home',\n array(\n 'label' => $this->__('Home'),\n 'title' => $this->__('Go to Home Page'),\n 'link' => Mage::getBaseUrl()\n )\n )->addCrumb(\n 'giveaway',\n array(\n 'label' => $sTitle,\n 'title' => $sTitle\n )\n );\n }\n\n // modify page title\n $oHeadBlock = $this->getLayout()->getBlock('head');\n if ($oHeadBlock) {\n $oHeadBlock->setTitle($sTitle);\n }\n\n $oTitleBlock = $this->getLayout()->createBlock('sitewards_giveaway/product_listTitle')\n ->setTemplate('sitewards/giveaway/catalog/product/list_title.phtml');\n $this->getLayout()->getBlock('content')->insert($oTitleBlock);\n\n return parent::_prepareLayout();\n }", "public function preDispatch() {\n\t\t$this->_helper->layout ()->disableLayout ();\n\t}", "protected function setupLayout() {\n\t\tif (!is_null($this -> layout)) {\n\t\t\t$this -> layout = View::make($this -> layout);\n\t\t}\n\t}", "public function add_views_layout_support() {\n\t\t\t$shop_page_style = astra_get_option( 'shop-style' );\n\t\t\t$html_markup = '<div class=\"ast-products-view\">';\n\t\t\t$html_markup .= '<span class=\"ast-view-trigger ' . esc_attr( 'shop-page-list-style' === $shop_page_style ? '' : 'active' ) . '\" data-view=\"grid\">' . Astra_Builder_UI_Controller::fetch_svg_icon( 'th-large', false ) . '</span>';\n\t\t\t$html_markup .= '<span class=\"ast-view-trigger ' . esc_attr( 'shop-page-list-style' === $shop_page_style ? 'active' : '' ) . '\" data-view=\"list\">' . Astra_Builder_UI_Controller::fetch_svg_icon( 'th-list', false ) . '</span>';\n\t\t\t$html_markup .= '</div>';\n\n\t\t\techo $html_markup; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped\n\t\t}", "public function validate()\n {\n require APP . 'view/_templates/header.php';\n require APP . 'view/login/validate.php';\n require APP . 'view/_templates/footer.php';\n }", "function afterLayout() { \t\t\n }", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout) && ! $this->is_pjax())\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "function beforeRender(){\n\t\t$this->set('rutaUrl_for_layout', $this->rutaUrl_for_layout);\n\n if ($this->RequestHandler->isAjax()){\n $this->layout = 'ajax';\n } \n\t}", "public function index() {\n if ((!$this->cart->hasProducts() && empty($this->session->data['giftcards'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {\n $this->response->redirect($this->url->link('checkout/cart'));\n }\n \n // Validate minimum quantity requirments.\n $products = $this->cart->getProducts();\n \n foreach ($products as $product) {\n $product_total = 0;\n \n foreach ($products as $product_2) {\n if ($product_2['product_id'] == $product['product_id']) {\n $product_total+= $product_2['quantity'];\n }\n }\n \n if ($product['minimum'] > $product_total) {\n $this->response->redirect($this->url->link('checkout/cart'));\n }\n }\n \n $data = $this->theme->language('checkout/checkout');\n \n $this->theme->setTitle($this->language->get('lang_heading_title'));\n \n $this->breadcrumb->add('lang_text_cart', 'checkout/cart');\n $this->breadcrumb->add('lang_heading_title', 'checkout/checkout', null, true, 'SSL');\n \n $data['logged'] = $this->customer->isLogged();\n $data['shipping_required'] = $this->cart->hasShipping();\n \n $this->theme->loadjs('javascript/checkout/checkout', $data);\n \n $data = $this->theme->listen(__CLASS__, __FUNCTION__, $data);\n \n $this->theme->set_controller('header', 'shop/header');\n $this->theme->set_controller('footer', 'shop/footer');\n \n $data = $this->theme->render_controllers($data);\n \n if (isset($this->request->get['quickconfirm'])) {\n $data['quickconfirm'] = $this->request->get['quickconfirm'];\n }\n \n $this->response->setOutput($this->theme->view('checkout/checkout', $data));\n }", "public function expressSetup() {\r\n\t\tif ((!$this->cart->hasProducts() && empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {\r\n\t\t\t$json = array();\r\n\t\t\t$json['error'] = true;\r\n\t\t\t$json['url'] = $this->url->link('checkout/cart');\r\n\r\n\t\t\t$this->response->addHeader('Content-Type: application/json');\r\n\t\t\t$this->response->setOutput(json_encode($json));\r\n\t\t}\r\n\r\n\t\t// if user not logged in check that the guest checkout is allowed\r\n\t\tif (!$this->customer->isLogged() && (!$this->config->get('config_checkout_guest') || $this->config->get('config_customer_price') || $this->cart->hasDownload() || $this->cart->hasRecurringProducts())) {\r\n\t\t\t$json = array();\r\n\t\t\t$json['error'] = true;\r\n\t\t\t$json['url'] = $this->url->link('checkout/checkout');\r\n\r\n\t\t\t$this->response->addHeader('Content-Type: application/json');\r\n\t\t\t$this->response->setOutput(json_encode($json));\r\n\t\t} else {\r\n\t\t\tunset($this->session->data['guest']);\r\n\t\t}\r\n\r\n\t\tunset($this->session->data['shipping_method']);\r\n\t\tunset($this->session->data['shipping_methods']);\r\n\t\tunset($this->session->data['payment_method']);\r\n\t\tunset($this->session->data['payment_methods']);\r\n\r\n\t\tif (!$this->customer->isLogged()) {\r\n\t\t\t$this->session->data['paypal_braintree']['guest'] = true;\r\n\r\n\t\t\t$this->session->data['guest']['customer_group_id'] = $this->config->get('config_customer_group_id');\r\n\t\t\t$this->session->data['guest']['firstname'] = $this->request->post['details']['firstName'];\r\n\t\t\t$this->session->data['guest']['lastname'] = $this->request->post['details']['lastName'];\r\n\t\t\t$this->session->data['guest']['email'] = $this->request->post['details']['email'];\r\n\r\n\t\t\tif (isset($this->request->post['details']['phone'])) {\r\n\t\t\t\t$this->session->data['guest']['telephone'] = $this->request->post['details']['phone'];\r\n\t\t\t} else {\r\n\t\t\t\t$this->session->data['guest']['telephone'] = '';\r\n\t\t\t}\r\n\r\n\t\t\t$this->session->data['guest']['payment']['company'] = '';\r\n\r\n\t\t\t$this->session->data['guest']['payment']['firstname'] = $this->request->post['details']['firstName'];\r\n\t\t\t$this->session->data['guest']['payment']['lastname'] = $this->request->post['details']['lastName'];\r\n\r\n\t\t\t$this->session->data['guest']['payment']['company_id'] = '';\r\n\t\t\t$this->session->data['guest']['payment']['tax_id'] = '';\r\n\r\n\t\t\tif ($this->cart->hasShipping()) {\r\n\t\t\t\t$shipping_name = explode(' ', $this->request->post['details']['shippingAddress']['recipientName']);\r\n\t\t\t\t$shipping_first_name = $shipping_name[0];\r\n\t\t\t\tunset($shipping_name[0]);\r\n\t\t\t\t$shipping_last_name = implode(' ', $shipping_name);\r\n\r\n\t\t\t\t$this->session->data['guest']['payment']['address_1'] = $this->request->post['details']['shippingAddress']['line1'];\r\n\t\t\t\tif (isset($this->request->post['details']['shippingAddress']['line2'])) {\r\n\t\t\t\t\t$this->session->data['guest']['payment']['address_2'] = $this->request->post['details']['shippingAddress']['line2'];\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->session->data['guest']['payment']['address_2'] = '';\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$this->session->data['guest']['payment']['postcode'] = $this->request->post['details']['shippingAddress']['postalCode'];\r\n\t\t\t\t$this->session->data['guest']['payment']['city'] = $this->request->post['details']['shippingAddress']['city'];\r\n\r\n\t\t\t\t$this->session->data['guest']['shipping']['firstname'] = $shipping_first_name;\r\n\t\t\t\t$this->session->data['guest']['shipping']['lastname'] = $shipping_last_name;\r\n\t\t\t\t$this->session->data['guest']['shipping']['company'] = '';\r\n\t\t\t\t$this->session->data['guest']['shipping']['address_1'] = $this->request->post['details']['shippingAddress']['line1'];\r\n\r\n\t\t\t\tif (isset($this->request->post['details']['shippingAddress']['line2'])) {\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['address_2'] =$this->request->post['details']['shippingAddress']['line2'];\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['address_2'] = '';\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$this->session->data['guest']['shipping']['postcode'] = $this->request->post['details']['shippingAddress']['postalCode'];\r\n\t\t\t\t$this->session->data['guest']['shipping']['city'] = $this->request->post['details']['shippingAddress']['city'];\r\n\r\n\t\t\t\t$this->session->data['shipping_postcode'] = $this->request->post['details']['shippingAddress']['postalCode'];\r\n\r\n\t\t\t\t$country_info = $this->db->query(\"SELECT * FROM `\" . DB_PREFIX . \"country` WHERE `iso_code_2` = '\" . $this->db->escape($this->request->post['details']['shippingAddress']['countryCode']) . \"' AND `status` = '1' LIMIT 1\")->row;\r\n\r\n\t\t\t\tif ($country_info) {\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['country_id'] = $country_info['country_id'];\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['country'] = $country_info['name'];\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['iso_code_2'] = $country_info['iso_code_2'];\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['iso_code_3'] = $country_info['iso_code_3'];\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['address_format'] = $country_info['address_format'];\r\n\t\t\t\t\t$this->session->data['guest']['payment']['country_id'] = $country_info['country_id'];\r\n\t\t\t\t\t$this->session->data['guest']['payment']['country'] = $country_info['name'];\r\n\t\t\t\t\t$this->session->data['guest']['payment']['iso_code_2'] = $country_info['iso_code_2'];\r\n\t\t\t\t\t$this->session->data['guest']['payment']['iso_code_3'] = $country_info['iso_code_3'];\r\n\t\t\t\t\t$this->session->data['guest']['payment']['address_format'] = $country_info['address_format'];\r\n\t\t\t\t\t$this->session->data['shipping_country_id'] = $country_info['country_id'];\r\n\r\n\t\t\t\t\tif (isset($this->request->post['details']['shippingAddress']['state'])) {\r\n\t\t\t\t\t\t$returned_shipping_zone = $this->request->post['details']['shippingAddress']['state'];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$returned_shipping_zone = '';\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$zone_info = $this->db->query(\"SELECT * FROM `\" . DB_PREFIX . \"zone` WHERE (`name` = '\" . $this->db->escape($returned_shipping_zone) . \"' OR `code` = '\" . $this->db->escape($returned_shipping_zone) . \"') AND `status` = '1' AND `country_id` = '\" . (int)$country_info['country_id'] . \"' LIMIT 1\")->row;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['country_id'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['country'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['iso_code_2'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['iso_code_3'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['address_format'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['payment']['country_id'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['payment']['country'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['payment']['iso_code_2'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['payment']['iso_code_3'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['payment']['address_format'] = '';\r\n\t\t\t\t\t$this->session->data['shipping_country_id'] = '';\r\n\r\n\t\t\t\t\t$zone_info = array();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($zone_info) {\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['zone'] = $zone_info['name'];\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['zone_code'] = $zone_info['code'];\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['zone_id'] = $zone_info['zone_id'];\r\n\t\t\t\t\t$this->session->data['guest']['payment']['zone'] = $zone_info['name'];\r\n\t\t\t\t\t$this->session->data['guest']['payment']['zone_code'] = $zone_info['code'];\r\n\t\t\t\t\t$this->session->data['guest']['payment']['zone_id'] = $zone_info['zone_id'];\r\n\t\t\t\t\t$this->session->data['shipping_zone_id'] = $zone_info['zone_id'];\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['zone'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['zone_code'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['shipping']['zone_id'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['payment']['zone'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['payment']['zone_code'] = '';\r\n\t\t\t\t\t$this->session->data['guest']['payment']['zone_id'] = '';\r\n\t\t\t\t\t$this->session->data['shipping_zone_id'] = '';\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$this->session->data['guest']['shipping_address'] = true;\r\n\t\t\t} else {\r\n\t\t\t\t$this->session->data['guest']['payment']['address_1'] = '';\r\n\t\t\t\t$this->session->data['guest']['payment']['address_2'] = '';\r\n\t\t\t\t$this->session->data['guest']['payment']['postcode'] = '';\r\n\t\t\t\t$this->session->data['guest']['payment']['city'] = '';\r\n\t\t\t\t$this->session->data['guest']['payment']['country_id'] = '';\r\n\t\t\t\t$this->session->data['guest']['payment']['country'] = '';\r\n\t\t\t\t$this->session->data['guest']['payment']['iso_code_2'] = '';\r\n\t\t\t\t$this->session->data['guest']['payment']['iso_code_3'] = '';\r\n\t\t\t\t$this->session->data['guest']['payment']['address_format'] = '';\r\n\t\t\t\t$this->session->data['guest']['payment']['zone'] = '';\r\n\t\t\t\t$this->session->data['guest']['payment']['zone_code'] = '';\r\n\t\t\t\t$this->session->data['guest']['payment']['zone_id'] = '';\r\n\t\t\t\t$this->session->data['guest']['shipping_address'] = false;\r\n\t\t\t}\r\n\r\n\t\t\t$this->session->data['account'] = 'guest';\r\n\r\n\t\t\tunset($this->session->data['shipping_method']);\r\n\t\t\tunset($this->session->data['shipping_methods']);\r\n\t\t\tunset($this->session->data['payment_method']);\r\n\t\t\tunset($this->session->data['payment_methods']);\r\n\t\t} else {\r\n\t\t\t$this->session->data['paypal_braintree']['guest'] = false;\r\n\r\n\t\t\tunset($this->session->data['guest']);\r\n\t\t\t/**\r\n\t\t\t * if the user is logged in, add the address to the account and set the ID.\r\n\t\t\t */\r\n\r\n\t\t\tif ($this->cart->hasShipping()) {\r\n\t\t\t\t$this->load->model('account/address');\r\n\r\n\t\t\t\t$addresses = $this->model_account_address->getAddresses();\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * Compare all of the user addresses and see if there is a match\r\n\t\t\t\t */\r\n\t\t\t\t$match = false;\r\n\t\t\t\tforeach($addresses as $address) {\r\n\t\t\t\t\tif (trim(strtolower($address['address_1'])) == trim(strtolower($this->request->post['details']['shippingAddress']['line1'])) && trim(strtolower($address['postcode'])) == trim(strtolower($this->request->post['details']['shippingAddress']['postalCode']))) {\r\n\t\t\t\t\t\t$match = true;\r\n\r\n\t\t\t\t\t\t$this->session->data['payment_address_id'] = $address['address_id'];\r\n\t\t\t\t\t\t$this->session->data['payment_country_id'] = $address['country_id'];\r\n\t\t\t\t\t\t$this->session->data['payment_zone_id'] = $address['zone_id'];\r\n\r\n\t\t\t\t\t\t$this->session->data['shipping_address_id'] = $address['address_id'];\r\n\t\t\t\t\t\t$this->session->data['shipping_country_id'] = $address['country_id'];\r\n\t\t\t\t\t\t$this->session->data['shipping_zone_id'] = $address['zone_id'];\r\n\t\t\t\t\t\t$this->session->data['shipping_postcode'] = $address['postcode'];\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * If there is no address match add the address and set the info.\r\n\t\t\t\t */\r\n\t\t\t\tif ($match == false) {\r\n\t\t\t\t\t$shipping_name = explode(' ', trim($this->request->post['details']['shippingAddress']['recipientName']));\r\n\t\t\t\t\t$shipping_first_name = $shipping_name[0];\r\n\t\t\t\t\tunset($shipping_name[0]);\r\n\t\t\t\t\t$shipping_last_name = implode(' ', $shipping_name);\r\n\r\n\t\t\t\t\t$country_info = $this->db->query(\"SELECT * FROM `\" . DB_PREFIX . \"country` WHERE `iso_code_2` = '\" . $this->db->escape($this->request->post['details']['shippingAddress']['countryCode']) . \"' AND `status` = '1' LIMIT 1\")->row;\r\n\t\t\t\t\t$zone_info = $this->db->query(\"SELECT * FROM `\" . DB_PREFIX . \"zone` WHERE (`name` = '\" . $this->db->escape($this->request->post['details']['shippingAddress']['state']) . \"' OR `code` = '\" . $this->db->escape($this->request->post['details']['shippingAddress']['state']) . \"') AND `status` = '1' AND `country_id` = '\" . (int)$country_info['country_id'] . \"'\")->row;\r\n\r\n\t\t\t\t\t$address_data = array(\r\n\t\t\t\t\t\t'firstname' => $shipping_first_name,\r\n\t\t\t\t\t\t'lastname' => $shipping_last_name,\r\n\t\t\t\t\t\t'company' => '',\r\n\t\t\t\t\t\t'company_id' => '',\r\n\t\t\t\t\t\t'tax_id' => '',\r\n\t\t\t\t\t\t'address_1' => $this->request->post['details']['shippingAddress']['line1'],\r\n\t\t\t\t\t\t'address_2' => (isset($this->request->post['details']['shippingAddress']['line2']) ? $this->request->post['details']['shippingAddress']['line2'] : ''),\r\n\t\t\t\t\t\t'postcode' => $this->request->post['details']['shippingAddress']['postalCode'],\r\n\t\t\t\t\t\t'city' => $this->request->post['details']['shippingAddress']['city'],\r\n\t\t\t\t\t\t'zone_id' => (isset($zone_info['zone_id']) ? $zone_info['zone_id'] : 0),\r\n\t\t\t\t\t\t'country_id' => (isset($country_info['country_id']) ? $country_info['country_id'] : 0)\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\t$address_id = $this->model_account_address->addAddress($this->customer->getId(), $address_data);\r\n\r\n\t\t\t\t\t$this->session->data['payment_address_id'] = $address_id;\r\n\t\t\t\t\t$this->session->data['payment_country_id'] = $address_data['country_id'];\r\n\t\t\t\t\t$this->session->data['payment_zone_id'] = $address_data['zone_id'];\r\n\r\n\t\t\t\t\t$this->session->data['shipping_address_id'] = $address_id;\r\n\t\t\t\t\t$this->session->data['shipping_country_id'] = $address_data['country_id'];\r\n\t\t\t\t\t$this->session->data['shipping_zone_id'] = $address_data['zone_id'];\r\n\t\t\t\t\t$this->session->data['shipping_postcode'] = $address_data['postcode'];\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->session->data['payment_address_id'] = '';\r\n\t\t\t\t$this->session->data['payment_country_id'] = '';\r\n\t\t\t\t$this->session->data['payment_zone_id'] = '';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$this->session->data['paypal_braintree'] = $this->request->post;\r\n\r\n\t\t$json = array(\r\n\t\t\t'error' => false,\r\n\t\t\t'url' => ''\r\n\t\t);\r\n\r\n\t\t$this->response->addHeader('Content-Type: application/json');\r\n\t\t$this->response->setOutput(json_encode($json));\r\n\t}", "public function initContent()\n {\n Hook::exec('displayFooter');\n parent::initContent();\n $this->addJS(_THEME_JS_DIR_.'index.js');\n $this->addJS(_THEME_JS_DIR_.'ckplayer/ckplayer.min.js');\n if($this->context->shop->theme_name=='uniwigs2016-m'){\n $this->removeJS(array(\n '/js/jquery/plugins/fancybox/jquery.fancybox.js',\n '/js/jquery/plugins/jquery.scrollTo.js',\n '/themes/uniwigs2016-m/js/autoload/15-jquery.uniform-modified.js',\n '/themes/uniwigs2016-m/js/modules/blockwishlist/js/ajax-wishlist.js',\n '/themes/uniwigs2016-m/js/modules/blockcart/ajax-cart.js',\n ));\n $this->addCSS(_THEME_MOBILE_CSS_DIR_.'qietu.css');\n $this->addCSS(_THEME_MOBILE_CSS_DIR_.'style.css');\n }\n if($this->context->shop->theme_name=='uniwigs2016'){\n $this->removeJS(array(\n '/js/jquery/plugins/fancybox/jquery.fancybox.js',\n '/js/jquery/plugins/jquery.scrollTo.js',\n '/themes/uniwigs2016/js/autoload/15-jquery.uniform-modified.js',\n '/themes/uniwigs2016/js/modules/blockwishlist/js/ajax-wishlist.js'\n ));\n $this->removeCSS(array(\n '/js/jquery/plugins/fancybox/jquery.fancybox.css',\n '/themes/uniwigs2016/css/autoload/uniform.default.css',\n '/themes/uniwigs2016/css/modules/blockwishlist/blockwishlist.css',\n ));\n $this->addCSS(_THEME_CSS_DIR_.'index.css');\n }\n $this->context->smarty->assign(array(\n 'HOOK_HOME' => Hook::exec('displayHome'),\n 'HOOK_HOME_TAB' => Hook::exec('displayTopColumn'),\n 'HOOK_HOME_TAB_CONTENT' => Hook::exec('displayTop'),\n ));\n $this->setTemplate(_PS_THEME_DIR_.'index.tpl');\n }", "protected function beforeRender() \r\n {\r\n parent::beforeRender();\r\n \r\n // Set add layout\r\n $this->setLayout('add');\r\n }", "public function init(){\n\t\t$this->_helper->layout->setLayout('layout_login');\n\t}", "public function renderView(){ \n if ($this->hlp->sess(\"listing\")->render){\n $this->template->renderBuyForm = TRUE;\n }\n }", "public function hookProductFooter($params)\r\n\t{\r\n\t\t$product_quantity = Product::getQuantity((int)Tools::getValue('id_product'));\r\n\t\tif ($product_quantity == 0)\r\n\t\t\treturn;\r\n\t\tif (Configuration::get('PAYPAL_USA_EXPRESS_CHECKOUT') == 1 && Configuration::get('PAYPAL_USA_EXP_CHK_PRODUCT'))\r\n\t\t{\r\n\t\t\t$this->smarty->assign('paypal_usa_action', $this->context->link->getModuleLink('paypalusa', 'expresscheckout', array('pp_exp_initial' => 1)));\r\n\t\t\t$this->smarty->assign('paypal_usa_merchant_country_is_mx', (Validate::isLoadedObject($this->_shop_country) && $this->_shop_country->iso_code == 'MX'));\r\n\r\n\t\t\treturn $this->display(__FILE__, 'views/templates/hooks/express-checkout.tpl');\r\n\t\t}\r\n\t}", "protected function setupLayout()\n\t{\n\t\tdefine(\"aol_institute\", 68);\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "public function hookFooter()\n {\n $ga_scripts = '';\n $this->js_state = 0;\n\n if (isset($this->context->cookie->ga_cart)) {\n $this->filterable = 0;\n\n $gacarts = unserialize($this->context->cookie->ga_cart);\n foreach ($gacarts as $gacart) {\n if ($gacart['quantity'] > 0) {\n } elseif ($gacart['quantity'] < 0) {\n $gacart['quantity'] = abs($gacart['quantity']);\n }\n }\n unset($this->context->cookie->ga_cart);\n }\n\n $controller_name = Tools::getValue('controller');\n $products = $this->wrapProducts($this->context->smarty->getTemplateVars('products'), [], true);\n\n if ($controller_name == 'order' || $controller_name == 'orderopc') {\n $this->eligible = 1;\n $step = Tools::getValue('step');\n if (empty($step)) {\n $step = 0;\n }\n }\n\n if (version_compare(_PS_VERSION_, '1.5', '<')) {\n if ($controller_name == 'orderconfirmation') {\n $this->eligible = 1;\n }\n } else {\n $confirmation_hook_id = (int) Hook::getIdByName('orderConfirmation');\n if (isset(Hook::$executed_hooks[$confirmation_hook_id])) {\n $this->eligible = 1;\n }\n }\n\n if (isset($products) && count($products) && $controller_name != 'index') {\n if ($this->eligible == 0) {\n $ga_scripts .= $this->addProductImpression($products);\n }\n $ga_scripts .= $this->addProductClick($products);\n }\n\n return $this->_runJs($ga_scripts);\n }", "protected function _prepareLayoutFeatures()\n {\n if ($this->_getUrlRewrite()->getId()) {\n $this->_headerText = __('Edit URL Rewrite');\n } else {\n $this->_headerText = __('Add New URL Rewrite');\n }\n\n $this->_addUrlRewriteSelectorBlock();\n $this->_addEditFormBlock();\n }", "function cs_meta_layout(){\n\tglobal $cs_xmlObject;\n\tif ( empty($cs_xmlObject->sidebar_layout->cs_layout) ) $cs_layout = \"\"; else $cs_layout = $cs_xmlObject->sidebar_layout->cs_layout;\n\tif ( empty($cs_xmlObject->sidebar_layout->cs_sidebar_left) ) $cs_sidebar_left = \"\"; else $cs_sidebar_left = $cs_xmlObject->sidebar_layout->cs_sidebar_left;\n\tif ( empty($cs_xmlObject->sidebar_layout->cs_sidebar_right) ) $cs_sidebar_right = \"\"; else $cs_sidebar_right = $cs_xmlObject->sidebar_layout->cs_sidebar_right;\n ?>\n\t<div class=\"elementhidden\">\n <div class=\"clear\"></div>\n \t<div class=\"opt-head\">\n <h4>Layout Options</h4>\n <div class=\"clear\"></div>\n </div>\n <ul class=\"form-elements\">\n <li class=\"to-label\">\n <label>Select Layout</label>\n </li>\n <li class=\"to-field\">\n <div class=\"meta-input\">\n <div class='radio-image-wrapper'>\n <input <?php if($cs_layout==\"none\")echo \"checked\"?> onclick=\"show_sidebar('none')\" type=\"radio\" name=\"cs_layout\" class=\"radio\" value=\"none\" id=\"radio_1\" />\n <label for=\"radio_1\">\n <span class=\"ss\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/1.gif\" alt=\"\" /></span>\n <span <?php if($cs_layout==\"none\")echo \"class='check-list'\"?> id=\"check-list\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/1-hover.gif\" alt=\"\" /></span>\n </label>\n </div>\n <div class='radio-image-wrapper'>\n <input <?php if($cs_layout==\"right\")echo \"checked\"?> onclick=\"show_sidebar('right')\" type=\"radio\" name=\"cs_layout\" class=\"radio\" value=\"right\" id=\"radio_2\" />\n <label for=\"radio_2\">\n <span class=\"ss\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/2.gif\" alt=\"\" /></span>\n <span <?php if($cs_layout==\"right\")echo \"class='check-list'\"?> id=\"check-list\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/2-hover.gif\" alt=\"\" /></span>\n </label>\n </div>\n <div class='radio-image-wrapper'>\n <input <?php if($cs_layout==\"left\")echo \"checked\"?> onclick=\"show_sidebar('left')\" type=\"radio\" name=\"cs_layout\" class=\"radio\" value=\"left\" id=\"radio_3\" />\n <label for=\"radio_3\">\n <span class=\"ss\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/3.gif\" alt=\"\" /></span>\n <span <?php if($cs_layout==\"left\")echo \"class='check-list'\"?> id=\"check-list\"><img src=\"<?php echo get_template_directory_uri()?>/images/admin/3-hover.gif\" alt=\"\" /></span>\n </label>\n </div>\n </div>\n </li>\n </ul>\n <ul class=\"form-elements meta-body\" style=\" <?php if($cs_sidebar_left == \"\"){echo \"display:none\";}else echo \"display:block\";?>\" id=\"sidebar_left\" >\n <li class=\"to-label\">\n <label>Select Left Sidebar</label>\n </li>\n <li class=\"to-field\">\n <select name=\"cs_sidebar_left\" class=\"select_dropdown\" id=\"page-option-choose-left-sidebar\">\n <?php\n $cs_theme_option = get_option('cs_theme_option');\n if ( isset($cs_theme_option['sidebar']) and count($cs_theme_option['sidebar']) > 0 ) {\n foreach ( $cs_theme_option['sidebar'] as $sidebar ){\n ?>\n <option <?php if ($cs_sidebar_left==$sidebar)echo \"selected\";?> ><?php echo $sidebar;?></option>\n <?php\n }\n }\n ?>\n </select>\n </li>\n </ul>\n <ul class=\"form-elements meta-body\" style=\" <?php if($cs_sidebar_right == \"\"){echo \"display:none\";}else echo \"display:block\";?>\" id=\"sidebar_right\" >\n <li class=\"to-label\">\n <label>Select Right Sidebar</label>\n </li>\n <li class=\"to-field\">\n <select name=\"cs_sidebar_right\" class=\"select_dropdown\" id=\"page-option-choose-right-sidebar\">\n <?php\n if ( isset($cs_theme_option['sidebar']) and count($cs_theme_option['sidebar']) > 0 ) {\n foreach ( $cs_theme_option['sidebar'] as $sidebar ){\n ?>\n <option <?php if ($cs_sidebar_right==$sidebar)echo \"selected\";?> ><?php echo $sidebar;?></option>\n <?php\n }\n }\n ?>\n </select>\n <input type=\"hidden\" name=\"cs_orderby[]\" value=\"meta_layout\" />\n </li>\n </ul>\n\t</div>\n\t<div class=\"clear\"></div>\n<?php\t\n}", "public function on_page_view(){\n $this->runTemplateSubController();\n // lightbox enabled?\n if( (bool) $this->lightboxEnable ){\n $this->addHeaderItem( $this->getHelper('html')->css('flexry-lightbox.min.css', 'flexry') );\n if( (bool) $this->autoIncludeJsInFooter ){\n $this->addFooterItem( $this->getHelper('html')->javascript('flexry-lightbox.js', 'flexry') );\n }else{\n $this->addHeaderItem( $this->getHelper('html')->javascript('flexry-lightbox.js', 'flexry') );\n }\n }\n // output function to execute deferreds\n $this->addHeaderItem( $this->getHelper('html')->javascript('libs/modernizr.js', 'flexry') );\n $this->addFooterItem('<script type=\"text/javascript\">'.$this->getHelper('file')->getContents(DIR_PACKAGES . '/flexry/' . DIRNAME_BLOCKS . '/flexry_gallery/inline_script.js.txt').'</script>');\n }", "public function my_addition_to_login_footer() {\n }", "protected function setupLayout()\n\t{\n\t\tif (!is_null($this->layout)) {\n\t\t\t$this->layout = view($this->layout);\n\t\t}\n\t}", "function afterLayout() {\n\t\tif ($this->auto_store_cache) {\n\t\t\t$this->_storeCaches();\n\t\t}\n\t}", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = \\View::make($this->layout);\n }\n }", "protected function _prepareLayout() {\t\n\t\t$this->_removeButton('add');\n $this->_addButton('import', array(\n 'label' => Mage::helper('catalog')->__('Manuel import'),\n 'onclick' => 'setLocation(\\'' . $this->getUrl('*/*/import') . '\\')',\n 'class' => 'add'\n ));\n return parent::_prepareLayout();\n }", "function receipt() {\n\t\t$this->layout='registration';\n\t\t//you can't be in receipt if you haven't finished previous steps\n\t\tif (!$this->previousStepsAreDone($this)){\n\t\t\t$this->requestAction('steps/redirectToNextUnfinishedStep');\t\n\t\t}\t\t\t\t\t\t\n\t}", "protected function _prepareLayout()\n {\n \tparent::_prepareLayout();\n \t\n $product = $this->getProduct();\n\t\tif ($product->getId())\n\t\t{\n $this->addTab('flashsales', array(\n 'label' => Mage::helper('PrivateSales')->__('Flash sale'),\n 'content' => $this->getLayout()->createBlock('PrivateSales/Admin_Catalog_Product_Edit_Tabs_PrivateSales')\n\t\t\t\t\t\t\t\t\t->setTemplate('PrivateSales/Catalog/Product/Edit/Tabs/FlashSale.phtml')\n\t\t\t\t\t\t\t\t\t->toHtml()\n ));\n\t\t}\n\t\t\n\t\treturn $this;\n }", "protected function setupLayout() {\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "public function preDispatch(Zend_Controller_Request_Abstract $request)\t{\n\t\t$module = $request->getModuleName();\n\t\t$this->_layout->setLayoutPath(str_replace(':module', $module, $this->_layout->getLayoutPath()));\n\t}", "function create_layout_callback() {\n\t\tif ( ob_get_length() > 0 ) ob_clean();\n\n\t\t$nonce = $_POST[\"wpnonce\"];\n\t\tif (! wp_verify_nonce( $nonce, 'wp_nonce_create_layout' ) ) {\n\t\t\t$result = array('error' => 'error',\n\t\t\t\t'error_message' => __('Security check failed', 'ddl-layouts'));\n\t\t} else {\n\n\t\t\t// Check for duplicate layout name.\n\n\t\t\t$layout_name = str_replace('\\\\\\\\', '##DDL-SLASH##', $_POST['title']);\n\t\t\t$layout_name = stripslashes_deep($layout_name);\n\t\t\t$layout_name = str_replace('##DDL-SLASH##', '\\\\\\\\', $layout_name);\n\t\t\tif ($this->does_layout_with_this_name_exist($layout_name)) {\n\t\t\t\t$result = array('error' => 'error',\n\t\t\t\t\t'error_message' => __('A layout with this name already exists. Please use a different name.', 'ddl-layouts'));\n\n\t\t\t} else {\n\n\t\t\t\t$parent_post_name = '';\n\t\t\t\tif ($_POST['layout_parent']) {\n\t\t\t\t\tglobal $wpdb;\n\n\t\t\t\t\t$parent_post_name = $wpdb->get_var($wpdb->prepare(\"SELECT post_name FROM {$wpdb->posts} WHERE post_type='dd_layouts' AND ID=%d\", $_POST['layout_parent']));\n\t\t\t\t}\n\n\t\t\t\tif (isset( $_POST['layout_preset']) && $_POST['layout_preset'] ) {\n\t\t\t\t\t$layout = $this->load_layout($_POST['layout_preset'], $_POST['layout_type']);\n\t\t\t\t} else {\n\t\t\t\t\t$layout = $this->create_layout($_POST['columns'], $_POST['layout_type']);\n\t\t\t\t}\n\n\t\t\t\t$layout['type'] = $_POST['layout_type'];\n\t\t\t\t$layout['cssframework'] = $this->get_css_framework();\n\t\t\t\t$layout['template'] = '';\n\t\t\t\t$layout['parent'] = $parent_post_name;\n\t\t\t\t$layout['name'] = $layout_name;\n\n\t\t\t\t$layout_json = $this->json_encode($layout);\n\n\t\t\t\t$postarr = array(\n\t\t\t\t\t'post_title'\t=> $layout_name,\n\t\t\t\t\t'post_content'\t=> '',\n\t\t\t\t\t'post_status'\t=> 'publish',\n\t\t\t\t\t'post_type'\t=> 'dd_layouts'\n\t\t\t\t);\n\t\t\t\t$post_id = wp_insert_post($postarr);\n\n\t\t\t\tif( isset($_POST['post_types']) && !empty($_POST['post_types']) && is_array( $_POST['post_types'] ) )\n\t\t\t\t{\n $post_types = count( $_POST['post_types'] ) === 0 ? array() : array_unique( $_POST['post_types'] );\n\t\t\t\t\t$this->post_types_manager->handle_post_type_data_save( array( \"layout_\".$post_id => $post_types ) );\n\t\t\t\t}\n\n\t\t\t\tupdate_post_meta( $post_id, 'dd_layouts_settings', $layout_json);\n\t\t\t\t$result['id'] = $post_id;\n\t\t\t}\n\n\t\t}\n\t\tdie( $this->json_encode($result) );\n\t}", "public function layout() {\r\n $this->template['header'] = $this->load->view('common/header', $this->data, true);\r\n $this->template['content'] = $this->load->view($this->content, $this->data, true);\r\n $this->template['footer'] = $this->load->view('common/footer', $this->data, true);\r\n $this->load->view('common/layout', $this->template);\r\n }", "public function storeLayout()\n {\n $journalpolicy = Journalpolicy::create(request()->validate([\n 'layout' => 'required',\n ]));\n return redirect()->route('journals.layout.edit', $journalpolicy->id);\n }", "public function index() {\n\t\tif ((!$this->cart->hasProducts() && empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {\n\t\t\t$this->response->redirect($this->url->link('checkout/cart'));\n\t\t}\n\n\t\t//valida as quantidades minimas\n\t\t$products = $this->cart->getProducts();\n\t\t\n\t\t//cria session comentario inicial\n\t\tif(!isset($this->session->data['comment'])){\n $this->session->data['comment'] = '';\n\t\t}\n\t\t$this->session->data['agree'] = true;\n\t\t\n\t\t//ativa ou nao o fb\n\t\t$data['facebook_ativado'] = $this->config->get('compraexpress_fb');\n\n\t\t//ver se os produtos estao com qtd minima\n\t\tforeach ($products as $product) {\n\t\t\t$product_total = 0;\n\t\t\tforeach ($products as $product_2) {\n\t\t\t\tif ($product_2['product_id'] == $product['product_id']) {\n\t\t\t\t\t$product_total += $product_2['quantity'];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($product['minimum'] > $product_total) {\n\t\t\t\t$this->response->redirect($this->url->link('checkout/cart'));\n\t\t\t}\n\t\t}\n\t\t$this->load->language('checkout/checkout');\n\t\t$this->document->setTitle($this->language->get('heading_title'));\n\n\t\t//scripts e css\n\t\t$this->document->addScript('catalog/view/checkoutexpress/libs.jquery.js');\n\t\t$this->document->addScript('catalog/view/checkoutexpress/bootbox.min.js');\n\t\t$this->document->addScript('catalog/view/checkoutexpress/compraexpress.js');\n\t\t//$this->document->addScript('index.php?route=checkout/compraexpress/customjs');\n\t\tif($this->config->get('compraexpress_te')==0){\n $this->document->addStyle('catalog/view/checkoutexpress/stylesheet.css');\n $tema = $this->config->get('compraexpress_tema');\n if(!empty($tema)){\n $this->document->addStyle($this->config->get('compraexpress_tema'));\t\n }\n\t\t}\n\t\t//$this->document->addStyle('index.php?route=checkout/compraexpress/customcss');\n\n\t\t$data['breadcrumbs'] = array();\n\n\t\t$data['breadcrumbs'][] = array(\n\t\t\t'text' => $this->language->get('text_home'),\n\t\t\t'href' => $this->url->link('common/home')\n\t\t);\n\n\t\t$data['breadcrumbs'][] = array(\n\t\t\t'text' => $this->language->get('text_cart'),\n\t\t\t'href' => $this->url->link('checkout/cart')\n\t\t);\n\n\t\t$data['breadcrumbs'][] = array(\n\t\t\t'text' => 'Finalizar Compra',\n\t\t\t'href' => $this->url->link('checkout/compraexpress', '', 'SSL')\n\t\t);\n\n\t\t$data['heading_title'] = $this->language->get('heading_title');\n\n\t\t$data['text_checkout_option'] = $this->language->get('text_checkout_option');\n\t\t$data['text_checkout_account'] = $this->language->get('text_checkout_account');\n\t\t$data['text_checkout_payment_address'] = $this->language->get('text_checkout_payment_address');\n\t\t$data['text_checkout_shipping_address'] = $this->language->get('text_checkout_shipping_address');\n\t\t$data['text_checkout_shipping_method'] = $this->language->get('text_checkout_shipping_method');\n\t\t$data['text_checkout_payment_method'] = $this->language->get('text_checkout_payment_method');\n\t\t$data['text_checkout_confirm'] = $this->language->get('text_checkout_confirm');\n\n\t\tif (isset($this->session->data['error'])) {\n\t\t\t$data['error_warning'] = $this->session->data['error'];\n\t\t\tunset($this->session->data['error']);\n\t\t} else {\n\t\t\t$data['error_warning'] = '';\n\t\t}\n\n\t\t$data['logged'] = $this->customer->isLogged();\n\n\t\tif (isset($this->session->data['account'])) {\n\t\t\t$data['account'] = $this->session->data['account'];\n\t\t} else {\n\t\t\t$data['account'] = '';\n\t\t}\n\n\t\t$data['shipping_required'] = $this->cart->hasShipping();\n\n\t\t$data['column_left'] = $this->load->controller('common/column_left');\n\t\t$data['column_right'] = $this->load->controller('common/column_right');\n\t\t$data['content_top'] = $this->load->controller('common/content_top');\n\t\t$data['content_bottom'] = $this->load->controller('common/content_bottom');\n\t\t\n $data['exibir_erro'] = $this->config->get('compraexpress_erro');\n\t\tif($this->config->get('compraexpress_te')==0){\n\t\t$data['footer'] = $this->load->controller('common/rodapecompraexpress');\n\t\t$data['header'] = $this->load->controller('common/topocompraexpress');\t\n\t\t}else{\n\t\t$data['footer'] = $this->load->controller('common/footer');\n\t\t$data['header'] = $this->load->controller('common/header');\n\t\t}\n\t\t\n\t\tif(version_compare(VERSION, '2.2.0.0', '>=')){\n\t\t$this->response->setOutput($this->load->view('compraexpress/compraexpress.tpl', $data));\n\t\t}else{\n\t\t$this->response->setOutput($this->load->view('default/template/compraexpress/compraexpress.tpl', $data));\t\n\t\t}\n\t}", "public function hasLayout() {}", "public function nocookieAction(){\n $this->_helper->layout()->setLayout('withoutlogin');\n \n }", "public function nocookieAction(){\n $this->_helper->layout()->setLayout('withoutlogin');\n \n }", "public function admin_layout()\n\t{\n\t\techo '<link rel=\"stylesheet\" href=\"' . get_bloginfo('template_directory').'/admin/grid.css\"/>';\n\t\techo '<link rel=\"stylesheet\" href=\"' . get_bloginfo('template_directory').'/admin/style.css\"/>';\n\t\t\n\t\t$selected_layout = ($_GET['layout']) ? sanitize_title( $_GET['layout'] ) : $this->layout_default;\n\t\t\n\t\t// is an action being done on a layout?\n\t\tif($_GET['action'] || $_POST)\n\t\t{\n\t\t\t// is a layout being deleted?\n\t\t\tif($_GET['action'] == 'delete')\n\t\t\t{\n\t\t\t\t// delete the layout\n\t\t\t\t$this->deleteLayout( $selected_layout );\n\t\t\t\t\n\t\t\t\t// set the selected layout to the default\n\t\t\t\t$selected_layout = $this->layout_default;\n\t\t\t}//end if\n\t\t\telseif($_POST) // form was posted\n\t\t\t{\n\t\t\t\t$selected_layout = $this->updateLayout( $selected_layout, $_POST );\n\t\t\t}//end else\n\t\t\t\n\t\t\techo '<script type=\"text/javascript\">document.location = \"', get_option('siteurl'), '/wp-admin/themes.php?page=', $this->layout_page, '&layout=',$selected_layout,'\";</script>';\n\t\t}//end if\n\t\t\n?>\n<script type=\"text/javascript\">\n\tvar ninespot_max_slots = <?php echo $this->$selected_layout->grid; ?>;\n</script>\n<script type=\"text/javascript\" src=\"<?php echo get_bloginfo('template_directory'); ?>/js/admin.js\"></script>\n\n<div id=\"ninespot-settings\">\n<ul id=\"ninespot-tabs\">\n\t<li class=\"<?php echo ($selected_layout == $this->layout_default ) ? 'active' : ''; ?>\"><a href=\"?page=<?php echo $this->layout_page; ?>&layout=<?php echo $this->layout_default; ?>\">Default</a></li>\n<?php\n\tforeach($this->layouts as $layout):\n\t\tif($layout != $this->layout_default): \n?>\n\t\t\t<li class=\"<?php echo ($selected_layout == $layout) ? 'active' : ''; ?>\"><a href=\"?page=<?php echo $this->layout_page; ?>&layout=<?php echo $layout; ?>\"><?php echo $this->$layout->name; ?></a></li>\n<?php \n\t\tendif;\n\tendforeach;\n\t\n\tif($selected_layout == $this->layout_new):\n?>\n\t\t\t<li class=\"active\"><a href=\"?page=<?php echo $this->layout_page; ?>&layout=<?php echo $this->layout_new; ?>\">New Layout</a></li>\n<?php else: ?>\n\t<li><a href=\"?page=<?php echo $this->layout_page; ?>&layout=<?php echo $this->layout_new; ?>\" class=\"ninespot-add\">( + )</a></li>\n<?php endif; ?>\n</ul>\n<?php\n\tif($selected_layout == $this->layout_new)\n\t{\n\t\t$this->$selected_layout = new NineSpotLayout($this->default_structure);\n\t}//end if\n\n\t$new_slug = ($selected_layout == $this->layout_new) ? 'The slug will be created when you save this layout.' : $selected_layout;\n\tinclude $this->dir . '/admin/theme_settings.php';\n?>\n</div>\n<?php\n\t}", "public function add_two_step_nav_menu( $layout_style ) {\n\n\t\t\t\t// Get the values form the applied settings.\n\t\t\t\t// Get step titles.\n\t\t\t\t$step_one_title = astra_get_option( 'two-step-checkout-modern-step-1-text' );\n\t\t\t\t$step_one_sub_title = astra_get_option( 'two-step-checkout-modern-step-1-sub-text' );\n\t\t\t\t$step_two_title = astra_get_option( 'two-step-checkout-modern-step-2-text' );\n\t\t\t\t$step_two_sub_title = astra_get_option( 'two-step-checkout-modern-step-2-sub-text' );\n\n\t\t\t\t$two_step_section_border = 'none';\n\n\t\t\t\t$two_step_html = '';\n\n\t\t\t\t\t$two_step_html .= \"<div class='ast-embed-checkout-form-nav ast-border-\" . esc_attr( $two_step_section_border ) . \" '>\";\n\n\t\t\t\t\t$two_step_html .= \"<ul class='ast-embed-checkout-form-steps'>\";\n\t\t\t\t\t\t$two_step_html .= \"<div class='steps step-one ast-current'>\";\n\t\t\t\t\t\t\t$two_step_html .= \"<a href='#customer_details'>\";\n\t\t\t\t\t\t\t\t$two_step_html .= \"<div class='step-number'>1</div>\";\n\n\t\t\t\t\t\t\t\t$two_step_html .= \"<div class='step-heading'>\";\n\n\t\t\t\t\t\t\t\t\t$two_step_html .= \"<div class='step-name'>\" . esc_html( $step_one_title ) . '</div>';\n\t\t\t\t\t\t\t\t\t$two_step_html .= \"<div class='step-sub-name'>\" . esc_html( $step_one_sub_title ) . '</div>';\n\n\t\t\t\t\t\t\t\t$two_step_html .= '</div>';\n\n\t\t\t\t\t\t\t$two_step_html .= '</a>';\n\t\t\t\t\t\t$two_step_html .= '</div>';\n\n\t\t\t\t\t\t$two_step_html .= \"<div class='steps step-two'>\";\n\t\t\t\t\t\t\t$two_step_html .= \"<a href='#ast-order-wrap'>\";\n\t\t\t\t\t\t\t\t$two_step_html .= \"<div class='step-number'>2</div>\";\n\n\t\t\t\t\t\t\t\t\t$two_step_html .= \"<div class='step-heading'>\";\n\n\t\t\t\t\t\t\t\t\t\t$two_step_html .= \"<div class='step-name'>\" . esc_html( $step_two_title ) . '</div>';\n\t\t\t\t\t\t\t\t\t\t$two_step_html .= \"<div class='step-sub-name'>\" . esc_html( $step_two_sub_title ) . '</div>';\n\n\t\t\t\t\t\t\t\t\t$two_step_html .= '</div>';\n\n\t\t\t\t\t\t\t$two_step_html .= '</a>';\n\t\t\t\t\t\t$two_step_html .= '</div>';\n\n\t\t\t\t\t$two_step_html .= '</ul>';\n\t\t\t\t$two_step_html .= '</div>';\n\n\t\t\t\techo $two_step_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped\n\t\t}", "function before_process() {\r\n global $order_total_modules;\r\n if (isset($_GET['referer']) && $_GET['referer'] == 'nochex_apc') {\r\n $this->notify('NOTIFY_PAYMENT_NOCHEX_RETURN_TO_STORE');\r\n if (MODULE_PAYMENT_NOCHEX_TESTING == 'Harness') {\r\n // simulate call to ipn_handler.php here\r\n nochex_simulate_apc_handler((int)$_GET['count']);\r\n }\r\n $_SESSION['cart']->reset(true);\r\n unset($_SESSION['sendto']);\r\n unset($_SESSION['billto']);\r\n unset($_SESSION['shipping']);\r\n unset($_SESSION['payment']);\r\n unset($_SESSION['comments']);\r\n unset($_SESSION['cot_gv']);\r\n $order_total_modules->clear_posts();//ICW ADDED FOR CREDIT CLASS SYSTEM\r\n zen_redirect(zen_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));\r\n } else {\r\n $this->notify('NOTIFY_PAYMENT_NOCHEX_CANCELLED_DURING_CHECKOUT');\r\n zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));\r\n }\r\n }", "protected function _prepareLayout() {\n $this->_removeButton('reset'); // Remove unused buttons\n $this->_removeButton('delete');\n $this->_removeButton('save');\n\n return parent::_prepareLayout();\n }", "public function initProductLayout(ResultPage $resultPage, $product, $params = null)\r\n {\r\n $settings = $this->_catalogDesign->getDesignSettings($product);\r\n $pageConfig = $resultPage->getConfig();\r\n\r\n if ($settings->getCustomDesign()) {\r\n $this->_catalogDesign->applyCustomDesign($settings->getCustomDesign());\r\n }\r\n\r\n // Apply custom page layout\r\n\t\tif ($settings->getPageLayout()) {\r\n\t\t\t$pageConfig->setPageLayout($settings->getPageLayout());\r\n\t\t}else{\r\n\t\t\t$panelLayout = $this->_scopeConfig->getValue('porto_settings/product/page_layout', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE, $this->_storeManager->getStore()->getId());\r\n\t\t\tif($panelLayout!=''){\r\n\t\t\t\t$pageConfig->setPageLayout($panelLayout);\r\n\t\t\t}\r\n\t\t}\r\n\r\n $urlSafeSku = rawurlencode($product->getSku());\r\n\r\n // Load default page handles and page configurations\r\n if ($params && $params->getBeforeHandles()) {\r\n foreach ($params->getBeforeHandles() as $handle) {\r\n $resultPage->addPageLayoutHandles(\r\n ['id' => $product->getId(), 'sku' => $urlSafeSku, 'type' => $product->getTypeId()],\r\n $handle\r\n );\r\n }\r\n }\r\n\r\n $resultPage->addPageLayoutHandles(\r\n ['id' => $product->getId(), 'sku' => $urlSafeSku, 'type' => $product->getTypeId()]\r\n );\r\n\r\n if ($params && $params->getAfterHandles()) {\r\n foreach ($params->getAfterHandles() as $handle) {\r\n $resultPage->addPageLayoutHandles(\r\n ['id' => $product->getId(), 'sku' => $urlSafeSku, 'type' => $product->getTypeId()],\r\n $handle\r\n );\r\n }\r\n }\r\n\r\n // Apply custom layout update once layout is loaded\r\n $update = $resultPage->getLayout()->getUpdate();\r\n $layoutUpdates = $settings->getLayoutUpdates();\r\n if ($layoutUpdates) {\r\n if (is_array($layoutUpdates)) {\r\n foreach ($layoutUpdates as $layoutUpdate) {\r\n $update->addUpdate($layoutUpdate);\r\n }\r\n }\r\n }\r\n\r\n $currentCategory = $this->_coreRegistry->registry('current_category');\r\n $controllerClass = $this->_request->getFullActionName();\r\n if ($controllerClass != 'catalog-product-view') {\r\n $pageConfig->addBodyClass('catalog-product-view');\r\n }\r\n\r\n $full_width = $this->_scopeConfig->getValue('porto_settings/general/layout', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE, $this->_storeManager->getStore()->getId());\r\n $product_page_type = $product->getData('product_page_type');\r\n if(!$product_page_type)\r\n $product_page_type = $this->_scopeConfig->getValue('porto_settings/product/product_page_type', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE, $this->_storeManager->getStore()->getId());\r\n $additional_class = '';\r\n if(isset($full_width) && $full_width == 'full_width')\r\n $additional_class = 'layout-fullwidth';\r\n if(isset($product_page_type) && $product_page_type)\r\n $pageConfig->addBodyClass('product-type-'.$product_page_type);\r\n $pageConfig->addBodyClass('product-' . $product->getUrlKey())\r\n ->addBodyClass($additional_class);\r\n if ($currentCategory instanceof \\Magento\\Catalog\\Model\\Category) {\r\n $pageConfig->addBodyClass('categorypath-' . $this->categoryUrlPathGenerator->getUrlPath($currentCategory))\r\n ->addBodyClass('category-' . $currentCategory->getUrlKey());\r\n }\r\n\r\n return $this;\r\n }", "public function preDispatch( Zend_Controller_Request_Abstract $request )\n\t{\n\t\t$layout = Zend_Layout::getMvcInstance();\n\t\t$path = APPLICATION_PATH .'/modules/'. $request->getModuleName() .'/layouts';\n\t\tif( file_exists($path) )\n\t\t\t$layout->setLayoutPath( $path );\n\t}", "protected function setupLayout()\n {\n if( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n\t{\n\t\tif (!is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\t$button['text'] = \"login\";\n\t\t$button['url'] = route('login');\n\n\t\tif(Auth::check())\n\t\t{\n\t\t\t$button['text'] = \"logout\";\n\t\t\t$button['url'] = route('logout');\n\t\t\t$this->logged_in_user = Auth::user();\n\t\t\t$notif = new Notification();\n\t\t\t$notifications = $notif->getNotifications($this->logged_in_user->id);\n\t\t\t$new = 0;\n\t\t\tforeach ($notifications as $not) {\n\t\t\t\tif($not->seen == 0)\n\t\t\t\t{\n\t\t\t\t\t$new++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$rating_types = RatingType::getRatingTypes($this->logged_in_user->id);\n\n\t\t\tView::share('notifications', $notifications);\n\t\t\tView::share('new', $new);\n\t\t\tView::share('rating_types', $rating_types);\n\t\t\tView::share('logged_in_user', $this->logged_in_user);\n\t\t}\n\n\t\tView::share('button', $button);\n\t\tView::share('show_feed', $this->show_feed);\n\t\t//Get image path info for all poster and backdrop images\n\t\t$t = new TheMovieDb();\n \t\t$this->image_path_config = $t->getImgPath();\n\t\tView::share('image_path_config', $this->image_path_config);\n\n\n\t\t\n\n\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n\n }", "protected function setupLayout()\n\t{\n\t\tif (!is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "public function woo_product_tabs_layout_output() {\n\t\t\tinclude_once ASTRA_ADDON_EXT_WOOCOMMERCE_DIR . '/templates/single-product-tab-layout.php';\n\t\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}" ]
[ "0.6442868", "0.63423246", "0.59605473", "0.5849184", "0.5824462", "0.5799398", "0.578177", "0.5749272", "0.5697371", "0.5694159", "0.56639576", "0.564474", "0.5641866", "0.563732", "0.5611357", "0.54907304", "0.5459894", "0.5454881", "0.54532266", "0.5445816", "0.535731", "0.535731", "0.5353853", "0.534789", "0.53471476", "0.53346264", "0.53329897", "0.53224343", "0.5321216", "0.53021353", "0.52905333", "0.5289643", "0.5284103", "0.525264", "0.52468014", "0.524504", "0.52184075", "0.52148825", "0.51958776", "0.5171444", "0.5143572", "0.5130983", "0.51193607", "0.51043165", "0.510395", "0.5101709", "0.5089221", "0.5078672", "0.5076563", "0.50763047", "0.5071318", "0.50619495", "0.5059649", "0.5057989", "0.5054205", "0.5049161", "0.5049145", "0.5033291", "0.5023081", "0.50126284", "0.5012446", "0.50098306", "0.50063264", "0.50051725", "0.49923483", "0.49768978", "0.49586874", "0.49582314", "0.4953701", "0.49535847", "0.4953192", "0.49410763", "0.49395597", "0.4938418", "0.4933098", "0.49296865", "0.49293298", "0.49278638", "0.49248266", "0.49226606", "0.49217382", "0.4913512", "0.4907033", "0.4904496", "0.48973286", "0.489529", "0.489529", "0.48909026", "0.4889757", "0.48871484", "0.48870084", "0.48842958", "0.48806185", "0.48787928", "0.48746753", "0.48746246", "0.487429", "0.48721123", "0.48687556", "0.48580003" ]
0.6847302
0
Save ident data from quote to customer after placing an order
public function saveIdentDataForNewCustomer(Varien_Event_Observer $observer) { if (!Mage::getModel('postident/config')->isEnabled()) { return; } $quote = $observer->getEvent()->getOrder()->getQuote(); $customer = $observer->getEvent()->getOrder()->getCustomer(); $checkoutMethod = $quote->getCheckoutMethod(); if (!is_null($quote) && !is_null($quote->getPostidentVerificationData()) && $checkoutMethod != Mage_Sales_Model_Quote::CHECKOUT_METHOD_GUEST ) { $customer = Mage::Helper('postident/data')->saveIdentDataToCustomer($customer, $quote); //This updates the customer object in the session - ensures that it has the postident data Mage::getSingleton('customer/session')->setCustomer($customer); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveOrder()\n {\n $this->validate();\n $isNewCustomer = false;\n switch ($this->getCheckoutMethod()) {\n case self::METHOD_GUEST:\n $this->_prepareGuestQuote();\n break;\n case self::METHOD_REGISTER:\n $this->_prepareNewCustomerQuote();\n $isNewCustomer = true;\n break;\n default:\n $this->_prepareCustomerQuote();\n break;\n }\n\n /**\n * @var TM_FireCheckout_Model_Service_Quote\n */\n $service = Mage::getModel('firecheckout/service_quote', $this->getQuote());\n $service->submitAll();\n\n if ($isNewCustomer) {\n try {\n $this->_involveNewCustomer();\n } catch (Exception $e) {\n Mage::logException($e);\n }\n }\n\n $this->_checkoutSession->setLastQuoteId($this->getQuote()->getId())\n ->setLastSuccessQuoteId($this->getQuote()->getId())\n ->clearHelperData();\n\n $order = $service->getOrder();\n if ($order) {\n Mage::dispatchEvent('checkout_type_onepage_save_order_after',\n array('order'=>$order, 'quote'=>$this->getQuote()));\n\n /**\n * a flag to set that there will be redirect to third party after confirmation\n * eg: paypal standard ipn\n */\n $redirectUrl = $this->getQuote()->getPayment()->getOrderPlaceRedirectUrl();\n /**\n * we only want to send to customer about new order when there is no redirect to third party\n */\n $canSendNewEmailFlag = true;\n if (version_compare(Mage::helper('firecheckout')->getMagentoVersion(), '1.5.0.0', '>=')) {\n $canSendNewEmailFlag = $order->getCanSendNewEmailFlag();\n }\n if (!$redirectUrl && $canSendNewEmailFlag) {\n try {\n $order->sendNewOrderEmail();\n } catch (Exception $e) {\n Mage::logException($e);\n }\n }\n\n // add order information to the session\n $this->_checkoutSession->setLastOrderId($order->getId())\n ->setRedirectUrl($redirectUrl)\n ->setLastRealOrderId($order->getIncrementId());\n\n // as well a billing agreement can be created\n $agreement = $order->getPayment()->getBillingAgreement();\n if ($agreement) {\n $this->_checkoutSession->setLastBillingAgreementId($agreement->getId());\n }\n }\n\n // add recurring profiles information to the session\n $profiles = $service->getRecurringPaymentProfiles();\n if ($profiles) {\n $ids = array();\n foreach ($profiles as $profile) {\n $ids[] = $profile->getId();\n }\n $this->_checkoutSession->setLastRecurringProfileIds($ids);\n // TODO: send recurring profile emails\n }\n\n Mage::dispatchEvent(\n 'checkout_submit_all_after',\n array('order' => $order, 'quote' => $this->getQuote(), 'recurring_profiles' => $profiles)\n );\n\n return $this;\n }", "private function saveOrder() {\n $currentDate = new Zend_Date();\n $customer = Customer::findByEmail($this->getRequest()->getParam('email'));\n $customer->name = $this->getRequest()->getParam('name');\n $customer->phone = $this->getRequest()->getParam('phone');\n\n $ord = new Order();\n $ord->Customer = $customer;\n $ord->date = $currentDate->get();\n //TODO Take product id from param and check if it is available (not in future, still on sales, etc)\n $product = Product::getCurrentProduct();\n $ord->Product = $product;\n $customer->save();\n $ord->save();\n $product->takeFromStock();\n $customer->sendOrderNotification($ord);\n }", "public function storeDataInSession() {\n\t\t$_SESSION['Order__id'] = $this->insertedOrderId;\n\t\t$_SESSION['transactionAmount'] = $this->totalPrice;\n\t}", "public function ___orderSaved(PadOrder $order) {\n }", "public function saveQuote()\n {\n $this->calculateSubscription();\n $this->calculateService();\n $this->calculateGoods();\n \n $return = array();\n $return['services'] = $this->services;\n $return['goods'] = $this->goods;\n $return['subscription'] = $this->subscription;\n $return['userEmail'] = $this->user->getEmail();\n $return['UUID'] = $this->generateQuoteUUID($return);\n $return['user'] = $this->user;\n $return['subtotal'] = $this->subtotal;\n return $return;\n\n }", "public function saved(Order $Order)\n {\n //code...\n }", "public function saving(Order $Order)\n {\n //code...\n }", "public function _setCustomerQuote()\n {\n // Retrieve a valid quote\n if ($quote = $this->_retrieveQuote()) {\n\n // Verify that the customer is a valid customer of the quote\n $this->_verifyCustomerForQuote($quote);\n /* Set the session quote if required.\n Needs to be done after verifying the current customer */\n if ($this->_getCheckoutSession()->getQuoteId() != $quote->getId()) {\n $this->_logger->debug(__(\"Setting quote to current session\"));\n // Set the quote in the current object\n $this->_setQuote($quote);\n // Set the quote in the session\n $this->_getCheckoutSession()->setQuoteId($quote->getId());\n }\n // Make sure the qoute is active\n $this->_activateQuote($quote);\n } else {\n throw new \\Magento\\Framework\\Exception\\LocalizedException(__(\"Could not retrieve the quote\"));\n }\n }", "public function setPaymentInfoToQuote()\n {\n $expercashCode = Mage::getModel('expercash/expercashmpf')->getCode();\n $quote = Mage::getSingleton('checkout/session')->getQuote();\n\n if ($quote->isVirtual()) {\n $quote->getBillingAddress()->setPaymentMethod($expercashCode);\n } else {\n $quote->getShippingAddress()->setPaymentMethod($expercashCode);\n }\n\n // shipping totals may be affected by payment method\n if (!$quote->isVirtual() && $quote->getShippingAddress()) {\n $quote->getShippingAddress()->setCollectShippingRates(true);\n }\n\n $payment = $quote->getPayment();\n $payment->importData(array('method' => $expercashCode));\n $quote->save();\n }", "private function saveRecord(): void\r\n {\r\n $this->order->add_meta_data('_moloni_sent', $this->document_id);\r\n $this->order->save();\r\n }", "public function saveTemporaryOrder()\r\n {\r\n $order = Shopware()->Modules()->Order();\r\n\r\n $order->sUserData = $this->View()->sUserData;\r\n $order->sComment = isset($this->session['sComment']) ? $this->session['sComment'] : '';\r\n $order->sBasketData = $this->View()->sBasket;\r\n $order->sAmount = $this->View()->sBasket['sAmount'];\r\n $order->sAmountWithTax = !empty($this->View()->sBasket['AmountWithTaxNumeric']) ? $this->View()->sBasket['AmountWithTaxNumeric'] : $this->View()->sBasket['AmountNumeric'];\r\n $order->sAmountNet = $this->View()->sBasket['AmountNetNumeric'];\r\n $order->sShippingcosts = $this->View()->sBasket['sShippingcosts'];\r\n $order->sShippingcostsNumeric = $this->View()->sBasket['sShippingcostsWithTax'];\r\n $order->sShippingcostsNumericNet = $this->View()->sBasket['sShippingcostsNet'];\r\n $order->bookingId = Shopware()->System()->_POST['sBooking'];\r\n $order->dispatchId = $this->session['sDispatch'];\r\n $order->sNet = $this->View()->sUserData['additional']['show_net'];\r\n\r\n $order->sDeleteTemporaryOrder();\t// Delete previous temporary orders\r\n $order->sCreateTemporaryOrder();\t// Create new temporary order\r\n }", "protected function _prepareNewCustomerQuote()\n {\n $quote = $this->getQuote();\n $billing = $quote->getBillingAddress();\n $shipping = $quote->isVirtual() ? null : $quote->getShippingAddress();\n\n $customer = $quote->getCustomer();\n /* @var $customer Mage_Customer_Model_Customer */\n $customerBilling = $billing->exportCustomerAddress();\n $customer->addAddress($customerBilling);\n $billing->setCustomerAddress($customerBilling);\n $customerBilling->setIsDefaultBilling(true);\n if ($shipping && !$shipping->getSameAsBilling()) {\n $customerShipping = $shipping->exportCustomerAddress();\n $customer->addAddress($customerShipping);\n $shipping->setCustomerAddress($customerShipping);\n $customerShipping->setIsDefaultShipping(true);\n } else {\n $customerBilling->setIsDefaultShipping(true);\n }\n\n Mage::helper('core')->copyFieldset('checkout_onepage_quote', 'to_customer', $quote, $customer);\n $customer->setPassword($customer->decryptPassword($quote->getPasswordHash()));\n $quote->setCustomer($customer)\n ->setCustomerId(true);\n }", "function saveorder()\n\t{\n\t\tJRequest::checkToken() or jexit( 'Invalid Token' );\n\n\t\t$cid \t= JRequest::getVar( 'cid', array(), 'post', 'array' );\n\t\t$order \t= JRequest::getVar( 'order', array(), 'post', 'array' );\n\t\tJArrayHelper::toInteger($cid);\n\t\tJArrayHelper::toInteger($order);\n\n\t\t$model = $this->getModel('weblink');\n\t\t$model->saveorder($cid, $order);\n\n\t\t$msg = JText::_( 'New ordering saved' );\n\t\t$this->setRedirect( 'index.php?option=com_weblinks', $msg );\n\t}", "protected function _prepareCustomerQuote($quote)\n {\n /** @var Quote $quote */\n $billing = $quote->getBillingAddress();\n $shipping = $quote->isVirtual() ? null : $quote->getShippingAddress();\n\n $customer = $this->customerRepository->getById($quote->getCustomerId());\n $hasDefaultBilling = (bool)$customer->getDefaultBilling();\n $hasDefaultShipping = (bool)$customer->getDefaultShipping();\n\n if ($shipping && !$shipping->getSameAsBilling()\n && (!$shipping->getCustomerId() || $shipping->getSaveInAddressBook())\n ) {\n $shippingAddress = $shipping->exportCustomerAddress();\n if (!$hasDefaultShipping) {\n //Make provided address as default shipping address\n $shippingAddress->setIsDefaultShipping(true);\n $hasDefaultShipping = true;\n if (!$hasDefaultBilling && !$billing->getSaveInAddressBook()) {\n $shippingAddress->setIsDefaultBilling(true);\n $hasDefaultBilling = true;\n }\n }\n //save here new customer address\n $shippingAddress->setCustomerId($quote->getCustomerId());\n $this->addressRepository->save($shippingAddress);\n $quote->addCustomerAddress($shippingAddress);\n $shipping->setCustomerAddressData($shippingAddress);\n $this->addressesToSync[] = $shippingAddress->getId();\n $shipping->setCustomerAddressId($shippingAddress->getId());\n }\n\n if (!$billing->getCustomerId() || $billing->getSaveInAddressBook()) {\n $billingAddress = $billing->exportCustomerAddress();\n if (!$hasDefaultBilling) {\n //Make provided address as default shipping address\n if (!$hasDefaultShipping) {\n //Make provided address as default shipping address\n $billingAddress->setIsDefaultShipping(true);\n }\n $billingAddress->setIsDefaultBilling(true);\n }\n $billingAddress->setCustomerId($quote->getCustomerId());\n $this->addressRepository->save($billingAddress);\n $quote->addCustomerAddress($billingAddress);\n $billing->setCustomerAddressData($billingAddress);\n $this->addressesToSync[] = $billingAddress->getId();\n $billing->setCustomerAddressId($billingAddress->getId());\n }\n if ($shipping && !$shipping->getCustomerId() && !$hasDefaultBilling) {\n $shipping->setIsDefaultBilling(true);\n }\n }", "protected function save_subscription_meta( $order_id, $customer_id ) {\n\t\tupdate_post_meta( $order_id, '_simplify_customer_id', wc_clean( $customer_id ) );\n\t}", "public function storeSelf() {\n trace('[METHOD] '.__METHOD__);\n\t\t$dataArray = $this->getDataArray();\n $this->set_uid(tx_ptgsaaccounting_orderCreditBalanceAccessor::getInstance()->storeOrderCreditBalanceData($dataArray));\n \n\n\t}", "protected function _prepareCustomerQuote()\n {\n $quote = $this->getQuote();\n $billing = $quote->getBillingAddress();\n $shipping = $quote->isVirtual() ? null : $quote->getShippingAddress();\n\n $customer = $this->getCustomerSession()->getCustomer();\n if (!$billing->getCustomerId() || $billing->getSaveInAddressBook()) {\n $customerBilling = $billing->exportCustomerAddress();\n $customer->addAddress($customerBilling);\n $billing->setCustomerAddress($customerBilling);\n }\n if ($shipping && !$shipping->getSameAsBilling() &&\n (!$shipping->getCustomerId() || $shipping->getSaveInAddressBook())) {\n $customerShipping = $shipping->exportCustomerAddress();\n $customer->addAddress($customerShipping);\n $shipping->setCustomerAddress($customerShipping);\n }\n\n if (isset($customerBilling) && !$customer->getDefaultBilling()) {\n $customerBilling->setIsDefaultBilling(true);\n }\n if ($shipping && isset($customerShipping) && !$customer->getDefaultShipping()) {\n $customerShipping->setIsDefaultShipping(true);\n } else if (isset($customerBilling) && !$customer->getDefaultShipping()) {\n $customerBilling->setIsDefaultShipping(true);\n }\n $quote->setCustomer($customer);\n }", "protected function _prepareCustomerQuote()\n {\n $quote = $this->getQuote();\n $billing = $quote->getBillingAddress();\n $shipping = $quote->isVirtual() ? null : $quote->getShippingAddress();\n\n $customer = $this->getCustomerSession()->getCustomer();\n if (!$billing->getCustomerId() || $billing->getSaveInAddressBook()) {\n $customerBilling = $billing->exportCustomerAddress();\n $customer->addAddress($customerBilling);\n $billing->setCustomerAddress($customerBilling);\n }\n\n if ($shipping && !$shipping->getSameAsBilling()\n && (!$shipping->getCustomerId() || $shipping->getSaveInAddressBook())\n ) {\n $customerShipping = $shipping->exportCustomerAddress();\n $customer->addAddress($customerShipping);\n $shipping->setCustomerAddress($customerShipping);\n }\n\n if (isset($customerBilling) && !$customer->getDefaultBilling()) {\n $customerBilling->setIsDefaultBilling(true);\n }\n\n if ($shipping && isset($customerShipping) && !$customer->getDefaultShipping()) {\n $customerShipping->setIsDefaultShipping(true);\n } else if (isset($customerBilling) && !$customer->getDefaultShipping()) {\n $customerBilling->setIsDefaultShipping(true);\n }\n\n $quote->setCustomer($customer);\n }", "public function placeOrder(Mage_Sales_Model_Quote $quote)\n {\n Mage::dispatchEvent(\"fontis_masterpass_place_order_before\", array(\"quote\" => $quote));\n\n // Check to see if the customer is logged in or not.\n if (!$quote->getCustomerId()) {\n $quote->setCustomerIsGuest(true)\n ->setCustomerGroupId(Mage_Customer_Model_Group::NOT_LOGGED_IN_ID)\n ->setCustomerEmail($quote->getBillingAddress()->getEmail());\n }\n $quote->collectTotals();\n\n /** @var Mage_Sales_Model_Service_Quote $service */\n $service = Mage::getModel(\"sales/service_quote\", $quote);\n\n // The Mage_Sales_Model_Service_Quote interface changed from v1.4.1.0 CE onwards.\n // This accounts for this change.\n if (method_exists($service, \"submitAll\")) {\n $service->submitAll();\n $order = $service->getOrder();\n } else {\n $order = $service->submit();\n }\n $order->save();\n\n Mage::dispatchEvent(\"fontis_masterpass_place_order_after\", compact(\"quote\", \"order\"));\n\n return $order;\n }", "protected function _prepareNewCustomerQuote()\n {\n $quote = $this->getQuote();\n $billing = $quote->getBillingAddress();\n $shipping = $quote->isVirtual() ? null : $quote->getShippingAddress();\n\n $customer = $quote->getCustomer();\n /* @var $customer Mage_Customer_Model_Customer */\n $customerBilling = $billing->exportCustomerAddress();\n $customer->addAddress($customerBilling);\n $billing->setCustomerAddress($customerBilling);\n $customerBilling->setIsDefaultBilling(true);\n if ($shipping && !$shipping->getSameAsBilling()) {\n $customerShipping = $shipping->exportCustomerAddress();\n $customer->addAddress($customerShipping);\n $shipping->setCustomerAddress($customerShipping);\n $customerShipping->setIsDefaultShipping(true);\n } elseif ($shipping) {\n $customerBilling->setIsDefaultShipping(true);\n }\n\n if ($quote->getCustomerTaxnumber() && !$billing->getCustomerTaxnumber()) {\n $billing->setCustomerTaxnumber($quote->getCustomerTaxnumber());\n }\n\n Mage::helper('core')->copyFieldset('checkout_onepage_quote', 'to_customer', $quote, $customer);\n $customer->setPassword($customer->decryptPassword($quote->getPasswordHash()));\n $customer->setPasswordHash($customer->hashPassword($customer->getPassword()));\n $quote->setCustomer($customer)\n ->setCustomerId(true);\n }", "function saveOrder()\n\t\t{\n\t\t\tglobal $current_user, $wpdb, $pmpro_checkout_id;\n\n\t\t\t//get a random code to use for the public ID\n\t\t\tif(empty($this->code))\n\t\t\t\t$this->code = $this->getRandomCode();\n\n\t\t\t//figure out how much we charged\n\t\t\tif(!empty($this->InitialPayment))\n\t\t\t\t$amount = $this->InitialPayment;\n\t\t\telseif(!empty($this->subtotal))\n\t\t\t\t$amount = $this->subtotal;\n\t\t\telse\n\t\t\t\t$amount = 0;\n\n\t\t\t//Todo: Tax?!, Coupons, Certificates, affiliates\n\t\t\tif(empty($this->subtotal))\n\t\t\t\t$this->subtotal = $amount;\n\t\t\tif(isset($this->tax))\n\t\t\t\t$tax = $this->tax;\n\t\t\telse\n\t\t\t\t$tax = $this->getTax(true);\n\t\t\t$this->certificate_id = \"\";\n\t\t\t$this->certificateamount = \"\";\n\n\t\t\t//calculate total\n\t\t\tif(!empty($this->total))\n\t\t\t\t$total = $this->total;\n\t\t\telse {\n\t\t\t\t$total = (float)$amount + (float)$tax;\n\t\t\t\t$this->total = $total;\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t//these fix some warnings/notices\n\t\t\tif(empty($this->billing))\n\t\t\t{\n\t\t\t\t$this->billing = new stdClass();\n\t\t\t\t$this->billing->name = $this->billing->street = $this->billing->city = $this->billing->state = $this->billing->zip = $this->billing->country = $this->billing->phone = \"\";\n\t\t\t}\n\t\t\tif(empty($this->user_id))\n\t\t\t\t$this->user_id = 0;\n\t\t\tif(empty($this->paypal_token))\n\t\t\t\t$this->paypal_token = \"\";\n\t\t\tif(empty($this->couponamount))\n\t\t\t\t$this->couponamount = \"\";\n\t\t\tif(empty($this->payment_type))\n\t\t\t\t$this->payment_type = \"\";\n\t\t\tif(empty($this->payment_transaction_id))\n\t\t\t\t$this->payment_transaction_id = \"\";\n\t\t\tif(empty($this->subscription_transaction_id))\n\t\t\t\t$this->subscription_transaction_id = \"\";\n\t\t\tif(empty($this->affiliate_id))\n\t\t\t\t$this->affiliate_id = \"\";\n\t\t\tif(empty($this->affiliate_subid))\n\t\t\t\t$this->affiliate_subid = \"\";\n\t\t\tif(empty($this->session_id))\n\t\t\t\t$this->session_id = \"\";\n\t\t\tif(empty($this->accountnumber))\n\t\t\t\t$this->accountnumber = \"\";\n\t\t\tif(empty($this->cardtype))\n\t\t\t\t$this->cardtype = \"\";\n\t\t\tif(empty($this->expirationmonth))\n\t\t\t\t$this->expirationmonth = \"\";\n\t\t\tif(empty($this->expirationyear))\n\t\t\t\t$this->expirationyear = \"\";\n\t\t\tif(empty($this->ExpirationDate))\n\t\t\t\t$this->ExpirationDate = \"\";\n\t\t\tif (empty($this->status))\n\t\t\t\t$this->status = \"\";\n\n\t\t\tif(empty($this->gateway))\n\t\t\t\t$this->gateway = pmpro_getOption(\"gateway\");\n\t\t\tif(empty($this->gateway_environment))\n\t\t\t\t$this->gateway_environment = pmpro_getOption(\"gateway_environment\");\n\n\t\t\tif(empty($this->datetime) && empty($this->timestamp))\n\t\t\t\t$this->datetime = date(\"Y-m-d H:i:s\", time());\n\t\t\telseif(empty($this->datetime) && !empty($this->timestamp) && is_numeric($this->timestamp))\n\t\t\t\t$this->datetime = date(\"Y-m-d H:i:s\", $this->timestamp);\t//get datetime from timestamp\n\t\t\telseif(empty($this->datetime) && !empty($this->timestamp))\n\t\t\t\t$this->datetime = $this->timestamp;\t\t//must have a datetime in it\n\n\t\t\tif(empty($this->notes))\n\t\t\t\t$this->notes = \"\";\n\n\t\t\tif(empty($this->checkout_id) || intval($this->checkout_id)<1) {\n\t\t\t\t$highestval = $wpdb->get_var(\"SELECT MAX(checkout_id) FROM $wpdb->pmpro_membership_orders\");\n\t\t\t\t$this->checkout_id = intval($highestval)+1;\n\t\t\t\t$pmpro_checkout_id = $this->checkout_id;\n\t\t\t}\n\n\t\t\t//build query\n\t\t\tif(!empty($this->id))\n\t\t\t{\n\t\t\t\t//set up actions\n\t\t\t\t$before_action = \"pmpro_update_order\";\n\t\t\t\t$after_action = \"pmpro_updated_order\";\n\t\t\t\t//update\n\t\t\t\t$this->sqlQuery = \"UPDATE $wpdb->pmpro_membership_orders\n\t\t\t\t\t\t\t\t\tSET `code` = '\" . $this->code . \"',\n\t\t\t\t\t\t\t\t\t`session_id` = '\" . $this->session_id . \"',\n\t\t\t\t\t\t\t\t\t`user_id` = \" . intval($this->user_id) . \",\n\t\t\t\t\t\t\t\t\t`membership_id` = \" . intval($this->membership_id) . \",\n\t\t\t\t\t\t\t\t\t`paypal_token` = '\" . $this->paypal_token . \"',\n\t\t\t\t\t\t\t\t\t`billing_name` = '\" . esc_sql($this->billing->name) . \"',\n\t\t\t\t\t\t\t\t\t`billing_street` = '\" . esc_sql($this->billing->street) . \"',\n\t\t\t\t\t\t\t\t\t`billing_city` = '\" . esc_sql($this->billing->city) . \"',\n\t\t\t\t\t\t\t\t\t`billing_state` = '\" . esc_sql($this->billing->state) . \"',\n\t\t\t\t\t\t\t\t\t`billing_zip` = '\" . esc_sql($this->billing->zip) . \"',\n\t\t\t\t\t\t\t\t\t`billing_country` = '\" . esc_sql($this->billing->country) . \"',\n\t\t\t\t\t\t\t\t\t`billing_phone` = '\" . esc_sql($this->billing->phone) . \"',\n\t\t\t\t\t\t\t\t\t`subtotal` = '\" . $this->subtotal . \"',\n\t\t\t\t\t\t\t\t\t`tax` = '\" . $this->tax . \"',\n\t\t\t\t\t\t\t\t\t`couponamount` = '\" . $this->couponamount . \"',\n\t\t\t\t\t\t\t\t\t`certificate_id` = \" . intval($this->certificate_id) . \",\n\t\t\t\t\t\t\t\t\t`certificateamount` = '\" . $this->certificateamount . \"',\n\t\t\t\t\t\t\t\t\t`total` = '\" . $this->total . \"',\n\t\t\t\t\t\t\t\t\t`payment_type` = '\" . $this->payment_type . \"',\n\t\t\t\t\t\t\t\t\t`cardtype` = '\" . $this->cardtype . \"',\n\t\t\t\t\t\t\t\t\t`accountnumber` = '\" . $this->accountnumber . \"',\n\t\t\t\t\t\t\t\t\t`expirationmonth` = '\" . $this->expirationmonth . \"',\n\t\t\t\t\t\t\t\t\t`expirationyear` = '\" . $this->expirationyear . \"',\n\t\t\t\t\t\t\t\t\t`status` = '\" . esc_sql($this->status) . \"',\n\t\t\t\t\t\t\t\t\t`gateway` = '\" . $this->gateway . \"',\n\t\t\t\t\t\t\t\t\t`gateway_environment` = '\" . $this->gateway_environment . \"',\n\t\t\t\t\t\t\t\t\t`payment_transaction_id` = '\" . esc_sql($this->payment_transaction_id) . \"',\n\t\t\t\t\t\t\t\t\t`subscription_transaction_id` = '\" . esc_sql($this->subscription_transaction_id) . \"',\n\t\t\t\t\t\t\t\t\t`timestamp` = '\" . esc_sql($this->datetime) . \"',\n\t\t\t\t\t\t\t\t\t`affiliate_id` = '\" . esc_sql($this->affiliate_id) . \"',\n\t\t\t\t\t\t\t\t\t`affiliate_subid` = '\" . esc_sql($this->affiliate_subid) . \"',\n\t\t\t\t\t\t\t\t\t`notes` = '\" . esc_sql($this->notes) . \"',\n\t\t\t\t\t\t\t\t\t`checkout_id` = \" . intval($this->checkout_id) . \"\n\t\t\t\t\t\t\t\t\tWHERE id = '\" . $this->id . \"'\n\t\t\t\t\t\t\t\t\tLIMIT 1\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//set up actions\n\t\t\t\t$before_action = \"pmpro_add_order\";\n\t\t\t\t$after_action = \"pmpro_added_order\";\n\t\t\t\t\n\t\t\t\t//only on inserts, we might want to set the expirationmonth and expirationyear from ExpirationDate\n\t\t\t\tif( (empty($this->expirationmonth) || empty($this->expirationyear)) && !empty($this->ExpirationDate)) {\n\t\t\t\t\t$this->expirationmonth = substr($this->ExpirationDate, 0, 2);\n\t\t\t\t\t$this->expirationyear = substr($this->ExpirationDate, 2, 4);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//insert\n\t\t\t\t$this->sqlQuery = \"INSERT INTO $wpdb->pmpro_membership_orders\n\t\t\t\t\t\t\t\t(`code`, `session_id`, `user_id`, `membership_id`, `paypal_token`, `billing_name`, `billing_street`, `billing_city`, `billing_state`, `billing_zip`, `billing_country`, `billing_phone`, `subtotal`, `tax`, `couponamount`, `certificate_id`, `certificateamount`, `total`, `payment_type`, `cardtype`, `accountnumber`, `expirationmonth`, `expirationyear`, `status`, `gateway`, `gateway_environment`, `payment_transaction_id`, `subscription_transaction_id`, `timestamp`, `affiliate_id`, `affiliate_subid`, `notes`, `checkout_id`)\n\t\t\t\t\t\t\t\tVALUES('\" . $this->code . \"',\n\t\t\t\t\t\t\t\t\t '\" . session_id() . \"',\n\t\t\t\t\t\t\t\t\t \" . intval($this->user_id) . \",\n\t\t\t\t\t\t\t\t\t \" . intval($this->membership_id) . \",\n\t\t\t\t\t\t\t\t\t '\" . $this->paypal_token . \"',\n\t\t\t\t\t\t\t\t\t '\" . esc_sql(trim($this->billing->name)) . \"',\n\t\t\t\t\t\t\t\t\t '\" . esc_sql(trim($this->billing->street)) . \"',\n\t\t\t\t\t\t\t\t\t '\" . esc_sql($this->billing->city) . \"',\n\t\t\t\t\t\t\t\t\t '\" . esc_sql($this->billing->state) . \"',\n\t\t\t\t\t\t\t\t\t '\" . esc_sql($this->billing->zip) . \"',\n\t\t\t\t\t\t\t\t\t '\" . esc_sql($this->billing->country) . \"',\n\t\t\t\t\t\t\t\t\t '\" . cleanPhone($this->billing->phone) . \"',\n\t\t\t\t\t\t\t\t\t '\" . $this->subtotal . \"',\n\t\t\t\t\t\t\t\t\t '\" . $tax . \"',\n\t\t\t\t\t\t\t\t\t '\" . $this->couponamount. \"',\n\t\t\t\t\t\t\t\t\t \" . intval($this->certificate_id) . \",\n\t\t\t\t\t\t\t\t\t '\" . $this->certificateamount . \"',\n\t\t\t\t\t\t\t\t\t '\" . $total . \"',\n\t\t\t\t\t\t\t\t\t '\" . $this->payment_type . \"',\n\t\t\t\t\t\t\t\t\t '\" . $this->cardtype . \"',\n\t\t\t\t\t\t\t\t\t '\" . hideCardNumber($this->accountnumber, false) . \"',\n\t\t\t\t\t\t\t\t\t '\" . $this->expirationmonth . \"',\n\t\t\t\t\t\t\t\t\t '\" . $this->expirationyear . \"',\n\t\t\t\t\t\t\t\t\t '\" . esc_sql($this->status) . \"',\n\t\t\t\t\t\t\t\t\t '\" . $this->gateway . \"',\n\t\t\t\t\t\t\t\t\t '\" . $this->gateway_environment . \"',\n\t\t\t\t\t\t\t\t\t '\" . esc_sql($this->payment_transaction_id) . \"',\n\t\t\t\t\t\t\t\t\t '\" . esc_sql($this->subscription_transaction_id) . \"',\n\t\t\t\t\t\t\t\t\t '\" . esc_sql($this->datetime) . \"',\n\t\t\t\t\t\t\t\t\t '\" . esc_sql($this->affiliate_id) . \"',\n\t\t\t\t\t\t\t\t\t '\" . esc_sql($this->affiliate_subid) . \"',\n\t\t\t\t\t\t\t\t\t\t'\" . esc_sql($this->notes) . \"',\n\t\t\t\t\t\t\t\t\t \" . intval($this->checkout_id) . \"\n\t\t\t\t\t\t\t\t\t )\";\n\t\t\t}\n\n\t\t\tdo_action($before_action, $this);\n\t\t\tif($wpdb->query($this->sqlQuery) !== false)\n\t\t\t{\n\t\t\t\tif(empty($this->id))\n\t\t\t\t\t$this->id = $wpdb->insert_id;\n\t\t\t\tdo_action($after_action, $this);\n\t\t\t\treturn $this->getMemberOrderByID($this->id);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "function persistOrder(User $user, Order $order, array $orderItems);", "public function insertOrderCustomer($value,$line_item, $mainOrderId)\n {\n\n\n //customer info\n $customer_arr['order_id'] = $mainOrderId;\n $customer_arr['line_item_id'] = $line_item->id;\n $customer_arr['billing_address_name'] =$value->billing_address->name;\n $customer_arr['billing_address_first_name'] =$value->billing_address->first_name;\n $customer_arr['billing_address_last_name'] =$value->billing_address->last_name;\n $customer_arr['billing_address_address1'] =$value->billing_address->address1;\n $customer_arr['billing_address_address2'] =$value->billing_address->address2;\n $customer_arr['billing_address_phone'] =$value->billing_address->phone;\n $customer_arr['billing_address_city'] =$value->billing_address->city;\n $customer_arr['billing_address_zip'] =$value->billing_address->zip;\n $customer_arr['billing_address_province'] =$value->billing_address->province;\n $customer_arr['billing_address_country'] =$value->billing_address->country;\n $customer_arr['billing_address_company'] =$value->billing_address->company;\n $customer_arr['billing_address_latitude'] =$value->billing_address->latitude;\n $customer_arr['billing_address_longitude'] =$value->billing_address->longitude;\n $customer_arr['billing_address_province_code'] =$value->billing_address->province_code;\n $customer_arr['billing_address_country_code'] =$value->billing_address->country_code;\n $customer_arr['shipping_address_name'] = $value->shipping_address->name;\n $customer_arr['shipping_address_first_name'] = $value->shipping_address->first_name;\n $customer_arr['shipping_address_last_name'] = $value->shipping_address->last_name;\n $customer_arr['shipping_address_address1'] = $value->shipping_address->address1;\n $customer_arr['shipping_address_address2'] = $value->shipping_address->address2;\n $customer_arr['shipping_address_phone'] = $value->shipping_address->phone;\n $customer_arr['shipping_address_city'] = $value->shipping_address->city;\n $customer_arr['shipping_address_zip'] = $value->shipping_address->zip;\n $customer_arr['shipping_address_province'] = $value->shipping_address->province;\n $customer_arr['shipping_address_country'] = $value->shipping_address->country;\n $customer_arr['shipping_address_company'] = $value->shipping_address->company;\n $customer_arr['shipping_address_latitude'] = $value->shipping_address->latitude;\n $customer_arr['shipping_address_longitude'] = $value->shipping_address->longitude;\n $customer_arr['shipping_address_province_code'] = $value->shipping_address->province_code;\n $customer_arr['shipping_address_country_code'] = $value->shipping_address->country_code;\n $customer_arr['customer_id'] = $value->customer->id;\n $customer_arr['customer_email'] = $value->customer->email;\n $customer_arr['customer_first_name'] = $value->customer->first_name;\n $customer_arr['customer_last_name'] = $value->customer->last_name;\n $customer_arr['customer_total_spent'] = $value->customer->total_spent;\n $customer_arr['customer_last_order_id'] = $value->customer->last_order_id;\n $customer_arr['customer_phone'] = $value->customer->phone;\n $customer_arr['customer_tags'] = $value->customer->tags;\n $customer_arr['customer_last_order_name'] = $value->customer->last_order_name;\n $customer_arr['customer_currency'] = $value->customer->currency;\n $customer_arr['default_address_id'] = $value->customer->default_address->id;\n $customer_arr['default_address_customer_id'] = $value->customer->default_address->customer_id;\n $customer_arr['default_address_first_name'] = $value->customer->default_address->first_name;\n $customer_arr['default_address_last_name'] = $value->customer->default_address->last_name;\n $customer_arr['default_address_company'] = $value->customer->default_address->company;\n $customer_arr['default_address_address1'] = $value->customer->default_address->address1;\n $customer_arr['default_address_address2'] = $value->customer->default_address->address2;\n $customer_arr['default_address_city'] = $value->customer->default_address->city;\n $customer_arr['default_address_province'] = $value->customer->default_address->province;\n $customer_arr['default_address_country'] = $value->customer->default_address->country;\n $customer_arr['default_address_zip'] = $value->customer->default_address->zip;\n $customer_arr['default_address_phone'] = $value->customer->default_address->phone;\n $customer_arr['default_address_name'] = $value->customer->default_address->name;\n $customer_arr['default_address_province_code'] = $value->customer->default_address->province_code;\n $customer_arr['default_address_country_code'] = $value->customer->default_address->country_code;\n $customer_arr['default_address_country_name'] = $value->customer->default_address->country_name;\n\n\n return OrderCustomerDetails::insertGetId($customer_arr);\n\n }", "public function save_temporary_order_id(Varien_Event_Observer $observer)\n {\n\t\t$helper = Mage::helper('iconnectsync');\t\t\n $order = $observer->getEvent()->getOrder(); \n\t $order->setTemporaryOrderId($helper->NewGuid()); \n }", "function save_order_information($data){\n\t\t$this->db->insert($this->config->item('ems_payment_history','dbtables'),$data);\n\t\t$insert_id = $this->db->insert_id();\n\t\treturn $insert_id;\n\t}", "public function save()\n {\n $sql = new Sql();\n\n $results = $sql->select(\n \"CALL sp_orders_save(:idorder, :idcart, :iduser, :idstatus, :idaddress, :vltotal)\",\n [\n ':idorder'=>$this->getidorder(),\n ':idcart'=>$this->getidcart(),\n ':iduser'=>$this->getiduser(),\n ':idstatus'=>$this->getidstatus(),\n ':idaddress'=>$this->getidaddress(),\n ':vltotal'=>$this->getvltotal()\n ]\n );\n\n if (count($results) > 0) {\n $this->setData($results[0]);\n }\n }", "public function testSaveIdentDataToCustomer()\n {\n \n // no verification data on customer\n $customer = Mage::getModel('customer/customer')->load(1);\n $this->assertEquals(null, $customer->getPostidentVerificationData());\n \n // verification data on quote\n $quote = Mage::getModel('sales/quote')->load(2);\n $helperMock = $this->getHelperMock('postident/data', array(\n 'getQuote',\n 'getCustomer'\n )\n );\n $helperMock->expects($this->any())\n ->method('getQuote')\n ->will($this->returnValue($quote));\n \n $helperMock->expects($this->any())\n ->method('getCustomer')\n ->will($this->returnValue($customer));\n $this->replaceByMock('helper', 'postident/data', $helperMock);\n \n /**\n * No matter if parameters are null or not, the result \n * allways should be the same !\n * \n * \n */\n \n //test if customer and quote is given as parameter\n Mage::helper('postident/data')->saveIdentDataToCustomer($customer, $quote);\n $this->assertEquals(\n $quote->getPostidentVerificationData(),\n Mage::getModel('customer/customer')->load(1)->getPostidentVerificationData()\n );\n //test if only customer is given as parameter\n Mage::helper('postident/data')->saveIdentDataToCustomer($customer, null);\n $this->assertEquals(\n $quote->getPostidentVerificationData(),\n Mage::getModel('customer/customer')->load(1)->getPostidentVerificationData()\n );\n \n //test if only quote is given as parameter\n Mage::helper('postident/data')->saveIdentDataToCustomer(null, $quote);\n $this->assertEquals(\n $quote->getPostidentVerificationData(),\n Mage::getModel('customer/customer')->load(1)->getPostidentVerificationData()\n );\n \n //test if nothing is given as parameter\n Mage::helper('postident/data')->saveIdentDataToCustomer(null, null);\n $this->assertEquals(\n $quote->getPostidentVerificationData(),\n Mage::getModel('customer/customer')->load(1)->getPostidentVerificationData()\n );\n }", "private function alterOrderInformation()\n {\n if (version_compare(Shopware()->Config()->get( 'Version' ), '5.2.0', '<')) {\n $sql = \"UPDATE `s_core_snippets`\n SET `value` = CASE\n WHEN `value` = 'Free text 4' THEN 'Transaction ID'\n WHEN `value` = 'Freitextfeld 4' THEN 'Transaktions-ID'\n ELSE `value`\n END\n WHERE `namespace` = 'backend/order/main'\n AND `value` IN ('Freitextfeld 4', 'Free text 4')\";\n } elseif (version_compare(Shopware()->Config()->get( 'Version' ), '5.2.0', '>=')) {\n $sql = \"INSERT INTO `s_attribute_configuration` (table_name, column_name, \"\n . \"column_type, position, translatable, display_in_backend, custom, \"\n . \"help_text, support_text, label, entity, array_store) \"\n . \"VALUES ('s_order_attributes','attribute4','string',1,0,1,0,'','','Transaction ID','NULL',NULL)\";\n }\n Shopware()->Db()->query($sql);\n }", "public function insertOrder(Request $request){\n\n $invoice = new tblInvoices;\n\n $invoice->cust_id = $request->input('cust_id');\n $invoice->amount = $request->input('amount');\n $invoice->discount = $request->input('discount');\n $invoice->final_amount = $request->input('final_amount');\n $invoice->branch_id = $request->input('branch_id');\n $invoice->offer_id - $request->input('offer_id');\n\n\n $invoice->save();\n $invoice->id;\n\n $insertedId = $invoice->id;\n\n $order = new tblOrder;\n $order->all->branch_id = $request->input('branch_id');\n $order->all->cust_id = $request->input('cust_id');\n $order->all->invoice_id = $insertedId;\n $order->item_name = $request->\n $order -> save();\n }", "public function onCheckoutSaveOrder()\n {\n $order_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();\n $order = Mage::getModel('sales/order')->loadByIncrementId($order_id);\n\n $this->clearAbandonment($order);\n $this->subscribeDuringCheckout($order);\n }", "function save_order(){\n\tif( ! current_user_can( 'order_posts' ) ){\n\t\twp_send_json_error( 'Oooops, you haven\\'t got the permission to do that' );\n\n\t\treturn;\n\t}\n\t$ordered_ids = $_POST[ 'id_array' ];\n\t$position = 1;\n\tforeach( $ordered_ids as $id ){\n\t\tupdate_post_meta( (int) $id, 'post_order', $position );\n\t\t$position ++;\n\t}\n}", "static public function SaveOrder() {\n $order = new self();\n $order->uid = Session::get('user_id');\n $order->total = 0;\n foreach (Cart::getContent()->toArray() as $item) {\n $order->total += $item['price'] * $item['quantity'];\n }\n $order->order_data = serialize(Cart::getContent()->toArray());\n $order->status = \"New\";\n $order->save();\n $order_id = DB::table('orders')->latest()->first()->id;\n /* saving order_id in session, used to redirect the user to order details page on user page after submitting checkout */\n Session::put('last_order', $order_id);\n /* clear cart, ready for a new order */\n Cart::clear();\n return true;\n }", "function save($order_id = 0) {\n\tif ($order_id) {\n\t $this->order_id = $order_id;\n\t}\n\n\t$this->update_records(\"order_id\");\n\tparent::save();\n }", "public function insertOrderDetails($value,$line_item, $mainOrderId)\n {\n //main order\n $order_list_arr['name'] = $value->name;\n $order_list_arr['shpoify_order_id'] = $value->id;\n $order_list_arr['line_item_id'] = $line_item->id;\n $order_list_arr['order_number'] = $value->order_number;\n $order_list_arr['customer_name'] = $value->billing_address->name;\n $order_list_arr['app_id'] = $value->app_id;\n $order_list_arr['checkout_id'] = $value->checkout_id;\n $order_list_arr['token'] = $value->token;\n $order_list_arr['gateway'] = $value->gateway;\n $order_list_arr['total_price'] = $value->total_price;\n $order_list_arr['subtotal_price'] = $value->subtotal_price;\n $order_list_arr['currency'] = $value->currency;\n $order_list_arr['cart_token'] = $value->cart_token;\n $order_list_arr['checkout_token'] = $value->checkout_token;\n $order_list_arr['order_status_url'] = $value->order_status_url;\n\n return OrderDetails::insertGetId($order_list_arr);\n\n }", "private function SetOrderData()\n\t\t{\n\t\t\t// doesn't factor in cookies stored by Interspire Shopping Cart, so we have to pass back the\n\t\t\t// order token manually from those payment providers. We do this by taking the\n\t\t\t// cart ID passed back from the provider which stores the order's unique token.\n\t\t\tif(isset($_COOKIE['SHOP_ORDER_TOKEN'])) {\n\t\t\t\t$this->orderToken = $_COOKIE['SHOP_ORDER_TOKEN'];\n\t\t\t}\n\t\t\telse if(isset($_REQUEST['provider'])) {\n\t\t\t\tGetModuleById('checkout', $this->paymentProvider, $_REQUEST['provider']);\n\n\t\t\t\tif(in_array(\"GetOrderToken\", get_class_methods($this->paymentProvider))) {\n\t\t\t\t\t$this->orderToken = $this->paymentProvider->GetOrderToken();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tob_end_clean();\n\t\t\t\t\theader(sprintf(\"Location:%s\", $GLOBALS['ShopPath']));\n\t\t\t\t\tdie();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Load the pending orders from the database\n\t\t\t$this->pendingData = LoadPendingOrdersByToken($this->orderToken, true);\n\t\t\tif(!$this->orderToken || $this->pendingData === false) {\n\t\t\t\t$this->BadOrder();\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\tif($this->paymentProvider === null) {\n\t\t\t\tGetModuleById('checkout', $this->paymentProvider, $this->pendingData['paymentmodule']);\n\t\t\t}\n\n\t\t\tif($this->paymentProvider) {\n\t\t\t\t$this->paymentProvider->SetOrderData($this->pendingData);\n\t\t\t}\n\t\t}", "public function autoQuoteSession($quote_id,$action)\n\t{\n\t\tunset($this->quote_creation->create_mission);\n unset($this->quote_creation->select_missions);\n unset($this->quote_creation->custom);\n\t\tunset($this->quote_creation->send_quote);\n\n\t\t$quoteObj=new Ep_Quote_Quotes();\n\t\t$quoteDetails=$quoteObj->getQuoteDetails($quote_id);\n\n\t\tif($quoteDetails)\n\t\t{\n\t\t\tforeach($quoteDetails as $quote)\n\t\t\t{\t\t\t\t\n\t\t\t\t$this->quote_creation->custom['action']=$action;\n\t\t\t\tif($action=='edit')\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t$this->quote_creation->custom['quote_id']=$quote['identifier'];\n\t\t\t\t\tif($quote['sales_review']=='validated' || $quote['sales_review']=='closed')\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->quote_creation->custom['create_new_version']='yes';\n\t\t\t\t\t\t$this->quote_creation->custom['version']=($quote['version']+1);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->quote_creation->custom['version']=($quote['version']);\n\t\t\t\t\t\tunset($this->quote_creation->custom['create_new_version']);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\telse if($action=='duplicate')\n\t\t\t\t{\n\t\t\t\t\tunset($this->quote_creation->custom['quote_id']);\n\t\t\t\t\tunset($this->quote_creation->custom['create_new_version']);\n\t\t\t\t\tunset($this->quote_creation->custom['version']);\n\t\t\t\t}\n\t\t\t\t//step1 session\n\t\t\t\t$this->quote_creation->create_step1['client_id']=$quote['client_id'];\n\t\t\t\t$this->quote_creation->create_step1['category']=$quote['category'];\n\t\t\t\tif($quote['category_other'])\n\t\t\t\t\t$this->quote_creation->create_step1['category_other']=$quote['category_other'];\n\n\t\t\t\tif($quote['websites'])\n\t\t\t\t\t$this->quote_creation->create_step1['client_websites']=explode(\"|\",$quote['websites']);\n\t\t\t\t$this->quote_creation->create_step1['quote_by']=$quote['quote_by'];\n\n\t\t\t\t$this->quote_creation->create_step1['currency']=$quote['sales_suggested_currency'];\n\t\t\t\t$this->quote_creation->create_step1['conversion']=$quote['conversion'];\n\t\t\t\t$this->quote_creation->create_step1['quote_type']=$quote['quote_type'];\n\n\t\t\t\t//step2 session\t\n\t\t\t\t$this->quote_creation->create_mission['quote_title']=$quote['title'];\t\t\t\n\t\t\t\t//getting mission details\n\t\t\t\t$searchParameters['quote_id']=$quote_id;\n\t\t\t\t$searchParameters['misson_user_type']='sales';\n\t\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t\t$missonDetails=$quoteMission_obj->getMissionDetails($searchParameters);\n\n\t\t\t\tif($missonDetails)\n\t\t\t\t{\n\t\t\t\t\t$i=0;\n\t\t\t\t\tforeach($missonDetails as $quoteMmission)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->quote_creation->create_mission['product'][$i]=$quoteMmission['product'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['language'][$i]=$quoteMmission['language_source'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['languagedest'][$i]=$quoteMmission['language_dest'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['producttype'][$i]=$quoteMmission['product_type'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['producttypeother'][$i]=$quoteMmission['product_type_other'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['nb_words'][$i]=$quoteMmission['nb_words'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['volume'][$i]=$quoteMmission['volume'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['mission_length'][$i]=$quoteMmission['mission_length'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['mission_length_option'][$i]=$quoteMmission['mission_length_option'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['volume_max'][$i]=$quoteMmission['volume_max'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['delivery_volume_option'][$i]=$quoteMmission['delivery_volume_option'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['tempo'][$i]=$quoteMmission['tempo'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['tempo_length'][$i]=$quoteMmission['tempo_length'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['tempo_length_option'][$i]=$quoteMmission['tempo_length_option'];\n\t\t\t\t\t\tif(!$quoteMmission['oneshot'])\n\t\t\t\t\t\t\t$quoteMmission['oneshot']='yes';\n\t\t\t\t\t\t$this->quote_creation->create_mission['oneshot'][$i]=$quoteMmission['oneshot'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['demande_client'][$i]=$quoteMmission['demande_client'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['duration_dont_know'][$i]=$quoteMmission['duration_dont_know'];\n\t\t\t\t\t\t$this->quote_creation->create_mission['comments'][$i]=$quoteMmission['comments'];\n\t\t\t\t\t\t$this->quote_creation->select_missions['missions_selected'][$i]=$quoteMmission['sales_suggested_missions'];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//step3 details\n\t\t\t\t\t\tif($action=='edit')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->quote_creation->create_mission['mission_identifier'][$i]=$quoteMmission['identifier'];\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if($action=='duplicate')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tunset($this->quote_creation->create_mission['mission_identifier']);\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t//final step details\n\t\t\t\t$this->quote_creation->send_quote['sales_comment']=$quote['sales_comment'];\n\t\t\t\t$this->quote_creation->send_quote['client_email_text']=$quote['client_email_text'];\t\n\t\t\t\t//$this->quote_creation->send_quote['sales_delivery_time']=$quote['sales_delivery_time'];\n\t\t\t\t//$this->quote_creation->send_quote['sales_delivery_time_option']=$quote['sales_delivery_time_option'];\n\t\t\t\t$this->quote_creation->send_quote['client_know']=$quote['client_know'];\n\t\t\t\t$this->quote_creation->send_quote['urgent']=$quote['urgent'];\n\t\t\t\t$this->quote_creation->send_quote['urgent_comments']=$quote['urgent_comments'];\n\t\t\t\t$this->quote_creation->send_quote['prod_review']=$quote['prod_review'];\n\t\t\t\t$this->quote_creation->send_quote['skip_prod_comments']=$quote['skip_prod_comments'];\n\t\t\t\t//$this->quote_creation->send_quote['market_team_sent']=$quote['market_team_sent'];\n\t\t\t\t//$this->quote_creation->send_quote['from_platform']=$quote['from_platform'];\n\t\t\t\t$this->quote_creation->send_quote['quote_send_team']=$quote['quote_send_team'];\n\t\t\t\t$this->quote_creation->send_quote['sales_review']=$quote['sales_review'];\n\n\t\t\t\t//NEW FIELDS\n\t\t\t\t$client_aims=explode(\",\",$quote['client_aims']);\n\t\t\t\t$this->quote_creation->send_quote['client_aims']=$client_aims;\n\n\t\t\t\t$client_prio=explode(\",\",$quote['client_prio']);\n\n\t\t\t\tif(count($client_aims)>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tforeach($client_aims as $i=>$aim)\n\t\t\t\t\t{\n\t\t\t\t\t\t//echo 'priority_'.$aim;//.\"--\".$quote['client_prio'][$i];\n\t\t\t\t\t\t$this->quote_creation->send_quote['priority_'.$aim]=$client_prio[$i];\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t$this->quote_creation->send_quote['client_aims_comments']=$quote['client_aims_comments'];\n\t\t\t\t$this->quote_creation->send_quote['content_ordered_agency']=$quote['content_ordered_agency'];\n\t\t\t\t$this->quote_creation->send_quote['agency']=$quote['agency'];\n\t\t\t\t$this->quote_creation->send_quote['agency_name']=$quote['agency_name'];\n\t\t\t\t$this->quote_creation->send_quote['client_internal_team']=$quote['client_internal_team'];\n\t\t\t\t$this->quote_creation->send_quote['client_know_writers']=$quote['client_know_writers'];\t\t\t\t\n\t\t\t\t$this->quote_creation->send_quote['volume_option']=$quote['volume_option'];\n\t\t\t\t$this->quote_creation->send_quote['volume_option_multi']=$quote['volume_option_multi'];\n\t\t\t\t$this->quote_creation->send_quote['volume_every']=$quote['volume_every'];\n\t\t\t\t$this->quote_creation->send_quote['budget_marketing']=$quote['budget_marketing'];\n\t\t\t\t$this->quote_creation->send_quote['budget']=$quote['budget'];\n\t\t\t\t$this->quote_creation->send_quote['budget_currency']=$quote['budget_currency'];\n\n\t\t\t\t$this->quote_creation->send_quote['estimate_sign_percentage']=$quote['estimate_sign_percentage'];\n\t\t\t\t$this->quote_creation->send_quote['estimate_sign_date']=$quote['estimate_sign_date'];\n\t\t\t\t$this->quote_creation->send_quote['estimate_sign_comments']=$quote['estimate_sign_comments'];\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Quote documents added to sesssion\n\t\t\t\t$files = \"\";\n\t\t\t\t$documents_path = explode(\"|\",$quote['documents_path']);\n\t\t\t\t$documents_name = explode(\"|\",$quote['documents_name']);\n\t\t\t\t$k =0;\n\t\t\t\tforeach($documents_path as $row)\n\t\t\t\t{\n\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{\n\t\t\t\t\t\t$files .= '<div class=\"topset2\"><a href=\"/quote/download-document?type=quote&quote_id='.$quote_id.'&index='.$k.'\">'.$documents_name[$k].'</a><span class=\"delete\" rel=\"'.$k.'_'.$quote_id.'\"> <i class=\"splashy-error_x\"></i></span> \t\t\t\t\t\t</div>';\n\t\t\t\t\t}\n\t\t\t\t\t$k++;\n\t\t\t\t}\n\t\t\t\t$this->quote_creation->send_quote['documents'] = $files;\n\n\t\n\n\t\t\t\t//echo \"<pre>\";print_r($this->quote_creation->send_quote);exit;\n\t\t\t}\n\t\t}\n\n\t\t//echo \"<pre>\";print_r($this->quote_creation->create_step1);exit;\n\t}", "private function saveOrder()\n {\n $this->paymentInterface->setMethod(self::PAYMENT_METHOD);\n $this->magentoOrderId = $this->quoteManagement->placeOrder($this->quoteId, $this->paymentInterface);\n /** @var \\Magento\\Sales\\Api\\Data\\OrderInterface magentoOrder */\n $this->magentoOrder = $this->orderRepositoryInterface->get($this->magentoOrderId);\n\n if ($this->magentoOrderId == '') {\n throw new \\Exception(self::PMO_ERR_MSG);\n }\n }", "public function salesOrderSave($observer)\n {\n $order = $observer->getOrder();\n $quote = $observer->getQuote();\n \n $payment = $order->getPayment();\n \n if( !Mage::getStoreConfig('payment/'.$payment->getMethod().'/mc_active') ){\n return $this;\n }\n \n $data = new Varien_Object();\n \n if($payment->getCcType())\n $data->setCcType($payment->getCcType());\n if($payment->getCcOwner())\n $data->setCcOwner($payment->getCcOwner());\n if($payment->getCcLast4())\n $data->setCcLast4($payment->getCcLast4());\n if($payment->getCcNumber())\n $data->setCcNumber($payment->getCcNumber());\n if($payment->getCcParcelas())\n $data->setCcParcelas($payment->getCcParcelas());\n if($payment->getCcCid())\n $data->setCcCid($payment->getCcCid());\n if($payment->getCcExpMonth())\n $data->setCcExpMonth($payment->getCcExpMonth());\n if($payment->getCcExpYear())\n $data->setCcExpYear($payment->getCcExpYear());\n if($payment->getGwapBoletoType())\n $data->setGwapBoletoType($payment->getGwapBoletoType());\n \n /**\n * create braspag payment\n */\n $mGwap = Mage::getModel('gwap/order');\n $mGwap->setStatus(Indexa_Gwap_Model_Order::STATUS_CREATED);\n $mGwap->setCreatedAt(date('Y-m-d H:i:s'));\n $mGwap->setInfo(Mage::helper('core')->encrypt(serialize($data->toArray())));\n $mGwap->setType(Mage::getStoreConfig('payment/'.$payment->getMethod().'/mc_type'));\n\n $mGwap->setOrderId($order->getId());\n $mGwap->save();\n \n return $this;\n }", "public function save()\n {\n \n global $connection;\n //echo \"Im on the purchases ->save()\";\n\n\n //if($this->customer_id == \"\")\n //{\n #set error handler\n #set exception handler\n #call stored procedures\n $SQLQuery = \"CALL purchases_insert(\"\n . \":fk_customer_id,\"\n . \":fk_product_id,\"\n . \":purchase_quantity,\"\n . \":purchase_price,\"\n . \":purchase_comment,\"\n . \":purchase_subtotal,\"\n . \":purchase_taxesAmount,\"\n . \":purchase_grandtotal);\";\n $PDOStatement = $connection->prepare($SQLQuery);\n $PDOStatement->bindParam(\":fk_customer_id\", $this->customer_id);\n $PDOStatement->bindParam(\":fk_product_id\", $this->product_id);\n $PDOStatement->bindParam(\":purchase_quantity\", $this->purchase_quantity);\n $PDOStatement->bindParam(\":purchase_price\", $this->purchase_price);\n $PDOStatement->bindParam(\":purchase_comment\", $this->purchase_comment);\n $PDOStatement->bindParam(\":purchase_subtotal\", $this->purchase_subtotal);\n $PDOStatement->bindParam(\":purchase_taxesAmount\", $this->purchase_taxesAmount);\n $PDOStatement->bindParam(\":purchase_grandtotal\", $this->purchase_grandTotal);\n \n $PDOStatement->execute(); \n }", "private function updateOrderData()\n {\n $sign = $this->connector->signRequestKid(\n null,\n $this->connector->accountURL,\n $this->orderURL\n );\n\n $post = $this->connector->post($this->orderURL, $sign);\n if (strpos($post['header'], \"200 OK\") !== false) {\n $this->status = $post['body']['status'];\n $this->expires = $post['body']['expires'];\n $this->identifiers = $post['body']['identifiers'];\n $this->authorizationURLs = $post['body']['authorizations'];\n $this->finalizeURL = $post['body']['finalize'];\n if (array_key_exists('certificate', $post['body'])) {\n $this->certificateURL = $post['body']['certificate'];\n }\n $this->updateAuthorizations();\n } else {\n //@codeCoverageIgnoreStart\n $this->log->error(\"Failed to fetch order for {$this->basename}\");\n //@codeCoverageIgnoreEnd\n }\n }", "private function storePurchaseOrder() {\n return $this->json('POST', 'api/pch_purchase_order', $this->tempJson);\n }", "public function setEntity(MageQuote $quote)\n {\n $id = $this->sgBase->getExternalCustomerId();\n $email = $this->sgBase->getMail();\n\n try {\n $customer = $id ? $this->customerHelper->getById($id) : $this->customerHelper->getByEmail($email);\n } catch (NoSuchEntityException $e) {\n $customer = new DataObject();\n $this->log->debug('Could not load customer by id or mail.');\n }\n $quote->setCustomerEmail($email)\n ->setRemoteIp($this->sgBase->getCustomerIp());\n if ($this->sgBase->isGuest()) {\n $quote->setCustomerIsGuest(true)->setCustomerGroupId(Group::NOT_LOGGED_IN_ID);\n } elseif ($customer->getId()) {\n $this->session->setCustomerId($customer->getId())->setCustomerGroupId($customer->getGroupId());\n $quote->setCustomer($customer)->setCustomerIsGuest(false);\n } else {\n throw new ShopgateLibraryException(\n ShopgateLibraryException::UNKNOWN_ERROR_CODE,\n __('Customer with external id \"%1\" or email \"%2\" does not exist', $id, $email)->render()\n );\n }\n }", "public function storeOrder($request);", "public function save_order() {\n$customer = array(\n'nama' => $this->input->post('nama'),\n'email' => $this->input->post('email'),\n);\n// And store user information in database.\n$cust_id = $this->Shop_model->insert_customer($customer);\n\n$order = array(\n'pelanggan' => $cust_id\n);\n\n$ord_id = $this->Shop_model->insert_order($order);\n\n\nforeach ($this->cart->contents() as $item):\n$order_detail = array(\n'order_id' => $ord_id,\n'produk' => $item['id'],\n'qty' => $item['qty'],\n'harga' => $item['price']\n);\n\n// Insert product imformation with order detail, store in cart also store in database.\n\n$cust_id = $this->Shop_model->insert_order_detail($order_detail);\nendforeach;\n\n\nredirect('shop');\n\n }", "protected function save_paypal_meta_data( $order, $posted ) {\n }", "public function saveOrder()\n {\n $this->validate();\n $this->_initKlarnaCheckout(false, false);\n\n try {\n if (($merchantCheckboxMethod = $this->_helper->getCheckoutConfig('merchant_checkbox')) != -1) {\n $this->_helper->dispatchMerchantCheckboxMethod(\n $merchantCheckboxMethod, array(\n 'quote' => $this->getQuote(),\n 'klarna_quote' => $this->getKlarnaQuote(),\n 'checked' => (bool)$this->getKlarnaCheckout()->getData('merchant_requested/additional_checkbox')\n )\n );\n }\n\n $checkboxes = $this->getKlarnaCheckout()->getData('merchant_requested/additional_checkboxes');\n if (!empty($checkboxes)) {\n $this->_helper->dispatchMultipleCheckboxesEvent(\n $this->getKlarnaCheckout()->getData('merchant_requested/additional_checkboxes'),\n $this->getQuote(),\n $this->getKlarnaQuote()\n );\n }\n } catch (Mage_Core_Exception $e) {\n Mage::logException($e);\n // Don't stop order from saving just because the checkbox processing failed\n }\n\n $isNewCustomer = false;\n switch ($this->getCheckoutMethod()) {\n case self::METHOD_GUEST:\n $this->_prepareGuestQuote();\n break;\n case self::METHOD_REGISTER:\n $this->_prepareNewCustomerQuote();\n $isNewCustomer = true;\n break;\n default:\n $this->_prepareCustomerQuote();\n break;\n }\n\n Mage::dispatchEvent(\n 'kco_checkout_save_order_before', array(\n 'checkout' => $this\n )\n );\n\n /**\n * For older versions of Magento state cannot be removed as a requirement\n * for shipping which is necessary in some countries.\n *\n * This checks if the Magento version is below 1.7 and disabled address validation\n */\n if (version_compare(Mage::getVersion(), '1.7.0', '<')) {\n $this->getQuote()->getBillingAddress()->setShouldIgnoreValidation(true);\n if (!$this->getQuote()->isVirtual()) {\n $this->getQuote()->getShippingAddress()->setShouldIgnoreValidation(true);\n }\n }\n\n $service = Mage::getModel('sales/service_quote', $this->getQuote());\n $service->submitAll();\n\n if ($isNewCustomer) {\n try {\n $this->_involveNewCustomer();\n } catch (Exception $e) {\n Mage::logException($e);\n }\n }\n\n $this->_checkoutSession->setLastQuoteId($this->getQuote()->getId())\n ->setLastSuccessQuoteId($this->getQuote()->getId())\n ->clearHelperData();\n\n /** @var Mage_Sales_Model_Order $order */\n $order = $service->getOrder();\n if ($order) {\n Mage::dispatchEvent(\n 'checkout_type_kco_save_order_after', array(\n 'order' => $order,\n 'quote' => $this->getQuote()\n )\n );\n\n if ($order->getCanSendNewEmailFlag()) {\n try {\n $order->sendNewOrderEmail();\n } catch (Exception $e) {\n Mage::logException($e);\n }\n }\n\n // add order information to the session\n $this->_checkoutSession\n ->setLastOrderId($order->getId())\n ->setLastRealOrderId($order->getIncrementId());\n\n // as well a billing agreement can be created\n $agreement = $order->getPayment()->getBillingAgreement();\n if ($agreement) {\n $this->_checkoutSession->setLastBillingAgreementId($agreement->getId());\n }\n }\n\n Mage::dispatchEvent(\n 'checkout_submit_all_after',\n array('order' => $order, 'quote' => $this->getQuote(), 'recurring_profiles' => array())\n );\n\n return $order;\n }", "protected function saveInvoice (Mage_Sales_Model_Order $order)\n {\n if ($order->canInvoice()) {\n $invoice = $order->prepareInvoice();\n\n $invoice->register()->capture();\n Mage::getModel('core/resource_transaction')\n ->addObject($invoice)\n ->addObject($invoice->getOrder())\n ->save();\n return true;\n }\n\n return false;\n }", "public function saveCustomer($customer) {\n $customer->save();\n\n $customerAccount = $this->newCustomerAccount($customer->id);\n $customerAccount->save();\n\n $customer->sl_customer_account_id = $customerAccount->id;\n $customer->save();\n }", "function save_customer_details( $params ) {\n\t\textract( $params );\n\n\t\t$qry = \"UPDATE cart \".\n\t\t\t\"SET customer_id='\".$user_no.\"', \".\n\t\t\t\"recipient='\".$firstname.\" \".$lastname.\"', \".\n\t\t\t\"email='\".$email.\"', \".\n\t\t\t\"address='\".$address.\"', \".\n\t\t\t\"town='\".$city.\"', \".\n\t\t\t\"postcode='\".$postcode.\"', \".\n\t\t\t\"county='\".$country.\"' \";\n\n\t\tif( !empty( $telephone ) )\n\t\t\t$qry.=\",telephone='\".$telephone.\"' \";\n\n\t\tif( !empty( $payment_method ) )\n\t\t\t$qry.=\",payment_method='\".$payment_method.\"' \";\n\n\t\tif( !empty( $comments ) )\n\t\t\t$qry.=\",comments='\".$comments.\"' \";\n\n\t\t$qry.=\"WHERE id='\".$cart_id.\"'\";\n\n\t\treturn $this->db->query( $qry );\n\t}", "public function submitOrder(){\n try {\n $query = \"INSERT INTO `order`\n (`CustomerID`, `Date`, `Status`,`Total`) \n VALUES (?,?,'Pending',?)\"; // Create the query\n $query = $this->stmt->prepare($query);\n $date = date('Y-m-d H:i:s');\n $query->bind_param(\"ssd\",$this->customerId, $date, $this->total);\n $query->execute();\n $orderId = $query->insert_id;\n if($orderId){\n $this->orderId = $orderId; // Set the orderId property\n $this->insertItems();\n }\n $query->close();\n return $this->orderId;\n } catch (Exception $th) {\n exit($th->getMessage());\n }\n }", "public function _build_CustomerInsertObject($customer=NULL, $order=NULL){\n\t\tif(isset($order)){\n\n\t\t\t//LOAD QUOTE BILLING ADDRESS AS PRIMARY ACCOUNT ID\n\t\t\t$primaryAddress = $order->getBillingAddress();\n\n\t\t\t//CHECK IF CUSTOMER NAME IS GUEST NULL IF SO USE BILLING NAME\n\t\t\tif($order->getCustomerFirstname() != NULL){\n\t\t\t\t//CHECK AND BUILD CUSTOMER NAME - MUST LESS THEN 30 CHARS\n\t\t\t\t$custname = $order->getCustomerFirstname().' '.$order->getCustomerLastname();\n\t\t\t\tif(strlen($custname) > 30){\n\t\t\t\t\t$custname = substr($custname, 0, 30);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//LOAD BILLING NAME\n\t\t\t\t$custname = $primaryAddress->getFirstname().' '.$primaryAddress->getLastname();\n\t\t\t\tif(strlen($custname) > 30){\n\t\t\t\t\t$custname = substr($custname, 0, 30);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//FORMAT PRIMARY CUSTOMER ADDRESS LINE4-LINE5 BY COUNTRY RULES\n\t\t\tswitch($primaryAddress->getCountryId()){\n\t\t\t\tcase \"CA\":\n\t\t\t\t\t//MEASURE CITY CHARS\n\t\t\t\t\t$primaryAddressCharCount = strlen($primaryAddress->getCity());\n\t\t\t\t\t//CHECK IF COUNT IS GREATER OR EQUAL >= 27\n\t\t\t\t\tif($primaryAddressCharCount >= 27){\n\t\t\t\t\t\t$primaryAddress_city = substr($primaryAddress->getCity(), 0, 27);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$primaryAddress_city = str_pad($primaryAddress->getCity(), 27);\n\t\t\t\t\t}\n\t\t\t\t\t$primaryAddress_stateLocation = $primaryAddress->getRegionCode();\n\t\t\t\t\t$primaryAddress_line4 = $primaryAddress_city.' '.$primaryAddress->getRegionCode();\n\t\t\t\t\t$primaryAddress_line5 = strtoupper($primaryAddress->getCountryModel()->getName()).' '.$primaryAddress->getPostcode();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"US\":\n\t\t\t\t\t$primaryAddress_stateLocation = $primaryAddress->getRegionCode();\n\t\t\t\t\t$primaryAddress_line4 = $primaryAddress->getCity();\n\t\t\t\t\t$primaryAddress_line5 = $primaryAddress->getRegionCode().', '.$primaryAddress->getPostcode();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$primaryAddress_stateLocation = '';\n\t\t\t\t\t$primaryAddress_line4 = $primaryAddress->getCity().' '.($primaryAddress->getRegionCode() ?: $primaryAddress->getRegion());\n\t\t\t\t\t$primaryAddress_line5 = $primaryAddress->getPostcode();\n\t\t\t}\n\t\t\t\n\t\t\t//LOAD CURRENT STORE SAO CODE\n\t\t\t$store_sao = Mage::getStoreConfig('vistaprocessing_section/vistaprocessing_group/vistaprocessing_saocode', $order->getStoreId());\n\t\t\t\n\t\t\t$xml_data = '<CustApp>\n\t\t\t <Parameters Option=\"N\" Identifier=\"consumerweb\" PreAuth=\"Y\" DefaultMask=\"CA\" WebSiteId=\"'.$store_sao.'\"/>\n\t\t\t <Records>\n\t\t\t <Item>\n\t\t\t <IdentifierSection>\n\t\t\t <Identifier>consumerweb</Identifier>\n\t\t\t <Type/>\n\t\t\t <Suffix/>\n\t\t\t <MasterCust/>\n\t\t\t <Cust/>\n\t\t\t <AltAddressFile/>\n\t\t\t <MailCust/>\n\t\t\t <WebSiteId>'.$store_sao.'</WebSiteId>\n\t\t\t <DevToken/>\n\t\t\t </IdentifierSection>\n\t\t\t <Controls/>\n\t\t\t <Individuals>\n\t\t\t <Title/>\n\t\t\t <TitleCode/>\n\t\t\t <Initials/>\n\t\t\t <Forename/>\n\t\t\t <Surname/>\n\t\t\t <JobTitle/>\n\t\t\t <Email1><![CDATA['.$order->getCustomerEmail().']]></Email1>\n\t\t\t <Email2/>\n\t\t\t <Telephone1><![CDATA['.$primaryAddress->getTelephone().']]></Telephone1>\n\t\t\t <Telephone2/>\n\t\t\t <Telephone3/>\n\t\t\t <Fax1><![CDATA['.$primaryAddress->getFax().']]></Fax1>\n\t\t\t <AgreeToOffers/>\n\t\t\t </Individuals>\n\t\t\t <Company>\n\t\t\t <BusinessName/>\n\t\t\t </Company>\n\t\t\t <Address>\n\t\t\t <HouseName/>\n\t\t\t <HouseNumber/>\n\t\t\t <Street/>\n\t\t\t <Floor/>\n\t\t\t <LocalDistrict/>\n\t\t\t <County/>\n\t\t\t <Town/>\n\t\t\t <SpecialInfo>YYYY</SpecialInfo>\n\t\t\t <State><![CDATA['.$primaryAddress_stateLocation.']]></State>\n\t\t\t <PoBox/>\n\t\t\t <PostalCode><![CDATA['.$primaryAddress->getPostcode().']]></PostalCode>\n\t\t\t <CountryCode><![CDATA['.$primaryAddress->getCountryId().']]></CountryCode>\n\t\t\t <Country/>\n\t\t\t <Line1/>\n\t\t\t <Line2/>\n\t\t\t <Line3/>\n\t\t\t <Brick/>\n\t\t\t <AddressLevel>1</AddressLevel>\n\t\t\t </Address>\n\t\t\t <Additional/>\n\t\t\t <CusmasSection>\n\t\t\t <Name><![CDATA['.$custname.']]></Name>\n\t\t\t <AddressLine1><![CDATA['.$primaryAddress->getStreet1().']]></AddressLine1>\n\t\t\t <AddressLine2><![CDATA['.$primaryAddress->getStreet2().']]></AddressLine2>\n\t\t\t <AddressLine3><![CDATA['.$primaryAddress->getStreet3().']]></AddressLine3>\n\t\t\t <AddressLine4><![CDATA['.$primaryAddress_line4.']]></AddressLine4>\n\t\t\t <AddressLine5><![CDATA['.$primaryAddress_line5.']]></AddressLine5>\n\t\t\t <PostalCode><![CDATA['.$primaryAddress->getPostcode().']]></PostalCode>\n\t\t\t </CusmasSection>\n\t\t\t </Item>\n\t\t\t </Records>\n\t\t\t</CustApp>';\n\t\t\t$data = array('Input'=> (string) $xml_data);\n\t\t\treturn $data;\n\t\t}\n\t}", "public function saveSendQuoteAction()\n\t{\n\t\tif($this->_request-> isPost() && $this->adminLogin->userId) \n {\n\t\t\t$final_parameters=$this->_request->getParams();\n\n\t\t\t$quote_obj=new Ep_Quote_Quotes();\n\n\t\t\t//echo \"<pre>\";print_r($final_parameters);exit;\n\n\t\t\t//insert Quotes\n\t\t\t$quotes_data['title']=$this->quote_creation->create_mission['quote_title'];\n\t\t\t$quotes_data['client_id']=$this->quote_creation->create_step1['client_id'];\n\t\t\t$quotes_data['category']=$this->quote_creation->create_step1['category'];\n\t\t\tif($quotes_data['category']=='other')\n\t\t\t\t\t$quotes_data['category_other']=isodec($this->quote_creation->create_step1['category_other']);\n\t\t\tif($this->quote_creation->create_step1['client_websites'])\n\t\t\t$quotes_data['websites']=implode(\"|\",$this->quote_creation->create_step1['client_websites']);\n\t\t\t$quotes_data['quote_by']=$this->quote_creation->create_step1['quote_by'];\n\t\t\t$quotes_data['created_by']=$this->adminLogin->userId;\n\t\t\t$quotes_data['sales_suggested_price']=$this->quote_creation->select_missions['total_suggested_price'];\n\t\t\t$quotes_data['sales_suggested_currency']=$this->quote_creation->select_missions['currency'];\n\t\t\t$quotes_data['sales_comment']=$final_parameters['bo_comments'];\n\t\t\t$quotes_data['client_email_text']=$final_parameters['client_email'];\n\t\t\t//$quotes_data['documents_path']='path';\n\t\t\t$quotes_data['conversion']=$this->quote_creation->create_step1['conversion'];\n\n\t\t\t//$quotes_data['sales_delivery_time']=$final_parameters['delivery_time'];\n\t\t\t//$quotes_data['sales_delivery_time_option']=$final_parameters['delivery_option'];\n\t\t\t$quotes_data['client_know']=$final_parameters['client_know']? 'no':'yes';\n\t\t\t$quotes_data['urgent']=$final_parameters['urgent']? 'yes':'no';\n\t\t\t$quotes_data['urgent_comments']=$final_parameters['urgent_comments']?$final_parameters['urgent_comments']:NULL;\t\t\t\n\t\t\n\t\t\t/*$quotes_data['market_team_sent']=$final_parameters['market_team_sent'];\n\t\t\tif($quotes_data['market_team_sent']=='yes')\n\t\t\t\t$quotes_data['from_platform']=$final_parameters['from_platform'];*/\n\n\n\t\t\t//NEW QUOTE FILEDS \n\t\t\t$client_aims=$final_parameters['client_aims'];\n\t\t\t$quotes_data['client_aims']=implode(\",\",$client_aims);\n\n\t\t\tforeach($client_aims as $aim)\n\t\t\t{\n\t\t\t\t$client_prio[]=$final_parameters['priority_'.$aim];\n\t\t\t}\n\t\t\t$quotes_data['client_prio']=implode(\",\",$client_prio);\n\n\t\t\t$client_aims_comments=$final_parameters['client_aims_comments'];\n\t\t\t$quotes_data['client_aims_comments']=$client_aims_comments;\n\n\n\t\t\t$content_ordered_agency=$final_parameters['content_ordered_agency'];\n\t\t\t$quotes_data['content_ordered_agency']=$content_ordered_agency;\n\t\t\tif($content_ordered_agency=='yes')\n\t\t\t{\n\t\t\t\tif($final_parameters['agency']=='dont_know')\n\t\t\t\t{\n\t\t\t\t\t$quotes_data['agency']=$final_parameters['agency'];\n\t\t\t\t\t$quotes_data['agency_name']='';\n\t\t\t\t}\n\t\t\t\telseif($final_parameters['agency_name'])\n\t\t\t\t{\n\t\t\t\t\t$quotes_data['agency']='';\n\t\t\t\t\t$quotes_data['agency_name']=$final_parameters['agency_name'];\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if($content_ordered_agency=='no')\n\t\t\t{\n\t\t\t\t$quotes_data['client_internal_team']=$final_parameters['client_internal_team'];\n\t\t\t}\n\n\t\t\t$quotes_data['client_know_writers']=$final_parameters['client_know_writers'];\n\n\t\t\t$volume_option=$final_parameters['volume_option'];\n\t\t\t$quotes_data['volume_option']=$volume_option;\n\t\t\tif($volume_option=='per')\n\t\t\t{\n\t\t\t\t$quotes_data['volume_option_multi']=$final_parameters['volume_option_multi'];\n\t\t\t}\n\t\t\telse if($volume_option=='every')\n\t\t\t{\n\t\t\t\t$quotes_data['volume_option_multi']=$final_parameters['volume_option_multi_every'];\n\t\t\t\t$quotes_data['volume_every']=$final_parameters['volume_every'];\n\t\t\t}\n\n\t\t\t$budget_marketing=$final_parameters['budget_marketing'];\n\t\t\tif($budget_marketing=='dont_know')\n\t\t\t{\n\t\t\t\t$quotes_data['budget_marketing']=$budget_marketing;\n\t\t\t\t$quotes_data['budget']='';\n\t\t\t\t$quotes_data['budget_currency']='';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$quotes_data['budget_marketing']='';\n\t\t\t\t$quotes_data['budget']=$final_parameters['budget'];\n\t\t\t\t$quotes_data['budget_currency']=$final_parameters['budget_currency'];\n\t\t\t}\n\n\n\t\t\t$quotes_data['estimate_sign_percentage']=$final_parameters['estimate_sign_percentage'];\n\t\t\t$quotes_data['estimate_sign_date']=$final_parameters['estimate_sign_date'];\n\t\t\t$quotes_data['estimate_sign_comments']=$final_parameters['estimate_sign_comments'];\n\n\t\t\t//echo \"<pre>\";print_r($quotes_data);exit;\n\n\t\t\t//Quote current version\n\t\t\tif($this->quote_creation->custom['version'])\n\t\t\t{\n\t\t\t\t$version=$this->quote_creation->custom['version'];\n\t\t\t}\n\t\t\telse\n\t\t\t\t$version=1;\n\t\t\t$quotes_data['version']=$version;\n\n\t\t\t//Getting Quote details if quote id available\n\t\t\t$quoteIdentifier=$this->quote_creation->custom['quote_id'];\n\t\t\tif($quoteIdentifier)\n\t\t\t{\n\t\t\t\t$quoteEditDetails=$quote_obj->getQuoteDetails($quoteIdentifier);\n\t\t\t\t$sales_review_staus=$quoteEditDetails[0]['sales_review'];\n\t\t\t}\n\t\t\t\n\n\t\t\t//check manager is on holiday or not\n\t\t\t$salesManager_holiday=$this->configval[\"sales_manager_holiday\"];\n\t\t\t$user_type=$this->adminLogin->type;\n\n\t\t\t\n\t\t\t//Staus of tech,seo,prod and sales\n\t\t\tif($this->quote_creation->custom['action']=='edit' && $this->quote_creation->custom['create_new_version']=='yes')//new version quote\n\t\t\t{\n\t\t\t\tif(isset($final_parameters['send_low_quote']) OR isset($final_parameters['send_big_quote']) )\n\t\t\t\t{\n\t\t\t\t\t$quotes_data['quote_send_team']=$final_parameters['quote_send_team'];\n\n\t\t\t\t\tif(($final_parameters['quote_send_team']=='send_sales_team'))\n\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t$quotes_data[\"sales_validation_expires\"]=time()+($this->configval['sales_validation_timeline']*60*60);\n\t\t\t\t\t\t$quotes_data['skip_prod_comments']=$final_parameters['skip_prod_comments'] ? $final_parameters['skip_prod_comments']:NULL;\n\t\t\t\t\t\t$prod_hours=$this->configval['sales_validation_timeline'];\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t$onlySales=true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(($final_parameters['quote_send_team']=='send_tech_prod_team') || ($final_parameters['quote_send_team']=='send_tech_team'))\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$quotes_data['tec_review']='not_done';\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\n\n\t\t\t\t\t\t\t$quotes_data['tech_timeline']=NULL;\n\t\t\t\t\t\t\t$quotes_data['tech_challenge_comments']='';\n\t\t\t\t\t\t\t$quotes_data['tech_challenge']='yes';\n\n\t\t\t\t\t\t\tif($final_parameters['quote_send_team']=='send_tech_prod_team')\n\t\t\t\t\t\t\t{//if tech & prod\n\t\t\t\t\t\t\t\t$quotes_data['prod_review']='challenged';\t\n\t\t\t\t\t\t\t\t$quotes_data[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(($final_parameters['quote_send_team']=='send_seo_prod_team') || ($final_parameters['quote_send_team']=='send_seo_team'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$quotes_data['seo_review']='not_done';\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\n\n\t\t\t\t\t\t\t$quotes_data['seo_timeline']=NULL;\n\t\t\t\t\t\t\t$quotes_data['seo_comments']='';\n\t\t\t\t\t\t\t$quotes_data['seo_challenge']='yes';\n\n\t\t\t\t\t\t\tif($final_parameters['quote_send_team']=='send_seo_prod_team')\n\t\t\t\t\t\t\t{//if seo & prod\n\t\t\t\t\t\t\t\t$quotes_data['prod_review']='challenged';\n\t\t\t\t\t\t\t\t$quotes_data[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\t\t\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(($final_parameters['quote_send_team']=='send_tech_seo_team'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$quotes_data['tec_review']='not_done';\t\n\t\t\t\t\t\t\t$quotes_data['seo_review']='not_done';\n\n\t\t\t\t\t\t\t$quotes_data['seo_timeline']=NULL;\n\t\t\t\t\t\t\t$quotes_data['seo_comments']='';\n\t\t\t\t\t\t\t$quotes_data['seo_challenge']='yes';\n\n\t\t\t\t\t\t\t$quotes_data['tech_timeline']=NULL;\n\t\t\t\t\t\t\t$quotes_data['tech_challenge_comments']='';\n\t\t\t\t\t\t\t$quotes_data['tech_challenge']='yes';\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(($final_parameters['quote_send_team']=='send_prod_team'))\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$quotes_data['prod_review']='challenged';\n\t\t\t\t\t\t\t$quotes_data[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\t\t\t\t\n\t\t\t\t\t\t\t$onlyProd=true;\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$quotes_data['tec_review']='not_done';\t\n\t\t\t\t\t\t\t$quotes_data['seo_review']='not_done';\n\t\t\t\t\t\t\t$quotes_data['prod_review']='challenged';\n\t\t\t\t\t\t\t$quotes_data[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\t\n\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$quotes_data[\"response_time\"]=time()+($this->configval['quote_sent_timeline']*60*60);\n\t\t\t\t\t\t$prod_hours=($this->configval['prod_timeline']+$this->configval['sales_validation_timeline']);\n\t\t\t\t\t\t$quotes_data['skip_prod_comments']='';\n\t\t\t\t\t}\t\n\t\t\t\t\t\n\t\t\t\t\t$quote_end_hours=$this->configval['quote_end_time'];\n\t\t\t\t\t$quotes_data['quote_delivery_hours']=($prod_hours+$tech_seo_time+$quote_end_hours);\n\n\t\t\t\t\t//echo \"<pre>\";print_r($final_parameters);print_r($quotes_data);exit;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\telseif($this->quote_creation->custom['action']=='edit' && !$this->quote_creation->custom['create_new_version'] && $sales_review_staus!='to_be_approve') //quote edit\n\t\t\t{\n\t\t\t\tif(isset($final_parameters['send_low_quote']) OR isset($final_parameters['send_big_quote']) )\n\t\t\t\t{\n\t\t\t\t\t//$quotes_data['quote_send_team']=$final_parameters['quote_send_team'];\n\t\t\t\t\t\n\t\t\t\t\t$oldTechReview=$quoteEditDetails[0]['tec_review'];\n\t\t\t\t\t$oldSeoReview=$quoteEditDetails[0]['seo_review'];\n\t\t\t\t\t$oldProdReview=$quoteEditDetails[0]['prod_review'];\n\t\t\t\t\t$oldSalesReview=$quoteEditDetails[0]['sales_review'];\n\n\t\t\t\t\tif(($final_parameters['quote_send_team']=='send_sales_team'))\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$quotes_data[\"sales_validation_expires\"]=time()+($this->configval['sales_validation_timeline']*60*60);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(($final_parameters['quote_send_team']=='send_tech_prod_team') || ($final_parameters['quote_send_team']=='send_tech_team'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//restart tech review \n\t\t\t\t\t\t\tif($oldTechReview=='auto_skipped' || $oldTechReview=='skipped' || $oldTechReview=='not_done')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['tec_review']='not_done';\n\t\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif($oldTechReview=='challenged' || $oldTechReview=='validated')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['tec_review']='challenged';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($final_parameters['quote_send_team']=='send_tech_prod_team')\n\t\t\t\t\t\t\t{//if tech & prod\n\t\t\t\t\t\t\t\t$quotes_data['prod_review']='challenged';\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$quotes_data[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(($final_parameters['quote_send_team']=='send_seo_prod_team') || ($final_parameters['quote_send_team']=='send_seo_team'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//restart seo review \n\t\t\t\t\t\t\tif($oldSeoReview=='auto_skipped' || $oldSeoReview=='skipped' || $oldSeoReview=='not_done')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['seo_review']='not_done';\n\t\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif($oldSeoReview=='challenged' || $oldSeoReview=='validated')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['seo_review']='challenged';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($final_parameters['quote_send_team']=='send_seo_prod_team')\n\t\t\t\t\t\t\t{//if seo & prod\n\t\t\t\t\t\t\t\t$quotes_data['prod_review']='challenged';\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$quotes_data[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\t\t\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(($final_parameters['quote_send_team']=='send_tech_seo_team'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//restart seo/tech review\n\t\t\t\t\t\t\t//restart tech review \n\t\t\t\t\t\t\tif($oldTechReview=='auto_skipped' || $oldTechReview=='skipped' || $oldTechReview=='not_done')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['tec_review']='not_done';\n\t\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif($oldTechReview=='challenged' || $oldTechReview=='validated')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['tec_review']='challenged';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//restart seo review \n\t\t\t\t\t\t\tif($oldSeoReview=='auto_skipped' || $oldSeoReview=='skipped' || $oldSeoReview=='not_done')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['seo_review']='not_done';\n\t\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif($oldSeoReview=='challenged' || $oldSeoReview=='validated')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['seo_review']='challenged';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(($final_parameters['quote_send_team']=='send_prod_team'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//restart prod_review\n\t\t\t\t\t\t\tif($oldProdReview=='validated' || $oldProdReview=='auto_skipped' || $oldProdReview=='challenged' )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['prod_review']='challenged';\n\t\t\t\t\t\t\t\t$quotes_data[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(($final_parameters['quote_send_team']=='send_all_team'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//restart tech review \n\t\t\t\t\t\t\tif($oldTechReview=='auto_skipped' || $oldTechReview=='skipped' || $oldTechReview=='not_done')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['tec_review']='not_done';\n\t\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif($oldTechReview=='challenged' || $oldTechReview=='validated')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['tec_review']='challenged';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//restart seo review \n\t\t\t\t\t\t\tif($oldSeoReview=='auto_skipped' || $oldSeoReview=='skipped' || $oldSeoReview=='not_done')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['seo_review']='not_done';\n\t\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif($oldSeoReview=='challenged' || $oldSeoReview=='validated')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['seo_review']='challenged';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//restart prod_review\n\t\t\t\t\t\t\tif($oldProdReview=='validated' || $oldProdReview=='auto_skipped' || $oldProdReview=='challenged' )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quotes_data['prod_review']='challenged';\n\t\t\t\t\t\t\t\t$quotes_data[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tif($tech_seo_time)\n\t\t\t\t\t\t$quotes_data[\"response_time\"]=time()+($tech_seo_time*60*60);\n\t\t\t\t\t//echo \"<pre>\";print_r($quotes_data);exit;\n\t\t\t\t\t$edited=TRUE;\n\t\t\t\t}\t\n\t\t\t}\n\t\t\telse//quote creation v1\n\t\t\t{\n\t\t\t\tif(isset($final_parameters['send_low_quote']) OR isset($final_parameters['send_big_quote']) )\n\t\t\t\t{\n\t\t\t\t\t$quotes_data['quote_send_team']=$final_parameters['quote_send_team'];\n\n\t\t\t\t\tif(($final_parameters['quote_send_team']=='send_sales_team')&&isset($final_parameters['send_low_quote']))\n\t\t\t\t\t{\n\t\t\t\t\t\t$quotes_data['tec_review']='auto_skipped';\t\n\t\t\t\t\t\t$quotes_data['seo_review']='auto_skipped';\n\t\t\t\t\t\t$quotes_data['prod_review']='auto_skipped';\n\n\t\t\t\t\t\t$onlySales=true;\n\t\t\t\t\t\t$quotes_data[\"sales_validation_expires\"]=time()+($this->configval['sales_validation_timeline']*60*60);\n\t\t\t\t\t\t$quotes_data['skip_prod_comments']=$final_parameters['skip_prod_comments']?$final_parameters['skip_prod_comments']:NULL;\n\t\t\t\t\t\t$prod_hours=$this->configval['sales_validation_timeline'];\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t\tif(($final_parameters['quote_send_team']=='send_tech_team'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$quotes_data['tec_review']='not_done';\t\n\t\t\t\t\t\t\t$quotes_data['seo_review']='auto_skipped';\n\t\t\t\t\t\t\t$quotes_data['prod_review']='auto_skipped';\n\n\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(($final_parameters['quote_send_team']=='send_seo_team'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$quotes_data['tec_review']='auto_skipped';\t\n\t\t\t\t\t\t\t$quotes_data['seo_review']='not_done';\n\t\t\t\t\t\t\t$quotes_data['prod_review']='auto_skipped';\n\n\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(($final_parameters['quote_send_team']=='send_tech_seo_team'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$quotes_data['tec_review']='not_done';\t\n\t\t\t\t\t\t\t$quotes_data['seo_review']='not_done';\n\t\t\t\t\t\t\t$quotes_data['prod_review']='auto_skipped';\n\n\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(($final_parameters['quote_send_team']=='send_tech_prod_team'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$quotes_data['tec_review']='not_done';\t\n\t\t\t\t\t\t\t$quotes_data['seo_review']='auto_skipped';\n\t\t\t\t\t\t\t$quotes_data['prod_review']='challenged';\n\t\t\t\t\t\t\t$quotes_data[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\t\t\n\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(($final_parameters['quote_send_team']=='send_seo_prod_team'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$quotes_data['tec_review']='auto_skipped';\t\n\t\t\t\t\t\t\t$quotes_data['seo_review']='not_done';\n\t\t\t\t\t\t\t$quotes_data['prod_review']='challenged';\n\t\t\t\t\t\t\t$quotes_data[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\t\t\n\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(($final_parameters['quote_send_team']=='send_prod_team'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$quotes_data['tec_review']='auto_skipped';\t\n\t\t\t\t\t\t\t$quotes_data['seo_review']='auto_skipped';\n\t\t\t\t\t\t\t$quotes_data['prod_review']='challenged';\n\n\t\t\t\t\t\t\t$quotes_data[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\t\t\t\t\n\t\t\t\t\t\t\t$onlyProd=true;\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$quotes_data['tec_review']='not_done';\t\n\t\t\t\t\t\t\t$quotes_data['seo_review']='not_done';\n\t\t\t\t\t\t\t$quotes_data['prod_review']='challenged';\n\t\t\t\t\t\t\t$quotes_data[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\t\t\n\t\t\t\t\t\t\t$tech_seo_time=$this->configval['quote_sent_timeline'];\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$quotes_data[\"response_time\"]=time()+($this->configval['quote_sent_timeline']*60*60);\n\t\t\t\t\t\t$prod_hours=($this->configval['prod_timeline']+$this->configval['sales_validation_timeline']);\n\t\t\t\t\t}\t\n\t\t\t\t\t$quote_end_hours=$this->configval['quote_end_time'];\n\t\t\t\t\t$quotes_data['quote_delivery_hours']=($prod_hours+$tech_seo_time+$quote_end_hours);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//quote to be approved if created by sales user when sales manager is available\n\t\t\t\tif(($salesManager_holiday=='no' && $user_type=='salesuser' && $quotes_data['sales_suggested_price']>=5000) || ($this->quote_creation->create_mission['producttypeautre']==TRUE && $user_type=='salesuser'))\n\t\t\t\t{\n\t\t\t\t\t$quotes_data['sales_review']='to_be_approve';\n\t\t\t\t\t$send_manager_email=TRUE;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$quotes_data['sales_review']='not_done';\n\t\t\t\t\t$send_manager_email=FALSE;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\t//echo \"<pre>\";print_r($quotes_data);exit;\n\n\n\t\t\t//versioning when edited validated quote\n\t\t\tif($this->quote_creation->custom['action']=='edit' && $this->quote_creation->custom['create_new_version']=='yes')\n\t\t\t{\n\t\t\t\t//Insert this quote in to Quote version table\n\t\t\t\t$quoteIdentifier=$this->quote_creation->custom['quote_id'];\n\t\t\t\t\n\t\t\t\tif($quoteIdentifier)\n\t\t\t\t{\n\t\t\t\t\t$quote_obj->insertQuoteVersion($quoteIdentifier);\n\t\t\t\t\t\n\t\t\t\t\t//versioning Tech missions\n\t\t\t\t\t$techMissionObj=new Ep_Quote_TechMissions();\n\t\t\t\t\t$techParams['quote_id']=$quoteIdentifier;\n\t\t\t\t\t$techMissionsDetails=$techMissionObj->getTechMissionDetails($techParams);\n\t\t\t\t\tif($techMissionsDetails)\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach($techMissionsDetails as $techMission)\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$techMissionId=$techMission['identifier'];\n\t\t\t\t\t\t\t$techMissionObj->insertMissionVersion($techMissionId);\n\n\t\t\t\t\t\t\t//update tech version\n\t\t\t\t\t\t\t$update_tech['version']=$version;\n\t\t\t\t\t\t\t$techMissionObj->updateTechMission($update_tech,$techMissionId);\n\t\t\t\t\t\t\t//if($quotes_data['tec_review']=='auto_skipped')\n\t\t\t\t\t\t\t\t//$techMissionObj->deleteTechMission($techMissionId);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\n\t\t\t\t\t//versioning SEO missions\n\t\t\t\t\t$seoParameters['quote_id']=$quoteIdentifier;\n\t\t\t\t\t$seoParameters['misson_user_type']='seo';\n\t\t\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t\t\t$seoMissionDetails=$quoteMission_obj->getMissionDetails($seoParameters);\n\t\t\t\t\tif($seoMissionDetails)\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach($seoMissionDetails as $seoMission)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$seoMissionId=$seoMission['identifier'];\n\t\t\t\t\t\t\t$quoteMission_obj->insertMissionVersion($seoMissionId);\t\n\n\t\t\t\t\t\t\t//update seo mission version\n\t\t\t\t\t\t\t$update_seo['version']=$version;\n\t\t\t\t\t\t\t$quoteMission_obj->updateQuoteMission($update_seo,$seoMissionId);\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t//versioning Prod Missions\n\t\t\t\t\t\t\t$prodObj=new Ep_Quote_ProdMissions();\n\t\t\t\t\t\t\t$prodParams['quote_mission_id']=$seoMissionId;\n\t\t\t\t\t\t\t$prodMissionDetails=$prodObj->getProdMissionDetails($prodParams);\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\tforeach($prodMissionDetails as $prodMission)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$prodMissionId=$prodMission['identifier'];\n\t\t\t\t\t\t\t\t\t$prodObj->insertMissionVersion($prodMissionId);\n\n\t\t\t\t\t\t\t\t\t//update prod mission version\n\t\t\t\t\t\t\t\t\t$update_prod['version']=$version;\n\t\t\t\t\t\t\t\t\t$prodObj->updateProdMission($update_prod,$prodMissionId);\n\n\t\t\t\t\t\t\t\t\t//deleting prod mission from Prodmissions after insert into prod versioning\n\t\t\t\t\t\t\t\t\t//$prodObj->deleteProdMission($prodMissionId);\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//deleting seo mission from quote missions after insert into versioning\n\t\t\t\t\t\t\t//if($quotes_data['seo_review']=='auto_skipped')\n\t\t\t\t\t\t\t//\t$quoteMission_obj->deleteQuoteMission($seoMissionId);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\t}\t\n\n\n\t\t\t\t$quotes_data['sales_review']='not_done';\t\t\t\t\n\t\t\t\t$quotes_data['sales_margin_percentage']=0;\t\t\t\t\n\t\t\t\t//$quotes_data['techmissions_assigned']='';\t\n\t\t\t\t$quotes_data['created_at']=date(\"Y-m-d H:i:s\");\t\n\t\t\t\t$quotes_data['updated_at']=NULL;\n\t\t\t\t\n\t\t\t\t$quotes_data['final_turnover']=0;\n\t\t\t\t$quotes_data['final_margin']=0;\n\t\t\t\t$quotes_data['final_mission_length']=0;\n\n\t\t\t\t$quotes_data['closed_comments']='';\n\t\t\t\t//$quotes_data['prod_timeline']=0;\n\t\t\t\t$quotes_data['signed_comments']=NULL;\n\t\t\t\t$quotes_data['signed_at']=NULL;\n\t\t\t\t$quotes_data['sign_expire_timeline']=NULL;\n\t\t\t\t$quotes_data['closed_reason']=NULL;\t\t\t\t\n\t\t\t\t$quotes_data['boot_customer']=NULL;\n\n\t\t\t}\n\t\t\n\t\t\t//echo \"<pre>\";;print_r($this->quote_creation->custom);print_r($quotes_data);exit;\n\t\t\t//echo \"<pre>\";print_r($this->quote_creation->create_mission['quote_missions']);print_r($quotes_data);exit;\n\n\t\t\ttry\n\t\t\t{ \t\n\t\t\t\tif($this->quote_creation->custom['quote_id'])\n\t\t\t\t{\t\n\t\t\t\t\tif(!$this->quote_creation->custom['create_new_version'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$quotes_data['updated_at']=date(\"Y-m-d H:i:s\");\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$quoteIdentifier=$this->quote_creation->custom['quote_id'];\n\t\t\t\t\t\n\t\t\t\t\t$quote_obj->updateQuote($quotes_data,$quoteIdentifier);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\t\t\t\n\t\t\t\t\tif(!$this->quote_creation->custom['create_new_version'])\n\t\t\t\t\t\t$quotes_data['created_at']=date(\"Y-m-d H:i:s\");\n\t\t\t\t\t\n\t\t\t\t\t$quote_obj->insertQuote($quotes_data);\n\t\t\t\t\t$quoteIdentifier=$quote_obj->getIdentifier();\t\n\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(count($_FILES['quote_documents']['name'])>0)\t\n\t\t\t\t{\n\t\t\t\t\t$update = false;\n\t\t\t\t\t$documents_path=array();\n\t\t\t\t\t$documents_name=array();\n\t\t\t\t\tforeach($_FILES['quote_documents']['name'] as $index=>$quote_files)\n\t\t\t\t\t{\n\t\t\t\t\t\tif($_FILES['quote_documents']['name'][$index]):\n\t\t\t\t\t\t//upload quote documents\n\t\t\t\t\t\n\t\t\t\t\t\t$quoteDir=$this->quote_documents_path.$quoteIdentifier.\"/\";\n\t\t if(!is_dir($quoteDir))\n\t\t mkdir($quoteDir,TRUE);\n\t\t chmod($quoteDir,0777);\n\t\t $document_name=frenchCharsToEnglish($_FILES['quote_documents']['name'][$index]);\n\t\t\t\t\t\t$pathinfo = pathinfo($document_name);\n\t\t\t\t\t\t$document_name =$pathinfo['filename'].rand(100,1000).\".\".$pathinfo['extension'];\n\t\t $document_name=str_replace(' ','_',$document_name);\n\t\t $document_path=$quoteDir.$document_name;\n\t\t if (move_uploaded_file($_FILES['quote_documents']['tmp_name'][$index], $document_path))\n\t\t chmod($document_path,0777);\n\t\n\t\t\t\t\t\t\t$update = true;\n\t\t $documents_path[]=$quoteIdentifier.\"/\".$document_name;\n\t\t $documents_name[]= str_replace('|',\"_\",$final_parameters['document_name'][$index]);\n\n\t\t\t\t\t\tendif;\n\n\t\t\t\t\t}\n\t\t\t\t\tif($update)\n\t\t\t\t\t{\n\t\t\t\t\t\t $quotes_update_data = array();\n\t\t\t\t\t\t $quoteDetails=$quote_obj->getQuoteDetails($quoteIdentifier);\n\t\t\t\t\t\t $uploaded_documents1 = explode(\"|\",$quoteDetails[0]['documents_path']);\n\t\t\t\t\t\t $documents_path =array_merge($documents_path,$uploaded_documents1);\n\t\t\t\t\t\t $quotes_update_data['documents_path']=implode(\"|\",$documents_path);\n\t\t\t\t\t\t $document_names =explode(\"|\",$quoteDetails[0]['documents_name']);\n\t\t\t\t\t\t $documents_name =array_merge($documents_name,$document_names);\n\t\t\t\t\t\t $quotes_update_data['documents_name']=implode(\"|\",$documents_name);\n\t\t\t\t\t\t $quote_obj->updateQuote($quotes_update_data,$quoteIdentifier);\n\t\t\t\t\t}\n\t\t\t\t\t//echo \"<pre>\";print_r($quotes_update_data);print_r($documents_name);exit;\n\t \n\t }\n \n\t\t\t\t//Quote missions insertion\n\t\t\t\tif(count($this->quote_creation->create_mission['quote_missions'])>0)\n\t\t\t\t{\n\t\t\t\t\t$sales_margin_percentage=0;\n\t\t\t\t\t$margin=0;\n\t\t\t\t\t//echo \"<pre>\";print_r($this->quote_creation->create_mission['quote_missions']);exit;\n\t\t\t\t\tforeach($this->quote_creation->create_mission['quote_missions'] as $qkey=>$quoteMission)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t\t\t\t\n\t\t\t\t\t\t$quoteMission_data['quote_id']=$quoteIdentifier;\n\t\t\t\t\t\t$quoteMission_data['product']=$quoteMission['product'];\n\t\t\t\t\t\t$quoteMission_data['product_type']=$quoteMission['producttype'];\n\t\t\t\t\t\tif($quoteMission['producttype']=='autre')\n\t\t\t\t\t\t\t$quoteMission_data['product_type_other']=$quoteMission['producttypeother'];\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$quoteMission_data['product_type_other']=NULL;\n\n\n\t\t\t\t\t\t$quoteMission_data['category']=$this->quote_creation->create_step1['category'];\n\t\t\t\t\t\tif($quoteMission['product']=='translation')\n\t\t\t\t\t\t\t$quoteMission_data['language_dest']=$quoteMission['languagedest'];\n\t\t\t\t\t\tif($quoteMission['product']!='auture')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$quoteMission_data['language_source']=$quoteMission['language'];\n\t\t\t\t\t\t\t$quoteMission_data['nb_words']=$quoteMission['nb_words'];\n\t\t\t\t\t\t\t$quoteMission_data['volume']=$quoteMission['volume'];\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t$quoteMission_data['comments']=$quoteMission['comments'];\n\t\t\t\t\t\t$quoteMission_data['misson_user_type']='sales';\n\t\t\t\t\t\t$quoteMission_data['created_by']=$this->quote_creation->create_step1['quote_by'];\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*added w.r.t tempo*/\n\t\t\t\t\t\t$quoteMission_data['mission_length']=$quoteMission['mission_length'];\n\t\t\t\t\t\t$quoteMission_data['mission_length_option']=$quoteMission['mission_length_option'];\t\t\t\t\t\t\n\t\t\t\t\t\t$quoteMission_data['volume_max']=$quoteMission['volume_max'];\n\t\t\t\t\t\t$quoteMission_data['delivery_volume_option']=$quoteMission['delivery_volume_option'];\n\t\t\t\t\t\t$quoteMission_data['tempo']=$quoteMission['tempo'];\n\t\t\t\t\t\t$quoteMission_data['tempo_length']=$quoteMission['tempo_length'];\n\t\t\t\t\t\t$quoteMission_data['tempo_length_option']=$quoteMission['tempo_length_option'];\n\t\t\t\t\t\t$quoteMission_data['oneshot']=$quoteMission['oneshot'];\n\t\t\t\t\t\t$quoteMission_data['demande_client']=$quoteMission['demande_client'];\n\t\t\t\t\t\t$quoteMission_data['duration_dont_know']=$quoteMission['duration_dont_know'];\n\t\t\t\t\t\t\n\t\t\t\t\t\t$suggested_missions=array();\n\n\t\t\t\t\t\tif(count($quoteMission['missionDetails'])>0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tforeach($quoteMission['missionDetails'] as $missions_archived)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//if(in_array($missions_archived['id'],$this->quote_creation->select_missions['missions_selected']))\n\t\t\t\t\t\t\t\tif($missions_archived['id']==$this->quote_creation->select_missions['missions_selected'][$qkey])\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$suggested_missions[]=$missions_archived['id'];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$quoteMission_data['sales_suggested_missions']=implode(\",\",$suggested_missions);\n\n\t\t\t\t\t\t$archmission_obj=new Ep_Quote_Mission();\n\t\t\t\t\t\t$archParameters['mission_id']=$quoteMission_data['sales_suggested_missions'];\n\t\t\t\t\t\t$suggested_mission_details=$archmission_obj->getMissionDetails($archParameters);\n\n\t\t\t\t\t\t//echo $quoteMission_data['sales_suggested_missions'].\"<pre>\";print_r($suggested_mission_details);exit;\n\t\t\t\t\t\tif($suggested_mission_details)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t/* $quoteMission_data['mission_length']=$suggested_mission_details[0]['mission_length'];\n\t\t\t\t\t\t\t$quoteMission_data['mission_length_option']='days';\n\t\t\t\t\t\t\t$quoteMission_data['unit_price']=($suggested_mission_details[0]['selling_price']); */\n\t\t\t\t\t\t\t$quoteMission_data['unit_price']=$this->quote_creation->select_missions['single_article_price'][$qkey];\n\t\t\t\t\t\t\t$quoteMission_data['margin_percentage']=$suggested_mission_details[0]['margin_before_signature'];\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\tif($quotes_data['prod_review']=='auto_skipped' || $quotes_data['sales_suggested_price']<=5000) //added w.r.t low quote direct validation\n\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$nb_words=($quoteMission['nb_words']/$suggested_mission_details[0]['article_length']);\n\t\t\t\t\t\t\t\t$redactionCost=$nb_words*($suggested_mission_details[0]['writing_cost_before_signature']);\n\t\t\t\t\t\t\t\t$correctionCost=$nb_words*($suggested_mission_details[0]['correction_cost_before_signature']);\n\t\t\t\t\t\t\t\t$otherCost=$nb_words*($suggested_mission_details[0]['other_cost_before_signature']);\n\n\t\t\t\t\t\t\t\t$internalcost=($redactionCost+$correctionCost+$otherCost);\n\t\t\t\t\t\t\t\t$internalcost=number_format($internalcost,2,'.','');\n\n\t\t\t\t\t\t\t\t$quoteMission_data['internal_cost']=$internalcost;//$quoteMission_data['unit_price'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$quoteMission_data['version']=$version;\n\n\t\t\t\t\t\t//versioning quote missions\n\t\t\t\t\t\tif($this->quote_creation->custom['action']=='edit' && $this->quote_creation->custom['create_new_version']=='yes')\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t//Insert this mission in to QuoteMissionsversions table\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($quoteMission['identifier'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$quoteMission_obj->insertMissionVersion($quoteMission['identifier']);\n\n\t\t\t\t\t\t\t\t//versioning Prod Missions\n\t\t\t\t\t\t\t\t$prodObj=new Ep_Quote_ProdMissions();\n\t\t\t\t\t\t\t\t$prodParams['quote_mission_id']=$quoteMission['identifier'];\n\t\t\t\t\t\t\t\t$prodMissionDetails=$prodObj->getProdMissionDetails($prodParams);\n\t\t\t\t\t\t\t\tif($prodMissionDetails)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tforeach($prodMissionDetails as $prodMission)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$prodMissionId=$prodMission['identifier'];\n\t\t\t\t\t\t\t\t\t\t$prodObj->insertMissionVersion($prodMissionId);\n\n\t\t\t\t\t\t\t\t\t\t//deleting prod mission from Prodmissions after insert into prod versioning\n\t\t\t\t\t\t\t\t\t\t//$prodObj->deleteProdMission($prodMissionId);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$quoteMission_data['cost']=0;\n\t\t\t\t\t\t\t$quoteMission_data['created_at']=date(\"Y-m-d H:i:s\");\t\n\t\t\t\t\t\t\t$quoteMission_data['updated_at']=NULL;\t\n\t\t\t\t\t\t\t//if($quotes_data['prod_review']!='auto_skipped')\n\t\t\t\t\t\t\t\t//$quoteMission_data['internal_cost']=0;\t\n\t\t\t\t\t\t\t$quoteMission_data['turnover']=0;\n\t\t\t\t\t\t\t$quoteMission_data['include_final']='yes';\t\t\t\n\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\n\n\n\t\t\t\t\t\t//echo \"<pre>\";print_r($quoteMission_data);\n\t\t\t\t\t\tif($quoteMission['identifier'])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(!$this->quote_creation->custom['create_new_version'])\n\t\t\t\t\t\t\t\t$quoteMission_data['updated_at']=date(\"Y-m-d H:i:s\");\n\t\t\t\t\t\t\t$quoteMission_obj->updateQuoteMission($quoteMission_data,$quoteMission['identifier']);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(!$this->quote_creation->custom['create_new_version'])\n\t\t\t\t\t\t\t\t$quoteMission_data['created_at']=date(\"Y-m-d H:i:s\");\n\t\t\t\t\t\t\t$quoteMission_obj->insertQuoteMission($quoteMission_data);\n\n\t\t\t\t\t\t\t//updating prod status if new mission added in edit mode\n\t\t\t\t\t\t\tif(!$this->quote_creation->custom['create_new_version'] && $this->quote_creation->custom['action']=='edit')\n\t\t\t\t\t\t\t\t$newmissionAdded=TRUE;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t//quote sales margin;\n\t\t\t\t\t\t$sales_margin_percentage+=$quoteMission_data['margin_percentage'];\n\t\t\t\t\t\t$margin++;\n\t\t\t\t\t}\n\t\t\t\t\t//updating sales margin in Quote table\n\t\t\t\t\t$avg_sales_margin_percentage=($sales_margin_percentage/$margin);\n\t\t\t\t\t$margin_data['sales_margin_percentage']=round($avg_sales_margin_percentage,2);\t\t\t\t\t\n\t\t\t\t\t//echo $quoteIdentifier;echo \"<pre>\";print_r($margin_data);exit;\n\t\t\t\t\t$quote_obj->updateQuote($margin_data,$quoteIdentifier);\n\n\t\t\t\t}\n\t\t\t\t\t//Insert Quote log\n\n\t\t\t\t\t$log_params['quote_id']\t= $quoteIdentifier;\n\t\t\t\t\t$log_params['bo_user']\t= $this->adminLogin->userId;\n\t\t\t\t\t$log_params['quote_size']=$quotes_data['sales_suggested_price'] < 5000 ? \"small\" :\"big\";\n\t\t\t\t\t$log_params['urgent']\t= $final_parameters['urgent']? 'urgent':'';\n\t\t\t\t\t$log_params['version']\t= $version;\t\t\t\t\t\n\t\t\t\t\t$log_params['created_date']\t= date(\"Y-m-d H:i:s\");\n\n\t\t\t\t\t$log_obj=new Ep_Quote_QuotesLog();\n\t\t\t\t\tif($edited || $sales_review_staus=='to_be_approve')\n\t\t\t\t\t{\n\t\t\t\t\t\t$log_params['action']\t= 'quote_updated';\n\t\t\t\t\t\t$actionId=9;\n\n\t\t\t\t\t\tif($final_parameters['quote_updated_comments'])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$log_params['comments']=$final_parameters['quote_updated_comments'];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$log_params['action']\t= 'quote_created';\n\t\t\t\t\t\t$actionId=1;\t\n\n\t\t\t\t\t\tif($final_parameters['bo_comments'])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$log_params['comments']=$final_parameters['bo_comments'];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$log_obj->insertLog($actionId,$log_params);\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//echo \"<pre>\";print_r($log_params);exit;\n\n\t\t\t}\n\t\t\tcatch(Zend_Exception $e)\n {\n echo $e->getMessage();exit; \n\n }\n\n\n //sending intimation emails when quote edited\n $update_comments= $final_parameters['quote_updated_comments'];\n if($edited && $update_comments)\n\t\t\t{\n\t\t\t\t$bo_user_type='sales';\t\t\t\t\n\t\t\t\t$this->sendIntimationEmail($quoteIdentifier,$bo_user_type,$update_comments,$newmissionAdded);\n\t\t\t\t//exit;\n\t\t\t}\t\n\n\t\t\t //send email to impacted challengers when quote updated or new version created\n\t\t\t if($edited OR $this->quote_creation->custom['create_new_version'])\n\t\t\t {\t\t\t\t\n\t\t\t\tif($edited)\n\t\t\t\t{\n\t\t\t\t\t$iemail_id=172;\n\t\t\t\t\t$imail_parameters['followup_link']='/quote/quote-followup?quote_id='.$quoteIdentifier.\"&submenuId=ML13-SL2\";\n\t\t\t\t}\n\t\t\t\telse if($this->quote_creation->custom['create_new_version'])\n\t\t\t\t{\n\t\t\t\t\t$iemail_id=173;\n\t\t\t\t\t$imail_parameters['followup_link']='/quote/sales-quotes-list?submenuId=ML13-SL2';\n\t\t\t\t}\n\n\t\t\t\t$challengers=$this->getImpactedChallengers($quoteIdentifier,$final_parameters['quote_send_team']);\n\t\t\t\tif(count($challengers)>0)\n\t\t\t\t{\n\t\t\t\t\tforeach($challengers as $impactUser)\n\t\t\t\t\t{\n\t\t\t\t\t\tif($impactUser!=$this->adminLogin->userId)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$imail_obj=new Ep_Message_AutoEmails();\n\t\t\t\t\t\t\t$receiver_id=$impactUser;\n\t\t\t\t\t\t\t$imail_parameters['bo_user']=$impactUser;\n\t\t\t\t\t\t\t$imail_parameters['sales_user']=$this->adminLogin->userId;\n\t\t\t\t\t\t\t$imail_parameters['quote_title']=$quotes_data['title'];\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$imail_obj->sendQuotePersonalEmail($receiver_id,$iemail_id,$imail_parameters);\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//echo $iemail_id.\"<pre>\";print_r($challengers);exit;\n\t\t\t\t//exit;\n\t\t\t}\t\n\n\t\t\t//When a quote has been closed and then reactivated, the reason why sales has closed the quote the first time should be communicated to the concerned BO users \n\t\t if($this->quote_creation->custom['action']=='edit' && $this->quote_creation->custom['create_new_version']=='yes' && $sales_review_staus=='closed')\n\t\t {\n\t\t \t\t\n\t\t \t$challengers=$this->getImpactedChallengers($quoteIdentifier,$final_parameters['quote_send_team']);\n\t\t\t\tif(count($challengers)>0)\n\t\t\t\t{\n\t\t\t\t\tforeach($challengers as $impactUser)\n\t\t\t\t\t{\n\t\t\t\t\t\tif($impactUser!=$this->adminLogin->userId)\n\t\t\t\t\t\t{\t\n\t\t\t\t \t\t$cmail_obj=new Ep_Message_AutoEmails();\n\t\t\t\t\t\t\t$receiver_id=$impactUser;\n\t\t\t\t\t\t\t$cmail_parameters['bo_user']=$impactUser;\n\t\t\t\t\t\t\t$cmail_parameters['sales_user']=$this->adminLogin->userId;\n\t\t\t\t\t\t\t$cmail_parameters['quote_title']=$quotes_data['title'];\t\n\t\t\t\t\t\t\t$cmail_parameters['client_name']=$this->quote_creation->create_mission['company_name'];\n\t\t\t\t\t\t\t$cmail_parameters['closed_reason']=$this->closedreason[$quoteEditDetails[0]['closed_reason']];\n\t\t\t\t\t\t\t$cmail_parameters['closed_comments']=$quoteEditDetails[0]['closed_comments'];\n\t\t\t\t\t\t\t$cmail_parameters['validate_link']='/quote/quote-followup?quote_id='.$quoteIdentifier.'&submenuId=ML13-SL2';\n\t\t\t\t\t\t\t$cmail_obj->sendQuotePersonalEmail($receiver_id,180,$cmail_parameters);\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t \t\n\t\t }\n\t\t //exit;\n\n\n\t\t\t//sending email to seo &tech OR Prod to challenge after creating the quote\n\t\t\tif(!$edited && !$onlySales && !$send_manager_email)\n\t\t\t{\n\t\t\t\t$client_obj=new Ep_Quote_Client();\n\t\t\t\t\n\t\t\t\tif($onlyProd)\n\t\t\t\t\t$email_users=$client_obj->getEPContacts('\"prodsubmanager\"');\n\t\t\t\telse if($final_parameters['quote_send_team']=='send_tech_seo_team')\n\t\t\t\t\t$email_users=$client_obj->getEPContacts('\"techuser\",\"techmanager\",\"seouser\",\"seomanager\"');\n\t\t\t\telse if($final_parameters['quote_send_team']=='send_tech_prod_team' || $final_parameters['quote_send_team']=='send_tech_team')\n\t\t\t\t\t$email_users=$client_obj->getEPContacts('\"techuser\",\"techmanager\"');\n\t\t\t\telse if($final_parameters['quote_send_team']=='send_seo_prod_team' || $final_parameters['quote_send_team']=='send_seo_team')\t\n\t\t\t\t\t$email_users=$client_obj->getEPContacts('\"seouser\",\"seomanager\"');\t\t\t\t\t\n\t\t\t\telse\n\t\t\t\t\t$email_users=$client_obj->getEPContacts('\"seouser\",\"seomanager\",\"techuser\",\"techmanager\"');\n\n\t\t\t\tif(count($email_users)>0)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tforeach($email_users as $user=>$name)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mail_obj=new Ep_Message_AutoEmails();\n\t\t\t\t\t\t$receiver_id=$user;\n\t\t\t\t\t\t$mail_parameters['bo_user']=$user;\n\t\t\t\t\t\t$mail_parameters['sales_user']=$this->adminLogin->userId;\n\t\t\t\t\t\t$mail_parameters['quote_title']=$quotes_data['title'];\n\t\t\t\t\t\t$mail_parameters['sales_suggested_price']=$quotes_data['sales_suggested_price'].\" \".$quotes_data['sales_suggested_currency'].\"s\";\n\t\t\t\t\t\t$mail_parameters['challenge_link']='/quote/sales-quotes-list?submenuId=ML13-SL2';\n\n\t\t\t\t\t\t$mail_obj->sendQuotePersonalEmail($receiver_id,142,$mail_parameters); \t\n\t\t \t}\n\t\t }\t\n\t\t\t\t\n\t\t\t}\n\t\t\telse if($send_manager_email)//send email to sales manager to approve the quote \n\t\t\t{\n\t\t\t\t$client_obj=new Ep_Quote_Client();\n\t\t\t\t$email_users=$get_head_prods=$client_obj->getEPContacts('\"salesmanager\"');\n\n\t\t\t\tif(count($email_users)>0)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tforeach($email_users as $user=>$name)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mail_obj=new Ep_Message_AutoEmails();\n\t\t\t\t\t\t$receiver_id=$user;\n\t\t\t\t\t\t$mail_parameters['bo_user']=$user;\n\t\t\t\t\t\t$mail_parameters['sales_user']=$this->adminLogin->userId;\t\t\t\t\t\t\n\t\t\t\t\t\t$mail_parameters['challenge_link']='/quote/sales-quotes-list?submenuId=ML13-SL2';\n\n\t\t\t\t\t\t$mail_obj->sendQuotePersonalEmail($receiver_id,151,$mail_parameters); \t\n\t\t \t}\n\t\t }\n\t\t if(!$edited)\n\t\t {\n\t\t\t\t//if mission product value autre email send to sales manager need to add thaibault\n\t\t $email_usershead=array('139281941421499'=>'[email protected]');\n\t\t //array('141690656032222'=>'[email protected]');\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$quoteEditDetails=$quote_obj->getQuoteDetails($quoteIdentifier);\n\t\t\t\t\t\n\t\t\t\t\t\t\t\tforeach($email_usershead as $userhead=>$emailshead){\n\t\t\t\t\t\t\t\t\t$receiverhead_id=$userhead;\n\t\t\t\t\t\t\t\t\t$mailhead_parameters['sales_user']=$quoteEditDetails[0]['quote_by'];\n\t\t\t\t\t\t\t\t\t$mailhead_parameters['bo_user']=$receiverhead_id;\n\t\t\t\t\t\t\t\t\t$mailhead_parameters['quote_title']=$quotes_data['title'];\n\t\t\t\t\t\t\t\t\t$mailhead_parameters['followup_link']='/quote/quote-followup?quote_id='.$quoteIdentifier.\"&submenuId=ML13-SL2\";\n\t\t\t\t\t\t\t\t\t$mail_obj=new Ep_Message_AutoEmails();\n\t\t\t\t\t\t\t\t\t$mail_obj->sendQuotePersonalEmail($receiverhead_id,198,$mailhead_parameters);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//intimation email to seb,alessia and yannick\n\t\t\tif(!$edited)\n\t\t\t{\n\t\t $client_obj=new Ep_Quote_Client();\n\t\t //$intimate_users=$client_obj->getEPContacts('\"facturation\"');\n\t\t //$intimate_users[$this->adminLogin->userId]=$this->adminLogin->userId;\n\t\t $intimate_users=array('138960180336581'=>'[email protected]',\n\t\t \t\t\t\t\t '139282188375889'=>'[email protected]',\n\t\t \t\t\t\t\t '141745044124851'=>'[email protected]'\n\t\t \t\t\t\t\t );//[email protected], [email protected] and [email protected]\n\t\t if(count($intimate_users)>0)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tforeach($intimate_users as $user=>$name)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mail_obj=new Ep_Message_AutoEmails();\n\t\t\t\t\t\t$receiver_id=$user;\n\t\t\t\t\t\t$mail_parameters['bo_user']=$user;\n\t\t\t\t\t\t$mail_parameters['sales_user']=$this->adminLogin->userId;\n\t\t\t\t\t\t//$mail_parameters['quote_title']=$quotes_data['title'];\n\t\t\t\t\t\t//$mail_parameters['sales_suggested_price']=$quotes_data['sales_suggested_price'].\" \".$quotes_data['sales_suggested_currency'].\"s\";\n\t\t\t\t\t\t//$mail_parameters['followup_link_en']='/quote/sales-quotes-list?submenuId=ML13-SL2';\n\t\t\t\t\t\t$mail_parameters['validate_link']='/quote/quote-followup?quote_id='.$quoteIdentifier.'&submenuId=ML13-SL2';\n\n\t\t\t\t\t\t$mail_parameters['client_name']=$this->quote_creation->create_mission['company_name'];\n\t\t\t\t\t\t$mail_obj->sendQuotePersonalEmail($receiver_id,174,$mail_parameters); \t\n\t\t \t}\n\t\t } \n\t\t $newquote_head=array('139281941421499'=>'[email protected]','110823103540627'=>'[email protected]','139281996916804'=>'[email protected]');\n\t\t \n\t\t \n\t\t\t\t\n\t\t\t\t\t//new quote created send Email to head sales need to add Thaibault\n\t\t\t\t\t\n\t\t\t\t\t$quoteEditDetails=$quote_obj->getQuoteDetails($quoteIdentifier);\n\t\t\t\t\t\n\t\t\t\t\t\t\t\tforeach($newquote_head as $userhead=>$emailshead){\n\t\t\t\t\t\t\t\t\t$receiverhead_id=$userhead;\n\t\t\t\t\t\t\t\t\t$mailhead_parameters['sales_user']=$quoteEditDetails[0]['quote_by'];\n\t\t\t\t\t\t\t\t\t$mailhead_parameters['bo_user']=$receiverhead_id;\n\t\t\t\t\t\t\t\t\t$mailhead_parameters['turn_over']=$quoteEditDetails[0]['turnover'];\n\t\t\t\t\t\t\t\t\t$mailhead_parameters['currency']=$this->quote_creation->create_step1['currency'];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$mailhead_parameters['challenge_link']='/quote/sales-quotes-list?submenuId=ML13-SL2';\n\t\t\t\t\t\t\t\t\t$mailhead_parameters['client_name']=$this->quote_creation->create_mission['company_name'];\n\t\t\t\t\t\t\t\t\t$mail_obj=new Ep_Message_AutoEmails();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$mail_obj->sendQuotePersonalEmail($receiverhead_id,203,$mailhead_parameters);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t \n\t\t }\n\n\t\t //if new version created email send to sales manager\n\t\t $quoteEditDetails=$quote_obj->getQuoteDetails($quoteIdentifier);\n\t\t \n\t\t if($quoteEditDetails[0]['version']>1){\n\t\t \n\t\t\t\t$email_head_sale=array('139281941421499'=>'[email protected]'); // need to add thaibault\n\t\t\t\t\tif(count($email_head_sale)>0 ){\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tforeach($email_head_sale as $user=>$emails){\n\t\t\t\t\t\t\t\t\t$receiver_id=$user;\n\t\t\t\t\t\t\t\t\t$headmail_obj=new Ep_Message_AutoEmails();\n\t\t\t\t\t\t\t\t\t$headmail_parameters['bo_user']=$user;\n\t\t\t\t\t\t\t\t\t$headmail_parameters['sales_user']=$quoteEditDetails[0]['quote_by'];\n\t\t\t\t\t\t\t\t\t$headmail_parameters['turn_over']=$quoteEditDetails[0]['turnover'];\n\t\t\t\t\t\t\t\t\t$headmail_parameters['client_name']=$quoteEditDetails[0]['company_name'];\n\t\t\t\t\t\t\t\t\t$headmail_parameters['quote_version']=$quoteEditDetails[0]['version'];\t\n\t\t\t\t\t\t\t\t\t$headmail_parameters['followup_link']='/quote/quote-followup?quote_id='.$quoteEditDetails[0]['identifier'];\t\n\t\t\t\t\t\t\t\t\t$headmail_obj->sendQuotePersonalEmail($receiver_id,204,$headmail_parameters);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n unset($this->quote_creation->create_step1);\n unset($this->quote_creation->create_mission);\n unset($this->quote_creation->select_missions);\n unset($this->quote_creation->custom);\n\t\t\tunset($this->quote_creation->send_quote);\n\t\t\tif($edited)\n\t\t\t{\n \t$this->_helper->FlashMessenger('Devis updat&eacute; avec succ&egrave;s');\n\t\t\t}\n else\n {\n \tif(!$send_manager_email)\n \t\t$this->_helper->FlashMessenger('Devis cr&eacute;e avec succ&egrave;s');\n \t\n \tif($final_parameters['quote_send_team']=='send_tech_prod_team' || $final_parameters['quote_send_team']=='send_tech_team') \t\t\n \t\t$this->_helper->FlashMessenger('Onlytech');\n \telse if($final_parameters['quote_send_team']=='send_seo_prod_team' || $final_parameters['quote_send_team']=='send_seo_team')\t\n \t\t$this->_helper->FlashMessenger('Onlyseo');\n \telse if($onlySales)\n \t\t$this->_helper->FlashMessenger('Onlysales');\n \telse if($onlyProd)\n \t\t$this->_helper->FlashMessenger('Onlyprod');\n }\n\n $this->_redirect(\"/quote/sales-quotes-list?submenuId=ML13-SL2\");\t\n\n\t\t\t//echo \"<pre>\";print_r($quotes_data);//print_r($this->quote_creation->select_missions);print_r($this->quote_creation->create_mission['quote_missions']);\n\n\t\t}\t\n\t}", "public static function InsertOrder()\n\t\t{\n\t\t\tfor($i = 0; $i < count($_SESSION['material']); $i++)\n\t\t\t{\n\t\t\techo $_SESSION['material'][$i] .\"<br>\". $_SESSION['supplier_id'].\"<br>\";\n\t\t\t}\n\t\t\t\n\t\t}", "public function saveDataAftersaveAction() {\n $result = array();\n $error = true;\n $userId = Mage::helper('webpos/permission')->getCurrentUser();\n $isInvoice = Mage::helper('webpos/permission')->canManageOrder($userId, $this->getRequest()->getParam('order_id'));\n $orderId = $this->getRequest()->getParam('order_id');\n $order = Mage::getModel('sales/order')->load($orderId);\n $create_shipment = $this->getRequest()->getParam('create_shipment');\n $create_invoice = $this->getRequest()->getParam('create_invoice');\n $invoice_error = '';\n $invoice_message = '';\n $shipment_error = '';\n $shipment_message = '';\n\n\n if ($isInvoice == false) {\n $result['message'] = $this->__(\"Access denied! You don't have the permission to process this action.\");\n $result['error'] = true;\n $this->getResponse()->setBody(Zend_Json::encode($result));\n return;\n }\n //end vietdq\n if ($orderId && $order && $order->getId()) {\n $result['error'] = false;\n if ($create_invoice) {\n try {\n $invoice = $this->_initInvoice($orderId);\n if ($invoice) {\n if (!empty($data['capture_case'])) {\n $invoice->setRequestedCaptureCase($data['capture_case']);\n }\n $invoice->register();\n $invoice->setEmailSent(true);\n $invoice->getOrder()->setCustomerNoteNotify(true);\n $invoice->getOrder()->setIsInProcess(true);\n $transactionSave = Mage::getModel('core/resource_transaction')\n ->addObject($invoice)\n ->addObject($invoice->getOrder());\n\n $shipment = false;\n if ((int) $invoice->getOrder()->getForcedDoShipmentWithInvoice()) {\n $shipment = $this->_prepareShipment($invoice);\n if ($shipment) {\n $shipment->setEmailSent($invoice->getEmailSent());\n $transactionSave->addObject($shipment);\n }\n }\n\n $transactionSave->save();\n if (Mage::helper('webpos/customer')->isEnableAutoSendEmail('invoice')) {\n $template_invoice = Mage::helper('webpos/customer')->getWebposEmailTemplate('invoice');\n if (isset($template_invoice['guest']) && $template_invoice['guest'] != '') {\n Mage::app()->getStore()->setConfig(Mage_Sales_Model_Order_Invoice::XML_PATH_EMAIL_GUEST_TEMPLATE, $template_invoice['guest']);\n }\n if (isset($template_invoice['customer']) && $template_invoice['customer'] != '') {\n Mage::app()->getStore()->setConfig(Mage_Sales_Model_Order_Invoice::XML_PATH_EMAIL_TEMPLATE, $template_invoice['customer']);\n }\n $invoice->sendEmail($order->getCustomerEmail(), '');\n }\n $invoice_error = false;\n $invoice_message = $this->__('The invoice has been created.');\n } else {\n $invoice_error = true;\n $invoice_message = $this->__('The invoice is not exist');\n }\n } catch (Mage_Core_Exception $e) {\n $invoice_error = true;\n $invoice_message = $e->getMessage();\n } catch (Exception $e) {\n Mage::logException($e);\n $invoice_error = true;\n $invoice_message = $this->__('Unable to save the invoice.');\n }\n }\n\n if ($create_shipment) {\n try {\n $shipment = $this->_initShipment($orderId);\n if ($shipment) {\n $shipment->register();\n $shipment->setEmailSent(true);\n $shipment->getOrder()->setCustomerNoteNotify(true);\n $this->_saveShipment($shipment);\n if (Mage::helper('webpos/customer')->isEnableAutoSendEmail('shipment')) {\n $shipment->sendEmail($order->getCustomerEmail());\n }\n $shipment_error = false;\n $shipment_message = $this->__('The shipment has been created.');\n } else {\n $shipment_error = true;\n $shipment_message = $this->__('An error occurred while creating shipment.');\n }\n } catch (Mage_Core_Exception $e) {\n $shipment_error = true;\n $shipment_message = $e->getMessage();\n } catch (Exception $e) {\n Mage::logException($e);\n $shipment_error = true;\n $shipment_message = $this->__('An error occurred while creating shipment.');\n }\n }\n } else {\n $result['error'] = true;\n $result['message'] = $this->__('The order does not exist');\n $this->getResponse()->setBody(Zend_Json::encode($result));\n return;\n }\n\n $result['create_invoice'] = $create_invoice;\n $result['create_shipment'] = $create_shipment;\n if ($create_shipment && $create_invoice && !$invoice_error && !$shipment_error) {\n $result['apply_message'] = $this->__('The invoice and shipment have been created.');\n } else {\n if ($create_invoice) {\n // $result['create_invoice'] = $create_invoice;\n $result['invoice_error'] = $invoice_error;\n $result['invoice_message'] = $invoice_message;\n }\n if ($create_shipment) {\n // $result['create_shipment'] = $create_shipment;\n $result['shipment_error'] = $shipment_error;\n $result['shipment_message'] = $shipment_message;\n }\n }\n $result['createCustomerForm'] = $this->getLayout()->createBlock('webpos/customer')\n ->setTemplate('webpos/webpos/createcustomer.phtml')\n ->toHtml();\n $result['totals'] = $this->getLayout()->createBlock('webpos/cart_totals')\n ->setTemplate('webpos/webpos/review/totals.phtml')\n ->toHtml();\n $this->getResponse()->setBody(Zend_Json::encode($result));\n }", "public function afterPlaceOrder($order)\n {\n $this->aliExpressOrderRepository->create(['order' => $order]);\n }", "public function saveOrder()\n\t{\n\t\t$app = JFactory::getApplication();\n\t\t$modelUserCart = $this->getModel('usercart');\n\n\t\t$modelUserCart->storeUserOrder();\n\t\t$modelUserCart->sendOrderMail();\n\t\t$modelUserCart->emptyCart();\n\t\t$params = $app->getParams('com_simpleshop');\n\t\t$return_url = $params->get('return_url');\n\n\n\t\t$app->redirect($return_url);\n\n\t}", "private function insertOrder($custID) {\n $time = time();\n $order = new Order();\n $order->custID = $custID;\n $order->orderdate = $time;\n $order->save();\n return $time;\n }", "public function createQuote()\n\t{\n\t\t$this->setType($_POST['frmquotetype']);\n\t\t$this->setDate($_POST['frmquotedate']);\n\t\t$this->setStatus('Open');\n\t\t$this->setJobName($_POST['frmjobname']);\n\t\t$this->setJobAddress($_POST['frmjobaddress']);\n\t\t$this->setJobCity($_POST['frmjobcity']);\n\t\t$this->setJobZipcode($_POST['frmjobzipcode']);\n\t\t$this->setAttention($_POST['frmattn']);\n\t\t// Here we are going to post the tax rate and turn it into a float.\n\t\t$unformatted_tax_rate = $_POST['frmtaxrate'];\n\t\t$this->setTaxRate((float)$unformatted_tax_rate);\n\t\t$this->setCostBeforeTax($_POST['cartBeforeTaxCost']);\n\t\t$this->setTotalCost($_POST['cartTotalCost']);\n\t\t$this->setSalesTax($_POST['cartTax']);\n\t\t$this->setMonthlyTotal($_POST['cartMonthlyTotal']);\n\t\t$this->setDeliveryTotal($_POST['cartDeliveryTotal']);\n\t\t$this->setHidden(null);\n\n\t\t// Need to insert the new order into the database.\n\t\t$this->getDB()->insert('quotes', [\n\t\t\t\t'quote_customer' \t\t=> $this->getCustomer(),\n\t\t\t\t'quote_customer_id' \t=> $this->getCustomerId(),\n\t\t\t\t'quote_date' \t\t\t=> $this->getDate(),\n\t\t\t\t'quote_status' \t\t\t=> $this->getStatus(),\n\t\t\t\t'quote_type' \t\t\t=> $this->getType(),\n\t\t\t\t'job_name' \t\t\t\t=> $this->getJobName(),\n\t\t\t\t'job_city' \t\t\t\t=> $this->getJobCity(),\n\t\t\t\t'job_address' \t\t\t=> $this->getJobAddress(),\n\t\t\t\t'job_zipcode' \t\t\t=> $this->getJobZipcode(),\n\t\t\t\t'attn' \t\t\t\t\t=> $this->getAttention(),\n\t\t\t\t'tax_rate' \t\t\t\t=> $this->getTaxRate(),\n\t\t\t\t'cost_before_tax' \t\t=> $this->getCostBeforeTax(),\n\t\t\t\t'total_cost' \t\t\t=> $this->getTotalCost(),\n\t\t\t\t'sales_tax' \t\t\t=> $this->getSalesTax(),\n\t\t\t\t'monthly_total' \t\t=> $this->getMonthlyTotal(),\n\t\t\t\t'delivery_total'\t\t=> $this->getDeliveryTotal(),\n\t\t\t\t'hidden'\t\t\t\t=> $this->getHidden()\n\t\t\t]);\n\n\t\t// If properly inserted, grab the ID, else throw error.\n\t\tif($this->getDB()->lastId() != null)\n\t\t{\n\t\t\t$this->id = $this->getDB()->lastId();\n\t\t} \n\t\telse \n\t\t{\n\t\t\tthrow new Exception(\"There was an error inserting the quote into the database.\");\n\t\t}\n\t\t\n\t}", "public function save_donation() {\r\n\t\t/**\r\n\t\t * Do something here, or save it elsewhere?\r\n\t\t */\r\n\t}", "public function setCustomerCommentDelivery($observer)\r\n {\r\n try{\r\n $order = $observer->getEvent()->getOrder();\r\n $order_id = $order->getData('increment_id') ;\r\n $orderComment = $this->_getRequest()->getPost('suvery');\r\n if(trim($orderComment)!= 'other'){\r\n $orderComment = trim($orderComment);\r\n }else{\r\n $orderComment = trim($this->_getRequest()->getPost('suvery_other'));\r\n }\r\n //save suvery to database\r\n $resource = Mage::getSingleton('core/resource');\r\n $writeConnection = $resource->getConnection('core_write');\r\n $query = \"INSERT INTO \".Mage::getConfig()->getTablePrefix().\"onepagecheckout_suvery VALUES ('','\".$order_id.\"','\".$orderComment.\"','','')\";\r\n $writeConnection->query($query);\r\n //save delivery to datbase\r\n $delivery_date = $this->_getRequest()->getPost('delivery_date');\r\n $delivery_time = $this->_getRequest()->getPost('delivery_time');\r\n $resource = Mage::getSingleton('core/resource');\r\n $writeConnection = $resource->getConnection('core_write');\r\n $query = \"INSERT INTO \".Mage::getConfig()->getTablePrefix().\"onepagecheckout_delivery VALUES ('','\".$order_id.\"','\".$delivery_date.\"','\".$delivery_time.\"','','')\";\r\n $writeConnection->query($query);\r\n }catch(exception $e){\r\n \r\n }\r\n }", "private function send_products_to_quote(ck_quote $quote) {\n\t\tself::query_execute('INSERT INTO customer_quote_products (customer_quote_id, product_id, parent_products_id, option_type, price, quantity) SELECT :customer_quote_id, products_id, parent_products_id, option_type, IFNULL(quoted_price, unit_price), quantity FROM ck_cart_products WHERE cart_id = :cart_id', cardinality::NONE, [':customer_quote_id' => $quote->id(), ':cart_id' => $this->id()]);\n\t\tself::query_execute('DELETE FROM ck_cart_products WHERE cart_id = :cart_id', cardinality::NONE, [':cart_id' => $this->id()]);\n\t}", "public function saveEntidad(){\n\t\t$conexion = new Database();\n if ($this->codigo){\n $query = sprintf('UPDATE agenda_entidades SET entidad = \"%s\" WHERE entidad_id = %d',\n $this->entidad,\n $this->codigo);\n $rows = $conexion->exec( $query );\n }\n else{\n $query = sprintf('INSERT INTO agenda_entidades(entidad) VALUES (\"%s\")',\n $this->usuario);\n\t\t\t$rows = $conexion->exec( $query );\n $this->codigo = $conexion->lastInsertId();\n }\n }", "function setOrder( $order )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $order ) == \"ezorder\" )\n {\n $this->OrderID = $order->id();\n } \n }", "private function insertOrdemItem($item, $orderID) {\n $ordemItem = new OrderItem();\n $ordemItem->orderID = $orderID;\n $ordemItem->ISBN = $item['ISBN'];\n $ordemItem->qty = $item['quantity'];\n $ordemItem->price = $item['price'];\n $ordemItem->save();\n }", "public function save()\n\t{\n\t\tparent::save();\n\t\t\\IPS\\Widget::deleteCaches( 'donations', 'nexus' );\n\t\tstatic::recountCustomerFields();\n\t}", "public function createExpressCheckoutOrder($tid){}", "public function setBillingDataToQuoteAndSession($params)\n {\n $quote = Mage::getSingleton('checkout/session')->getQuote();\n /** @var Mage_Sales_Model_Quote_AddressB $billingAddress */\n $billingAddress = $quote->getBillingAddress();\n $params = new Varien_Object($params);\n\n $street = array(\n $params->getCustomerAddress1(),\n $params->getCustomerAddress3()\n );\n\n $billingAddress->setStreetFull($street);\n $billingAddress->setCompany($params->getCustomerAddress2());\n $billingAddress->setCity($params->getData('customer_city'));\n $billingAddress->setCountryId($params->getData('customer_country'));\n $billingAddress->setRegion($params->getData('customer_country_subdivision'));\n $region = Mage::getModel('expercash/directory_region')->loadByName(\n $billingAddress->getRegion(), $billingAddress->getCountryId()\n );\n\n $billingAddress->setRegionId($region->getId());\n $billingAddress->setEmail($params->getData('customer_email'));\n $billingAddress->setFirstname($params->getData('customer_prename'));\n $billingAddress->setLastname($params->getData('customer_name'));\n $billingAddress->setTelephone($params->getData('customer_telephone'));\n $billingAddress->setPostcode($params->getData('customer_zip'));\n $billingAddress->save();\n\n\n $billingAddressHash = $this->getArrayHash($this->getBillingArray($billingAddress));\n $this->saveDataToMasterpassSession('billingAddress', $billingAddressHash);\n }", "private function initTransaction(Mage_Sales_Model_Order $order)\n {\n /** @var Oyst_OneClick_Helper_Data $helper */\n $helper = Mage::helper('oyst_oneclick');\n\n // Set transaction info\n /** @var Mage_Sales_Model_Order_Payment $payment */\n $payment = $order->getPayment();\n $payment->setTransactionId($this->orderResponse['transaction']['id']);\n $payment->setCurrencyCode($this->orderResponse['transaction']['amount']['currency']);\n $payment->setPreparedMessage(Mage::helper('oyst_oneclick')->__('%s', $this->paymentMethod));\n $payment->setShouldCloseParentTransaction(true);\n $payment->setIsTransactionClosed(1);\n\n if (Mage::helper('oyst_oneclick')->getConfig('enable_invoice_auto_generation')) {\n $payment->registerCaptureNotification($helper->getHumanAmount($this->orderResponse['order_amount']['value']));\n }\n\n $order->save();\n }", "public function saveProductOrder($orderID, $beerID, $quantity){\r\n\t\t$this->query(\"INSERT INTO rel_order_beer (FK_orderID, FK_beerID, quantity)\r\n\t\t\t\t\t\t\t\t\t\tVALUES ('$orderID', '$beerID', '$quantity');\");\r\n\t\treturn mysql_insert_id();\r\n\t}", "private function restoreQuote()\n\t{\n\t\t/** @var \\Magento\\Sales\\Model\\Order $order */ \n\t\t$lastOrderCookie = $this->_objectManager->get('Orange\\Customer\\Model\\CustomerCookie')->getLastOrderCookie();\n\t\tif($lastOrderCookie != '') {\t\t\n\t\t\t$order = $this->_objectManager->get('Magento\\Sales\\Model\\Order')->load($lastOrderCookie, 'increment_id');\n\t\t\tif ($order->getId() && $order->getStatus() == 'pending_payment') {\n\t\t\t\ttry {\n\t\t\t\t\t$this->_checkoutSession = $this->_objectManager->get('Magento\\Checkout\\Model\\Session');\n\t\t\t\t\t$this->_checkoutSession->setLastRealOrderId($order->getIncrementId());\n\t\t\t\t\t$this->_objectManager->get('Psr\\Log\\LoggerInterface')->addDebug('LastOrderPlaced:'.$lastOrderCookie);\n\t\t\t\t\t$this->_objectManager->get('Psr\\Log\\LoggerInterface')->addDebug('LastRealOrderPlaceds:'.$order->getIncrementId());\n\t\t\t\t\t$lastOrder = $this->_checkoutSession->getLastRealOrder();\n\t\t\t\t\t$this->_checkoutSession->restoreQuote();\n\t\t\t\t\t$this->_objectManager->get('Psr\\Log\\LoggerInterface')->addDebug('LastRealOrder:'.$lastOrder->getIncrementId()); \n\t\t\t\t\treturn true;\n\t\t\t\t} catch (\\Magento\\Framework\\Exception\\NoSuchEntityException $e) {\n\t\t\t\t\t$this->_objectManager->get('Psr\\Log\\LoggerInterface')->addDebug($e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function installQuoteData()\n {\n $quoteInstaller = $this->quoteSetupFactory->create(\n [\n 'resourceName' => 'quote_setup',\n 'setup' => $this->setup\n ]\n );\n $quoteInstaller\n ->addAttribute(\n 'quote',\n CustomFieldsInterface::CHECKOUT_PURPOSE,\n ['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true]\n );\n }", "public function storeCustomerData($obj){\n if($obj){\n Customer::create(array(\n 'name' => $obj-> name,\n 'address' => $obj-> address,\n 'checked' => $obj-> checked,\n 'description' => $obj-> description,\n 'interest' => $obj-> interest,\n 'date_of_birth' => $obj-> date_of_birth,\n 'email' => $obj-> email,\n 'account' => $obj-> account,\n 'credit_card' => $this->storeCreditCard($obj-> credit_card) \n ));\n }\n \n }", "public function save(): void\n {\n $this->session?->put('shop.cart', $this->toArray());\n }", "public function successAction() {\n\t\t\n\t\t//echo \"in b2b\";die;\n\t\t$session = Mage::getSingleton('checkout/session');\n\t\t\n\t\t$logFileName = 'magentoorder.log';\n\t\t\n\t\tMage::log('----------------- START ------------------------------- ', null, $logFileName);\t\n\t\t\n\t\t$quote = $session->getQuote();\n\t\t$quoteId = $quote->getEntityId();\n\t\t$privateId = $session->getPrivateId();\n\t\t\n\t\t\n\t\t\n\t\tif($privateId){\n\t\t\t$orderData = Mage::getModel('collectorbank/api')->getOrderResponse();\t\n\t\t\t\n\t\t\tif(isset($orderData['error'])){\n\t\t\t\t$session->addError($orderData['error']['message']);\n\t\t\t\t$this->_redirect('checkout/cart');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$orderDetails = $orderData['data'];\t\t\n\t\t\n\t\t\n\t\tif($orderDetails){\t\t\n\t\t\t$email = $orderDetails['customer']['email'];\n\t\t\t$mobile = $orderDetails['customer']['mobilePhoneNumber'];\n\t\t\t$firstName = $orderDetails['customer']['deliveryAddress']['firstName'];\n\t\t\t$lastName = $orderDetails['customer']['deliveryAddress']['lastName'];\n\t\t\t\n\t\t\t\n\t\t\t$store = Mage::app()->getStore();\n\t\t\t$website = Mage::app()->getWebsite();\n\t\t\t$customer = Mage::getModel('customer/customer')->setWebsiteId($website->getId())->loadByEmail($email);\n\t\t\t\t// if the customer is not already registered\n\t\t\t\tif (!$customer->getId()) {\n\t\t\t\t\t$customer = Mage::getModel('customer/customer');\t\t\t\n\t\t\t\t\t$customer->setWebsiteId($website->getId())\n\t\t\t\t\t\t\t ->setStore($store)\n\t\t\t\t\t\t\t ->setFirstname($firstName)\n\t\t\t\t\t\t\t ->setLastname($lastName)\n\t\t\t\t\t\t\t ->setEmail($email); \n\t\t\t\t\ttry {\n\t\t\t\t\t \n\t\t\t\t\t\t$password = $customer->generatePassword(); \n\t\t\t\t\t\t$customer->setPassword($password); \n\t\t\t\t\t\t// set the customer as confirmed\n\t\t\t\t\t\t$customer->setForceConfirmed(true); \n\t\t\t\t\t\t// save customer\n\t\t\t\t\t\t$customer->save(); \n\t\t\t\t\t\t$customer->setConfirmation(null);\n\t\t\t\t\t\t$customer->save();\n\t\t\t\t\t\t\n\t\t\t\t\t\t// set customer address\n\t\t\t\t\t\t$customerId = $customer->getId(); \n\t\t\t\t\t\t$customAddress = Mage::getModel('customer/address'); \n\t\t\t\t\t\t$customAddress->setData($billingAddress)\n\t\t\t\t\t\t\t\t\t ->setCustomerId($customerId)\n\t\t\t\t\t\t\t\t\t ->setIsDefaultBilling('1')\n\t\t\t\t\t\t\t\t\t ->setIsDefaultShipping('1')\n\t\t\t\t\t\t\t\t\t ->setSaveInAddressBook('1');\n\t\t\t\t\t\t\n\t\t\t\t\t\t// save customer address\n\t\t\t\t\t\t$customAddress->save();\n\t\t\t\t\t\t// send new account email to customer \n\t\t\t\t\t\t\n\t\t\t\t\t\t$storeId = $customer->getSendemailStoreId();\n\t\t\t\t\t\t$customer->sendNewAccountEmail('registered', '', $storeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\tMage::log('Customer with email '.$email.' is successfully created.', null, $logFileName);\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Mage_Core_Exception $e) {\t\t\t\t\t\t\n\t\t\t\t\t\tMage::log('Cannot add customer for '.$e->getMessage(), null, $logFileName);\n\t\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t\tMage::log('Cannot add customer for '.$email, null, $logFileName);\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t\t\n\t\t\t// Assign Customer To Sales Order Quote\n\t\t\t$quote->assignCustomer($customer);\n\t\t\t\n\t\t\tif($orderDetails['customer']['deliveryAddress']['country'] == 'Sverige'){\t$scountry_id = \"SE\";\t}\n\t\t\tif($orderDetails['customer']['billingAddress']['country'] == 'Sverige'){ $bcountry_id = \"SE\";\t}\n\t\t\t\n\t\t\t$billingAddress = array(\n\t\t\t\t'customer_address_id' => '',\n\t\t\t\t'prefix' => '',\n\t\t\t\t'firstname' => $firstName,\n\t\t\t\t'middlename' => '',\n\t\t\t\t'lastname' => $lastName,\n\t\t\t\t'suffix' => '',\n\t\t\t\t'company' => $orderDetails['customer']['billingAddress']['coAddress'], \n\t\t\t\t'street' => array(\n\t\t\t\t\t '0' => $orderDetails['customer']['billingAddress']['address'], // compulsory\n\t\t\t\t\t '1' => $orderDetails['customer']['billingAddress']['address2'] // optional\n\t\t\t\t ),\n\t\t\t\t'city' => $orderDetails['customer']['billingAddress']['city'],\n\t\t\t\t'country_id' => $scountry_id, // two letters country code\n\t\t\t\t'region' => '', // can be empty '' if no region\n\t\t\t\t'region_id' => '', // can be empty '' if no region_id\n\t\t\t\t'postcode' => $orderDetails['customer']['billingAddress']['postalCode'],\n\t\t\t\t'telephone' => $mobile,\n\t\t\t\t'fax' => '',\n\t\t\t\t'save_in_address_book' => 1\n\t\t\t);\n\t\t\n\t\t\t$shippingAddress = array(\n\t\t\t\t'customer_address_id' => '',\n\t\t\t\t'prefix' => '',\n\t\t\t\t'firstname' => $firstName,\n\t\t\t\t'middlename' => '',\n\t\t\t\t'lastname' => $lastName,\n\t\t\t\t'suffix' => '',\n\t\t\t\t'company' => $orderDetails['customer']['deliveryAddress']['coAddress'], \n\t\t\t\t'street' => array(\n\t\t\t\t\t '0' => $orderDetails['customer']['deliveryAddress']['address'], // compulsory\n\t\t\t\t\t '1' => $orderDetails['customer']['deliveryAddress']['address2'] // optional\n\t\t\t\t ),\n\t\t\t\t'city' => $orderDetails['customer']['deliveryAddress']['city'],\n\t\t\t\t'country_id' => $scountry_id, // two letters country code\n\t\t\t\t'region' => '', // can be empty '' if no region\n\t\t\t\t'region_id' => '', // can be empty '' if no region_id\n\t\t\t\t'postcode' => $orderDetails['customer']['deliveryAddress']['postalCode'],\n\t\t\t\t'telephone' => $mobile,\n\t\t\t\t'fax' => '',\n\t\t\t\t'save_in_address_book' => 1\n\t\t\t);\n\t\t\n\t\t\n\t\t\t// Add billing address to quote\n\t\t\t$billingAddressData = $quote->getBillingAddress()->addData($billingAddress);\n\t\t \n\t\t\t// Add shipping address to quote\n\t\t\t$shippingAddressData = $quote->getShippingAddress()->addData($shippingAddress);\n\t\t\t\n\t\t\t//check for selected shipping method\n\t\t\t$shippingMethod = $session->getSelectedShippingmethod();\n\t\t\tif(empty($shippingMethod)){\n\t\t\t\t$allShippingData = Mage::getModel('collectorbank/config')->getActiveShppingMethods();\n\t\t\t\t$orderItems = $orderDetails['order']['items'];\n\t\t\t\tforeach($orderItems as $oitem){\n\t\t\t\t\t//echo \"<pre>\";print_r($oitem);\n\t\t\t\t\tif(in_array($oitem['id'], $allShippingData)) {\n\t\t\t\t\t\t$shippingMethod = $oitem['id'];\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Collect shipping rates on quote shipping address data\n\t\t\t$shippingAddressData->setCollectShippingRates(true)->collectShippingRates();\n\n\t\t\t// Set shipping and payment method on quote shipping address data\n\t\t\t$shippingAddressData->setShippingMethod($shippingMethod);\t\t\t\n\t\t\t\n\t\t\t//$paymentMethod = 'collectorpay';\n\t\t\t$paymentMethod = 'collectorbank_invoice';\n\t\t\t// Set shipping and payment method on quote shipping address data\n\t\t\t$shippingAddressData->setPaymentMethod($paymentMethod);\t\t\t\n\t\t\t\n\t\t\t$colpayment_method = $orderDetails['purchase']['paymentMethod'];\n\t\t\t$colpayment_details = json_encode($orderDetails['purchase']);\n\t\t\t\n\t\t\t// Set payment method for the quote\n\t\t\t$quote->getPayment()->importData(array('method' => $paymentMethod,'coll_payment_method' => $colpayment_method,'coll_payment_details' => $colpayment_details));\n\t\t\t\n\n\t\t\ttry{\n\t\t\t\t$orderReservedId = $session->getReference();\n\t\t\t\t$quote->setResponse($orderDetails);\n\t\t\t\t$quote->setCollCustomerType($orderDetails['customerType']);\n\t\t\t\t$quote->setCollBusinessCustomer($orderDetails['businessCustomer']);\n\t\t\t\t$quote->setCollStatus($orderDetails['status']);\n\t\t\t\t$quote->setCollPurchaseIdentifier($orderDetails['purchase']['purchaseIdentifier']);\n\t\t\t\t$quote->setCollTotalAmount($orderDetails['order']['totalAmount']);\n\t\t\t\tif($orderDetails['reference'] == $orderReservedId){\n\t\t\t\t\t$quote->setReservedOrderId($orderReservedId);\n\t\t\t\t} else {\n\t\t\t\t\t$quote->setReservedOrderId($orderDetails['reference']);\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t \t// Collect totals of the quote\n\t\t\t\t$quote->collectTotals();\n\t\t\t\t$quote->save();\n\t\t\t\t\n\t\t\t\t$service = Mage::getModel('sales/service_quote', $quote);\n\t\t\t\t$service->submitAll();\n\t\t\t\t$incrementId = $service->getOrder()->getRealOrderId();\n\t\t\t\t\n\t\t\t\tif($session->getIsSubscribed() == 1){\n\t\t\t\t\tMage::getModel('newsletter/subscriber')->subscribe($email);\n\t\t\t\t} \t\t\t\t\n\t\t\t\t\n\t\t\t\t$session->setLastQuoteId($quote->getId())\n\t\t\t\t\t->setLastSuccessQuoteId($quote->getId())\n\t\t\t\t\t->clearHelperData();\n\t\t\t\t\t\n\t\t\t\tMage::getSingleton('checkout/session')->clear();\n\t\t\t\tMage::getSingleton('checkout/cart')->truncate()->save();\n\t\t\t\t\n\t\t\t\t$session->unsPrivateId();\n\t\t\t\t$session->unsReference();\n\t\t\t\t\n\t\t\t\t // Log order created message\n\t\t\t\tMage::log('Order created with increment id: '.$incrementId, null, $logFileName);\t\t\t\t\t\t\n\t\t\t\t$result['success'] = true;\n\t\t\t\t$result['error'] = false;\n\t\t\t\t\n\t\t\t\t$order = Mage::getModel('sales/order')->loadByIncrementId($incrementId);\n\t\t\t\t\n\t\t\t\t$this->loadLayout();\n\t\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\t\tif ($block){//check if block actually exists\t\t\t\t\t\n\t\t\t\t\t\tif ($order->getId()) {\n\t\t\t\t\t\t\t$orderId = $order->getId();\n\t\t\t\t\t\t\t$isVisible = !in_array($order->getState(),Mage::getSingleton('sales/order_config')->getInvisibleOnFrontStates());\n\t\t\t\t\t\t\t$block->setOrderId($incrementId);\n\t\t\t\t\t\t\t$block->setIsOrderVisible($isVisible);\n\t\t\t\t\t\t\t$block->setViewOrderId($block->getUrl('sales/order/view/', array('order_id' => $orderId)));\n\t\t\t\t\t\t\t$block->setViewOrderUrl($block->getUrl('sales/order/view/', array('order_id' => $orderId)));\n\t\t\t\t\t\t\t$block->setPrintUrl($block->getUrl('sales/order/print', array('order_id'=> $orderId)));\n\t\t\t\t\t\t\t$block->setCanPrintOrder($isVisible);\n\t\t\t\t\t\t\t$block->setCanViewOrder(Mage::getSingleton('customer/session')->isLoggedIn() && $isVisible);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->renderLayout();\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (Mage_Core_Exception $e) {\n\t\t\t\t\t$result['success'] = false;\n\t\t\t\t\t$result['error'] = true;\n\t\t\t\t\t$result['error_messages'] = $e->getMessage(); \n\t\t\t\t\tMage::log('Order creation is failed for invoice no '.$orderDetails['purchase']['purchaseIdentifier'] .\"Error is --> \".Mage::helper('core')->jsonEncode($result), null, $logFileName);\t\t\n\t\t\t\t\t//Mage::app()->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));\n\t\t\t\t\t$this->loadLayout();\n\t\t\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\t\t\tif ($block){\n\t\t\t\t\t\tif($orderDetails['purchase']['purchaseIdentifier']){\n\t\t\t\t\t\t\t$block->setInvoiceNo($orderDetails['purchase']['purchaseIdentifier']);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$block->setCode(222);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->renderLayout();\t\t\t\t\t\n\t\t\t} \t\t\t\n\t\t} \n\t\t\n\t\t} else {\n\t\t\tMage::log('Order is already generated.', null, $logFileName);\t\t\n\t\t\t$this->loadLayout(); \n\t\t\t$block = Mage::app()->getLayout()->getBlock('collectorbank_success');\n\t\t\tif ($block){\n\t\t\t\t$block->setCode(111);\n\t\t\t}\n\t\t\t$this->renderLayout();\n\t\t}\n\n\t\tMage::log('----------------- END ------------------------------- ', null, $logFileName);\t\t\n\t}", "public function save()\n {\n $this->_user->setAttribute(\n 'cart_items',\n $this->_items,\n timpanyCart::SESSION_NS\n );\n }", "public function afterSave($insert, $changedAttributes)\n {\n parent::afterSave($insert, $changedAttributes);\n \n if ($insert) {\n // if new client\n $order = new Orders();\n $order->client_id = $this->id;\n $order->address = Yii::$app->request->post('object-address'); /*$_REQUEST['object-address'];*/\n //if(Yii::$app->request->post('reg-address'))\n $order->address_reg = Yii::$app->request->post('reg-address');\n //if(Yii::$app->request->post('fio'))\n $order->fio = Yii::$app->request->post('fio');\n //if(Yii::$app->request->post('birthday'))\n $order->birthday = Yii::$app->request->post('birthday');\n //if(Yii::$app->request->post('inn'))\n $order->inn = Yii::$app->request->post('inn');\n $order->save();\n\n $cookie = new \\yii\\web\\Cookie([\n 'name' => 'msClientId',\n 'value' => $this->id,\n 'expire' => time() + 60 * 60 * 24 * 365,\n ]);\n Yii::$app->getResponse()->getCookies()->add($cookie);\n } else {\n // if updates client\n \n }\n }", "public function saveAction()\n {\n $tab = '';\n \n \n $pPoOrderId = $this->getRequest()->getPost('po_order_id');\n \n //get input parametre from the webpage.\n $order = Mage::getModel('purchase/order')->load($pPoOrderId);\n\n $order->setPurchaseRep(Mage::getSingleton('admin/session')->getUser()->getUsername());\n \n if ($this->getRequest()->getPost('order_eta')){\n $order->setOrderEta($this->getRequest()->getPost('order_eta'));\n }else{\n $order->setOrderEta(null);\n }\n $order->setPaymentTerms($this->getRequest()->getPost('payment_term_id'));\n $order->setShippingMethod($this->getRequest()->getPost('shipping_method_id'));\n \n $order->setComments($this->getRequest()->getPost('comments'));\n $order->setStoreId($this->getRequest()->getPost('store_id'));\n \n $order->setShippingName($this->getRequest()->getPost('shipping_name'));\n $order->setShippingCompany($this->getRequest()->getPost('shipping_company'));\n $order->setShippingStreet1($this->getRequest()->getPost('shipping_street1'));\n $order->setShippingStreet2($this->getRequest()->getPost('shipping_street2'));\n $order->setShippingCity($this->getRequest()->getPost('shipping_city'));\n $order->setShippingState($this->getRequest()->getPost('shipping_state'));\n $order->setShippingZipcode($this->getRequest()->getPost('shipping_zipcode'));\n $order->setShippingCountry($this->getRequest()->getPost('shipping_country'));\n $order->setShippingTelephone1($this->getRequest()->getPost('shipping_telephone1'));\n $order->setShippingTelephone2($this->getRequest()->getPost('shipping_telephone2'));\n $order->setShippingFax($this->getRequest()->getPost('shipping_fax'));\n $order->setShippingEmail($this->getRequest()->getPost('shipping_email'));\n $order->setShippingType($this->getRequest()->getPost('shipping_type')); \n// $order->setShippingSalesOrderId(\"\"); \n if($this->getRequest()->getPost('po_shipping_type')==\"so\")\n $order->setShippingSalesOrderId($this->getRequest()->getPost('po_shipping_so_num')); \n else\n $order->setShippingSalesOrderId(\"\"); \n \n $order->save(); \n \n $purchaseOrderId = $order->getId();\n \n \n //Process information from \"review product\" tab page\n foreach ($order->getOrderItems() as $item)\n {\n\n $itemId = $item->getId();\n \n if ($this->getRequest()->getPost('delete_'.$itemId) == 1)\n {\n $vOldQty = $item->getProductQty();\n $vProductQty = 0;\n $item->delete();\n }\n else \n {\n $receivedQty =$item->getQtyReceipted(); \n $vOldQty = $item->getProductQty();\n $vProductQty = $this->getRequest()->getPost('product_qty_'.$itemId);\n\n if (!(($vProductQty < $receivedQty) || ($vOldQty < $receivedQty))){ \n $item->setPurchaseOrderId($purchaseOrderId);\n $item->setProductId($this->getRequest()->getPost('product_id_'.$itemId));\n $item->setProductName($this->getRequest()->getPost('product_name_'.$itemId));\n \n //$item->setpop_supplier_ref($this->getRequest()->getPost('pop_supplier_ref_'.$item->getId()));\n \n $item->setProductQty($vProductQty);\n $item->setProductPrice($this->getRequest()->getPost('product_price_'.$itemId));\n $item->setSubtotal($item->getProductQty() * $item->getProductPrice());\n $item->setTotal($item->getSubtotal() + $item->getTax() + $item->getAdjustFee());\n $item->save();\n\n $vendorProduct = Mage::getModel(\"purchase/vendorproduct\")\n ->loadByProductId($order->getVendorId() , $item->getProductId());\n $vendorProduct->setVendorSku($this->getRequest()->getPost('vendor_sku_'.$itemId))\n ->setUnitCost($item->getProductPrice())\n ->save();\n }else {\n Mage::getSingleton('adminhtml/session')->addWarning($this->__('not updated for %s: new qty[%s] less than received qty [%s]', $item->getProductName(), $vProductQty, $receivedQty)); \n $vProductQty = $vOldQty;\n } \n\n } \n //process update qty when order had been send to vendor\n if ((($order->getStatus() == Ebulb_Purchase_Model_Order::STATUS_WAITING_FOR_DELIVERY) \n ||($order->getStatus() == Ebulb_Purchase_Model_Order::STATUS_PARTIALLY_RECEIVED))\n && ($vOldQty != $vProductQty)){\n \n Mage::dispatchEvent('purchase_order_refresh_poqty', \n array('po_order_id' => $purchaseOrderId,\n 'po_product_id' => $item->getProductId(), \n 'po_product_qty_old' => $vOldQty,\n 'po_product_qty_new' => $vProductQty));\n\n } \n\n }\n\n\n \n //process information from \"Add product\" tab page, check if we have to add products\n if ($this->getRequest()->getPost('add_product') != '')\n {\n $productsToAdd = Mage::helper('purchase')->decodeInput($this->getRequest()->getPost('add_product'));\n foreach($productsToAdd as $key => $value)\n {\n //retrieves values\n $productId = $key;\n $qty = $value['qty'];\n if ($qty == '')\n $qty = 1;\n \n //add product\n $order->addItems($productId, $qty);\n \n //process update qty when order had been send to vendor\n if (($order->getStatus() == Ebulb_Purchase_Model_Order::STATUS_WAITING_FOR_DELIVERY)\n ||($order->getStatus() == Ebulb_Purchase_Model_Order::STATUS_PARTIALLY_RECEIVED)){\n \n Mage::dispatchEvent('purchase_order_refresh_poqty', \n array('po_order_id' => $purchaseOrderId,\n 'po_product_id' => $productId, \n 'po_product_qty_old' => 0,\n 'po_product_qty_new' => $qty));\n\n }\n \n }\n \n Mage::getSingleton('adminhtml/session')->addSuccess($this->__('Products added'));\n $tab = 'tab_products';\n $order->resetOrderItems();\n \n }\n \n $orderSubtotal = 0.0000;\n //$orderTotal = 0.0000;\n foreach ($order->getOrderItems() as $item)\n {\n $orderSubtotal += $item->getSubtotal();\n //$orderTotal += $item->getTotal();;\n //Update vendor_product's vendor sku, cost...etc,.\n Mage::dispatchEvent('purchase_order_update_vendor_product', array('po_order_item'=>$item));\n }\n $order->setSubtotal($orderSubtotal)\n ->setTotal($orderSubtotal + $order->getTax() + $order->getAdjustFee() + $order->getShippingPrice())\n ->save();\n \n //Process information from \"send to vendor\" tab page.\n $notifyFlag = $this->getRequest()->getPost('send_to_customer');\n if ($notifyFlag == 1)\n {\n $order->notifyVendor($this->getRequest()->getPost('email_comment'));\n Mage::getSingleton('adminhtml/session')->addSuccess($this->__('Vendor notified'));\n\n //update Po_qty in stockitem.\n foreach ($order->getOrderItems() as $item)\n {\n Mage::dispatchEvent('purchase_order_refresh_poqty', \n array('po_order_id' => $order->getId(),\n 'po_product_id' => $item->getProductId(), \n 'po_product_qty_old' => 0,\n 'po_product_qty_new' => $item->getProductQty()));\n }\n\n }\n \n if (($order->getStatus() == Ebulb_Purchase_Model_Order::STATUS_WAITING_FOR_DELIVERY)\n ||($order->getStatus() == Ebulb_Purchase_Model_Order::STATUS_PARTIALLY_RECEIVED) ){\n Mage::dispatchEvent('purchase_order_refresh_status', \n array('po_order' => $order)); \n }\n \n Mage::getSingleton('adminhtml/session')->addSuccess($this->__('Purchase order successfully Saved'));\n \n $this->_redirect('purchase/orders/edit/po_order_id/'.$order->getOrderId().'/tab/'.$tab);\n \n }", "function save()\r\n {\r\n $GLOBALS['DB']->exec(\"INSERT INTO inventory_items (name) VALUES ('{$this->getName()}')\");\r\n $this->id = $GLOBALS['DB']->lastInsertId();\r\n }", "function save_individual_customer_detail( $params ) {\n\t\textract( $params );\n\n\t\t$qry = \"UPDATE cart SET \";\n\t\t$qry.= $fieldname.\"='\".$value.\"' \";\n\t\t$qry.= \"WHERE id='\".$cart_id.\"' AND customer_id='\".$user_no.\"'\";\n\n\t\treturn $this->db->query( $qry );\n\t}", "protected function save(): void\n {\n if ($this->connection == 'database') {\n $this->cart->each(\n function ($item) {\n if ($cart = $this->storage->has($item['id'])) {\n $cart->update(\n [\n 'rowId' => $item['id'],\n 'price' => $item['price'],\n 'quantity' => $item['quantity'],\n 'cartable_id' => $item['cartable_id'],\n 'cartable_type'=> $item['cartable_type'],\n ]\n );\n } else {\n $this->storage->create(\n [\n 'rowId' => $item['id'],\n 'user_id' => $this->user->id,\n 'price' => $item['price'],\n 'quantity' => $item['quantity'],\n 'cartable_id' => $item['cartable_id'],\n 'cartable_type'=> $item['cartable_type'],\n ]\n );\n }\n }\n );\n } elseif ($this->sessionStatus) {\n $this->storage->put([$this->instanceName => $this->cart]);\n }\n }", "public function createOrder($cartData,$token,$isApi,$customerId = NULL);", "public function setQuoteId($id);", "public function insert($id){\r\n $cache_id = \"customer_\" . $id;\r\n \r\n $so = $this->soap->insertNewStandingOrder($this->licence, $id);\r\n \r\n //clear the cache when a new standing order is being inserted\r\n if(Cache::has($cache_id)){\r\n Cache::forget($cache_id);\r\n }\r\n \r\n return $so;\r\n }", "public function setOrder(\\Magento\\Sales\\Model\\Order $order);", "function addDetailsLine($order_id, $orderDetails, $conn)\n {\n // return the id number of the last item inserted.\n\n mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);\n\n\n $stmt = $conn->prepare(\"INSERT INTO mfqgkhncw3r34ada.order_details (orders_id, products_id, QUANTITY, CURRENT_PRICE, CURRENT_DESCRIPTION) VALUES (?,?,?,?,?)\");\n\n if (!$stmt) {\n return -1;\n } else {\n $product_id = $orderDetails->getProduct_id();\n $quantity = $orderDetails->getQuantity();\n $price = $orderDetails->getCurrent_price();\n $description = $orderDetails->getCurrent_description();\n\n $stmt->bind_param(\"iiids\", $order_id, $product_id, $quantity, $price, $description);\n\n $stmt->execute();\n\n if ($stmt->affected_rows > 0) {\n // success\n return $conn->insert_id;\n } else {\n // failed\n return false;\n }\n }\n }", "public function wp_varejoecom_save_shipping_company(int $identifier, string $shipping_company_name, string $cnpj, string $status) : void\n {\n global $wpdb;\n\n $tableName = $wpdb->prefix . $this->table_name;\n $wpdb->insert(\n $tableName,\n array(\n 'identifier' => $identifier,\n 'name' => $shipping_company_name,\n 'cnpj' => $cnpj,\n 'status' => $status\n )\n );\n }", "public function saveFailedOrder()\n {\n\t\t\n $this->validate();\n $isNewCustomer = false;\n switch ($this->getCheckoutMethod()) {\n case self::METHOD_GUEST:\n $this->_prepareGuestQuote();\n break;\n case self::METHOD_REGISTER:\n $this->_prepareNewCustomerQuote();\n $isNewCustomer = true;\n break;\n default:\n $this->_prepareCustomerQuote();\n break;\n }\n//die('order is available');\n $service = Mage::getModel('sales/service_quote', $this->getQuote());\n $service->submitAll();\n\n if ($isNewCustomer) {\n try {\n $this->_involveNewCustomer();\n } catch (Exception $e) {\n Mage::logException($e);\n }\n }\n\n $this->_checkoutSession->setLastQuoteId($this->getQuote()->getId())\n ->setLastSuccessQuoteId($this->getQuote()->getId())\n ->clearHelperData();\n\n $order = $service->getOrder();\n if ($order) {\n Mage::dispatchEvent('checkout_type_onepage_save_order_after',\n array('order'=>$order, 'quote'=>$this->getQuote()));\n\n /**\n * a flag to set that there will be redirect to third party after confirmation\n * eg: paypal standard ipn\n */\n $redirectUrl = $this->getQuote()->getPayment()->getOrderPlaceRedirectUrl();\n /**\n * we only want to send to customer about new order when there is no redirect to third party\n */\n if (!$redirectUrl && $order->getCanSendNewEmailFlag()) {\n try {\n //$order->sendNewOrderEmail();\n\t\t\t\t\t//return $this;\n\t\t\t\t\t\n } catch (Exception $e) {\n Mage::logException($e);\n }\n }\n\n // add order information to the session\n $this->_checkoutSession->setLastOrderId($order->getId())\n ->setRedirectUrl($redirectUrl)\n ->setLastRealOrderId($order->getIncrementId());\n\n // as well a billing agreement can be created\n $agreement = $order->getPayment()->getBillingAgreement();\n if ($agreement) {\n $this->_checkoutSession->setLastBillingAgreementId($agreement->getId());\n }\n }\n\n // add recurring profiles information to the session\n $profiles = $service->getRecurringPaymentProfiles();\n if ($profiles) {\n $ids = array();\n foreach ($profiles as $profile) {\n $ids[] = $profile->getId();\n }\n $this->_checkoutSession->setLastRecurringProfileIds($ids);\n // TODO: send recurring profile emails\n }\n\n Mage::dispatchEvent(\n 'checkout_submit_all_after',\n array('order' => $order, 'quote' => $this->getQuote(), 'recurring_profiles' => $profiles)\n );\n\n return $this;\n }", "function create() {\n\n if ( ! authCheck(['salesperson', 'manager']) ) {\n\n return json_encode(['success' => false, 'authorised' => false]);\n\n } else {\n\n $requestBody = file_get_contents('php://input');\n $data = json_decode($requestBody);\n\n // make quote\n $quote = new \\App\\Quote;\n $quote->owner = $_COOKIE['userid'];\n $quote->customer_name = getPropertySafely($data, 'customer_name');\n $quote->address = getPropertySafely($data, 'address');\n $quote->date = (getPropertySafely($data, 'date')) ? getPropertySafely($data, 'date') . ' 00:00:00': '1970-01-01 00:00:00';\n $quote->appointment_number = getPropertySafely($data, 'appointment_number');\n $quote->product_price = getPropertySafely($data, 'total_product_price');\n $quote->installation_price = getPropertySafely($data, 'total_installation_price');\n $quote->cost_price = getPropertySafely($data, 'total_price');\n $quote->save();\n $quoteId = $quote->id;\n\n foreach($data->products as $productName => $product) {\n\n foreach ($product as $rowId => $row) {\n\n // make quote product (\"Item\")\n $quoteProduct = new \\App\\QuoteProduct;\n $quoteProduct->quote_id = $quoteId;\n $quoteProduct->product = $productName;\n $quoteProduct->row = $rowId;\n $quoteProduct->save();\n $quoteProductId = $quoteProduct->id;\n\n foreach ($row as $settingName => $value) {\n\n // make quote product setting (could specify product to remove quote products table)\n $qpSetting = new \\App\\QuoteProductSetting;\n $qpSetting->quote_id = $quoteId;\n $qpSetting->quote_product_id = $quoteProductId;\n $qpSetting->setting = $settingName;\n if ($settingName == \"location\" || $settingName == \"description\" ) {\n $qpSetting->valueString = $value;\n } else {\n $qpSetting->value = $value;\n }\n $qpSetting->save();\n\n }\n }\n }\n\n //die();\n \n return json_encode(['success' => true, 'id' => $quoteId]);\n }\n }", "function saveBankToken($billing)\n {\n $this->db->insert(\"tbl_account_detail\", $billing);\n }", "public function insert_purchase_info($order_id = NUll)\n\t{\n\t\tif (!$this->Admin_model->is_admin_loged_in()) \n\t\t{\n\t\t\tredirect('Adminlogin/?logged_in_first');\n\t\t}else{\n\t\t\tif($this->admin_access('purchase_entry') != 1){\n\t\t\t\t$data['warning_msg']=\"You Are Not able to Access this Module...!\";\n\t\t\t\t$this->session->set_flashdata($data);\n\t\t\t\tredirect('purchase/dashboard');\n\t\t\t}\n\n\t\t\t$data['title'] = 'New Purchase Information'; \n\t\t\t$data['content'] = 'purchase/create_purchase';\n\t\t\t$data['customers'] = $this->Customer_model->find_all_customer_info();\n\t\t\t$data['lc_data'] = $this->LC_model->get_all_lc_info();\n\t\t\t$data['supplires'] = $this->Supplier_model->find_all_supplier_info();\n\t\t\t$data['heads'] = $this->IE_head_model->get_all_head_info('C');\n\t\t\tif(!is_null($order_id)){\n\t\t\t\t$data['order'] = $this->Order_model->order_info_by_id($order_id);\n\t\t\t}\n\t\t\t$data['pus_sl'] = $this->Purchase_model->purchase_sl_create();\n $data['purchases']\t= $this->Purchase_model->get_purchase_info();\n\t\t\t$this->load->view('admin/adminMaster', $data);\n\t\t}\t\n\t}", "function save()\n {\n $GLOBALS['DB']->exec(\"INSERT INTO stores (store_name) VALUES (\n '{$this->getStoreName()}'\n );\");\n\n $this->id = $GLOBALS['DB']->lastInsertId();\n }", "public function store()\n\t{ \n $nextId = OrdenEsM::nextId();\n $input = Input::all();\n $ordenD = new OrdenEsD();\n $ordenD->upc = $input['upc'];\n $ordenD->epc = $input['epc'];\n $ordenD->quantity = $input['quantity'];\n $ordenD->created_at = $input['created_at'];\n $ordenD->updated_at = $input['updated_at'];\n $ordenD->orden_es_m_id = $nextId;\n $ordenD->save();\n\t}", "public function captureOrder(\\TPkgShopPaymentTransactionManager $transactionManager, \\TdbShopOrder $order);", "public function saveDisputeContents($order,$timestamp,$message,$autor){\n dibi::insert('disputes', array('order' => $order, 'message' => $message,\n 'timestamp' => $timestamp, 'autor' => $autor))->execute();\n }", "public function placeOrderAction() {\n\t\tif ($this->_checkPk ()) {\n\t\t\t$this->_redirect ( \"checkout/cart\" );\n\t\t\treturn $this;\n\t\t}\n\t\tif ($this->getRequest ()->isPost ()) {\n\t\t\t$post = $this->getRequest ()->getPost ();\n\t\t\tMage::getSingleton ( 'customer/session' )->setExprsFormData ( $post );\n\t\t\t\n\t\t\t$translate = Mage::getSingleton ( 'core/translate' );\n\t\t\t/* @var $translate Mage_Core_Model_Translate */\n\t\t\t$translate->setTranslateInline ( false );\n\t\t\ttry {\n\t\t\t\t$quote = $this->getQuote ();\n\t\t\t\t$postObject = new Varien_Object ();\n\t\t\t\t$postObject->setData ( $post );\n\t\t\t\t\n\t\t\t\t$error = false;\n\t\t\t\t\n\t\t\t\tif (! Zend_Validate::is ( trim ( $post ['longaccesstoken'] ), 'NotEmpty' )) {\n\t\t\t\t\t$error = true;\n\t\t\t\t}\n\t\t\t\tif (! Zend_Validate::is ( trim ( $post ['cards'] ), 'NotEmpty' )) {\n\t\t\t\t\t$error = true;\n\t\t\t\t}\n\t\t\t\tif (! $quote->getIsVirtual ()) {\n\t\t\t\t\t\n\t\t\t\t\tif (! Zend_Validate::is ( trim ( $post ['address'] ), 'NotEmpty' ) && ! $post ['shipping']) {\n\t\t\t\t\t\t$error = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($error) {\n\t\t\t\t\tthrow new Exception ();\n\t\t\t\t} else {\n\t\t\t\t\t$precheckoutData = Mage::helper ( 'masterpass' )->postExpressCheckoutData ( $post );\n\t\t\t\t\t$precheckoutData = json_decode ( json_encode ( ( array ) $precheckoutData ), 1 );\n\t\t\t\t\tif (empty ( $precheckoutData )) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// remove longaccesstoken\n\t\t\t\t\t\t// save long access token\n\t\t\t\t\t\t$customer = Mage::getSingleton ( 'customer/session' )->getCustomer ();\n\t\t\t\t\t\t$customerData = Mage::getModel ( 'customer/customer' )->load ( $customer->getId () );\n\t\t\t\t\t\t$longAccessToken = null;\n\t\t\t\t\t\t$customerData->setData ( 'longtoken', $longAccessToken );\n\t\t\t\t\t\t\n\t\t\t\t\t\t$customerData->save ();\n\t\t\t\t\t\tMage::getSingleton ( 'core/session' )->addError ( Mage::getStoreConfig ( 'masterpass/config/checkouterrormessage' ) );\n\t\t\t\t\t\t$this->_redirect ( 'checkout/cart' );\n\t\t\t\t\t\treturn $this;\n\t\t\t\t\t}\n\t\t\t\t\tif (! empty ( $precheckoutData ['Checkout'] )) {\n\t\t\t\t\t\t$this->savePrecheckoutData ( $precheckoutData );\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$customer = Mage::getSingleton ( 'customer/session' )->getCustomer ();\n\t\t\t\t\t\t$customerData = Mage::getModel ( 'customer/customer' )->load ( $customer->getId () );\n\t\t\t\t\t\t$customerData->save ();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (isset ( $precheckoutData ['Errors'] ['Error'] ['Source'] )) {\n\t\t\t\t\t\t\tif ($precheckoutData ['Errors'] ['Error'] ['Source'] == \"3DS Needed\") {\n\t\t\t\t\t\t\t\tthrow new Mage_Core_Exception ( \"3DS Needed\" );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch ( Mage_Core_Exception $e ) {\n\t\t\t\tif ($e->getMessage () == \"3DS Needed\") {\n\t\t\t\t\tMage::getSingleton ( 'core/session' )->setExpSecure ( true );\n\t\t\t\t} else {\n\t\t\t\t\tMage::getSingleton ( 'core/session' )->setExpSecure ( false );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (isset ( $postback_data )) {\n\t\t\t\t\t$TransactionStatus = 'Failure';\n\t\t\t\t\tMage::helper ( 'masterpass' )->postTransaction ( $postback_data, $TransactionStatus, self::APPROVAL_CODE );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$this->_redirect ( 'masterpass/masterpasspairing/precheckout' );\n\t\t\t}\n\t\t} else {\n\t\t\t$generic_error_message = Mage::getStoreConfig ( 'masterpass/config/checkouterrormessage' );\n\t\t\tMage::getSingleton ( 'core/session' )->addError ( $generic_error_message );\n\t\t\t$this->_redirect ( 'masterpass/masterpasspairing/precheckout' );\n\t\t}\n\t}", "public static function saveCustomer($data) {\n $objCustomer = new Customer();\n $objCustomer->setFirstname($data['firstname']);\n $objCustomer->setLastname($data[\"lastname\"]);\n $objCustomer->setEmail($data[\"email\"]);\n $objCustomer->setTelephone($data[\"telephone\"]);\n $objCustomer->setFax($data[\"fax\"]);\n $objCustomer->setPassword($data[\"password\"]);\n $objCustomer->setStoreId(1);\n $objCustomer->setSalt(\"\");\n $objCustomer->setCart(\"\");\n $objCustomer->setWishlist(\"\");\n $objCustomer->setNewsletter(0);\n $objCustomer->setAddressId(0);\n $objCustomer->setCustomerGroupId(1);\n $objCustomer->setIp($_SERVER['REMOTE_ADDR']);\n $objCustomer->setStatus(1);\n $objCustomer->setApproved(1);\n $objCustomer->setToken(\"\");\n $objCustomer->setDateAdded(date(\"Y-m-d H;i:s\"));\n\n $customerResult = $objCustomer->save(); // Save customer information\n\n $customerId = $objCustomer->getCustomerId();\n if($customerResult['success']){\n $objCustomerAddress = new CustomerAddress();\n $objCustomerAddress->setCustomerId($customerId);\n $objCustomerAddress->setFirstname($data[\"firstname\"]);\n $objCustomerAddress->setLastname($data[\"lastname\"]);\n $objCustomerAddress->setCompanyId($data[\"company\"]);\n $objCustomerAddress->setAddress1($data[\"address_1\"]);\n $objCustomerAddress->setAddress2($data[\"address_2\"]);\n $objCustomerAddress->setCity($data[\"city\"]);\n $objCustomerAddress->setPostcode($data[\"postcode\"]);\n $objCustomerAddress->setCountryId($data[\"country\"]);\n $objCustomerAddress->setZoneId($data[\"zone_id\"]);\n $objCustomerAddress->setTaxId(0);\n\n $result = $objCustomerAddress->save();// Save Customer Address information\n\n $addressId = $objCustomerAddress->getAddressId();\n\n $customerInfoObj = Customer::loadById($customerId);\n $objCustomer = new Customer();\n $objCustomer->setCustomerId($customerId);\n $objCustomer->setFirstname($customerInfoObj->getFirstname());\n $objCustomer->setLastname($customerInfoObj->getLastname());\n $objCustomer->setEmail($customerInfoObj->getEmail());\n $objCustomer->setTelephone($customerInfoObj->getTelephone());\n $objCustomer->setFax($customerInfoObj->getFax());\n $objCustomer->setPassword($customerInfoObj->getPassword());\n $objCustomer->setStoreId($customerInfoObj->getStoreId());\n $objCustomer->setSalt($customerInfoObj->getSalt());\n $objCustomer->setCart($customerInfoObj->getCart());\n $objCustomer->setWishlist($customerInfoObj->getWishlist());\n $objCustomer->setNewsletter($customerInfoObj->getNewsletter());\n $objCustomer->setAddressId($addressId);\n $objCustomer->setCustomerGroupId($customerInfoObj->getCustomerGroupId());\n $objCustomer->setIp($_SERVER['REMOTE_ADDR']);\n $objCustomer->setStatus($customerInfoObj->getStatus());\n $objCustomer->setApproved($customerInfoObj->getApproved());\n $objCustomer->setToken($customerInfoObj->getToken());\n $objCustomer->setDateAdded($customerInfoObj->getDateAdded());\n\n return $objCustomer->save(); // Save customer information\n }\n }", "public function saveCustomerComment()\n {\n\t$comment = Mage::app()->getRequest()->getParam('comment', null);\n\tif($comment && strlen(trim($comment))) {\n\t $this->_checkoutSession->setData('customer_comment', $comment);\n\t} else {\n\t $this->_checkoutSession->unsetData('customer_comment');\n\t}\n }", "public function saveNew(&$quote)\n\t{\n\t\t$sucess = true;\n\t\t$db_connection = get_db_connection();\n\t\t$author = $quote->get_author();\n\t\t$text = $quote->get_quote_text();\n\t\t$month_posted = $quote->get_month_posted();\n\t\t$year_posted = $quote->get_year_posted();\n\t\t$table = $this->getTableName();\n\t\t\n\t\t// The id will be auto-generated, when the new object is added to the database table.\n\t\t$query = \"insert into $table (author, quote_text, month_posted, year_posted) \n\t\t\t\tvalues('$author', '$text', '$month_posted', '$year_posted')\";\n\t\t$result = mysqli_query($db_connection, $query);\n\n\t\tif($result)\n\t\t{\n\t\t\t// get the newly generated id\n\t\t\t$quote_id = mysqli_insert_id($db_connection);\n\t\t\t$quote->set_quote_id(quote_id);\t\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sucess = false;\n\t\t\techo '<p>' . mysqli_error($db_connection) . '</p>';\n\t\t}\n\n\t\tmysqli_close($db_connection);\n\t\treturn $sucess;\n\t\t\n\t}", "public function saveCartItems() {\n $order_id = $this->_order->check_cart($this->_auth->id);\n //echo '<pre>';\n //var_dump($this->_items);\n \n $order_data = array('user_id' => $this->_auth->id, 'order_status'=>'incomplete', 'ip'=>$_SERVER[\"REMOTE_ADDR\"],\n 'items' => serialize($this->_items)\n );\n //udpate order table\n if ($order_id) {\n $order_data['date_modified'] = date(\"Y-m-d H:i:s\");\n $this->_order->update($order_data, $order_id);\n } else {\n $order_data['date_added'] = date(\"Y-m-d H:i:s\");\n $order_id = $this->_order->save($order_data);\n }\n // echo $order_id; \n }", "public function save_donation();" ]
[ "0.6548253", "0.6534452", "0.625877", "0.6206583", "0.6163551", "0.6133944", "0.6111372", "0.6100383", "0.60627747", "0.60495", "0.60291576", "0.59329224", "0.5926883", "0.59221417", "0.59219086", "0.59196496", "0.59079766", "0.5906571", "0.5895255", "0.5869619", "0.58536214", "0.5849446", "0.5826278", "0.5808301", "0.5792551", "0.57902604", "0.5771754", "0.57493794", "0.5725525", "0.57203263", "0.57163626", "0.5715542", "0.5702433", "0.5663661", "0.5661701", "0.5659431", "0.565726", "0.5643866", "0.56339216", "0.56325686", "0.56157285", "0.5611398", "0.55989045", "0.55794364", "0.55721015", "0.55677366", "0.55591506", "0.5548023", "0.5530624", "0.55010587", "0.548635", "0.5474639", "0.5466931", "0.5463492", "0.546141", "0.54582125", "0.5445881", "0.54310095", "0.5428771", "0.5425423", "0.54185534", "0.5409062", "0.54060155", "0.5403529", "0.53954333", "0.5393466", "0.53893304", "0.5389307", "0.5387201", "0.5385673", "0.53841645", "0.5383961", "0.5383188", "0.53814566", "0.5373041", "0.53655356", "0.53627414", "0.5359942", "0.5358263", "0.5357928", "0.5349901", "0.5342814", "0.53426826", "0.5342106", "0.5340414", "0.5336599", "0.533269", "0.5332206", "0.5326818", "0.5321733", "0.5320625", "0.53110415", "0.53075314", "0.5306335", "0.5304916", "0.53027064", "0.5286862", "0.52781063", "0.52765113", "0.52762264" ]
0.6608938
0
add address template to billing step
public function appendAddressDataToBillingStep($observer) { if( false === Mage::getModel('postident/config')->isEnabled() || false === Mage::getModel('postident/config')->getAddressDataUsage()) { return; } if ($observer->getBlock() instanceof Mage_Checkout_Block_Onepage_Billing && false == $observer->getBlock() instanceof Mage_Paypal_Block_Express_Review_Billing ) { $transport = $observer->getTransport(); $block = $observer->getBlock(); $layout = $block->getLayout(); $html = $transport->getHtml(); $addAddressTemplateHtml = $layout->createBlock( 'postident/checkout_onepage_billing', 'postident_onepage_billing') ->renderView(); $html = $html . $addAddressTemplateHtml; $transport->setHtml($html); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function additional_paragraph_after_billing_address_1( $field, $key, $args, $value ){\r\n if ( is_checkout() && $key == 'billing_address_1' ) {\r\n $field .= '<p class=\"form-row red_text\" style=\"color:red;\">\r\n Ingresa tu dirección y pon \"Buscar\" o usa el mapa para ubicar tu dirección de envío</p>\r\n ';\r\n \r\n }\r\n return $field;\r\n}", "function roomify_conversations_add_booking_address() {\n field_info_cache_clear();\n\n // \"booking_address\" field.\n if (field_read_field('booking_address') === FALSE) {\n $field = array(\n 'field_name' => 'booking_address',\n 'type' => 'addressfield',\n 'cardinality' => 1,\n 'locked' => 1,\n 'settings' => array(),\n );\n field_create_field($field);\n }\n\n field_cache_clear();\n\n // \"booking_address\" field instance.\n if (field_read_instance('bat_booking', 'booking_address', 'conversation_booking') === FALSE) {\n $instance = array(\n 'field_name' => 'booking_address',\n 'entity_type' => 'bat_booking',\n 'label' => 'Address',\n 'bundle' => 'conversation_booking',\n 'required' => FALSE,\n 'widget' => array(\n 'type' => 'addressfield_standard',\n 'settings' => array(\n 'default_country' => '',\n ),\n ),\n );\n field_create_instance($instance);\n }\n}", "public function appendAddressDataToShippingStep($observer)\n {\n if( false === Mage::getModel('postident/config')->isEnabled()\n || false === Mage::getModel('postident/config')->getAddressDataUsage()) {\n return;\n }\n \n if ($observer->getBlock() instanceof Mage_Checkout_Block_Onepage_Shipping\n && false == $observer->getBlock() instanceof Mage_Paypal_Block_Express_Review_Shipping\n ) {\n $transport = $observer->getTransport();\n $block = $observer->getBlock();\n $layout = $block->getLayout();\n $html = $transport->getHtml();\n $addAddressTemplateHtml = $layout->createBlock(\n 'postident/checkout_onepage_shipping', 'postident_onepage_billing')\n ->renderView();\n $html = $html . $addAddressTemplateHtml;\n $transport->setHtml($html);\n }\n }", "private function addAddress($options)\n {\n $address = $options['billing_address']\n ?: $options['address'];\n\n $this->post['card']['address_line1'] = $address['address1'];\n $this->post['card']['address_line2'] = $address['address2'];\n $this->post['card']['address_city'] = $address['city'];\n $this->post['card']['address_postcode'] = $address['zip'];\n $this->post['card']['address_state'] = $address['state'];\n $this->post['card']['address_country'] = $address['country'];\n }", "function addAddressBookEntry($customer_id, $address_question_arr, $make_default = false) {\n // first get the zone id's from the 2 digit iso codes\n // country first\n $country_query = tep_db_query('SELECT countries_id, address_format_id\n FROM ' . TABLE_COUNTRIES . '\n WHERE countries_name = \\'' . $address_question_arr['country'] . '\\'\n LIMIT 1');\n\n // see if we found a record, if not default to American format\n if (tep_db_num_rows($country_query) > 0) {\n $country = tep_db_fetch_array($country_query);\n // grab the country id and address format\n $country_id = $country['countries_id'];\n $address_format_id = $country['address_format_id'];\n } else {\n // default\n $country_id = '223';\n $address_format_id = '2'; //2 is the American format\n }\n\n // see if the country code has a state\n $country_zone_check_query = tep_db_query('SELECT zone_country_id\n FROM ' . TABLE_ZONES . '\n WHERE zone_country_id = \\'' . $country_id . '\\'\n LIMIT 1');\n if (tep_db_num_rows($country_zone_check_query) > 0) {\n $check_zone = true;\n } else {\n $check_zone = false;\n }\n\n // now try and find the zone_id (state/province code)\n // use the country id above\n if ($check_zone) {\n $zone_query = tep_db_query('SELECT zone_id\n FROM ' . TABLE_ZONES . '\n WHERE zone_country_id = \\'' . $country_id . '\\' AND\n zone_code = \\'' . $address_question_arr['state'] . '\\'\n LIMIT 1');\n if (tep_db_num_rows($zone_query) > 0) {\n // grab the id\n $zone = tep_db_fetch_array($zone_query);\n $zone_id = $zone['zone_id'];\n } else {\n $check_zone = false;\n }\n }\n\n // now run the insert\n // this isnt the best way but it will get the majority of cases\n list($fname, $lname) = explode(' ', $address_question_arr['name']);\n if ($check_zone) {\n tep_db_query('INSERT INTO ' . TABLE_ADDRESS_BOOK . '\n (address_book_id, customers_id, entry_gender, entry_firstname, entry_lastname,\n entry_street_address, entry_suburb, entry_postcode, entry_city, entry_country_id,\n entry_zone_id)\n VALUES\n (NULL, \\'' . $customer_id . '\\', \\'\\', \\'' . $fname . '\\', \\'' . $lname . '\\',\n \\'' . $address_question_arr['street_address'] . '\\', \\'' . $address_question_arr['suburb'] . '\\',\n \\'' . $address_question_arr['postcode'] . '\\', \\'' . $address_question_arr['city'] . '\\',\n \\'' . $country_id . '\\', \\'' . $zone_id . '\\')');\n } else {\n tep_db_query('INSERT INTO ' . TABLE_ADDRESS_BOOK . '\n (address_book_id, customers_id, entry_gender, entry_firstname, entry_lastname,\n entry_street_address, entry_suburb, entry_postcode, entry_city, entry_country_id)\n VALUES\n (NULL, \\'' . $customer_id . '\\', \\'\\', \\'' . $fname . '\\', \\'' . $lname . '\\',\n \\'' . $address_question_arr['street_address'] . '\\', \\'' . $address_question_arr['suburb'] . '\\',\n \\'' . $address_question_arr['postcode'] . '\\', \\'' . $address_question_arr['city'] . '\\',\n \\'' . $country_id . '\\')');\n }\n $address_book_id = tep_db_insert_id();\n\n // make default if set, update\n if ($make_default) {\n tep_db_query('UPDATE '. TABLE_CUSTOMERS . '\n SET customers_default_address_id = \\'' . $address_book_id . '\\'\n WHERE customers_id = \\'' . $customer_id . '\\'');\n $_SESSION['customer_default_address_id'] = $address_book_id;\n }\n\n // set the sendto\n $_SESSION['sendto'] = $address_book_id;\n\n // return the address_id\n return $address_book_id;\n }", "public function addAddress()\r\n {\r\n if ($this->_helper()->checkSalesVersion('1.4.0.0')) {\r\n # Community after 1.4.1.0 and Enterprise\r\n $salesFlatOrderAddress = $this->_helper()->getSql()->getTable('sales_flat_order_address');\r\n $this->getSelect()\r\n ->joinLeft(array('flat_order_addr_ship' => $salesFlatOrderAddress), \"flat_order_addr_ship.parent_id = main_table.entity_id AND flat_order_addr_ship.address_type = 'shipping'\", array())\r\n ->joinLeft(array('flat_order_addr_bill' => $salesFlatOrderAddress), \"flat_order_addr_bill.parent_id = main_table.entity_id AND flat_order_addr_bill.address_type = 'billing'\", array())\r\n ->columns(array('country_id' => 'IFNULL(flat_order_addr_ship.country_id, flat_order_addr_bill.country_id)'))\r\n ->group('country_id');\r\n } else {\r\n # Old Community\r\n $entityValue = $this->_helper()->getSql()->getTable('sales_order_entity_varchar');\r\n $entityAtribute = $this->_helper()->getSql()->getTable('eav_attribute');\r\n $entityType = $this->_helper()->getSql()->getTable('eav_entity_type');\r\n $orderEntity = $this->_helper()->getSql()->getTable('sales_order_entity');\r\n\r\n $this->getSelect()\r\n ->joinLeft(array('_eavType' => $entityType), \"_eavType.entity_type_code = 'order_address'\", array())\r\n ->joinLeft(array('_addrTypeAttr' => $entityAtribute), \"_addrTypeAttr.entity_type_id = _eavType.entity_type_id AND _addrTypeAttr.attribute_code = 'address_type'\", array())\r\n ->joinLeft(array('_addrValueAttr' => $entityAtribute), \"_addrValueAttr.entity_type_id = _eavType.entity_type_id AND _addrValueAttr.attribute_code = 'country_id'\", array())\r\n\r\n # Shipping values\r\n ->joinRight(array('_orderEntity_ship' => $orderEntity), \"_orderEntity_ship.entity_type_id = _eavType.entity_type_id AND _orderEntity_ship.parent_id = e.entity_id\", array())\r\n ->joinRight(array('_addrTypeVal_ship' => $entityValue), \"_addrTypeVal_ship.attribute_id = _addrTypeAttr.attribute_id AND _addrTypeVal_ship.entity_id = _orderEntity_ship.entity_id AND _addrTypeVal_ship.value = 'shipping'\", array())\r\n ->joinRight(array('_addrCountryVal_ship' => $entityValue), \"_addrCountryVal_ship.attribute_id = _addrValueAttr.attribute_id AND _addrCountryVal_ship.entity_id = _orderEntity_ship.entity_id\", array())\r\n\r\n # Billing values\r\n ->joinRight(array('_orderEntity_bill' => $orderEntity), \"_orderEntity_bill.entity_type_id = _eavType.entity_type_id AND _orderEntity_bill.parent_id = e.entity_id\", array())\r\n ->joinRight(array('_addrTypeVal_bill' => $entityValue), \"_addrTypeVal_bill.attribute_id = _addrTypeAttr.attribute_id AND _addrTypeVal_bill.entity_id = _orderEntity_bill.entity_id AND _addrTypeVal_bill.value = 'billing'\", array())\r\n ->joinRight(array('_addrCountryVal_bill' => $entityValue), \"_addrCountryVal_bill.attribute_id = _addrValueAttr.attribute_id AND _addrCountryVal_bill.entity_id = _orderEntity_bill.entity_id\", array())\r\n\r\n ->columns(array('country_id' => 'IFNULL(_addrCountryVal_ship.value, _addrCountryVal_bill.value)'))\r\n ->group('country_id');\r\n }\r\n return $this;\r\n }", "function edd_stripe_setup_billing_address_fields() {\n\n\tif( ! function_exists( 'edd_use_taxes' ) ) {\n\t\treturn;\n\t}\n\n\tif( edd_use_taxes() || 'stripe' !== edd_get_chosen_gateway() || ! edd_get_cart_total() > 0 ) {\n\t\treturn;\n\t}\n\n\t$display = edd_get_option( 'stripe_billing_fields', 'full' );\n\n\tswitch( $display ) {\n\n\t\tcase 'full' :\n\n\t\t\t// Make address fields required\n\t\t\tadd_filter( 'edd_require_billing_address', '__return_true' );\n\n\t\t\tbreak;\n\n\t\tcase 'zip_country' :\n\n\t\t\tremove_action( 'edd_after_cc_fields', 'edd_default_cc_address_fields', 10 );\n\t\t\tadd_action( 'edd_after_cc_fields', 'edd_stripe_zip_and_country', 9 );\n\n\t\t\t// Make Zip required\n\t\t\tadd_filter( 'edd_purchase_form_required_fields', 'edd_stripe_require_zip_and_country' );\n\n\t\t\tbreak;\n\n\t\tcase 'none' :\n\n\t\t\tremove_action( 'edd_after_cc_fields', 'edd_default_cc_address_fields', 10 );\n\n\t\t\tbreak;\n\n\t}\n\n}", "public function idc_authnet_add_address($customer_payment_profile, $fields, $line) {\r\n\t\tglobal $avs;\r\n\t\t// if AVS (Address verification system) is turned on, add address in billing\r\n\t\tif (isset($avs) && $avs) {\r\n\t\t\t// echo \"fields: \"; print_r($fields); echo \"\\n\";\r\n\t\t\tforeach ($fields as $field) {\r\n\t\t\t\t// Address 1 field storing\r\n\t\t\t\tif ($field['name'] == \"idc_address_1\") {\r\n\t\t\t\t\t$idc_address_1 = sanitize_text_field($field['value']);\r\n\t\t\t\t}\r\n\t\t\t\t// Address 2 field storing\r\n\t\t\t\tif ($field['name'] == \"idc_address_2\") {\r\n\t\t\t\t\tif (!empty($field['value'])) {\r\n\t\t\t\t\t\t$idc_address_2 = sanitize_text_field($field['value']);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// State field storing\r\n\t\t\t\tif ($field['name'] == \"idc_address_city\") {\r\n\t\t\t\t\t$idc_address_city = sanitize_text_field($field['value']);\r\n\t\t\t\t}\r\n\t\t\t\t// City field storing\r\n\t\t\t\tif ($field['name'] == \"idc_address_state\") {\r\n\t\t\t\t\t$idc_address_state = sanitize_text_field($field['value']);\r\n\t\t\t\t}\r\n\t\t\t\t// Zip code field storing\r\n\t\t\t\tif ($field['name'] == \"idc_address_zip_code\") {\r\n\t\t\t\t\t$idc_address_zip_code = sanitize_text_field($field['value']);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$address_1 = apply_filters('idc_authnet_address_1_filter', $idc_address_1);\r\n\t\t\t$address_2 = apply_filters('idc_authnet_address_2_filter', ((isset($idc_address_2)) ? $idc_address_2 : ''));\r\n\t\t\t$address_city = apply_filters('idc_authnet_address_city_filter', $idc_address_city);\r\n\t\t\t$address_state = apply_filters('idc_authnet_address_state_filter', $idc_address_state);\r\n\t\t\t$address_zip_code = apply_filters('idc_authnet_address_zip_code_filter', $idc_address_zip_code);\r\n\r\n\t\t\t// Adding it to payment_profile\r\n\t\t\t$customer_payment_profile->billTo->address = $address_1 . \" \" . $address_2;\r\n\t\t\t$customer_payment_profile->billTo->city = $address_city;\r\n\t\t\t$customer_payment_profile->billTo->state = $address_state;\r\n\t\t\t$customer_payment_profile->billTo->zip = $address_zip_code;\r\n\r\n\t\t\tunset ($customer_payment_profile->payment->bankAccount);\r\n\t\t}\r\n\t\t// echo \"customer_payment_profile: \"; print_r($customer_payment_profile); echo \"\\n\";\r\n\r\n\t\treturn $customer_payment_profile;\r\n\t}", "function address_shortcode() {\n ob_start();\n get_template_part('address');\n return ob_get_clean();\n}", "function default_template_shipping ()\r\n{\r\n$template = '\r\n{shipping_content alias=$shipping_alias}\r\n';\r\nreturn $template;\r\n}", "public function setBillingAddressAction()\n {\n $data = $this->Request()->getParams();\n\n /** @var Shopware\\Models\\Customer\\Customer $customerModel */\n $customerModel = Shopware()->Models()->find('Shopware\\Models\\Customer\\Customer', $data['userId']);\n\n $billingAddressModel = $customerModel->getBilling();\n\n $billingAddressModel->fromArray($data);\n\n Shopware()->Models()->persist($billingAddressModel);\n Shopware()->Models()->flush();\n\n $this->view->assign(['billingAddressId' => $billingAddressModel->getId()]);\n }", "protected function _toHtml()\n {\n $addressType = $this->getType() ? $this->getType() : 'billing';\n $isGuest = $this->getIsGuest();\n\n /** @var $formXmlObj Mage_XmlConnect_Model_Simplexml_Form */\n $formXmlObj = Mage::getModel('xmlconnect/simplexml_form', array(\n 'xml_id' => $addressType, 'action' => '', 'use_container' => true\n ))->setFieldNameSuffix($addressType);\n\n /** @var $formFieldset Mage_XmlConnect_Model_Simplexml_Form_Element_Fieldset */\n $formFieldset = $formXmlObj->addFieldset($addressType);\n\n $formFieldset->addField('firstname', 'text', array(\n 'name' => 'firstname', 'label' => $this->__('First Name'), 'required' => '1'\n ));\n\n $formFieldset->addField('lastname', 'text', array(\n 'name' => 'lastname', 'label' => $this->__('Last Name'), 'required' => '1'\n ));\n\n $formFieldset->addField('company', 'text', array(\n 'name' => 'company', 'label' => $this->__('Company'), 'required' => '1'\n ));\n\n if ($isGuest) {\n $emailField = $formFieldset->addField('email', 'text', array(\n 'name' => 'email', 'label' => $this->__('Email Address'), 'required' => '1'\n ));\n $emailValidator = $emailField->addValidator();\n $emailValidator->addRule(array('type' => 'email'));\n }\n\n $formFieldset->addField('street', 'text', array(\n 'name' => 'street[]',\n 'label' => $this->__('Address'),\n 'required' => '1',\n ));\n\n $formFieldset->addField('street_2', 'text', array(\n 'name' => 'street[]', 'label' => $this->__('Address 2')\n ));\n\n $formFieldset->addField('city', 'text', array(\n 'name' => 'city', 'label' => $this->__('City'), 'required' => '1'\n ));\n\n $formFieldset->addField('country_id', 'countryListSelect', array(\n 'name' => 'country_id', 'label' => $this->__('Country'), 'required' => '1',\n ));\n\n $formFieldset->addField('postcode', 'text', array(\n 'name' => 'postcode', 'label' => $this->__('Zip/Postal Code'), 'required' => '1'\n ));\n\n $formFieldset->addField('telephone', 'text', array(\n 'name' => 'telephone', 'label' => $this->__('Telephone'), 'required' => '1'\n ));\n\n $formFieldset->addField('fax', 'text', array('name' => 'fax', 'label' => $this->__('Fax')));\n\n // Add custom address attributes\n Mage::helper('xmlconnect/customer_form_renderer')->setAttributesBlockName('customer_address')\n ->setFormCode('customer_register_address')->setBlockEntity(Mage::getModel('sales/quote_address'))\n ->setBlockEntityType('customer_address')\n ->addCustomAttributes($formFieldset, $this->getLayout(), $addressType);\n\n $formFieldset->addField('save_in_address_book', 'checkbox', array(\n 'name' => 'save_in_address_book', 'label' => $this->__('Save in address book')\n ));\n\n return $formXmlObj->toXmlObject();\n }", "protected function processBillingAddress()\n {\n\n // Unlike in shipping address, on billing address there is a lot of different billing forms.\n // Each of these forms must be processed.\n foreach ($this->paymentsList as &$payment) {\n foreach ($this->fieldsConfig as $fieldName => $config) {\n if (!isset($payment['children']['form-fields'])) {\n continue;\n }\n\n if ('region' === $fieldName || 'region_id' === $fieldName) {\n $payment = $this->copyRegionLayoutFromShippingAddress($payment, $fieldName);\n }\n\n $field = &$payment['children']['form-fields']['children'][$fieldName];\n $this->configureField($field, 'billingAddress', $config);\n\n if ('street' === $fieldName) {\n $this->updateStreetFields($field, 'billingAddress');\n }\n }\n unset($payment['children']['form-fields']['children']['region_id']);\n }\n }", "public function billing()\n {\n\n //this is a good time to calc shippable items as the nbext screen will be for a shipping address\n $this->count_shippable_items();\n\n\n //customer is stil step 0\n $this->is_step(1) OR redirect( NC_ROUTE.'/checkout/');\n\n $this->load->helper('nitrocart/nitrocart_zone');\n $this->load->model('nitrocart/addresses_m');\n $data = new ViewObject();\n\n $this->form_validation->set_rules('useragreement', 'User Agreement', 'required|numeric|trim');\n\n\n // Initi the data\n foreach ($this->addresses_m->address_validation AS $rule)\n {\n $data->{$rule['field']} = $this->input->post($rule['field']);\n }\n\n $data->addresses = [];\n\n // if logged in get some fields from our profile\n if ($this->current_user)\n {\n $data = $this->get_existing_address('billing');\n }\n\n\n\n // Existing Adress\n if($this->input->post('selection') == 'existing')\n {\n $this->form_validation->set_rules('address_id', 'Address', 'required|numeric|trim');\n \n if ($this->form_validation->run())\n {\n\n $this->session->set_userdata('billing', $this->input->post('address_id'));\n\n if ($this->input->post('sameforshipping'))\n {\n\n $address_id = $this->input->post('address_id');\n\n if($this->validate_country_list_by_address_id( $address_id ))\n {\n //update this row to allow for shipping\n $this->addresses_m->doShippingAlso( $this->input->post('address_id') );\n //$this->session->set_userdata('shipping', $this->input->post('address_id'));\n $this->set_shipping_address_id( $address_id );\n $this->set_step(3); //+2\n redirect( NC_ROUTE. '/checkout/shipment');\n }\n else\n {\n $this->session->set_flashdata(JSONStatus::Error,'This product can not be shipped to your location.');\n redirect( NC_ROUTE.'/cart');\n }\n\n\n }\n\n $this->set_step(2); \n redirect( NC_ROUTE.'/checkout/shipping');\n }\n }\n\n\n\n // New Adress\n if($this->input->post('selection') == 'new')\n {\n\n $this->form_validation->set_rules( $this->addresses_m->address_validation );\n $this->form_validation->set_rules('state', 'State', 'callback_country_state_check');\n\n if ($this->form_validation->run())\n {\n $input = $this->input->post();\n $input['user_id'] = $this->session->userdata('user_id');\n\n $same_for_shipping = ($this->input->post('sameforshipping'))?1:0;\n //add the new address, note this is for billing\n $address_id = $this->addresses_m->create($input, 1, $same_for_shipping );\n\n $this->session->set_userdata('billing', $address_id);\n\n if ($same_for_shipping)\n {\n\n if($this->validate_country_list_by_address_id( $address_id ))\n { \n //$this->session->set_userdata('shipping', $address_id);\n $this->set_shipping_address_id( $address_id );\n\n $this->set_step(3); //+2\n redirect( NC_ROUTE.'/checkout/shipment');\n }\n else\n {\n $this->session->set_flashdata(JSONStatus::Error,'This product can not be shipped to your location.');\n redirect( NC_ROUTE.'/cart'); \n }\n }\n else\n {\n $this->set_step(2); \n redirect(NC_ROUTE.'/checkout/shipping'); \n }\n }\n else\n {\n //recall info that was entered\n foreach ($this->addresses_m->address_validation AS $rule)\n {\n $data->{$rule['field']} = $this->input->post($rule['field']);\n } \n }\n }\n\n $this->set_step(1);\n\n $this->template\n ->title(Settings::get('shop_name'),'billing') \n ->set_breadcrumb('User Account',NC_ROUTE.'/checkout')\n ->set_breadcrumb('Billing')\n ->build($this->theme_layout_path .'address_billing', $data);\n }", "private function addAddress($options)\n {\n if (!isset($options['address'])\n || !isset($options['billing_address'])\n ) {\n return false;\n }\n\n $address = isset($options['billing_address'])\n ? $options['billing_address']\n : $options['address'];\n\n $this->post['BillingStreet'] = isset($address['address1']) ? $address['address1'] : null;\n $this->post['BillingHouseNumber'] = isset($address['address2']) ? $address['address2'] : null;\n $this->post['BillingCity'] = isset($address['city']) ? $address['city'] : null;\n $this->post['BillingState'] = isset($address['state']) ? $address['state'] : null;\n $this->post['BillingPostCode'] = isset($address['zip']) ? $address['zip'] : null;\n }", "public function save_addressAction() {\r\n\t\t$billing_data = $this->getRequest()->getPost('billing', false);\r\n\t\t$shipping_data = $this->getRequest()->getPost('shipping', false);\r\n\t\t$shipping_method = $this->getRequest()->getPost('shipping_method', false);\r\n\t\t$billing_address_id = $this->getRequest()->getPost('billing_address_id', false);\t\r\n\t\t\r\n\t\t//load default data for disabled fields\r\n\t\tif (Mage::helper('onestepcheckout')->isUseDefaultDataforDisabledFields()) {\r\n\t\t\tMage::helper('onestepcheckout')->setDefaultDataforDisabledFields($billing_data);\r\n\t\t\tMage::helper('onestepcheckout')->setDefaultDataforDisabledFields($shipping_data);\r\n\t\t}\r\n\t\t\r\n\t\tif (isset($billing_data['use_for_shipping']) && $billing_data['use_for_shipping'] == '1') {\r\n\t\t\t$shipping_address_data = $billing_data;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$shipping_address_data = $shipping_data;\r\n\t\t}\r\n\t\t\r\n\t\t$billing_street = trim(implode(\"\\n\", $billing_data['street']));\r\n\t\t$shipping_street = trim(implode(\"\\n\", $shipping_address_data['street']));\r\n\t\t\r\n\t\tif(isset($billing_data['email'])) {\r\n\t\t\t$billing_data['email'] = trim($billing_data['email']);\r\n\t\t}\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t// Ignore disable fields validation --- Only for 1..4.1.1\r\n\t\t$this->setIgnoreValidation();\r\n\t\tif(Mage::helper('onestepcheckout')->isShowShippingAddress()) {\r\n\t\t\tif(!isset($billing_data['use_for_shipping']) || $billing_data['use_for_shipping'] != '1')\t{\t\t\r\n\t\t\t\t$shipping_address_id = $this->getRequest()->getPost('shipping_address_id', false);\r\n\t\t\t\t$this->getOnepage()->saveShipping($shipping_data, $shipping_address_id);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t$this->getOnepage()->saveBilling($billing_data, $billing_address_id);\r\n\t\tif($billing_data['country_id']){\r\n\t\t\tMage::getModel('checkout/session')->getQuote()->getBillingAddress()->setData('country_id',$billing_data['country_id'])->save();\r\n\t\t}\r\n\t\t//var_dump($billing_data['country_id']);die();\r\n\t\t//Mage::getModel('core/session')->setData('country',$billing_data['country_id']);\r\n\t\t// if different shipping address is enabled and customer ship to another address, save it\r\n\t\t\r\n\t\t\r\n\t\tif ($shipping_method && $shipping_method != '') {\r\n\t\t\tMage::helper('onestepcheckout')->saveShippingMethod($shipping_method);\r\n\t\t}\r\n\t\t$this->loadLayout(false);\r\n\t\t$this->renderLayout();\t\r\n\t}", "private function register_place_fields() {\n\n $address_children = [\n 'street_01' => new \\Fieldmanager_Textfield( esc_html__( 'Street Address', 'pedestal' ), [\n 'name' => 'street_01',\n ] ),\n 'street_02' => new \\Fieldmanager_Textfield( esc_html__( 'Street Address (Line 2)', 'pedestal' ), [\n 'name' => 'street_02',\n ] ),\n 'po_box' => new \\Fieldmanager_Textfield( esc_html__( 'P.O. Box Number', 'pedestal' ), [\n 'name' => 'po_box',\n 'description' => esc_html__( 'Include number only (no \"P.O.\" needed).', 'pedestal' ),\n ] ),\n 'postal_code' => new \\Fieldmanager_Textfield( esc_html__( 'Postal Code', 'pedestal' ), [\n 'name' => 'postal_code',\n ] ),\n ];\n $address = new \\Fieldmanager_Group( false, [\n 'name' => 'place_address',\n 'children' => $address_children,\n 'description' => esc_html__( 'Street address only. City info is entered in the Locality box below.', 'pedestal' ),\n 'serialize_data' => false,\n ] );\n\n $address->add_meta_box( esc_html__( 'Street Address', 'pedestal' ), [ 'pedestal_place' ], 'normal', 'high' );\n\n }", "private function _addBillingElement($order)\n {\n $billingAddress = $order->addChild('billingAddress');\n $this->_addAddressElement(\n $billingAddress,\n $this->billingAddress['firstName'],\n $this->billingAddress['lastName'],\n $this->billingAddress['street'],\n $this->billingAddress['postalCode'],\n $this->billingAddress['city'],\n $this->billingAddress['countryCode']\n );\n }", "public function getNewAddress($account = null);", "function add_address() {\n\t\t //$mailchimpform = mailchimpSF_signup_form();\n $cont .= '<span class=\"logo-address\">507 Kent Street, Utica, NY 13501 | (315) 797-2233 toll free (877) 719-9996</span>';\n\t \n\t echo $cont;\n }", "public function addAddress($address);", "public function updateCustomerAddressAction() {\n if(!Mage::app()->getRequest()->isAjax()){\n $this->norouteAction();\n exit;\n }\n\n $postData = $this->getRequest()->getPost();\n parse_str($postData['form'], $billing);\n\n $customer = $this->_getCustomer();\n\n $address = new Varien_Object();\n $address->addData(\n array(\n 'state' => $billing['state'],\n 'city' => $billing['city'],\n 'street' => $billing['street'],\n 'zip_code' => $billing['zipcode'],\n 'firstname' => $billing['firstname'],\n 'lastname' => $billing['lastname'],\n 'telephone' => $billing['telephone'],\n 'phone_number' => $billing['telephone'],\n 'country_code' => $billing['country_id'],\n )\n );\n\n $response = Mage::getModel(\"payments/api\")->updateBilling($customer->getId(), $address);\n $this->getResponse()->setBody(Mage::helper('core')->jsonEncode(array('token' => $response)));\n }", "function edd_stripe_update_billing_address_field() {\n\t$payment_mode = strtolower( edd_get_chosen_gateway() );\n\tif ( edd_is_checkout() && 'stripe' !== $payment_mode ) {\n\t\treturn;\n\t}\n\n\t$existing_cards = edd_stripe_get_existing_cards( get_current_user_id() );\n\tif ( empty( $existing_cards ) ) {\n\t\treturn;\n\t}\n\n\tif ( ! did_action( 'edd_stripe_cc_form' ) ) {\n\t\treturn;\n\t}\n\n\t$default_card = false;\n\n\tforeach ( $existing_cards as $existing_card ) {\n\t\tif ( $existing_card['default'] ) {\n\t\t\t$default_card = $existing_card['source'];\n\t\t\tbreak;\n\t\t}\n\t}\n\t?>\n\t<p class=\"edd-stripe-update-billing-address-current\">\n\t\t<?php\n\t\tif ( $default_card ) :\n\t\t\t$address_fields = array( \n\t\t\t\t'line1' => isset( $default_card->address_line1 ) ? $default_card->address_line1 : null,\n\t\t\t\t'line2' => isset( $default_card->address_line2 ) ? $default_card->address_line2 : null,\n\t\t\t\t'city' => isset( $default_card->address_city ) ? $default_card->address_city : null,\n\t\t\t\t'state' => isset( $default_card->address_state ) ? $default_card->address_state : null,\n\t\t\t\t'zip' => isset( $default_card->address_zip ) ? $default_card->address_zip : null,\n\t\t\t\t'country' => isset( $default_card->address_country ) ? $default_card->address_country : null,\n\t\t\t);\n\n\t\t\t$address_fields = array_filter( $address_fields );\n\n\t\t\techo esc_html( implode( ', ', $address_fields ) );\n\t\tendif;\n\t\t?>\n\t</p>\n\n\t<p class=\"edd-stripe-update-billing-address-wrapper\">\n\t\t<input type=\"checkbox\" name=\"edd_stripe_update_billing_address\" id=\"edd-stripe-update-billing-address\" value=\"1\" />\n\t\t<label for=\"edd-stripe-update-billing-address\"><?php _e( 'Enter new billing address', 'edds' ); ?></label>\n\t</p>\n\t<?php\n}", "public function getBillingAddress();", "public function getBillingAddress();", "public function addPickupOrderEmailTemplate()\n {\n $template = $this->templateFactory->create();\n $template->setTemplateCode('New Pickup Order');\n $template->setTemplateText($this->getEmailTemplate());\n $template->setTemplateType(TemplateTypesInterface::TYPE_HTML);\n $template->setTemplateSubject(\n '{{trans \"Your %store_name order confirmation\" store_name=$store.getFrontendName()}}'\n );\n $template->setOrigTemplateCode('sales_email_order_template');\n // @codingStandardsIgnoreLine\n $template->setOrigTemplateVariables('{\"var formattedBillingAddress|raw\":\"Billing Address\",\"var order.getEmailCustomerNote()\":\"Email Order Note\",\"var order.increment_id\":\"Order Id\",\"layout handle=\\\"sales_email_order_items\\\" order=$order area=\\\"frontend\\\"\":\"Order Items Grid\",\"var payment_html|raw\":\"Payment Details\",\"var formattedShippingAddress|raw\":\"Shipping Address\",\"var order.getShippingDescription()\":\"Shipping Description\",\"var shipping_msg\":\"Shipping message\"}');\n\n $this->templateResource->save($template);\n }", "function give_default_cc_address_fields( $form_id ) {\n\t// Get user info.\n\t$give_user_info = _give_get_prefill_form_field_values( $form_id );\n\n\tob_start();\n\t?>\n\t<fieldset id=\"give_cc_address\" class=\"cc-address\">\n\t\t<legend><?php echo apply_filters( 'give_billing_details_fieldset_heading', esc_html__( 'Billing Details', 'give' ) ); ?></legend>\n\t\t<?php\n\t\t/**\n\t\t * Fires while rendering credit card billing form, before address fields.\n\t\t *\n\t\t * @param int $form_id The form ID.\n\t\t *\n\t\t * @since 1.0\n\t\t *\n\t\t */\n\t\tdo_action( 'give_cc_billing_top' );\n\n\t\t// For Country.\n\t\t$selected_country = give_get_country();\n\t\tif ( ! empty( $give_user_info['billing_country'] ) && '*' !== $give_user_info['billing_country'] ) {\n\t\t\t$selected_country = $give_user_info['billing_country'];\n\t\t}\n\t\t$countries = give_get_country_list();\n\n\t\t// For state.\n\t\t$selected_state = '';\n\t\tif ( $selected_country === give_get_country() ) {\n\t\t\t// Get default selected state by admin.\n\t\t\t$selected_state = give_get_state();\n\t\t}\n\t\t// Get the last payment made by user states.\n\t\tif ( ! empty( $give_user_info['card_state'] ) && '*' !== $give_user_info['card_state'] ) {\n\t\t\t$selected_state = $give_user_info['card_state'];\n\t\t}\n\t\t// Get the country code.\n\t\tif ( ! empty( $give_user_info['billing_country'] ) && '*' !== $give_user_info['billing_country'] ) {\n\t\t\t$selected_country = $give_user_info['billing_country'];\n\t\t}\n\n\n\t\t// Get the country list that does not require city.\n\t\t$city_required = ! array_key_exists( $selected_country, give_city_not_required_country_list() );\n\n\t\t?>\n\t\t<p id=\"give-card-country-wrap\" class=\"form-row form-row-wide\">\n\t\t\t<label for=\"billing_country\" class=\"give-label\">\n\t\t\t\t<?php esc_html_e( 'Country', 'give' ); ?>\n\t\t\t\t<?php if ( give_field_is_required( 'billing_country', $form_id ) ) : ?>\n\t\t\t\t\t<span class=\"give-required-indicator\">*</span>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t<span class=\"give-tooltip give-icon give-icon-question\"\n\t\t\t\t data-tooltip=\"<?php esc_attr_e( 'The country for your billing address.', 'give' ); ?>\"></span>\n\t\t\t</label>\n\n\t\t\t<select\n\t\t\t\tname=\"billing_country\"\n\t\t\t\tautocomplete=\"country\"\n\t\t\t\tid=\"billing_country\"\n\t\t\t\tclass=\"billing-country billing_country give-select<?php echo( give_field_is_required( 'billing_country', $form_id ) ? ' required' : '' ); ?>\"\n\t\t\t\t<?php echo( give_field_is_required( 'billing_country', $form_id ) ? ' required aria-required=\"true\" ' : '' ); ?>\n\t\t\t>\n\t\t\t\t<?php\n\t\t\t\tforeach ( $countries as $country_code => $country ) {\n\t\t\t\t\techo '<option value=\"' . esc_attr( $country_code ) . '\"' . selected( $country_code, $selected_country, false ) . '>' . $country . '</option>';\n\t\t\t\t}\n\t\t\t\t?>\n\t\t\t</select>\n\t\t</p>\n\n\t\t<p id=\"give-card-address-wrap\" class=\"form-row form-row-wide\">\n\t\t\t<label for=\"card_address\" class=\"give-label\">\n\t\t\t\t<?php _e( 'Address 1', 'give' ); ?>\n\t\t\t\t<?php\n\t\t\t\tif ( give_field_is_required( 'card_address', $form_id ) ) :\n\t\t\t\t\t?>\n\t\t\t\t\t<span class=\"give-required-indicator\">*</span>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t<?php echo Give()->tooltips->render_help( __( 'The primary billing address for your credit card.', 'give' ) ); ?>\n\t\t\t</label>\n\n\t\t\t<input\n\t\t\t\ttype=\"text\"\n\t\t\t\tid=\"card_address\"\n\t\t\t\tname=\"card_address\"\n\t\t\t\tautocomplete=\"address-line1\"\n\t\t\t\tclass=\"card-address give-input<?php echo( give_field_is_required( 'card_address', $form_id ) ? ' required' : '' ); ?>\"\n\t\t\t\tplaceholder=\"<?php _e( 'Address line 1', 'give' ); ?>\"\n\t\t\t\tvalue=\"<?php echo isset( $give_user_info['card_address'] ) ? $give_user_info['card_address'] : ''; ?>\"\n\t\t\t\t<?php echo( give_field_is_required( 'card_address', $form_id ) ? ' required aria-required=\"true\" ' : '' ); ?>\n\t\t\t/>\n\t\t</p>\n\n\t\t<p id=\"give-card-address-2-wrap\" class=\"form-row form-row-wide\">\n\t\t\t<label for=\"card_address_2\" class=\"give-label\">\n\t\t\t\t<?php _e( 'Address 2', 'give' ); ?>\n\t\t\t\t<?php if ( give_field_is_required( 'card_address_2', $form_id ) ) : ?>\n\t\t\t\t\t<span class=\"give-required-indicator\">*</span>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t<?php echo Give()->tooltips->render_help( __( '(optional) The suite, apartment number, post office box (etc) associated with your billing address.', 'give' ) ); ?>\n\t\t\t</label>\n\n\t\t\t<input\n\t\t\t\ttype=\"text\"\n\t\t\t\tid=\"card_address_2\"\n\t\t\t\tname=\"card_address_2\"\n\t\t\t\tautocomplete=\"address-line2\"\n\t\t\t\tclass=\"card-address-2 give-input<?php echo( give_field_is_required( 'card_address_2', $form_id ) ? ' required' : '' ); ?>\"\n\t\t\t\tplaceholder=\"<?php _e( 'Address line 2', 'give' ); ?>\"\n\t\t\t\tvalue=\"<?php echo isset( $give_user_info['card_address_2'] ) ? $give_user_info['card_address_2'] : ''; ?>\"\n\t\t\t\t<?php echo( give_field_is_required( 'card_address_2', $form_id ) ? ' required aria-required=\"true\" ' : '' ); ?>\n\t\t\t/>\n\t\t</p>\n\n\t\t<p id=\"give-card-city-wrap\" class=\"form-row form-row-wide\">\n\t\t\t<label for=\"card_city\" class=\"give-label\">\n\t\t\t\t<?php _e( 'City', 'give' ); ?>\n\t\t\t\t<?php if ( give_field_is_required( 'card_city', $form_id ) ) : ?>\n\t\t\t\t\t<span class=\"give-required-indicator <?php echo( $city_required ? '' : 'give-hidden' ); ?>\">*</span>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t<?php echo Give()->tooltips->render_help( __( 'The city for your billing address.', 'give' ) ); ?>\n\t\t\t</label>\n\t\t\t<input\n\t\t\t\ttype=\"text\"\n\t\t\t\tid=\"card_city\"\n\t\t\t\tname=\"card_city\"\n\t\t\t\tautocomplete=\"address-level2\"\n\t\t\t\tclass=\"card-city give-input<?php echo( give_field_is_required( 'card_city', $form_id ) ? ' required' : '' ); ?>\"\n\t\t\t\tplaceholder=\"<?php _e( 'City', 'give' ); ?>\"\n\t\t\t\tvalue=\"<?php echo( isset( $give_user_info['card_city'] ) ? $give_user_info['card_city'] : '' ); ?>\"\n\t\t\t\t<?php echo( give_field_is_required( 'card_city', $form_id ) && $city_required ? ' required aria-required=\"true\" ' : '' ); ?>\n\t\t\t/>\n\t\t</p>\n\n\t\t<?php\n\t\t/**\n\t\t * State field logic.\n\t\t */\n\t\t$state_label = __( 'State', 'give' );\n\t\t$states_label = give_get_states_label();\n\t\t// Check if $country code exists in the array key for states label.\n\t\tif ( array_key_exists( $selected_country, $states_label ) ) {\n\t\t\t$state_label = $states_label[ $selected_country ];\n\t\t}\n\t\t$states = give_get_states( $selected_country );\n\t\t// Get the country list that do not have any states.\n\t\t$no_states_country = give_no_states_country_list();\n\t\t// Get the country list that does not require states.\n\t\t$states_not_required_country_list = give_states_not_required_country_list();\n\t\t// Used to determine if state is required.\n\t\t$require_state = ! array_key_exists( $selected_country, $no_states_country ) && give_field_is_required( 'card_state', $form_id );\n\t\t// Used to determine is state input should be marked as required.\n\t\t$validate_state = ! array_key_exists( $selected_country, $states_not_required_country_list ) && give_field_is_required( 'card_state', $form_id );\n\n\t\t?>\n\t\t<p id=\"give-card-state-wrap\"\n\t\t class=\"form-row form-row-first form-row-responsive <?php echo ( ! empty( $selected_country ) && ! $require_state ) ? 'give-hidden' : ''; ?> \">\n\t\t\t<label for=\"card_state\" class=\"give-label\">\n\t\t\t\t<span class=\"state-label-text\"><?php echo $state_label; ?></span>\n\t\t\t\t<span\n\t\t\t\t\tclass=\"give-required-indicator <?php echo $validate_state ? '' : 'give-hidden'; ?> \">*</span>\n\t\t\t\t<span class=\"give-tooltip give-icon give-icon-question\"\n\t\t\t\t data-tooltip=\"<?php esc_attr_e( 'The state, province, or county for your billing address.', 'give' ); ?>\"></span>\n\t\t\t</label>\n\t\t\t<?php\n\n\t\t\tif ( ! empty( $states ) ) :\n\t\t\t\t?>\n\t\t\t\t<select\n\t\t\t\t\tname=\"card_state\"\n\t\t\t\t\tautocomplete=\"address-level1\"\n\t\t\t\t\tid=\"card_state\"\n\t\t\t\t\tclass=\"card_state give-select<?php echo $validate_state ? ' required' : ''; ?>\"\n\t\t\t\t\t<?php echo $validate_state ? ' required aria-required=\"true\" ' : ''; ?>>\n\t\t\t\t\t<?php\n\t\t\t\t\tforeach ( $states as $state_code => $state ) {\n\t\t\t\t\t\techo '<option value=\"' . $state_code . '\"' . selected( $state_code, $selected_state, false ) . '>' . $state . '</option>';\n\t\t\t\t\t}\n\t\t\t\t\t?>\n\t\t\t\t</select>\n\t\t\t<?php else : ?>\n\t\t\t\t<input type=\"text\" size=\"6\" name=\"card_state\" id=\"card_state\" class=\"card_state give-input\"\n\t\t\t\t placeholder=\"<?php echo $state_label; ?>\" value=\"<?php echo $selected_state; ?>\"\n\t\t\t\t\t<?php echo $validate_state ? ' required aria-required=\"true\" ' : ''; ?>\n\t\t\t\t/>\n\t\t\t<?php endif; ?>\n\t\t</p>\n\n\t\t<p id=\"give-card-zip-wrap\" class=\"form-row <?php echo $require_state ? 'form-row-last' : ''; ?> form-row-responsive\">\n\t\t\t<label for=\"card_zip\" class=\"give-label\">\n\t\t\t\t<?php _e( 'Zip / Postal Code', 'give' ); ?>\n\t\t\t\t<?php if ( give_field_is_required( 'card_zip', $form_id ) ) : ?>\n\t\t\t\t\t<span class=\"give-required-indicator\">*</span>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t<?php echo Give()->tooltips->render_help( __( 'The zip or postal code for your billing address.', 'give' ) ); ?>\n\t\t\t</label>\n\n\t\t\t<input\n\t\t\t\ttype=\"text\"\n\t\t\t\tsize=\"4\"\n\t\t\t\tid=\"card_zip\"\n\t\t\t\tname=\"card_zip\"\n\t\t\t\tautocomplete=\"postal-code\"\n\t\t\t\tclass=\"card-zip give-input<?php echo( give_field_is_required( 'card_zip', $form_id ) ? ' required' : '' ); ?>\"\n\t\t\t\tplaceholder=\"<?php _e( 'Zip / Postal Code', 'give' ); ?>\"\n\t\t\t\tvalue=\"<?php echo isset( $give_user_info['card_zip'] ) ? $give_user_info['card_zip'] : ''; ?>\"\n\t\t\t\t<?php echo( give_field_is_required( 'card_zip', $form_id ) ? ' required aria-required=\"true\" ' : '' ); ?>\n\t\t\t/>\n\t\t</p>\n\t\t<?php\n\t\t/**\n\t\t * Fires while rendering credit card billing form, after address fields.\n\t\t *\n\t\t * @param int $form_id The form ID.\n\t\t *\n\t\t * @since 1.0\n\t\t *\n\t\t */\n\t\tdo_action( 'give_cc_billing_bottom' );\n\t\t?>\n\t</fieldset>\n\t<?php\n\techo ob_get_clean();\n}", "public function addAddress($address, $name = '')\n {\n }", "private function buildAddressFields()\n {\n /**\n * Check if WooCommerce is active\n */\n if (!Local::hasWooCommerce()) {\n return;\n }\n //====================================================================//\n // Customer Full Name\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"company_safe\")\n ->name(\"Customer Fullname\")\n ->isReadOnly()\n ;\n //====================================================================//\n // Company\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"company\")\n ->name(__(\"Company\"))\n ->isReadOnly()\n ;\n //====================================================================//\n // Address 1\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"address_1\")\n ->name(__(\"Address line 1\"))\n ->microData(\"http://schema.org/PostalAddress\", \"streetAddress\")\n ->isReadOnly()\n ;\n //====================================================================//\n // Address 2\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"address_2\")\n ->name(__(\"Address line 2\"))\n ->microData(\"http://schema.org/PostalAddress\", \"postOfficeBoxNumber\")\n ->isReadOnly()\n ;\n //====================================================================//\n // Address Full\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"address_full\")\n ->name(__(\"Address line 1 & 2\"))\n ->microData(\"http://schema.org/PostalAddress\", \"alternateName\")\n ->isReadOnly()\n ;\n //====================================================================//\n // Zip Code\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"postcode\")\n ->name(__(\"Postcode / ZIP\"))\n ->microData(\"http://schema.org/PostalAddress\", \"postalCode\")\n ->isReadOnly()\n ;\n //====================================================================//\n // City Name\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"city\")\n ->name(__(\"City\"))\n ->microData(\"http://schema.org/PostalAddress\", \"addressLocality\")\n ->isReadOnly()\n ;\n //====================================================================//\n // Country ISO Code\n $this->fieldsFactory()->create(SPL_T_COUNTRY)\n ->identifier(\"country\")\n ->name(__(\"Country\"))\n ->microData(\"http://schema.org/PostalAddress\", \"addressCountry\")\n ->isReadOnly()\n ;\n //====================================================================//\n // State code\n $this->fieldsFactory()->create(SPL_T_STATE)\n ->identifier(\"state\")\n ->name(__(\"State / County\"))\n ->microData(\"http://schema.org/PostalAddress\", \"addressRegion\")\n ->isReadOnly()\n ;\n //====================================================================//\n // Phone Pro\n $this->fieldsFactory()->create(SPL_T_PHONE)\n ->identifier(\"phone\")\n ->name(__(\"Phone\"))\n ->microData(\"http://schema.org/Person\", \"telephone\")\n ->isIndexed()\n ->isReadOnly()\n ;\n }", "public function getBillingAddress() : Address;", "public function addAddress($address, $name = ''){ \n $this->adresses[$address]= $name;\n }", "public function newPaymentAddress() {\n $result = $this->newAPIRequest('POST', '/addresses', []);\n return $result;\n }", "public function addAddressParams()\n {\n $oUser = $this->getUser();\n if (!$oUser) {\n return;\n }\n $oRequest = $this->getPayPalRequest();\n\n $oRequest->setParameter(\"EMAIL\", $oUser->oxuser__oxusername->value);\n\n $sAddressId = $oUser->getSelectedAddressId();\n if ($sAddressId) {\n $oAddress = oxNew(\"oxAddress\");\n $oAddress->load($sAddressId);\n\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTONAME\", getStr()->html_entity_decode($oAddress->oxaddress__oxfname->value . \" \" . $oAddress->oxaddress__oxlname->value));\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOSTREET\", getStr()->html_entity_decode($oAddress->oxaddress__oxstreet->value . \" \" . $oAddress->oxaddress__oxstreetnr->value));\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOCITY\", $oAddress->oxaddress__oxcity->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOZIP\", $oAddress->oxaddress__oxzip->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOPHONENUM\", $oAddress->oxaddress__oxfon->value);\n\n $oCountry = oxNew(\"oxCountry\");\n $oCountry->load($oAddress->oxaddress__oxcountryid->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE\", $oCountry->oxcountry__oxisoalpha2->value);\n\n if ($oAddress->oxaddress__oxstateid->value) {\n $oState = oxNew(\"oxState\");\n $oState->load($oAddress->oxaddress__oxstateid->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOSTATE\", $oState->oxstates__oxisoalpha2->value);\n }\n } else {\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTONAME\", getStr()->html_entity_decode($oUser->oxuser__oxfname->value . \" \" . $oUser->oxuser__oxlname->value));\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOSTREET\", getStr()->html_entity_decode($oUser->oxuser__oxstreet->value . \" \" . $oUser->oxuser__oxstreetnr->value));\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOCITY\", $oUser->oxuser__oxcity->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOZIP\", $oUser->oxuser__oxzip->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOPHONENUM\", $oUser->oxuser__oxfon->value);\n\n $oCountry = oxNew(\"oxCountry\");\n $oCountry->load($oUser->oxuser__oxcountryid->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE\", $oCountry->oxcountry__oxisoalpha2->value);\n\n if ($oUser->oxuser__oxstateid->value) {\n $oState = oxNew(\"oxState\");\n $oState->load($oUser->oxuser__oxstateid->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOSTATE\", $oState->oxstates__oxisoalpha2->value);\n }\n }\n }", "public function updateBillingAddress() {\n Log::debug(\"Entering updateBillingAddress\");\n DB::transaction(function () {\n $order = $this->getOrderData();\n if (isset($order)) {\n // update the existing billing adress or create a new one\n $address = $order->billingAddress;\n if (!isset($address))\n $address = new Address();\n $address = $this->fillOrderAddress($address);\n $address->save();\n $order->billing_address = $address->id;\n $order->save();\n }\n });\n }", "function edd_stripe_zip_and_country() {\n\n\t$logged_in = is_user_logged_in();\n\t$customer = EDD()->session->get( 'customer' );\n\t$customer = wp_parse_args( $customer, array( 'address' => array(\n\t\t'line1' => '',\n\t\t'line2' => '',\n\t\t'city' => '',\n\t\t'zip' => '',\n\t\t'state' => '',\n\t\t'country' => ''\n\t) ) );\n\n\t$customer['address'] = array_map( 'sanitize_text_field', $customer['address'] );\n\n\tif( $logged_in ) {\n\t\t$existing_cards = edd_stripe_get_existing_cards( get_current_user_id() );\n\t\tif ( empty( $existing_cards ) ) {\n\n\t\t\t$user_address = edd_get_customer_address( get_current_user() );\n\n\t\t\tforeach( $customer['address'] as $key => $field ) {\n\n\t\t\t\tif ( empty( $field ) && ! empty( $user_address[ $key ] ) ) {\n\t\t\t\t\t$customer['address'][ $key ] = $user_address[ $key ];\n\t\t\t\t} else {\n\t\t\t\t\t$customer['address'][ $key ] = '';\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else {\n\t\t\tforeach ( $existing_cards as $card ) {\n\t\t\t\tif ( false === $card['default'] ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$source = $card['source'];\n\t\t\t\t$customer['address'] = array(\n\t\t\t\t\t'line1' => $source->address_line1,\n\t\t\t\t\t'line2' => $source->address_line2,\n\t\t\t\t\t'city' => $source->address_city,\n\t\t\t\t\t'zip' => $source->address_zip,\n\t\t\t\t\t'state' => $source->address_state,\n\t\t\t\t\t'country' => $source->address_country,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t}\n?>\n\t<fieldset id=\"edd_cc_address\" class=\"cc-address\">\n\t\t<legend><?php _e( 'Billing Details', 'edds' ); ?></legend>\n\t\t<p id=\"edd-card-country-wrap\">\n\t\t\t<label for=\"billing_country\" class=\"edd-label\">\n\t\t\t\t<?php _e( 'Billing Country', 'edds' ); ?>\n\t\t\t\t<?php if( edd_field_is_required( 'billing_country' ) ) { ?>\n\t\t\t\t\t<span class=\"edd-required-indicator\">*</span>\n\t\t\t\t<?php } ?>\n\t\t\t</label>\n\t\t\t<span class=\"edd-description\"><?php _e( 'The country for your billing address.', 'edds' ); ?></span>\n\t\t\t<select name=\"billing_country\" id=\"billing_country\" class=\"billing_country edd-select<?php if( edd_field_is_required( 'billing_country' ) ) { echo ' required'; } ?>\"<?php if( edd_field_is_required( 'billing_country' ) ) { echo ' required '; } ?> autocomplete=\"billing country\">\n\t\t\t\t<?php\n\n\t\t\t\t$selected_country = edd_get_shop_country();\n\n\t\t\t\tif( ! empty( $customer['address']['country'] ) && '*' !== $customer['address']['country'] ) {\n\t\t\t\t\t$selected_country = $customer['address']['country'];\n\t\t\t\t}\n\n\t\t\t\t$countries = edd_get_country_list();\n\t\t\t\tforeach( $countries as $country_code => $country ) {\n\t\t\t\t echo '<option value=\"' . esc_attr( $country_code ) . '\"' . selected( $country_code, $selected_country, false ) . '>' . $country . '</option>';\n\t\t\t\t}\n\t\t\t\t?>\n\t\t\t</select>\n\t\t</p>\n\t\t<p id=\"edd-card-zip-wrap\">\n\t\t\t<label for=\"card_zip\" class=\"edd-label\">\n\t\t\t\t<?php _e( 'Billing Zip / Postal Code', 'edds' ); ?>\n\t\t\t\t<?php if( edd_field_is_required( 'card_zip' ) ) { ?>\n\t\t\t\t\t<span class=\"edd-required-indicator\">*</span>\n\t\t\t\t<?php } ?>\n\t\t\t</label>\n\t\t\t<span class=\"edd-description\"><?php _e( 'The zip or postal code for your billing address.', 'edds' ); ?></span>\n\t\t\t<input type=\"text\" size=\"4\" name=\"card_zip\" id=\"card_zip\" class=\"card-zip edd-input<?php if( edd_field_is_required( 'card_zip' ) ) { echo ' required'; } ?>\" placeholder=\"<?php _e( 'Zip / Postal Code', 'edds' ); ?>\" value=\"<?php echo $customer['address']['zip']; ?>\"<?php if( edd_field_is_required( 'card_zip' ) ) { echo ' required '; } ?> autocomplete=\"billing postal-code\" />\n\t\t</p>\n\t</fieldset>\n<?php\n}", "public function invoiceAddress() {\r\n $result = $this->clients->flatInvoice();\r\n foreach ($result as $key => $value) {\r\n $getAdress = $this->clients->companyAddress($value->CustomerCompanyID);\r\n $data = array('Params' => $getAdress[0]->Params);\r\n $response = $this->clients->invoiceAdressupdate($value->InvoiceID, $data);\r\n echo $response . \"<br/>\";\r\n }\r\n }", "function clea_base_custom_address( $wp_customize ) {\n\t\n\t/* Get the theme prefix. */\n\t$prefix = hybrid_get_prefix();\n\t\n\t$ald_description = __( \"Les coordonnées qui apparaissent dans l'en-tête, à droite\" );\t\n\t\n\t\t/* Add the test textarea section. */\n\t\t$wp_customize->add_section(\n\t\t\t'unique-impact-1-address',\n\t\t\tarray(\n\t\t\t\t'title' \t=> esc_html__( 'Coordonnées', 'clea-base' ),\n\t\t\t\t'priority' \t=> 200,\n\t\t\t\t'capability' \t=> 'edit_theme_options',\n\t\t\t\t'description'\t=> $ald_description\n\t\t\t)\n\t\t);\n\n\t/** demander Adresse **/\n\t$wp_customize->add_setting( \n\t\t\"{$prefix}_theme_settings[adresse]\", \n\t\tarray(\n\t\t\t'type' \t=> 'option',\n\t\t\t'default' => 'Adresse 22222 ville',\n\t\t\t'sanitize_callback' => 'clea_base_address_sanitize',\n\t\t)\n\t);\t\n\n\t$wp_customize->add_control(\n \"{$prefix}_theme_settings[adresse]\",\n\t\tarray(\n\t\t\t'label' => __('Adresse en une ligne', 'clea-base'),\n\t\t\t'section' => 'unique-impact-1-address',\n\t\t\t'type' => 'text',\n\t\t)\n\t);\t\n\n\t\t\n\t/** demander Téléphone **/\n\t$wp_customize->add_setting( \n\t\t\"{$prefix}_theme_settings[telephone]\", \n\t\tarray(\n\t\t\t'type' \t=> 'option',\n\t\t\t'default' => '00 00 00 00',\n\t\t\t'sanitize_callback' => 'clea_base_address_sanitize',\n\t\t)\n\t);\t\n\n\t$wp_customize->add_control(\n \"{$prefix}_theme_settings[telephone]\",\n\t\tarray(\n\t\t\t'label' => __('Téléphone', 'clea-base'),\n\t\t\t'section' => 'unique-impact-1-address',\n\t\t\t'type' => 'text',\n\t\t)\n\t);\t\n\t\n\t\t\n\t/** demander Adresse **/\n\t$wp_customize->add_setting( \n\t\t\"{$prefix}_theme_settings[mail]\", \n\t\tarray(\n\t\t\t'type' \t=> 'option',\n\t\t\t'default' => '[email protected]',\n\t\t\t'sanitize_callback' => 'clea_base_address_sanitize',\n\t\t)\n\t);\t\n\n\t$wp_customize->add_control(\n \"{$prefix}_theme_settings[mail]\",\n\t\tarray(\n\t\t\t'label' => __('E-mail (sera crypté)', 'clea-base'),\n\t\t\t'section' => 'unique-impact-1-address',\n\t\t\t'type' => 'text',\n\t\t)\n\t);\t\t\n}", "public static function formatted_billing_address( $address, $order ) {\n\t\t$vat_id = wc_eu_vat_get_vat_from_order( $order );\n\n\t\tif ( $vat_id ) {\n\t\t\t$address['vat_id'] = $vat_id;\n\t\t}\n\t\treturn $address;\n\t}", "public function createAddress(Wallet $wallet, $label = 'Default'): Address;", "public function address($entity, $type = 'billing') {\n\t\tif (!static::hasField(\"{$type}_address_id\")) {\n\t\t\t$message = \"User model has no field `{$type}_address_id`. \";\n\t\t\t$message .= \"You may need to require the ecommerce_core or billing_core library.\";\n\t\t\tthrow new RuntimeException($message);\n\t\t}\n\n\t\tif ($entity->{\"{$type}_address\"}) {\n\t\t\t// Return if directly attached.\n\t\t\treturn $entity->{\"{$type}_address\"};\n\t\t}\n\t\tif (!Libraries::get('base_address')) {\n\t\t\t$message = \"The base_address library is not available. \";\n\t\t\t$message .= \"Require it as a dependency to enable `Users::address()`.\";\n\t\t\tthrow new RuntimeException($message);\n\t\t}\n\t\treturn Addresses::find('first', [\n\t\t\t'conditions' => [\n\t\t\t\t'id' => $entity->{\"{$type}_address_id\"}\n\t\t\t]\n\t\t]) ?: Addresses::create([\n\t\t\t'user_id' => $entity->id,\n\t\t\t'recipient' => $entity->name,\n\t\t\t'country' => $entity->country\n\t\t]);\n\t}", "public function addPickupOrderGuestEmailTemplate()\n {\n $template = $this->templateFactory->create();\n $template->setTemplateCode('New Pickup Order For Guest');\n $template->setTemplateText($this->getEmailTemplateForGuest());\n $template->setTemplateType(TemplateTypesInterface::TYPE_HTML);\n $template->setTemplateSubject(\n '{{trans \"Your %store_name order confirmation\" store_name=$store.getFrontendName()}}'\n );\n $template->setOrigTemplateCode('sales_email_order_guest_template');\n // @codingStandardsIgnoreLine\n $template->setOrigTemplateVariables('{\"var formattedBillingAddress|raw\":\"Billing Address\",\"var order.getEmailCustomerNote()\":\"Email Order Note\",\"var order.getBillingAddress().getName()\":\"Guest Customer Name\",\"var order.getCreatedAtFormatted(2)\":\"Order Created At (datetime)\",\"var order.increment_id\":\"Order Id\",\"layout handle=\\\"sales_email_order_items\\\" order=$order\":\"Order Items Grid\",\"var payment_html|raw\":\"Payment Details\",\"var formattedShippingAddress|raw\":\"Shipping Address\",\"var order.getShippingDescription()\":\"Shipping Description\",\"var shipping_msg\":\"Shipping message\"}');\n\n $this->templateResource->save($template);\n }", "public function ExpressCheckoutChooseAddress($addressType, $buildRequiredJS=false)\n\t{\n\t\t$templateAddressType = $addressType;\n\t\tif($templateAddressType == 'account') {\n\t\t\t$templateAddressType = 'billing';\n\t\t}\n\t\t$templateUpperAddressType = ucfirst($templateAddressType);\n\n\t\t$GLOBALS['AddressList'] = '';\n\n\t\t$GLOBALS['AddressType'] = $templateAddressType;\n\t\t$GLOBALS['UpperAddressType'] = $templateUpperAddressType;\n\t\t$GLOBALS['HideCreateAddress'] = 'display: none';\n\t\t$GLOBALS['HideChooseAddress'] = 'display: none';\n\n\t\t$GLOBALS['CreateAccountForm'] = '';\n\t\t$country_id = GetCountryIdByName(GetConfig('CompanyCountry'));\n\n\t\t$selectedCountry = GetConfig('CompanyCountry');\n\t\t$selectedState = 0;\n\n\t\tif ($addressType == 'shipping') {\n\t\t\t$fields = $GLOBALS['ISC_CLASS_FORM']->getFormFields(FORMFIELDS_FORM_SHIPPING);\n\t\t} else if (!CustomerIsSignedIn() && $addressType == 'account') {\n\t\t\t$fields = $GLOBALS['ISC_CLASS_FORM']->getFormFields(FORMFIELDS_FORM_ACCOUNT);\n\t\t\t$fields += $GLOBALS['ISC_CLASS_FORM']->getFormFields(FORMFIELDS_FORM_BILLING);\n\t\t} else {\n\t\t\t$fields = $GLOBALS['ISC_CLASS_FORM']->getFormFields(FORMFIELDS_FORM_BILLING);\n\t\t}\n\n\t\t// If the customer isn't signed in, then by default we show the create form\n\t\tif(!CustomerIsSignedIn() ) {\n\t\t\t$GLOBALS['HideCreateAddress'] = '';\n\t\t}\n\t\t// If the customer is logged in, load up their existing addresses\n\t\telse {\n\t\t\t$GLOBALS['ISC_CLASS_CUSTOMER'] = GetClass('ISC_CUSTOMER');\n\t\t\t$shippingAddresses = $GLOBALS['ISC_CLASS_CUSTOMER']->GetCustomerShippingAddresses();\n\n\t\t\t// If the customer doesn't have any addresses, show the creation form\n\t\t\tif(empty($shippingAddresses)) {\n\t\t\t\t$GLOBALS['HideChooseAddress'] = 'display: none';\n\t\t\t\t$GLOBALS['HideCreateAddress'] = '';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$GLOBALS['HideChooseAddress'] = '';\n\t\t\t\t$addressMap = array(\n\t\t\t\t\t'shipfullname',\n\t\t\t\t\t'shipcompany',\n\t\t\t\t\t'shipaddress1',\n\t\t\t\t\t'shipaddress2',\n\t\t\t\t\t'shipcity',\n\t\t\t\t\t'shipstate',\n\t\t\t\t\t'shipzip',\n\t\t\t\t\t'shipcountry'\n\t\t\t\t);\n\n\t\t\t\tforeach($shippingAddresses as $address) {\n\t\t\t\t\t$formattedAddress = '';\n\t\t\t\t\tforeach($addressMap as $field) {\n\t\t\t\t\t\tif(!$address[$field]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$formattedAddress .= $address[$field] .', ';\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['AddressSelected'] = '';\n\n\t\t\t\t\tif(isset($_SESSION['CHECKOUT']['SelectAddress'])) {\n\t\t\t\t\t\tif($_SESSION['CHECKOUT']['SelectAddress'] == $address['shipid']) {\n\t\t\t\t\t\t\t$GLOBALS['AddressSelected'] = ' selected=\"selected\"';\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(!$GLOBALS['AddressList']) {\n\t\t\t\t\t\t$GLOBALS['AddressSelected'] = ' selected=\"selected\"';\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['AddressId'] = $address['shipid'];\n\t\t\t\t\t$GLOBALS['AddressLine'] = isc_html_escape(trim($formattedAddress, ', '));\n\t\t\t\t\t$GLOBALS['AddressList'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ExpressCheckoutAddress');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif($addressType == 'billing') {\n\t\t\t$quoteAddress = getCustomerQuote()->getBillingAddress();\n\t\t}\n\t\telse {\n\t\t\t$quoteAddress = getCustomerQuote()->setIsSplitShipping(false)\n\t\t\t\t->getShippingAddress();\n\t\t}\n\n\t\t$selectedCountry = $quoteAddress->getCountryName();\n\t\t$selectedState = $quoteAddress->getStateName();\n\t\t$country_id = $quoteAddress->getCountryId();\n\n\t\t$quoteAddressFields = array(\n\t\t\t'EmailAddress' => 'getEmail',\n\t\t\t'FirstName' => 'getFirstName',\n\t\t\t'LastName' => 'getLastName',\n\t\t\t'CompanyName' => 'getCompany',\n\t\t\t'AddressLine1' => 'getAddress1',\n\t\t\t'AddressLine2' => 'getAddress2',\n\t\t\t'City' => 'getCity',\n\t\t\t'Zip' => 'getZip',\n\t\t\t'State' => 'getStateName',\n\t\t\t'Country' => 'getCountryName',\n\t\t\t'Phone' => 'getPhone',\n\t\t);\n\n\t\tforeach($fields as $fieldId => $formField) {\n\t\t\t$formFieldPrivateId = $formField->record['formfieldprivateid'];\n\n\t\t\t// Hide the leave blank label for passwords on checkout\n\t\t\tif($formField->getFieldType() == 'password') {\n\t\t\t\t$formField->setLeaveBlankLabel(false);\n\t\t\t}\n\n\t\t\tif(isset($quoteAddressFields[$formFieldPrivateId])) {\n\t\t\t\t$method = $quoteAddressFields[$formFieldPrivateId];\n\t\t\t\t$formField->setValue($quoteAddress->$method());\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$value = $quoteAddress->getCustomField($fieldId);\n\t\t\t\tif($value !== false) {\n\t\t\t\t\t$formField->setValue($value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['HideSaveAddress'] = 'display: none';\n\t\t$GLOBALS['SaveAddressChecked'] = '';\n\n\t\t// If the customer is signed in, or creating an account they can save addresses\n\t\tif(customerIsSignedIn() || $addressType == 'account') {\n\t\t\t$GLOBALS['HideSaveAddress'] = '';\n\t\t\tif($quoteAddress->getSaveAddress() === true || $quoteAddress->getSaveAddress() === null) {\n\t\t\t\t$GLOBALS['SaveAddressChecked'] = 'checked=\"checked\"';\n\t\t\t}\n\t\t}\n\n\t\tif($addressType == 'billing' || $addressType == 'account') {\n\t\t\t$GLOBALS['BillToAddressButton'] = GetLang('BillToThisAddress');\n\t\t\tif($this->getQuote()->isDigital()) {\n\t\t\t\t$GLOBALS['UseAddressTitle'] = isc_html_escape(GetLang('BillToThisAddress'));\n\t\t\t\t$GLOBALS['HideShippingOptions'] = 'display: none';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$GLOBALS['UseAddressTitle'] = isc_html_escape(GetLang('BillAndShipToAddress'));\n\t\t\t}\n\t\t\t$GLOBALS['UseExistingAddress'] = GetLang('UseExistingBillingAddress');\n\t\t\t$GLOBALS['AddNewAddress'] = GetLang('UseNewBillingAddress');\n\t\t\t$GLOBALS['ShipToBillingName'] = 'ship_to_billing';\n\t\t\t$GLOBALS['ShipToAddressChecked'] = 'checked=\"checked\"';\n\t\t}\n\t\telse {\n\t\t\t$GLOBALS['BillToAddressButton'] = GetLang('ShipToThisAddress');\n\t\t\t$GLOBALS['UseAddressTitle'] = isc_html_escape(GetLang('ShipToThisAddress'));\n\t\t\t$GLOBALS['UseExistingAddress'] = GetLang('UseExistingShippingAddress');\n\t\t\t$GLOBALS['AddNewAddress'] = GetLang('UseNewShippingAddress');\n\t\t\t$GLOBALS['ShipToBillingName'] = 'bill_to_shipping';\n\t\t\t$GLOBALS['HideShippingOptions'] = 'display: none';\n\t\t}\n\n\t\t// We need to loop here so we can get the field Id for the state\n\t\t$countryId = GetCountryIdByName($selectedCountry);\n\t\t$stateFieldId = 0;\n\t\t$countryFieldId = 0;\n\t\tforeach($fields as $fieldId => $formField) {\n\t\t\tif (strtolower($formField->record['formfieldprivateid']) == 'state') {\n\t\t\t\t$stateFieldId = $fieldId;\n\t\t\t} else if (strtolower($formField->record['formfieldprivateid']) == 'country') {\n\t\t\t\t$countryFieldId = $fieldId;\n\t\t\t}\n\t\t}\n\n\t\t// Compile the fields. Also set the country and state dropdowns while we are here\n\t\t$GLOBALS['CompiledFormFields'] = '';\n\n\t\t// If checking out as a guest, the email address field also needs to be shown\n\t\tif($addressType == 'billing' && !customerIsSignedIn()) {\n\t\t\t$emailField = $GLOBALS['ISC_CLASS_FORM']->getFormField(FORMFIELDS_FORM_ACCOUNT, '1', '', true);\n\t\t\t$emailField->setValue($quoteAddress->getEmail());\n\t\t\t$GLOBALS['ISC_CLASS_FORM']->addFormFieldUsed($emailField);\n\t\t\t$GLOBALS['CompiledFormFields'] .= $emailField->loadForFrontend();\n\t\t}\n\n\t\tforeach($fields as $fieldId => $formField) {\n\n\t\t\t//\tlowercase the formfieldprivateid for conditional matching below\n\t\t\t$formFieldPrivateId = strtolower($formField->record['formfieldprivateid']);\n\n\t\t\tif ($formFieldPrivateId == 'country') {\n\t\t\t\t$formField->setOptions(GetCountryListAsIdValuePairs());\n\n\t\t\t\tif ($selectedCountry !== '') {\n\t\t\t\t\t$formField->setValue($selectedCountry);\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * This is the event handler for changing the states where a country is selected\n\t\t\t\t */\n\t\t\t\t$formField->addEventHandler('change', 'FormFieldEvent.SingleSelectPopulateStates', array('countryId' => $countryFieldId, 'stateId' => $stateFieldId));\n\n\t\t\t} else if ($formFieldPrivateId == 'state' && isId($countryId)) {\n\t\t\t\t$stateOptions = GetStateListAsIdValuePairs($countryId);\n\t\t\t\tif (is_array($stateOptions) && !empty($stateOptions)) {\n\t\t\t\t\t$formField->setOptions($stateOptions);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// no states for our country, we need to mark this as not required\n\t\t\t\t\t$formField->setRequired(false);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$GLOBALS['CompiledFormFields'] .= $fields[$fieldId]->loadForFrontend() . \"\\n\";\n\t\t}\n\n\t\t$GLOBALS['CompiledFormFieldJavascript'] = \"\\n\\n\" . $GLOBALS['ISC_CLASS_FORM']->buildRequiredJS(true);\n\t\treturn $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ExpressCheckoutChooseAddress');\n\t}", "private function SaveBillingAddress()\n\t{\n\t\tif(isset($_SESSION['CHECKOUT']['CHECKOUT_TYPE']) && $_SESSION['CHECKOUT']['CHECKOUT_TYPE'] == 'express') {\n\t\t\t$redirectOnError = getConfig('ShopPath').'/checkout.php?action=express';\n\t\t}\n\t\telse {\n\t\t\t$redirectOnError = getConfig('ShopPath').'/checkout.php?action=checkout';\n\t\t}\n\n\t\t// If guest checkout is not enabled and the customer isn't signed in then send the customer\n\t\t// back to the beginning of the checkout process.\n\t\tif(!GetConfig('GuestCheckoutEnabled') && !CustomerIsSignedIn()) {\n\t\t\tredirect($redirectOnError);\n\t\t}\n\n\t\t// If the customer isn't signed in then they've just entered an address that we need to validate\n\t\tif(!CustomerIsSignedIn()) {\n\t\t\t$errors = array();\n\t\t\t// An invalid address was entered, show the form again\n\t\t\t$addressDetails = $this->ValidateGuestCheckoutAddress('billing', $errors);\n\t\t\tif(!$addressDetails) {\n\t\t\t\t$this->ChooseBillingAddress($errors);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// We've just selected an address\n\t\t\tif(isset($_GET['address_id'])) {\n\t\t\t\t$addressDetails = (int)$_GET['address_id'];\n\t\t\t}\n\t\t}\n\n\t\t// There was a problem saving the selected billing address\n\t\tif(!$this->SetOrderBillingAddress($addressDetails)) {\n\t\t\t$this->ChooseBillingAddress();\n\t\t\treturn;\n\t\t}\n\n\t\t// If we're automatically creating accounts for customers then we need to save those details too\n\t\tif(!CustomerIsSignedIn() && GetConfig('GuestCheckoutCreateAccounts')) {\n\t\t\t$password = substr(md5(uniqid(true)), 0, 8);\n\t\t\t$autoAccount = 1;\n\t\t\t$_SESSION['CHECKOUT']['CREATE_ACCOUNT'] = 1;\n\t\t\t$_SESSION['CHECKOUT']['ACCOUNT_DETAILS'] = array(\n\t\t\t\t'email' => $addressDetails['shipemail'],\n\t\t\t\t'password' => $password,\n\t\t\t\t'firstname' => $addressDetails['shipfirstname'],\n\t\t\t\t'lastname' => $addressDetails['shiplastname'],\n\t\t\t\t'company' => '',\n\t\t\t\t'phone' => $addressDetails['shipphone'],\n\t\t\t\t'autoAccount' => $autoAccount\n\t\t\t);\n\t\t}\n\n\t\tif($this->getQuote()->isDigital()) {\n\t\t\t@ob_end_clean();\n\t\t\theader(sprintf(\"location:%s/checkout.php?action=confirm_order\", $GLOBALS['ShopPath']));\n\t\t}\n\t\telse {\n\t\t\t// Are we shipping to the same address?\n\t\t\tif(isset($_POST['ship_to_billing'])) {\n\t\t\t\tif(!$this->SetOrderShippingAddress($addressDetails, true)) {\n\t\t\t\t\t$this->ChooseShippingAddress();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Now they need to choose the shipping provider for their order\n\t\t\t\t@ob_end_clean();\n\t\t\t\theader(\"Location: \".GetConfig('ShopPath').\"/checkout.php?action=choose_shipper\");\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\t// Otherwise, we just move to the next step\n\t\t\t@ob_end_clean();\n\t\t\theader(sprintf(\"location:%s/checkout.php?action=choose_shipping_address\", $GLOBALS['ShopPath']));\n\t\t}\n\t\texit;\n\t}", "public function sSaveBillingAddress($address, $id)\n {\n /** @var Customer $customer */\n $customer = $this->modelManager->find(Customer::class, $address['userID']);\n\n $sql = '\n INSERT INTO s_order_billingaddress\n (\n userID,\n orderID,\n customernumber,\n company,\n department,\n salutation,\n firstname,\n lastname,\n street,\n zipcode,\n city,\n phone,\n countryID,\n stateID,\n ustid,\n additional_address_line1,\n additional_address_line2,\n title\n )\n VALUES (\n :userID,\n :orderID,\n :customernumber,\n :company,\n :department,\n :salutation,\n :firstname,\n :lastname,\n :street,\n :zipcode,\n :city,\n :phone,\n :countryID,\n :stateID,\n :ustid,\n :additional_address_line1,\n :additional_address_line2,\n :title\n )\n ';\n $sql = $this->eventManager->filter(\n 'Shopware_Modules_Order_SaveBilling_FilterSQL',\n $sql,\n ['subject' => $this, 'address' => $address, 'id' => $id]\n );\n $array = [\n ':userID' => $address['userID'],\n ':orderID' => $id,\n ':customernumber' => $customer->getNumber(),\n ':company' => (string) $address['company'],\n ':department' => (string) $address['department'],\n ':salutation' => (string) $address['salutation'],\n ':firstname' => (string) $address['firstname'],\n ':lastname' => (string) $address['lastname'],\n ':street' => (string) $address['street'],\n ':zipcode' => (string) $address['zipcode'],\n ':city' => (string) $address['city'],\n ':phone' => (string) $address['phone'],\n ':countryID' => $address['countryID'],\n ':stateID' => $address['stateID'],\n ':ustid' => $address['ustid'],\n ':additional_address_line1' => $address['additional_address_line1'],\n ':additional_address_line2' => $address['additional_address_line2'],\n ':title' => $address['title'],\n ];\n $array = $this->eventManager->filter(\n 'Shopware_Modules_Order_SaveBilling_FilterArray',\n $array,\n ['subject' => $this, 'address' => $address, 'id' => $id]\n );\n $result = $this->db->executeUpdate($sql, $array);\n\n $billingID = $this->db->lastInsertId();\n\n $billingAddressId = null;\n\n if ($this->session !== null) {\n $billingAddressId = $this->session->get('checkoutBillingAddressId');\n }\n\n if ($billingAddressId === null) {\n $billingAddressId = $customer->getDefaultBillingAddress()->getId();\n }\n\n $attributes = $this->attributeLoader->load('s_user_addresses_attributes', $billingAddressId);\n\n if (!is_array($attributes)) {\n $attributes = [];\n }\n\n $this->attributePersister->persist($attributes, 's_order_billingaddress_attributes', $billingID);\n\n return $result;\n }", "function get_contact_address_markup() {\n\t$address = get_theme_mod( 'organization_address' );\n\tif ( !empty( $address ) ) {\n\t\tob_start();\n\t?>\n\t<address class=\"address\">\n\t\t<?php echo wptexturize( nl2br( $address ) ); ?>\n\t</address>\n\t<?php\n\t\treturn ob_get_clean();\n\t}\n\treturn;\n}", "public function create()\r\n {\r\n $totalInCart = $this->getGrandTotalInCart();\r\n return view('user.address.create', compact('totalInCart'));\r\n }", "public function convertAddress(array $data, $type = 'billing')\n {\n $address = Mage::getModel('customer/address');\n $address->setId(null);\n $address->setIsDefaultBilling(true);\n $address->setIsDefaultShipping(false);\n if ($type == 'shipping') {\n $address->setIsDefaultBilling(false);\n $address->setIsDefaultShipping(true);\n }\n Mage::helper('core')->copyFieldset('lengow_convert_' . $type . '_address', 'to_' . $type . '_address', $data,\n $address);\n if ($type == 'shipping') {\n $type = 'delivery';\n }\n $address_1 = $data[$type . '_address'];\n $address_2 = $data[$type . '_address_2'];\n // Fix address 1\n if (empty($address_1) && !empty($address_2)) {\n $address_1 = $address_2;\n $address_2 = null;\n }\n // Fix address 2\n if (!empty($address_2)) {\n $address_1 = $address_1 . \"\\n\" . $address_2;\n }\n $address_3 = $data[$type . '_address_complement'];\n if (!empty($address_3)) {\n $address_1 = $address_1 . \"\\n\" . $address_3;\n }\n // adding relay to address\n if (isset($data['tracking_relay'])) {\n $address_1 .= ' - Relay : ' . $data['tracking_relay'];\n }\n $address->setStreet($address_1);\n $tel_1 = $data[$type . '_phone_office'];\n $tel_2 = $data[$type . '_phone_mobile'];\n // Fix tel\n $tel_1 = empty($tel_1) ? $tel_2 : $tel_1;\n\n if (!empty($tel_1)) {\n $this->setTelephone($tel_1);\n }\n if (!empty($tel_1)) {\n $address->setFax($tel_1);\n } else {\n if (!empty($tel_2)) {\n $address->setFax($tel_2);\n }\n }\n $codeRegion = (integer)substr(str_pad($address->getPostcode(), 5, '0', STR_PAD_LEFT), 0, 2);\n $id_region = Mage::getModel('directory/region')->getCollection()\n ->addRegionCodeFilter($codeRegion)\n ->addCountryFilter($address->getCountry())\n ->getFirstItem()\n ->getId();\n $address->setRegionId($id_region);\n $address->setCustomer($this);\n return $address;\n }", "function create_address($patient_id, $tag, $bldg, $street, $brgy, $city, $prov, $zip, $ctry) {\n\n $data = array(\n 'patient_id' => $patient_id,\n 'tag' => $tag,\n 'building' => $bldg,\n 'street' => $street,\n 'barangay' => $brgy,\n 'city' => $city,\n 'province' => $prov,\n 'zip' => $zip,\n 'country' => $ctry\n );\n\n return $this->db->insert('patients_address', $data);\n\n }", "public function save_address(CreateAddressRequest $request)\n {\n $address = Auth::guard('customer')->user()->addresses()->create($request->all());\n\n return redirect()->to(url()->previous().'?address='.$address->id.'#address-tab')->with('success', trans('theme.notify.address_created'));\n }", "public function toString()\n\t{\n\t\treturn \"Customer on checkout page - Shipping address popup - created address is shown on [Shipping address] and [Billing address] section\";\n\t}", "private function _createAddressField()\n {\n $address = new Zend_Form_Element_Text('address');\n $address->setLabel('bankAddress')\n ->addFilter(new Zend_Filter_StringTrim())\n ->addFilter(new Zend_Filter_StripTags())\n ->addValidator(new Zend_Validate_StringLength(array(2, 150)));\n\n return $address;\n }", "public function setBillingAddress(\\Magento\\Sales\\Api\\Data\\OrderAddressInterface $billingAddress = null);", "public function bookingcustomcheckout($userid,$email,$name,$street,$city,$country_id,$postcode,$telephone,$shipping,$payment,$quoteId)\n\t {\n\t\t/* $parts = explode(\" \", $name);\n\t\t $lastname = array_pop($parts);\n\t\tif($lastname=='')\n\t\t{\n\t\t\t$lastname='@';\n\t\t}\n $firstname = implode(\" \", $parts);\n\t\tif($firstname=='')\n\t\t{\n\t\t\t$firstname='@';\n\t\t} */\n\t\t\n\t\tif(strpos($name, ' ') > 0)\n\t\t{\n\t\t\t$parts = explode(\" \", $name);\n\t\t $lastname = array_pop($parts);\n\t\t $firstname = implode(\" \", $parts);\n\t\t\n\t\t}\n else\n {\n\t\t $lastname = $name;\n\t\t $firstname = $name;\n\t}\n\t\t\n\t\t//exit;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t $orderData=[\n\t\t\t\t 'currency_id' => 'USD',\n\t\t\t\t 'email' => $email, //buyer email id\n\t\t\t\t 'shipping_address' =>[\n\t\t\t\t\t\t'firstname' => $firstname, //address Details\n\t\t\t\t\t\t'lastname' => $lastname,\n\t\t\t\t\t\t\t\t'street' => $street,\n\t\t\t\t\t\t\t\t'city' => $city,\n\t\t\t\t\t\t//'country_id' => 'IN',\n\t\t\t\t\t\t'country_id' => $country_id,\n\t\t\t\t\t\t'region' => '',\n\t\t\t\t\t\t'postcode' => $postcode,\n\t\t\t\t\t\t'telephone' => $telephone,\n\t\t\t\t\t\t'fax' => '',\n\t\t\t\t\t\t'save_in_address_book' => 1\n\t\t\t\t\t\t\t ],\n\t\t\t 'items'=> [ //array of product which order you want to create\n\t\t\t\t\t\t ['product_id'=>'5','qty'=>1,'price'=>'50'],\n\t\t\t\t\t\t ['product_id'=>'6','qty'=>2,'price'=>'100']\n\t\t\t\t\t\t] \n\t\t\t\t\t\t\n\t\t\t];\n\n /*for sote 4 */\t\t\t\n\t\t $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance(); // Instance of object manager\n\t $helper = $objectManager->get('Webkul\\Marketplace\\Helper\\Data');\n\t\t $helper->setCurrentStore(4); \n\t\t /* end for sote 4 */\n\t\t\n\t\t\n\t\t$store=$this->storeManager->getStore();\n $websiteId = $this->storeManager->getStore()->getWebsiteId();\n $customer=$this->customerFactory->create();\n $customer->setWebsiteId($websiteId);\n //$customer->loadByEmail($orderData['email']);// load customet by email address\n\t\t$customer->load($userid);\n\t\t $customer->getId();\n\t\t $customer->getEntityId();\n /* if(!$customer->getEntityId()){\n //If not avilable then create this customer \n $customer->setWebsiteId($websiteId)\n ->setStore($store)\n ->setFirstname($orderData['shipping_address']['firstname'])\n ->setLastname($orderData['shipping_address']['lastname'])\n ->setEmail($orderData['email']) \n ->setPassword($orderData['email']);\n $customer->save();\n } */\n\t\t\t\n\t\t\t$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance(); // Instance of object manager\n\t\t$resource = $objectManager->get('Magento\\Framework\\App\\ResourceConnection');\n\t\t$connection = $resource->getConnection();\n\t\t\n\t\t/* $quote_sql_latest = \"Select * FROM quote where customer_id=$userid and store_id=4 and is_active=1 order by entity_id ASC limit 1\";\n\t\t$result_result_cart = $connection->fetchAll($quote_sql_latest); */\n\t\t // print_r($result_result_cart); \n\t\t\n\t\t\n\t\t$quote_sql = \"Select * FROM quote where customer_id=$userid and store_id=4 and entity_id='$quoteId' and is_active=1\";\n\t\t\n\t\t\n\t\t$result_result = $connection->fetchAll($quote_sql);\t\n\t\tif(!empty($result_result))\n\t\t{\n\t\t\n\t\t\t $quoteId2=$result_result[0]['entity_id'];\n\t\t\t $quote = $this->quote->create()->load($quoteId2);\n\t\t\t$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n $checkoutSession =$objectManager->get('Magento\\Checkout\\Model\\Session');\n\t\t $checkoutSession->setQuoteId($quoteId2);\n\t\t \n\t\t \n\t\t //Set Address to quote\n $quote->getBillingAddress()->addData($orderData['shipping_address']);\n $quote->getShippingAddress()->addData($orderData['shipping_address']);\n \n // Collect Rates and Set Shipping & Payment Method\n \n $shippingAddress=$quote->getShippingAddress(); \n $shippingAddress->setCollectShippingRates(true)\n ->collectShippingRates()\n //->setShippingMethod('freeshipping_freeshipping'); //shipping method\n\t\t\t\t\t\t->setShippingMethod($shipping); //shipping method\n\t\t\t\t\t\t\n //$quote->setPaymentMethod('cashondelivery'); //payment method\n\t\t$quote->setPaymentMethod($payment);\n $quote->setInventoryProcessed(false); //not effetc inventory\n $quote->save(); //Now Save quote and your quote is ready\n \n // Set Sales Order Payment\n //$quote->getPayment()->importData(['method' => 'cashondelivery']);\n $quote->getPayment()->importData(['method' => $payment]);\n // Collect Totals & Save Quote\n $quote->collectTotals()->save();\n $quote->getId();\n // Create Order From Quote\n $order = $this->quoteManagement->submit($quote);\n \n $order->setEmailSent(0);\n\t //$order->setEmailSent(1);\n echo $increment_id = $order->getRealOrderId();\n\t $lastOrderId = $increment_id;\n\t\t\n\t\t$helper = $objectManager->get(\n 'Webkul\\Marketplace\\Helper\\Data'\n );\n\t\t\n\t\t$getProductSalesCalculation = $objectManager->get(\n 'Webkul\\Marketplace\\Observer\\SalesOrderPlaceAfterObserver'\n );\n $getProductSalesCalculation->getProductSalesCalculation($order); \n\t \n\t \n\t \n\t \n\t \n\t\t\t if($order->getEntityId())\n\t\t\t {\n\t\t\t $result[]=array('status'=>array(\"code\"=>\"1\",\"message\"=>$lastOrderId));\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$result[]=array('status'=>array(\"code\"=>\"0\",\"message\"=>\"error\"));\n\t\t\t} \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t}\t\t\t\n\t\telse\n\t\t{\n\t\t\t$result[]=array('status'=>array(\"code\"=>\"0\",\"message\"=>\"error\"));\n\t\t}\t\t\t\n\t\t\n \t\t\t\n\t return $result; \n\t\n\t }", "function _add_block_template_info($template_item)\n {\n }", "function ywig_company_address_1_callback() {\n\techo '<p class=\"description\">Company Address Line 1</p><input type=\"text\" name=\"company_address_1\" value=\"' . esc_html( get_option( 'company_address_1' ) ) . '\" placeholder=\"Company Address 1\" />';\n}", "public function create()\n {\n return view('admin.accountaddresses.create');\n }", "function get_footer_address() {\n\t$street_address = '';\n\t$city = '';\n\t$postal_code = '';\n\t$country = '';\n\t/**\n\t * Check if we are in front-page:\n\t */\n\tif (is_page_template('page-templates/front-page.php')){\n\t\tif ( get_field('front_page_contact_street_address') )\n\t\t\t$street_address = get_field('front_page_contact_street_address');\n\t\tif ( get_field('front_page_contact_city') )\n\t\t\t$city = get_field('front_page_contact_city');\n\t\tif ( get_field('front_page_contact_postal_code') )\n\t\t\t$postal_code = get_field('front_page_contact_postal_code');\n\t\tif ( get_field('front_page_contact_country') )\n\t\t\t$country = get_field('front_page_contact_country');\n\t}\n\t/**\n\t * If NOT in front-page:\n\t */\n\telse {\n\t\t/**\n\t\t * Check if we are in companies page:\n\t\t */\n\t\tif (is_singular('companies')) {\n\t\t\tif ( get_field('company_contact_street_address') )\n\t\t\t\t$street_address = get_field('company_contact_street_address');\n\t\t\tif ( get_field('company_contact_city') )\n\t\t\t\t$city = get_field('company_contact_city');\n\t\t\tif ( get_field('company_contact_postal_code') )\n\t\t\t\t$postal_code = get_field('company_contact_postal_code');\n\t\t\tif ( get_field('company_contact_country') )\n\t\t\t\t$country = get_field('company_contact_country');\n\t\t}\n\t\t/**\n\t\t * Check if we are in group of companies page:\n\t\t */\n\t\tif (is_singular('group_of_companies')) {\n\t\t\tif ( get_field('group_of_companies_contact_street_address') )\n\t\t\t\t$street_address = get_field('group_of_companies_contact_street_address');\n\t\t\tif ( get_field('group_of_companies_contact_city') )\n\t\t\t\t$city = get_field('group_of_companies_contact_city');\n\t\t\tif ( get_field('group_of_companies_contact_postal_code') )\n\t\t\t\t$postal_code = get_field('group_of_companies_contact_postal_code');\n\t\t\tif ( get_field('group_of_companies_contact_country') )\n\t\t\t\t$country = get_field('group_of_companies_contact_country');\n\t\t}\n\t}\n\tif ($street_address == '' && $city == '' && $postal_code == '' && $country == '') {\n\t\t/**\n\t\t * Don't show the red marker for address.\n\t\t */\n\t}\n\telse {\n\t\t/**\n\t\t * Generate google_maps_url:\n\t\t */\n\t\t$google_maps_url = 'http://maps.google.com/?q='.$street_address.','.$city.','.$postal_code;\n\t\t?>\n\t\t<a href=\"<?php echo $google_maps_url; ?>\" class=\"contact-link\" target=\"_blank\">\n\t\t\t<img src=\"<?php echo get_template_directory_uri().'/images/icon_address.png'; ?>\" class=\"footer-icon\">\n\t\t\t<br>\n\t\t\t<span class=\"contact-street-address\"><?php echo $street_address; ?></span>\n\t\t\t<span class=\"contact-postal-code-and-city\"><?php echo $postal_code; ?> <?php echo $city; ?></span>\n\t\t\t<span class=\"contact-country\"><?php echo $country; ?></span>\n\t\t</a>\n\t\t<?php\n\t}\n}", "function theme_addresses_elements($element) {\n return theme('form_element', $element, '<div class=\"addresses-form\">'. $element['#children'] .'</div>');\n}", "function uc_order_pane_bill_to($op, $order, &$form = NULL, &$form_state = NULL) {\n switch ($op) {\n case 'view':\n case 'customer':\n $build = array('#markup' => uc_order_address($order, 'billing') . '<br />' . check_plain($order->billing_phone));\n return $build;\n\n case 'edit-form':\n $form['bill_to'] = array(\n '#type' => 'uc_address',\n '#default_value' => $order,\n '#required' => FALSE,\n '#attributes' => array('class' => array('uc-store-address-field')),\n '#key_prefix' => 'billing',\n );\n return $form;\n\n case 'edit-theme':\n $output = '<div class=\"order-pane-icons\">';\n $output .= ' <img src=\"' . base_path() . drupal_get_path('module', 'uc_store')\n . '/images/address_book.gif\" alt=\"' . t('Select from address book.') . '\" '\n . 'title=\"' . t('Select from address book.') . '\" onclick=\"load_address_select(' . $form['order_uid']['#value'] . ', \\'#billing_address_select\\', \\'billing\\');\" />';\n $output .= ' <img src=\"' . base_path() . drupal_get_path('module', 'uc_store')\n . '/images/copy.gif\" alt=\"' . t('Copy shipping information.') . '\" title=\"'\n . t('Copy shipping information.') . '\" onclick=\"uc_order_copy_shipping_to_billing();\" />';\n $output .= '</div>';\n $output .= '<div id=\"billing_address_select\"></div>';\n return $output . drupal_render($form['bill_to']);\n\n case 'edit-process':\n foreach ($form_state['values'] as $key => $value) {\n if (substr($key, 0, 8) == 'billing_') {\n if (uc_address_field_enabled(substr($key, 8))) {\n $changes[$key] = $value;\n }\n }\n }\n return $changes;\n }\n}", "public function create()\n {\n $shippingAddress = Sentinel::getUser()->shippingAddress()->first();\n return view('frontend.place-order', compact('shippingAddress'));\n }", "public function billing()\n\t{\n\t\t\n\t\t$this->templateFileName = 'billing.tpl';\n\t\t\n\t\t// Tracks if there was an error in the process\n\t\t$errors = [];\n\t\t\n\t\t\n\t\t// Get list of payment methods to output\n\t\t$paymentMethodSQL = <<<EOT\n\t\t\t\t SELECT\n\t\t\t\t\tpayment_id,\n\t\t\t\t\tpayment_type,\n\t\t\t\t\tcredit_card_type,\n\t\t\t\t\tpayment_name,\n\t\t\t\t\tRIGHT(account_number, 4) AS account_number_last_4,\n\t\t\t\t\tLPAD(RIGHT(account_number, 4), LENGTH(account_number), 'X') AS account_number,\n\t\t\t\t\tcard_expiration_month,\n\t\t\t\t\tcard_expiration_year,\n\t\t\t\t\trp.description AS payment_type_description,\n\t\t\t\t\trc.description AS credit_card_type_description\n\t\t\t\t FROM\n\t\t\t\t\tb_payment\n\t\t\t\t\tINNER JOIN b_reference rp ON rp.data_member = 'PAYMENT_TYPE' AND rp.data_value = payment_type\n\t\t\t\t\tLEFT OUTER JOIN b_reference rc ON rc.data_member = 'CREDIT_CARD_TYPE' AND rc.data_value = credit_card_type\n\t\t\t\t WHERE \n\t\t\t\t\trecord_status = 'A'\n\t\t\t\t\tAND user_id = ?\nEOT;\n\t\t$paymentMethods = $this->dbConnection->prepareRecordSet( $paymentMethodSQL, $this->session->userID );\n\t\t\n\t\t// Get list of addresses to output\n\t\t$addresses = $this->getAddresses();\n\t\t\n\t\t\n\t\t// Get list of payment types from reference table\n\t\t$paymentTypes = $this->dbConnection->recordSet(\"SELECT * FROM b_reference WHERE data_member = 'PAYMENT_TYPE' ORDER BY description\");\n\t\t\n\t\t// Get list of credit card types\n\t\t$creditCardTypes = $this->dbConnection->recordSet(\"SELECT * FROM b_reference WHERE data_member = 'CREDIT_CARD_TYPE' ORDER BY description\");\n\t\t\n\t\t// Set output\n\t\t$this->set('payment_methods', $paymentMethods);\n\t\t$this->set('addresses', $addresses);\n\t\t$this->set('payment_types', $paymentTypes);\n\t\t$this->set('credit_card_types', $creditCardTypes);\n\t\t\n\t\t\n\t\t\n\t\t// Handle form input, if submitted\n\t\tif (count($_POST) > 0 && isset($_POST['billingSubmit']))\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\t// Did the user select a billing address?\n\t\t\tif (!isset($_POST['addressSelect']) || empty($_POST['addressSelect']))\n\t\t\t\t$errors[] = 'Please select a billing address.';\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The user selected a billing address, determine what to do based on selection.\n\t\t\t\tif($_POST['addressSelect'] == 'new')\n\t\t\t\t{\n\t\t\t\t\t// The user selected to enter a new billing address\n\t\t\t\t\t// Do form validation\n\n\t\t\t\t\t\n\t\t\t\t\t$formComplete = true;\n\t\t\t\t\t$addressFieldErrors = [];\n\t\t\t\t\t\n\t\t\t\t\tif ( ! isset($_POST['address_name']) || empty($_POST['address_name']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$addressFieldErrors['address_name'] = 'Address Name is required';\n\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t}\n\t\t\t\t\tif ( ! isset($_POST['address_1']) || empty($_POST['address_1']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$addressFieldErrors['address_1'] = 'Address Line 1 is required';\n\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t}\n\t\t\t\t\tif ( ! isset($_POST['city']) || empty($_POST['city']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$addressFieldErrors['city'] = 'City is required';\n\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t}\n\t\t\t\t\tif ( ! isset($_POST['state']) || empty($_POST['state']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$addressFieldErrors['state'] = 'State is required';\n\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t}\n\t\t\t\t\tif ( ! isset($_POST['zip']) || empty($_POST['zip']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$addressFieldErrors['zip'] = 'Zip is required';\n\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$sanitized_zip = preg_replace('/\\D/', '', (string)$_POST['zip']);\n\t\t\t\t\t\t$zip_length = strlen($sanitized_zip);\n\t\t\t\t\t\tif ( $zip_length != 5 && $zip_length != 9 )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t\t\t$fieldErrors['zip'] = 'Zip must be 5 or 9 digits.';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($zip_length == 9)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$_POST['zip'] = substr($sanitized_zip, 0, 5) . '-' . substr($sanitized_zip, 5, 4);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$_POST['zip'] = $sanitized_zip;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($formComplete)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t// The form is complete, so create the record\n\t\t\t\t\t\t$insertSQL = \"INSERT INTO b_user_address (user_id, address_name, address_1, address_2, city, state, zip, record_status) \"\n\t\t\t\t\t\t . \"VALUES(?, ?, ?, ?, ?, ?, ?, 'A')\";\n\t\t\t\t\t\tif ( ! $this->dbConnection->prepareCommand($insertSQL, $this->session->userID, $_POST['address_name'], $_POST['address_1'], $_POST['address_2'], $_POST['city'], $_POST['state'], $_POST['zip']) )\n\t\t\t\t\t\t\t$errors[] = 'Error creating record. Please try again.';\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// The record was successfully created, so set the shipping address ID and move on to the next step\n\t\t\t\t\t\t\t$this->session->billingAddressID = $this->dbConnection->insert_id;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$errors[] = 'Billing Address is incomplete.';\n\t\t\t\t\t\t$this->set('addressFieldErrors', $addressFieldErrors);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// The user selected an existing billing address\n\t\t\t\t\t// Do validation on the selected address\n\t\t\t\t\t$address = $this->dbConnection->prepareRecord(\"SELECT * FROM b_user_address WHERE address_id = ?\", $_POST['addressSelect']);\n\t\t\t\t\tif (!$address)\n\t\t\t\t\t\t$errors[] = 'Error selecting address. This address does not exist.';\n\t\t\t\t\telseif ( $address['user_id'] != $this->session->userID )\n\t\t\t\t\t\t$errors[] = 'Error: The selected address is for a different user.';\n\t\t\t\t\telseif ( $address['record_status'] != 'A')\n\t\t\t\t\t\t$errors[] = 'Error: The selected address is not active.';\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// The address is valid, so use it.\n\t\t\t\t\t\t// set the shipping address and move on to the next step\n\t\t\t\t\t\t$this->session->billingAddressID = $_POST['addressSelect'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// Did the user select a payment method?\n\t\t\tif (!isset($_POST['paymentSelect']) || empty($_POST['paymentSelect']))\n\t\t\t\t$errors[] = 'Please select a payment method';\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The usre selected a payment method, determine what to do based on selection\n\t\t\t\tif ($_POST['paymentSelect'] == 'new')\n\t\t\t\t{\n\t\t\t\t\t// The user selected to enter a new payment method\n\t\t\t\t\t// Do form validation\n\t\t\t\t\t$formComplete = true;\n\t\t\t\t\t$validValues = true;\n\t\t\t\t\t$paymentFieldErrors = [];\n\n\t\t\t\t\tif ( ! isset($_POST['payment_type']) || empty($_POST['payment_type']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$paymentFieldErrors['payment_type'] = 'Payment Type is required';\n\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Depending on the payment type, different fields are required\n\t\t\t\t\tswitch($_POST['payment_type'])\n\t\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t\t// Credit card\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ( ! isset($_POST['payment_card_type']) || empty($_POST['payment_card_type']) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_card_type'] = 'Credit Card Type is required';\n\t\t\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\tif ( ! isset($_POST['payment_name']) || empty($_POST['payment_name']) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_name'] = 'Card Name is required';\n\t\t\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ( ! isset($_POST['payment_account_number']) || empty($_POST['payment_account_number']) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_account_number'] = 'Account Number is required';\n\t\t\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif ( !ctype_digit($_POST['payment_account_number']) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_account_number'] = 'Payment Account Number must be a whole number';\n\t\t\t\t\t\t\t\t$validValues = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ( ! isset($_POST['payment_expiration_month']) || empty($_POST['payment_expiration_month']) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_expiration_month'] = 'Expiration Month is required';\n\t\t\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ( ! isset($_POST['payment_expiration_year']) || empty($_POST['payment_expiration_year']) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_expiration_year'] = 'Expiration Year is required';\n\t\t\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif (!ctype_digit($_POST['payment_expiration_year']))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_expiration_year'] = 'Expiration Year must be a whole number';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ( ! (empty($_POST['payment_expiration_month']) || empty($_POST['payment_expiration_year']) ) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Check if the card is expired\n\t\t\t\t\t\t\t\t$current_month = date(\"n\");\n\t\t\t\t\t\t\t\t$current_year4 = date(\"Y\");\n\t\t\t\t\t\t\t\t$cardDate = new \\DateTime();\n\n\t\t\t\t\t\t\t\tif ( strlen($_POST['payment_expiration_year']) != 4 )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_expiration_year'] = 'Credit Card Expiration Year must be a 4 digit year.';\n\t\t\t\t\t\t\t\t\t$validValues = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telseif ( !ctype_digit($_POST['payment_expiration_year']) )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_expiration_year'] = 'Credit Card Expiration Year must be a whole number';\n\t\t\t\t\t\t\t\t\t$validValues = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telseif ( $current_year4 > $_POST['payment_expiration_year']\n\t\t\t\t\t\t\t\t\t\t\t|| $current_year4 == $_POST['payment_expiration_year'] && $current_month > $_POST['payment_expiration_month'] )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_expiration_year'] = 'Credit card has expired.';\n\t\t\t\t\t\t\t\t\t$validValues = false;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// Validate the card expiration date\n\t\t\t\t\t\t\t\tif (!checkdate( (int)$_POST['payment_expiration_month'], 1, (int)$_POST['payment_expiration_year']))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_expiration_year'] = 'Credit Card Expiration Date is not valid.';\n\t\t\t\t\t\t\t\t\t$validValues = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telseif ( $cardDate->setDate($_POST['payment_expiration_year'], $_['payment_expiration_month'], 1) === false )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_expiration_year'] = 'Credit Card Expiration Date is not valid.';\n\t\t\t\t\t\t\t\t\t$validValues = false;\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}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ( ! isset($_POST['payment_security_code']) || empty($_POST['payment_security_code']) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_security_code'] = 'Security Code is required';\n\t\t\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif (!ctype_digit($_POST['payment_security_code']))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_security_code'] = 'Credit Card Security Code must be a whole number.';\n\t\t\t\t\t\t\t\t$validValues = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase 'P':\n\t\t\t\t\t\n\t\t\t\t\t\t\tif ( ! isset($_POST['payment_name']) || empty($_POST['payment_name']) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_name'] = 'Paypal Account Email Address is required';\n\t\t\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif ( !filter_var($_POST['payment_name'], FILTER_VALIDATE_EMAIL) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// The email address is not a valid format\n\t\t\t\t\t\t\t\t$paymentFieldErrors['payment_name'] = \"The email address {$_POST['payment_name']} is an incorrect format.\";\n\t\t\t\t\t\t\t\t$validValues = false;\n\t\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}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif ($formComplete && $validValues)\n\t\t\t\t\t{\n\t\t\t\t\t\t// The form is complete, so create the record\n\t\t\t\t\t\t$insertSQL = \"INSERT INTO b_payment (user_id, payment_type, credit_card_type, payment_name, account_number, card_expiration_month, card_expiration_year, card_security_code, record_status) \"\n\t\t\t\t\t\t . \"VALUES(?, ?, ?, ?, ?, ?, ?, ?, 'A')\";\n\t\t\t\t\t\tif ( ! $this->dbConnection->prepareCommand($insertSQL, $this->session->userID, $_POST['payment_type'], $_POST['payment_card_type'], $_POST['payment_name'], $_POST['payment_account_number'], $_POST['payment_expiration_month'], $_POST['payment_expiration_year'], $_POST['payment_security_code']) )\n\t\t\t\t\t\t\t$errors[] = 'Error creating record. Please try again.';\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// The record was successfully created, so set the shipping address ID and move on to the next step\n\t\t\t\t\t\t\t$this->session->paymentMethodID = $this->dbConnection->insert_id;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// The form is incomplete, so issue an error\n\t\t\t\t\t\tif (!$formComplete)\n\t\t\t\t\t\t\t$errors[] = 'Payment Type is incomplete';\n\t\t\t\t\t\tif (!$validValues)\n\t\t\t\t\t\t\t$errors[] = 'Some fields have invalid values';\n\t\t\t\t\t\t$this->set('paymentFieldErrors', $paymentFieldErrors);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// The user selected an existing payment method\n\t\t\t\t\t// Do validation on the selected payment method\n\t\t\t\t\t$payment = $this->dbConnection->prepareRecord(\"SELECT * FROM b_payment WHERE payment_id = ?\", $_POST['paymentSelect']);\n\t\t\t\t\tif (!$payment)\n\t\t\t\t\t\t$errors[] = 'Error selecting payment method. This payment method does not exist.';\n\t\t\t\t\telseif ( $payment['user_id'] != $this->session->userID )\n\t\t\t\t\t\t$errors[] = 'Error: The selected payment method is for a different user.';\n\t\t\t\t\telseif ( $address['record_status'] != 'A')\n\t\t\t\t\t\t$errors[] = 'Error: The selected payment method is not active.';\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// The address is valid, so use it.\n\t\t\t\t\t\t// set the shipping address and move on to the next step\n\t\t\t\t\t\t$this->session->paymentMethodID = $_POST['paymentSelect'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// If no errors, then move on to next screen\n\t\t\tif (count($errors) == 0)\n\t\t\t{\n\t\t\t\t// There were no errors, process the form and move on to the next screen\n\t\t\t\t$this->__default();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\n\t\t$this->set('errors', $errors);\n\t\t\n\t\t\t\n\t\t// Set the selection fields if there are already values selected\n\t\tif ($this->session->billingAddressID)\n\t\t\t$this->set('addressSelect', $this->session->billingAddressID);\n\t\tif ($this->session->paymentMethodID)\n\t\t\t$this->set('paymentSelect', $this->session->paymentMethodID);\n\n\t\t// Set all of the view data for post data so the form will be reloaded\n\t\tforeach ($_POST as $id => $val)\n\t\t{\n\t\t\t$this->set($id, $val);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t// Get the list of state codes to output\n\t\t$states = $this->dbConnection->recordSet(\"SELECT short_description AS code, long_description AS name FROM b_value WHERE data_member = 'STATE' ORDER BY short_description\");\n\t\t$this->set('states', $states);\n\t\t\n\t\t\n\t\t\t\n\t}", "public function add()\n\t{\n\t\tif (!$this->user->isLogged() || !$this->auth->validateUserToken($this->uri->getSegment($this->uri->getTotalSegments()))) {\n\n\t\t\t$this->session->set('user_redirect' . $this->session->user_session_id, '/account/address/add');\n\n\t\t\treturn redirect()->to(base_url('/login'));\n\t\t}\n\n\t\t$data = array();\n\n\t\t// Data Libraries\n\t\t$data['lang'] = $this->language;\n\t\t$data['validation'] = $this->validation;\n\n\t\t// Breadcrumbs\n\t\t$data['breadcrumbs'][] = array(\n\t\t\t'text' => lang('Heading.heading_home', array(), $this->language->getFrontEndLocale()),\n\t\t\t'href' => base_url(),\n\t\t\t'active' => false,\n\t\t);\n\n\t\t$data['breadcrumbs'][] = array(\n\t\t\t'text' => lang('Heading.heading_account', array(), $this->language->getFrontEndLocale()),\n\t\t\t'href' => base_url('/account/' . $this->user->getToken()),\n\t\t\t'active' => false,\n\t\t);\n\n\t\t$data['breadcrumbs'][] = array(\n\t\t\t'text' => lang('Heading.heading_address_book', array(), $this->language->getFrontEndLocale()),\n\t\t\t'href' => base_url('/account/address/' . $this->user->getToken()),\n\t\t\t'active' => false,\n\t\t);\n\n\t\t$data['breadcrumbs'][] = array(\n\t\t\t'text' => lang('Heading.heading_address_add', array(), $this->language->getFrontEndLocale()),\n\t\t\t'href' => base_url('/account/address/add/' . $this->user->getToken()),\n\t\t\t'active' => true,\n\t\t);\n\n\t\t// Data Text\n\t\t$data['heading_title'] = lang('Heading.heading_address_add', array(), $this->language->getFrontEndLocale());\n\n\t\t// Data Link\n\t\t$data['action'] = base_url('/account/address/add/' . $this->user->getToken());\n\n\t\t// Form Validation\n\t\tif ($this->request->getPost()) {\n\t\t\t$this->validate([\n\t\t\t\t'firstname' => ['label' => lang('Entry.entry_firstname', array(), $this->language->getFrontEndLocale()), 'rules' => 'required', 'errors' => ['required' => lang('Error.error_required', array(), $this->language->getFrontEndLocale())]],\n\t\t\t\t'lastname' => ['label' => lang('Entry.entry_lastname', array(), $this->language->getFrontEndLocale()), 'rules' => 'required', 'errors' => ['required' => lang('Error.error_required', array(), $this->language->getFrontEndLocale())]],\n\t\t\t]);\n\n\t\t\t// Check if errors exist\n\t\t\tif (!empty($this->validation->getErrors())) {\n\t\t\t\t$data['error'] = lang('Error.error_form', array(), $this->language->getFrontEndLocale());\n\n\t\t\t\t$this->session->remove('error');\n\t\t\t}\n\t\t}\n\n\t\tif ($this->validation->withRequest($this->request)->run() == TRUE) {\n \tif ($this->user->hasPermission()) {\n\t // Query\n\t \t$query = $this->userAddressModel->addUserAddress($this->request->getPost(), $this->user->getId());\n\t \n\t if ($query) {\n\t \t$this->session->set('success', lang('Success.success_user_address_add', array(), $this->language->getFrontEndLocale()));\n\t } else {\n\t \t$this->session->set('error', lang('Error.error_user_address_add', array(), $this->language->getFrontEndLocale()));\n\t }\n } else {\n\t $this->session->set('error', lang('Error.error_permission_modify', array(), $this->language->getFrontEndLocale()));\n }\n\n\t\t\treturn redirect()->to(base_url('/account/address/' . $this->user->getToken()));\n\t\t}\n\n\t\t// Return\n\t\treturn $this->getForm($data);\n\t}", "function tep_address_format($address_format_id, $address, $html, $boln, $eoln) {\n $address_format_query = tep_db_query(\"select address_format as format from \" . TABLE_ADDRESS_FORMAT . \" where address_format_id = '\" . (int)$address_format_id . \"'\");\n $address_format = tep_db_fetch_array($address_format_query);\n\n $company = tep_output_string_protected($address['company']);\n if (isset($address['firstname']) && tep_not_null($address['firstname'])) {\n $firstname = tep_output_string_protected($address['firstname']);\n $lastname = tep_output_string_protected($address['lastname']);\n } elseif (isset($address['name']) && tep_not_null($address['name'])) {\n $firstname = tep_output_string_protected($address['name']);\n $lastname = '';\n } else {\n $firstname = '';\n $lastname = '';\n }\n $street = tep_output_string_protected($address['street_address']);\n $suburb = tep_output_string_protected($address['suburb']);\n $city = tep_output_string_protected($address['city']);\n $state = tep_output_string_protected($address['state']);\n if (isset($address['country_id']) && tep_not_null($address['country_id'])) {\n $country = tep_get_country_name($address['country_id']);\n\n if (isset($address['zone_id']) && tep_not_null($address['zone_id'])) {\n $state = tep_get_zone_code($address['country_id'], $address['zone_id'], $state);\n }\n } elseif (isset($address['country']) && tep_not_null($address['country'])) {\n $country = tep_output_string_protected($address['country']);\n } else {\n $country = '';\n }\n $postcode = tep_output_string_protected($address['postcode']);\n $zip = $postcode;\n\n if ($html) {\n// HTML Mode\n $HR = '<hr>';\n $hr = '<hr>';\n if ( ($boln == '') && ($eoln == \"\\n\") ) { // Values not specified, use rational defaults\n $CR = '<br>';\n $cr = '<br>';\n $eoln = $cr;\n } else { // Use values supplied\n $CR = $eoln . $boln;\n $cr = $CR;\n }\n } else {\n// Text Mode\n $CR = $eoln;\n $cr = $CR;\n $HR = '----------------------------------------';\n $hr = '----------------------------------------';\n }\n\n $statecomma = '';\n $streets = $street;\n if ($suburb != '') $streets = $street . $cr . $suburb;\n if ($country == '') $country = tep_output_string_protected($address['country']);\n if ($state != '') $statecomma = $state . ', ';\n\n $fmt = $address_format['format'];\n eval(\"\\$address = \\\"$fmt\\\";\");\n\n if ( (ACCOUNT_COMPANY == 'true') && (tep_not_null($company)) ) {\n $address = $company . $cr . $address;\n }\n\n return $address;\n }", "protected function get_order_billing_address( WC_order $order ) {\n\t\t$address = new \\PostFinanceCheckout\\Sdk\\Model\\AddressCreate();\n\t\t$address->setCity( $this->fix_length( $order->get_billing_city(), 100 ) );\n\t\t$address->setCountry( $order->get_billing_country() );\n\t\t$address->setFamilyName( $this->fix_length( $order->get_billing_last_name(), 100 ) );\n\t\t$address->setGivenName( $this->fix_length( $order->get_billing_first_name(), 100 ) );\n\t\t$address->setOrganizationName( $this->fix_length( $order->get_billing_company(), 100 ) );\n\t\t$address->setPhoneNumber( $order->get_billing_phone() );\n\t\tif ( ! empty( $order->get_billing_state() ) ) {\n\t\t\t$address->setPostalState( $order->get_billing_country() . '-' . $order->get_billing_state() );\n\t\t}\n\t\t$address->setPostCode( $this->fix_length( $order->get_billing_postcode(), 40 ) );\n\t\t$address->setStreet( $this->fix_length( trim( $order->get_billing_address_1() . \"\\n\" . $order->get_billing_address_2() ), 300 ) );\n\t\t$address->setEmailAddress( $this->fix_length( $this->get_order_email_address( $order ), 254 ) );\n\n\t\t$date_of_birth_string = '';\n\t\t$custom_billing_date_of_birth_meta_name = apply_filters( 'wc_postfinancecheckout_billing_date_of_birth_order_meta_name', '' );\n\t\tif ( ! empty( $custom_billing_date_of_birth_meta_name ) ) {\n\t\t\t$date_of_birth_string = $order->get_meta( $custom_billing_date_of_birth_meta_name, true, 'edit' );\n\t\t} else {\n\t\t\t$date_of_birth_string = $order->get_meta( 'billing_date_of_birth', true, 'edit' );\n\t\t\tif ( empty( $date_of_birth_string ) ) {\n\t\t\t\t$date_of_birth_string = $order->get_meta( '_billing_date_of_birth', true, 'edit' );\n\t\t\t}\n\t\t}\n\t\tif ( ! empty( $date_of_birth_string ) ) {\n\t\t\t$date_of_birth = WC_PostFinanceCheckout_Helper::instance()->try_to_parse_date( $date_of_birth_string );\n\t\t\tif ( false !== $date_of_birth ) {\n\t\t\t\t$address->setDateOfBirth( $date_of_birth );\n\t\t\t}\n\t\t}\n\n\t\t$gender_string = '';\n\t\t$custom_billing_gender_meta_name = apply_filters( 'wc_postfinancecheckout_billing_gender_order_meta_name', '' );\n\t\tif ( ! empty( $custom_billing_gender_meta_name ) ) {\n\t\t\t$gender_string = $order->get_meta( $custom_billing_gender_meta_name, true, 'edit' );\n\t\t} else {\n\t\t\t$gender_string = $order->get_meta( 'billing_gender', true, 'edit' );\n\t\t\tif ( empty( $gender_string ) ) {\n\t\t\t\t$gender_string = $order->get_meta( '_billing_gender', true, 'edit' );\n\t\t\t}\n\t\t}\n\t\tif ( ! empty( $gender_string ) ) {\n\t\t\tif ( strtolower( $gender_string ) == 'm' || strtolower( $gender_string ) == 'male' ) {\n\t\t\t\t$address->setGender( \\PostFinanceCheckout\\Sdk\\Model\\Gender::MALE );\n\t\t\t} elseif ( strtolower( $gender_string ) == 'f' || strtolower( $gender_string ) == 'female' ) {\n\t\t\t\t$address->setGender( \\PostFinanceCheckout\\Sdk\\Model\\Gender::FEMALE );\n\t\t\t}\n\t\t}\n\n\t\treturn apply_filters( 'wc_postfinancecheckout_modify_order_billing_address', $address, $order );\n\t}", "private function _generateShippingAddressData(){\n \n $address = new PagSeguroAddress();\n $delivery_address = new Address($this->context->cart->id_address_delivery);\n \n if (!is_null($delivery_address)){\n $address->setCity($delivery_address->city);\n $address->setPostalCode($delivery_address->postcode);\n $address->setStreet($delivery_address->address1);\n $address->setDistrict($delivery_address->address2);\n $address->setComplement($delivery_address->other);\n $address->setCity($delivery_address->city);\n \n $country = new Country($delivery_address->id_country);\n $address->setCountry($country->iso_code);\n \n $state = new State($delivery_address->id_state);\n $address->setState($state->iso_code);\n }\n \n return $address;\n }", "private function _addAddressElement($parentElement, $firstName, $lastName, $street, $postalCode, $city, $countryCode)\n {\n $address = $parentElement->addChild('address');\n\n $firstNameElement = $address->addChild('firstName');\n $this->_addCDATA($firstNameElement, $firstName);\n\n $lastNameElement = $address->addChild('lastName');\n $this->_addCDATA($lastNameElement, $lastName);\n\n $streetElement = $address->addChild('street');\n $this->_addCDATA($streetElement, $street);\n\n $postalCodeElement = $address->addChild('postalCode');\n $this->_addCDATA($postalCodeElement, $postalCode);\n\n $cityElement = $address->addChild('city');\n $this->_addCDATA($cityElement, $city);\n\n $countryCodeElement = $address->addChild('countryCode');\n $this->_addCDATA($countryCodeElement, $countryCode);\n }", "protected function _addB2CVariables()\n {\n if(isset($this->_additionalFields['bankaccount']))\n {\n // Strip whitespace from bankaccount string\n $bankAccountNumber = preg_replace( '/\\s+/' , '' , $this->_additionalFields['bankaccount'] );\n $array = array(\n 'bankAccountNumber' => $bankAccountNumber,\n );\n }\n else\n {\n $array = array(\n 'bankAccountNumber' => '',\n );\n }\n \n if (is_array($this->_vars)) {\n $this->_vars = array_merge($this->_vars, $array);\n } else {\n $this->_vars = $array;\n }\n \n $this->_debugEmail .= \"Shipping address variables added! \\n\";\n }", "private function getBillingAddress(array $order) {\n\n $address = array('address_book_id' => '',\n 'address_type' => 'bill',\n 'lastname' => $order['payment_lastname'],\n 'firstname' => $order['payment_firstname'],\n 'telephone' => $order['telephone'],\n 'mobile' => '',\n 'gender' => '',\n 'postcode' => $order['payment_postcode'],\n 'city' => $order['payment_city'],\n 'zone_id' => $order['payment_zone_id'],\n 'zone_code' => $order['payment_zone_code'],\n 'zone_name' => $order['payment_zone'],\n 'state' => '',\n 'address1' => $order['payment_address_1'],\n 'address2' => $order['payment_address_2'],\n 'country_id' => $order['payment_country_id'],\n 'country_code' => $order['payment_iso_code_3'],\n 'country_name' => $order['payment_country'],\n 'company' => $order['payment_company']);\n\n return $address;\n }", "public function createBasedOnInputData(array $addressInput): QuoteAddress\n {\n $addressInput['country_id'] = '';\n if ($addressInput['country_code']) {\n $addressInput['country_code'] = strtoupper($addressInput['country_code']);\n $addressInput['country_id'] = $addressInput['country_code'];\n }\n\n $maxAllowedLineCount = $this->addressHelper->getStreetLines();\n if (is_array($addressInput['street']) && count($addressInput['street']) > $maxAllowedLineCount) {\n throw new GraphQlInputException(\n __('\"Street Address\" cannot contain more than %1 lines.', $maxAllowedLineCount)\n );\n }\n\n $quoteAddress = $this->quoteAddressFactory->create();\n $quoteAddress->addData($addressInput);\n return $quoteAddress;\n }", "public function run()\n {\n $this->createAddress(1, '231 Le Duan, Da Nang');\n $this->createAddress(2, '12 Hai Phong, Da Nang');\n $this->createAddress(3, '98 Tran Phu, Da Nang');\n }", "protected function drawAddresses($page, $order)\n {\n /* Add table head */\n $this->_setFontBold($page, 14);\n $page->setFillColor(new \\Zend_Pdf_Color_GrayScale(0));\n\n $this->y -= 15;\n $page->drawText(__('Bill to :'), 30, $this->y, 'UTF-8');\n $page->drawText(__('Ship to :'), 300, $this->y, 'UTF-8');\n\n $billingAddress = explode(\"\\n\", $order->getBillingAddress());\n $shippingAddress = explode(\"\\n\", $order->getShippingAddress());\n\n $this->_setFontRegular($page, 12);\n $i = 0;\n foreach($billingAddress as $line) {\n $line = str_replace(\"\\r\", \"\", $line);\n if ($line) {\n $page->drawText($line, 60, $this->y - 20 - ($i * 13), 'UTF-8');\n $i++;\n }\n }\n\n $j = 0;\n foreach($shippingAddress as $line) {\n $line = str_replace(\"\\r\", \"\", $line);\n if ($line) {\n $page->drawText($line, 330, $this->y - 20 - ($j * 13), 'UTF-8');\n $j++;\n }\n }\n\n $maxLines = max(($i), ($j));\n\n $this->y -= $maxLines * 20 + 20;\n }", "function hook_commerce_adyen_shopper_address_alter(\\Commerce\\Adyen\\Payment\\Composition\\Address $address, \\EntityDrupalWrapper $profile, array $checkout_values, \\EntityDrupalWrapper $order) {\n if ('Dnipropetrovsk' === $address->getCity()) {\n $address->setCity('Dnipro');\n }\n}", "public function property_address() {\n\n\t\t\t$out = '<h6>Business Name:</strong></h6>';\n\t\t\t$out .= '<p>' . get_field( 'practice_name' ) . '</p>';\n\t\t\t$out .= '<h6>Address:</h6>';\n\t\t\t$out .= '<p>' . get_field( 'address_street' ) . '<br/>';\n\t\t\t$out .= get_field( 'address_city' ) . ', ' . get_field( 'address_state' ) . ' ' . get_field( 'address_postcode' ) . '</p>';\n\n\t\t\treturn $out;\n\t\t}", "public function addAddress(){\n\t\t$name = $_REQUEST['name'];\n\t\t$address = $_REQUEST['address'];\n $stuid = $_REQUEST['stuid'];\n\t\t$phone = $_REQUEST['phone'];\n\t\t$form = M(\"addressinfo\");\n\t\t$data['name'] = $name;\n \t$data['address'] = $address;\n \t$data['phone'] = $phone;\n $data['stuid'] = $stuid;\n \t$result = $form->add($data);\n\t\tif ($result) {$this->redirect('/fastfood/index.php/Admin/admin');}\n\t\t\telse {$this->error('添加失败');}\n }", "function ShipToAddress()\r\n\t{\r\n\t\r\n\t}", "public function setBillingAddress1($value)\n {\n return $this->setParameter('billingAddress1', $value);\n }", "function prepareTemplate( $step ) {\n\t\t$this->loadTemplate();\n\t\t// automatically substitute value markers\n\t\t$this->substituteValueMarkers( array( 'subpartName' => 'STEP_' . $step ) );\n\t\t// automatically substitute language markers\n\t\t$this->substituteLanguageMarkers(array('subpartName' => 'STEP_' . $step));\n\t\t$this->substituteLanguageMarkers(array('subpartName' => 'CAPTCHA_TEMPLATE'));\n\t\t$this->substituteFormMarkers(array('subpartName' => 'STEP_' . $step));\n\t\t$this->substituteFormMarkers(array('subpartName' => 'CAPTCHA_TEMPLATE'));\n\t}", "function ywig_company_address_3_callback() {\n\techo '<p class=\"description\">Company Address Line 3</p><input type=\"text\" name=\"company_address_3\" value=\"' . esc_html( get_option( 'company_address_3' ) ) . '\" placeholder=\"Company Address 3\" />';\n}", "function createAddress($Name, $Phone, $Street1, $Street2, $City, $State, $PostalCode, $Country ){\n $address= array(\n \"Name\"=>$Name,\n \"Phone\"=>$Phone,\n \"Street1\"=>$Street1,\n \"Street2\"=>$Street2,\n \"City\"=>$City,\n \"State\"=>$State,\n \"PostalCode\"=>$PostalCode,\n \"Country\"=>$Country);\n\n return $address;\n }", "function streetformatnl_civicrm_pre($op, $objectName, $objectId, &$objectRef) {\n if ($objectName == \"Address\") {\n if (isset($objectRef['country_id'])) {\n if ($objectRef['country_id'] == 1152 || $objectRef['country_id'] == 1020) {\n /*\n * glue if street_name <> empty and street_number <> empty, split otherwise if street_address not empty\n */\n if (!empty($objectRef['street_name']) && !empty($objectRef['street_number'])) {\n $glueParams['street_name'] = $objectRef['street_name'];\n $glueParams['street_number'] = $objectRef['street_number'];\n if (isset($objectRef['street_unit'])) {\n $glueParams['street_unit'] = $objectRef['street_unit'];\n }\n $objectRef['street_address'] = _glueStreetAddressNl($glueParams);\n } else {\n if (isset($objectRef['street_address']) && !empty($objectRef['street_address'])) {\n $streetParts = _splitStreetAddressNl($objectRef['street_address']);\n $objectRef['street_name'] = $streetParts['street_name'];\n if (isset($streetParts['street_number']) && !empty($streetParts['street_number'])) {\n $objectRef['street_number'] = $streetParts['street_number'];\n }\n if (isset($streetParts['street_unit']) && !empty($streetParts['street_unit'])) {\n $objectRef['street_unit'] = $streetParts['street_unit'];\n }\n $objectRef['street_address'] = _glueStreetAddressNl($streetParts);\n }\n } \n }\n }\n }\n}", "public function print_steps() {\n\t\tWC()->session->set( 'checkout_step', 'address' );\n\n\t\twc_get_template( 'checkout/multistep/steps.php', array( 'multistep' => $this ) );\n\t}", "public function generate_address( $args = array() )\n {\n return $this->_request('generatenewaddress', $args);\n }", "public function create()\n {\n //\n return view('address.create');\n }", "public function create()\n {\n //\n return view('address.create');\n }", "public function setBillingAddressId($id);", "public function addAddress()\n\t{\n\t\treturn $this->editAddress();\n\t}", "public function getBillingAddressId();", "private function _addShippingElement($order)\n {\n $shippingAddress = $order->addChild('shippingAddress');\n $this->_addAddressElement(\n $shippingAddress,\n $this->shippingAddress['firstName'],\n $this->shippingAddress['lastName'],\n $this->shippingAddress['street'],\n $this->shippingAddress['postalCode'],\n $this->shippingAddress['city'],\n $this->shippingAddress['countryCode']\n );\n }", "function ywig_company_address_2_callback() {\n\techo '<p class=\"description\">Company Address Line 2</p><input type=\"text\" name=\"company_address_2\" value=\"' . esc_html( get_option( 'company_address_2' ) ) . '\" placeholder=\"Company Address 2\" />';\n}", "public function billing_address()\n {\n return $this->hasOne(AddressProxy::modelClass(), 'saas_subscription_recurring_profile_id');\n }", "public function addAddress(Address $address, $id = null)\n {\n $packageId = $id !== null ? $id : ((count($this->postFields)+1));\n $postFields = $this->postFields;\n if (empty($postFields['Address'])) $postFields['Address'] = [];\n $postFields['Address'][] = array_merge(array('@attributes' => array('ID' => $packageId)), $address->data());\n $this->postFields = $postFields;\n }", "function custom_template_single_shipping()\n {\n global $product;\n ?>\n <span class=\"shipping-cs-tag\">\n <span>Shipping:</span>\n <span>Free</span>\n </span>\n <?php\n }", "function getAddressForm($action = 'new', $addressUid = NULL, $config) {\n\t\t$hookObjectsArr = array();\n\t\tif (is_array ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi4/class.tx_commerce_pi4.php']['getAddressFormItem']))\t{\n\t\t\tforeach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi4/class.tx_commerce_pi4.php']['getAddressFormItem'] as $classRef)\t{\n\t\t\t\t$hookObjectsArr[] = &t3lib_div::getUserObj($classRef);\n\t\t\t}\n\t\t}\n\n\t\tif (!empty($this->piVars['addressType'])) {\n\t\t\t$addressType = intval($this->piVars['addressType']);\n\t\t}\n\n\t\tswitch ($addressType) {\n\t\t\tcase '2':\n\t\t\t\t$addressType = 'delivery';\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$addressType = 'billing';\n\t\t\tbreak;\n\t\t}\n\n\t\t// Build query to select an address from the database if we have a logged in user\n\t\t$addressData = ($addressUid != NULL) ? $this->addresses[$addressUid] : array();\n\n\t\tif ($this->debug) {\n\t\t\tdebug($config, 'PI4 config');\n\t\t}\n\n\t\tif (count($this->formError) > 0) {\n\t\t\t$addressData = $this->piVars;\n\t\t}\n\t\t$addressData = tx_commerce_div::removeXSSStripTagsArray($addressData);\n\t\tif ($addressData['tx_commerce_address_type_id'] == NULL) {\n\t\t\t$addressData['tx_commerce_address_type_id'] = (int)$this->piVars['addressType'];\n\t\t}\n\n\t\t// Get the templates\n\t\tif ($this->conf[$addressType . '.']['subpartMarker.']['editWrap']) {\n\t\t\t$tplBase = $this->cObj->getSubpart($this->templateCode, strtoupper($this->conf[$addressType . '.']['subpartMarker.']['editWrap']));\n\t\t} else {\n\t\t\t$tplBase = $this->cObj->getSubpart($this->templateCode, '###ADDRESS_EDIT###');\n\t\t}\n\t\tif ($this->conf[$addressType . '.']['subpartMarker.']['editItem']) {\n\t\t\t$tplForm = $this->cObj->getSubpart($this->templateCode, strtoupper($this->conf[$addressType . '.']['subpartMarker.']['editItem']));\n\t\t} else {\n\t\t\t$tplForm = $this->cObj->getSubpart($this->templateCode, '###ADDRESS_EDIT_FORM###');\n\t\t}\n\t\tif ($this->conf[$addressType . '.']['subpartMarker.']['editField']) {\n\t\t\t$tplField = $this->cObj->getSubpart($this->templateCode, strtoupper($this->conf[$addressType . '.']['subpartMarker.']['editField']));\n\t\t} else {\n\t\t\t$tplField = $this->cObj->getSubpart($this->templateCode, '###SINGLE_INPUT###');\n\t\t}\n\n\t\t// Create form fields\n\t\t$fieldsMarkerArray = array();\n\t\tforeach($this->fieldList as $fieldName) {\n\t\t\t$fieldMA = array();\n\t\t\t$lowerName = strtolower($fieldName);\n\t\t\t$upperName = strtoupper($fieldName);\n\n\t\t\t// Get field label\n\t\t\t$fieldLabel = $this->pi_getLL('label_' . $lowerName, $fieldName);\n\n\t\t\t// Check if the field is manadatory and append the mandatory sign to the label\n\t\t\tif ($config['formFields.'][$fieldName . '.']['mandatory'] == '1') {\n\t\t\t\t$fieldLabel.= ' ' . $config['mandatorySign'];\n\t\t\t}\n\n\t\t\t// Insert error message for this specific field\n\t\t\tif (strlen($this->formError[$fieldName]) > 0) {\n\t\t\t\t$fieldMA['###FIELD_ERROR###'] = $this->formError[$fieldName];\n\t\t\t} else {\n\t\t\t\t$fieldMA['###FIELD_ERROR###'] = '';\n\t\t\t}\n\n\t\t\t// Create input field\n\t\t\t// In this version we only create some simple text fields.\n\t\t\t$fieldMA['###FIELD_INPUT###'] = $this->getInputField($fieldName, $config['formFields.'][$fieldName . '.'], $addressData[$fieldName]);\n\n\t\t\t// Get field item\n\t\t\t$fieldsMarkerArray['###FIELD_' . strtoupper($fieldName) . '###'] = $this->cObj->substituteMarkerArray($tplField, $fieldMA);\n\t\t\t$fieldsMarkerArray['###LABEL_' . strtoupper($fieldName) . '###'] = $fieldLabel;\n\t\t}\n\n\t\tforeach($hookObjectsArr as $hookObj) {\n\t\t\tif (method_exists($hookObj, 'processAddressfieldsMarkerArray'))\t{\n\t\t\t\t$fieldsMarkerArray = $hookObj->processAddressfieldsMarkerArray($fieldsMarkerArray, $tplField, $addressData, $action, $addressUid, $config , $this);\n\t\t\t}\n\t\t}\n\n\t\t// Merge fields with form template\n\t\t$formCode = $this->cObj->substituteMarkerArray($tplForm, $fieldsMarkerArray);\n\n\t\t// Create submit button and some hidden fields\n\t\t$submitCode = '<input type=\"hidden\" name=\"' . $this->prefixId . '[action]\" value=\"' . $action . '\" />';\n\t\t$submitCode.= '<input type=\"hidden\" name=\"' . $this->prefixId . '[addressid]\" value=\"' . $addressUid . '\" />';\n\t\t$submitCode.= '<input type=\"hidden\" name=\"' . $this->prefixId . '[addressType]\" value=\"' . $addressData['tx_commerce_address_type_id'] . '\" />';\n\t\t$submitCode.= '<input type=\"submit\" name=\"' . $this->prefixId . '[check]\" value=\"' . $this->pi_getLL('label_submit_edit') . '\" />';\n\n\t\t// Create a checkbox where the user can select if the address is his main address / Changed to label and field\n\t\t$isMainAddressCodeField = '<input type=\"checkbox\" name=\"' . $this->prefixId . '[ismainaddress]\"';\n\t\tif ($addressData['tx_commerce_is_main_address'] || $addressData['ismainaddress']) {\n\t\t\t$isMainAddressCodeField.= ' checked=\"checked\"';\n\t\t}\n\t\t$isMainAddressCodeField.= ' />';\n\t\t$isMainAddressCodeLabel.= $this->pi_getLL('label_is_main_address');\n\n\t\t//Fill additional information\n\t\tif ($addressData['tx_commerce_address_type_id'] == 1) {\n\t\t\t$baseMA['###MESSAGE_EDIT###'] = $this->pi_getLL('message_edit_billing');\n\t\t} elseif ($addressData['tx_commerce_address_type_id'] == 2) {\n\t\t\t$baseMA['###MESSAGE_EDIT###'] = $this->pi_getLL('message_edit_delivery');\n\t\t} else {\n\t\t\t$baseMA['###MESSAGE_EDIT###'] = $this->pi_getLL('message_edit_unknown');\n\t\t}\n\n\t\t// Fill the marker\n\t\t$baseMA['###ADDRESS_FORM_FIELDS###'] = $formCode;\n\t\t$baseMA['###ADDRESS_FORM_SUBMIT###'] = $submitCode;\n\t\t$baseMA['###ADDRESS_FORM_IS_MAIN_ADDRESS_FIELD###'] = $isMainAddressCodeField;\n\t\t$baseMA['###ADDRESS_FORM_IS_MAIN_ADDRESS_LABEL###'] = $isMainAddressCodeLabel;\n\n\t\t// @Deprecated Obsolete Marker, use Field and label instead\n\t\t$baseMA['###ADDRESS_FORM_IS_MAIN_ADDRESS###'] = $isMainAddressCodeField . ' ' . $isMainAddressCodeLabel;\n\t\t$baseMA['###ADDRESS_TYPE###'] = $this->pi_getLL('label_address_of_type_' . $this->piVars['addressType']);\n\n\t\t// Get action link\n\t\tif ((int)$this->piVars['backpid'] > 0) {\n\t\t\t$link = $this->pi_linkTP_keepPIvars_url();\n\t\t} else {\n\t\t\t$link = '';\n\t\t}\n\n\t\t$baseMA['###ADDRESS_FORM_BACK###'] = $this->pi_linkToPage(\n\t\t\t$this->pi_getLL('label_form_back', 'back'),\n\t\t\t$this->piVars['backpid'],\n\t\t\t'',\n\t\t\tarray(\n\t\t\t\t'tx_commerce_pi3' => array(\n\t\t\t\t\t'step' => $GLOBALS['TSFE']->fe_user->getKey('ses', tx_commerce_div::generateSessionKey('currentStep'))\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\n\t\tforeach($hookObjectsArr as $hookObj) {\n\t\t\tif (method_exists($hookObj, 'processAddressFormMarker')) {\n\t\t\t\t$hookObj->processAddressFormMarker($baseMA, $action, $addressUid, $addressData, $config, $this);\n\t\t\t}\n\t\t}\n\n\t\treturn '<form method=\"post\" action=\"' . $link . '\" ' . $this->conf[$addressType . '.']['formParams'] . '>' . $this->cObj->substituteMarkerArray($tplBase, $baseMA) . '</form>';\n\t}", "public function addAdditionalDataToAddress(Varien_Event_Observer $observer)\n {\n $event = $observer->getEvent();\n $address = $event['address'];\n $orderData = $address->getOrder()->getData();\n $address->setData(\n array_merge(\n $address->getData(),\n array(\n 'vat_id' => $orderData['customer_taxvat'],\n )\n ));\n }", "public function create()\n {\n return view('admin/address.create');\n }", "public function processEdit( Mage_Payment_Model_Recurring_Profile $profile, Varien_Object $input )\n\t{\n\t\t$customer = Mage::helper('tokenbase')->getCurrentCustomer();\n\t\t\n\t\tif( $profile->getShippingAddressInfo() != array() ) {\n\t\t\t$origAddr\t= Mage::getModel('sales/quote_address')->load( $profile->getInfoValue('shipping_address_info', 'address_id') );\n\t\t\t$newAddrId\t= intval( $input->getData('shipping_address_id') );\n\t\t\t\n\t\t\t/**\n\t\t\t * Has the address changed?\n\t\t\t */\n\t\t\tif( $origAddr && $newAddrId != $origAddr->getCustomerAddressId() ) {\n\t\t\t\t/**\n\t\t\t\t * New address or existing?\n\t\t\t\t * \n\t\t\t\t * If new:\n\t\t\t\t * - store as customer address\n\t\t\t\t * - convert to quote address\n\t\t\t\t * - add to profile\n\t\t\t\t * \n\t\t\t\t * If existing:\n\t\t\t\t * - convert to quote address\n\t\t\t\t * - add to profile\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Existing address\n\t\t\t\t */\n\t\t\t\tif( $newAddrId > 0 ) {\n\t\t\t\t\t$newAddr = Mage::getModel('customer/address')->load( $newAddrId );\n\t\t\t\t\t\n\t\t\t\t\tif( !$customer || $newAddr->getCustomerId() != $customer->getId() ) {\n\t\t\t\t\t\tMage::throwException( $this->__('An error occurred. Please try again.') );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * New address\n\t\t\t\t */\n\t\t\t\telse {\n\t\t\t\t\t$newAddr = Mage::getModel('customer/address');\n\t\t\t\t\t$newAddr->setCustomerId( $customer->getId() );\n\t\t\t\t\t\n\t\t\t\t\t$data = $input->getData('shipping');\n\t\t\t\t\t\n\t\t\t\t\t$addressForm = Mage::getModel('customer/form');\n\t\t\t\t\t$addressForm->setFormCode('customer_address_edit');\n\t\t\t\t\t$addressForm->setEntity( $newAddr );\n\t\t\t\t\t\n\t\t\t\t\t$addressData = $addressForm->extractData( $addressForm->prepareRequest( $data ) );\n\t\t\t\t\t$addressErrors = $addressForm->validateData( $addressData );\n\t\t\t\t\t\n\t\t\t\t\tif( $addressErrors !== true ) {\n\t\t\t\t\t\tMage::throwException( implode( ' ', $addressErrors ) );\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$addressForm->compactData( $addressData );\n\t\t\t\t\t$addressErrors = $newAddr->validate();\n\t\t\t\t\t\n\t\t\t\t\t$newAddr->setSaveInAddressBook( true );\n\t\t\t\t\t$newAddr->implodeStreetAddress();\n\t\t\t\t\t$newAddr->save();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Update the shipping address on our record\n\t\t\t\t */\n\t\t\t\t$origAddr->importCustomerAddress( $newAddr );\n\t\t\t\t\n\t\t\t\t$shippingAddr = $origAddr->getData();\n\t\t\t\t$this->_cleanupArray( $shippingAddr );\n\t\t\t\t$profile->setShippingAddressInfo( $shippingAddr );\n\t\t\t}\n\t\t}\n\t\t\n\t\t/**\n\t\t * Has the payment card changed?\n\t\t */\n\t\t$tokenbaseId = intval( $input->getData('tokenbase_id') );\n\t\tif( $tokenbaseId > 0 && $tokenbaseId != $profile->getInfoValue('additional_info', 'tokenbase_id') ) {\n\t\t\t$card = Mage::getModel('tokenbase/card')->load( $tokenbaseId );\n\t\t\t\n\t\t\tif( $card && $card->getId() == $tokenbaseId && ( $customer->getId() == 0 || $card->hasOwner( $customer->getId() ) ) ) {\n\t\t\t\t$adtl = $profile->getAdditionalInfo();\n\t\t\t\t$adtl['tokenbase_id'] = $tokenbaseId;\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Update billing address to match the card\n\t\t\t\t */\n\t\t\t\t$billingAddr\t= $profile->getBillingAddressInfo();\n\t\t\t\t\n\t\t\t\t$copyKeys\t\t= array( 'street', 'firstname', 'lastname', 'city', 'region', 'region_id', 'postcode', 'country_id', 'telephone', 'fax' );\n\t\t\t\tforeach( $copyKeys as $key ) {\n\t\t\t\t\t$billingAddr[ $key ] = $card->getAddress( $key );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$profile->setBillingAddressInfo( $billingAddr );\n\t\t\t\t$profile->setAdditionalInfo( $adtl );\n\t\t\t\t\n\t\t\t\tMage::helper('tokenbase')->log( $profile->getMethodCode(), sprintf( 'Changed tokenbase ID for RP #%s to %s', $profile->getReferenceId(), $adtl['tokenbase_id'] ) );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tMage::throwException( $this->__('Payment record not found. Please try again.') );\n\t\t\t}\n\t\t}\n\t\t\n\t\t/**\n\t\t * Has the next billing date changed?\n\t\t */\n\t\t$nextBilled = Mage::getModel('core/date')->gmtTimestamp( $input->getData('next_billed') );\n\t\tif( $input->getData('next_billed') != '' && $nextBilled > 0 && $nextBilled != $profile->getInfoValue('additional_info', 'next_cycle') ) {\n\t\t\t$adtl = $profile->getAdditionalInfo();\n\t\t\t$adtl['next_cycle'] = $nextBilled;\n\t\t\t\n\t\t\t$profile->setAdditionalInfo( $adtl );\n\t\t\t\n\t\t\tMage::helper('tokenbase')->log( $profile->getMethodCode(), sprintf( 'Changed next billing cycle for RP #%s to %s', $profile->getReferenceId(), date( 'j-F Y h:i', Mage::getModel('core/date')->timestamp( $adtl['next_cycle'] ) ) ) );\n\t\t}\n\t\t\n\t\tMage::dispatchEvent( 'tokenbase_recurringprofile_edit_before_save', array( 'profile' => $profile, 'input' => $input ) );\n\t\t\n\t\t$profile->save();\n\t\t\n\t\treturn $profile;\n\t}", "function custom_content_after_shippingform() {\r\n\tinclude ('vendor_shipping_form.php');\r\n}", "public function billing_address() {\n if(is_null($this->billing_address)){\n $this->billing_address = new Address($this->billing_address_id);\n }\n return $this->billing_address;\n }", "function add_to_project_library(Request $request){\n $pid = $request->pid;\n $pro = Products::where('pid',$pid)->first();\n\n if($pro->sale_price_start_date <= date('Y-m-d') && $pro->sale_price_end_date >= date('Y-m-d')){\n $totalPrice = $pro->sale_price;\n $price = $pro->sale_price;\n }else{\n $totalPrice = $pro->price;\n $price = $pro->price;\n }\n\n $address = UserAddress::where('user_id',Auth::user()->id)->count();\n if($address > 0){\n $user_address = UserAddress::where('user_id',Auth::user()->id)->first();\n $address_id = $user_address->id;\n }else{\n $add = new UserAddress;\n $add->user_id = Auth::user()->id;\n $add->type = 'billing';\n $add->first_name = Auth::user()->first_name;\n $add->last_name = Auth::user()->last_name;\n $add->email = Auth::user()->email;\n $add->mobile = '9000000000';\n $add->address = 'Test Address';\n $add->city = 'Test City';\n $add->state = 'Test State';\n $add->zipcode = 'Test zipcode';\n $add->is_default = 0;\n $add->status = 1;\n $add->created_at = Carbon::now();\n $save = $add->save();\n\n $address_id = $add->id;\n }\n\n $invoice = time();\n\n $order = new Orders;\n $order->user_id = Auth::user()->id;\n $order->order_number = $invoice;\n $order->order_date = Carbon::now();\n\n $order->order_token = $invoice;\n $order->order_status = 'Success';\n $order->payer_email = Auth::user()->email;\n $order->payerid = Auth::user()->id;\n $order->payer_first_name = Auth::user()->first_name;\n $order->payer_last_name = Auth::user()->last_name;\n\n $order->order_description = 'Payment towards order '.$invoice;\n $order->ordered_amt = $totalPrice;\n $order->booking_datebooked = date('Y-m-d');\n $order->booking_timebooked = date('H:i:s');\n $order->booking_cart_total = 1;\n $order->total = $totalPrice;\n $order->address_id = $address_id;\n $order->cart_total = serialize($pro);\n $order->created_at = Carbon::now();\n $order->save();\n\n $bp = new Booking_process;\n $bp->user_id = Auth::user()->id;\n $bp->order_id = $order->id;\n $bp->category_id = 1;\n $bp->product_id = $pro->id;\n $bp->product_name = $pro->product_name;\n $bp->product_quantity = 1;\n $bp->bookingdate = date('Y-m-d');\n $bp->bookingtime = date('H:i:s');\n $bp->setpayment = $price;\n $bp->subtotal = $totalPrice;\n $bp->created_at = Carbon::now();\n $bp->save();\n\n $this->remove_all_items();\n\n return redirect('order/invoice/'.$invoice);\n }", "public function getAccountAddress($account);" ]
[ "0.68376", "0.6243044", "0.6204326", "0.6124597", "0.5990082", "0.5962371", "0.59493023", "0.5938982", "0.5904406", "0.58969545", "0.58705926", "0.5829504", "0.58080435", "0.5777113", "0.57673466", "0.57512295", "0.57440794", "0.57407075", "0.5728406", "0.57063544", "0.5698722", "0.5651871", "0.56516856", "0.56458116", "0.56458116", "0.56253767", "0.5606777", "0.5582266", "0.5580843", "0.5565326", "0.5539222", "0.5497214", "0.5484074", "0.54398376", "0.5420121", "0.541357", "0.54122573", "0.54034793", "0.5362459", "0.53604823", "0.53589225", "0.5347048", "0.534421", "0.53361666", "0.5333004", "0.5328414", "0.53219914", "0.5317605", "0.53062946", "0.5304222", "0.5290391", "0.5283356", "0.5280606", "0.5280417", "0.528002", "0.5262701", "0.52620655", "0.5248395", "0.5230809", "0.5230062", "0.522764", "0.52182615", "0.52136177", "0.5209191", "0.5203378", "0.5198764", "0.5185009", "0.5180426", "0.5173835", "0.517132", "0.51675916", "0.5160539", "0.51568353", "0.5152617", "0.51511425", "0.51494694", "0.5146706", "0.5146342", "0.5132069", "0.5123096", "0.5120828", "0.51205593", "0.51205075", "0.51205075", "0.5118415", "0.5113035", "0.5112597", "0.5110412", "0.5107253", "0.51041234", "0.51022255", "0.5099754", "0.5088261", "0.5077915", "0.5071354", "0.5066289", "0.5058084", "0.5057174", "0.5055012", "0.5051031" ]
0.68225914
1
add address template to shipping step
public function appendAddressDataToShippingStep($observer) { if( false === Mage::getModel('postident/config')->isEnabled() || false === Mage::getModel('postident/config')->getAddressDataUsage()) { return; } if ($observer->getBlock() instanceof Mage_Checkout_Block_Onepage_Shipping && false == $observer->getBlock() instanceof Mage_Paypal_Block_Express_Review_Shipping ) { $transport = $observer->getTransport(); $block = $observer->getBlock(); $layout = $block->getLayout(); $html = $transport->getHtml(); $addAddressTemplateHtml = $layout->createBlock( 'postident/checkout_onepage_shipping', 'postident_onepage_billing') ->renderView(); $html = $html . $addAddressTemplateHtml; $transport->setHtml($html); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function default_template_shipping ()\r\n{\r\n$template = '\r\n{shipping_content alias=$shipping_alias}\r\n';\r\nreturn $template;\r\n}", "public function appendAddressDataToBillingStep($observer)\n {\n if( false === Mage::getModel('postident/config')->isEnabled()\n || false === Mage::getModel('postident/config')->getAddressDataUsage()) {\n return;\n }\n \n if ($observer->getBlock() instanceof Mage_Checkout_Block_Onepage_Billing \n && false == $observer->getBlock() instanceof Mage_Paypal_Block_Express_Review_Billing\n ) {\n $transport = $observer->getTransport();\n $block = $observer->getBlock();\n $layout = $block->getLayout();\n $html = $transport->getHtml();\n $addAddressTemplateHtml = $layout->createBlock(\n 'postident/checkout_onepage_billing', 'postident_onepage_billing')\n ->renderView();\n $html = $html . $addAddressTemplateHtml;\n $transport->setHtml($html);\n }\n }", "function custom_template_single_shipping()\n {\n global $product;\n ?>\n <span class=\"shipping-cs-tag\">\n <span>Shipping:</span>\n <span>Free</span>\n </span>\n <?php\n }", "public function shipping()\n\t{\n\t\t\n\t\t$this->templateFileName = 'shipping.tpl';\n\t\t\n\t\t// Make sure there is something in the user's cart.\n\t\t$cartID = $this->session->cartID;\n\t\t\n\t\t$cart = $this->dbConnection->prepareRecordSet(\"SELECT * FROM b_cart WHERE cart_id = ? AND record_status = 'A'\", $cartID);\n\t\t\n\t\tif ( !$cart )\n\t\t{\n\t\t\t// There is nothing in the cart, so display an error message\n\t\t\t$errormessage = urlencode('There is nothing in your cart');\n\t\t\theader(\"Location: /cart?emsg={$errormessage}\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\t// Get the list of shipping addresses to display on the page\n\t\t\t$addresses = $this->getAddresses();\n\t\t\t$this->set('addresses', $addresses);\n\t\t\t\n\t\t\t// Determine what to do based on user input\n\t\t\tif ( count($_POST) > 0 && isset($_POST['submit_shipping_address']) )\n\t\t\t{\n\t\t\t\t// A form was submitted, so handle the form input\n\t\t\t\t\n\t\t\t\tif (!isset($_POST['addressSelect']) || empty($_POST['addressSelect']))\n\t\t\t\t{\n\t\t\t\t\t$errors[] = 'Please select an address or create a new one.';\n\t\t\t\t}\n\t\t\t\telseif ( $_POST['addressSelect'] == 'new' )\n\t\t\t\t{\n\t\t\t\t\t// The user has selected to enter a new address\n\t\t\t\t\t// Make sure the address is complete\n\t\t\t\t\t\n\t\t\t\t\t$formComplete = true;\n\t\t\t\t\t\n\t\t\t\t\tif ( ! isset($_POST['address_name']) || empty($_POST['address_name']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$fieldErrors['address_name'] = 'Address Name is required';\n\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t}\n\t\t\t\t\tif ( ! isset($_POST['address_1']) || empty($_POST['address_1']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$fieldErrors['address_1'] = 'Address Line 1 is required';\n\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t}\n\t\t\t\t\tif ( ! isset($_POST['city']) || empty($_POST['city']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$fieldErrors['city'] = 'City is required';\n\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t}\n\t\t\t\t\tif ( ! isset($_POST['state']) || empty($_POST['state']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$fieldErrors['state'] = 'State is required';\n\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t}\n\t\t\t\t\tif ( ! isset($_POST['zip']) || empty($_POST['zip']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$fieldErrors['zip'] = 'Zip is required';\n\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$sanitized_zip = preg_replace('/\\D/', '', (string)$_POST['zip']);\n\t\t\t\t\t\t$zip_length = strlen($sanitized_zip);\n\t\t\t\t\t\tif ( $zip_length != 5 && $zip_length != 9 )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$formComplete = false;\n\t\t\t\t\t\t\t$fieldErrors['zip'] = 'Zip must be 5 or 9 digits.';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($zip_length == 9)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$_POST['zip'] = substr($sanitized_zip, 0, 5) . '-' . substr($sanitized_zip, 5, 4);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$_POST['zip'] = $sanitized_zip;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif ($formComplete)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t// The form is complete, so create the record\n\t\t\t\t\t\t$insertSQL = \"INSERT INTO b_user_address (user_id, address_name, address_1, address_2, city, state, zip, record_status) \"\n\t\t\t\t\t\t . \"VALUES(?, ?, ?, ?, ?, ?, ?, 'A')\";\n\t\t\t\t\t\tif ( ! $this->dbConnection->prepareCommand($insertSQL, $this->session->userID, $_POST['address_name'], $_POST['address_1'], $_POST['address_2'], $_POST['city'], $_POST['state'], $_POST['zip']) )\n\t\t\t\t\t\t\t$errors[] = 'Error creating record. Please try again.';\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// The record was successfully created, so set the shipping address ID and move on to the next step\n\t\t\t\t\t\t\t$this->session->shippingAddressID = $this->dbConnection->insert_id;\n\t\t\t\t\t\t\t// Have the address be automatically selected in the billing page\n\t\t\t\t\t\t\t$_POST['addressSelect'] = $this->dbConnection->insert_id;\n\t\t\t\t\t\t\t$this->__default();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->set('fieldErrors', $fieldErrors);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// The user selected an existing address for shipping\n\t\t\t\t\t// Verify it is a valid record ID\n\t\t\t\t\t$address = $this->dbConnection->prepareRecord(\"SELECT * FROM b_user_address WHERE address_id = ?\", $_POST['addressSelect']);\n\t\t\t\t\tif (!$address)\n\t\t\t\t\t\t$errors[] = 'Error selecting address. This address does not exist.';\n\t\t\t\t\telseif ( $address['user_id'] != $this->session->userID )\n\t\t\t\t\t\t$errors[] = 'Error: The selected address is for a different user.';\n\t\t\t\t\telseif ( $address['record_status'] != 'A')\n\t\t\t\t\t\t$errors[] = 'Error: The selected address is not active.';\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// The address is valid, so use it.\n\t\t\t\t\t\t// set the shipping address and move on to the next step\n\t\t\t\t\t\t$this->session->shippingAddressID = $_POST['addressSelect'];\n\t\t\t\t\t\t$this->__default();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\n\n\t\t\t// Set address ID for output, so the field is pre-selected\n\t\t\tif ( $this->session->shippingAddressID )\n\t\t\t\t$this->set('addressSelect', $this->session->shippingAddressID);\n\n\n\t\t\t// Set all of the view data for post data so the form will be reloaded\n\t\t\tforeach ($_POST as $id => $val)\n\t\t\t{\n\t\t\t\t$this->set($id, $val);\n\t\t\t}\n\n\t\t\t// Set the error list for output\n\t\t\t$this->set('errors', $errors);\n\t\t\t\n\t\t\t\n\t\t\t// Get the list of state codes to output\n\t\t\t$states = $this->dbConnection->recordSet(\"SELECT short_description AS code, long_description AS name FROM b_value WHERE data_member = 'STATE' ORDER BY short_description\");\n\t\t\t$this->set('states', $states);\n\t\t\t\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "function additional_paragraph_after_billing_address_1( $field, $key, $args, $value ){\r\n if ( is_checkout() && $key == 'billing_address_1' ) {\r\n $field .= '<p class=\"form-row red_text\" style=\"color:red;\">\r\n Ingresa tu dirección y pon \"Buscar\" o usa el mapa para ubicar tu dirección de envío</p>\r\n ';\r\n \r\n }\r\n return $field;\r\n}", "public function addAddress()\r\n {\r\n if ($this->_helper()->checkSalesVersion('1.4.0.0')) {\r\n # Community after 1.4.1.0 and Enterprise\r\n $salesFlatOrderAddress = $this->_helper()->getSql()->getTable('sales_flat_order_address');\r\n $this->getSelect()\r\n ->joinLeft(array('flat_order_addr_ship' => $salesFlatOrderAddress), \"flat_order_addr_ship.parent_id = main_table.entity_id AND flat_order_addr_ship.address_type = 'shipping'\", array())\r\n ->joinLeft(array('flat_order_addr_bill' => $salesFlatOrderAddress), \"flat_order_addr_bill.parent_id = main_table.entity_id AND flat_order_addr_bill.address_type = 'billing'\", array())\r\n ->columns(array('country_id' => 'IFNULL(flat_order_addr_ship.country_id, flat_order_addr_bill.country_id)'))\r\n ->group('country_id');\r\n } else {\r\n # Old Community\r\n $entityValue = $this->_helper()->getSql()->getTable('sales_order_entity_varchar');\r\n $entityAtribute = $this->_helper()->getSql()->getTable('eav_attribute');\r\n $entityType = $this->_helper()->getSql()->getTable('eav_entity_type');\r\n $orderEntity = $this->_helper()->getSql()->getTable('sales_order_entity');\r\n\r\n $this->getSelect()\r\n ->joinLeft(array('_eavType' => $entityType), \"_eavType.entity_type_code = 'order_address'\", array())\r\n ->joinLeft(array('_addrTypeAttr' => $entityAtribute), \"_addrTypeAttr.entity_type_id = _eavType.entity_type_id AND _addrTypeAttr.attribute_code = 'address_type'\", array())\r\n ->joinLeft(array('_addrValueAttr' => $entityAtribute), \"_addrValueAttr.entity_type_id = _eavType.entity_type_id AND _addrValueAttr.attribute_code = 'country_id'\", array())\r\n\r\n # Shipping values\r\n ->joinRight(array('_orderEntity_ship' => $orderEntity), \"_orderEntity_ship.entity_type_id = _eavType.entity_type_id AND _orderEntity_ship.parent_id = e.entity_id\", array())\r\n ->joinRight(array('_addrTypeVal_ship' => $entityValue), \"_addrTypeVal_ship.attribute_id = _addrTypeAttr.attribute_id AND _addrTypeVal_ship.entity_id = _orderEntity_ship.entity_id AND _addrTypeVal_ship.value = 'shipping'\", array())\r\n ->joinRight(array('_addrCountryVal_ship' => $entityValue), \"_addrCountryVal_ship.attribute_id = _addrValueAttr.attribute_id AND _addrCountryVal_ship.entity_id = _orderEntity_ship.entity_id\", array())\r\n\r\n # Billing values\r\n ->joinRight(array('_orderEntity_bill' => $orderEntity), \"_orderEntity_bill.entity_type_id = _eavType.entity_type_id AND _orderEntity_bill.parent_id = e.entity_id\", array())\r\n ->joinRight(array('_addrTypeVal_bill' => $entityValue), \"_addrTypeVal_bill.attribute_id = _addrTypeAttr.attribute_id AND _addrTypeVal_bill.entity_id = _orderEntity_bill.entity_id AND _addrTypeVal_bill.value = 'billing'\", array())\r\n ->joinRight(array('_addrCountryVal_bill' => $entityValue), \"_addrCountryVal_bill.attribute_id = _addrValueAttr.attribute_id AND _addrCountryVal_bill.entity_id = _orderEntity_bill.entity_id\", array())\r\n\r\n ->columns(array('country_id' => 'IFNULL(_addrCountryVal_ship.value, _addrCountryVal_bill.value)'))\r\n ->group('country_id');\r\n }\r\n return $this;\r\n }", "public function save_addressAction() {\r\n\t\t$billing_data = $this->getRequest()->getPost('billing', false);\r\n\t\t$shipping_data = $this->getRequest()->getPost('shipping', false);\r\n\t\t$shipping_method = $this->getRequest()->getPost('shipping_method', false);\r\n\t\t$billing_address_id = $this->getRequest()->getPost('billing_address_id', false);\t\r\n\t\t\r\n\t\t//load default data for disabled fields\r\n\t\tif (Mage::helper('onestepcheckout')->isUseDefaultDataforDisabledFields()) {\r\n\t\t\tMage::helper('onestepcheckout')->setDefaultDataforDisabledFields($billing_data);\r\n\t\t\tMage::helper('onestepcheckout')->setDefaultDataforDisabledFields($shipping_data);\r\n\t\t}\r\n\t\t\r\n\t\tif (isset($billing_data['use_for_shipping']) && $billing_data['use_for_shipping'] == '1') {\r\n\t\t\t$shipping_address_data = $billing_data;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$shipping_address_data = $shipping_data;\r\n\t\t}\r\n\t\t\r\n\t\t$billing_street = trim(implode(\"\\n\", $billing_data['street']));\r\n\t\t$shipping_street = trim(implode(\"\\n\", $shipping_address_data['street']));\r\n\t\t\r\n\t\tif(isset($billing_data['email'])) {\r\n\t\t\t$billing_data['email'] = trim($billing_data['email']);\r\n\t\t}\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t// Ignore disable fields validation --- Only for 1..4.1.1\r\n\t\t$this->setIgnoreValidation();\r\n\t\tif(Mage::helper('onestepcheckout')->isShowShippingAddress()) {\r\n\t\t\tif(!isset($billing_data['use_for_shipping']) || $billing_data['use_for_shipping'] != '1')\t{\t\t\r\n\t\t\t\t$shipping_address_id = $this->getRequest()->getPost('shipping_address_id', false);\r\n\t\t\t\t$this->getOnepage()->saveShipping($shipping_data, $shipping_address_id);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t$this->getOnepage()->saveBilling($billing_data, $billing_address_id);\r\n\t\tif($billing_data['country_id']){\r\n\t\t\tMage::getModel('checkout/session')->getQuote()->getBillingAddress()->setData('country_id',$billing_data['country_id'])->save();\r\n\t\t}\r\n\t\t//var_dump($billing_data['country_id']);die();\r\n\t\t//Mage::getModel('core/session')->setData('country',$billing_data['country_id']);\r\n\t\t// if different shipping address is enabled and customer ship to another address, save it\r\n\t\t\r\n\t\t\r\n\t\tif ($shipping_method && $shipping_method != '') {\r\n\t\t\tMage::helper('onestepcheckout')->saveShippingMethod($shipping_method);\r\n\t\t}\r\n\t\t$this->loadLayout(false);\r\n\t\t$this->renderLayout();\t\r\n\t}", "public function addShippingAddress($shiptoname, $shiptostreet, $shiptocity, $shiptostate, $shiptozip, $shiptocountrycode, $shiptophonenum = null)\n\t{\n\t\t$address = func_get_args();\n\n\t\t// Validate fields\n\t\tif (strlen($shiptoname) > 32) throw new PayPalException('Shipping address name cannot exceed 32 characters!');\n\t\tif (strlen($shiptostreet) > 200) throw new PayPalException('Shipping street address cannot exceed 200 characters!');\n\t\telse if (strlen($shiptostreet) > 100) {\n\t\t\t$words = explode(\" \", $shiptostreet);\n\t\t\t$address['shiptostreet'] = \"\";\n\t\t\twhile(strlen($address['shiptostreet']) < 100 && $words) $address['shiptostreet'] += array_shift($words) . \" \";\n\t\t\tif ($words) $address['shiptostreet2'] = implode(\" \", $words);\n\t\t}\n\t\tif (strlen($shiptocity) > 40) throw new PayPalException('Shipping address city cannot exceed 40 characters!');\n\t\tif (strlen($shiptozip) > 20) throw new PayPalException('Shipping address postal code/ZIP cannot exceed 20 characters!');\n\t\tif (strlen($shiptocountrycode) > 2) throw new PayPalException('Shipping address country must be a 2 character code!');\n\t\tif ($shiptophonenum && strlen($shiptophonenum) > 20) throw new PayPalException('Shipping address phone number cannot exceed 20 characters!');\n\t\telse if (is_null($shiptophonenum)) unset($address['shiptophonenum']);\n\n\t\t$this->_payment_fields = array_merge($this->_payment_fields, compact('shiptoname', 'shiptostreet', 'shiptocity', 'shiptostate', 'shiptozip', 'shiptocountrycode', 'shiptophonenum'));\n\t\t$this->addroverride = 1;\n\t}", "function ShipToAddress()\r\n\t{\r\n\t\r\n\t}", "private function _generateShippingAddressData(){\n \n $address = new PagSeguroAddress();\n $delivery_address = new Address($this->context->cart->id_address_delivery);\n \n if (!is_null($delivery_address)){\n $address->setCity($delivery_address->city);\n $address->setPostalCode($delivery_address->postcode);\n $address->setStreet($delivery_address->address1);\n $address->setDistrict($delivery_address->address2);\n $address->setComplement($delivery_address->other);\n $address->setCity($delivery_address->city);\n \n $country = new Country($delivery_address->id_country);\n $address->setCountry($country->iso_code);\n \n $state = new State($delivery_address->id_state);\n $address->setState($state->iso_code);\n }\n \n return $address;\n }", "public function create()\n {\n return view(\"admin.shipping-management.create-shipping\",[\"shipping\" => false]);\n \n }", "private function _addShippingElement($order)\n {\n $shippingAddress = $order->addChild('shippingAddress');\n $this->_addAddressElement(\n $shippingAddress,\n $this->shippingAddress['firstName'],\n $this->shippingAddress['lastName'],\n $this->shippingAddress['street'],\n $this->shippingAddress['postalCode'],\n $this->shippingAddress['city'],\n $this->shippingAddress['countryCode']\n );\n }", "public function setShippingAddressAction()\n {\n $data = $this->Request()->getParams();\n //we need to set this because of a bug in the shopware models\n if (!isset($data['stateId'])) {\n $data['stateId'] = 0;\n }\n\n /** @var Shopware\\Models\\Customer\\Customer $customerModel */\n $customerModel = Shopware()->Models()->find('Shopware\\Models\\Customer\\Customer', $data['userId']);\n\n if ($shippingAddressModel = $customerModel->getShipping()) {\n $shippingAddressModel->fromArray($data);\n\n Shopware()->Models()->persist($shippingAddressModel);\n Shopware()->Models()->flush();\n\n $this->view->assign(['shippingAddressId' => $shippingAddressModel->getId()]);\n }\n }", "public function create()\n {\n $shippingAddress = Sentinel::getUser()->shippingAddress()->first();\n return view('frontend.place-order', compact('shippingAddress'));\n }", "function custom_content_after_shippingform() {\r\n\tinclude ('vendor_shipping_form.php');\r\n}", "public function addPickupOrderGuestEmailTemplate()\n {\n $template = $this->templateFactory->create();\n $template->setTemplateCode('New Pickup Order For Guest');\n $template->setTemplateText($this->getEmailTemplateForGuest());\n $template->setTemplateType(TemplateTypesInterface::TYPE_HTML);\n $template->setTemplateSubject(\n '{{trans \"Your %store_name order confirmation\" store_name=$store.getFrontendName()}}'\n );\n $template->setOrigTemplateCode('sales_email_order_guest_template');\n // @codingStandardsIgnoreLine\n $template->setOrigTemplateVariables('{\"var formattedBillingAddress|raw\":\"Billing Address\",\"var order.getEmailCustomerNote()\":\"Email Order Note\",\"var order.getBillingAddress().getName()\":\"Guest Customer Name\",\"var order.getCreatedAtFormatted(2)\":\"Order Created At (datetime)\",\"var order.increment_id\":\"Order Id\",\"layout handle=\\\"sales_email_order_items\\\" order=$order\":\"Order Items Grid\",\"var payment_html|raw\":\"Payment Details\",\"var formattedShippingAddress|raw\":\"Shipping Address\",\"var order.getShippingDescription()\":\"Shipping Description\",\"var shipping_msg\":\"Shipping message\"}');\n\n $this->templateResource->save($template);\n }", "public function sSaveShippingAddress($address, $id)\n {\n $sql = '\n INSERT INTO s_order_shippingaddress\n (\n userID,\n orderID,\n company,\n department,\n salutation,\n firstname,\n lastname,\n street,\n zipcode,\n city,\n phone,\n countryID,\n stateID,\n additional_address_line1,\n additional_address_line2,\n title\n )\n VALUES (\n :userID,\n :orderID,\n :company,\n :department,\n :salutation,\n :firstname,\n :lastname,\n :street,\n :zipcode,\n :city,\n :phone,\n :countryID,\n :stateID,\n :additional_address_line1,\n :additional_address_line2,\n :title\n )\n ';\n $sql = $this->eventManager->filter(\n 'Shopware_Modules_Order_SaveShipping_FilterSQL',\n $sql,\n ['subject' => $this, 'address' => $address, 'id' => $id]\n );\n $array = [\n ':userID' => $address['userID'],\n ':orderID' => $id,\n ':company' => (string) $address['company'],\n ':department' => (string) $address['department'],\n ':salutation' => (string) $address['salutation'],\n ':firstname' => (string) $address['firstname'],\n ':lastname' => (string) $address['lastname'],\n ':street' => (string) $address['street'],\n ':zipcode' => (string) $address['zipcode'],\n ':city' => (string) $address['city'],\n ':phone' => (string) $address['phone'],\n ':countryID' => $address['countryID'],\n ':stateID' => $address['stateID'],\n ':additional_address_line1' => (string) $address['additional_address_line1'],\n ':additional_address_line2' => (string) $address['additional_address_line2'],\n ':title' => (string) $address['title'],\n ];\n $array = $this->eventManager->filter(\n 'Shopware_Modules_Order_SaveShipping_FilterArray',\n $array,\n ['subject' => $this, 'address' => $address, 'id' => $id]\n );\n $result = $this->db->executeUpdate($sql, $array);\n\n $shippingId = $this->db->lastInsertId();\n\n $shippingAddressId = null;\n\n if ($this->session !== null) {\n $shippingAddressId = $this->session->get('checkoutShippingAddressId');\n }\n\n if ($shippingAddressId === null) {\n /** @var Customer $customer */\n $customer = $this->modelManager->getRepository(\\Shopware\\Models\\Customer\\Customer::class)\n ->find($address['userID']);\n $shippingAddressId = $customer->getDefaultShippingAddress()->getId();\n }\n\n $attributes = $this->attributeLoader->load('s_user_addresses_attributes', $shippingAddressId);\n\n $this->attributePersister->persist($attributes, 's_order_shippingaddress_attributes', $shippingId);\n\n return $result;\n }", "protected function processShippingAddress()\n {\n $this->updateStreetFields($this->addressFields['children']['street'], 'shippingAddress');\n\n if(false === $this->configResolver->getUseRegions()){\n unset($this->addressFields['children']['region']['filterBy']);\n unset($this->addressFields['children']['region_id']);\n }\n\n foreach ($this->fieldsConfig as $fieldName => $config) {\n $field = &$this->addressFields['children'][$fieldName];\n $this->configureField($field, 'shippingAddress', $config);\n }\n }", "public function saveShippingAction() {\n\t\tif ($this->getRequest ()->isPost ()) {\n\t\t\t$preAddr = Mage::getSingleton ( 'customer/session' )->getPreaddress ();\n\t\t\t\n\t\t\tif ($preAddr) {\n\t\t\t\t$data = array ();\n\t\t\t\tif (! empty ( $preAddr ['ShippingAddress'] [0] )) {\n\t\t\t\t\t$preData = $preAddr ['ShippingAddress'];\n\t\t\t\t} else {\n\t\t\t\t\t$preData = $preAddr;\n\t\t\t\t}\n\t\t\t\t$dataId = $this->getRequest ()->getPost ( 'addressid' );\n\t\t\t\t\n\t\t\t\t$mpData = Mage::getModel ( 'masterpass/masterpass' );\n\t\t\t\tforeach ( $preData as $value ) {\n\t\t\t\t\tif ($dataId == $value ['AddressId']) {\n\t\t\t\t\t\t$reecipientName = $value ['RecipientName'];\n\t\t\t\t\t\t$name = Mage::helper ( 'masterpass' )->getRecipienName ( $reecipientName );\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (! is_array ( $value ['Line2'] )) {\n\t\t\t\t\t\t\t$lin2 = $value ['Line2'];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$lin2 = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (! is_array ( $value ['Line3'] )) {\n\t\t\t\t\t\t\t$lin3 = $value ['Line3'];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$lin3 = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$regionIdS = Mage::helper ( 'masterpass' )->checkMasterpassData ( $mpData->statesMapping ( $value ['CountrySubdivision'] ) );\n\t\t\t\t\t\t$regionS = Mage::helper ( 'masterpass' )->checkMasterpassData ( $mpData->getMasterpassRegion ( $value ['CountrySubdivision'] ) );\n\t\t\t\t\t\t$shippingPhone = $mpData->getRemoveDash ( Mage::helper ( 'masterpass' )->checkMasterpassData ( $value ['RecipientPhoneNumber'] ) );\n\t\t\t\t\t\t$data = array (\n\t\t\t\t\t\t\t\t'firstname' => $name [0],\n\t\t\t\t\t\t\t\t'lastname' => $name [1],\n\t\t\t\t\t\t\t\t'street' => array (\n\t\t\t\t\t\t\t\t\t\t0 => $value ['Line1'],\n\t\t\t\t\t\t\t\t\t\t1 => $lin2,\n\t\t\t\t\t\t\t\t\t\t2 => $lin3 \n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t'city' => $value ['City'],\n\t\t\t\t\t\t\t\t'region_id' => $regionIdS,\n\t\t\t\t\t\t\t\t'region' => $regionS,\n\t\t\t\t\t\t\t\t'postcode' => $value ['PostalCode'],\n\t\t\t\t\t\t\t\t'country_id' => $value ['Country'],\n\t\t\t\t\t\t\t\t'telephone' => $shippingPhone \n\t\t\t\t\t\t);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$customerAddressId = $this->getRequest ()->getPost ( 'shipping_address_id', false );\n\t\t\t\t$this->getOnepage ()->saveShipping ( $data, $customerAddressId );\n\t\t\t}\n\t\t}\n\t\t$this->loadLayout ( false );\n\t\t$this->renderLayout ();\n\t}", "public function addPickupOrderEmailTemplate()\n {\n $template = $this->templateFactory->create();\n $template->setTemplateCode('New Pickup Order');\n $template->setTemplateText($this->getEmailTemplate());\n $template->setTemplateType(TemplateTypesInterface::TYPE_HTML);\n $template->setTemplateSubject(\n '{{trans \"Your %store_name order confirmation\" store_name=$store.getFrontendName()}}'\n );\n $template->setOrigTemplateCode('sales_email_order_template');\n // @codingStandardsIgnoreLine\n $template->setOrigTemplateVariables('{\"var formattedBillingAddress|raw\":\"Billing Address\",\"var order.getEmailCustomerNote()\":\"Email Order Note\",\"var order.increment_id\":\"Order Id\",\"layout handle=\\\"sales_email_order_items\\\" order=$order area=\\\"frontend\\\"\":\"Order Items Grid\",\"var payment_html|raw\":\"Payment Details\",\"var formattedShippingAddress|raw\":\"Shipping Address\",\"var order.getShippingDescription()\":\"Shipping Description\",\"var shipping_msg\":\"Shipping message\"}');\n\n $this->templateResource->save($template);\n }", "public function create()\n {\n return view('sadmin.shippingadd');\n }", "function uc_order_pane_ship_to($op, $order, &$form = NULL, &$form_state = NULL) {\n switch ($op) {\n case 'customer':\n if (!uc_order_is_shippable($order)) {\n return;\n }\n case 'view':\n $build = array('#markup' => uc_order_address($order, 'delivery') . '<br />' . check_plain($order->delivery_phone));\n return $build;\n\n case 'edit-form':\n $form['ship_to'] = array(\n '#type' => 'uc_address',\n '#default_value' => $order,\n '#required' => FALSE,\n '#attributes' => array('class' => array('uc-store-address-field')),\n '#key_prefix' => 'delivery',\n );\n return $form;\n\n case 'edit-theme':\n $output = '<div class=\"order-pane-icons\">';\n $output .= ' <img src=\"' . base_path() . drupal_get_path('module', 'uc_store')\n . '/images/address_book.gif\" alt=\"' . t('Select from address book.') . '\" '\n . 'title=\"' . t('Select from address book.') . '\" onclick=\"load_address_select(' . $form['order_uid']['#value'] . ', \\'#delivery_address_select\\', \\'delivery\\');\" />';\n $output .= ' <img src=\"' . base_path() . drupal_get_path('module', 'uc_store')\n . '/images/copy.gif\" alt=\"' . t('Copy billing information.') . '\" title=\"'\n . t('Copy billing information.') . '\" onclick=\"uc_order_copy_billing_to_shipping();\" />';\n $output .= '</div>';\n $output .= '<div id=\"delivery_address_select\"></div>';\n return $output . drupal_render($form['ship_to']);\n\n case 'edit-process':\n foreach ($form_state['values'] as $key => $value) {\n if (substr($key, 0, 9) == 'delivery_') {\n if (uc_address_field_enabled(substr($key, 9))) {\n $changes[$key] = $value;\n }\n }\n }\n return $changes;\n }\n}", "public function toString()\n\t{\n\t\treturn \"Customer on checkout page - Shipping address popup - created address is shown on [Shipping address] and [Billing address] section\";\n\t}", "function addAddressBookEntry($customer_id, $address_question_arr, $make_default = false) {\n // first get the zone id's from the 2 digit iso codes\n // country first\n $country_query = tep_db_query('SELECT countries_id, address_format_id\n FROM ' . TABLE_COUNTRIES . '\n WHERE countries_name = \\'' . $address_question_arr['country'] . '\\'\n LIMIT 1');\n\n // see if we found a record, if not default to American format\n if (tep_db_num_rows($country_query) > 0) {\n $country = tep_db_fetch_array($country_query);\n // grab the country id and address format\n $country_id = $country['countries_id'];\n $address_format_id = $country['address_format_id'];\n } else {\n // default\n $country_id = '223';\n $address_format_id = '2'; //2 is the American format\n }\n\n // see if the country code has a state\n $country_zone_check_query = tep_db_query('SELECT zone_country_id\n FROM ' . TABLE_ZONES . '\n WHERE zone_country_id = \\'' . $country_id . '\\'\n LIMIT 1');\n if (tep_db_num_rows($country_zone_check_query) > 0) {\n $check_zone = true;\n } else {\n $check_zone = false;\n }\n\n // now try and find the zone_id (state/province code)\n // use the country id above\n if ($check_zone) {\n $zone_query = tep_db_query('SELECT zone_id\n FROM ' . TABLE_ZONES . '\n WHERE zone_country_id = \\'' . $country_id . '\\' AND\n zone_code = \\'' . $address_question_arr['state'] . '\\'\n LIMIT 1');\n if (tep_db_num_rows($zone_query) > 0) {\n // grab the id\n $zone = tep_db_fetch_array($zone_query);\n $zone_id = $zone['zone_id'];\n } else {\n $check_zone = false;\n }\n }\n\n // now run the insert\n // this isnt the best way but it will get the majority of cases\n list($fname, $lname) = explode(' ', $address_question_arr['name']);\n if ($check_zone) {\n tep_db_query('INSERT INTO ' . TABLE_ADDRESS_BOOK . '\n (address_book_id, customers_id, entry_gender, entry_firstname, entry_lastname,\n entry_street_address, entry_suburb, entry_postcode, entry_city, entry_country_id,\n entry_zone_id)\n VALUES\n (NULL, \\'' . $customer_id . '\\', \\'\\', \\'' . $fname . '\\', \\'' . $lname . '\\',\n \\'' . $address_question_arr['street_address'] . '\\', \\'' . $address_question_arr['suburb'] . '\\',\n \\'' . $address_question_arr['postcode'] . '\\', \\'' . $address_question_arr['city'] . '\\',\n \\'' . $country_id . '\\', \\'' . $zone_id . '\\')');\n } else {\n tep_db_query('INSERT INTO ' . TABLE_ADDRESS_BOOK . '\n (address_book_id, customers_id, entry_gender, entry_firstname, entry_lastname,\n entry_street_address, entry_suburb, entry_postcode, entry_city, entry_country_id)\n VALUES\n (NULL, \\'' . $customer_id . '\\', \\'\\', \\'' . $fname . '\\', \\'' . $lname . '\\',\n \\'' . $address_question_arr['street_address'] . '\\', \\'' . $address_question_arr['suburb'] . '\\',\n \\'' . $address_question_arr['postcode'] . '\\', \\'' . $address_question_arr['city'] . '\\',\n \\'' . $country_id . '\\')');\n }\n $address_book_id = tep_db_insert_id();\n\n // make default if set, update\n if ($make_default) {\n tep_db_query('UPDATE '. TABLE_CUSTOMERS . '\n SET customers_default_address_id = \\'' . $address_book_id . '\\'\n WHERE customers_id = \\'' . $customer_id . '\\'');\n $_SESSION['customer_default_address_id'] = $address_book_id;\n }\n\n // set the sendto\n $_SESSION['sendto'] = $address_book_id;\n\n // return the address_id\n return $address_book_id;\n }", "function roomify_conversations_add_booking_address() {\n field_info_cache_clear();\n\n // \"booking_address\" field.\n if (field_read_field('booking_address') === FALSE) {\n $field = array(\n 'field_name' => 'booking_address',\n 'type' => 'addressfield',\n 'cardinality' => 1,\n 'locked' => 1,\n 'settings' => array(),\n );\n field_create_field($field);\n }\n\n field_cache_clear();\n\n // \"booking_address\" field instance.\n if (field_read_instance('bat_booking', 'booking_address', 'conversation_booking') === FALSE) {\n $instance = array(\n 'field_name' => 'booking_address',\n 'entity_type' => 'bat_booking',\n 'label' => 'Address',\n 'bundle' => 'conversation_booking',\n 'required' => FALSE,\n 'widget' => array(\n 'type' => 'addressfield_standard',\n 'settings' => array(\n 'default_country' => '',\n ),\n ),\n );\n field_create_instance($instance);\n }\n}", "public function print_steps() {\n\t\tWC()->session->set( 'checkout_step', 'address' );\n\n\t\twc_get_template( 'checkout/multistep/steps.php', array( 'multistep' => $this ) );\n\t}", "function address_shortcode() {\n ob_start();\n get_template_part('address');\n return ob_get_clean();\n}", "private function register_place_fields() {\n\n $address_children = [\n 'street_01' => new \\Fieldmanager_Textfield( esc_html__( 'Street Address', 'pedestal' ), [\n 'name' => 'street_01',\n ] ),\n 'street_02' => new \\Fieldmanager_Textfield( esc_html__( 'Street Address (Line 2)', 'pedestal' ), [\n 'name' => 'street_02',\n ] ),\n 'po_box' => new \\Fieldmanager_Textfield( esc_html__( 'P.O. Box Number', 'pedestal' ), [\n 'name' => 'po_box',\n 'description' => esc_html__( 'Include number only (no \"P.O.\" needed).', 'pedestal' ),\n ] ),\n 'postal_code' => new \\Fieldmanager_Textfield( esc_html__( 'Postal Code', 'pedestal' ), [\n 'name' => 'postal_code',\n ] ),\n ];\n $address = new \\Fieldmanager_Group( false, [\n 'name' => 'place_address',\n 'children' => $address_children,\n 'description' => esc_html__( 'Street address only. City info is entered in the Locality box below.', 'pedestal' ),\n 'serialize_data' => false,\n ] );\n\n $address->add_meta_box( esc_html__( 'Street Address', 'pedestal' ), [ 'pedestal_place' ], 'normal', 'high' );\n\n }", "public function addAddressParams()\n {\n $oUser = $this->getUser();\n if (!$oUser) {\n return;\n }\n $oRequest = $this->getPayPalRequest();\n\n $oRequest->setParameter(\"EMAIL\", $oUser->oxuser__oxusername->value);\n\n $sAddressId = $oUser->getSelectedAddressId();\n if ($sAddressId) {\n $oAddress = oxNew(\"oxAddress\");\n $oAddress->load($sAddressId);\n\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTONAME\", getStr()->html_entity_decode($oAddress->oxaddress__oxfname->value . \" \" . $oAddress->oxaddress__oxlname->value));\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOSTREET\", getStr()->html_entity_decode($oAddress->oxaddress__oxstreet->value . \" \" . $oAddress->oxaddress__oxstreetnr->value));\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOCITY\", $oAddress->oxaddress__oxcity->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOZIP\", $oAddress->oxaddress__oxzip->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOPHONENUM\", $oAddress->oxaddress__oxfon->value);\n\n $oCountry = oxNew(\"oxCountry\");\n $oCountry->load($oAddress->oxaddress__oxcountryid->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE\", $oCountry->oxcountry__oxisoalpha2->value);\n\n if ($oAddress->oxaddress__oxstateid->value) {\n $oState = oxNew(\"oxState\");\n $oState->load($oAddress->oxaddress__oxstateid->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOSTATE\", $oState->oxstates__oxisoalpha2->value);\n }\n } else {\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTONAME\", getStr()->html_entity_decode($oUser->oxuser__oxfname->value . \" \" . $oUser->oxuser__oxlname->value));\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOSTREET\", getStr()->html_entity_decode($oUser->oxuser__oxstreet->value . \" \" . $oUser->oxuser__oxstreetnr->value));\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOCITY\", $oUser->oxuser__oxcity->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOZIP\", $oUser->oxuser__oxzip->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOPHONENUM\", $oUser->oxuser__oxfon->value);\n\n $oCountry = oxNew(\"oxCountry\");\n $oCountry->load($oUser->oxuser__oxcountryid->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE\", $oCountry->oxcountry__oxisoalpha2->value);\n\n if ($oUser->oxuser__oxstateid->value) {\n $oState = oxNew(\"oxState\");\n $oState->load($oUser->oxuser__oxstateid->value);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_SHIPTOSTATE\", $oState->oxstates__oxisoalpha2->value);\n }\n }\n }", "function custom_template_single_tabs_shipping_delivery()\n { \n include('shipping-delivery-custom.php');\n }", "function wdm_add_shipping_method_to_order_email( $order, $is_admin_email ) {\r\n\t\tglobal $wpdb;\r\n\t\t$wpdb->show_errors();\r\n\t\t$table_name = $wpdb->prefix.FOXPOST_TABLE_NAME;\r\n\t\t$fp_datas = $wpdb->get_results(\"SELECT id, terminal_id, status FROM \".$table_name.\" WHERE order_id='\".$order->id.\"'\");\r\n\t\t$apt_id = $fp_datas[0]->terminal_id;\r\n\r\n\t\t$apts = getTerminals();\r\n\t\t$apt_str = 'Ismeretlen';\r\n\t\tforeach($apts as $apt){\r\n\t\t\tif($apt_id == $apt['fp_place_id']){\r\n\t\t\t\t$apt_str = $apt['fp_name'];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\techo '<p><h4>Választott terminál: <u> ' . $apt_str . '</h4></u></p>';\r\n\t}", "function smarty_function_shipping($params, $template)\r\n{\t\r\n\tglobal $config;\r\n\tglobal $order;\t\t\r\n\t\t\r\n\tApp::uses('SmartyComponent', 'Controller/Component');\r\n\t\t$Smarty = new SmartyComponent(new ComponentCollection());\r\n\r\n\tApp::import('Model', 'ShippingMethod');\r\n\t\t$ShippingMethod = new ShippingMethod();\r\n\r\n\t// Get the shipping method \r\n\t$shipping = $ShippingMethod->read(null,$order['Order']['shipping_method_id']);\r\n\t\r\n\t$assignments = array('shipping_alias' => $shipping['ShippingMethod']['code']);\r\n\r\n\t$display_template = $Smarty->load_template($params,'shipping');\t\r\n\t$Smarty->display($display_template,$assignments);\r\n\t\r\n}", "function useDifferentShippingAddress($data, $form, $request) {\n\t\t$order = ShoppingCart::curr();\n\t\t$order->SeparateBillingAddress = true;\n\t\t$order->write();\n\t\t$this->saveDataToSession($data);\n\t\tController::curr()->redirectBack();\n\t}", "function add_address() {\n\t\t //$mailchimpform = mailchimpSF_signup_form();\n $cont .= '<span class=\"logo-address\">507 Kent Street, Utica, NY 13501 | (315) 797-2233 toll free (877) 719-9996</span>';\n\t \n\t echo $cont;\n }", "function get_item_shipping() {\n\t}", "function useMemberShippingAddress($data, $form, $request) {\n\t\t$order = ShoppingCart::curr();\n\t\t$order->SeparateBillingAddress = false;\n\t\t$order->write();\n\t\t$this->saveDataToSession($data);\n\t\tController::curr()->redirectBack();\n\t}", "private function addAddress($options)\n {\n $address = $options['billing_address']\n ?: $options['address'];\n\n $this->post['card']['address_line1'] = $address['address1'];\n $this->post['card']['address_line2'] = $address['address2'];\n $this->post['card']['address_city'] = $address['city'];\n $this->post['card']['address_postcode'] = $address['zip'];\n $this->post['card']['address_state'] = $address['state'];\n $this->post['card']['address_country'] = $address['country'];\n }", "public function updateShippingAddress() {\n Log::debug(\"Entering updateShipping\");\n DB::transaction(function () {\n $order = $this->getOrderData();\n if (isset($order)) {\n // If set shipping addres same as billing\n if (isset($_POST['useBillingAddress'])) {\n $useBilling = $_POST['useBillingAddress'];\n if ($useBilling == \"1\") {\n $order->shipping_address = $order->billing_address;\n }\n // Not using billing address\n } else {\n // update the existing billing adress or create a new one\n $address = $order->shippingAddress;\n // if no existing address or changing from billing address\n if (!isset($address) || $order->billing_address == $order->shipping_address)\n $address = new Address();\n\n $address = $this->fillOrderAddress($address);\n $address->save();\n $order->shipping_address = $address->id;\n }\n $order->save();\n }\n });\n }", "function tep_address_format($address_format_id, $address, $html, $boln, $eoln) {\n $address_format_query = tep_db_query(\"select address_format as format from \" . TABLE_ADDRESS_FORMAT . \" where address_format_id = '\" . (int)$address_format_id . \"'\");\n $address_format = tep_db_fetch_array($address_format_query);\n\n $company = tep_output_string_protected($address['company']);\n if (isset($address['firstname']) && tep_not_null($address['firstname'])) {\n $firstname = tep_output_string_protected($address['firstname']);\n $lastname = tep_output_string_protected($address['lastname']);\n } elseif (isset($address['name']) && tep_not_null($address['name'])) {\n $firstname = tep_output_string_protected($address['name']);\n $lastname = '';\n } else {\n $firstname = '';\n $lastname = '';\n }\n $street = tep_output_string_protected($address['street_address']);\n $suburb = tep_output_string_protected($address['suburb']);\n $city = tep_output_string_protected($address['city']);\n $state = tep_output_string_protected($address['state']);\n if (isset($address['country_id']) && tep_not_null($address['country_id'])) {\n $country = tep_get_country_name($address['country_id']);\n\n if (isset($address['zone_id']) && tep_not_null($address['zone_id'])) {\n $state = tep_get_zone_code($address['country_id'], $address['zone_id'], $state);\n }\n } elseif (isset($address['country']) && tep_not_null($address['country'])) {\n $country = tep_output_string_protected($address['country']);\n } else {\n $country = '';\n }\n $postcode = tep_output_string_protected($address['postcode']);\n $zip = $postcode;\n\n if ($html) {\n// HTML Mode\n $HR = '<hr>';\n $hr = '<hr>';\n if ( ($boln == '') && ($eoln == \"\\n\") ) { // Values not specified, use rational defaults\n $CR = '<br>';\n $cr = '<br>';\n $eoln = $cr;\n } else { // Use values supplied\n $CR = $eoln . $boln;\n $cr = $CR;\n }\n } else {\n// Text Mode\n $CR = $eoln;\n $cr = $CR;\n $HR = '----------------------------------------';\n $hr = '----------------------------------------';\n }\n\n $statecomma = '';\n $streets = $street;\n if ($suburb != '') $streets = $street . $cr . $suburb;\n if ($country == '') $country = tep_output_string_protected($address['country']);\n if ($state != '') $statecomma = $state . ', ';\n\n $fmt = $address_format['format'];\n eval(\"\\$address = \\\"$fmt\\\";\");\n\n if ( (ACCOUNT_COMPANY == 'true') && (tep_not_null($company)) ) {\n $address = $company . $cr . $address;\n }\n\n return $address;\n }", "protected function _initShippingAddress()\n {\n /**\n *\n * @note Import customer default shipping address\n *\n */\n $this->getQuote()->getShippingAddress()->importCustomerAddressData(\n $this->getCustomerSession()->getCustomer()->getDefaultShippingAddress()->getDataModel()\n );\n }", "protected function _construct()\n {\n parent::_construct();\n $this->setTemplate('intraship/checkout/onepage/shipping/gogreen.phtml');\n }", "public function getItemShippingAddresses();", "public function create()\n {\n return view('backend.shipping.create');\n }", "function storefront_free_shipping()\n {\n ?>\n <span class=\"free-shipping\">Free shipping worldwide</span>\n <?php\n }", "public function setShippingInformation($sourceZip, $destZip, $street, $number, $complement = '', $district = '', $city = '', $state = '', $type = 'Correios') {\n\n $this->validateType($type, 'Shipping');\n\n $this->jsonData['Shipping'] = array(\n 'Type' => $type,\n 'SourceZipCode' => $this->validateNumber($sourceZip),\n 'TargetZipCode' => $this->validateNumber($destZip),\n 'Address' => array(\n 'Street' => $this->validateString($street, 256),\n 'Number' => $this->validateNumber($number, 8),\n 'Complement' => $this->validateString($complement, 256),\n 'District' => $this->validateString($district, 64),\n 'City' => $this->validateString($city, 64),\n 'State' => $this->validateString($state, 2)\n )\n );\n\n }", "function edd_stripe_setup_billing_address_fields() {\n\n\tif( ! function_exists( 'edd_use_taxes' ) ) {\n\t\treturn;\n\t}\n\n\tif( edd_use_taxes() || 'stripe' !== edd_get_chosen_gateway() || ! edd_get_cart_total() > 0 ) {\n\t\treturn;\n\t}\n\n\t$display = edd_get_option( 'stripe_billing_fields', 'full' );\n\n\tswitch( $display ) {\n\n\t\tcase 'full' :\n\n\t\t\t// Make address fields required\n\t\t\tadd_filter( 'edd_require_billing_address', '__return_true' );\n\n\t\t\tbreak;\n\n\t\tcase 'zip_country' :\n\n\t\t\tremove_action( 'edd_after_cc_fields', 'edd_default_cc_address_fields', 10 );\n\t\t\tadd_action( 'edd_after_cc_fields', 'edd_stripe_zip_and_country', 9 );\n\n\t\t\t// Make Zip required\n\t\t\tadd_filter( 'edd_purchase_form_required_fields', 'edd_stripe_require_zip_and_country' );\n\n\t\t\tbreak;\n\n\t\tcase 'none' :\n\n\t\t\tremove_action( 'edd_after_cc_fields', 'edd_default_cc_address_fields', 10 );\n\n\t\t\tbreak;\n\n\t}\n\n}", "public function addAddress($address);", "public function billing()\n {\n\n //this is a good time to calc shippable items as the nbext screen will be for a shipping address\n $this->count_shippable_items();\n\n\n //customer is stil step 0\n $this->is_step(1) OR redirect( NC_ROUTE.'/checkout/');\n\n $this->load->helper('nitrocart/nitrocart_zone');\n $this->load->model('nitrocart/addresses_m');\n $data = new ViewObject();\n\n $this->form_validation->set_rules('useragreement', 'User Agreement', 'required|numeric|trim');\n\n\n // Initi the data\n foreach ($this->addresses_m->address_validation AS $rule)\n {\n $data->{$rule['field']} = $this->input->post($rule['field']);\n }\n\n $data->addresses = [];\n\n // if logged in get some fields from our profile\n if ($this->current_user)\n {\n $data = $this->get_existing_address('billing');\n }\n\n\n\n // Existing Adress\n if($this->input->post('selection') == 'existing')\n {\n $this->form_validation->set_rules('address_id', 'Address', 'required|numeric|trim');\n \n if ($this->form_validation->run())\n {\n\n $this->session->set_userdata('billing', $this->input->post('address_id'));\n\n if ($this->input->post('sameforshipping'))\n {\n\n $address_id = $this->input->post('address_id');\n\n if($this->validate_country_list_by_address_id( $address_id ))\n {\n //update this row to allow for shipping\n $this->addresses_m->doShippingAlso( $this->input->post('address_id') );\n //$this->session->set_userdata('shipping', $this->input->post('address_id'));\n $this->set_shipping_address_id( $address_id );\n $this->set_step(3); //+2\n redirect( NC_ROUTE. '/checkout/shipment');\n }\n else\n {\n $this->session->set_flashdata(JSONStatus::Error,'This product can not be shipped to your location.');\n redirect( NC_ROUTE.'/cart');\n }\n\n\n }\n\n $this->set_step(2); \n redirect( NC_ROUTE.'/checkout/shipping');\n }\n }\n\n\n\n // New Adress\n if($this->input->post('selection') == 'new')\n {\n\n $this->form_validation->set_rules( $this->addresses_m->address_validation );\n $this->form_validation->set_rules('state', 'State', 'callback_country_state_check');\n\n if ($this->form_validation->run())\n {\n $input = $this->input->post();\n $input['user_id'] = $this->session->userdata('user_id');\n\n $same_for_shipping = ($this->input->post('sameforshipping'))?1:0;\n //add the new address, note this is for billing\n $address_id = $this->addresses_m->create($input, 1, $same_for_shipping );\n\n $this->session->set_userdata('billing', $address_id);\n\n if ($same_for_shipping)\n {\n\n if($this->validate_country_list_by_address_id( $address_id ))\n { \n //$this->session->set_userdata('shipping', $address_id);\n $this->set_shipping_address_id( $address_id );\n\n $this->set_step(3); //+2\n redirect( NC_ROUTE.'/checkout/shipment');\n }\n else\n {\n $this->session->set_flashdata(JSONStatus::Error,'This product can not be shipped to your location.');\n redirect( NC_ROUTE.'/cart'); \n }\n }\n else\n {\n $this->set_step(2); \n redirect(NC_ROUTE.'/checkout/shipping'); \n }\n }\n else\n {\n //recall info that was entered\n foreach ($this->addresses_m->address_validation AS $rule)\n {\n $data->{$rule['field']} = $this->input->post($rule['field']);\n } \n }\n }\n\n $this->set_step(1);\n\n $this->template\n ->title(Settings::get('shop_name'),'billing') \n ->set_breadcrumb('User Account',NC_ROUTE.'/checkout')\n ->set_breadcrumb('Billing')\n ->build($this->theme_layout_path .'address_billing', $data);\n }", "public function shipping_tab() {\n global $wpdb, $post;\n\n $vendor_id = $post->post_author;\n\n $shipping_zone = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT locations.zone_id, locations.seller_id, locations.location_type as vendor_location_type, locations.location_code as vendor_location_code, wc_zones.location_code, wc_zones.location_type FROM {$wpdb->prefix}dokan_shipping_zone_locations as locations INNER JOIN {$wpdb->prefix}woocommerce_shipping_zone_locations as wc_zones ON locations.zone_id = wc_zones.zone_id INNER JOIN {$wpdb->prefix}dokan_shipping_zone_methods as dokan_methods ON dokan_methods.zone_id = locations.zone_id AND dokan_methods.seller_id = locations.seller_id WHERE locations.seller_id =%d AND locations.location_type != 'postcode' ORDER BY wc_zones.zone_id ASC\", $vendor_id\n ), ARRAY_A\n );\n\n $_overwrite_shipping = get_post_meta( $post->ID, '_overwrite_shipping', true );\n $dps_processing = get_user_meta( $vendor_id, '_dps_pt', true );\n $from = get_user_meta( $vendor_id, '_dps_form_location', true );\n $dps_country_rates = get_user_meta( $vendor_id, '_dps_country_rates', true );\n $shipping_policy = get_user_meta( $vendor_id, '_dps_ship_policy', true );\n $refund_policy = get_user_meta( $vendor_id, '_dps_refund_policy', true );\n $product_processing_time = get_post_meta( $post->ID, '_dps_processing_time', true );\n $processing_time = $dps_processing;\n\n if ( 'yes' === $_overwrite_shipping ) {\n $processing_time = ( $product_processing_time ) ? $product_processing_time : $dps_processing;\n }\n\n $country_obj = new WC_Countries();\n $countries = $country_obj->countries;\n $states = $country_obj->states;\n\n $shipping_countries = '';\n $shipping_states = '';\n $location_code = '';\n $check_countries = array();\n $check_states = array();\n\n if ( $shipping_zone ) {\n foreach ( $shipping_zone as $zone ) {\n $location_code = $zone['vendor_location_code'];\n\n if ( $zone['vendor_location_type'] === 'state' ) {\n $location_codes = explode( ':', $location_code );\n $country_code = isset( $location_codes[0] ) ? $location_codes[0] : '';\n $state_code = isset( $location_codes[1] ) ? $location_codes[1] : '';\n\n if ( isset( $states[ $country_code ][ $state_code ] ) && isset( $countries[ $country_code ] ) && ! in_array( $states[ $country_code ][ $state_code ], $check_states, true ) ) {\n $get_state_name = $states[ $country_code ][ $state_code ];\n\n $check_states[ $get_state_name ] = $get_state_name;\n $shipping_states .= $get_state_name . ' (' . $countries[ $country_code ] . '), ';\n }\n }\n\n if ( $zone['vendor_location_type'] === 'country' && $countries[ $location_code ] && ! in_array( $countries[ $location_code ], $check_countries, true ) ) {\n $location_code = $countries[ $location_code ];\n $check_countries[ $location_code ] = $location_code;\n $shipping_countries .= $location_code . ', ';\n }\n }\n }\n ?>\n\n <?php if ( $shipping_countries ) { ?>\n <p>\n <?php esc_html_e( 'Shipping Countries', 'dokan' ); ?>:\n <strong><?php echo rtrim( $shipping_countries, ', ' ); ?></strong>\n </p>\n <hr>\n <?php } ?>\n\n <?php if ( $shipping_states ) { ?>\n <p>\n <?php esc_html_e( 'Shipping States', 'dokan' ); ?>:\n <strong><?php echo rtrim( $shipping_states, ', ' ); ?></strong>\n </p>\n <hr>\n <?php } ?>\n\n <?php if ( $processing_time ) { ?>\n <p>\n <strong>\n <?php esc_html_e( 'Ready to ship in', 'dokan' ); ?> <?php echo dokan_get_processing_time_value( $processing_time ); ?>\n\n <?php\n if ( $from ) {\n echo __( 'from', 'dokan' ) . ' ' . $countries[ $from ];\n }\n ?>\n </strong>\n </p>\n <hr>\n <?php } ?>\n\n <?php if ( $shipping_policy ) { ?>\n <p>&nbsp;</p>\n <strong><?php esc_html_e( 'Shipping Policy', 'dokan' ); ?></strong>\n <hr>\n <?php echo wpautop( $shipping_policy ); ?>\n <?php } ?>\n\n <?php if ( $refund_policy ) { ?>\n <hr>\n <p>&nbsp;</p>\n <strong><?php esc_html_e( 'Refund Policy', 'dokan' ); ?></strong>\n <hr>\n <?php echo wpautop( $refund_policy ); ?>\n <?php } ?>\n <?php\n }", "function prepareTemplate( $step ) {\n\t\t$this->loadTemplate();\n\t\t// automatically substitute value markers\n\t\t$this->substituteValueMarkers( array( 'subpartName' => 'STEP_' . $step ) );\n\t\t// automatically substitute language markers\n\t\t$this->substituteLanguageMarkers(array('subpartName' => 'STEP_' . $step));\n\t\t$this->substituteLanguageMarkers(array('subpartName' => 'CAPTCHA_TEMPLATE'));\n\t\t$this->substituteFormMarkers(array('subpartName' => 'STEP_' . $step));\n\t\t$this->substituteFormMarkers(array('subpartName' => 'CAPTCHA_TEMPLATE'));\n\t}", "protected function _addShipping($address)\n {\n $lineNumber = $this->_getNewLineCode();\n $storeId = $address->getQuote()->getStore()->getId();\n $taxClass = Mage::helper('tax')->getShippingTaxClass($storeId);\n $shippingAmount = max(\n 0.0, (float) $address->getBaseShippingAmount()\n );\n\n if ($this->_getTaxDataHelper()->applyTaxAfterDiscount($storeId)) {\n $shippingAmount -= (float)$address->getBaseShippingDiscountAmount();\n }\n\n $line = $this->_getNewDocumentRequestLineObject();\n $line->setLineCode($lineNumber);\n $shippingSku = $this->_getConfigHelper()->getShippingSku($storeId);\n $line->setItemCode($shippingSku ?: self::DEFAULT_SHIPPING_ITEMS_SKU);\n $line->setItemDescription(self::DEFAULT_SHIPPING_ITEMS_DESCRIPTION);\n $line->setAvalaraGoodsAndServicesType($taxClass);\n $line->setNumberOfItems(1);\n $line->setlineAmount($shippingAmount);\n $discounted = (float)$address->getBaseShippingDiscountAmount()\n && $this->_getTaxDataHelper()->applyTaxAfterDiscount($storeId) ? 'true' : 'false';\n $line->setDiscounted($discounted);\n\n if ($this->_getTaxDataHelper()->shippingPriceIncludesTax($storeId)) {\n $line->setTaxIncluded('true');\n }\n\n $this->_lines[$lineNumber] = $line;\n $this->_setLinesToRequest();\n $this->_lineToLineId[$lineNumber] = $shippingSku;\n\n return $lineNumber;\n }", "public function formAddressShipping(Zend_Form $form = null, array $options = array())\n {\n if (isset($options['mode'])){\n $this->_mode = $options['mode'];\n }\n if (isset($options['requiredValidator'])){\n $this->_requiredValidator = $options['requiredValidator'];\n unset($options['requiredValidator']);\n }\n $address = new Cible_Form_SubForm($options);\n $address->setName('addressShipping')\n ->setLegend(Cible_Translation::getCibleText('fieldset_addressShipping'))\n ->setAttrib('class', 'identificationClass subFormClass')\n ->removeDecorator('DtDdWrapper');\n $addr = new Cible_View_Helper_FormAddress($address);\n $addr->duplicateAddress($address);\n $addr->enableFields(array(\n 'firstTel',\n 'secondTel',\n 'firstAddress',\n 'cityTxt',\n 'zipCode',\n 'country',\n 'state',\n ));\n\n $addr->formAddress();\n $address->getElement('AI_FirstAddress')\n ->setAttrib('class', 'full-width')\n ->setDecorators(array('ViewHelper', 'Errors',\n array('Label', array('class'=> 'full-width') ),\n array('row' => 'HtmlTag', array('tag' => 'div', 'class' => 'col-md-12'))));\n $address->setRowDecorator(array($address->getElement('AI_FirstAddress')->getName()), 'addrOne');\n $address->getElement('AI_FirstTel')\n ->setAttrib('class', 'full-width')\n ->setDecorators(array('ViewHelper', 'Errors',\n array('Label', array('class'=> 'full-width') ),\n array('row' => 'HtmlTag', array('tag' => 'div', 'class' => 'col-md-6'))));\n $address->getElement('AI_SecondTel')\n ->setAttrib('class', 'full-width')\n ->setDecorators(array('ViewHelper', 'Errors',\n array('Label', array('class'=> 'full-width') ),\n array('row' => 'HtmlTag', array('tag' => 'div', 'class' => 'col-md-6'))));\n $secRow = array(\n $address->getElement('AI_FirstTel')->getName(),\n $address->getElement('AI_SecondTel')->getName(),\n );\n $address->setRowDecorator($secRow, 'addrTwo');\n $address->getElement('A_CityTextValue')\n ->setAttrib('class', 'full-width')\n ->setDecorators(array('ViewHelper', 'Errors',\n array('Label', array('class'=> 'full-width') ),\n array('row' => 'HtmlTag', array('tag' => 'div', 'class' => 'col-md-6'))));\n $address->getElement('A_StateId')->setAttrib('class', 'full-width')\n ->setDecorators(array('ViewHelper', 'Errors',\n array('Label', array('class'=> 'full-width') ),\n array('row' => 'HtmlTag', array('tag' => 'div', 'class' => 'col-md-6'))));\n $thirdRow = array(\n $address->getElement('A_CityTextValue')->getName(),\n $address->getElement('A_ZipCode')->getName(),\n );\n $address->setRowDecorator($thirdRow, 'addrThree');\n $address->getElement('A_ZipCode')\n ->setAttrib('class', 'full-width')\n ->setDecorators(array('ViewHelper', 'Errors',\n array('Label', array('class'=> 'full-width') ),\n array('row' => 'HtmlTag', array('tag' => 'div', 'class' => 'col-md-6'))));\n $address->getElement('A_CountryId')\n ->setAttrib('class', 'full-width')\n ->setDecorators(array('ViewHelper', 'Errors',\n array('Label', array('class'=> 'full-width') ),\n array('row' => 'HtmlTag', array('tag' => 'div', 'class' => 'col-md-6'))));\n $fourthRow = array(\n $address->getElement('A_StateId')->getName(),\n $address->getElement('A_CountryId')->getName(),\n );\n $address->setRowDecorator($fourthRow, 'addrFour', array('class' => 'row '));\n $address->setAttrib('class', 'col-md-6');\n $hiddenId = new Zend_Form_Element_Hidden('MP_ShippingAddrId');\n $hiddenId->setDecorators(array('ViewHelper'));\n $address->addElement($hiddenId);\n $form->addSubForm($address, 'addressShipping');\n }", "function _add_block_template_info($template_item)\n {\n }", "public function appendPackingstationToShipping($observer)\n {\n $block = $observer->getBlock();\n if ($block instanceof Mage_Checkout_Block_Onepage_Shipping\n && false == $block instanceof Mage_Paypal_Block_Express_Review_Shipping\n && Mage::getModel('intraship/config')->isEnabled()\n && Mage::getModel('dhlaccount/config')->isPackstationEnabled($block->getQuote()->getStoreId())\n ) {\n $transport = $observer->getTransport();\n $layout = $block->getLayout();\n $html = $transport->getHtml();\n $parcelAnnouncementHtml = $layout->createBlock(\n 'dhlaccount/checkout_onepage_packingstation', 'onepage_packingstation')\n ->setTemplate('account/checkout/onepage/packingstation.phtml')\n ->renderView();\n $html = $html . $parcelAnnouncementHtml;\n $transport->setHtml($html);\n }\n }", "public function collect(Mage_Sales_Model_Quote_Address $address) {\r\n parent::collect($address);\r\n $this->_setAmount(0);\r\n $this->_setBaseAmount(0);\r\n \r\n $items = $this->_getAddressItems($address);\r\n if (!count($items)) { \r\n /**\r\n * this makes only address type shipping to come through\r\n */\r\n return $this; \r\n }\r\n $quote = $address->getQuote();\r\n if(Mage::app()->getRequest()->getControllerName() == \"checkout_cart\"){\r\n $address->setDeliveryCost('');\r\n $address->setBaseDeliveryCost('');\r\n $quote->setShippingDeliveryCost('');\r\n $quote->setDeliveryCost('');\r\n $address->setGrandTotal($address->getGrandTotal() + 0);\r\n $address->setBaseGrandTotal($address->getBaseGrandTotal() + 0);\r\n Mage::getSingleton ( 'core/session' )->setShippingDeliveryCost('');\r\n }\r\n else {\r\n $deliveryCost=$quote->getShippingDeliveryCost();\r\n $address->setDeliveryCost($deliveryCost);\r\n $address->setBaseDeliveryCost($deliveryCost);\r\n $quote->setDeliveryCost($deliveryCost);\r\n $address->setGrandTotal($address->getGrandTotal() + $address->getDeliveryCost());\r\n $address->setBaseGrandTotal($address->getBaseGrandTotal() + $address->getBaseDeliveryCost());\r\n Mage::getSingleton ( 'core/session' )->setShippingDeliveryCost($deliveryCost);\r\n }\r\n }", "function shippingDetails($order) {\n echo '<h2>Shipping details</h2>';\n echo get_post_meta( $order->id, 'shippingMethod', true );\n }", "public function addAdditionalDataToAddress(Varien_Event_Observer $observer)\n {\n $event = $observer->getEvent();\n $address = $event['address'];\n $orderData = $address->getOrder()->getData();\n $address->setData(\n array_merge(\n $address->getData(),\n array(\n 'vat_id' => $orderData['customer_taxvat'],\n )\n ));\n }", "public function setShippingAddress($shippingAddress = '') {\n $address = array(\n 'x_ship_to_address'=>$this->truncateChars($shippingAddress, 60),\n );\n $this->NVP = array_merge($this->NVP, $address); \n }", "function add_shipping_id( $available_gateways ) {\n $shipping_id = get_shipping_id();\n\n echo '<div class=\"card--inline m-b-3 position-right position-right--50\">';\n if ( isset($shipping_id) && $shipping_id ) {\n echo '<p>Shipping ID: ' . $shipping_id . '</p>';\n } else {\n echo '<p>Please contact RANDYS to add a Shipper Account ID to your account.</p>';\n }\n echo '</div>';\n}", "function idc_save_shipping_info($user_id, $order_id, $paykey = '', $fields = null, $source = '') {\n\tif (!empty($fields)) {\n\t\t$address_info = get_user_meta($user_id, 'md_shipping_info', true);\n\t\tif (empty($address_info)) {\n\t\t\t$address_info = array(\n\t\t\t\t'address' => '',\n\t\t\t\t'address_two' => '',\n\t\t\t\t'city' => '',\n\t\t\t\t'state' => '',\n\t\t\t\t'zip' => '',\n\t\t\t\t'country' => ''\n\t\t\t);\n\t\t}\n\t\tforeach ($fields as $field) {\n\t\t\tif (array_key_exists($field['name'], $address_info)) {\n\t\t\t\tif (!empty($field['value'])) {\n\t\t\t\t\t$address_info[$field['name']] = sanitize_text_field(str_replace('%20', ' ', $field['value']));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Adding the Address info to shipping info to show in Account tab\n\t\tif (!empty($address_info)) {\n\t\t\tupdate_user_meta($user_id, 'md_shipping_info', $address_info);\n\t\t}\n\n\t\t// Adding address to order meta as well, in case needed\n\t\tID_Member_Order::update_order_meta($order_id, 'shipping_info', $address_info);\n\t}\n}", "public function createShipment() {\n\t\t// create a Shipment object\n\t\ttry {\n\t\t $this->Shipment = new Ship\\Shipment( $this->shipmentData ); \n\t\t}\n\t\t// catch any exceptions \n\t\tcatch(\\Exception $e) {\n\t\t exit( WC_Shipping_Labels_Error( $e->getMessage() ) ); \n\t\t}\n\t}", "function store_shipping_address($order_id)\n\t{\n\t\tif (is_null(post_param('address_name',NULL))) return NULL;\n\n\t\tif (is_null($GLOBALS['SITE_DB']->query_value_null_ok('shopping_order_addresses','id',array('order_id'=>$order_id))))\n\t\t{\n\t\t\t$shipping_address=array();\n\t\t\t$shipping_address['order_id']=$order_id;\n\t\t\t$shipping_address['address_name']=post_param('address_name','');\n\t\t\t$shipping_address['address_street']=post_param('address_street','');\n\t\t\t$shipping_address['address_zip']=post_param('address_zip','');\n\t\t\t$shipping_address['address_city']=post_param('address_city','');\n\t\t\t$shipping_address['address_country']=post_param('address_country','');\n\t\t\t$shipping_address['receiver_email']=post_param('payer_email','');\n\n\t\t\treturn $GLOBALS['SITE_DB']->query_insert('shopping_order_addresses',$shipping_address,true);\t\n\t\t}\n\n\t\treturn NULL;\n\t}", "protected function _toHtml()\n {\n $addressType = $this->getType() ? $this->getType() : 'billing';\n $isGuest = $this->getIsGuest();\n\n /** @var $formXmlObj Mage_XmlConnect_Model_Simplexml_Form */\n $formXmlObj = Mage::getModel('xmlconnect/simplexml_form', array(\n 'xml_id' => $addressType, 'action' => '', 'use_container' => true\n ))->setFieldNameSuffix($addressType);\n\n /** @var $formFieldset Mage_XmlConnect_Model_Simplexml_Form_Element_Fieldset */\n $formFieldset = $formXmlObj->addFieldset($addressType);\n\n $formFieldset->addField('firstname', 'text', array(\n 'name' => 'firstname', 'label' => $this->__('First Name'), 'required' => '1'\n ));\n\n $formFieldset->addField('lastname', 'text', array(\n 'name' => 'lastname', 'label' => $this->__('Last Name'), 'required' => '1'\n ));\n\n $formFieldset->addField('company', 'text', array(\n 'name' => 'company', 'label' => $this->__('Company'), 'required' => '1'\n ));\n\n if ($isGuest) {\n $emailField = $formFieldset->addField('email', 'text', array(\n 'name' => 'email', 'label' => $this->__('Email Address'), 'required' => '1'\n ));\n $emailValidator = $emailField->addValidator();\n $emailValidator->addRule(array('type' => 'email'));\n }\n\n $formFieldset->addField('street', 'text', array(\n 'name' => 'street[]',\n 'label' => $this->__('Address'),\n 'required' => '1',\n ));\n\n $formFieldset->addField('street_2', 'text', array(\n 'name' => 'street[]', 'label' => $this->__('Address 2')\n ));\n\n $formFieldset->addField('city', 'text', array(\n 'name' => 'city', 'label' => $this->__('City'), 'required' => '1'\n ));\n\n $formFieldset->addField('country_id', 'countryListSelect', array(\n 'name' => 'country_id', 'label' => $this->__('Country'), 'required' => '1',\n ));\n\n $formFieldset->addField('postcode', 'text', array(\n 'name' => 'postcode', 'label' => $this->__('Zip/Postal Code'), 'required' => '1'\n ));\n\n $formFieldset->addField('telephone', 'text', array(\n 'name' => 'telephone', 'label' => $this->__('Telephone'), 'required' => '1'\n ));\n\n $formFieldset->addField('fax', 'text', array('name' => 'fax', 'label' => $this->__('Fax')));\n\n // Add custom address attributes\n Mage::helper('xmlconnect/customer_form_renderer')->setAttributesBlockName('customer_address')\n ->setFormCode('customer_register_address')->setBlockEntity(Mage::getModel('sales/quote_address'))\n ->setBlockEntityType('customer_address')\n ->addCustomAttributes($formFieldset, $this->getLayout(), $addressType);\n\n $formFieldset->addField('save_in_address_book', 'checkbox', array(\n 'name' => 'save_in_address_book', 'label' => $this->__('Save in address book')\n ));\n\n return $formXmlObj->toXmlObject();\n }", "public function createTemandoShipment(\\Magento\\Framework\\Event\\Observer $observer)\n {\n $order = $observer->getEvent()->getOrder();\n $shippingAddress = $order->getShippingAddress();\n $deprecateSkus = array();\n\n $shippingMethod = $order->getShippingMethod();\n $titleOptions = $this->_type->toOptionArray();\n $titles = array();\n foreach ($titleOptions as $value => $optionTitle) {\n $titles[$value] = $optionTitle['label'];\n }\n\n $quote = $this->_quoteRepository->get($order->getQuoteId());\n $quoteShippingAddress = $quote->getShippingAddress();\n\n $origin = $this->_originCollection->getOriginByInventory(\n $order->getAllVisibleItems(),\n $quoteShippingAddress->getPostcode()\n );\n //$origin = $this->_originCollection->getOriginByPostcode($quoteShippingAddress->getPostcode());\n $this->_shipment->setData('order_id', $order->getId());\n $this->_shipment->setData('order_increment_id', $order->getIncrementId());\n $this->_shipment->setData('origin_id', $origin->getId());\n\n $orderSkus = $this->_helper->getOrderSkus($order);\n $shipmentStatus = \\Temando\\Temando\\Model\\System\\Config\\Source\\Shipment\\Status::PENDING;\n\n $exclusiveOD = $this->_helper->orderContainsExclusively($order, \"OD\");\n foreach ($orderSkus as $sku => $details) {\n if ($details['stock_availability_code'] == \"OD\") {\n $hasStock = $origin->hasStock(array($sku => $details['qty']));\n if ($hasStock) {\n $deprecateSkus[$sku] = $details['qty'];\n } elseif ($exclusiveOD) {\n $shipmentStatus = \\Temando\\Temando\\Model\\System\\Config\\Source\\Shipment\\Status::BACK_ORDER;\n }\n } else {\n $deprecateSkus[$sku] = $details['qty'];\n }\n }\n $this->_shipment->setData('status', $shipmentStatus);\n $this->_shipment->setData('destination_contact_name', $shippingAddress->getName());\n $this->_shipment->setData('destination_company_name', $shippingAddress->getCompany());\n $streetAddress = $shippingAddress->getStreetLine(1);\n if ($shippingAddress->getStreetLine(2)) {\n $streetAddress .= \", \" . $shippingAddress->getStreetLine(2);\n }\n $this->_shipment->setData('destination_street', $streetAddress);\n $this->_shipment->setData('destination_city', $shippingAddress->getCity());\n $this->_shipment->setData('destination_postcode', $shippingAddress->getPostcode());\n $this->_shipment->setData('destination_region', $shippingAddress->getRegion());\n $this->_shipment->setData('destination_country', $shippingAddress->getCountryId());\n $this->_shipment->setData('destination_phone', $shippingAddress->getTelephone());\n $this->_shipment->setData('destination_email', $order->getCustomerEmail());\n\n //set customer selected quote data\n $temandoQuoteData = explode('_', $shippingMethod);\n $temandoQuoteId = $temandoQuoteData[2];\n\n $quoteDescription = '-';\n switch ($temandoQuoteData[2]) {\n default:\n $temandoQuote = $this->_quote->load($temandoQuoteId);\n $carrier = $this->_helper->getCarrierByTemandoId($temandoQuote->getCarrierId());\n $quoteDescription = $carrier->getCompanyName() . ' - ' . $temandoQuote->getDeliveryMethod();\n $totalPrice = $temandoQuote->getTotalPrice();\n break;\n }\n\n $this->_shipment->setData('customer_selected_quote_id', $temandoQuoteId);\n $this->_shipment->setData('customer_selected_options', $shippingMethod);\n $this->_shipment->setData('customer_selected_quote_description', $quoteDescription);\n $this->_shipment->setData('admin_selected_quote_id', $temandoQuoteId);\n $this->_shipment->setData('anticipated_cost', $totalPrice);\n\n if ($shippingAddress->getIsBusinessAddress()) {\n $this->_shipment->setData(\n 'destination_type',\n \\Temando\\Temando\\Model\\System\\Config\\Source\\Origin\\Type::BUSINESS\n );\n } else {\n $this->_shipment->setData(\n 'destination_type',\n \\Temando\\Temando\\Model\\System\\Config\\Source\\Origin\\Type::RESIDENTIAL\n );\n }\n\n if ($shippingAddress->getAuthorityToLeave()) {\n $this->_shipment->setData('destination_authority_to_leave', 1);\n } else {\n $this->_shipment->setData('destination_authority_to_leave', 0);\n }\n\n try {\n $this->_shipment->save();\n } catch (\\Exception $e) {\n $this->_logger->debug(__('Failed to save shipment') . ' ' . $e->getMessage());\n }\n //register the quotes with the shipment\n //$this->registerQuotes($order);\n try {\n $this->_shipment->saveAllItems();\n } catch (\\Exception $e) {\n $this->_logger->debug(__('Failed to save shipment items') . ' ' . $e->getMessage());\n }\n\n\n //how many boxes required?\n $this->saveBoxes($order);\n\n if ((count($deprecateSkus)) && ($origin->getErpId())) {\n $this->deprecateSkus($origin->getErpId(), $deprecateSkus);\n }\n //$this->_shipment->fetchQuotes();//or update existing quotes to use this shipment\n\n $this->clearSessionData();\n\n return $this->_shipment;\n }", "function edd_stripe_zip_and_country() {\n\n\t$logged_in = is_user_logged_in();\n\t$customer = EDD()->session->get( 'customer' );\n\t$customer = wp_parse_args( $customer, array( 'address' => array(\n\t\t'line1' => '',\n\t\t'line2' => '',\n\t\t'city' => '',\n\t\t'zip' => '',\n\t\t'state' => '',\n\t\t'country' => ''\n\t) ) );\n\n\t$customer['address'] = array_map( 'sanitize_text_field', $customer['address'] );\n\n\tif( $logged_in ) {\n\t\t$existing_cards = edd_stripe_get_existing_cards( get_current_user_id() );\n\t\tif ( empty( $existing_cards ) ) {\n\n\t\t\t$user_address = edd_get_customer_address( get_current_user() );\n\n\t\t\tforeach( $customer['address'] as $key => $field ) {\n\n\t\t\t\tif ( empty( $field ) && ! empty( $user_address[ $key ] ) ) {\n\t\t\t\t\t$customer['address'][ $key ] = $user_address[ $key ];\n\t\t\t\t} else {\n\t\t\t\t\t$customer['address'][ $key ] = '';\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else {\n\t\t\tforeach ( $existing_cards as $card ) {\n\t\t\t\tif ( false === $card['default'] ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$source = $card['source'];\n\t\t\t\t$customer['address'] = array(\n\t\t\t\t\t'line1' => $source->address_line1,\n\t\t\t\t\t'line2' => $source->address_line2,\n\t\t\t\t\t'city' => $source->address_city,\n\t\t\t\t\t'zip' => $source->address_zip,\n\t\t\t\t\t'state' => $source->address_state,\n\t\t\t\t\t'country' => $source->address_country,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t}\n?>\n\t<fieldset id=\"edd_cc_address\" class=\"cc-address\">\n\t\t<legend><?php _e( 'Billing Details', 'edds' ); ?></legend>\n\t\t<p id=\"edd-card-country-wrap\">\n\t\t\t<label for=\"billing_country\" class=\"edd-label\">\n\t\t\t\t<?php _e( 'Billing Country', 'edds' ); ?>\n\t\t\t\t<?php if( edd_field_is_required( 'billing_country' ) ) { ?>\n\t\t\t\t\t<span class=\"edd-required-indicator\">*</span>\n\t\t\t\t<?php } ?>\n\t\t\t</label>\n\t\t\t<span class=\"edd-description\"><?php _e( 'The country for your billing address.', 'edds' ); ?></span>\n\t\t\t<select name=\"billing_country\" id=\"billing_country\" class=\"billing_country edd-select<?php if( edd_field_is_required( 'billing_country' ) ) { echo ' required'; } ?>\"<?php if( edd_field_is_required( 'billing_country' ) ) { echo ' required '; } ?> autocomplete=\"billing country\">\n\t\t\t\t<?php\n\n\t\t\t\t$selected_country = edd_get_shop_country();\n\n\t\t\t\tif( ! empty( $customer['address']['country'] ) && '*' !== $customer['address']['country'] ) {\n\t\t\t\t\t$selected_country = $customer['address']['country'];\n\t\t\t\t}\n\n\t\t\t\t$countries = edd_get_country_list();\n\t\t\t\tforeach( $countries as $country_code => $country ) {\n\t\t\t\t echo '<option value=\"' . esc_attr( $country_code ) . '\"' . selected( $country_code, $selected_country, false ) . '>' . $country . '</option>';\n\t\t\t\t}\n\t\t\t\t?>\n\t\t\t</select>\n\t\t</p>\n\t\t<p id=\"edd-card-zip-wrap\">\n\t\t\t<label for=\"card_zip\" class=\"edd-label\">\n\t\t\t\t<?php _e( 'Billing Zip / Postal Code', 'edds' ); ?>\n\t\t\t\t<?php if( edd_field_is_required( 'card_zip' ) ) { ?>\n\t\t\t\t\t<span class=\"edd-required-indicator\">*</span>\n\t\t\t\t<?php } ?>\n\t\t\t</label>\n\t\t\t<span class=\"edd-description\"><?php _e( 'The zip or postal code for your billing address.', 'edds' ); ?></span>\n\t\t\t<input type=\"text\" size=\"4\" name=\"card_zip\" id=\"card_zip\" class=\"card-zip edd-input<?php if( edd_field_is_required( 'card_zip' ) ) { echo ' required'; } ?>\" placeholder=\"<?php _e( 'Zip / Postal Code', 'edds' ); ?>\" value=\"<?php echo $customer['address']['zip']; ?>\"<?php if( edd_field_is_required( 'card_zip' ) ) { echo ' required '; } ?> autocomplete=\"billing postal-code\" />\n\t\t</p>\n\t</fieldset>\n<?php\n}", "public function bookingcustomcheckout($userid,$email,$name,$street,$city,$country_id,$postcode,$telephone,$shipping,$payment,$quoteId)\n\t {\n\t\t/* $parts = explode(\" \", $name);\n\t\t $lastname = array_pop($parts);\n\t\tif($lastname=='')\n\t\t{\n\t\t\t$lastname='@';\n\t\t}\n $firstname = implode(\" \", $parts);\n\t\tif($firstname=='')\n\t\t{\n\t\t\t$firstname='@';\n\t\t} */\n\t\t\n\t\tif(strpos($name, ' ') > 0)\n\t\t{\n\t\t\t$parts = explode(\" \", $name);\n\t\t $lastname = array_pop($parts);\n\t\t $firstname = implode(\" \", $parts);\n\t\t\n\t\t}\n else\n {\n\t\t $lastname = $name;\n\t\t $firstname = $name;\n\t}\n\t\t\n\t\t//exit;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t $orderData=[\n\t\t\t\t 'currency_id' => 'USD',\n\t\t\t\t 'email' => $email, //buyer email id\n\t\t\t\t 'shipping_address' =>[\n\t\t\t\t\t\t'firstname' => $firstname, //address Details\n\t\t\t\t\t\t'lastname' => $lastname,\n\t\t\t\t\t\t\t\t'street' => $street,\n\t\t\t\t\t\t\t\t'city' => $city,\n\t\t\t\t\t\t//'country_id' => 'IN',\n\t\t\t\t\t\t'country_id' => $country_id,\n\t\t\t\t\t\t'region' => '',\n\t\t\t\t\t\t'postcode' => $postcode,\n\t\t\t\t\t\t'telephone' => $telephone,\n\t\t\t\t\t\t'fax' => '',\n\t\t\t\t\t\t'save_in_address_book' => 1\n\t\t\t\t\t\t\t ],\n\t\t\t 'items'=> [ //array of product which order you want to create\n\t\t\t\t\t\t ['product_id'=>'5','qty'=>1,'price'=>'50'],\n\t\t\t\t\t\t ['product_id'=>'6','qty'=>2,'price'=>'100']\n\t\t\t\t\t\t] \n\t\t\t\t\t\t\n\t\t\t];\n\n /*for sote 4 */\t\t\t\n\t\t $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance(); // Instance of object manager\n\t $helper = $objectManager->get('Webkul\\Marketplace\\Helper\\Data');\n\t\t $helper->setCurrentStore(4); \n\t\t /* end for sote 4 */\n\t\t\n\t\t\n\t\t$store=$this->storeManager->getStore();\n $websiteId = $this->storeManager->getStore()->getWebsiteId();\n $customer=$this->customerFactory->create();\n $customer->setWebsiteId($websiteId);\n //$customer->loadByEmail($orderData['email']);// load customet by email address\n\t\t$customer->load($userid);\n\t\t $customer->getId();\n\t\t $customer->getEntityId();\n /* if(!$customer->getEntityId()){\n //If not avilable then create this customer \n $customer->setWebsiteId($websiteId)\n ->setStore($store)\n ->setFirstname($orderData['shipping_address']['firstname'])\n ->setLastname($orderData['shipping_address']['lastname'])\n ->setEmail($orderData['email']) \n ->setPassword($orderData['email']);\n $customer->save();\n } */\n\t\t\t\n\t\t\t$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance(); // Instance of object manager\n\t\t$resource = $objectManager->get('Magento\\Framework\\App\\ResourceConnection');\n\t\t$connection = $resource->getConnection();\n\t\t\n\t\t/* $quote_sql_latest = \"Select * FROM quote where customer_id=$userid and store_id=4 and is_active=1 order by entity_id ASC limit 1\";\n\t\t$result_result_cart = $connection->fetchAll($quote_sql_latest); */\n\t\t // print_r($result_result_cart); \n\t\t\n\t\t\n\t\t$quote_sql = \"Select * FROM quote where customer_id=$userid and store_id=4 and entity_id='$quoteId' and is_active=1\";\n\t\t\n\t\t\n\t\t$result_result = $connection->fetchAll($quote_sql);\t\n\t\tif(!empty($result_result))\n\t\t{\n\t\t\n\t\t\t $quoteId2=$result_result[0]['entity_id'];\n\t\t\t $quote = $this->quote->create()->load($quoteId2);\n\t\t\t$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n $checkoutSession =$objectManager->get('Magento\\Checkout\\Model\\Session');\n\t\t $checkoutSession->setQuoteId($quoteId2);\n\t\t \n\t\t \n\t\t //Set Address to quote\n $quote->getBillingAddress()->addData($orderData['shipping_address']);\n $quote->getShippingAddress()->addData($orderData['shipping_address']);\n \n // Collect Rates and Set Shipping & Payment Method\n \n $shippingAddress=$quote->getShippingAddress(); \n $shippingAddress->setCollectShippingRates(true)\n ->collectShippingRates()\n //->setShippingMethod('freeshipping_freeshipping'); //shipping method\n\t\t\t\t\t\t->setShippingMethod($shipping); //shipping method\n\t\t\t\t\t\t\n //$quote->setPaymentMethod('cashondelivery'); //payment method\n\t\t$quote->setPaymentMethod($payment);\n $quote->setInventoryProcessed(false); //not effetc inventory\n $quote->save(); //Now Save quote and your quote is ready\n \n // Set Sales Order Payment\n //$quote->getPayment()->importData(['method' => 'cashondelivery']);\n $quote->getPayment()->importData(['method' => $payment]);\n // Collect Totals & Save Quote\n $quote->collectTotals()->save();\n $quote->getId();\n // Create Order From Quote\n $order = $this->quoteManagement->submit($quote);\n \n $order->setEmailSent(0);\n\t //$order->setEmailSent(1);\n echo $increment_id = $order->getRealOrderId();\n\t $lastOrderId = $increment_id;\n\t\t\n\t\t$helper = $objectManager->get(\n 'Webkul\\Marketplace\\Helper\\Data'\n );\n\t\t\n\t\t$getProductSalesCalculation = $objectManager->get(\n 'Webkul\\Marketplace\\Observer\\SalesOrderPlaceAfterObserver'\n );\n $getProductSalesCalculation->getProductSalesCalculation($order); \n\t \n\t \n\t \n\t \n\t \n\t\t\t if($order->getEntityId())\n\t\t\t {\n\t\t\t $result[]=array('status'=>array(\"code\"=>\"1\",\"message\"=>$lastOrderId));\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$result[]=array('status'=>array(\"code\"=>\"0\",\"message\"=>\"error\"));\n\t\t\t} \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t}\t\t\t\n\t\telse\n\t\t{\n\t\t\t$result[]=array('status'=>array(\"code\"=>\"0\",\"message\"=>\"error\"));\n\t\t}\t\t\t\n\t\t\n \t\t\t\n\t return $result; \n\t\n\t }", "private function resolveAddressData()\n {\n /** @var \\Magento\\Quote\\Model\\Quote $quote */\n $quote = $this->checkoutSession->getQuote();\n /** @var \\Magento\\Quote\\Model\\Quote\\Address $shippingAddress */\n $shippingAddress = $quote->getShippingAddress();\n\n $customerData = $this->geoIp->getCurrentLocation();\n if ($customerData->getCode() && $this->helper->isCountryAllowed($customerData->getCode())) {\n /** @var \\Magento\\Directory\\Model\\Country $currentCountry */\n $currentCountry = $shippingAddress\n ->getCountryModel()\n ->loadByCode($customerData->getCode());\n\n if (!$currentCountry) {\n return;\n }\n\n $shippingAddress->setCountryId($currentCountry->getId());\n $shippingAddress->setRegion($customerData->getRegion());\n $shippingAddress->setRegionCode($customerData->getRegionCode());\n $shippingAddress->setCity($customerData->getCity());\n $shippingAddress->setPostcode($customerData->getPosttalCode());\n\n $regionModel = $this->regionFactory->create();\n if ($customerData->getRegionCode() && $currentCountry->getId()) {\n $regionModel->loadByCode($customerData->getRegionCode(), $currentCountry->getId());\n $regionId = $regionModel->getRegionId();\n $shippingAddress->setRegionId($regionId);\n }\n }\n }", "public function getShippingAddress(Request $request){\n $user_id = $request->id;\n if($user_id == ''){\n return view('pos.guest_shipping_address');\n }\n else{\n return view('pos.shipping_address', compact('user_id'));\n }\n }", "public function save_shippingAction() {\r\n\t\t$shipping_method = $this->getRequest()->getPost('shipping_method', '');\r\n\t\t$payment_method = $this->getRequest()->getPost('payment_method', false);\r\n\t\t$old_shipping_method = $this->getOnepage()->getQuote()->getShippingAddress()->getShippingMethod();\r\n\t\t$billing_data = $this->getRequest()->getPost('billing', false);\r\n\t\tif($billing_data['country_id']){\r\n\t\t\tMage::getModel('checkout/session')->getQuote()->getBillingAddress()->setData('country_id',$billing_data['country_id'])->save();\r\n\t\t}\r\n\t\t// if ($shipping_method && $shipping_method != '' && $shipping_method != $old_shipping_method) {\r\n\t\t\tMage::helper('onestepcheckout')->saveShippingMethod($shipping_method);\r\n\t\t\t$this->getOnepage()->saveShippingMethod($shipping_method);\r\n\t\t// }\r\n\t\t\r\n\t\t// if ($payment_method != '') {\r\n\t\t\ttry{\r\n\t\t\t\t$payment = $this->getRequest()->getPost('payment', array());\r\n\t\t\t\t$payment['method'] = $payment_method;\r\n\t\t\t\t$this->getOnepage()->savePayment($payment);\r\n\t\t\t\tMage::helper('onestepcheckout')->savePaymentMethod($payment);\r\n\t\t\t}\r\n\t\t\tcatch(Exception $e) {\r\n\t\t\t\t//\r\n\t\t\t}\r\n\t\t// }\r\n\t\t\r\n\t\t// $paymentHtml = $this->_getPaymentMethodsHtml();\r\n\t\t// $reviewHtml = $this->_getReviewTotalHtml();\r\n\t\t// $result = array('payment' => $paymentHtml, \r\n\t\t\t\t\t\t\t\t\t\t// 'review' => $reviewHtml);\r\n\t\t// $this->getResponse()->setBody(Zend_Json::encode($result));\r\n\t\t$this->loadLayout(false);\r\n\t\t$this->renderLayout();\r\n\t}", "public function create()\r\n {\r\n $totalInCart = $this->getGrandTotalInCart();\r\n return view('user.address.create', compact('totalInCart'));\r\n }", "public function setShipToAddress($data=null) {\n if(!is_array($data)) {\n $s = $this->getShipping();\n $data = array(\n 'SHIPTONAME' => $s['firstName'] . ' ' . $s['lastName'],\n 'SHIPTOSTREET' => $s['address'],\n 'SHIPTOSTREET2' => $s['address2'],\n 'SHIPTOCITY' => $s['city'],\n 'SHIPTOSTATE' => $s['state'],\n 'SHIPTOCOUNTRYCODE' => $s['country'],\n 'SHIPTOZIP' => $s['zip']\n );\n }\n $this->_payerShipToAddress = $data;\n }", "public function dept_address_callback()\n {\n printf(\n '<textarea id=\"dept_address\" rows=\"10\" cols=\"40\" name=\"my_option_name[dept_address]\" placeholder=\"Enter department address here\">%s</textarea>',\n isset( $this->options['dept_address'] ) ? esc_attr( $this->options['dept_address']) : ''\n );\n }", "private function addAddress($options)\n {\n if (!isset($options['address'])\n || !isset($options['billing_address'])\n ) {\n return false;\n }\n\n $address = isset($options['billing_address'])\n ? $options['billing_address']\n : $options['address'];\n\n $this->post['BillingStreet'] = isset($address['address1']) ? $address['address1'] : null;\n $this->post['BillingHouseNumber'] = isset($address['address2']) ? $address['address2'] : null;\n $this->post['BillingCity'] = isset($address['city']) ? $address['city'] : null;\n $this->post['BillingState'] = isset($address['state']) ? $address['state'] : null;\n $this->post['BillingPostCode'] = isset($address['zip']) ? $address['zip'] : null;\n }", "function bbpress_add_content_location() {\n\t\tglobal $gantry;\n\n\t\t$template_locations = bbp_get_template_stack();\n\t\t$template_locations = array_reverse( $template_locations );\n\n\t\tif( ( $key = array_search( $gantry->templatePath, $template_locations ) ) !== false ) {\n\t\t\tunset( $template_locations[$key] );\n\t\t}\n\n\t\tforeach( $template_locations as $location ) {\n\t\t\t$gantry->addContentTypePath( $location );\n\t\t}\n\t}", "function insert_template()\n {\n $parameter_array = $this->get_parameter_array();\n \n parent::insert('sssis', $parameter_array);\n }", "protected function _setShippingAddress(Mage_Sales_Model_Order $order, array $postData)\n {\n $order->getShippingAddress()\n ->setFirstname($postData['firstname'])\n ->setLastname($postData['lastname'])\n ->setCompany($postData['company'])\n ->setStreetFull($postData['street'])\n ->setCity($postData['city'])\n ->setPostcode($postData['postcode'])\n ->setCountryId($postData['country_id'])\n ;\n }", "public function set_sess_cart_shipping_address()\n {\n $std = new stdClass();\n $std->shipping_first_name = $this->input->post('shipping_first_name', true);\n $std->shipping_last_name = $this->input->post('shipping_last_name', true);\n $std->shipping_email = $this->input->post('shipping_email', true);\n $std->shipping_phone_number = $this->input->post('shipping_phone_number', true);\n $std->shipping_address_1 = $this->input->post('shipping_address_1', true);\n $std->shipping_address_2 = $this->input->post('shipping_address_2', true);\n $std->shipping_country_id = $this->input->post('shipping_country_id', true);\n $std->shipping_state = $this->input->post('shipping_state', true);\n $std->shipping_city = $this->input->post('shipping_city', true);\n $std->shipping_zip_code = $this->input->post('shipping_zip_code', true);\n $std->billing_first_name = $this->input->post('billing_first_name', true);\n $std->billing_last_name = $this->input->post('billing_last_name', true);\n $std->billing_email = $this->input->post('billing_email', true);\n $std->billing_phone_number = $this->input->post('billing_phone_number', true);\n $std->billing_address_1 = $this->input->post('billing_address_1', true);\n $std->billing_address_2 = $this->input->post('billing_address_2', true);\n $std->billing_country_id = $this->input->post('billing_country_id', true);\n $std->billing_state = $this->input->post('billing_state', true);\n $std->billing_city = $this->input->post('billing_city', true);\n $std->billing_zip_code = $this->input->post('billing_zip_code', true);\n $std->use_same_address_for_billing = $this->input->post('use_same_address_for_billing', true);\n if (!isset($std->use_same_address_for_billing)) {\n $std->use_same_address_for_billing = 0;\n }\n\n if ($std->use_same_address_for_billing == 1) {\n $std->billing_first_name = $std->shipping_first_name;\n $std->billing_last_name = $std->shipping_last_name;\n $std->billing_email = $std->shipping_email;\n $std->billing_phone_number = $std->shipping_phone_number;\n $std->billing_address_1 = $std->shipping_address_1;\n $std->billing_address_2 = $std->shipping_address_2;\n $std->billing_country_id = $std->shipping_country_id;\n $std->billing_state = $std->shipping_state;\n $std->billing_city = $std->shipping_city;\n $std->billing_zip_code = $std->shipping_zip_code;\n } else {\n if (empty($std->billing_first_name)) {\n $std->billing_first_name = $std->shipping_first_name;\n }\n if (empty($std->billing_last_name)) {\n $std->billing_last_name = $std->shipping_last_name;\n }\n if (empty($std->billing_email)) {\n $std->billing_email = $std->shipping_email;\n }\n if (empty($std->billing_phone_number)) {\n $std->billing_phone_number = $std->shipping_phone_number;\n }\n if (empty($std->billing_address_1)) {\n $std->billing_address_1 = $std->shipping_address_1;\n }\n if (empty($std->billing_address_2)) {\n $std->billing_address_2 = $std->shipping_address_2;\n }\n if (empty($std->billing_country_id)) {\n $std->billing_country_id = $std->shipping_country_id;\n }\n if (empty($std->billing_state)) {\n $std->billing_state = $std->shipping_state;\n }\n if (empty($std->billing_city)) {\n $std->billing_city = $std->shipping_state;\n }\n if (empty($std->billing_zip_code)) {\n $std->billing_zip_code = $std->shipping_zip_code;\n }\n }\n $this->session->set_userdata('mds_cart_shipping_address', $std);\n }", "public function email($order, $type) {\r\n\r\n switch ($type) {\r\n case 'shipping_confirmation':\r\n if ($order['status'] == 'shipped' && !empty($order['shipping_tracking_number'])) {\r\n // Send Shipping Confirmation email to customer\r\n $templateId = config('custom.emails.templates.shipping_confirmation');\r\n\r\n if (!empty($order['user_id'])) {\r\n $user = $order->user;\r\n }\r\n\r\n $sub = [\r\n 'customer_name' => !empty($order['user_id']) ? $user['first_name'] : $order['billing_name'],\r\n 'order_number' => $order['order_number'],\r\n 'shipping_carrier' => !empty($order['shipping_carrier']) ? config('custom.checkout.shipping.carriers.' . $order['shipping_carrier'] . '.name') : '',\r\n 'shipping_plan' => !empty($order['shipping_plan']) ? config('custom.checkout.shipping.carriers.' . $order['shipping_carrier'] . '.plans.' . $order['shipping_plan'] . '.plan') : '',\r\n 'tracking_url' => 'https://tools.usps.com/go/TrackConfirmAction?tLabels=' . $order['shipping_tracking_number'],\r\n 'tracking_number' => $order['shipping_tracking_number'],\r\n 'delivery_address' => [\r\n 'name' => $order['delivery_name'],\r\n 'phone' => $order['delivery_phone'],\r\n 'address_1' => $order['delivery_address_1'],\r\n 'address_2' => $order['delivery_address_2'],\r\n 'city' => $order['delivery_city'],\r\n 'state' => $order['delivery_state'],\r\n 'zipcode' => $order['delivery_zipcode']\r\n ]\r\n ];\r\n\r\n foreach ($order->inventoryItems as $item) {\r\n $tmp = [\r\n 'name' => $item->product['name'],\r\n 'url' => route('shop.product', [$item->product['uri'], $item->product['id']]),\r\n 'unit_price' => number_format($item->pivot['price'], 2),\r\n 'quantity' => $item->pivot['quantity'],\r\n 'price' => number_format($item->pivot['price'] * $item->pivot['quantity'], 2)\r\n ];\r\n\r\n if ($item->options()->count() > 0) {\r\n $tmp['options'] = [];\r\n\r\n foreach ($item->options()->get() as $option) {\r\n $tmp['options'][] = [\r\n 'attribute' => $option->attribute['name'],\r\n 'value' => $option['name']\r\n ];\r\n }\r\n }\r\n\r\n if ($item->product->defaultPhoto()->count() > 0) {\r\n $tmp['image'] = CustomHelper::image($item->product->defaultPhoto['name'], true);\r\n }\r\n\r\n $sub['items'][] = $tmp;\r\n }\r\n\r\n $recipients = [\r\n [\r\n 'address' => !empty($order['contact_email']) ? $order['contact_email'] : $user['email'],\r\n 'name' => $sub['customer_name'],\r\n 'substitution_data' => $sub\r\n ]\r\n ];\r\n\r\n SparkPostHelper::sendTemplate($templateId, $recipients);\r\n\r\n return back()->with('alert-success', 'You have successfully sent a Shipping Confirmation email to the customer.');\r\n } else {\r\n return back()->with('alert-danger', 'You need to change the status to Shipped and add a Tracking Number first in order to send this Shipping Confirmation email to the customer.');\r\n }\r\n\r\n break;\r\n }\r\n }", "protected function _setDestinationAddress($address) {\n\t\t//$shippingAddress = $quote->getShippingAddress();\n\t\t//$street = $address->getStreet();\n\t\t$street = array();\n\t\t$street1 = isset($street[0]) ? $street[0] : null;\n\t\t$street2 = isset($street[1]) ? $street[1] : null;\n\t\t$city = $address->getCity();\n\t\t$zip = preg_replace('/[^0-9\\-]*/', '', $address->getPostcode());\n\t\t$state = Mage::getModel('directory/region')->load($address->getRegionId())->getCode(); \n\t\t$country = $address->getCountry();\n\t\t \n\t\tif(($city && $state) || $zip) {\n\t\t\t$address = $this->_newAddress($street1, $street2, $city, $state, $zip, $country);\n\t\t\treturn $this->_request->setDestinationAddress($address);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function getShipping()\n {\n return array('name'=>'test','cost'=>4.5);\n }", "public function create_shippify_task($order_id){\n session_start();\n $task_endpoint = \"https://api.shippify.co/task/new\";\n\n $order = new WC_Order($order_id);\n\n $products = '[{\"id\":\"10234\",\"name\":\"TV\",\"qty\":\"2\",\"size\":\"3\",\"price\":\"0\"}]'; //coger de package\n\n $sender_mail = \"[email protected]\"; //poner y coger de settings\n\n $recipient_name = get_post_meta( $order_id, '_billing_first_name', true ) . get_post_meta( $order_id, '_billing_last_name', true ) ;\n $recipient_email = get_post_meta( $order_id, '_billing_email', true );\n $recipient_phone = get_post_meta( $order_id, '_billing_phone', true );\n\n $pickup_warehouse = get_post_meta( $order_id, 'pickup_id', true );\n $pickup_latitude = get_post_meta( $order_id, 'pickup_latitude', true );\n $pickup_longitude = get_post_meta( $order_id, 'pickup_longitude', true );\n $pickup_address = get_post_meta( $order_id, 'pickup_address', true );\n\n $deliver_lat = get_post_meta( $order_id, 'Latitude', true );\n $deliver_lon = get_post_meta( $order_id, 'Longitude', true );\n $deliver_address = get_post_meta( $order_id, '_billing_address_1', true ) . get_post_meta( $order_id, '_billing_address_2', true );\n\n $note = get_post_meta( $order_id, 'Instructions', true );\n\n $ref_id = $order_id;\n\n $api_id = get_option('shippify_id');\n $api_secret = get_option('shippify_secret');\n\n $items = \"[\";\n foreach ($order->get_items() as $item_id => $_preproduct ) { \n $_product = $_preproduct->get_product();\n $items = $items . '{\"id\":\"' . $_product->get_id() . '\", \n \"name\":\"' . $_product->get_name() . '\", \n \"qty\": \"' . $_preproduct['quantity'] . '\", \n \"size\": \"' . $this->calculate_product_shippify_size($_product) . '\"\n },';\n }\n $items = substr($items, 0, -1) . ']';\n\n $wh_args = array(\n 'headers' => array(\n 'Authorization' => 'Basic ' . base64_encode( $api_id . ':' . $api_secret )\n ),\n 'method' => 'GET'\n ); \n\n $pickup_id = '';\n if ($pickup_warehouse != \"\" || isset($pickup_warehouse)){\n $warehouse_response = wp_remote_get('https://api.shippify.co/warehouse/list', $wh_args);\n if (!is_wp_error($warehouse_response)){\n $warehouse_response = json_decode($warehouse_response['body'], true);\n $warehouse_info = $warehouse_response[\"warehouses\"];\n foreach ($warehouse_info as $warehouse){\n if ($warehouse[\"id\"] == $pickup_warehouse){\n $pickup_id = $pickup_warehouse;\n break; \n }\n }\n }\n } \n\n if ($pickup_id == ''){\n $warehouse_to_request = '';\n }else{\n $warehouse_to_request = ',\n \"warehouse\": \"'. $pickup_id .'\"';\n }\n\n $total_amount = '';\n $payment_method = get_post_meta( $order_id, '_payment_method', true );\n if ($payment_method == 'cod'){\n $order_total = $order->get_total(); \n $total_amount = '\"total_amount\": \"' . $order_total . '\",'; \n }\n\n $request_body = '\n {\n \"task\" : {\n \"products\": '. $items . ',\n \"sender\" : {\n \"email\": \"'. $sender_mail . '\"\n },\n \"recipient\": {\n \"name\": \"'. $recipient_name . '\",\n \"email\": \"'. $recipient_email . '\",\n \"phone\": \"'. $recipient_phone . '\"\n },\n \"pickup\": {\n \"lat\": '. $pickup_latitude . ',\n \"lng\": '. $pickup_longitude . ',\n \"address\": \"'. $pickup_address . '\"'. $warehouse_to_request . '\n }, \n '. $total_amount . '\n \"deliver\": {\n \"lat\": '. $deliver_lat . ',\n \"lng\": '. $deliver_lon . ',\n \"address\": \"'. $deliver_address . '\"\n },\n \"ref_id\": \"'. $ref_id .'\",\n \"extra\": {\n \"note\": \"'. $note . '\" \n }\n }\n }';\n\n //Basic Authorization\n\n $args = array(\n 'headers' => array(\n 'Authorization' => 'Basic ' . base64_encode( $api_id . ':' . $api_secret ),\n 'Content-Type' => 'application/json'\n ),\n 'method' => 'POST',\n 'body' => $request_body\n );\n\n $response = wp_remote_post( $task_endpoint, $args );\n\n if (is_wp_error($response)){\n return false;\n }\n\n\n return $response;\n\n }", "function hook_commerce_adyen_shopper_address_alter(\\Commerce\\Adyen\\Payment\\Composition\\Address $address, \\EntityDrupalWrapper $profile, array $checkout_values, \\EntityDrupalWrapper $order) {\n if ('Dnipropetrovsk' === $address->getCity()) {\n $address->setCity('Dnipro');\n }\n}", "public function updateShippingAddress(ResourceControllerEvent $event): void\n {\n /** @var Order $order */\n $order = $event->getSubject();\n\n $pickup = $this->getPickupAddress($order);\n\n if (!empty($pickup)) {\n $shipping = $order->getShippingAddress();\n $shipping->setCompany($pickup['company']);\n $shipping->setStreet($pickup['street_1']);\n $shipping->setCity($pickup['city']);\n $shipping->setPostcode($pickup['postcode']);\n $shipping->setCountryCode($pickup['country']);\n }\n }", "public function addAddress($address, $name = '')\n {\n }", "public function convertAddress(array $data, $type = 'billing')\n {\n $address = Mage::getModel('customer/address');\n $address->setId(null);\n $address->setIsDefaultBilling(true);\n $address->setIsDefaultShipping(false);\n if ($type == 'shipping') {\n $address->setIsDefaultBilling(false);\n $address->setIsDefaultShipping(true);\n }\n Mage::helper('core')->copyFieldset('lengow_convert_' . $type . '_address', 'to_' . $type . '_address', $data,\n $address);\n if ($type == 'shipping') {\n $type = 'delivery';\n }\n $address_1 = $data[$type . '_address'];\n $address_2 = $data[$type . '_address_2'];\n // Fix address 1\n if (empty($address_1) && !empty($address_2)) {\n $address_1 = $address_2;\n $address_2 = null;\n }\n // Fix address 2\n if (!empty($address_2)) {\n $address_1 = $address_1 . \"\\n\" . $address_2;\n }\n $address_3 = $data[$type . '_address_complement'];\n if (!empty($address_3)) {\n $address_1 = $address_1 . \"\\n\" . $address_3;\n }\n // adding relay to address\n if (isset($data['tracking_relay'])) {\n $address_1 .= ' - Relay : ' . $data['tracking_relay'];\n }\n $address->setStreet($address_1);\n $tel_1 = $data[$type . '_phone_office'];\n $tel_2 = $data[$type . '_phone_mobile'];\n // Fix tel\n $tel_1 = empty($tel_1) ? $tel_2 : $tel_1;\n\n if (!empty($tel_1)) {\n $this->setTelephone($tel_1);\n }\n if (!empty($tel_1)) {\n $address->setFax($tel_1);\n } else {\n if (!empty($tel_2)) {\n $address->setFax($tel_2);\n }\n }\n $codeRegion = (integer)substr(str_pad($address->getPostcode(), 5, '0', STR_PAD_LEFT), 0, 2);\n $id_region = Mage::getModel('directory/region')->getCollection()\n ->addRegionCodeFilter($codeRegion)\n ->addCountryFilter($address->getCountry())\n ->getFirstItem()\n ->getId();\n $address->setRegionId($id_region);\n $address->setCustomer($this);\n return $address;\n }", "protected function drawAddresses($page, $order)\n {\n /* Add table head */\n $this->_setFontBold($page, 14);\n $page->setFillColor(new \\Zend_Pdf_Color_GrayScale(0));\n\n $this->y -= 15;\n $page->drawText(__('Bill to :'), 30, $this->y, 'UTF-8');\n $page->drawText(__('Ship to :'), 300, $this->y, 'UTF-8');\n\n $billingAddress = explode(\"\\n\", $order->getBillingAddress());\n $shippingAddress = explode(\"\\n\", $order->getShippingAddress());\n\n $this->_setFontRegular($page, 12);\n $i = 0;\n foreach($billingAddress as $line) {\n $line = str_replace(\"\\r\", \"\", $line);\n if ($line) {\n $page->drawText($line, 60, $this->y - 20 - ($i * 13), 'UTF-8');\n $i++;\n }\n }\n\n $j = 0;\n foreach($shippingAddress as $line) {\n $line = str_replace(\"\\r\", \"\", $line);\n if ($line) {\n $page->drawText($line, 330, $this->y - 20 - ($j * 13), 'UTF-8');\n $j++;\n }\n }\n\n $maxLines = max(($i), ($j));\n\n $this->y -= $maxLines * 20 + 20;\n }", "public function wc_address_book_make_primary() {\n\n\t\t$customer_id = get_current_user_id();\n\t\t$address_book = $this->get_address_book( $customer_id );\n\n\t\t$primary_address_name = 'shipping';\n\t\t$alt_address_name = $_POST['name'];\n\n\t\t// Loop through and swap values between shipping names.\n\t\tforeach ( $address_book[ $primary_address_name ] as $field => $value ) {\n\n\t\t\t$alt_field = preg_replace( '/^[^_]*_\\s*/', $alt_address_name . '_', $field );\n\t\t\t$resp = update_user_meta( $customer_id, $field, $address_book[ $alt_address_name ][ $alt_field ] );\n\t\t}\n\n\t\tforeach ( $address_book[ $alt_address_name ] as $field => $value ) {\n\n\t\t\t$primary_field = preg_replace( '/^[^_]*_\\s*/', $primary_address_name . '_', $field );\n\t\t\t$resp = update_user_meta( $customer_id, $field, $address_book[ $primary_address_name ][ $primary_field ] );\n\t\t}\n\n\t\tdie();\n\t}", "public function ExpressCheckoutChooseAddress($addressType, $buildRequiredJS=false)\n\t{\n\t\t$templateAddressType = $addressType;\n\t\tif($templateAddressType == 'account') {\n\t\t\t$templateAddressType = 'billing';\n\t\t}\n\t\t$templateUpperAddressType = ucfirst($templateAddressType);\n\n\t\t$GLOBALS['AddressList'] = '';\n\n\t\t$GLOBALS['AddressType'] = $templateAddressType;\n\t\t$GLOBALS['UpperAddressType'] = $templateUpperAddressType;\n\t\t$GLOBALS['HideCreateAddress'] = 'display: none';\n\t\t$GLOBALS['HideChooseAddress'] = 'display: none';\n\n\t\t$GLOBALS['CreateAccountForm'] = '';\n\t\t$country_id = GetCountryIdByName(GetConfig('CompanyCountry'));\n\n\t\t$selectedCountry = GetConfig('CompanyCountry');\n\t\t$selectedState = 0;\n\n\t\tif ($addressType == 'shipping') {\n\t\t\t$fields = $GLOBALS['ISC_CLASS_FORM']->getFormFields(FORMFIELDS_FORM_SHIPPING);\n\t\t} else if (!CustomerIsSignedIn() && $addressType == 'account') {\n\t\t\t$fields = $GLOBALS['ISC_CLASS_FORM']->getFormFields(FORMFIELDS_FORM_ACCOUNT);\n\t\t\t$fields += $GLOBALS['ISC_CLASS_FORM']->getFormFields(FORMFIELDS_FORM_BILLING);\n\t\t} else {\n\t\t\t$fields = $GLOBALS['ISC_CLASS_FORM']->getFormFields(FORMFIELDS_FORM_BILLING);\n\t\t}\n\n\t\t// If the customer isn't signed in, then by default we show the create form\n\t\tif(!CustomerIsSignedIn() ) {\n\t\t\t$GLOBALS['HideCreateAddress'] = '';\n\t\t}\n\t\t// If the customer is logged in, load up their existing addresses\n\t\telse {\n\t\t\t$GLOBALS['ISC_CLASS_CUSTOMER'] = GetClass('ISC_CUSTOMER');\n\t\t\t$shippingAddresses = $GLOBALS['ISC_CLASS_CUSTOMER']->GetCustomerShippingAddresses();\n\n\t\t\t// If the customer doesn't have any addresses, show the creation form\n\t\t\tif(empty($shippingAddresses)) {\n\t\t\t\t$GLOBALS['HideChooseAddress'] = 'display: none';\n\t\t\t\t$GLOBALS['HideCreateAddress'] = '';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$GLOBALS['HideChooseAddress'] = '';\n\t\t\t\t$addressMap = array(\n\t\t\t\t\t'shipfullname',\n\t\t\t\t\t'shipcompany',\n\t\t\t\t\t'shipaddress1',\n\t\t\t\t\t'shipaddress2',\n\t\t\t\t\t'shipcity',\n\t\t\t\t\t'shipstate',\n\t\t\t\t\t'shipzip',\n\t\t\t\t\t'shipcountry'\n\t\t\t\t);\n\n\t\t\t\tforeach($shippingAddresses as $address) {\n\t\t\t\t\t$formattedAddress = '';\n\t\t\t\t\tforeach($addressMap as $field) {\n\t\t\t\t\t\tif(!$address[$field]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$formattedAddress .= $address[$field] .', ';\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['AddressSelected'] = '';\n\n\t\t\t\t\tif(isset($_SESSION['CHECKOUT']['SelectAddress'])) {\n\t\t\t\t\t\tif($_SESSION['CHECKOUT']['SelectAddress'] == $address['shipid']) {\n\t\t\t\t\t\t\t$GLOBALS['AddressSelected'] = ' selected=\"selected\"';\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(!$GLOBALS['AddressList']) {\n\t\t\t\t\t\t$GLOBALS['AddressSelected'] = ' selected=\"selected\"';\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['AddressId'] = $address['shipid'];\n\t\t\t\t\t$GLOBALS['AddressLine'] = isc_html_escape(trim($formattedAddress, ', '));\n\t\t\t\t\t$GLOBALS['AddressList'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ExpressCheckoutAddress');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif($addressType == 'billing') {\n\t\t\t$quoteAddress = getCustomerQuote()->getBillingAddress();\n\t\t}\n\t\telse {\n\t\t\t$quoteAddress = getCustomerQuote()->setIsSplitShipping(false)\n\t\t\t\t->getShippingAddress();\n\t\t}\n\n\t\t$selectedCountry = $quoteAddress->getCountryName();\n\t\t$selectedState = $quoteAddress->getStateName();\n\t\t$country_id = $quoteAddress->getCountryId();\n\n\t\t$quoteAddressFields = array(\n\t\t\t'EmailAddress' => 'getEmail',\n\t\t\t'FirstName' => 'getFirstName',\n\t\t\t'LastName' => 'getLastName',\n\t\t\t'CompanyName' => 'getCompany',\n\t\t\t'AddressLine1' => 'getAddress1',\n\t\t\t'AddressLine2' => 'getAddress2',\n\t\t\t'City' => 'getCity',\n\t\t\t'Zip' => 'getZip',\n\t\t\t'State' => 'getStateName',\n\t\t\t'Country' => 'getCountryName',\n\t\t\t'Phone' => 'getPhone',\n\t\t);\n\n\t\tforeach($fields as $fieldId => $formField) {\n\t\t\t$formFieldPrivateId = $formField->record['formfieldprivateid'];\n\n\t\t\t// Hide the leave blank label for passwords on checkout\n\t\t\tif($formField->getFieldType() == 'password') {\n\t\t\t\t$formField->setLeaveBlankLabel(false);\n\t\t\t}\n\n\t\t\tif(isset($quoteAddressFields[$formFieldPrivateId])) {\n\t\t\t\t$method = $quoteAddressFields[$formFieldPrivateId];\n\t\t\t\t$formField->setValue($quoteAddress->$method());\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$value = $quoteAddress->getCustomField($fieldId);\n\t\t\t\tif($value !== false) {\n\t\t\t\t\t$formField->setValue($value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['HideSaveAddress'] = 'display: none';\n\t\t$GLOBALS['SaveAddressChecked'] = '';\n\n\t\t// If the customer is signed in, or creating an account they can save addresses\n\t\tif(customerIsSignedIn() || $addressType == 'account') {\n\t\t\t$GLOBALS['HideSaveAddress'] = '';\n\t\t\tif($quoteAddress->getSaveAddress() === true || $quoteAddress->getSaveAddress() === null) {\n\t\t\t\t$GLOBALS['SaveAddressChecked'] = 'checked=\"checked\"';\n\t\t\t}\n\t\t}\n\n\t\tif($addressType == 'billing' || $addressType == 'account') {\n\t\t\t$GLOBALS['BillToAddressButton'] = GetLang('BillToThisAddress');\n\t\t\tif($this->getQuote()->isDigital()) {\n\t\t\t\t$GLOBALS['UseAddressTitle'] = isc_html_escape(GetLang('BillToThisAddress'));\n\t\t\t\t$GLOBALS['HideShippingOptions'] = 'display: none';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$GLOBALS['UseAddressTitle'] = isc_html_escape(GetLang('BillAndShipToAddress'));\n\t\t\t}\n\t\t\t$GLOBALS['UseExistingAddress'] = GetLang('UseExistingBillingAddress');\n\t\t\t$GLOBALS['AddNewAddress'] = GetLang('UseNewBillingAddress');\n\t\t\t$GLOBALS['ShipToBillingName'] = 'ship_to_billing';\n\t\t\t$GLOBALS['ShipToAddressChecked'] = 'checked=\"checked\"';\n\t\t}\n\t\telse {\n\t\t\t$GLOBALS['BillToAddressButton'] = GetLang('ShipToThisAddress');\n\t\t\t$GLOBALS['UseAddressTitle'] = isc_html_escape(GetLang('ShipToThisAddress'));\n\t\t\t$GLOBALS['UseExistingAddress'] = GetLang('UseExistingShippingAddress');\n\t\t\t$GLOBALS['AddNewAddress'] = GetLang('UseNewShippingAddress');\n\t\t\t$GLOBALS['ShipToBillingName'] = 'bill_to_shipping';\n\t\t\t$GLOBALS['HideShippingOptions'] = 'display: none';\n\t\t}\n\n\t\t// We need to loop here so we can get the field Id for the state\n\t\t$countryId = GetCountryIdByName($selectedCountry);\n\t\t$stateFieldId = 0;\n\t\t$countryFieldId = 0;\n\t\tforeach($fields as $fieldId => $formField) {\n\t\t\tif (strtolower($formField->record['formfieldprivateid']) == 'state') {\n\t\t\t\t$stateFieldId = $fieldId;\n\t\t\t} else if (strtolower($formField->record['formfieldprivateid']) == 'country') {\n\t\t\t\t$countryFieldId = $fieldId;\n\t\t\t}\n\t\t}\n\n\t\t// Compile the fields. Also set the country and state dropdowns while we are here\n\t\t$GLOBALS['CompiledFormFields'] = '';\n\n\t\t// If checking out as a guest, the email address field also needs to be shown\n\t\tif($addressType == 'billing' && !customerIsSignedIn()) {\n\t\t\t$emailField = $GLOBALS['ISC_CLASS_FORM']->getFormField(FORMFIELDS_FORM_ACCOUNT, '1', '', true);\n\t\t\t$emailField->setValue($quoteAddress->getEmail());\n\t\t\t$GLOBALS['ISC_CLASS_FORM']->addFormFieldUsed($emailField);\n\t\t\t$GLOBALS['CompiledFormFields'] .= $emailField->loadForFrontend();\n\t\t}\n\n\t\tforeach($fields as $fieldId => $formField) {\n\n\t\t\t//\tlowercase the formfieldprivateid for conditional matching below\n\t\t\t$formFieldPrivateId = strtolower($formField->record['formfieldprivateid']);\n\n\t\t\tif ($formFieldPrivateId == 'country') {\n\t\t\t\t$formField->setOptions(GetCountryListAsIdValuePairs());\n\n\t\t\t\tif ($selectedCountry !== '') {\n\t\t\t\t\t$formField->setValue($selectedCountry);\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * This is the event handler for changing the states where a country is selected\n\t\t\t\t */\n\t\t\t\t$formField->addEventHandler('change', 'FormFieldEvent.SingleSelectPopulateStates', array('countryId' => $countryFieldId, 'stateId' => $stateFieldId));\n\n\t\t\t} else if ($formFieldPrivateId == 'state' && isId($countryId)) {\n\t\t\t\t$stateOptions = GetStateListAsIdValuePairs($countryId);\n\t\t\t\tif (is_array($stateOptions) && !empty($stateOptions)) {\n\t\t\t\t\t$formField->setOptions($stateOptions);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// no states for our country, we need to mark this as not required\n\t\t\t\t\t$formField->setRequired(false);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$GLOBALS['CompiledFormFields'] .= $fields[$fieldId]->loadForFrontend() . \"\\n\";\n\t\t}\n\n\t\t$GLOBALS['CompiledFormFieldJavascript'] = \"\\n\\n\" . $GLOBALS['ISC_CLASS_FORM']->buildRequiredJS(true);\n\t\treturn $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('ExpressCheckoutChooseAddress');\n\t}", "public function address($entity, $type = 'billing') {\n\t\tif (!static::hasField(\"{$type}_address_id\")) {\n\t\t\t$message = \"User model has no field `{$type}_address_id`. \";\n\t\t\t$message .= \"You may need to require the ecommerce_core or billing_core library.\";\n\t\t\tthrow new RuntimeException($message);\n\t\t}\n\n\t\tif ($entity->{\"{$type}_address\"}) {\n\t\t\t// Return if directly attached.\n\t\t\treturn $entity->{\"{$type}_address\"};\n\t\t}\n\t\tif (!Libraries::get('base_address')) {\n\t\t\t$message = \"The base_address library is not available. \";\n\t\t\t$message .= \"Require it as a dependency to enable `Users::address()`.\";\n\t\t\tthrow new RuntimeException($message);\n\t\t}\n\t\treturn Addresses::find('first', [\n\t\t\t'conditions' => [\n\t\t\t\t'id' => $entity->{\"{$type}_address_id\"}\n\t\t\t]\n\t\t]) ?: Addresses::create([\n\t\t\t'user_id' => $entity->id,\n\t\t\t'recipient' => $entity->name,\n\t\t\t'country' => $entity->country\n\t\t]);\n\t}", "public function setBillingAddressAction()\n {\n $data = $this->Request()->getParams();\n\n /** @var Shopware\\Models\\Customer\\Customer $customerModel */\n $customerModel = Shopware()->Models()->find('Shopware\\Models\\Customer\\Customer', $data['userId']);\n\n $billingAddressModel = $customerModel->getBilling();\n\n $billingAddressModel->fromArray($data);\n\n Shopware()->Models()->persist($billingAddressModel);\n Shopware()->Models()->flush();\n\n $this->view->assign(['billingAddressId' => $billingAddressModel->getId()]);\n }", "public function getShippingAddress(): Address\n {\n if (!isset($this->shippingAddress)) {\n throw new LocalizedException(__('Shipping address is not defined for instance purchase.'));\n }\n return $this->shippingAddress;\n }", "protected function _beforeToHtml()\n {\n $methodInstance = $this->_quote->getPayment()->getMethodInstance();\n $this->setPaymentMethodTitle($methodInstance->getTitle());\n\n $this->setShippingRateRequired(true);\n if ($this->_quote->getIsVirtual()) {\n $this->setShippingRateRequired(false);\n } else {\n // prepare shipping rates\n $this->_address = $this->_quote->getShippingAddress();\n $groups = $this->_address->getGroupedAllShippingRates();\n if ($groups && $this->_address) {\n $this->setShippingRateGroups($groups);\n // determine current selected code & name\n foreach ($groups as $code => $rates) {\n foreach ($rates as $rate) {\n if ($this->_address->getShippingMethod() == $rate->getCode()) {\n $this->_currentShippingRate = $rate;\n break(2);\n }\n }\n }\n }\n\n $parcelas = $this->_quote->getPayment()->getAdditionalInformation('plots');\n $valorParcela = $this->_quote->getPayment()->getAdditionalInformation('plots_val');\n $this->setParcelas($parcelas);\n $this->setValorParcela($valorParcela);\n\n $canEditShippingAddress = $this->_quote->getMayEditShippingAddress() && $this->_quote->getPayment()\n ->getAdditionalInformation(Mage_Paypal_Model_Express_Checkout::PAYMENT_INFO_BUTTON) == 1;\n // misc shipping parameters\n $this->setShippingMethodSubmitUrl($this->getUrl(\"{$this->_paypalActionPrefix}/express/saveShippingMethod\"))\n ->setCanEditShippingAddress($canEditShippingAddress)\n ->setCanEditShippingMethod($this->_quote->getMayEditShippingMethod())\n ;\n }\n\n $this->setEditUrl($this->getUrl(\"{$this->_paypalActionPrefix}/express/edit\"))\n ->setPlaceOrderUrl($this->getUrl(\"{$this->_paypalActionPrefix}/express/placeOrder\"));\n\n return parent::_beforeToHtml();\n }", "public function saveAction()\n {\n $data = $this->getRequest()->getPost('shipment');\n if (!empty($data['comment_text'])) {\n Mage::getSingleton('adminhtml/session')->setCommentText($data['comment_text']);\n }\n\n try {\n $shipment = $this->_initShipment();\n\n if (!$shipment) {\n $this->_forward('noRoute');\n return;\n }\n\n $shipment->register();\n $comment = '';\n if (!empty($data['comment_text'])) {\n $shipment->addComment(\n $data['comment_text'],\n isset($data['comment_customer_notify']),\n isset($data['is_visible_on_front'])\n );\n if (isset($data['comment_customer_notify'])) {\n $comment = $data['comment_text'];\n }\n }\n\n if (!empty($data['send_email'])) {\n $shipment->setEmailSent(true);\n }\n\n $shipment->getOrder()->setCustomerNoteNotify(!empty($data['send_email']));\n $responseAjax = new Varien_Object();\n $isNeedCreateLabel = isset($data['create_shipping_label']) && $data['create_shipping_label'];\n\n if ($isNeedCreateLabel && $this->_createShippingLabel($shipment)) {\n $responseAjax->setOk(true);\n }\n\n $this->_saveNewPostWaybill($shipment);\n\n $this->_saveShipment($shipment);\n\n $shipment->sendEmail(!empty($data['send_email']), $comment);\n\n $shipmentCreatedMessage = $this->__('The shipment has been created.');\n $labelCreatedMessage = $this->__('The shipping label has been created.');\n\n $this->_getSession()->addSuccess($isNeedCreateLabel ? $shipmentCreatedMessage . ' ' . $labelCreatedMessage\n : $shipmentCreatedMessage);\n Mage::getSingleton('adminhtml/session')->getCommentText(true);\n\n } catch (Mage_Core_Exception $e) {\n if ($isNeedCreateLabel) {\n $responseAjax->setError(true);\n $responseAjax->setMessage($e->getMessage());\n } else {\n $this->_getSession()->addError($e->getMessage());\n $this->_redirect('*/*/new', array('order_id' => $this->getRequest()->getParam('order_id')));\n }\n } catch (Exception $e) {\n Mage::logException($e);\n if ($isNeedCreateLabel) {\n $responseAjax->setError(true);\n $responseAjax->setMessage(\n Mage::helper('sales')->__('An error occurred while creating shipping label.'));\n } else {\n $this->_getSession()->addError($this->__('Cannot save shipment.'));\n $this->_redirect('*/*/new', array('order_id' => $this->getRequest()->getParam('order_id')));\n }\n\n }\n if ($isNeedCreateLabel) {\n $this->getResponse()->setBody($responseAjax->toJson());\n } else {\n $this->_redirect('*/sales_order/view', array('order_id' => $shipment->getOrderId()));\n }\n }", "public function handleAddress ()\n {\n /**\n * Wir verzichten der Übersichtlichkeit halber auf eine Validierung. Eigentlich müsste hier eine Daten-\n * validierung durchgeführt werden und etwaige Fehler an den User zurückgespielt werden. Im Login machen wir das\n * beispielsweise und auch bei der Bearbeitung eines Produkts. Der nachfolgende Code dürfte gar nicht mehr\n * ausgeführt werden, wenn Validierungsfehler aufgetreten sind.\n */\n\n /**\n * Eingeloggten User abfragen\n */\n $user = User::getLoggedInUser();\n\n /**\n * Wurde das linke Formular abgeschickt?\n */\n if (isset($_POST['address_id'])) {\n /**\n * Ausgefühlte AddressId in die Session speichern, damit wir sie in einem weiteren Checkout-Schritt wieder\n * verwenden können.\n */\n Session::set(self::ADDRESS_KEY, (int)$_POST['address_id']);\n }\n\n /**\n * Wurde das rechte Formular abgeschickt?\n */\n if (isset($_POST['address'])) {\n /**\n * Neue Addresse erstellen und in die Datenbank speichern.\n */\n $address = new Address();\n $address->address = $_POST['address'];\n $address->user_id = $user->id;\n $address->save();\n\n /**\n * ID der neu erstellten Adresse in die Session speichern, damit wir sie in einem weiteren Checkout-Schritt\n * wieder verwenden können.\n */\n Session::set(self::ADDRESS_KEY, (int)$address->id);\n }\n\n /**\n * Weiterleiten auf den nächsten Schritt im Checkout Prozess.\n */\n $baseUrl = Config::get('app.baseUrl');\n header(\"Location: {$baseUrl}checkout/final\");\n }", "public function addAction() {\r\n \t$this->checkRight();\r\n \t$gid = $this->getInput('gid');\r\n \t$title = \"添加收货人地址\";\r\n \t$this->assign('title', $title);\r\n \t$this->assign('gid', $gid);\r\n }", "public function updateCustomerAddressAction() {\n if(!Mage::app()->getRequest()->isAjax()){\n $this->norouteAction();\n exit;\n }\n\n $postData = $this->getRequest()->getPost();\n parse_str($postData['form'], $billing);\n\n $customer = $this->_getCustomer();\n\n $address = new Varien_Object();\n $address->addData(\n array(\n 'state' => $billing['state'],\n 'city' => $billing['city'],\n 'street' => $billing['street'],\n 'zip_code' => $billing['zipcode'],\n 'firstname' => $billing['firstname'],\n 'lastname' => $billing['lastname'],\n 'telephone' => $billing['telephone'],\n 'phone_number' => $billing['telephone'],\n 'country_code' => $billing['country_id'],\n )\n );\n\n $response = Mage::getModel(\"payments/api\")->updateBilling($customer->getId(), $address);\n $this->getResponse()->setBody(Mage::helper('core')->jsonEncode(array('token' => $response)));\n }", "function uc_order_pane_bill_to($op, $order, &$form = NULL, &$form_state = NULL) {\n switch ($op) {\n case 'view':\n case 'customer':\n $build = array('#markup' => uc_order_address($order, 'billing') . '<br />' . check_plain($order->billing_phone));\n return $build;\n\n case 'edit-form':\n $form['bill_to'] = array(\n '#type' => 'uc_address',\n '#default_value' => $order,\n '#required' => FALSE,\n '#attributes' => array('class' => array('uc-store-address-field')),\n '#key_prefix' => 'billing',\n );\n return $form;\n\n case 'edit-theme':\n $output = '<div class=\"order-pane-icons\">';\n $output .= ' <img src=\"' . base_path() . drupal_get_path('module', 'uc_store')\n . '/images/address_book.gif\" alt=\"' . t('Select from address book.') . '\" '\n . 'title=\"' . t('Select from address book.') . '\" onclick=\"load_address_select(' . $form['order_uid']['#value'] . ', \\'#billing_address_select\\', \\'billing\\');\" />';\n $output .= ' <img src=\"' . base_path() . drupal_get_path('module', 'uc_store')\n . '/images/copy.gif\" alt=\"' . t('Copy shipping information.') . '\" title=\"'\n . t('Copy shipping information.') . '\" onclick=\"uc_order_copy_shipping_to_billing();\" />';\n $output .= '</div>';\n $output .= '<div id=\"billing_address_select\"></div>';\n return $output . drupal_render($form['bill_to']);\n\n case 'edit-process':\n foreach ($form_state['values'] as $key => $value) {\n if (substr($key, 0, 8) == 'billing_') {\n if (uc_address_field_enabled(substr($key, 8))) {\n $changes[$key] = $value;\n }\n }\n }\n return $changes;\n }\n}", "public function add_delivery_address(){\n $save_data['customer_id'] = $_REQUEST['customer_id'];\n $save_data['address_title'] = $_REQUEST['address_title'];\n $save_data['address'] = $_REQUEST['address'];\n $save_data['country_id'] = $_REQUEST['country_id'];\n $save_data['state_id'] = $_REQUEST['state_id'];\n $save_data['city_id'] = $_REQUEST['city_id'];\n $save_data['pincode'] = $_REQUEST['pincode'];\n\n $is_default = $_REQUEST['is_default'];\n $customer_id = $_REQUEST['customer_id'];\n\n $address_id = $this->User_Model->save_data('delivery_address', $save_data);\n if ($address_id) {\n if($is_default == 1){\n $up_data1['is_default'] = 0;\n $this->User_Model->update_info('customer_id', $customer_id, 'delivery_address', $up_data1);\n $up_data2['is_default'] = 1;\n $this->User_Model->update_info('address_id', $address_id, 'delivery_address', $up_data2);\n }\n $response[\"status\"] = TRUE;\n $response[\"msg\"] = \"Address Saved Successfuly\";\n } else {\n $response[\"status\"] = FALSE;\n $response[\"msg\"] = \"Address Not Saved\";\n }\n $json_response = json_encode($response,JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);\n echo str_replace('\\\\/','/',$json_response);\n }", "private function replaceOrderLegends(\n $templateId,\n $order = '',\n $address = ''\n ) {\n $seltemplate = 'SELECT temp_body FROM ' . _DB_PREFIX_ . 'onehop_sms_templates';\n $seltemplate .= ' WHERE temp_id = \"' . (int)$templateId . '\"';\n $getTemplateRes = Db::getInstance()->ExecuteS($seltemplate);\n $shippingAddr = '';\n $productid = '';\n $productname = '';\n $invoice = '';\n $ship_number = '';\n $tran_id = '';\n \n if ($address != '') {\n $shippingAddr .= $address->address1 . ' ' . $address->address2 . '<br>';\n $shippingAddr .= $address->postcode . ' ' . $address->city.' '.$address->country;\n }\n \n $productArray = $order->getProducts();\n $total_product_disc = 0;\n if ($productArray) {\n $idarray = array();\n $namearray = array();\n foreach ($productArray as $product) {\n array_push($namearray, $product['product_name']);\n array_push($idarray, $product['product_id']);\n $product_amt = (float)$product['total_price_tax_incl'];\n \n $reduction_precent = (float)$product['reduction_percent'];\n if ($reduction_precent > 0) {\n $actual_amt = ($product_amt*100)/(100-$reduction_precent);\n $total_product_disc += ($actual_amt-$product_amt);\n }\n \n $reduction_amount = (float)$product['reduction_amount_tax_incl'];\n if ($reduction_amount > 0) {\n $total_product_disc += $reduction_amount;\n }\n }\n $productid = implode(', ', $idarray);\n $productname = implode(', ', $namearray);\n }\n \n $getOrderTrack = $this->getOrderTrackNTransID($order->id);\n $orderTrack = ($getOrderTrack !== null && sizeof($getOrderTrack) > 0) ? $getOrderTrack[0] : '';\n if ($orderTrack != '') {\n $invoiceNo = Tools::strlen($orderTrack['invoice_number']);\n if ((int) $invoiceNo > 0 && (int) $orderTrack['invoice_number'] > 0) {\n switch ($invoiceNo) {\n case '1':\n $invoicePre = '#IN00000';\n break;\n case '2':\n $invoicePre = '#IN0000';\n break;\n case '3':\n $invoicePre = '#IN000';\n break;\n case '4':\n $invoicePre = '#IN00';\n break;\n case '5':\n $invoicePre = '#IN0';\n break;\n default:\n $invoicePre = '#IN';\n break;\n }\n $invoice = $invoicePre . $orderTrack['invoice_number'];\n }\n $ship_number = $orderTrack['shipping_number'];\n $tran_id = $orderTrack['transaction_id'];\n }\n \n $legends = array(\n \"{FIRSTNAME}\",\n \"{LASTNAME}\",\n \"{EMAIL}\",\n \"{MOBILE}\",\n \"{SHIPPING_ADDRESS}\",\n \"{ORDERID}\",\n \"{PRICE}\",\n \"{DISCOUNT}\",\n \"{PRODUCTID}\",\n \"{PRODUCTNAME}\",\n \"{TRACKINGID}\",\n \"{TRANSACTIONID}\",\n \"{INVOICE}\"\n );\n \n $customer = new Customer((int)$order->id_customer);\n \n $coupon_disc = (float)$order->total_discounts_tax_incl;\n $coupon_disc += $total_product_disc;\n \n $total_amt = number_format($order->total_paid_tax_incl, 2);\n $discount = number_format($coupon_disc, 2);\n $currencyInfo = new Currency((int)$order->id_currency);\n if ($currencyInfo != '') {\n $total_amt = $currencyInfo->iso_code.' '.$total_amt;\n $discount = $currencyInfo->iso_code.' '.$discount;\n }\n \n $replacedLegends = array(\n $customer->firstname,\n $customer->lastname,\n $customer->email,\n $address->phone_mobile,\n $shippingAddr,\n $order->id,\n $total_amt,\n $discount,\n $productid,\n $productname,\n $ship_number,\n $tran_id,\n $invoice\n );\n \n $NewReplacedTemp = str_replace($legends, $replacedLegends, $getTemplateRes[0]['temp_body']);\n return $NewReplacedTemp;\n }", "protected function insertAddress(&$page, $store = null)\r\n {\r\n $page->setFillColor(new Zend_Pdf_Color_GrayScale(0));\r\n $font = $this->_setFontRegular($page, 10);\r\n $page->setLineWidth(0);\r\n $this->y = $this->y ? $this->y : 815;\r\n $top = 815;\r\n\r\n $collection = Mage::getModel('marketplace/userprofile')->getCollection()\r\n ->addFieldToFilter('mageuserid',array('eq'=>Mage::getSingleton('customer/session')->getCustomerId()));\r\n foreach ($collection as $row) {\r\n $address=$row->getOthersInfo();\r\n }\r\n\r\n foreach (explode(\"\\n\", $address) as $value){\r\n if ($value !== '') {\r\n $value = preg_replace('/<br[^>]*>/i', \"\\n\", $value);\r\n foreach (Mage::helper('core/string')->str_split($value, 45, true, true) as $_value) {\r\n $page->drawText(trim(strip_tags($_value)),\r\n $this->getAlignRight($_value, 130, 440, $font, 10),\r\n $top,\r\n 'UTF-8');\r\n $top -= 10;\r\n }\r\n }\r\n }\r\n $this->y = ($this->y > $top) ? $top : $this->y;\r\n }" ]
[ "0.6982514", "0.65228075", "0.6460018", "0.6321133", "0.63001853", "0.62993824", "0.6196611", "0.6036511", "0.60358757", "0.60184723", "0.59829247", "0.5980058", "0.5934677", "0.58779925", "0.58539397", "0.5826276", "0.5822766", "0.58132094", "0.57802045", "0.5775925", "0.57503325", "0.5742169", "0.5729532", "0.57101613", "0.57087964", "0.56689435", "0.56178886", "0.56117314", "0.5597432", "0.5590663", "0.5586569", "0.55863845", "0.55810225", "0.5566647", "0.5562598", "0.5550047", "0.5543927", "0.5490899", "0.54749304", "0.5473186", "0.546612", "0.5465976", "0.544109", "0.543856", "0.54153246", "0.54013026", "0.53744596", "0.53645456", "0.5362957", "0.5357121", "0.5342595", "0.53408897", "0.53349787", "0.5316156", "0.5315641", "0.5313889", "0.5313337", "0.53024364", "0.53004265", "0.5298618", "0.52875245", "0.5284952", "0.52794254", "0.5262341", "0.524301", "0.5241229", "0.5237595", "0.52371705", "0.52370924", "0.5234191", "0.5231134", "0.5221796", "0.52212983", "0.52195174", "0.521842", "0.5217573", "0.52069074", "0.51992273", "0.5197248", "0.51946986", "0.51945245", "0.5192706", "0.51842964", "0.5178176", "0.5167354", "0.51615494", "0.5153355", "0.51512384", "0.51471657", "0.51471037", "0.51403946", "0.5139177", "0.51358604", "0.5132065", "0.51299447", "0.512895", "0.51261467", "0.5125586", "0.5124562", "0.5122742" ]
0.7136997
0
Get Postident Config Model
public function getConfig() { return Mage::getModel("postident/config"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function model()\n {\n return Config::class;\n }", "public function _getConfigModel()\n {\n return Mage::getModel(self::CONFIG);\n }", "private function getConfigModel()\n {\n return Mage::getSingleton('wallee_payment/system_config');\n }", "protected function getModelConfiguration()\n {\n return app('sleeping_owl')->getModel(get_class($this->getModel()));\n }", "protected function _getConfigModel()\n {\n if (!$this->hasConfigModel()) {\n $this->setConfigModel(Mage::getConfig());\n }\n\n return $this->getConfigModel();\n }", "public function model()\n {\n return config('litecms.portfolio.portfolio.model.model');\n }", "public function getModelConfiguration()\n\t{\n\t\treturn $this->configuration;\n\t}", "public function model()\n {\n return config('laraauto.automobile.accessory.model.model');\n }", "protected function _getModel() {\n $model = Configure::read('Postmark.Inbound.model');\n return $model ? ClassRegistry::init($model) : false;\n }", "public function getConfig(){\n return $this->config;\n }", "public function getConfig(){\n\t\treturn $this->_config;\n\t}", "protected function getPlateformeConfig()\r\n {\r\n return $this->config;\r\n }", "function getConfig()\n {\n return $this->config;\n }", "public function model()\n {\n return 'App\\Models\\Config';\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig() \n {\n return $this->config;\n }", "protected function loadConfig() : \\codename\\core\\config {\r\n return new \\codename\\core\\config\\json('config/model/' . $this->schema . '_' . $this->table . '.json', true, true);\r\n }", "public function config(): Config;", "public function getConfig()\n {\n return $this->get('config');\n }", "public function model()\n {\n return config('teams.team.model.model');\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig() {\r\n return $this->config;\r\n }", "public function config()\n\t{\n\t\treturn $this->config;\n\t}", "public function config()\n\t{\n\t\treturn $this->config;\n\t}", "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "public function getConfig() : Config\n {\n return $this->config;\n }", "public function config()\n {\n return $this->config;\n }", "protected function getConfig()\n\t{\n\t\treturn $this->oConfig;\n\t}", "public function get_config()\n\t{\n\t\treturn $this->cfg;\n\t}", "public function getConfig()\n {\n return $this['config'];\n }", "public function getConfig()\n {\n return $this->_config;\n }", "public function getConfig()\n {\n return $this->_config;\n }", "public static function getConf(){\n $conf = Configuration::first();\n return $conf;\n }", "public function getConfig() {\n return $this->_config;\n }", "public function loadConfig() {\n return (object)$this->config;\n }", "public function getConfig(): Config\n {\n return $this->config;\n }", "public function getModelsConfiguration()\n {\n $ret = NULL;\n if ($this->_configuredModels) {\n return ModelConfiguration::getFrontendConfigForModels($this->_configuredModels, $this->_applicationName);\n }\n \n return $ret;\n }", "public function getModel()\n {\n $post = Post::class;\n return $post;\n }", "public function ADPost_Get_Post_Config(){\n\t \n\t $result_key = parent::Initial_Result('config');\n\t $result = &$this->ModelResult[$result_key];\n\t \n\t try{\n\t \n\t\t// 查詢資料庫欄位設定\n\t\t$DB_OBJ = $this->DBLink->prepare(SQL_AdPost::ADMIN_POST_GET_POST_TABLE());\n\t\tif(!$DB_OBJ->execute()){\n\t\t throw new Exception('_SYSTEM_ERROR_DB_ACCESS_FAIL'); \n\t\t}\n\t\t\n\t\t$data_list = array();\n\t\t$data_list = $DB_OBJ->fetchAll(PDO::FETCH_ASSOC);\t\t\n\t $field_set = array();\n\t\tforeach($data_list as $data){\n\t\t $field_set[$data['Field']] = array('type'=>'','default'=>'');\n\t\t \n\t\t // 選項欄位設定成介面選項\n\t\t if(strstr($data['Type'],'enum')){\n\t\t\t$field_set[$data['Field']]['type'] = 'select';\n\t\t\tif(preg_match_all(\"/\\'(.*?)\\'/\",$data['Type'],$match)){\n\t\t\t $field_set[$data['Field']]['default'] = $match[1];\t\t\n\t\t\t}\n\t\t }\n\t\t}\n\t\t\n\t\t// 取得群組設定\n\t\t// 查詢資料庫欄位設定\n\t\t$DB_OBJ = $this->DBLink->prepare(parent::SQL_Permission_Filter(SQL_AdPost::ADMIN_POST_GET_POST_GROUPS()));\n\t\tif(!$DB_OBJ->execute()){\n\t\t throw new Exception('_SYSTEM_ERROR_DB_ACCESS_FAIL'); \n\t\t}\n\t\t\n\t\t$group_list = array();\n\t\twhile($tmp = $DB_OBJ->fetch(PDO::FETCH_ASSOC)){\n\t\t $group_list[$tmp['ug_code']] = $tmp['ug_name'];\n\t\t}\n\t\t\n\t\t$result['data']['field'] = $field_set;\n $result['data']['group'] = $group_list;\n \n\t\t$result['action'] = true;\n\t \n\t } catch (Exception $e) {\n $result['message'][] = $e->getMessage();\n }\n\t return $result;\n\t}", "public function model()\n {\n return config('movies.movies.movie.model');\n }", "public function getConfig(){\n\n $config = $this->propToConfig();\n return $config;\n\n }", "public function model()\n {\n return config('litepie.contact.contact.model');\n }", "public function getConfig() {}", "public function model()\n {\n return config('litecms.forum.category.model.model');\n }", "protected function _getModel() {\n\n\t\t$config = Configure::read('Leaflet.model');\n\n\t\tif (!is_array($config) && strpos($config, '.')) {\n\t\t\t$config = explode('.', $config);\n\t\t}\n\n\t\tif (is_array($config)) {\n\t\t\tlist($plugin, $model) = $config;\n\t\t} else {\n\t\t\t$model = $config;\n\t\t}\n\n\t\t$model = ClassRegistry::init((!empty($plugin) ? $plugin . '.' : '') . $model);\n\n\t\tif (!$model->hasMethod('_findPlots')) {\n\t\t\t$model->Behaviors->attach('Leaflet.Plottable');\n\t\t}\n\n\t\treturn $model;\n\t}", "public function get()\r\n {\r\n $this->ensureLoaded();\r\n return $this->config;\r\n }", "public function get_version_config(){\n return $this->where(\"id=1\")->find(); \n }", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig() : \\codename\\core\\config {\r\n return $this->config;\r\n }", "protected function &getConfig(){\n \n if( is_null($this->config) ){\n $this->config = new \\stdClass();\n }\n \n return $this->config;\n \n }", "function get_settings_config_data() {\n $config = $this->config;//get instance config\n\n //if config doesn't exist - create it\n if (!isset($config)) {\n $config = new stdClass();\n }\n\n //if data doesn't exist = make it an empty array\n if (!isset($config->data))\n $config->data = array();\n\n //return config\n return $config;\n }", "public function model()\n {\n return TipsSetting::class;\n// return Businesses::class;\n }", "public function getConfig() {\n if (is_null($this->getData(\"config\"))) {\n $this->setData(\"config\", Mage::getModel(\"cloudiq_callme/config\"));\n }\n\n return $this->getData(\"config\");\n }", "public static function getConfig()\n {\n return self::$config;\n }", "public function getConfiguration()\n {\n return $this->_config;\n }", "protected function config()\n {\n return $this->make('config');\n }", "public function getConfig()\n\t{\n\t\t$config = new \\stdClass();\n\t\t$config->siteurl = $this->_config->siteurl;\n\t\t$config->host = $this->_config->host;\n\t\t$config->port = $this->_config->port;\n\t\t$config->dbname = $this->_config->dbname;\n\t\t$config->username = $this->_config->username;\n\t\t$config->password = $this->_config->password;\n\t\t$config->path = $this->_config->path;\n\t\t$config->options = $this->_config->options;\n\t\t$config->affiliateId = $this->_config->affiliateId;\n\n\t\treturn $config;\n\t}", "public function getConfig() {\r\n\r\n\t}", "public function getConfig(): Configuration;", "function getConfig() {\r\n\t\tstatic $config ;\r\n\t\tif (!$config) {\r\n\t\t\t$db = & JFactory::getDBO();\r\n\t\t\t$config = new stdClass ;\r\n\t\t\t$sql = 'SELECT * FROM #__osmembership_configs';\r\n\t\t\t$db->setQuery($sql);\r\n\t\t\t$rows = $db->loadObjectList();\r\n\t\t\tfor ($i = 0 , $n = count($rows); $i < $n; $i++) {\r\n\t\t\t\t$row = $rows[$i];\r\n\t\t\t\t$key = $row->config_key;\r\n\t\t\t\t$value = stripslashes($row->config_value);\t\t\t\t\r\n\t\t\t\t$config->$key = $value;\t\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn $config;\r\n\t}", "public function GetConfigClass ();", "public function getConfig() {\n \t\n \t// Return our configuration\n \treturn $this->aConfig;\n }", "protected function getConfig()\n {\n\n return $this->app['config']['manticore'];\n }", "public function model(): string\n {\n return Post::class;\n }", "public static function getConfig()\n {\n return new Config(self::$config);\n }", "protected function _getDpgConfig()\n {\n $config = Mage::getSingleton('dpg/config');\n return $config->setStore($this->getStore());\n }", "protected function _get_configuration(){\n\n return new Payment_Configuration();\n\n }", "public function getConfig()\n {\n return $this->config ?: $this->setConfig()->getConfig();\n }", "public function model()\n {\n return Post::class;\n }", "public function model()\n {\n return Post::class;\n }", "public function config()\n {\n return $this->belongsToMany(Config::class);\n }", "public function get() {\n return $this->_configuration;\n }", "abstract public function getConfig();", "protected function _getConfig()\n {\n return $this->_paypalConfig;\n }", "public function model()\n {\n $this->fieldSearchable = config('litepie.news.news.search');\n return config('litepie.news.news.model');\n }", "public function getConfig()\n {\n return $this->traitGetConfig();\n }" ]
[ "0.7315183", "0.719311", "0.7160724", "0.6961395", "0.68676054", "0.66918975", "0.653293", "0.6473519", "0.64597386", "0.64424676", "0.6372694", "0.63283515", "0.63244635", "0.63166165", "0.6305188", "0.6295142", "0.6263295", "0.62404084", "0.6227747", "0.62243545", "0.62235564", "0.62235564", "0.62235564", "0.62235564", "0.62235564", "0.62235564", "0.62235564", "0.62235564", "0.62235564", "0.62235564", "0.62235564", "0.62235564", "0.62235564", "0.62235564", "0.62235564", "0.62024355", "0.61981696", "0.61981696", "0.6196162", "0.6196162", "0.6196162", "0.6196162", "0.61928654", "0.6188049", "0.6182844", "0.61625326", "0.6154196", "0.615416", "0.615416", "0.6154057", "0.61457086", "0.61239874", "0.6117854", "0.6115381", "0.608809", "0.60811895", "0.6076503", "0.60748005", "0.6073006", "0.60548455", "0.60546654", "0.60429823", "0.604159", "0.60210973", "0.6020801", "0.6020801", "0.6020801", "0.6020801", "0.6020801", "0.6020801", "0.6020801", "0.6020801", "0.60188675", "0.60124546", "0.60083145", "0.59918445", "0.5982752", "0.5972094", "0.59585226", "0.59545326", "0.59439456", "0.59391254", "0.5937788", "0.59368", "0.59297144", "0.591984", "0.59192413", "0.588695", "0.5871084", "0.58697784", "0.5859761", "0.5858732", "0.5853063", "0.5853063", "0.58402336", "0.5838241", "0.5832794", "0.58300465", "0.5828462", "0.58276206" ]
0.80496407
0
Gets the new flash keys array
protected function getNewFlashKeys(): array { return $this->get(self::NEW_FLASH_KEYS_KEY, []); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getStaleFlashKeys(): array\n {\n return $this->get(self::STALE_FLASH_KEYS_KEY, []);\n }", "protected function getPreloadKeys() {\n\t\t$keys = array(\n\t\t\t'echo-notification-timestamp',\n\t\t\t'echo-notification-timestamp-' . EchoAttributeManager::MESSAGE,\n\t\t\t'echo-notification-timestamp-' . EchoAttributeManager::ALERT,\n\t\t\t'echo-notification-count',\n\t\t\t'echo-notification-count-' . EchoAttributeManager::MESSAGE,\n\t\t\t'echo-notification-count-' . EchoAttributeManager::ALERT,\n\t\t);\n\n\t\treturn array_filter( array_merge(\n\t\t\tarray_map( array( $this, 'getMemcKey' ), $keys ),\n\t\t\tarray_map( array( $this, 'getGlobalMemcKey' ), $keys )\n\t\t) );\n\t}", "public function getKeys() {}", "public function getKeys(): array;", "static function getKeys();", "public static function keys(): array;", "protected function getKeysMap(): array\n {\n return [\n 'baz' => 'greet',\n ];\n }", "public function getKeys(){\n\t\treturn $this->keys;\n\t}", "public function keys(): array;", "public function keys(): array;", "public function keys(): array;", "public function keys() : array;", "public function keys() : array;", "public function keys();", "public function keys();", "public function keys();", "public function keys();", "public function keys();", "public function keys();", "public function getKeys(): array\n {\n return $this->keys;\n }", "public function getKeys();", "public function getKeys()\n {\n $private_key = $this->config->getAppValue($this->appName, \"privatekey\");\n $public_key = $this->config->getAppValue($this->appName, \"publickey\");\n\n return [$private_key, $public_key];\n }", "function flashcard_dbcleaner_add_keys() {\n global $DB;\n\n $flashcardmoduleid = $DB->get_field('modules', 'id', array('name' => 'flashcard'));\n\n $keys = array(\n array('flashcard', 'course', 'course', 'id', ''),\n array('flashcard', 'id', 'course_modules', 'instance', ' module = '.$flashcardmoduleid.' '),\n array('flashcard_card', 'flashcardid', 'flashcard', 'id', ''),\n array('flashcard_card', 'userid', 'user', 'id', ''),\n array('flashcard_deckdata', 'flashcardid', 'flashcard', 'id', ''),\n array('flashcard_userdeck_state', 'flashcardid', 'flashcard', 'id', ''),\n array('flashcard_userdeck_state', 'userid', 'user', 'id', ''),\n );\n\n return $keys;\n}", "public function getKeys()\n {\n return $this->keys;\n }", "public function getKeys()\n {\n return $this->keys;\n }", "public function getKeys()\n {\n return $this->keys;\n }", "public function getKeys()\n {\n return $this->keys;\n }", "public function getKeys()\n {\n return $this->keys;\n }", "function KeyNameList ( ) { return $this->_KeyNameList; }", "public function keys()\n {\n return static::from($this->keyR);\n }", "public static function keys()\n {\n return static::$keys;\n }", "function GetRecordKeys() {\n\t\tglobal $EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$arKeys = array();\n\t\t$arKey = array();\n\t\tif (isset($_POST[\"key_m\"])) {\n\t\t\t$arKeys = ew_StripSlashes($_POST[\"key_m\"]);\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (isset($_GET[\"key_m\"])) {\n\t\t\t$arKeys = ew_StripSlashes($_GET[\"key_m\"]);\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (!empty($_GET) || !empty($_POST)) {\n\t\t\t$isPost = ew_IsHttpPost();\n\t\t\tif ($isPost && isset($_POST[\"IDXDAFTAR\"]))\n\t\t\t\t$arKeys[] = ew_StripSlashes($_POST[\"IDXDAFTAR\"]);\n\t\t\telseif (isset($_GET[\"IDXDAFTAR\"]))\n\t\t\t\t$arKeys[] = ew_StripSlashes($_GET[\"IDXDAFTAR\"]);\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = array();\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "function GetRecordKeys() {\n\t\tglobal $EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$arKeys = array();\n\t\t$arKey = array();\n\t\tif (isset($_POST[\"key_m\"])) {\n\t\t\t$arKeys = ew_StripSlashes($_POST[\"key_m\"]);\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (isset($_GET[\"key_m\"])) {\n\t\t\t$arKeys = ew_StripSlashes($_GET[\"key_m\"]);\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (!empty($_GET) || !empty($_POST)) {\n\t\t\t$isPost = ew_IsHttpPost();\n\t\t\tif ($isPost && isset($_POST[\"gjd_id\"]))\n\t\t\t\t$arKeys[] = ew_StripSlashes($_POST[\"gjd_id\"]);\n\t\t\telseif (isset($_GET[\"gjd_id\"]))\n\t\t\t\t$arKeys[] = ew_StripSlashes($_GET[\"gjd_id\"]);\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = array();\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "public function keys(): array\n {\n return array_keys($this->storage);\n }", "abstract public function getKeys();", "public function getKeys()\n {\n if (!file_exists($this->keysPath())) {\n return [];\n }\n\n return json_decode(file_get_contents($this->keysPath()), true) ?? [];\n }", "public function getKeys() {\n\t\treturn $this->getAllKeys();\n\t}", "public function createKeyArray(){\n\t$keyArray = array();\n\tif (isset($this->id)) $keyArray[\"id\"] = $this->id;\n\tif (isset($this->codice_categoria)) $keyArray[\"codice_categoria\"] = $this->codice_categoria;\n\tif (isset($this->codice)) $keyArray[\"codice\"] = $this->codice;\n\tif (isset($this->descrizione)) $keyArray[\"descrizione\"] = $this->descrizione;\n\treturn $keyArray;\n}", "public function getKeys(): array\n {\n return array_keys($this->files);\n }", "public function loadKeys() {\n\t\treturn end($this->getKeys());\n\t}", "public function getArrayKeyCreate()\n {\n return array_keys($this->getShowColumnCreateModal());\n }", "public function getKeys()\n {\n $keys = array_keys($this->cache) + array_keys($this->factories);\n return array_unique($keys);\n }", "public function getRecordKeys()\n\t{\n\t\t$arKeys = [];\n\t\t$arKey = [];\n\t\tif (Param(\"key_m\") !== NULL) {\n\t\t\t$arKeys = Param(\"key_m\");\n\t\t\t$cnt = count($arKeys);\n\t\t} else {\n\t\t\tif (Param(\"id\") !== NULL)\n\t\t\t\t$arKeys[] = Param(\"id\");\n\t\t\telseif (IsApi() && Key(0) !== NULL)\n\t\t\t\t$arKeys[] = Key(0);\n\t\t\telseif (IsApi() && Route(2) !== NULL)\n\t\t\t\t$arKeys[] = Route(2);\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = [];\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "public function getKeys() {\n\t\treturn $this->config->getKeys();\n\t}", "function keys() {\n return array(\n\t 'MODULE_PAYMENT_PAYMENTECH_STATUS', \n\t 'MODULE_PAYMENT_PAYMENTECH_TESTMODE', \n\t 'MODULE_PAYMENT_PAYMENTECH_MERCHANT_ID_TEST', \n\t 'MODULE_PAYMENT_PAYMENTECH_MERCHANT_ID_USD', \n\t 'MODULE_PAYMENT_PAYMENTECH_MERCHANT_ID_CAD', \n\t 'MODULE_PAYMENT_PAYMENTECH_BIN', \n\t 'MODULE_PAYMENT_PAYMENTECH_TERMINAL_ID', \n\t 'MODULE_PAYMENT_PAYMENTECH_AUTHORIZATION_TYPE', \n\t 'MODULE_PAYMENT_PAYMENTECH_USE_CVV', \n\t 'MODULE_PAYMENT_PAYMENTECH_SORT_ORDER', \n\t 'MODULE_PAYMENT_PAYMENTECH_CURRENCIES');\n }", "private function getAllCacheKeys(){\n $keys = array();\n foreach ($this->storages as $name => $storage){\n $keys[] = $this->getCacheKey($name);\n }\n return $keys;\n }", "public function getKeys()\n {\n $this->prepare();\n\n return $this->_keys;\n }", "public function getKeys() {\n if (!isset($this->_keys)) {\n $this->_keys = array('ADDONS_CATALOG_SUPPORT_TICKETS_STATUS');\n }\n\n return $this->_keys;\n }", "function GetRecordKeys() {\n\t\tglobal $EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$arKeys = array();\n\t\t$arKey = array();\n\t\tif (isset($_POST[\"key_m\"])) {\n\t\t\t$arKeys = $_POST[\"key_m\"];\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (isset($_GET[\"key_m\"])) {\n\t\t\t$arKeys = $_GET[\"key_m\"];\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (!empty($_GET) || !empty($_POST)) {\n\t\t\t$isPost = ew_IsPost();\n\t\t\tif ($isPost && isset($_POST[\"rid\"]))\n\t\t\t\t$arKeys[] = $_POST[\"rid\"];\n\t\t\telseif (isset($_GET[\"rid\"]))\n\t\t\t\t$arKeys[] = $_GET[\"rid\"];\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = array();\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "public function getKeys(): array\n {\n $keys = [];\n $arr = $this->items;\n foreach ($arr as $key=>$value) {\n $keys[] = $key;\n }\n return $keys;\n }", "public function getKeys() {\n\t\treturn file('/home4/statelib/keys.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);\n\t}", "public function getAttachEvent():array{\r\n return array_keys($this->storage);\r\n }", "public function getExtensionKeys() {}", "public function validKeys()\n\t{\n\t\treturn array_merge($this->keysOnlyUsedDuringCreation(), $this->statKeys());\n\t}", "public function keys()\n {\n }", "public function getKeys()\n {\n return $this->getNames();\n }", "public function getNewEntriesKey(): string;", "public function keys()\n\t{\n\t\treturn $this->toBase()->keys();\n\t}", "public function getMetaForignKeys(){\n $stmt = $this->query(self::META_FKEYS_SQL);\n if ($stmt === false){\n return array();\n }\n\n $keys = array();\n foreach ($stmt as $row){\n $keys[$row[0] . '.' . $row[1]] = $row[2] . '.' . $row[3];\n }\n\n return $keys;\n }", "protected function getKeys(): array\n {\n return collect([\n 'site', 'title', 'image', 'description', 'url',\n 'twitter.site', 'twitter.title', 'twitter.image', 'twitter.description',\n ])\n ->merge(array_keys($this->defaults))\n ->merge(array_keys($this->values))\n ->unique()\n ->filter(function (string $key) {\n if (count($parts = explode('.', $key)) > 1) {\n if (isset($this->extensions[$parts[0]])) {\n // Is the extension allowed?\n return $this->extensions[$parts[0]];\n }\n\n return false;\n }\n\n return true;\n })\n ->toArray();\n }", "public function statKeys()\n {\n \treturn $this->statKeys;\n }", "public function getAllKey();", "public function keys() : array\n {\n return array_keys($this->entries);\n }", "protected function getNonVersionArrayKeys()\n {\n return array('description', 'alternative');\n }", "public function toArray() {\n return $this->keysMap->toArray();\n }", "public function getRecordKeys()\n\t{\n\t\t$arKeys = [];\n\t\t$arKey = [];\n\t\tif (Param(\"key_m\") !== NULL) {\n\t\t\t$arKeys = Param(\"key_m\");\n\t\t\t$cnt = count($arKeys);\n\t\t} else {\n\t\t\tif (Param(\"IncomeCode\") !== NULL)\n\t\t\t\t$arKeys[] = Param(\"IncomeCode\");\n\t\t\telseif (IsApi() && Key(0) !== NULL)\n\t\t\t\t$arKeys[] = Key(0);\n\t\t\telseif (IsApi() && Route(2) !== NULL)\n\t\t\t\t$arKeys[] = Route(2);\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = [];\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "function keys();", "final protected function getKeysProperty(): ArrObject\n {\n return arr(array_keys($this->items));\n }", "private function getEncryptionKeys(){\n\t\treturn $this->cryptokeys;\n\t\t/*\n\t\treturn array('REGISTRATION'=> array(\n\t\t\t\t\t\t\t\t\t\t'h'=>array(\n\t\t\t\t\t\t\t\t\t\t\t'hash_size'=> \t64,\n\t\t\t\t\t\t\t\t\t\t\t'hash_key'=>\t'mysecretkey' ),\n\t\t\t\t\t\t\t\t\t\t'c'=>array(\t\n\t\t\t\t\t\t\t\t\t\t\t'nonce'=>\t\t'f5de5a2935a8927268be7a358dbfe73334a7dc38d57f23df',\n\t\t\t\t\t\t\t\t\t\t\t'secretkey'=>\t'8b49a72bb1addff71e630692e2a0c6a0f0cfa3657ff527642700b247364c19e8',\n\t\t\t\t\t\t\t\t\t\t\t'blocksize'=>\t16 )\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t 'EMAIL'=> \tarray(\n\t\t\t\t\t\t\t\t\t\t'h'=>array(\n\t\t\t\t\t\t\t\t\t\t\t'hash_size'=> \t32,\n\t\t\t\t\t\t\t\t\t\t\t'hash_key'=>\t'mysecretkey' ),\n\t\t\t\t\t\t\t\t\t\t'c'=>array(\t\n\t\t\t\t\t\t\t\t\t\t\t'nonce'=>\t\t'f5de5a2935a8927268be7a358dbfe73334a7dc38d57f23df',\n\t\t\t\t\t\t\t\t\t\t\t'secretkey'=>\t'8b49a72bb1addff71e630692e2a0c6a0f0cfa3657ff527642700b247364c19e8',\n\t\t\t\t\t\t\t\t\t\t\t'blocksize'=>\t16 )\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t 'PROFILE'=> array(\n\t\t\t\t\t\t\t\t\t\t'h'=>array(\n\t\t\t\t\t\t\t\t\t\t\t'hash_size'=> \t64,\n\t\t\t\t\t\t\t\t\t\t\t'hash_key'=>\t'mysecretkey' ),\n\t\t\t\t\t\t\t\t\t\t'c'=>array(\t\n\t\t\t\t\t\t\t\t\t\t\t'nonce'=>\t\t'f5de5a2935a8927268be7a358dbfe73334a7dc38d57f23df',\n\t\t\t\t\t\t\t\t\t\t\t'secretkey'=>\t'8b49a72bb1addff71e630692e2a0c6a0f0cfa3657ff527642700b247364c19e8',\n\t\t\t\t\t\t\t\t\t\t\t'blocksize'=>\t16 )\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t*/\n\t\t\n\t\t\t\t\t \t\t\t\n\t}", "public function getNames()\n {\n if($this->isKeycacheInvalid())\n {\n $this->regenerateKeyCache();\n }\n if(is_array($this->__keycacheindex))\n {\n return $this->__keycacheindex;\n }\n return array();\n }", "public function getKeys()\n {\n $keys = array();\n\n foreach ($this->items as $item) {\n $keys[] = $item['key'];\n }\n\n return $keys;\n }", "public function getCleanKeys()\n {\n return $this->cleanKeys;\n }", "public function explicitKeys(): array\n {\n return $this->getAttribute('explicit_keys') ?: [];\n }", "public function keys() {\n\t\treturn array_keys($this->store);\n\t}", "protected function verificationKeys() : array {\n\n\t\t\t$ret = $this->verificationKeys;\n\n\t\t\tif ($this->usesSignatures())\n\t\t\t\t$ret[$this->signKeyName()] = $this->signKey;\n\n\t\t\treturn $ret;\n\t\t}", "public function keys(): array {\n return array_keys($this->items);\n }", "public function keys() : array {\n return array_keys($this->getArrayCopy());\n }", "public function getKeys() {\n\t\treturn array_keys( $this->array );\n\t}", "public function keys() {\n return array_keys($this->_hash);\n }", "public function getKeys() {\n $keys = array();\n foreach($this->mapping as $key => $value) {\n array_push($keys, $value);\n }\n return $keys;\n }", "public static function getKeys(): array\n {\n return array_keys(self::getConstants());\n }", "public function getCharKeys()\n {\n return array_fill_keys(array_values($this->bidiordarr), true);\n }", "public function getMyKeys() {\n\t\t$out = $this->runGPG(\"-K --with-colons\");\n\t\t$keys = explode(\"\\n\", $out['stdout']);\n\t\tarray_pop($keys);\n\n\t\t$mykeys = array();\n\t\tforeach ($keys as $k) {\n\t\t\t$line = explode(\":\", $k);\n\t\t\tif ($line[0] == \"sec\") { // This is a key!\n\t\t\t\t$mykeys[] = $line[4];\n\t\t\t}\n\t\t}\n\t\treturn $mykeys;\n\t}", "public function getEmptyKeyArray(){\n\t$emptyKeyArray = array();\n\t$emptyKeyArray[\"id\"] = \"\";\n\t$emptyKeyArray[\"codice_categoria\"] = \"\";\n\t$emptyKeyArray[\"codice\"] = \"\";\n\t$emptyKeyArray[\"descrizione\"] = \"\";\n\treturn $emptyKeyArray;\n}", "public function getKeys() {\n return array_keys($this->data);\n }", "public function keys()\n {\n return array('id');\n }", "public function keys()\n {\n return array('id');\n }", "public function keys(): self;", "public function __sleep()\n {\n foreach ($this->keys as $key) {\n unset($key->x5c);\n unset($key->x5t);\n unset($key->{'x5t#S256'});\n }\n return ['keys'];\n }", "public function getArrayKeyEdit()\n {\n return array_keys($this->getShowColumn());\n }", "public function _getUpdateKeys() {\r\n return array(Model_Fields_LeagueDB::DB_COLUMN_ID => $this->{Model_Fields_LeagueDB::DB_COLUMN_ID});\r\n }", "function getAllKeys() {\n return $this->memcached->getAllKeys();\n }", "public function getFlashData();", "public function _getUpdateKeys() {\n return array(Model_Fields_FieldDB::DB_COLUMN_ID => $this->{Model_Fields_FieldDB::DB_COLUMN_ID});\n }", "public function retrieveKeys()\n {\n return $this->start()->uri(\"/api/key\")\n ->get()\n ->go();\n }", "public function to_array() /*array*/\n {\n return $_SESSION[self::KEY];\n }", "public function arrayKeysValues()\n {\n return array(\n\t\t\t\"FirstName\" => $this->firstName,\n\t\t\t\"LastName\" => $this->lastName,\n\t\t\t\"Gender\" => $this->gender,\n\t\t\t\"YearOfBirth\" => $this->yearOfBirth,\n \"IdGenre\" => $this->genre,\n \"IsInGroup\" => $this->group\n\t\t);\n }", "final public static function getKeys(): array\n {\n return array_keys(static::getValues());\n }", "public function getKeys()\n {\n $catalog = $this->fetch($this->catalog_key);\n $catalog = \\is_array($catalog) ? $catalog : Array();\n \\ksort($catalog);\n return $catalog;\n }", "public function getKeys()\n {\n\t\tforeach ($this->_source as $key => $value)\n\t\t{\n\t\t\t$dummy[] = $key;\n\t\t}\n\t\treturn $dummy;\n }" ]
[ "0.7978015", "0.7138449", "0.67302215", "0.6721577", "0.6705986", "0.66578674", "0.66106", "0.6608496", "0.6587365", "0.6587365", "0.6587365", "0.65845835", "0.65845835", "0.65813076", "0.65813076", "0.65813076", "0.65813076", "0.65813076", "0.65813076", "0.65393656", "0.6509184", "0.6467519", "0.64049655", "0.63913095", "0.63913095", "0.63913095", "0.63913095", "0.63913095", "0.63828087", "0.63800627", "0.63750464", "0.6364195", "0.63608515", "0.63564336", "0.63528186", "0.6295488", "0.62876725", "0.62410975", "0.6217447", "0.6213995", "0.6201148", "0.6188552", "0.6186369", "0.61363167", "0.6115311", "0.61147374", "0.6108686", "0.60986024", "0.60980016", "0.60856766", "0.608042", "0.6064452", "0.60423565", "0.6041905", "0.6022384", "0.6020723", "0.6004404", "0.59976137", "0.598054", "0.59764457", "0.59699583", "0.5969307", "0.59664863", "0.59659666", "0.5964492", "0.59628624", "0.59573054", "0.5950664", "0.59415853", "0.5941321", "0.593388", "0.5924657", "0.5910849", "0.589287", "0.58783764", "0.58759123", "0.5871236", "0.5862966", "0.58542633", "0.5844474", "0.58439034", "0.5843518", "0.5833874", "0.5831866", "0.5831186", "0.5828575", "0.5828575", "0.5826845", "0.5825395", "0.5822522", "0.5816331", "0.5815395", "0.5804158", "0.5796663", "0.57801265", "0.5777836", "0.5771379", "0.5770862", "0.5767609", "0.576702" ]
0.8839694
0
Gets the stale flash keys array
protected function getStaleFlashKeys(): array { return $this->get(self::STALE_FLASH_KEYS_KEY, []); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getNewFlashKeys(): array\n {\n return $this->get(self::NEW_FLASH_KEYS_KEY, []);\n }", "protected function getPreloadKeys() {\n\t\t$keys = array(\n\t\t\t'echo-notification-timestamp',\n\t\t\t'echo-notification-timestamp-' . EchoAttributeManager::MESSAGE,\n\t\t\t'echo-notification-timestamp-' . EchoAttributeManager::ALERT,\n\t\t\t'echo-notification-count',\n\t\t\t'echo-notification-count-' . EchoAttributeManager::MESSAGE,\n\t\t\t'echo-notification-count-' . EchoAttributeManager::ALERT,\n\t\t);\n\n\t\treturn array_filter( array_merge(\n\t\t\tarray_map( array( $this, 'getMemcKey' ), $keys ),\n\t\t\tarray_map( array( $this, 'getGlobalMemcKey' ), $keys )\n\t\t) );\n\t}", "public function __sleep()\n {\n foreach ($this->keys as $key) {\n unset($key->x5c);\n unset($key->x5t);\n unset($key->{'x5t#S256'});\n }\n return ['keys'];\n }", "public function getKeys()\n {\n $keys = array_keys($this->cache) + array_keys($this->factories);\n return array_unique($keys);\n }", "public function getKeys() {}", "private function getAllCacheKeys(){\n $keys = array();\n foreach ($this->storages as $name => $storage){\n $keys[] = $this->getCacheKey($name);\n }\n return $keys;\n }", "public function keys(): array\n {\n return array_keys($this->storage);\n }", "public function getKeys(){\n\t\treturn $this->keys;\n\t}", "public static function keys()\n {\n return static::$keys;\n }", "public function getKeys(): array\n {\n return $this->keys;\n }", "public function getKeys(): array;", "public function statKeys()\n {\n \treturn $this->statKeys;\n }", "public function validKeys()\n\t{\n\t\treturn array_merge($this->keysOnlyUsedDuringCreation(), $this->statKeys());\n\t}", "public function getAttachEvent():array{\r\n return array_keys($this->storage);\r\n }", "public static function keys(): array;", "public function loadKeys() {\n\t\treturn end($this->getKeys());\n\t}", "public function getFlashNotifications()\n {\n $notif = Session::get('flash_notification');\n Session::forget('flash_notification');\n\n return $notif;\n }", "function &keys(){\n\t\tif ( isset($this->_cache[__FUNCTION__]) ) return $this->_cache[__FUNCTION__];\n\t\t$tables =& $this->tables();\n\t\t$out = array();\n\t\tforeach ( array_keys($tables) as $tablename){\n\t\t\t$keys =& $tables[$tablename]->keys();\n\t\t\tforeach ( array_keys($keys) as $fieldname){\n\t\t\t\t$out[$fieldname] =& $keys[$fieldname];\n\t\t\t}\n\t\t}\n\t\t$this->_cache[__FUNCTION__] =& $out;\n\t\treturn $out;\n\t\t\n\t}", "public function pull_flashes()\n\t{\n\t\t$w = $this->session->delete ('__flash_warning');\n\t\t$m = $this->session->delete ('__flash_message');\n\t\t$n = $this->session->delete ('__flash_notice');\n\n\t\treturn array (\n\t\t\t'warning'\t=> coalesce ($w, array()),\n\t\t\t'message'\t=> coalesce ($m, array()),\n\t\t\t'notice'\t=> coalesce ($n, array()),\n\t\t);\n\t}", "public function keys(): array;", "public function keys(): array;", "public function keys(): array;", "function keys() {\n\t\treturn array_keys($this->_cache);\n\t}", "public function getKeys()\n {\n return $this->keys;\n }", "public function getKeys()\n {\n return $this->keys;\n }", "public function getKeys()\n {\n return $this->keys;\n }", "public function getKeys()\n {\n return $this->keys;\n }", "public function getKeys()\n {\n return $this->keys;\n }", "public function getNames()\n {\n if($this->isKeycacheInvalid())\n {\n $this->regenerateKeyCache();\n }\n if(is_array($this->__keycacheindex))\n {\n return $this->__keycacheindex;\n }\n return array();\n }", "public function __sleep()\n {\n $keys = get_object_vars($this);\n unset($keys['_authorization']);\n\n return array_keys($keys);\n }", "public function getKeys()\n {\n if (!file_exists($this->keysPath())) {\n return [];\n }\n\n return json_decode(file_get_contents($this->keysPath()), true) ?? [];\n }", "static function getKeys();", "public function getDirty()\n {\n return array_keys($this->_dirty);\n }", "public function getKeys();", "public function getKeys(): array\n {\n return array_keys($this->files);\n }", "protected function getKeysMap(): array\n {\n return [\n 'baz' => 'greet',\n ];\n }", "public function getKeys() {\n\t\treturn $this->getAllKeys();\n\t}", "public function getKeys() {\n if (!isset($this->_keys)) {\n $this->_keys = array('ADDONS_CATALOG_SUPPORT_TICKETS_STATUS');\n }\n\n return $this->_keys;\n }", "public function keys() : array;", "public function keys() : array;", "public function getFlashes (): array {\n $session = $this->sessionHandler->get();\n $bag = $session[self::BAG_ARRAY_INDEX];\n $session[self::BAG_ARRAY_INDEX] = [];\n $this->sessionHandler->set($session);\n return $bag;\n }", "public function __sleep() {\n $ret = get_object_vars($this);\n unset($ret['server_object'], $ret['datasource'], $ret['processors'], $ret['added_properties'], $ret['fulltext_fields']);\n return array_keys($ret);\n }", "public function getKeys()\n {\n $this->prepare();\n\n return $this->_keys;\n }", "function _flashdata_sweep()\n\t{\n\t\tforeach ($this->userdata as $key => $value)\n\t\t{\n\t\t\tif (strpos($key, ':old:'))\n\t\t\t{\n\t\t\t\tunset($this->userdata[$key]);\n\t\t\t}\n\t\t}\n\t\n\t}", "public function getKeys()\n {\n $private_key = $this->config->getAppValue($this->appName, \"privatekey\");\n $public_key = $this->config->getAppValue($this->appName, \"publickey\");\n\n return [$private_key, $public_key];\n }", "public function getCleanKeys()\n {\n return $this->cleanKeys;\n }", "function getAllKeys() {\n return $this->memcached->getAllKeys();\n }", "public function explicitKeys(): array\n {\n return $this->getAttribute('explicit_keys') ?: [];\n }", "public function keys() {\n return array_keys($this->_hash);\n }", "public function keys()\n {\n return static::from($this->keyR);\n }", "public function __sleep()\n\t{\n\t\t$a = (array)$this;\n\t\t$a = array_keys($a);\n\t\t$exprops = array();\n\t\t$this->_getZappableSleepProps($exprops);\n\t\treturn array_diff($a, $exprops);\n\t}", "private function getOldAttributes()\n {\n return $this->sessionBag->get(self::PARAM_STORAGE_KEY);\n }", "public function keys() {\n\t\treturn array_keys($this->store);\n\t}", "public function keysOnlyUsedDuringCreation()\n {\n \treturn $this->keysOnlyUsedDuringCreation;\n }", "public function getKeys(): array\n {\n $keys = [];\n $arr = $this->items;\n foreach ($arr as $key=>$value) {\n $keys[] = $key;\n }\n return $keys;\n }", "abstract public function getKeys();", "public function getKeys() {\n\t\treturn $this->config->getKeys();\n\t}", "public function getKeys() {\n\t\treturn file('/home4/statelib/keys.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);\n\t}", "final public static function getKeys(): array\n {\n return array_keys(static::getValues());\n }", "function _flashdata_sweep()\n {\n $userdata = $this->all_userdata();\n foreach ($userdata as $key => $value)\n {\n if (strpos($key, ':old:'))\n {\n $this->unset_userdata($key);\n }\n }\n\n }", "function getKeys()\n{\n global $keys_file;\n $fp = fopen($keys_file, \"r\");\n $keys = null;\n if (flock($fp, LOCK_SH)) {\n $keys = fread($fp, filesize($keys_file));\n flock($fp, LOCK_UN);\n }\n fclose($fp);\n return $keys;\n}", "protected function getKeys(): array\n {\n return collect([\n 'site', 'title', 'image', 'description', 'url',\n 'twitter.site', 'twitter.title', 'twitter.image', 'twitter.description',\n ])\n ->merge(array_keys($this->defaults))\n ->merge(array_keys($this->values))\n ->unique()\n ->filter(function (string $key) {\n if (count($parts = explode('.', $key)) > 1) {\n if (isset($this->extensions[$parts[0]])) {\n // Is the extension allowed?\n return $this->extensions[$parts[0]];\n }\n\n return false;\n }\n\n return true;\n })\n ->toArray();\n }", "public function keys() : array\n {\n return array_keys($this->entries);\n }", "function __sleep()\n {\n if (!$this->_serializeSessionCookies) {\n foreach ($this->_cookies as $hash => $cookie) {\n if (empty($cookie['expires'])) {\n unset($this->_cookies[$hash]);\n }\n }\n }\n return array('_cookies', '_serializeSessionCookies');\n }", "protected function getFlashedNotificationsFromSession()\n {\n return Session::get($this->sessionKey, []);\n }", "public function getKeys() {\n\t\treturn array_keys( $this->array );\n\t}", "public function get(): array\n {\n return $this->_exits;\n }", "public function keys();", "public function keys();", "public function keys();", "public function keys();", "public function keys();", "public function keys();", "public function getKeys()\n {\n if (array_key_exists(\"keys\", $this->_propDict)) {\n return $this->_propDict[\"keys\"];\n } else {\n return null;\n }\n }", "private function _flashdata_sweep() {\n\t\tforeach ($_SESSION as $name => $value) {\n\t\t\t$parts = explode(':old:', $name);\n\t\t\tif (is_array($parts) && count($parts) == 2 && $parts[0] == $this->flash_key) {\n\t\t\t\t$this->unset_userdata($name);\n\t\t\t}\n\t\t}\n\t}", "final protected function getKeysProperty(): ArrObject\n {\n return arr(array_keys($this->items));\n }", "public function getLastSaved(){\n return [];\n }", "public function unhandledMagicGetKeysProvider()\n {\n $keys = [];\n $keys[] = [ 'Unhandled' ];\n\n return $keys;\n }", "public function defaultStatKeys()\n {\n \treturn $this->defaultKeys;\n }", "public function __sleep()\n {\n // Use get_objects_vars() instead of\n // a much more expensive Reflection:\n $properties = get_object_vars($this);\n unset($properties['objectContainer']);\n return array_keys($properties);\n }", "public function _getUpdateKeys() {\r\n return array(Model_Fields_LeagueDB::DB_COLUMN_ID => $this->{Model_Fields_LeagueDB::DB_COLUMN_ID});\r\n }", "public function getOldAttributes()\n {\n return $this->_oldAttributes === null ? [] : $this->_oldAttributes;\n }", "public function keys() : array {\n return array_keys($this->getArrayCopy());\n }", "public function getDirtyArray()\n {\n $result = [];\n\n foreach ($this->getDirty() as $key) {\n if (strpos($key, '.')) {\n $path = explode('.', $key);\n } else {\n $path = [$key];\n }\n\n $result[$path[0]] = $this->_properties[$path[0]];\n }\n\n return $result;\n }", "public function __sleep()\n {\n self::__destruct();\n\n return array_keys(get_object_vars($this));\n }", "public function __sleep()\n\t{\n\t\t$serialize_array = array('_data','_lang_data');\n\t\treturn $serialize_array;\n\t}", "public static function getKeys(): array\n {\n return array_keys(self::getConstants());\n }", "public function __sleep()\n {\n $this->clearAllReferences();\n\n return array_keys(get_object_vars($this));\n }", "public function __sleep()\n {\n $this->clearAllReferences();\n\n return array_keys(get_object_vars($this));\n }", "public function getRecordKeys()\n\t{\n\t\t$arKeys = [];\n\t\t$arKey = [];\n\t\tif (Param(\"key_m\") !== NULL) {\n\t\t\t$arKeys = Param(\"key_m\");\n\t\t\t$cnt = count($arKeys);\n\t\t} else {\n\t\t\tif (Param(\"id\") !== NULL)\n\t\t\t\t$arKeys[] = Param(\"id\");\n\t\t\telseif (IsApi() && Key(0) !== NULL)\n\t\t\t\t$arKeys[] = Key(0);\n\t\t\telseif (IsApi() && Route(2) !== NULL)\n\t\t\t\t$arKeys[] = Route(2);\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = [];\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "public function keys(): array {\n return array_keys($this->items);\n }", "function GetRecordKeys() {\n\t\tglobal $EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$arKeys = array();\n\t\t$arKey = array();\n\t\tif (isset($_POST[\"key_m\"])) {\n\t\t\t$arKeys = ew_StripSlashes($_POST[\"key_m\"]);\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (isset($_GET[\"key_m\"])) {\n\t\t\t$arKeys = ew_StripSlashes($_GET[\"key_m\"]);\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (!empty($_GET) || !empty($_POST)) {\n\t\t\t$isPost = ew_IsHttpPost();\n\t\t\tif ($isPost && isset($_POST[\"IDXDAFTAR\"]))\n\t\t\t\t$arKeys[] = ew_StripSlashes($_POST[\"IDXDAFTAR\"]);\n\t\t\telseif (isset($_GET[\"IDXDAFTAR\"]))\n\t\t\t\t$arKeys[] = ew_StripSlashes($_GET[\"IDXDAFTAR\"]);\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = array();\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "function GetRecordKeys() {\n\t\tglobal $EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$arKeys = array();\n\t\t$arKey = array();\n\t\tif (isset($_POST[\"key_m\"])) {\n\t\t\t$arKeys = ew_StripSlashes($_POST[\"key_m\"]);\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (isset($_GET[\"key_m\"])) {\n\t\t\t$arKeys = ew_StripSlashes($_GET[\"key_m\"]);\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (!empty($_GET) || !empty($_POST)) {\n\t\t\t$isPost = ew_IsHttpPost();\n\t\t\tif ($isPost && isset($_POST[\"gjd_id\"]))\n\t\t\t\t$arKeys[] = ew_StripSlashes($_POST[\"gjd_id\"]);\n\t\t\telseif (isset($_GET[\"gjd_id\"]))\n\t\t\t\t$arKeys[] = ew_StripSlashes($_GET[\"gjd_id\"]);\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = array();\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "public function getKeys()\n {\n\t\tforeach ($this->_source as $key => $value)\n\t\t{\n\t\t\t$dummy[] = $key;\n\t\t}\n\t\treturn $dummy;\n }", "public function getKeys() {\n return array_keys($this->data);\n }", "function KeyNameList ( ) { return $this->_KeyNameList; }", "private function getFlashBag()\n {\n return $this->getSession()->getFlashBag();\n }", "function sequenceKey()\n {\n return array(false, false, false);\n }", "public static function getMessage(){\n $flashMessages = array();\n if(isset($_SESSION['flashMessages'])){\n $flashMessages = $_SESSION['flashMessages'];\n unset($_SESSION['flashMessages']);\n }\n return $flashMessages;\n }", "public function getRecentPasswords(): array\n {\n return (array) $this->_getEntity()->getRecentPasswords();\n }" ]
[ "0.84772134", "0.71192783", "0.67744887", "0.6449073", "0.6274906", "0.6257662", "0.62471503", "0.6222829", "0.6222128", "0.6212292", "0.62106645", "0.6185599", "0.6184555", "0.61776835", "0.6164328", "0.61579704", "0.6149772", "0.6080845", "0.6075199", "0.606832", "0.606832", "0.606832", "0.60617054", "0.60584116", "0.60584116", "0.60584116", "0.60584116", "0.60584116", "0.605105", "0.6035439", "0.6000793", "0.59760976", "0.5971834", "0.5950512", "0.5942733", "0.59271383", "0.59259117", "0.5918201", "0.59089655", "0.59089655", "0.5891909", "0.5880872", "0.5870914", "0.58609384", "0.5849935", "0.5832204", "0.5826718", "0.58137494", "0.5809224", "0.5801008", "0.57911706", "0.5778792", "0.5766836", "0.57623374", "0.573558", "0.5723173", "0.5719957", "0.57136816", "0.5698426", "0.56887776", "0.5684226", "0.56754667", "0.5669131", "0.56669337", "0.5645079", "0.5643853", "0.5638914", "0.56377935", "0.56377935", "0.56377935", "0.56377935", "0.56377935", "0.56377935", "0.563562", "0.56330115", "0.56246704", "0.5621578", "0.5620264", "0.56104064", "0.5605501", "0.56006026", "0.55980724", "0.5587193", "0.5585363", "0.5585255", "0.5584951", "0.55826294", "0.55797666", "0.55797666", "0.55698663", "0.5569612", "0.55668426", "0.55623806", "0.5559285", "0.55530214", "0.55518734", "0.5544051", "0.55369806", "0.5534243", "0.55290246" ]
0.91230685
0
Display a listing of the resource.
public function index() { $products = Product::orderBy('name','ASC')->get(); return view('superadmin.products.index', compact('products')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { $categories = Category::orderBy('name','ASC')->pluck('name','id'); return view('superadmin.products.create', compact('categories')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { //dd($request->all()); $request->validate([ 'name'=>'required', 'category_id' => 'required', 'description'=>'required', 'quantity'=>'required', 'prize'=>'required', 'file' => 'image', //tiene que ser imagen ]); //$key = Helper::getToken(); PRUEBAS //dd($key); PRUEBAS $request['password'] = bcrypt($request->password); //Generar usuario $product = Product::create($request->all()); // Verificar imagen en el request if($request->file){ $name = Helper::saveImage($request->file, 'products', $product->id); $product->picture=$name; $product->save(); } return redirect('products'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $product = Product::find($id); $categories = Category::orderBy('name','ASC')->pluck('name', 'id'); return view('superadmin.products.edit', compact('product', 'categories')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit() \n\t{\n UserModel::authentication();\n\n //get the user's information \n $user = UserModel::user();\n\n\t\t$this->View->Render('user/edit', ['user' => $user]);\n }" ]
[ "0.78557473", "0.76946205", "0.72731614", "0.7241571", "0.71700776", "0.70650244", "0.7052897", "0.698311", "0.69465625", "0.6944826", "0.69399333", "0.69286525", "0.69031185", "0.68969506", "0.68969506", "0.6878258", "0.6862812", "0.6859171", "0.68560475", "0.68436426", "0.6834711", "0.6810601", "0.680613", "0.6804975", "0.68015367", "0.6795471", "0.6791821", "0.6791821", "0.6787303", "0.6783644", "0.67790574", "0.67766285", "0.6767741", "0.67610145", "0.67455536", "0.67455536", "0.6744367", "0.6743159", "0.6739656", "0.67351145", "0.67246765", "0.67128825", "0.6692859", "0.66916454", "0.6687554", "0.66875297", "0.6687494", "0.6684443", "0.668203", "0.66689324", "0.66680384", "0.6664605", "0.6664605", "0.66621166", "0.66604865", "0.66589504", "0.6655767", "0.66542184", "0.665213", "0.66422516", "0.6631665", "0.663077", "0.6627607", "0.6627607", "0.66193914", "0.6618503", "0.66160196", "0.66146857", "0.6609641", "0.6608315", "0.6605284", "0.6595882", "0.65947276", "0.6594626", "0.65895563", "0.6589339", "0.6587281", "0.65805006", "0.6579201", "0.6579166", "0.657641", "0.6576111", "0.65740323", "0.65692765", "0.6568046", "0.6567221", "0.6565346", "0.6560687", "0.6560687", "0.6560384", "0.65577257", "0.65569293", "0.65558636", "0.6555392", "0.65553015", "0.65542984", "0.655418", "0.6554106", "0.6547678", "0.65473104", "0.6543329" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $product = Product::find($id); $request->validate([ 'name'=>'required', 'category_id' => 'required', 'description'=>'required', 'quantity'=>'required', 'prize'=>'required', 'file' => 'image', //tiene que ser imagen ]); $foto = $product->picture; if($request->file){ Helper::deleteImage($product->picture,'products'); $foto = Helper::saveImage($request->file, 'products', $product->id); } $request['picture']=$foto; $product->fill($request->all()); $product->save(); return redirect('products'); }
{ "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) { $product = Product::find($id); if($product){ Helper::deleteImage($product->picture,'products'); $product->delete(); } return redirect('products'); //redirigir a ruta users }
{ "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
Count all public calendars of other users.
public function countPublicCalendars(UserInterface $user) { $qb = $this->repository->createQueryBuilder('c'); $qb->select('COUNT(c.id)'); $qb->where('c.visible = :visible'); $qb->andwhere('c.createdBy != :user'); $qb->setParameter('visible', true); $qb->setParameter('user', $user); return $qb->getQuery()->getSingleScalarResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function count_user_events($user_id = NULL) {\r\n global $uid;\r\n if (is_null($user_id)) {\r\n $user_id = $uid;\r\n }\r\n return Database::get()->querySingle(\"SELECT COUNT(*) AS count FROM personal_calendar WHERE user_id = ?d\", $user_id)->count;\r\n }", "private function countRegisteredUsers( &$users ): void\n {\n foreach($users as $user)\n {\n if( $user -> created_at && $user -> created_at -> year == $this -> year)\n {\n $this -> data[ self :: REGISTERED ][ $user -> created_at -> month - 1 ]++;\n }\n }\n }", "public function getCalendars(User $user = null);", "public function getCountEvents(App\\Request $request)\n\t{\n\t\t$record = Vtiger_Calendar_Model::getInstance($request->getModule());\n\t\t$record->set('user', $request->getArray('user', 'Alnum'));\n\t\t$record->set('types', $request->getArray('types', 'Text'));\n\t\t$record->set('time', $request->isEmpty('time') ? '' : $request->getByType('time'));\n\t\tif ($request->has('start') && $request->has('end')) {\n\t\t\t$record->set('start', $request->getByType('start', 'DateInUserFormat'));\n\t\t\t$record->set('end', $request->getByType('end', 'DateInUserFormat'));\n\t\t}\n\t\tif ($request->has('filters')) {\n\t\t\t$record->set('filters', $request->getByType('filters', 'Alnum'));\n\t\t}\n\t\tif ($request->has('cvid')) {\n\t\t\t$record->set('customFilter', $request->getInteger('cvid'));\n\t\t}\n\t\t$entity = $record->getEntityRecordsCount();\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult($entity);\n\t\t$response->emit();\n\t}", "function countUsers(){\n\t\n\t}", "function getUsersCount() {\n $company_id = $this->getId(); \n \treturn Users::count(\"company_id LIKE $company_id\");\n }", "public function getCountEventsGroup(App\\Request $request)\n\t{\n\t\t$record = Vtiger_Calendar_Model::getInstance($request->getModule());\n\t\t$record->set('user', $request->getArray('user', 'Alnum'));\n\t\t$record->set('types', $request->getArray('types', 'Text'));\n\t\t$record->set('time', $request->isEmpty('time') ? '' : $request->getByType('time'));\n\t\tif ($request->has('filters')) {\n\t\t\t$record->set('filters', $request->getByType('filters', 'Alnum'));\n\t\t}\n\t\tif ($request->has('cvid')) {\n\t\t\t$record->set('customFilter', $request->getInteger('cvid'));\n\t\t}\n\t\t$result = [];\n\t\tforeach ($request->getArray('dates', 'DateTimeInUserFormat') as $datePair) {\n\t\t\t$record->set('start', $datePair[0]);\n\t\t\t$record->set('end', $datePair[1]);\n\t\t\t$result[] = $record->getEntityRecordsCount();\n\t\t}\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult($result);\n\t\t$response->emit();\n\t}", "function get_calendars() {\n\n\t\t// Get the attached calendars\n\t\t$calendars = wp_get_post_terms( $this->post_id , 'calendar' );\n\t\t$this->calendars = $calendars;\n\t\t\n\t\t// Loop through calendars, checking permissions\n\t\tforeach ( $calendars as $calendar ) {\n\t\t\t\n\t\t\t// Is it a group calendar?\n\t\t\tif ( is_group_calendar( $calendar->term_id ) ) :\n\t\t\t\t$group_id\t= groups_get_id( $calendar->slug );\n\t\t\t\t$can_view \t= groups_is_user_member( get_current_user_id() , $group_id ) ? true : false;\n\t\t\telse :\n\t\t\t\t$can_view = true;\n\t\t\tendif;\n\t\t\t\n\t\t\t// If we find a calendar for which the user is authorized, go ahead and display it\n\t\t\tif( $can_view ) :\n\t\t\t\t$this->calendar = $calendar;\n\t\t\t\t$this->can_view = true;\n\t\t\t\tbreak;\n\t\t\tendif;\n\t\t}\n\n\t\t// If the user is not allowed to view any calendar, redirect them to the group\n\t\tif ( !$can_view ) {\n\t\t\t$redirect = SITEURL . '/groups/' . $this->calendar->slug;\n\t\t\tbp_core_add_message( 'You cannot access events on this calendar.' , 'error' );\n\t\t\tbp_core_redirect( $redirect );\n\t\t}\n\t}", "public function getCountEvents(App\\Request $request)\n\t{\n\t\t$record = Calendar_Calendar_Model::getCleanInstance();\n\t\t$record->set('user', $request->getArray('user', 'Alnum'));\n\t\t$record->set('types', $request->getArray('types', 'Text'));\n\t\t$record->set('time', $request->getByType('time'));\n\t\tif ($request->has('start') && $request->has('end')) {\n\t\t\t$record->set('start', $request->getByType('start', 'DateInUserFormat'));\n\t\t\t$record->set('end', $request->getByType('end', 'DateInUserFormat'));\n\t\t}\n\t\tif ($request->has('filters')) {\n\t\t\t$record->set('filters', $request->getByType('filters', 'Alnum'));\n\t\t}\n\t\tif ($request->has('cvid')) {\n\t\t\t$record->set('customFilter', $request->getInteger('cvid'));\n\t\t}\n\t\t$entity = $record->getEntityRecordsCount();\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult($entity);\n\t\t$response->emit();\n\t}", "function count_many_users_posts($users, $post_type = 'post', $public_only = \\false)\n {\n }", "public function countUsers() {\n require('database.php');\n if ($result = $mysqli->query('SELECT Count(Distinct id) as count\n FROM users')) {\n while ($row = $result->fetch_assoc()) {\n echo $row['count'];\n }\n }\n }", "public function getCountEventsGroup(App\\Request $request)\n\t{\n\t\t$record = Calendar_Calendar_Model::getCleanInstance();\n\t\t$record->set('user', $request->getArray('user', 'Alnum'));\n\t\t$record->set('types', $request->getArray('types', 'Text'));\n\t\t$record->set('time', $request->getByType('time'));\n\t\tif ($request->has('filters')) {\n\t\t\t$record->set('filters', $request->getByType('filters', 'Alnum'));\n\t\t}\n\t\tif ($request->has('cvid')) {\n\t\t\t$record->set('customFilter', $request->getInteger('cvid'));\n\t\t}\n\t\t$result = [];\n\t\tforeach ($request->getArray('dates', 'DateTimeInUserFormat') as $datePair) {\n\t\t\t$record->set('start', $datePair[0]);\n\t\t\t$record->set('end', $datePair[1]);\n\t\t\t$result[] = $record->getEntityRecordsCount();\n\t\t}\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult($result);\n\t\t$response->emit();\n\t}", "public function countCalendarEventDates() {\n\t\t$sql = \"SELECT\tCOUNT(*) AS count\n\t\t\tFROM\twcf\".$this->dbNo.\"_calendar_event_date\";\n\t\t$statement = $this->database->prepareStatement($sql);\n\t\t$statement->execute();\n\t\t$row = $statement->fetchArray();\n\t\treturn $row['count'];\n\t}", "public function countEvents()\n {\n $count = 0;\n foreach ($this->listEvents() as $dayevents) {\n $count += count($dayevents);\n }\n return $count;\n }", "public function countAll() {}", "public function countAll() {}", "public function countAll() {}", "public function userStatics()\n { \n if (func_num_args() > 0) {\n $year = func_get_arg(0);\n $select = \"SELECT COUNT(u.user_id) AS total, m.month\n FROM (\n SELECT 'JAN' AS MONTH\n UNION SELECT 'FEB' AS MONTH\n UNION SELECT 'MAR' AS MONTH\n UNION SELECT 'APR' AS MONTH\n UNION SELECT 'MAY' AS MONTH\n UNION SELECT 'JUN' AS MONTH\n UNION SELECT 'JUL' AS MONTH\n UNION SELECT 'AUG' AS MONTH\n UNION SELECT 'SEP' AS MONTH\n UNION SELECT 'OCT' AS MONTH\n UNION SELECT 'NOV' AS MONTH\n UNION SELECT 'DEC' AS MONTH\n ) AS m\n LEFT JOIN users u ON MONTH(STR_TO_DATE(CONCAT(m.month, ' $year'),'%M %Y')) = MONTH(u.reg_date) AND YEAR(u.reg_date) = '$year'\n GROUP BY m.month\n ORDER BY 1+1\";\n\n $result = $this->getAdapter()->fetchAll($select); \n return $result;\n }\n }", "function getAllUsersCount() {\n\n $objUtil = new Util($this->apiKey, $this->secretKey);\n try {\n\t\t $params = null;\n $userObj = new App42Response();\n $headerParams = array();\n $queryParams = array();\n $signParams = $this->populateSignParams();\n $metaHeaders = $this->populateMetaHeaderParams();\n $headerParams = array_merge($signParams, $metaHeaders);\n $signature = urlencode($objUtil->sign($signParams)); //die();\n $headerParams['signature'] = $signature;\n $contentType = $this->content_type;\n $accept = $this->accept;\n $baseURL = $this->url;\n $baseURL = $baseURL . \"/count/all\";\n $response = RestClient::get($baseURL, $params, null, null, $contentType, $accept, $headerParams);\n $userObj->setStrResponse($response->getResponse());\n $userObj->setResponseSuccess(true);\n $userResponseObj = new UserResponseBuilder();\n $userObj->setTotalRecords($userResponseObj->getTotalRecords($response->getResponse()));\n } catch (App42Exception $e) {\n throw $e;\n } catch (Exception $e) {\n throw new App42Exception($e);\n }\n return $userObj;\n }", "public function ownerCombinedCal()\n {\n // Restricted access\n if ( ! $this->ownerLoggedIn() )\n {\n $this->restricted();\n return;\n }\n\n require_once('views/OwnerCombinedCalView.class.php');\n $site = new SiteContainer($this->db);\n $page = new OwnerCombinedCalView();\n \n $site->printHeader();\n $site->printNav(\"owner\");\n $site->printCombinedCalFooter();\n $page->printHtml();\n $page->printCalendar(); \n\n }", "public function getAllThisWeek()\n {\n $now = Carbon::today();\n $today = $now->toDateString();\n $last_sun = new Carbon('last sunday');\n $last_sunday = $last_sun->toDateString();\n\n return $this->appUser->whereBetween('date_created', array($last_sunday, $today))->count();\n }", "public function numUsers(){\n $query = \"SELECT count(*) FROM final_usuario\";\n return $this->con->action($query);\n }", "public function countCalendarEventDateParticipation() {\n\t\t$sql = \"SELECT\tCOUNT(*) AS count\n\t\t\tFROM\twcf\".$this->dbNo.\"_calendar_event_participation_to_user\";\n\t\t$statement = $this->database->prepareStatement($sql);\n\t\t$statement->execute();\n\t\t$row = $statement->fetchArray();\n\t\treturn $row['count'];\n\t}", "function loadPublicCalendars() {\n $sql = \"\n SELECT c.calendar_id, c.title, c.color\n FROM %s AS c\n WHERE c.surfer_id IS NULL\n ORDER BY c.title\n \";\n $result = $this->databaseQueryFmt($sql, $this->tableCalendars);\n if (!$result || $result->count() == 0) {\n // database error or no public calendars defined\n return FALSE;\n }\n\n $calendars = array();\n while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC)) {\n $calendars[] = $row;\n }\n\n return $calendars;\n }", "public function somaTodosUsuarios()\n {\n $query = $this->db->query('SELECT COUNT(us_id) AS total_usuarios FROM users_gestores');\n $row = $query->row();\n echo $row->total_usuarios;\n }", "function countUsersCS(){\n\t\t\t\t\trequire_once(\"database\\database_connection.php\");\n\t\t\t\t\t$conn=database();\n\t\t\t\t\t//Query the database\n\t\t\t\t\t$resultSet = $conn->query(\"SELECT * FROM users_cs_count_view\");\n\n\t\t\t\t\tif($resultSet->num_rows != 0){\n\t\t\t\t\t\twhile($rows = $resultSet->fetch_assoc()){\n\t\t\t\t\t\t\t$users = $rows['users_with_cs'];\n\n\t\t\t\t\t\t\techo \"<h4 class='heading'>\n\t\t\t\t\t\t\tRegistered users with CS:GO: $users\n\t\t\t\t\t\t\t</h4>\";\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\techo\"ERROR\";\n\t\t\t\t\t}\n\t\t \t\t$conn->close();\n}", "private function countActiveUsers(): void\n {\n $userIds = [];\n for($i=0; $i <= 11; $i++)\n {\n $userIds[$i] = [];\n }\n\n Order :: where( 'charging_status', OrderStatusEnum :: FINISHED ) -> get()\n -> filter(function($order) {\n return $order -> created_at && $order -> created_at -> year == $this -> year;\n })\n -> each(function($order) use( &$userIds ) {\n array_push($userIds[ $order -> created_at -> month - 1], $order -> user_id); \n });\n\n\n for($i = 0; $i <= 11; $i++)\n {\n $this -> data[ self :: ACTIVE ][$i] = count(array_unique($userIds[$i]));\n }\n }", "public function getProjectsByUserIdCount(int $userId) : int;", "protected function getSecurityCount()\n\t{\n\t\t$count = App\\Log::getLogs('access_for_admin', 'oneDay', true);\n\t\t$count += App\\Log::getLogs('access_to_record', 'oneDay', true);\n\t\t$count += App\\Log::getLogs('access_for_api', 'oneDay', true);\n\t\treturn $count + App\\Log::getLogs('access_for_user', 'oneDay', true);\n\t}", "public static function obtenerPublicacionesCount()\n {\n return self::builder()->where('tipo', false)->count() ?? 0;\n }", "public function test_getAllCalendars() {\n// \t\t$user = TestingUtil::getTestAdminUser();\n// \t\t$userApp = new UserApp();\n// \t\t$userApp->initializeForAppID($user, 5);\n// \t\t$outlookClient = new OutlookClient($user, $userApp);\n// \t\t$outlookCalendar = new OutlookCalendar($outlookClient);\n// \t\t$calendars = $outlookCalendar->getAllCalendars();\n// \t\t$this->assertCount(3, $calendars);\n\t\t$this->assertEquals(1,1);\n\t}", "private static function get_count_calendar_added($userid, array $courses, $startdate = null, $enddate = null, $reader) {\r\n global $DB;\r\n\t if ($reader instanceof logstore_legacy\\log\\store) {\r\n\t \t$coursecol = 'course';\r\n\t \t$timecol = 'time';\r\n\t \t$modulecol = 'module';\r\n\t \t$moduleval = 'calendar';\r\n\t \t$actionval = 'add';\r\n\t \t$logtable = 'log';\r\n\t } else {\r\n\t \t$coursecol = 'courseid';\r\n\t \t$timecol = 'timecreated';\r\n\t \t$modulecol = 'target';\r\n\t \t$moduleval = 'calendar_event';\r\n\t \t$actionval = 'created';\r\n\t \t$logtable = $reader->get_internal_log_table_name();\r\n\t }\r\n $sql_param = array ();\r\n list ($user_sql, $sql_param1) = $DB->get_in_or_equal($userid, SQL_PARAMS_NAMED);\r\n $sql_param = array_merge($sql_param, $sql_param1);\r\n $select = \"(userid $user_sql)\";\r\n $select .= \" AND ($modulecol ='$moduleval') AND (action='$actionval')\";\r\n if (empty ($courses)) {\r\n list ($course_sql, $sql_param2) = $DB->get_in_or_equal($courses, SQL_PARAMS_NAMED);\r\n $sql_param = array_merge($sql_param, $sql_param2);\r\n $select .= \" AND ($coursecol $course_sql)\";\r\n }\r\n if ($startdate !== null) {\r\n $sql_param['startdate'] = $startdate;\r\n $select .= \" AND ($timecol >= :startdate)\";\r\n }\r\n if (($enddate !== null) && ($enddate >= $startdate)) {\r\n $sql_param['enddate'] = $enddate +DAYSECS;\r\n $select .= \" AND ($timecol < :enddate)\";\r\n }\r\n\r\n $result = $DB->count_records_select($logtable, $select, $sql_param);\r\n return $result;\r\n }", "public function listCalendars()\n {\n Kronolith::initialize();\n $all_external_calendars = $GLOBALS['calendar_manager']->get(Kronolith::ALL_EXTERNAL_CALENDARS);\n $result = new stdClass;\n $auth_name = $GLOBALS['registry']->getAuth();\n\n // Calendars. Do some twisting to sort own calendar before shared\n // calendars.\n foreach (array(true, false) as $my) {\n foreach ($GLOBALS['calendar_manager']->get(Kronolith::ALL_CALENDARS) as $id => $calendar) {\n $owner = ($auth_name && ($calendar->owner() == $auth_name));\n if (($my && $owner) || (!$my && !$owner)) {\n $result->calendars['internal'][$id] = $calendar->toHash();\n }\n }\n\n // Tasklists\n if (Kronolith::hasApiPermission('tasks')) {\n foreach ($GLOBALS['registry']->tasks->listTasklists($my, Horde_Perms::SHOW, false) as $id => $tasklist) {\n if (isset($all_external_calendars['tasks/' . $id])) {\n $owner = ($auth_name &&\n ($tasklist->get('owner') == $auth_name));\n if (($my && $owner) || (!$my && !$owner)) {\n $result->calendars['tasklists']['tasks/' . $id] =\n $all_external_calendars['tasks/' . $id]->toHash();\n }\n }\n }\n }\n }\n\n // Resources\n if (!empty($GLOBALS['conf']['resource']['driver'])) {\n foreach (Kronolith::getDriver('Resource')->listResources() as $resource) {\n if ($resource->get('type') != Kronolith_Resource::TYPE_GROUP) {\n $rcal = new Kronolith_Calendar_Resource(array(\n 'resource' => $resource\n ));\n $result->calendars['resource'][$resource->get('calendar')] = $rcal->toHash();\n } else {\n $rcal = new Kronolith_Calendar_ResourceGroup(array(\n 'resource' => $resource\n ));\n $result->calendars['resourcegroup'][$resource->getId()] = $rcal->toHash();\n }\n }\n }\n\n // Timeobjects\n foreach ($all_external_calendars as $id => $calendar) {\n if ($calendar->api() != 'tasks' && $calendar->display()) {\n $result->calendars['external'][$id] = $calendar->toHash();\n }\n }\n\n // Remote calendars\n foreach ($GLOBALS['calendar_manager']->get(Kronolith::ALL_REMOTE_CALENDARS) as $url => $calendar) {\n $result->calendars['remote'][$url] = $calendar->toHash();\n }\n\n // Holidays\n foreach ($GLOBALS['calendar_manager']->get(Kronolith::ALL_HOLIDAYS) as $id => $calendar) {\n $result->calendars['holiday'][$id] = $calendar->toHash();\n }\n\n return $result;\n }", "public function getActiveProjectsByUserIdCount(int $userId) : int;", "public function session_count($user_id = null, $start_date = null, $end_date = null, $activitygroup_id = null, $unit_id = null, $is_publish = null) {\n $conditions = array();\n\n $conditions['AND']['not'] = array('Activity.id'=>null);\n\n if(!empty($user_id)){\n $conditions['AND'][$this->alias . \".countuser_id\"] = $user_id;\n }\n if(!empty($start_date)){\n $conditions['AND'][$this->alias . \".date >=\"] = $start_date;\n }\n if(!empty($end_date)){\n $conditions['AND'][$this->alias . \".date <=\"] = $end_date;\n }\n if(!empty($activitygroup_id)){\n $conditions['AND'][\"Activity.activitygroup_id\"] = $activitygroup_id;\n }\n if(!empty($unit_id)){\n $conditions['AND'][$this->Activity->Unit->alias.\".id\"] = $unit_id;\n }\n\n if(isset($is_publish)){\n if($is_publish === 0){\n $conditions['AND'][\"Activity.publish\"] = 0;\n }else if($is_publish === 1){\n $conditions['AND'][\"Activity.publish\"] = 1;\n }\n }\n\n\n $options = array(\n 'fields' => array(\n \"sum(Activitysession.session) AS total_count\",\n ),\n 'link' => array(\n 'Activity'=>array(\n 'link'=>array(\n 'Activitytype',\n 'Unit'\n )\n ),\n 'Countuser',\n\n ),\n \"conditions\"=>$conditions\n );\n\n $tmp = $this->find('all',$options);\n\n if(!$tmp){\n return \"0\";\n }else{\n return ($tmp[0][0]['total_count']==null)?\"0\":$tmp[0][0]['total_count'];\n }\n }", "function dashboard($data) {\n\t\t$month = $data->filter(function($user){ return $user->created_at->format('m-y') == date('m-y'); });\n\t\t$lastmonth = $data->filter(function($user){ return $user->created_at->format('m-y') == Carbon::now()->firstOfMonth()->subMonth()->format('m-y'); });\n\t\t$year = $data->filter(function($user){ return $user->created_at->format('y') == date('y'); });\n\t\t$lastyear = $data->filter(function($user){ return $user->created_at->format('y') == Carbon::now()->subYear()->format('y'); });\n\t\n\t\t$results = collect([\n\t\t\t\t'month' => $month->count(),\n\t\t\t\t'lastmonth' => $lastmonth->count(),\n\t\t\t\t'year' => $year->count(),\n\t\t\t\t'lastyear' => $lastyear->count(),\n\t\t\t\t'total' => $data->count(),\n\t\t\t]);\n\t\t\tif(isset($data[0]['amount'])) {\n\t\t\t\t$results = $results->union([\n\t\t\t\t\t'month_sum' => $month->sum('amount'),\n\t\t\t\t\t'lastmonth_sum' => $lastmonth->sum('amount'),\n\t\t\t\t\t'year_sum' => $year->sum('amount'),\n\t\t\t\t\t'lastyear_sum' => $lastyear->sum('amount'),\n\t\t\t\t\t'total_sum' => $data->sum('amount'),\n\t\t\t\t]);\n\t\t\t};\n\t return $results;\n\t}", "public function updateUserCounterCache() {\n\t\t$list = $this->User->find('list');\n\t\t$users = array_keys($list);\n\t\t$this->out('<warning>Updating ' . count($users) . ' user project counts...</warning>', 0);\n\t\tif (!count($users)) {\n\t\t\t$this->out('nothing to do.');\n\t\t\treturn;\n\t\t}\n\t\tif ($this->params['dry-run']) {\n\t\t\t$this->out('dry-run.. skipping.');\n\t\t\treturn;\n\t\t}\n\t\tforeach ($users as $userId) {\n\t\t\t$this->User->id = $userId;\n\t\t\t$allCount = $this->Project->find('count', array('conditions' => array('Project.user_id' => $userId)));\n\t\t\t$publicCount = $this->Project->find('count', array('conditions' => array('Project.user_id' => $userId, 'Project.public' => Project::PROJ_PUBLIC)));\n\t\t\t$user = array(\n\t\t\t\t'User' => array(\n\t\t\t\t\t'id' => $userId,\n\t\t\t\t\t'project_count' => $allCount,\n\t\t\t\t\t'public_count' => $publicCount,\n\t\t\t\t\t'modified' => false,\n\t\t\t\t)\n\t\t\t);\n\t\t\tif (!$this->User->save($user)) {\n\t\t\t\t$this->out('<error>Error saving count.</error>');\n\t\t\t\tdie();\n\t\t\t} else {\n\t\t\t\t$this->out('.', 0);\n\t\t\t}\n\t\t\tunset($user);\n\t\t}\n\t\t$this->out('done.');\n\t}", "public function countContractors()\n\t{\n\t\t$farmer = \"select id from users_roles where name = 'Contractor' \";\n\t\t$f = DB::query($farmer)->execute()->as_array();\n\t\t$f_id = @$f[0]['id']; \n\t\t\n\t\t//got it, lets proceed\n\t\tif(!is_null($f_id)){\n\t\t\t\n\t\t\t//lets count number of users subscribed to the contractor role\n\t\t\t$pple = \"select count(distinct(user_id)) as tmpvar from users_user_roles\nwhere role_id = $f_id \";\n\n\t\t\t$tmp \t= DB::query($pple)->execute()->as_array();\n\t\t\t$fcount = @$tmp[0]['tmpvar'];\n\t\t\treturn $fcount;\n\t\t}\n\t\treturn 0;\n\t\n\t\t\n\t}", "function get_events_user_count( $options=array() ){\n\t\tglobal $gamo, $dbh;\n\t\n\t\t$error_append = \" CLASS[\".__CLASS__.\"] METHOD[\".__METHOD__.\"] DATE[\".date('Y-m-d H:i:s').\"]\";\n\t\n\t\tif( empty( $options['user_id'] ) ){\n\t\t\t$error = Core::error($this->errors, 1);\n\t\t\t$error['error_msg'] .= $error_append;\n\t\t\treturn $error;\n\t\t}\n\t\n\t\t$action_types_rsvp = Core::r('actions')->action_types_id(array(\n\t\t\t\t'action_key' => 'rsvp_fevent'\n\t\t\t)\n\t\t);\n\n\t\tif( Core::has_error($action_types_rsvp) or empty($action_types_rsvp) ){\n\t\t\t$error = Core::error($this->errors, 5);\n\t\t\t$error['error_msg'] .= $error_append;\n\t\t\treturn $error;\n\t\t}\n\t\t\n\n\t\t$sql = \t\"SELECT\n\t\tcount(ve.id) as count\n\t\tFROM \".CORE_DB.\".\".self::$table_name.\" as ve \".\n\t\t\"INNER JOIN \".CORE_DB.\".actions_log as al on ve.id=al.int_other \".\n\t\t\"WHERE al.action_types_id = \".$action_types_rsvp.\" AND \".\n\t\t\"user_id = :user_id AND al.active = 1 AND al.point_value_use IS NOT NULL AND al.point_value_use > 0 \";\n\t\n\t\t//error_log($sql);\n\t\t\n\t\ttry{\n\t\n\t\t\t$stm = $dbh->prepare($sql);\n\t\t\tif( empty($stm) ){\n\t\t\t\t$error = Core::error($this->errors, 2);\n\t\t\t\t$error['error_msg'] .= $error_append;\n\t\t\t\treturn $error;\n\t\t\t}\n\t\n\t\t\t$sres = $stm->execute( array(\n\t\t\t\t\t':user_id' => $options['user_id']\n\t\t\t) );\n\t\t\tif( empty($sres) ){\n\t\t\t\t$error = Core::error($this->errors, 3);\n\t\t\t\t$error['error_msg'] .= $error_append;\n\t\t\t\treturn $error;\n\t\t\t}\n\t\n\t\t\t$id = $stm->fetch(PDO::FETCH_ASSOC);\n\t\n\t\t}catch(PDOException $e){\n\t\t\t$error = Core::error($this->errors, 4);\n\t\t\t$error['error_msg'] .= $error_append;\n\t\t\treturn $error;\n\t\t}\n\t\n\t\tif( !empty( $id['count'] ) ){\n\t\n\t\t\treturn $id['count'];\n\t\n\t\t}else{\n\t\n\t\t\treturn false;\n\t\n\t\t}\n\t\n\t}", "public function getDailyUsersBySO($idApp, $initialDate, $finalDate, $os){\n @list($d1, $m1, $y1) = explode( $this->separador,$initialDate,3);\n @list($d2, $m2, $y2) = explode( $this->separador,$finalDate,3);\n $c=$this->getConector($y1, $y2);\n $this->otherdb->select('year, month, day, platformname, count(id_download) as Users');\n $this->otherdb->from('dailyuserdata');\n $this->otherdb->where(\"id_app\", $idApp);\n $this->otherdb->where(\"platformname\", $os);\n $this->otherdb->where(\"((year = $y1 and ( $m1 < month or ($m1=month and day >= $d1 and day <= 31 ) )) $c \n (year = $y2 and ( $m2 > month or ($m2=month and day >= 01 and $d2 >= day ))))\" );\n $this->otherdb->group_by(\" year, month, day, platformname\");\n /*$query = \" select year, month, day, platformname, count(id_download) as Users from dailyuserdata \n where id_app='$idApp' and platformname = '$os' and\n ((year = $y1 and ( $m1 < month or ($m1=month and day >= $d1 and day <= 31 ) )) $c\n (year = $y2 and ( $m2 > month or ($m2=month and day >= 01 and $d2 >= day ))))\n group by year, month, day, platformname\";*/\n $this->addSegmentQuery($this->otherdb);\n $result = $this->otherdb->get();\n //$result = $this->otherdb->query($query);\n $titlearray = array(\"Users\");\n \n return $this->prepareResultSet($titlearray, $initialDate, $finalDate,$result->result_array());\n }", "public function get_total_users(){\r\n $cursor = $this->collection->user->find(); //return all documents.\r\n $doc = array();\r\n $flag = FALSE;\r\n foreach ($cursor as $document) {\r\n $flag = true;\r\n array_push($doc,$document);\r\n }\r\n if($flag){\r\n return $doc;\r\n }\r\n else{\r\n return false;\r\n }\r\n \r\n }", "public function findCalendarsByUser(UserInterface $user)\r\n {\r\n $qb = $this->repository->createQueryBuilder('c');\r\n $qb->where('c.createdBy = :user');\r\n $qb->setParameter('user', $user);\r\n\r\n return $qb->getQuery()->execute();\r\n }", "public static function getEventsCount()\n {\n $key_all = self::REPORT_LIST.\"-global-events-all-count\";\n\n if (!Context::instance()->redis_zookeeper)\n Context::instance()->zookeeperInit();\n\n $num = Context::instance()->redis_zookeeper->get($key_all);\n\n if (!$num)\n return 0;\n\n return $num;\n }", "function get_all_usuarios_count()\n {\n $this->db->from('usuarios');\n return $this->db->count_all_results();\n }", "public static function getSharedCalendarsForUser($a_usr_id = 0)\r\n\t{\r\n\t\tglobal $ilDB,$ilUser,$rbacreview;\r\n\t\t\r\n\t\tif(!$a_usr_id)\r\n\t\t{\r\n\t\t\t$a_usr_id = $ilUser->getId();\r\n\t\t}\r\n\r\n\t\t$query = \"SELECT * FROM cal_shared \".\r\n\t\t\t\"WHERE obj_type = \".$ilDB->quote(self::TYPE_USR ,'integer').\" \".\r\n\t\t\t\"AND obj_id = \".$ilDB->quote($a_usr_id ,'integer').\" \".\r\n\t\t\t\"ORDER BY create_date\";\r\n\t\t$res = $ilDB->query($query);\r\n\t\t$calendars = array();\r\n\t\twhile($row = $res->fetchRow(DB_FETCHMODE_OBJECT))\r\n\t\t{\r\n\t\t\t$calendars[] = $row->cal_id; \r\n\t\t\t\r\n\t\t\t$shared[$row->cal_id]['cal_id'] = $row->cal_id;\r\n\t\t\t$shared[$row->cal_id]['create_date'] = $row->create_date;\r\n\t\t\t$shared[$row->cal_id]['obj_type'] = $row->obj_type;\r\n\t\t}\r\n\t\t\r\n\t\t$assigned_roles = $rbacreview->assignedRoles($ilUser->getId());\r\n\t\t\r\n\t\t$query = \"SELECT * FROM cal_shared \".\r\n\t\t\t\"WHERE obj_type = \".$ilDB->quote(self::TYPE_ROLE ,'integer').\" \".\r\n\t\t\t\"AND \".$ilDB->in('obj_id',$assigned_roles,false ,'integer');\r\n\r\n\t\t$res = $ilDB->query($query);\r\n\t\twhile($row = $res->fetchRow(DB_FETCHMODE_OBJECT))\r\n\t\t{\r\n\t\t\tif(in_array($row->cal_id,$calendars))\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif(ilCalendarCategories::_isOwner($ilUser->getId(),$row->cal_id))\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$shared[$row->cal_id]['cal_id'] = $row->cal_id;\r\n\t\t\t$shared[$row->cal_id]['create_date'] = $row->create_date;\r\n\t\t\t$shared[$row->cal_id]['obj_type'] = $row->obj_type;\r\n\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\treturn $shared ? $shared : array();\r\n\t\t// TODO: return also role calendars\r\n\t\t\r\n\t}", "public function getTotalCasesInDept(){\n $dept = $this->dept;\n $users = User::where(['department' => $dept->id])->select('users.id')->get();\n $sum = 0;\n foreach($users as $user){\n $numberOfCasesIntaken = LegalCase::where(['staff' => $user->id])->count();\n $sum += $numberOfCasesIntaken;\n }\n return $sum;\n }", "function fetchTotalDonationsPublic($timeFilter) {\n\t$where = addTimeFilter(\"visibility=0\", $timeFilter);\n\t$db = DB::getInstance();\n\t$query = $db->query(\"SELECT user_id, sum(amount) as total FROM donation where $where group by user_id\");\n\t$results = $query->results();\n\t$s = array();\n\tforeach ($results as $u) {\n\t\t$s[\"$u->user_id\"] = $u->total;\n\t}\n\treturn $s;\n\n}", "public function countAllUser(){\n\n return $this->db->count_all( 'user' );\n }", "function count_user_posts($userid, $post_type = 'post', $public_only = \\false)\n {\n }", "public function getCount()\n {\n return $this->appUser->count();\n }", "public function getAllUsersCountAttendees()\n {\n $query = 'select attendees.userID as userID, count(attendeeID) as countAtt from users right join attendees on users.userID = attendees.userID group by attendees.userID;';\n if ($this->connectedModel->runQuery($query)) //query\n {\n $arrayCounts = array(0 => 0); //grantees function won't return false\n while ($row = $this->connectedModel->getResultsAssoc())\n {\n $arrayCounts[$row['userID']] = $row['countAtt'];\n }\n return $arrayCounts;\n }\n else\n {\n return false;\n }\n }", "public function api_count()\n\t{\n\t\t$referrals = $this->UserReferral->find('count',\n\t\t\tarray(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'UserReferral.referral_id' => $this->loggedUser['User']['id'],\n\t\t\t\t\t'UserReferral.is_enabled' => true\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t\t\n\t\t\n\t\t$this->set(compact('referrals'));\n\t\t$this->set('_serialize', array('referrals'));\n\t\t\n\t\treturn $referrals;\n\t}", "function count()\n { \n $output['success'] = FALSE;\n $ceklogin = $this->cek_session->islogin();\n $output['logged_in'] = $ceklogin;\n if($ceklogin)\n {\n $this->mongo_db->select_db(\"Articles\");\n $this->mongo_db->select_collection(\"Event\"); \n $tempdata = $this->mongo_db->count2(array());\n if($tempdata)\n {\n $output['success'] = TRUE;\n $output['count'] = (int)$tempdata;\n }\n }\n echo json_encode($output);\n }", "public function getExportStatsCount($filterBy = []);", "public function index()\n {\n $days = Input::get('days', 7);\n\n $range = \\Carbon\\Carbon::now()->subDays($days);\n \n $stats = User::where('created_at', '>=', $range)\n ->groupBy('date')\n ->orderBy('date', 'DESC')\n ->remember(1440)\n ->get([\n DB::raw('Date(created_at) as date'),\n DB::raw('COUNT(*) as value')\n ])\n ->toJSON();\n // return view('home');\n \n$this->layout->content = View::make('home', compact('stats'));\n }", "public function getUsersCount()\n {\n return $this->count(self::_USERS);\n }", "function get_user_count($network_id = \\null)\n {\n }", "public function countAll() {\n\t $this->db->select('users.*,role.role_title,dept.dept_title')\n\t\t\t\t->from(\"$this->table as users\")\n\t\t\t\t->join('roles_table AS role', 'users.role_id = role.role_id')\n\t\t\t\t->join('department_table AS dept', 'dept.dept_id = users.dept_id');\n\t return $this->db->count_all_results();\n\t }", "function get_numusers() {\n global $CFG;\n\n $countsql = \"SELECT COUNT(DISTINCT u.id)\n FROM {$CFG->prefix}grade_grades g RIGHT OUTER JOIN\n {$CFG->prefix}user u ON u.id = g.userid\n LEFT JOIN {$CFG->prefix}role_assignments ra ON u.id = ra.userid\n $this->groupsql\n WHERE ra.roleid in ($this->gradebookroles)\n $this->groupwheresql\n AND ra.contextid \".get_related_contexts_string($this->context);\n return count_records_sql($countsql);\n }", "public function getCalendarEvents($organizationId, $userId, $calendarId, $start, $end, $connections, $extraField);", "public function getSubscriberCount();", "public function countOverallVisits(Carbon $start, Carbon $end = null, $url = null) {\n return $this->where($start, $end, $url)->sum('count');\n }", "public function get_users_online()\n {\n $logged_in_users = get_transient('agents_online'); //Get the active users from the transient.\n $count = 0;\n\n if($logged_in_users) {\n foreach ($logged_in_users as $logged_in_user) {\n if (isset($logged_in_user['last']) && ($logged_in_user['last'] > (time()-60) )) {\n $count++;\n }\n }\n } \n \n echo $count;\n die();\n }", "private function getCount()\n {\n $bd = Core::getBdd()->getDb();\n $u_insc_c = \"SELECT DISTINCT COUNT(u.id) as c FROM c_user u\";\n $insc = 0 + $bd->query($u_insc_c)->fetchObject()->c;\n return ($insc);\n }", "public function getUsageCount()\n {\n $today = Carbon::now('Asia/Singapore')->toDateTimeString();\n $timezone = new Carbon('Asia/Singapore');\n $last_thirty_days = $timezone->subDays(30);\n\n return count($this->appUserBlurb->where('interaction_type', 'use')->whereBetween('created_at', array($last_thirty_days->toDateTimeString(), $today))->groupBy('app_user_id')->get());\n }", "public function getDailyNewUsersBySO($idApp, $initialDate, $finalDate, $os){\n @list($d1, $m1, $y1) = explode( $this->separador,$initialDate,3);\n @list($d2, $m2, $y2) = explode( $this->separador,$finalDate,3);\n $c=$this->getConector($y1, $y2);\n $this->db->select('year, month, day, platformname, count(id_download) as users');\n $this->db->from('ethas_downloads');\n $this->db->where(\"id_app\", $idApp);\n $this->db->where(\"platformname\", $os);\n $this->db->where(\"((year = $y1 and ( $m1 < month or ($m1=month and day >= $d1 and day <= 31 ) )) $c \n (year = $y2 and ( $m2 > month or ($m2=month and day >= 01 and $d2 >= day ))))\" );\n $this->db->group_by(\"year, month, day, platformname\");\n /* $query = \" select year, month, day, platformname, count(id_download) as Users from downloads \n where id_app='$idApp' and platformname = '$os' and\n ((downloads.year = $y1 and ( $m1 < downloads.month or ($m1=downloads.month and downloads.day >= $d1 and downloads.day <= 31 ) )) $c\n (downloads.year = $y2 and ( $m2 > downloads.month or ($m2=downloads.month and downloads.day >= 01 and $d2 >= downloads.day ))))\n group by year, month, day, platformname\";*/\n $this->addSegmentQuery($this->db);\n $result = $this->db->get();\n //$result = $this->otherdb->query($query);\n $titlearray = array(\"Users\");\n \n return $this->prepareResultSet($titlearray, $initialDate, $finalDate,$result->result_array());\n }", "public function stats() {\n\t\t$userCount = 0;\n\t\tif ($this->isAdmin) {\n\t\t\t$countByBackend = $this->userManager->countUsers();\n\n\t\t\tif (!empty($countByBackend)) {\n\t\t\t\tforeach ($countByBackend as $count) {\n\t\t\t\t\t$userCount += $count;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t'@phan-var \\OC\\Group\\Manager $this->groupManager';\n\t\t\t$groups = $this->groupManager->getSubAdmin()->getSubAdminsGroups($this->userSession->getUser());\n\n\t\t\t$uniqueUsers = [];\n\t\t\tforeach ($groups as $group) {\n\t\t\t\tforeach ($group->getUsers() as $uid => $displayName) {\n\t\t\t\t\t$uniqueUsers[$uid] = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$userCount = \\count($uniqueUsers);\n\t\t}\n\n\t\treturn new DataResponse(\n\t\t\t[\n\t\t\t\t'totalUsers' => $userCount\n\t\t\t]\n\t\t);\n\t}", "public function getAlertCount() {\n if (!Auth::user()) {\n abort(403);\n }\n\n $userid = Auth::user()->id;\n $toclaim = Tournament::where('concluded', 1)->pluck('id');\n $unavailableVideos = Video::where('user_id', $userid)->where('flag_removed', true)->count();\n $nowdate = date('Y.m.d.', time());\n $weeklaterdate = date('Y.m.d.', time() + 86400 * 7);\n $toconclude = Tournament::where('creator', $userid)->where('tournament_type_id', '!=', 8)\n ->where('concluded', 0)->where('date', '<', $nowdate)->count();\n $tocomplete = Tournament::where('creator', $userid)->where('incomplete', 1)->count();\n $tocardpool = Tournament::where('creator', $userid)->whereNotNull('date')->where('cardpool_id', 'unknown')\n ->where('date', '<', $weeklaterdate)->count();\n $toclaimalert = Entry::where('user', $userid)->whereIn('tournament_id', $toclaim)->whereNull('rank')->count();\n $brokenclaim = Entry::where('user', $userid)->where('rank', '>', 0)->where(function($q){\n $q->where('broken_runner', '=', 1)->orWhere('broken_corp', '=', 1);\n })->count();\n $result = [\n 'personalAlerts' => [\n 'total' => $toclaimalert + $brokenclaim + $unavailableVideos,\n 'toClaimAlert' => $toclaimalert,\n 'brokenClaimAlert' => $brokenclaim,\n 'unavailableVideos' => $unavailableVideos\n ],\n 'organizeAlert' => [\n 'total' => $tocomplete + $toconclude + $tocardpool,\n 'concludeAlert' => $toconclude,\n 'incompleteAlert' => $tocomplete,\n 'unknownCardpoolAlert' => $tocardpool\n ],\n 'profileAlerts' => Auth::user()->badges()->wherePivot('seen', 0)->count()\n ];\n\n if (Auth::user()->admin) {\n $pending = Tournament::whereNull('approved')->where('incomplete', 0)->count();\n $conflict = Tournament::where('conflict', 1)->count();\n $photo = Photo::whereNull('approved')->count();\n $result['adminAlerts'] = [\n 'total' => $pending + $conflict + $photo,\n 'pendingTournament' => $pending,\n 'conflictTournament' => $conflict,\n 'pendingPhoto' => $photo\n ];\n }\n\n return response()->json($result);\n }", "public function concurrentUserCount()\n {\n $sql = \"SELECT COUNT(*) FROM (\n SELECT COUNT(*),user_id FROM license_his_user_log \n WHERE login_status = 'S' AND logout_status IS NULL\n GROUP BY user_id HAVING COUNT(*) >= 1) license_table\";\n\n $count = Yii::app()->db->createCommand($sql)->queryScalar();\n return $count;\n }", "public function getTotalCount();", "public function getTotalCount();", "public function getTotalCount();", "public function graphyearused_dashboard()\n \t{\n \t\t// announce return variable\n \t\t$return \t= \tarray();\n \t\t$count \t\t=\tarray();\n \t\t// select logger collection \n \t\t$use_data \t= \t$this->mongo_db->db->used;\n \t\t// preparing query data\n \t\t$splitday \t= \texplode('-', $this->use_date);\n \t\tfor ($i = 1; $i <= 12; $i++) \n \t\t{\n \t\t\tif (strlen($i) == 1) \n \t\t\t{\n \t\t\t\t// use mongoRegex (while like in sql)\n \t\t\t\t$regex_Date = new MongoRegex('/^'.$splitday[0].'-0'.$i.'/');\n \t\t\t\t// build query data\n \t\t\t\t$querydata \t= \tarray(\n \t\t\t\t\t'use_date' \t=> $regex_Date\n \t\t\t\t\t);\n \t\t\t\t// count and insert data to array\n \t\t\t\tarray_push($count, $use_data->count($querydata));\n \t\t\t} \n \t\t\telse \n \t\t\t{\n \t\t\t\t// use mongoRegex (while like in sql)\n \t\t\t\t$regex_Date = new MongoRegex('/^'.$splitday[0].'-'.$i.'/');\n \t\t\t\t// build query data\n \t\t\t\t$querydata \t= \tarray(\n \t\t\t\t\t'use_date' \t=> \t$regex_Date\n \t\t\t\t\t);\n \t\t\t\t// count and insert data to array\n \t\t\t\tarray_push($count, $use_data->count($querydata));\n \t\t\t}\n \t\t}\n \t\t\n \t\t$return\t\t=\tarray(\n \t\t\t'name'\t\t=>\t\t'User',\n \t\t\t'data'\t\t=>\t\t$count\n \t\t\t);\n\n \t\treturn $return;\t\n \t}", "protected function totalUsers($all = false)\n {\n if (! $all) {\n return $this->user->where('active', 1)->count();\n }\n\n return $this->user->count();\n }", "public static function allTransactionCount($searchByUser, $searchByTransactionID, $searchByTransactionStatus, $searchByTransactionType, $searchByFromUserName, $searchByToUserName, $searchByTransactionCreatedAt, $adminId = null)\n {\n // Total Count\n $totalCount = UserTransaction::join('users AS from_user', 'from_user.id', '=', 'user_transactions.from_user_id')\n ->leftJoin('users AS to_user', 'to_user.id', '=', 'user_transactions.to_user_id')\n ->leftJoin('user_beneficiaries','user_beneficiaries.id','=','user_transactions.beneficiary_id');\n\n // Get history of given admin id\n if ($adminId != null) {\n $totalCount = $totalCount->where('user_transactions.created_by', $adminId);\n }\n\n // Search by user\n if ($searchByUser !== null) {\n $totalCount = $totalCount->where(function ($query) use ($searchByUser) {\n $query->where('user_transactions.to_user_id', $searchByUser)\n ->orWhere('user_transactions.from_user_id', $searchByUser)\n ->orWhere('user_transactions.beneficiary_id',$searchByUser);\n\n });\n }\n // Search by transaction ID\n if ($searchByTransactionID !== null) {\n $totalCount = $totalCount->where('user_transactions.transaction_id', 'LIKE', \"%$searchByTransactionID%\");\n }\n\n // Search by transaction status\n if ($searchByTransactionStatus !== null) {\n $totalCount = $totalCount->where('user_transactions.transaction_status', $searchByTransactionStatus);\n }\n\n // Search by transaction created date\n if ($searchByTransactionCreatedAt !== null) {\n $totalCount = $totalCount->where(DB::raw('DATE_FORMAT(user_transactions.created_at, \"%Y-%m-%d, %h:%i:%s %p\")'), 'LIKE', \"%$searchByTransactionCreatedAt%\");\n }\n\n // Search by transaction type\n if ($searchByTransactionType !== null) {\n $totalCount = $totalCount->where('user_transactions.transaction_type', $searchByTransactionType);\n }\n\n // Search by From user name\n if ($searchByFromUserName !== null) {\n $totalCount = $totalCount->where(DB::raw('CASE WHEN user_transactions.transaction_type=' . Config::get('constant.ADD_MONEY_TRANSACTION_TYPE') . ' THEN \"' . Config::get('constant.HELAPAY_ADMIN_NAME') . '\" ELSE CASE WHEN from_user.verification_status=' . Config::get('constant.UNREGISTERED_USER_STATUS') . ' THEN from_user.mobile_number ELSE from_user.full_name END END'), 'LIKE', \"%$searchByFromUserName%\");\n }\n\n // Search by To user name\n if ($searchByToUserName !== null) {\n $totalCount = $totalCount->where(DB::raw('CASE \n WHEN user_transactions.transaction_type=' . Config::get('constant.ADD_MONEY_TRANSACTION_TYPE') . ' THEN \n CASE WHEN from_user.verification_status=' . Config::get('constant.UNREGISTERED_USER_STATUS') . ' THEN from_user.mobile_number \n ELSE from_user.full_name END WHEN user_transactions.transaction_type=' . Config::get('constant.WITHDRAW_MONEY_TRANSACTION_TYPE') . ' THEN \"' . Config::get('constant.HELAPAY_ADMIN_NAME') . '\" \n WHEN user_transactions.transaction_type = ' . Config::get('constant.ADD_COMMISSION_TO_WALLET_TRANSACTION_TYPE') . ' THEN \"' . Config::get('constant.SELF_USER') . '\" \n WHEN user_transactions.transaction_type =' . Config::get('constant.WITHDRAW_MONEY_FROM_COMMISSION_TRANSACTION_TYPE') . ' THEN \"' . Config::get('constant.HELAPAY_ADMIN_NAME') . '\" \n WHEN user_transactions.transaction_type =' . Config::get('constant.BENEFICIARY_TRANSFER_TYPE') . ' THEN user_beneficiaries.name\n WHEN user_transactions.transaction_type = ' . Config::get('constant.E_VOUCHER_TRANSACTION_TYPE') . ' THEN \n CASE WHEN user_transactions.to_user_id IS NULL THEN \"' . Config::get('constant.SELF_USER') . '\" \n ELSE CASE WHEN to_user.verification_status=' . Config::get('constant.UNREGISTERED_USER_STATUS') . ' THEN to_user.mobile_number \n ELSE to_user.full_name END \n END \n WHEN user_transactions.transaction_type = ' . Config::get('constant.REDEEMED_TRANSACTION_TYPE') . ' THEN \n CASE WHEN user_transactions.to_user_id IS NULL THEN \"' . Config::get('constant.SELF_USER') . '\" \n ELSE CASE WHEN to_user.verification_status=' . Config::get('constant.UNREGISTERED_USER_STATUS') . ' THEN to_user.mobile_number \n ELSE to_user.full_name END \n END \n ELSE CASE WHEN to_user.verification_status=' . Config::get('constant.UNREGISTERED_USER_STATUS') . ' THEN to_user.mobile_number \n ELSE to_user.full_name END \n END'), 'LIKE', \"%$searchByToUserName%\");\n }\n\n $totalCount = $totalCount->count();\n return $totalCount;\n }", "public function countMembers($filters=array())\n\t{\n\t\t$query = \"SELECT COUNT(DISTINCT v.username) \";\n\t\t$query .= $this->_buildMembersQuery($filters);\n\n\t\t$this->_db->setQuery($query);\n\t\treturn $this->_db->loadResult();\n\t}", "public function getCount($user) {\n $query = $this\n ->createQueryBuilder('t')\n ->leftJoin('t.suite', 's')\n ->leftJoin('s.project', 'p')\n ->leftJoin('p.manager', 'm')\n ->select('count (s)');\n if ($user != NULL) {\n $query->where('p.manager = :id')\n ->orWhere('p.client = :id')\n ->setParameter('id', $user->getId());\n }\n return $query->getQuery()\n ->getSingleScalarResult();\n }", "public function countNewMembers()\n\t{\n\t\t$criteria = new CDbCriteria();\n\t\t$criteria->condition = \"superuser <> 1\";\n\t\t$criteria->order = \"created DESC\";\n\t\t$count = ZoneUser::model()->count($criteria);\n\t\treturn $count;\n\t}", "public function countMembers()\n {\n return $this->users->count();\n }", "public function getCountUsers(){\n $connect = ConnectionManager::get('default');\n $fila = $connect->execute(\"select count(*) from Usuarios;\")->fetchAll();\n return $fila[0];\n }", "function count_unread_personal_message_publications()\r\n {\r\n $pmdm = PersonalMessengerDataManager :: get_instance();\r\n return $pmdm->count_unread_personal_message_publications($this->user);\r\n }", "public function totalPotentialUsers()\n {\n return $this->users()->count() + $this->invitations()->count();\n }", "function count(User $user) {\n $project_users_table = TABLE_PREFIX . 'project_users';\n $users_table = TABLE_PREFIX . 'users';\n return (integer) DB::executeFirstCell(\"SELECT COUNT(user_id) FROM $project_users_table, $users_table WHERE $project_users_table.project_id = ? AND ($project_users_table.user_id = $users_table.id AND $users_table.state >= ?)\", $this->object->getId(), STATE_VISIBLE);\n }", "public function total_data_objects()\n {\n if(isset($this->total_data_objects)) return $this->total_data_objects;\n $this->total_data_objects = 0;\n \n $result = $this->mysqli_slave->query(\"SELECT COUNT(*) count FROM data_objects WHERE published=1 AND visibility_id=\".Visibility::find('visible'));\n if($result && $row=$result->fetch_assoc()) $this->total_data_objects = $row['count'];\n return $this->total_data_objects;\n }", "function countUsers(){\n\t\t\t\t\trequire_once(\"database\\database_connection.php\");\n\t\t\t\t\t$conn=database();\n\t\t\t\t\t//Query the database\n\t\t\t\t\t$resultSet = $conn->query(\"SELECT * FROM users_count_view\");\n\n\t\t\t\t\tif($resultSet->num_rows != 0){\n\t\t\t\t\t\twhile($rows = $resultSet->fetch_assoc()){\n\t\t\t\t\t\t\t$users = $rows['users'];\n\n\t\t\t\t\t\t\techo \"<h4 class='heading'>\n\t\t\t\t\t\t\tRegistered users: $users\n\t\t\t\t\t\t\t</h4>\";\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\techo\"ERROR\";\n\t\t\t\t\t}\n\t\t \t\t$conn->close();\n}", "public function getAllJoinLvUserCount()\n {\n $sql = \"SELECT COUNT(1) FROM casino_user_point \";\n return $this->_rdb->fetchOne($sql);\n }", "function get_all_users_count()\n {\n $this->db->from('users');\n return $this->db->count_all_results();\n }", "function get_all_users_count()\n {\n $this->db->from('users');\n return $this->db->count_all_results();\n }", "public function updaterArticlesCount()\n {\n //return $this->hasOne('NationRegion','id','nation_region_id');\n return $this->updater_articles()\n ->selectRaw('updated_user, count(*) as aggregate')\n ->groupBy('updated_user');\n }", "public static function GetEventsRecordingsCount( $user_id )\n {\n\t\t$dend = mktime(0, 0, 0, date('m'), date('d')-30, date('Y'));\n \n\t $count = EventVideoQuery::create()->select(array('Id'))->filterByUserId($user_id)\n ->filterByPdate($dend, Criteria::GREATER_EQUAL)-> count();\n \n\t return $count;\n }", "public function getSubscribersCount();", "function getAllStudentCount($connection){\n $query = \"SELECT fs.*,fu.user_role FROM forum_student fs LEFT JOIN forum_users fu ON fs.user_id=fu.id WHERE fu.user_role='student'\";\n $count = $connection->query($query);\n return $count;\n }", "public function index()\n {\n (new Calendar())->getOutDays();\n $user = Auth::user();\n $year = $_GET['year'] ?? Carbon::now()->year;\n $data = array(\n \"hours\" => array(1, 2, 3, 4, 5, 6),\n \"date\" => Carbon::now('Europe/Paris'),\n \"categories\" => Category::all(),\n \"calendar\" => (new Calendar())->show(),\n \"navi\" => (new Calendar())->navigation(),\n \"counts\" => array(\n 'f' => Helpers::getCounter('f', $year, $user),\n 'cp' => Helpers::getCounter('cp', $year, $user),\n 'r' => Helpers::getCounter('r', $year, $user),\n 'am' => Helpers::getCounter('am', $year, $user),\n 'cs' => Helpers::getCounter('cs', $year, $user),\n 'a' => Helpers::getCounter('a', $year, $user),\n ),\n \"days\" => Helpers::getNumberRange(1, 31),\n \"months\" => Helpers::getNumberRange(1, 12),\n \"years\" => Helpers::getNumberRange(2015, 2030),\n );\n\n return view('pages.wcalendar.index', compact('data'));\n }", "public function count()\n {\n return $this->onlineUsers->count();\n }", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();" ]
[ "0.6198609", "0.6029905", "0.5829278", "0.57265466", "0.5712421", "0.564941", "0.5628115", "0.5564134", "0.5560409", "0.5533492", "0.55293584", "0.55071753", "0.5494965", "0.5344268", "0.534248", "0.534248", "0.534248", "0.53321004", "0.53293794", "0.5319155", "0.53061175", "0.5296471", "0.5289069", "0.52849853", "0.5275254", "0.52705353", "0.52643037", "0.52584743", "0.5247386", "0.5241359", "0.524093", "0.52373856", "0.5231021", "0.52190846", "0.5189914", "0.51889676", "0.5186575", "0.5186224", "0.51838386", "0.51723486", "0.51650214", "0.5164863", "0.5148223", "0.5141914", "0.5133914", "0.5123737", "0.5104339", "0.5100465", "0.509176", "0.5090428", "0.5082579", "0.5079213", "0.5073572", "0.5056318", "0.50421476", "0.5040036", "0.50386655", "0.5037805", "0.5026282", "0.50239736", "0.50219935", "0.5017031", "0.50167996", "0.50100553", "0.50089693", "0.50022435", "0.4998499", "0.4995696", "0.4995625", "0.49861836", "0.49861836", "0.49861836", "0.49846175", "0.49793446", "0.4976403", "0.49763644", "0.49728283", "0.49705315", "0.49696514", "0.4961419", "0.4958893", "0.49460974", "0.4944348", "0.49419758", "0.4936578", "0.4935097", "0.49344742", "0.49344742", "0.4928106", "0.4927001", "0.4923118", "0.4918776", "0.49172765", "0.49172163", "0.49155304", "0.49155304", "0.49155304", "0.49155304", "0.49155304", "0.49155304" ]
0.70849925
0
Find all calendars by given user.
public function findCalendarsByUser(UserInterface $user) { $qb = $this->repository->createQueryBuilder('c'); $qb->where('c.createdBy = :user'); $qb->setParameter('user', $user); return $qb->getQuery()->execute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCalendars(User $user = null);", "public function getUserCalendar(User $user): array\n {\n $calendarsURL = $user->getCalendars();\n\n $calendars = [];\n foreach ($calendarsURL as $calendar) {\n array_push($calendars, $this->fetchEvents($calendar->getURL()));\n }\n return $calendars;\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 getCalendarsForUser($principalUri) {\n\t\n\n\t\t\\GO::debug(\"c:getCalendarsForUser($principalUri)\");\n\t\t\n\t\tif(!isset($this->_cachedCalendars[$principalUri])){\n\t\t\n\t\t\t$user = $this->_getUser($principalUri);\n\t\t\t\t\t\n\t\t\t$findParams = \\GO\\Base\\Db\\FindParams::newInstance()->ignoreAcl()\n\t\t\t\t->joinModel(array(\n\t\t\t\t\t\t'model' => 'GO\\Sync\\Model\\UserCalendar',\n\t\t\t\t\t\t'localTableAlias' => 't', //defaults to \"t\"\n\t\t\t\t\t\t'localField' => 'id', //defaults to \"id\"\n\t\t\t\t\t\t'foreignField' => 'calendar_id', //defaults to primary key of the remote model\n\t\t\t\t\t\t'tableAlias' => 'l', //Optional table alias\n\t\t\t\t))\n\t\t\t\t->criteria(\\GO\\Base\\Db\\FindCriteria::newInstance()->addCondition('user_id', $user->id, '=', 'l'));\n\n\t\t\t$stmt = \\GO\\Calendar\\Model\\Calendar::model()->find($findParams);\n\t\t\t\n\t\t\tif(!$stmt->rowCount()){\t\t\n\t\t\t //If the sync settings dialog for this user is never opened no default settings are created\n\t\t\t \\GO\\Sync\\Model\\Settings::model()->findForUser($user); //create default settings\n\t\t\t $stmt = \\GO\\Calendar\\Model\\Calendar::model()->find($findParams);\n\t\t\t}\n\n\t\t\t$this->_cachedCalendars[$principalUri] = array();\n\t\t\twhile ($calendar = $stmt->fetch()) {\n\t\t\t\t$this->_cachedCalendars[$principalUri][] = $this->_modelToDAVCalendar($calendar, $principalUri);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\\GO::debug($this->_cachedCalendars[$principalUri]);\n\t\t\n\t\treturn $this->_cachedCalendars[$principalUri];\n\t}", "public static function getSharedCalendarsForUser($a_usr_id = 0)\r\n\t{\r\n\t\tglobal $ilDB,$ilUser,$rbacreview;\r\n\t\t\r\n\t\tif(!$a_usr_id)\r\n\t\t{\r\n\t\t\t$a_usr_id = $ilUser->getId();\r\n\t\t}\r\n\r\n\t\t$query = \"SELECT * FROM cal_shared \".\r\n\t\t\t\"WHERE obj_type = \".$ilDB->quote(self::TYPE_USR ,'integer').\" \".\r\n\t\t\t\"AND obj_id = \".$ilDB->quote($a_usr_id ,'integer').\" \".\r\n\t\t\t\"ORDER BY create_date\";\r\n\t\t$res = $ilDB->query($query);\r\n\t\t$calendars = array();\r\n\t\twhile($row = $res->fetchRow(DB_FETCHMODE_OBJECT))\r\n\t\t{\r\n\t\t\t$calendars[] = $row->cal_id; \r\n\t\t\t\r\n\t\t\t$shared[$row->cal_id]['cal_id'] = $row->cal_id;\r\n\t\t\t$shared[$row->cal_id]['create_date'] = $row->create_date;\r\n\t\t\t$shared[$row->cal_id]['obj_type'] = $row->obj_type;\r\n\t\t}\r\n\t\t\r\n\t\t$assigned_roles = $rbacreview->assignedRoles($ilUser->getId());\r\n\t\t\r\n\t\t$query = \"SELECT * FROM cal_shared \".\r\n\t\t\t\"WHERE obj_type = \".$ilDB->quote(self::TYPE_ROLE ,'integer').\" \".\r\n\t\t\t\"AND \".$ilDB->in('obj_id',$assigned_roles,false ,'integer');\r\n\r\n\t\t$res = $ilDB->query($query);\r\n\t\twhile($row = $res->fetchRow(DB_FETCHMODE_OBJECT))\r\n\t\t{\r\n\t\t\tif(in_array($row->cal_id,$calendars))\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif(ilCalendarCategories::_isOwner($ilUser->getId(),$row->cal_id))\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$shared[$row->cal_id]['cal_id'] = $row->cal_id;\r\n\t\t\t$shared[$row->cal_id]['create_date'] = $row->create_date;\r\n\t\t\t$shared[$row->cal_id]['obj_type'] = $row->obj_type;\r\n\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\treturn $shared ? $shared : array();\r\n\t\t// TODO: return also role calendars\r\n\t\t\r\n\t}", "public function getCalendarItems($month = FALSE, $year = FALSE, $user_id = FALSE)\n\t{\n\t\t$sql = $this->db->select();\n\t\t$sql = $sql->from(array('i'=>'times'))->columns(array(new \\Zend\\Db\\Sql\\Expression('SUM(hours) AS total'), 'date', 'creator', 'user_id'));\n\n\t\tif($month)\n\t\t{\n\t\t\t$sql = $sql->where(array('month' => $month));\n\t\t}\n\t\t\n\t\tif($year)\n\t\t{\n\t\t\t$sql = $sql->where(array('year' => $year));\n\t\t}\n\t\t\n\t\tif($user_id)\n\t\t{\n\t\t\t$sql = $sql->where('creator = ? ', $user_id);\n\t\t}\t\t\t\t\n\t\t\n\t\t$sql = $sql->join(array('u' => 'users'), 'u.id = i.creator', array('creator_first_name' => 'first_name', 'creator_last_name' => 'last_name'), 'left');\t\t\t\t \n\t\t$sql = $sql->group('date')\n\t\t\t\t ->group('creator');\n\t\t\n\t\t$route_options = array('month' => $month, 'year' => $year);\n\t\t$route_options['user_id'] = $user_id;\n\t\t\n\t\treturn $this->_translateCalendarItems($this->getRows($sql), 'date', array('route_name' => 'times/view-day', 'options' => $route_options));\n\t}", "public function listCalendars()\n {\n Kronolith::initialize();\n $all_external_calendars = $GLOBALS['calendar_manager']->get(Kronolith::ALL_EXTERNAL_CALENDARS);\n $result = new stdClass;\n $auth_name = $GLOBALS['registry']->getAuth();\n\n // Calendars. Do some twisting to sort own calendar before shared\n // calendars.\n foreach (array(true, false) as $my) {\n foreach ($GLOBALS['calendar_manager']->get(Kronolith::ALL_CALENDARS) as $id => $calendar) {\n $owner = ($auth_name && ($calendar->owner() == $auth_name));\n if (($my && $owner) || (!$my && !$owner)) {\n $result->calendars['internal'][$id] = $calendar->toHash();\n }\n }\n\n // Tasklists\n if (Kronolith::hasApiPermission('tasks')) {\n foreach ($GLOBALS['registry']->tasks->listTasklists($my, Horde_Perms::SHOW, false) as $id => $tasklist) {\n if (isset($all_external_calendars['tasks/' . $id])) {\n $owner = ($auth_name &&\n ($tasklist->get('owner') == $auth_name));\n if (($my && $owner) || (!$my && !$owner)) {\n $result->calendars['tasklists']['tasks/' . $id] =\n $all_external_calendars['tasks/' . $id]->toHash();\n }\n }\n }\n }\n }\n\n // Resources\n if (!empty($GLOBALS['conf']['resource']['driver'])) {\n foreach (Kronolith::getDriver('Resource')->listResources() as $resource) {\n if ($resource->get('type') != Kronolith_Resource::TYPE_GROUP) {\n $rcal = new Kronolith_Calendar_Resource(array(\n 'resource' => $resource\n ));\n $result->calendars['resource'][$resource->get('calendar')] = $rcal->toHash();\n } else {\n $rcal = new Kronolith_Calendar_ResourceGroup(array(\n 'resource' => $resource\n ));\n $result->calendars['resourcegroup'][$resource->getId()] = $rcal->toHash();\n }\n }\n }\n\n // Timeobjects\n foreach ($all_external_calendars as $id => $calendar) {\n if ($calendar->api() != 'tasks' && $calendar->display()) {\n $result->calendars['external'][$id] = $calendar->toHash();\n }\n }\n\n // Remote calendars\n foreach ($GLOBALS['calendar_manager']->get(Kronolith::ALL_REMOTE_CALENDARS) as $url => $calendar) {\n $result->calendars['remote'][$url] = $calendar->toHash();\n }\n\n // Holidays\n foreach ($GLOBALS['calendar_manager']->get(Kronolith::ALL_HOLIDAYS) as $id => $calendar) {\n $result->calendars['holiday'][$id] = $calendar->toHash();\n }\n\n return $result;\n }", "function get_calendars() {\n\n\t\t// Get the attached calendars\n\t\t$calendars = wp_get_post_terms( $this->post_id , 'calendar' );\n\t\t$this->calendars = $calendars;\n\t\t\n\t\t// Loop through calendars, checking permissions\n\t\tforeach ( $calendars as $calendar ) {\n\t\t\t\n\t\t\t// Is it a group calendar?\n\t\t\tif ( is_group_calendar( $calendar->term_id ) ) :\n\t\t\t\t$group_id\t= groups_get_id( $calendar->slug );\n\t\t\t\t$can_view \t= groups_is_user_member( get_current_user_id() , $group_id ) ? true : false;\n\t\t\telse :\n\t\t\t\t$can_view = true;\n\t\t\tendif;\n\t\t\t\n\t\t\t// If we find a calendar for which the user is authorized, go ahead and display it\n\t\t\tif( $can_view ) :\n\t\t\t\t$this->calendar = $calendar;\n\t\t\t\t$this->can_view = true;\n\t\t\t\tbreak;\n\t\t\tendif;\n\t\t}\n\n\t\t// If the user is not allowed to view any calendar, redirect them to the group\n\t\tif ( !$can_view ) {\n\t\t\t$redirect = SITEURL . '/groups/' . $this->calendar->slug;\n\t\t\tbp_core_add_message( 'You cannot access events on this calendar.' , 'error' );\n\t\t\tbp_core_redirect( $redirect );\n\t\t}\n\t}", "public function fetchAllForCalendarHome(string $principalUri): array;", "public function getCalendarEvents($organizationId, $userId, $calendarId, $start, $end, $connections, $extraField);", "public function test_getAllCalendars() {\n// \t\t$user = TestingUtil::getTestAdminUser();\n// \t\t$userApp = new UserApp();\n// \t\t$userApp->initializeForAppID($user, 5);\n// \t\t$outlookClient = new OutlookClient($user, $userApp);\n// \t\t$outlookCalendar = new OutlookCalendar($outlookClient);\n// \t\t$calendars = $outlookCalendar->getAllCalendars();\n// \t\t$this->assertCount(3, $calendars);\n\t\t$this->assertEquals(1,1);\n\t}", "public function getCalendars($where = null)\n {\n $result = [];\n $byParent = [];\n $values = [];\n $cond = $where ? ' where ' . self::buildWhere($where, $values) : '';\n $stmt = $this->db->prepare('select * from calendars ' . $cond);\n\n if (!$stmt->execute($values)) {\n throw new Exception($this->getPDOError('Cannot get calendars list.'), E_APP_GET_CALENDARS);\n }\n\n while ($e = $stmt->fetch(PDO::FETCH_ASSOC)) {\n\n $e['intervals'] = $this->getCalendarIntervals(['calendar' => @$e['id']]);\n $e['daysPerMonth'] = intval($e['daysPerMonth']);\n $e['daysPerWeek'] = intval($e['daysPerWeek']);\n $e['hoursPerDay'] = intval($e['hoursPerDay']);\n\n if (!$where) {\n $parentId = $e['parentId'] ? $e['parentId'] : '';\n\n if (!isset($byParent[$parentId])) {\n $byParent[$parentId] = [];\n }\n\n $byParent[$parentId][] = $e;\n } else {\n $result[] = $e;\n }\n }\n\n return $where ? $result : self::buildTree($byParent, '');\n }", "public function findEventsByUser(UserInterface $user)\r\n {\r\n $qb = $this->repository->createQueryBuilder('e');\r\n $qb->where('e.createdBy = :user');\r\n $qb->setParameter('user', $user);\r\n\r\n return $qb->getQuery()->execute();\r\n }", "public static function delete_all_events($user_id = NULL) {\r\n global $uid;\r\n $resp = Database::get()->query(\"DELETE FROM personal_calendar WHERE user_id = ?\", $uid);\r\n if ($resp) {\r\n Log::record(0, MODULE_ID_PERSONALCALENDAR, LOG_DELETE, array('user_id' => $uid, 'id' => 'all'));\r\n return array('success' => true, 'message' => '');\r\n } else {\r\n return array('success' => false, 'message' => 'Database error');\r\n }\r\n }", "public function getEventos($usuario) {\n $this->db->select('*');\n $this->db->from('calendario');\n if ($usuario) {\n $this->db->where('usuario', $usuario);\n }\n \n return $this->db->get()->result();\n }", "function loadPublicCalendars() {\n $sql = \"\n SELECT c.calendar_id, c.title, c.color\n FROM %s AS c\n WHERE c.surfer_id IS NULL\n ORDER BY c.title\n \";\n $result = $this->databaseQueryFmt($sql, $this->tableCalendars);\n if (!$result || $result->count() == 0) {\n // database error or no public calendars defined\n return FALSE;\n }\n\n $calendars = array();\n while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC)) {\n $calendars[] = $row;\n }\n\n return $calendars;\n }", "public function allForUser($userId);", "public function allForUser($userId);", "public function calendars()\n {\n return $this->hasMany('App\\Models\\Calendar');\n }", "public static function get_all_course_events($cid = NULL) {\r\n global $uid, $course_id;\r\n if (is_null($cid)) {\r\n $cid = $course_id;\r\n }\r\n return Database::get()->queryArray(\"SELECT id, title, content FROM personal_calendar WHERE user_id = ? AND reference_obj_course = ? \", $uid, $cid);\r\n }", "public static function get_calendar_events($scope = \"month\", $startdate = null, $enddate = null, $user_id = NULL) {\r\n global $uid;\r\n\r\n if (is_null($user_id)) {\r\n $user_id = $uid;\r\n }\r\n\r\n //form date range condition\r\n $dateconditions = array(\"month\" => \"date_format(?t\".',\"%Y-%m\") = date_format(start,\"%Y-%m\")',\r\n \"week\" => \"YEARWEEK(?t,1) = YEARWEEK(start,1)\",\r\n \"day\" => \"date_format(?t\".',\"%Y-%m-%d\") = date_format(start,\"%Y-%m-%d\")');\r\n if (!is_null($startdate) && !is_null($enddate)) {\r\n $datecond = \" AND start >= ?t AND start <= ?t\";\r\n } elseif (!is_null($startdate)) {\r\n $datecond = \" AND \";\r\n $datecond .= (array_key_exists($scope, $dateconditions))? $dateconditions[$scope]:$dateconditions[\"month\"];\r\n } else {\r\n $datecond = \"\";\r\n }\r\n $student_groups = array_map(function ($item) {\r\n return $item->group_id;\r\n }, Database::get()->queryArray('SELECT group_id\r\n FROM group_members, `group`\r\n WHERE group_id = `group`.id AND user_id = ?d', $uid));\r\n if (count($student_groups)) {\r\n $group_sql_template = 'OR group_id IN (' . implode(', ', array_fill(0, count($student_groups), '?d')) . ')';\r\n $group_sql_template2 = 'AND group_id IN (' . implode(', ', array_fill(0, count($student_groups), '?d')) . ')';\r\n } else {\r\n $group_sql_template = '';\r\n $group_sql_template2 = '';\r\n }\r\n //retrieve events from various tables according to user preferences on what type of events to show\r\n $q = '';\r\n $q_args = array();\r\n $q_args_templ = array($user_id);\r\n if (!is_null($startdate)) {\r\n $q_args_templ[] = $startdate;\r\n }\r\n if (!is_null($enddate)) {\r\n $q_args_templ[] = $enddate;\r\n }\r\n\r\n if (isset($uid)) {\r\n Calendar_Events::get_calendar_settings();\r\n if (Calendar_Events::$calsettings->show_personal == 1) {\r\n $dc = str_replace('start', 'pc.start', $datecond);\r\n $q .= \"SELECT id, title, start, date_format(start,'%Y-%m-%d') startdate, duration, date_format(addtime(start, time(duration)), '%Y-%m-%d %H:%i') `end`, content, 'personal' event_group, 'event-special' class, 'personal' event_type, null as course FROM personal_calendar pc \"\r\n . \"WHERE user_id = ?d \" . $dc;\r\n $q_args = array_merge($q_args, $q_args_templ);\r\n }\r\n if (Calendar_Events::$calsettings->show_admin == 1) {\r\n //admin\r\n if (!empty($q)) {\r\n $q .= \" UNION \";\r\n }\r\n $dc = str_replace('start', 'adm.start', $datecond);\r\n $q .= \"SELECT id, title, start, date_format(start, '%Y-%m-%d') startdate, duration, date_format(addtime(start, time(duration)), '%Y-%m-%d %H:%i') `end`, content, 'admin' event_group, 'event-success' class, 'admin' event_type, null as course FROM admin_calendar adm \"\r\n . \"WHERE visibility_level >= ?d \" . $dc;\r\n $q_admin_events_args = $q_args_templ;\r\n $q_admin_events_args[0] = Calendar_Events::get_user_visibility_level();\r\n $q_args = array_merge($q_args, $q_admin_events_args);\r\n }\r\n if (Calendar_Events::$calsettings->show_course == 1) {\r\n // agenda\r\n if (!empty($q)) {\r\n $q .= \" UNION \";\r\n }\r\n $dc = str_replace('start', 'ag.start', $datecond);\r\n $q .= \"SELECT ag.id, CONCAT(c.title,': ',ag.title), ag.start, date_format(ag.start,'%Y-%m-%d') startdate, ag.duration, date_format(addtime(ag.start, time(ag.duration)), '%Y-%m-%d %H:%i') `end`, content, 'course' event_group, 'event-info' class, 'agenda' event_type, c.code course \"\r\n . \"FROM agenda ag JOIN course_user cu ON ag.course_id=cu.course_id \"\r\n . \"JOIN course c ON cu.course_id=c.id \"\r\n . \"JOIN course_module cm ON c.id=cm.course_id \"\r\n . \"WHERE cu.user_id = ?d \"\r\n . \"AND ag.visible = 1 \"\r\n . \"AND cm.module_id = \" . MODULE_ID_AGENDA . \" \"\r\n . \"AND cm.visible = 1 \"\r\n . \"AND c.visible != \" . COURSE_INACTIVE . \" \"\r\n . $dc;\r\n $q_args = array_merge($q_args, $q_args_templ);\r\n\r\n // BigBlueButton\r\n if (!empty($q)) {\r\n $q .= \" UNION \";\r\n }\r\n $dc = str_replace('start', 'tc.start_date', $datecond);\r\n $q .= \"SELECT tc.id, CONCAT(c.title,': ',tc.title), tc.start_date start, date_format(tc.start_date,'%Y-%m-%d') startdate, '00:00' duration, date_format(tc.start_date, '%Y-%m-%d %H:%i') `end`, tc.description content, 'course' event_group, 'event-info' class, 'teleconference' event_type, c.code course \"\r\n . \"FROM tc_session tc JOIN course_user cu ON tc.course_id=cu.course_id \"\r\n . \"JOIN course c ON cu.course_id=c.id \"\r\n . \"WHERE cu.user_id = ?d AND tc.active = '1' AND c.visible != \" . COURSE_INACTIVE . \" \"\r\n . $dc;\r\n $q_args = array_merge($q_args, $q_args_templ);\r\n\r\n // requests\r\n if (!empty($q)) {\r\n $q .= \" UNION \";\r\n }\r\n $dc = str_replace('start', 'rfd.data', $datecond);\r\n $q .= \"SELECT req.id, concat(c.title, ?s, req.title), concat(rfd.data, ' 08:00:00') start, rfd.data startdate, '00:00' duration, concat(rfd.data, ' 08:00:01') `end`, concat(req.description, '\\n', '(deadline: ', rfd.data, ')') content, 'course' event_group, 'event-info' class, 'request' event_type, c.code course \"\r\n . \"FROM request req JOIN course c ON req.course_id = c.id\r\n JOIN request_field_data rfd ON rfd.request_id = req.id\r\n JOIN request_field rf ON rf.id = rfd.field_id\r\n LEFT JOIN request_watcher rw ON req.id = rw.request_id\r\n WHERE req.state NOT IN (?d, ?d)\r\n AND (req.creator_id = ?d OR rw.user_id = ?d) \"\r\n . $dc;\r\n $q_args = array_merge($q_args, [': ' . trans('langSingleRequest') . ': ',\r\n REQUEST_STATE_LOCKED, REQUEST_STATE_CLOSED, $uid], $q_args_templ);\r\n }\r\n if (Calendar_Events::$calsettings->show_deadline == 1) {\r\n // assignments\r\n if (!empty($q)) {\r\n $q .= \" UNION \";\r\n }\r\n\r\n $dc = str_replace('start', 'ass.deadline', $datecond);\r\n $q .= \"SELECT ass.id, CONCAT(c.title,': ',ass.title), ass.deadline start, date_format(ass.deadline,'%Y-%m-%d') startdate, '00:00' duration, date_format(ass.deadline, '%Y-%m-%d %H:%i') `end`, concat(ass.description,'\\n','(deadline: ',deadline,')') content, 'deadline' event_group, 'event-important' class, 'assignment' event_type, c.code course \"\r\n . \"FROM assignment ass JOIN course_user cu ON ass.course_id=cu.course_id \"\r\n . \"JOIN course c ON cu.course_id=c.id LEFT JOIN assignment_to_specific ass_sp ON ass.id=ass_sp.assignment_id \"\r\n . \"WHERE cu.user_id = ?d \" . $dc\r\n . \"AND (assign_to_specific = 0 OR\r\n ass.id IN\r\n (SELECT assignment_id FROM assignment_to_specific WHERE user_id = ?d\r\n UNION\r\n SELECT assignment_id FROM assignment_to_specific\r\n WHERE group_id != 0 $group_sql_template2)\r\n OR cu.status = 1) \"\r\n . \"AND ass.active = 1 AND c.visible != \" . COURSE_INACTIVE . \" \";\r\n $q_args = array_merge($q_args, $q_args_templ, array($user_id), $student_groups);\r\n\r\n // exercises\r\n if (!empty($q)) {\r\n $q .= \" UNION \";\r\n }\r\n $dc = str_replace('start', 'ex.end_date', $datecond);\r\n $q .= \"SELECT ex.id, CONCAT(c.title,': ',ex.title), ex.end_date start, date_format(ex.end_date,'%Y-%m-%d') startdate, '00:00' duration, date_format(addtime(ex.end_date, time('00:00')), '%Y-%m-%d %H:%i') `end`, concat(ex.description,'\\n','(deadline: ',ex.end_date,')') content, 'deadline' event_group, 'event-important' class, 'exercise' event_type, c.code course \"\r\n . \"FROM exercise ex JOIN course_user cu ON ex.course_id=cu.course_id \"\r\n . \"JOIN course c ON cu.course_id=c.id LEFT JOIN exercise_to_specific ex_sp ON ex.id = ex_sp.exercise_id \"\r\n . \"WHERE cu.user_id = ?d \" . $dc\r\n . \"AND ex.public = 1 AND ex.active = 1 AND (assign_to_specific = 0 OR ex_sp.user_id = ?d $group_sql_template) AND c.visible != \" . COURSE_INACTIVE . \" \";\r\n $q_args = array_merge($q_args, $q_args_templ, array($user_id), $student_groups);\r\n }\r\n }\r\n if (empty($q)) {\r\n return null;\r\n }\r\n $q .= \" ORDER BY start, event_type\";\r\n return Database::get()->queryArray($q, $q_args);\r\n }", "public function getCalendarObjects($calendarId)\n {\n $params[\"calendar_id\"] = $calendarId;\n\n list($type, $user) = explode(\"_\", $calendarId);\n\n $events = MyScEvents::getMyScEvents($params);\n\n// Info: Array scheme\n// $events[] = array(\n// \"allDay\"=> false,\n// \"description\" => $description,\n// \"end\" => $end->format(\"Y-m-d H:i:s\"),\n// \"id\" => $id,\n// \"start\" => $start->format(\"Y-m-d H:i:s\"),\n// \"title\" => $title,\n// \"summary\" => \"Test2\",\n// \"calendardata\" => \"BEGIN:VCALENDAR\\nVERSION:2.0\\n\"\n// . \"PRODID:mySchoolCalendar\"\n// . \\OCP\\App::getAppVersion('mySchoolCalendar') . \"\\n\"\n// . $vevent->serialize() . \"END:VCALENDAR\"\n// );\n\n $objects = array();\n\n foreach ($events as $event) {\n $object = array(\n \"id\" => $event[\"id\"],\n \"uri\" => $type . \"_event_\" . $event[\"id\"],\n \"lastmodified\" => time(),\n \"calendarid\" => $calendarId,\n \"calendardata\" => $event[\"calendardata\"]\n );\n\n $objects[] = $object;\n }\n\n return $objects;\n }", "public function getAllServicesByUser($userId) {\n $services = self::find()->where(['created_by' => $userId])->all();\n\n return $services;\n }", "public function findTodasLasReservas($usuario)\n {\n $em = $this->getEntityManager();\n \n $consulta = $em->createQuery('SELECT r FROM ReservaBundle:Reserva r JOIN r.espacio e WHERE r.usuario = :id ORDER BY r.fecha DESC');\n $consulta->setParameter('id', $usuario); \n \n return $consulta->getResult();\n }", "public static function getCollections($user_id, $options = []) {\n\t\t$options = array_merge([\n\t\t\t'type' => 'all',\n\t\t\t'conditions' => []\n\t\t], $options);\n\n\t\t//Remove contain flag, all must be included!\n\t\tif (isset($options['contain'])) {\n\t\t\tunset($options['contain']);\n\t\t}\n\n\t\t//Conditions\n\t\t$options['conditions']['UserCollection.deleted'] = 0;\n\t\t$options['conditions']['UserCollection.revision_id'] = 0;\n\t\t$options['conditions']['UserCollection.user_id'] = $user_id;\n\n\t\treturn parent::$db->selectEx(new self(), $options);\n\t}", "public function allByUser($user)\n {\n $this->andWhere('[[account_id]]=' . $user);\n return $this;\n }", "public function index()\n {\n return Calendar::all();\n }", "public function getAll($user = \"\")\n {\n $log = $user == \"\" ? R::findAll('mcslogs') : R::findAll('mcslogs',' user = :user', array( ':user' => $user ));\n return $log;\n }", "public function findPublicCalendarsByTerm($term, UserInterface $user)\r\n {\r\n $qb = $this->repository->createQueryBuilder('c');\r\n $qb->select('c.id, c.name, u.username');\r\n $qb->join('c.createdBy', 'u');\r\n $qb->where('c.name LIKE :term');\r\n $qb->orWhere('c.description LIKE :term');\r\n $qb->orWhere('u.username LIKE :term');\r\n $qb->andWhere('c.visible = :visible');\r\n $qb->andwhere('c.createdBy != :user');\r\n $qb->setMaxResults($this->autocompleteMaxResults);\r\n $qb->orderBy('c.name', 'ASC');\r\n $qb->setParameter('term', '%' . $term . '%');\r\n $qb->setParameter('visible', true);\r\n $qb->setParameter('user', $user);\r\n\r\n return $qb->getQuery()->getScalarResult();\r\n }", "public function countPublicCalendars(UserInterface $user)\r\n {\r\n $qb = $this->repository->createQueryBuilder('c');\r\n $qb->select('COUNT(c.id)');\r\n $qb->where('c.visible = :visible');\r\n $qb->andwhere('c.createdBy != :user');\r\n $qb->setParameter('visible', true);\r\n $qb->setParameter('user', $user);\r\n\r\n return $qb->getQuery()->getSingleScalarResult();\r\n }", "public function consultarEventosCalendarioUsuario($idUsuario, $fechaInicio, $fechaFin){\n\t\t\n\t\t\n\t\t$resultadoEventos = array();\n\t\t\n\t\t$idUsuario \t= parent::escaparQueryBDCliente($idUsuario); \n\t\t/*Citas--------------------------------------------------*/\n\t\t$query = \"SELECT C.idAgendaCita, C.fecha, C.horaInicio, C.fechaFin, C.horaFin, C.estado, C.observaciones, C.idMascota, C.idSucursal,\n\t\t\t\t\tC.idTipoCita, C.idPropietario,\n\t\t\t\t\tM.nombre as nombrePaciente, \n\t\t\t\t\tS.nombre as nombreSucursal, S.telefono1 as telefono1Sucursal, S.direccion,\n\t\t\t\t\tTC.nombre as nombreTipoCita,\n\t\t\t\t\tP.identificacion, P.nombre as nombrePropietario, P.apellido, P.telefono, P.celular, P.email\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tFROM tb_agendaCitas as C\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tINNER JOIN tb_agendaCitas_usuarios AS U on U.idAgendaCita = C.idAgendaCita\n\t\t\t\t\tINNER JOIN tb_mascotas as M on M.idMascota = C.idMascota\n\t\t\t\t\tINNER JOIN tb_sucursales AS S on S.idSucursal = C.idSucursal\n\t\t\t\t\tINNER JOIN tb_propietarios AS P on P.idPropietario = C.idPropietario\n\t\t\t\t\tLEFT JOIN tb_tiposCita AS TC on TC.idTipoCita = C.idTipoCita\n\t\t\t\t\t\n\t\t\t\t\tWHERE (C.estado <> 'Cancelada') AND (C.fecha BETWEEN '$fechaInicio' and '$fechaFin') AND (U.idUsuario = '$idUsuario') AND (U.estado = 'A') \";\n\t\t\n $conexion = parent::conexionCliente();\t\t\n\t\n\t\tif($res = $conexion->query($query)){\n while ($filas = $res->fetch_assoc()) {\n \t\t\t\n \t\t$color = \"\";\t\n \t\tif($filas['estado'] == \"inasistida\"){\n \t\t\t$color = \"#e57373\";\n \t\t}\n\n\t\t\t\t\t\tif($filas['estado'] == \"Atendida\"){\n \t\t\t$color = \"#9e9e9e\";\n \t\t}\n \t\n $resultadoEventos[] = array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'id'\t\t \t\t\t => $filas['idAgendaCita'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t'title'\t\t \t\t\t => $filas['nombrePropietario'].\" \".$filas['apellido'].\" (\".$filas['nombrePaciente'].\")\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t'start'\t\t\t\t\t => $filas['fecha'].\"T\".$filas['horaInicio'].\"-05:00\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t'end'\t\t \t\t\t => $filas['fechaFin'].\"T\".$filas['horaFin'].\"-05:00\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t'color'\t\t\t\t\t => $color,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'TipoCita'\t\t\t\t => \" -\".$filas['nombreTipoCita'].\"- \",\n\t\t\t\t\t\t\t\t\t\t\t\t\t'className'\t\t\t\t => 'cita'\n\t\t\t\t\t\t\t\t\t\t\t\t);\n \n \n \n }//fin while\n \n /* liberar el conjunto de resultados */\n $res->free(); \n }\n\t\t/*Fin Citas--------------------------------------------------*/\n\t\t\n\t\t\n\t\t\n\t\t/*Horarios Semana---------------------------------------------*/\n\t\t\n\t\t$queryHorarioSemana = \"SELECT idAgendaHorarioUsuario, horaInicio, horaFin, numeroDia \n\t\t\t\t\t\t\t\tFROM tb_agendaHorarioUsuario\n\t\t\t\t\t\t\t\tWHERE idUsuario = '$idUsuario' AND estado = 'A'\";\n\t\t\n\t\t\t\tif($res2 = $conexion->query($queryHorarioSemana)){\n\t while ($filas2 = $res2->fetch_assoc()) {\n\t \t\t \t\t\n\t\t\t\t\t\tif($dia == '6'){\n\t\t\t\t\t\t\t$dia = '0';\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$dia = $filas2['numeroDia']+1; \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 $resultadoEventos[] = array( \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'id'\t\t\t\t\t => 'prueba',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'start'\t\t\t\t\t => $filas2['horaInicio'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'end'\t\t \t\t\t => $filas2['horaFin'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'rendering'\t\t\t\t => 'background',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'dow'\t\t\t\t\t => '['.$dia.']',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'className'\t\t\t\t => 'horarioDiaSemana'\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t \n\t }//fin while\n\t \n\t /* liberar el conjunto de resultados */\n\t $res2->free(); \n \t\t}\n\t\t/*Fin Horarios Semana---------------------------------------------*/\n\t\t\n\t\t\n\t\t/*recesos Semana---------------------------------------------*/\n\t\t\n\t\t$queryRecesosSemana = \"SELECT \n\t\t\t\t\t\t\t\t ARU.idAgendaRecesosUsuario,\n\t\t\t\t\t\t\t\t ARU.numeroDia,\n\t\t\t\t\t\t\t\t AHR.idAgendaHorarioReceso,\n\t\t\t\t\t\t\t\t AHR.horaInicio,\n\t\t\t\t\t\t\t\t AHR.horaFin\n\t\t\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t\t tb_agendaRecesosUsuario AS ARU\n\t\t\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t\t\t tb_agendaHorarioReceso AS AHR ON AHR.idAgendaRecesosUsuario = ARU.idAgendaRecesosUsuario\n\t\t\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t\t\t ARU.idUsuario = '$idUsuario' AND AHR.estado = 'A'\";\n\t\t\n\t\t\t\tif($res3 = $conexion->query($queryRecesosSemana)){\n\t while ($filas3 = $res3->fetch_assoc()) {\n\t \t\n\t\t\t\t\t\tif($dia == '6'){\n\t\t\t\t\t\t\t$dia = '0';\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$dia = $filas3['numeroDia']+1; \n\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\n\t $resultadoEventos[] = array( \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'start'\t\t\t\t\t => $filas3['horaInicio'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'end'\t\t \t\t\t => $filas3['horaFin'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'rendering'\t\t\t\t => 'background',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'color'\t\t\t\t\t => 'orange',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'dow'\t\t\t\t\t => '['.$dia.']',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'className'\t\t\t\t => 'recesoDiaSemana'\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t \n\t }//fin while\n\t \n\t /* liberar el conjunto de resultados */\n\t $res3->free(); \n \t\t}\n\t\t/*Fin recesos Semana---------------------------------------------*/\t\t\n\t\t\n\t\t\n\t\t/*Horario por fechas----------------------------------------------*/\n\t\t$queryHorarioFechas = \"SELECT \n\t\t\t\t\t\t\t\t idAgendaHorarioFechaUsuario, horaInicio, horaFin, fecha\n\t\t\t\t\t\t\t FROM tb_agendaHorarioFechaUsuario\n\t\t\t\t\t\t\t WHERE estado = 'A' AND idUsuario = '$idUsuario'\";\n\t\t\n\t\t\t\tif($res4 = $conexion->query($queryHorarioFechas)){\n\t while ($filas4 = $res4->fetch_assoc()) {\n\t \t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t \t\n\t $resultadoEventos[] = array( \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'start'\t\t\t\t\t => $filas4['fecha'].\"T\".$filas4['horaInicio'].\"-05:00\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'end'\t\t \t\t\t => $filas4['fecha'].\"T\".$filas4['horaFin'].\"-05:00\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'rendering'\t\t\t\t => 'background',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'className'\t\t\t\t => 'horarioFecha'\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t \n\t }//fin while\n\t \n\t /* liberar el conjunto de resultados */\n\t $res4->free(); \n \t\t}\n\t\t\n\t\t\n\t\t\n\t\t/*Fin horario por fechas-------------------------------------------*/\n\t\t\n\t\t\n\t\t/*recesos por fechas-------------------------------------------*/\n\t\t\t$queryRecesoFechas = \"SELECT \n\t\t\t\t\t\t\t\t RFU.fecha, RF.horaInicio, RF.horaFin\n\t\t\t\t\t\t\t FROM tb_agendaHorarioRecesoFecha AS RF\n\t\t\t\t\t\t\t INNER JOIN tb_agendaRecesosFechaUsuario AS RFU ON RFU.idAgendaRecesosFechaUsuario = RF.idAgendaRecesosFechaUsuario\n\t\t\t\t\t\t\t WHERE RF.estado = 'A' AND RFU.idUsuario = '$idUsuario'\";\n\t\t\n\t\t\t\tif($res5 = $conexion->query($queryRecesoFechas)){\n\t while ($filas5 = $res5->fetch_assoc()) {\n\t \t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t \t\n\t $resultadoEventos[] = array( \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'start'\t\t\t\t\t => $filas5['fecha'].\"T\".$filas5['horaInicio'].\"-05:00\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'end'\t\t \t\t\t => $filas5['fecha'].\"T\".$filas5['horaFin'].\"-05:00\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'rendering'\t\t\t\t => 'background',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'className'\t\t\t\t => 'recesoFecha',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'color'\t\t\t\t\t => 'orange'\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t \n\t }//fin while\n\t \n\t /* liberar el conjunto de resultados */\n\t $res5->free(); \n \t\t}\n\t\t/*Fin recesos por fechas-------------------------------------------*/\n\t\t\n\t\t\n\n\n return $resultadoEventos;\t\n\n\t\t\n\t\t\n\t}", "function getCalendarsForAdmin() {\n //\n // http://dev4.krubner.com/admin.php?page=admin_calendar\n //\n // this brings back 2 months worth of days to show in a calendar\n\n global $controller; \n\n $today = new DateTime(date('Y-m-d'));\n\n //Get Calendar for this week\n if(!isset($_GET['ym'])){\n $top_month = date('Y-m');\n } else {\n $top_month = $_GET['ym'];\n }\n\n $firstDayOfMonthDateTime = new DateTime($top_month.\"-01\");\n $lastDayOfMonthDateTime = clone $firstDayOfMonthDateTime;\n $lastDayOfMonthDateTime->modify(\"+1 month\");\n $lastDayOfMonthDateTime->modify(\"-1 day\");\n\n $arrayOfDaysForThisMonth = array();\n $arrayOfDaysForThisMonth = $controller->command(\"loadAllNights\", $firstDayOfMonthDateTime, $lastDayOfMonthDateTime); \n\n $calendars = array();\n $calendars[$top_month] = $arrayOfDaysForThisMonth;\n\n $firstDayOfMonthDateTime2 = clone $firstDayOfMonthDateTime;\n $firstDayOfMonthDateTime2->modify(\"+1 month\");\n $lastDayOfMonthDateTime2 = clone $firstDayOfMonthDateTime2;\n $lastDayOfMonthDateTime2->modify(\"+1 month\");\n $lastDayOfMonthDateTime2->modify(\"-1 day\");\n\n $arrayOfDaysForThisMonth = array();\n $arrayOfDaysForThisMonth = $controller->command(\"loadAllNights\", $firstDayOfMonthDateTime2, $lastDayOfMonthDateTime2); \n\n $calendars[$lastDayOfMonthDateTime2->format('Y-m')] = $arrayOfDaysForThisMonth;\n\n return $calendars; \n}", "public static function get_user_events($scope = \"month\", $startdate = null, $enddate = null, $user_id = NULL) {\r\n global $uid;\r\n if (is_null($user_id)) {\r\n $user_id = $uid;\r\n }\r\n $dateconditions = array(\"month\" => \"date_format(?t\".',\"%Y-%m\") = date_format(start,\"%Y-%m\")',\r\n \"week\" => \"YEARWEEK(?t,1) = YEARWEEK(start,1)\",\r\n \"day\" => \"date_format(?t\".',\"%Y-%m-%d\") = date_format(start,\"%Y-%m-%d\")');\r\n\r\n $select_from_where_clause = \"SELECT id, title, start, date_format(start, '%Y-%m-%d') startdate, duration, content, \"\r\n . \"'personal' event_type, 'personal' event_group FROM personal_calendar WHERE user_id = ?d\";\r\n $order_by_clause = \" ORDER BY `start`\";\r\n if (!is_null($startdate) && !is_null($enddate)) {\r\n $datecond = \" AND start >= ?t AND start <= ?t\";\r\n return Database::get()->queryArray($select_from_where_clause.$datecond.$order_by_clause, $user_id, $startdate, $enddate);\r\n } elseif (!is_null($startdate)) {\r\n $datecond = \" AND \";\r\n $datecond .= (array_key_exists($scope, $dateconditions))? $dateconditions[$scope]: $dateconditions[\"month\"];\r\n return Database::get()->queryArray($select_from_where_clause.$datecond.$order_by_clause, $user_id, $startdate);\r\n } else {\r\n return Database::get()->queryArray($select_from_where_clause.$order_by_clause, $user_id);\r\n }\r\n }", "public function getList($user);", "public function FindAllByUserID($user_id=0)\n {\n global $wpdb;\n \n $projects_arr = array();\n \n $query = \"SELECT * FROM \".$this->_table_name.\" WHERE user_id = '%s' ORDER BY name\";\n $query = $wpdb->prepare($query, $user_id);\n \n $user_projects = $wpdb->get_results($query);\n \n if(count($user_projects) > 0)\n {\n foreach($user_projects as $proj)\n {\n $project = new self;\n // Assign the retrieved attributes into the new project object\n foreach($this::$attributes as $attribute)\n {\n $project->$attribute = $proj->$attribute;\n }\n // Put the new project object into the array\n $projects_arr[$project->id] = $project;\n }\n }\n return $projects_arr;\n }", "public function findEventsByCalendar(CalendarInterface $calendar)\r\n {\r\n $qb = $this->repository->createQueryBuilder('e');\r\n $qb->where('e.calendar = :calendar');\r\n $qb->setParameter('calendar', $calendar);\r\n\r\n return $qb->getQuery()->execute();\r\n }", "public function findAllFromUser(string $user_id): array{\n $query = <<<SQL\n select * from activities\n where user_id=:user_id\n order by ended_at desc;\nSQL;\n $query = $this->db->prepare($query);\n $query->execute([':user_id' => $user_id]);\n return $query->fetchAll() ?: [];\n }", "public function searchAllCommById($id_user)\n {\n $req = $this->pdo->prepare('SELECT * FROM comments WHERE id_user= ? ORDER BY `date` DESC');\n $req->execute([$id_user]);\n return $req->fetchAll();\n }", "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 calendars()\n\t{\n\t\t// -------------------------------------\n\t\t// Load 'em up\n\t\t// -------------------------------------\n\n\t\t$this->load_calendar_datetime();\n\t\t$this->load_calendar_parameters();\n\n\t\t// -------------------------------------\n\t\t// Prep the parameters\n\t\t// -------------------------------------\n\n\t\t$params = array(\n\t\t\tarray(\n\t\t\t\t'name' => 'category',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'multi' => TRUE\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'site_id',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'integer',\n\t\t\t\t'min_value' => 1,\n\t\t\t\t'multi' => TRUE,\n\t\t\t\t'default' => $this->data->get_site_id()\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'calendar_id',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'integer',\n\t\t\t\t'min_value' => 1,\n\t\t\t\t'multi' => TRUE,\n\t\t\t\t'not' => TRUE\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'calendar_name',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'multi' => TRUE,\n\t\t\t\t'not' => TRUE\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'status',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'multi' => TRUE,\n\t\t\t\t'default' => 'open'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'date_range_start',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'date'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'date_range_end',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'date'\n\t\t\t)\n\t\t);\n\n\t\t//ee()->TMPL->log_item('Calendar: Processing parameters');\n\n\t\t$this->add_parameters($params);\n\n\t\t// -------------------------------------\n\t\t// Convert calendar_name to calendar_id\n\t\t// -------------------------------------\n\n\t\tif ($this->P->value('calendar_id') == '' AND\n\t\t\t$this->P->value('calendar_name') != '')\n\t\t{\n\t\t\t$ids = $this->data->get_calendar_id_from_name(\n\t\t\t\t$this->P->value('calendar_name'),\n\t\t\t\tNULL,\n\t\t\t\t$this->P->params['calendar_name']['details']['not']\n\t\t\t);\n\n\t\t\tif ( empty( $ids ) )\n\t\t\t{\n\t\t\t\t//ee()->TMPL->log_item('Calendar: No results for\n\t\t\t\t//calendar name provided, bailing');\n\t\t\t\treturn $this->no_results();\n\t\t\t}\n\n\t\t\t$this->P->set('calendar_id', implode('|', $ids));\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Determine which calendars this user has permission to view\n\t\t// and modify the parameters accordingly.\n\t\t// -------------------------------------\n\n\t\t// TODO\n\n\t\t// -------------------------------------\n\t\t// Fetch the basics\n\t\t// -------------------------------------\n\n\t\t$data = $this->data->fetch_calendars_basics(\n\t\t\t$this->P->value('site_id'),\n\t\t\t$this->P->value('calendar_id'),\n\t\t\t$this->P->params['calendar_id']['details']['not']\n\t\t);\n\n\t\t// -------------------------------------\n\t\t// If no data, then give 'em no_results\n\t\t// -------------------------------------\n\n\t\tif (($total_results = count($data)) == 0)\n\t\t{\n\t\t\t//ee()->TMPL->log_item('Calendar: No results, bailing');\n\t\t\treturn $this->no_results();\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Ensure date_range_start <= date_range_end\n\t\t// -------------------------------------\n\n\t\tif ($this->P->value('date_range_start') !== FALSE AND\n\t\t\t$this->P->value('date_range_end') !== FALSE)\n\t\t{\n\t\t\tif ($this->P->value('date_range_start', 'ymd') > $this->P->value('date_range_end', 'ymd'))\n\t\t\t{\n\t\t\t\t$temp = $this->P->params['date_range_start']['value'];\n\t\t\t\t$this->P->set('date_range_start', $this->P->params['date_range_end']['value']);\n\t\t\t\t$this->P->set('date_range_end', $temp);\n\t\t\t\tunset($temp);\n\t\t\t}\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// This will come in handy later\n\t\t// -------------------------------------\n\n\t\t$calendar_array = array();\n\t\tforeach ($data as $k => $arr)\n\t\t{\n\t\t\t$calendar_array[] = $arr['calendar_id'];\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Date range params? Then we need to do a lot more work.\n\t\t// -------------------------------------\n\n\t\tif ($this->P->value('date_range_start') !== FALSE OR\n\t\t\t$this->P->value('date_range_end') !== FALSE)\n\t\t{\n\t\t\t//ee()->TMPL->log_item('Calendar: Calculating date ranges');\n\t\t\t$min = ($this->P->value('date_range_start') !== FALSE) ?\n\t\t\t\t\t\t$this->P->value('date_range_start', 'ymd') :\n\t\t\t\t\t\t0;\n\n\t\t\t$max = ($this->P->value('date_range_end') !== FALSE) ?\n\t\t\t\t$this->P->value('date_range_end', 'ymd') :\n\t\t\t\t0;\n\n\t\t\t$calendar_array = $this->data->fetch_calendars_with_events_in_date_range(\n\t\t\t\t$min,\n\t\t\t\t$max,\n\t\t\t\t$calendar_array,\n\t\t\t\t$this->P->value('status')\n\t\t\t);\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// No calendars? No results.\n\t\t// -------------------------------------\n\n\t\tif (empty($calendar_array))\n\t\t{\n//ee()->TMPL->log_item('Calendar: No calendars, bailing');\n\t\t\treturn $this->no_results();\n\t\t}\n\n\t\t//\t----------------------------------------\n\t\t//\tInvoke Channel class\n\t\t//\t----------------------------------------\n\n\t\tif ( ! class_exists('Channel') )\n\t\t{\n\t\t\trequire PATH_MOD.'/channel/mod.channel.php';\n\t\t}\n\n\t\t$channel = new Channel();\n\n\t\t//need to remove limit here so huge amounts of events work\n\t\t$channel->limit = 1000000;\n\n\t\t// --------------------------------------------\n\t\t// Invoke Pagination for EE 2.4 and Above\n\t\t// --------------------------------------------\n\n\t\t$channel = $this->add_pag_to_channel($channel);\n\n\t\t// -------------------------------------\n\t\t// Prepare parameters\n\t\t// -------------------------------------\n\n\t\tee()->TMPL->tagparams['entry_id'] = implode('|', $calendar_array);\n\t\tee()->TMPL->tagparams['channel'] = CALENDAR_CALENDARS_CHANNEL_NAME;\n\n\t\t// -------------------------------------\n\t\t// Pre-process related data\n\t\t// -------------------------------------\n\n\t\tif (version_compare($this->ee_version, '2.6.0', '<'))\n\t\t{\n\n\t\t\tee()->TMPL->tagdata = ee()->TMPL->assign_relationship_data(\n\t\t\t\tee()->TMPL->tagdata\n\t\t\t);\n\t\t\tee()->TMPL->var_single = array_merge(\n\t\t\t\tee()->TMPL->var_single,\n\t\t\t\tee()->TMPL->related_markers\n\t\t\t);\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Execute needed methods\n\t\t// -------------------------------------\n\n\t\t$channel->fetch_custom_channel_fields();\n\n\t\t$channel->fetch_custom_member_fields();\n\n\t\t// --------------------------------------------\n\t\t// Pagination Tags Parsed Out\n\t\t// --------------------------------------------\n\n\t\t$this->fetch_pagination_data($channel);\n\n\t\t// -------------------------------------\n\t\t// Querification\n\t\t// -------------------------------------\n\n\t\t$channel->build_sql_query();\n\n\t\tif ($channel->sql == '')\n\t\t{\n\t\t\treturn $this->no_results();\n\t\t}\n\n\t\t$channel->query = ee()->db->query($channel->sql);\n\n\t\tif ($channel->query->num_rows() == 0)\n\t\t{\n//ee()->TMPL->log_item('Calendar: Channel module says no results, bailing');\n\t\t\treturn $this->no_results();\n\t\t}\n\n\t\t$channel->query->result\t= $channel->query->result_array();\n\n\t\t// -------------------------------------------\n\t\t// 'calendar_calendars_channel_query' hook.\n\t\t// - Do something with the channel query\n\n\t\tif (ee()->extensions->active_hook('calendar_calendars_channel_query') === TRUE)\n\t\t{\n\t\t\t$channel->query = ee()->extensions->call('calendar_calendars_channel_query', $channel->query, $calendar_array);\n\t\t\tif (ee()->extensions->end_script === TRUE) return;\n\t\t}\n\t\t//\n\t\t// -------------------------------------------\n\n\t\t// -------------------------------------\n\t\t// Inject Calendar-specific variables\n\t\t// -------------------------------------\n\n\t\t//ee()->TMPL->log_item('Calendar: Adding Calendar variables');\n\n\t\t$aliases = array(\n\t\t\t'title'\t\t\t=> 'calendar_title',\n\t\t\t'url_title'\t\t=> 'calendar_url_title',\n\t\t\t'entry_id'\t\t=> 'calendar_id',\n\t\t\t'author_id'\t\t=> 'calendar_author_id',\n\t\t\t'author'\t\t=> 'calendar_author',\n\t\t\t'status'\t\t=> 'calendar_status'\n\t\t);\n\n\t\t//custom variables with the letters 'url' are borked in\n\t\t//EE 2.6. Bug reported, but this should fix.\n\t\t//https://support.ellislab.com/bugs/detail/19337\n\t\tif (version_compare($this->ee_version, '2.6.0', '>='))\n\t\t{\n\t\t\t$aliases['url_title'] = 'calendar_borked_title';\n\n\t\t\tee()->TMPL->var_single['calendar_borked_title'] = 'calendar_borked_title';\n\n\t\t\tunset(ee()->TMPL->var_single['calendar_url_title']);\n\n\t\t\tee()->TMPL->tagdata = str_replace(\n\t\t\t\tarray(\n\t\t\t\t\tLD . 'calendar_url_title' . RD,\n\t\t\t\t\t'\"calendar_url_title\"',\n\t\t\t\t\t\"'calendar_url_title'\"\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\tLD . 'calendar_borked_title' . RD,\n\t\t\t\t\t'\"calendar_borked_title\"',\n\t\t\t\t\t\"'calendar_borked_title'\"\n\n\t\t\t\t),\n\t\t\t\tee()->TMPL->tagdata\n\t\t\t);\n\t\t}\n\n\t\tforeach ($channel->query->result as $k => $row)\n\t\t{\n\t\t\t$channel->query->result[$k]['author'] = ($row['screen_name'] != '') ?\n\t\t\t\t\t\t\t\t\t\t$row['screen_name'] : $row['username'];\n\n\t\t\tforeach ($aliases as $old => $new)\n\t\t\t{\n\t\t\t\t$channel->query->result[$k][$new] = $channel->query->result[$k][$old];\n\t\t\t}\n\t\t}\n\n\t\t//\t----------------------------------------\n\t\t//\tRedeclare\n\t\t//\t----------------------------------------\n\t\t//\tWe will reassign the $channel->query->result with our\n\t\t//\treordered array of values.\n\t\t//\t----------------------------------------\n\n\t\t$channel->query->result_array = $channel->query->result;\n\n\t\t// --------------------------------------------\n\t\t// Typography\n\t\t// --------------------------------------------\n\n\t\tee()->load->library('typography');\n\t\tee()->typography->initialize();\n\t\tee()->typography->convert_curly = FALSE;\n\n\t\t$channel->fetch_categories();\n\n\t\t// -------------------------------------\n\t\t// Parse\n\t\t// -------------------------------------\n\n\t\t//ee()->TMPL->log_item('Calendar: Parsing, via channel module');\n\n\n\n\t\t$channel->parse_channel_entries();\n\n\t\t// -------------------------------------\n\t\t// Paginate\n\t\t// -------------------------------------\n\n\t\t$channel = $this->add_pagination_data($channel);\n\n\t\t// -------------------------------------\n\t\t// Related entries\n\t\t// -------------------------------------\n\n\t\t//ee()->TMPL->log_item('Calendar: Parsing related entries, via Weblog module');\n\n\t\tif (version_compare($this->ee_version, '2.6.0', '<'))\n\t\t{\n\t\t\tif (count(ee()->TMPL->related_data) > 0 AND\n\t\t\t\tcount($channel->related_entries) > 0)\n\t\t\t{\n\t\t\t\t$channel->parse_related_entries();\n\t\t\t}\n\n\t\t\tif (count(ee()->TMPL->reverse_related_data) > 0 AND\n\t\t\t\tcount($channel->reverse_related_entries) > 0)\n\t\t\t{\n\t\t\t\t$channel->parse_reverse_related_entries();\n\t\t\t}\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Send 'em home\n\t\t// -------------------------------------\n\n\t\t$tagdata = $channel->return_data;\n\n\t\t//ee()->TMPL->log_item('Calendar: Done!');\n\n\t\t//on the off chance someone just wrote the word\n\t\t//'calendar_url_title', we should fix that before\n\t\t//output. (See above calendar_url_title fix)\n\t\tif (version_compare($this->ee_version, '2.6.0', '>='))\n\t\t{\n\t\t\t$tagdata = str_replace(\n\t\t\t\tarray(\n\t\t\t\t\tLD . 'calendar_borked_title' . RD,\n\t\t\t\t\t'\"calendar_borked_title\"',\n\t\t\t\t\t\"'calendar_borked_title'\"\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\tLD . 'calendar_url_title' . RD,\n\t\t\t\t\t'\"calendar_url_title\"',\n\t\t\t\t\t\"'calendar_url_title'\"\n\t\t\t\t),\n\t\t\t\t$tagdata\n\t\t\t);\n\t\t}\n\n\t\treturn $tagdata;\n\n\t}", "public function findUsers(): iterable;", "public static function listByUsers($user_id){\n $projects = Project::listByUsers($user_id);\n\n $project_ids = [];\n foreach ($projects as $project){\n $project_ids[] = $project->id;\n }\n $risks = static::whereIn('project_id', $project_ids);\n return $risks;\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 groupCalendar($id){\n $groupId = Crypt::decrypt($id);\n $group = Group::findOrFail($groupId);\n // create event array\n $eventCollection = [];\n\n //create variable for user id\n $userid = \\Auth::user()->id;\n\n //fetch user events\n $events = DB::table('events')\n ->where('is_shared', '=', 1)\n ->get();\n\n $holidays = DB::table('holidays')->get();\n\n $repeatEvent = DB::table('repeat_event')\n ->where('is_shared', '=', 1)\n ->get();\n $group_events = GroupEvents::getGroupEvents($groupId)->get();\n\n //iterate all events where user id = logged in user then add them to the array\n foreach ($events as $event) {\n $eventCollection[] = Calendar::event(\n $event->event_title, //event title\n false,\n $event->time_start,\n $event->time_end,\n $event->id,\n [\n 'url' => 'event/'. Crypt::encrypt($event->id) ,\n 'color' => $event->color,\n ]\n );\n }\n foreach ($repeatEvent as $repeat) {\n $eventCollection[] = Calendar::event(\n $repeat->event_title,\n false,\n $repeat->time_start,\n $repeat->time_end,\n $repeat->id,\n [\n 'url' => 'groupRepeatEvent/'. Crypt::encrypt($repeat->id) ,\n 'color' => $repeat->color,\n ]\n );\n }\n foreach ($holidays as $holiday) {\n $eventCollection[] = Calendar::event(\n $holiday->event_title,\n true,\n $holiday->time_start,\n $holiday->time_end,\n $holiday->id,\n [\n 'color' => $holiday->color,\n ]\n );\n }\n foreach ($group_events as $grpEvent) {\n $eventCollection[] = Calendar::event(\n $grpEvent->event_title,\n false,\n $grpEvent->time_start,\n $grpEvent->time_end,\n $grpEvent->id,\n [\n 'url' => 'groupEvent/'. Crypt::encrypt($grpEvent->id) ,\n 'color' => $grpEvent->color,\n ]\n );\n }\n $calendar = Calendar::addEvents($eventCollection);\n return view('group.group-calendar', compact('calendar', 'group'));\n }", "public function allForUser($userId)\n {\n return $this->model->where('staff_id', $userId)->get();\n }", "public function getMonthlyCalendarEntries($model = null, $userId = null, $year = null, $month = null) {\n\t\t// Use today's date if no date given.\n\t\tif(is_null($month)) $month = gmdate(\"F\");\n\t\tif(is_null($year)) $year = gmdate(\"Y\");\n\t\n\t\t// Calculate the month number and week-beginning date for the first of the month\n\t\t$monthnum = gmdate('n', strtotime(\"2:00 1 \".$month. \" \".$year));\n\t\t$monthStartDate = gmmktime(2,0,0,$monthnum,1,$year);\n\t\t$monthWeekBeginning = $this->_getWeekBeginningDate(gmdate(\"Ymd\",$monthStartDate));\n\t\n\t\t// Retrieve all the weekly entries between the start week and the last day of the month\n\t\t$allEntries = $model->find('all',array(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t'user_id' => $userId,\n\t\t\t\t\t\t'week_beginning >=' => gmdate(\"Y-m-d\",$monthWeekBeginning),\n\t\t\t\t\t\t'week_beginning <=' => gmdate(\"Y-m-t\",$monthStartDate)\n\t\t\t\t),\n\t\t\t\t'order' => array('week_beginning' => 'asc')\n\t\t));\n\t\n\t\t$records = array();\n\t\t$weekdayList = array('monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday');\n\t\n\t\t// Iterate through the entries and reformat them as, e.g., array( 1 => '10', 2 => '5', 14 => '2'... 31 => '12')\n\t\tforeach($allEntries as $key => $weeklyEntry) {\n\t\t\tforeach($weekdayList as $weekDayNo => $weekday) {\n\t\t\t\t$weekDayDate = strtotime(\"2:00 \" . $weeklyEntry[get_class($model)]['week_beginning']\n\t\t\t\t\t\t. \" +\" . $weekDayNo . \" day\");\n\t\t\t\tif(date('n Y', $weekDayDate) == $monthnum . \" \" . $year) {\n\t\t\t\t\t$comment = \"Daily entry: \".$weeklyEntry[get_class($model)][$weekday];\n\t\t\t\t\tif(!empty($weeklyEntry[get_class($model)]['what_worked'])) {\n\t\t\t\t\t\t$comment .= \"<br />What worked for me this week: \".$weeklyEntry[get_class($model)]['what_worked'];\n\t\t\t\t\t}\n\t\t\t\t\t$records[date('j', $weekDayDate)] = array(\n\t\t\t\t\t\t\t'entry' => $weeklyEntry[get_class($model)][$weekday],\n\t\t\t\t\t\t\t'comment' => $comment\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\treturn $records;\n\t}", "public static function getEvents($calendars, $companyId, $employeeId, $start, $end) {\n\n $sql = \" SELECT event.id, event.name,event.start_datetime,event.end_datetime,event.color,is_all_day \"\n . \" FROM event \"\n . \" INNER JOIN calendar\t\"\n . \" ON event.calendar_id= calendar.id \"\n . \" AND calendar.company_id={$companyId} \"\n . \" AND calendar.disabled=\" . self::STATUS_ENABLE\n . \" WHERE ( \"\n . \" event.is_public=1 \"\n . \" OR event.created_employee_id={$employeeId}\t \"\n . \" OR (EXISTS( \"\n . \" SELECT * \"\n . \" FROM invitation \"\n . \" WHERE invitation.event_id= event.id \"\n . \" AND invitation.owner_id={$employeeId} \"\n . \" AND invitation.owner_table='employee' \"\n . \" AND invitation.company_id={$companyId} \"\n . \" AND invitation.disabled=\" . self::STATUS_ENABLE\n . \" ) \"\n . \" ) \"\n . \" OR(EXISTS( \"\n . \" SELECT * \"\n . \" FROM invitation \"\n . \" INNER JOIN department \"\n . \" ON invitation.owner_id=department.id \"\n . \" AND invitation.owner_table='department' \"\n . \" AND department.company_id={$companyId} \"\n . \" AND department.disabled=\" . self::STATUS_ENABLE\n . \" INNER JOIN employee \"\n . \" ON department.id=employee.department_id \"\n . \" AND employee.company_id={$companyId} \"\n . \" AND employee.id={$employeeId} \"\n . \" AND employee.disabled=\" . self::STATUS_ENABLE\n . \" WHERE invitation.event_id=event.id \"\n . \" AND invitation.company_id={$companyId} \"\n . \" AND invitation.disabled=\" . self::STATUS_ENABLE\n . \" ) \"\n . \" ) \"\n . \" ) \"\n . \" AND event.end_datetime <= \" . strtotime($end . \" 23:59:59\")\n . \" AND event.start_datetime >= \" . strtotime($start . \" 00:00:00\")\n . \" AND event.company_id={$companyId} \"\n . \" AND event.disabled=\" . self::STATUS_ENABLE;\n\n if (!empty($calendars)) {\n $sql .= \" AND event.calendar_id IN (\" . implode(',', $calendars) . \") \";\n $command = \\Yii::$app->getDb()->createCommand($sql);\n return $command->queryAll();\n }\n \n return [];\n }", "public function findByFilters($start, $end, $course_id, $user_id, $role)\n {\n // this is a collection of personal and global events\n $events = DB::select('SELECT te.*\n FROM timeline_events te\n INNER JOIN courses c ON c.id = te.course_id\n WHERE c.id = :u_course_id\n AND te.user_id = :u_user_id\n AND te.is_global = 0\n AND te.start between :u_start AND :u_end\n UNION\n SELECT te.*\n FROM timeline_events te\n INNER JOIN courses c ON c.id = te.course_id\n WHERE c.id = :g_course_id\n AND te.is_global = 1\n AND te.start between :g_start AND :g_end', [\n \"u_course_id\" => $course_id, \n \"u_user_id\" => $user_id,\n \"u_start\" => $start,\n \"u_end\" => $end,\n \"g_course_id\" => $course_id, \n \"g_start\" => $start,\n \"g_end\" => $end\n ]);\n \n return $events; \n }", "public function getRequesterCompaniesWithRequests(usuario $user)\n {\n return parent::getRequesterCompanies($user, true, false, true);\n }", "function getSchedule($userId)\n{\n\tglobal $db;\n\t$sql = \"SELECT * FROM `schedules` WHERE `user_id` = ? ;\";\n\t$query = $db->prepare($sql);\n\t$query->bind_param(\"i\", $userId);\n\t$query->execute();\n\n\t$courses = array();\n\t$queryResult = $query->get_result();\n\t$row = $queryResult->fetch_assoc();\n\tfor ($i = 0; $i < 10; $i++)\n\t{\n\t\t$strIndex = (string)($i+1);\n\t\tif (isset($row[\"course_id_\" . $strIndex]) && $row[\"course_id_\" . $strIndex] != 0)\n\t\t{\n\t\t\t$currentCourse = getCourse($row[\"course_id_\" . $strIndex]);\n\t\t\t$currentCourse->courseInstructor = $row[\"course_instructor_\" . $strIndex];\n\t\t\tarray_push($courses, $currentCourse);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn $courses;\n}", "public function findAllForUser(UserInterface $user, $pending = false);", "public function getCalendarFor($name);", "public function getTodayReserves($userId) {\r\n $q = self::getInstance()->createQuery(\"r\")\r\n ->where('r.user_id = ?', $userId)\r\n ->andWhere('DATE(r.date) = CURDATE()');\r\n return $q->execute();\r\n }", "function get_all_contacts() {\n //get all the users\n $task = Doctrine_Query::create()\n ->from('Zim_Model_User');\n $exec = $task->execute();\n $contacts = $exec->toArray();\n //return the array of contacts\n return $contacts;\n\n }", "public function show($user_id)\n {\n\n $auth_man=0;\n if ($user_id==auth()->id()){\n $auth_man=1;\n }\n\n $today = Carbon::now()->format('Y-m-d').'%';\n\n $list=CalendarModel::with('patient')->where('start', 'like', $today)->where('user_id',$user_id)\n ->where('status','active')->orderBy('id','desc')->get();\n\n $all = CalendarModel::with('patient')->where('user_id',$user_id)\n ->where('status','active')->orderBy('id','desc')->get();\n\n return view('calendar.index',compact('all','list','user_id','auth_man'));\n }", "public function findUsers();", "public function findUsers();", "public static function fetchAllOwnSubjects($user_id)\n\t{\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->with = array('users');\n\t\t$criteria->condition = \"user_id =:userID AND (role = 1 OR role = 0)\";\n\t\t$criteria->params = array(':userID' => $user_id);\n\t\treturn Subject::model()->findAll($criteria);\n\t}", "public function actionCalendar()\n {\n // Get current ID of logined user\n $userId = Yii::$app->user->getId() ?: '1000';\n $profile = (new UsersProfile())->getProfile();\n\n // Fill array keyes with [1, .., date(\"t\")].\n // date(\"t\") - count of days in current month\n $calendar = array_fill_keys(range(1, date(\"t\")), []);\n $model = new TaskQuery(Task::class);\n\n foreach ($model->getByCurrentMonth($userId)->all() as $task) {\n // Get current $task->date and create new DateTime object\n // $date->format(\"j\") -- Day of the month: 1, 2, .., 31\n // Fill array $calender with $task objects\n $date = \\DateTime::createFromFormat(\"Y-m-d H:i:s\", $task->deadline);\n $calendar[$date->format(\"j\")][] = $task;\n }\n\n return $this->render('calendar', \\compact('calendar', 'profile'));\n }", "public function findEventByUser($user)\n {\n $qb = $this->createQueryBuilder('e')\n ->join('e.user', 'u') \n ->addselect('u')\n ->where('e.user = :user')\n ->setParameter('user', $user)\n ;\n return $qb->getQuery()->getArrayResult();\n }", "public function getGamesByUserUID( $userUID ){\n\t\n\t\t//Run a find to get the user and all of their associated games\n\t\t$games = $this->find( 'all', [\n\t\t\t\t\t\t\t\t'conditions' => [\n\t\t\t\t\t\t\t\t\t'UserGame.users_uid' => $userUID,\n\t\t\t\t\t\t\t\t\t'Game.active' => 1\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t'joins' => [\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t'table' => 'games',\n\t\t\t\t\t\t\t\t\t\t'alias' => 'Game',\n\t\t\t\t\t\t\t\t\t\t'type' => 'inner',\n\t\t\t\t\t\t\t\t\t\t'conditions' => [\n\t\t\t\t\t\t\t\t\t\t\t'Game.uid = UserGame.games_uid'\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'recursive' => -1\n\t\t\t\t\t\t\t]);\n\t\t\t\t\t\t\t\n\t\t//Return the games we found\t\n\t\treturn $games;\n\t\n\t}", "public function get_user_course_events($fromdate, $todate, $maxdays, $username = null, $userid = null, $course = null) {\r\n global $CFG, $COURSE;\r\n\r\n require_once($CFG->dirroot.'/calendar/lib.php');\r\n\r\n // Test times:\r\n // 1259740800.\r\n // 1259913600.\r\n\r\n $fromdate = clean_param($fromdate, PARAM_INT);\r\n $todate = clean_param($todate, PARAM_INT);\r\n $maxevents = 100;\r\n\r\n // Allow items to be retrieved using either username or idnumber.\r\n if ((is_null($userid)) && (is_null($username))) {\r\n throw new Exception(\"Either a username or userid is required\");\r\n }\r\n if (!is_null($username)) {\r\n $user = $this->helper->connector->get_user($username);\r\n } else {\r\n $user = $this->helper->connector->get_user_by_id($userid);\r\n }\r\n\r\n $courses = $this->helper->connector->get_courses($user, $course, $maxdays);\r\n\r\n if ($fromdate > $todate) {\r\n throw new Exception(\"From date ($fromdate) is greater than to date ($todate)\");\r\n }\r\n\r\n $events = array();\r\n $daysinfuture = ($todate - $fromdate) / DAYSECS;\r\n\r\n foreach ($courses as $course) {\r\n $COURSE = $course;\r\n\r\n $groups = groups_get_user_groups($course->id, $user->id);\r\n if (!empty($groups[0])) {\r\n $groups = $groups[0];\r\n } else {\r\n $groups = false;\r\n }\r\n\t\t\t\r\n\t\t\t//unable to use recommended calendar block get_content since the input/output differ from what is needed here\r\n\t\t\t//so implementing here call to calendar_get_events directly.\r\n $events[$course->id] = $this->get_upcoming_calendar(array($course->id), $groups, $user->id, $daysinfuture, 100, $fromdate);\r\n }\r\n return $this->response->user_get_user_course_events($user, $courses, $events);\r\n }", "public static function findAll(): array\n {\n // We call getInstance here because this is a static function\n $db = Database::getInstance(self::$dbName);\n return $db->fetch(\n 'SELECT * FROM user;',\n 'User'\n );\n }", "function getAll() {\r\n\t\t$cond = new Criteria();\r\n\t\t$alls = NewsletterSchedulePeer::doSelect($cond);\r\n\t\treturn $alls;\r\n }", "public function findEventsForUser($userId, \\DateTime $from, \\DateTime $to);", "static public function ctrGetRegisteredEvents($idUser){\n //Leer todos los eventos\n $allEvents = EventsController::ctrReadEvents();\n //Leer eventos a los cuales ya se ha registrado el usuario\n $eventsUsers = EventsUsersController::ctrReadEventsUsers(\"usuarioID\", $idUser);\n $eventsRegistered = array();\n //Verficiar que eventos no se ha inscrito el usuario\n foreach ($allEvents as $event) {\n $isAlreadyRegistered = false;\n foreach($eventsUsers as $eventUs){\n if($event[\"eventoID\"] == $eventUs[\"eventoID\"])\n $isAlreadyRegistered = true;\n }\n if($isAlreadyRegistered)\n array_push($eventsRegistered, $event);\n }\n return $eventsRegistered;\n }", "public function readAllUser($usuario) {\n $this->query = \"\n SELECT titulo, chiste\n FROM chistes\n WHERE usuario = '$usuario'\n \";\n\n $this->get_results_from_query();\n\n if (count($this->rows) > 1) {\n $this->mensaje = \"Chistes encontrados\";\n }\n else {\n $this->mensaje = \"Chistes no encontrados\";\n }\n\n return $this->rows;\n }", "public function eventsByUser($user_id) {\n $events = EventDCI::where('user_id', '=', $user_id)\n ->orderBy('time')->get();\n\n foreach ($events as $event) {\n $event['services'] = $event->services()->wherePivot('deleted_at', '=', NULL)->get();\n $event['resources_sources'] = $event->resources_sources()->wherePivot('deleted_at', '=', NULL)->get();\n $event['witnesses'] = $event->witnesses()->wherePivot('deleted_at', '=', NULL)->get();\n $event['support_materials'] = $event->support_materials()->get();\n $event['pdi_programs'] = $event->pdi_programs()->wherePivot('deleted_at', '=', NULL)->get();\n }\n\n return json_encode($events);\n\n }", "public function get_reserv_with_user_id($user_id){\n $reservations = Reservation::where('user_id',$user_id)\n ->get();\n return reservationResource::collection($reservations);\n }", "public function actionIndex()\n {\n $searchModel = new CalendarSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public static function search() {\r\n $result = new Collection();\r\n\t\t$key_name = static::getKeyName();\r\n $users = User::all()->toArray();\r\n\t\t$usersRoles = UserRole::all(['user_id', 'role_id'])->groupBy('user_id');\r\n\t\tforeach($users as &$user) {\r\n\t\t\t$user['roles'] = isset($usersRoles[$user[$key_name]]) ? array_pluck($usersRoles[$user[$key_name]], 'role_id') : [];\r\n $result[] = new static($user);\r\n\t\t}\r\n \r\n return $result;\r\n }", "public function findMyDailyTrace(User $user, array $params) {\n\n // ----------------\n\n $minDateParam = isset($params['min_date']) && $params['min_date'] != null;\n $maxDateParam = isset($params['max_date']) && $params['max_date'] != null;\n $accParam = isset($params['account']) && $params['account'] != null;\n\n if($minDateParam) { $minDateFilter = 'AND o.date_compta >= :min_date '; } else { $minDateFilter = ''; }\n if($maxDateParam) { $maxDateFilter = 'AND o.date_compta <= :max_date '; } else { $maxDateFilter = ''; }\n if($accParam) { $accFilter = 'AND a.id = :acc_id '; } else { $accFilter = ''; }\n\n // ----------------\n\n $q = \" SELECT year(o.date_compta) as year,\n month(o.date_compta) as month,\n day(o.date_compta) as day,\n round(sum(o.amount),2) as sum,\n count(o.id) as countOpe\n\n FROM bank_operation AS o\n LEFT JOIN bank_account AS a ON o.acc_id = a.id \n LEFT JOIN bank AS b ON a.bank_id = b.id \n LEFT JOIN bank_label AS l ON o.lab_id = l.id\n LEFT JOIN bank_category AS c ON l.cat_id = c.id\n WHERE o.user_id = :user_id \n $minDateFilter\n $maxDateFilter\n $accFilter\n GROUP BY year, month, day\n ORDER BY year ASC, month ASC, day ASC\n \";\n\n // ----------------\n\n $args = [ ':user_id' => $user->getId() ];\n\n if($minDateParam) { $args[':min_date'] = $params['min_date']; }\n if($maxDateParam) { $args[':max_date'] = $params['max_date']; }\n if($accParam) { $args[':acc_id'] = $params['account']; }\n\n // ----------------\n\n $manager = $this->getEntityManager()->getConnection()->prepare($q);\n $manager->execute($args);\n return $manager->fetchAll();\n }", "public function eventsByUserName(Request $request)\n {\n $name = $request->input('searchNameValue');\n $uCname = ucwords($name);\n $nameSplit = preg_split('/\\s+/', $uCname);\n $firstname = $nameSplit[0];\n $lastname = end($nameSplit);\n\n $results = collect();\n\n $users = User::where('name', '=', \"$uCname\")\n ->orWhere('name', 'like', \"$firstname%\")\n ->orWhere('name', 'like', \"%$lastname%\")\n ->orWhere('email', '=', mb_strtolower($name))\n ->get();\n\n foreach ($users as $user) {\n $results = $results->merge($user->events()->get()->sortBy('start'));\n }\n\n $calendar_events = $calendar_events_sorted = $this->paginate(\n $results, 10, null,\n ['path' => route('calendar_events.events.userName', ['searchNameValue' => $name])]);\n\n $calendar = $this->prepCalendar($calendar_events);\n\n $admins = Admin::all()->pluck('name', 'id');\n\n return view('calendar_events.index', compact('calendar_events', 'calendar_events_sorted', 'calendar', 'admins'));\n }", "public function index(Request $request, User $user)\n {\n // The authenticated user can view their calendar only\n $this->authorize('access', $user);\n\n //Teacher events to be displayed in the calendar\n if ($request->ajax())\n {\n return $user->teacher->events->load('subject', 'classroom');\n }\n\n return view('events.index')->with([\n 'user' => $user->load('teacher'),\n ]);\n }", "public function getSchedules() {\n $result = DB::select(\"SELECT * FROM schedular,unnest(string_to_array(user_id, ',')) AS s_user_id WHERE s_user_id = ANY ( string_to_array('\".session('user-id').\"', ',') ) AND is_active = true order by created_date desc\" );\n if (count($result) > 0) {\n return $result;\n }\n return array();\n }", "public static function find_all(){\n\n return static::find_by_query(\"SELECT * FROM \" . static::$table_users);\n\n }", "public function findAll() {\n $sql = \"select * from organisations\";\n $result = $this->getDb()->fetchAll($sql);\n \n // Convert query result to an array of domain objects\n $organisations = array();\n foreach ($result as $row) {\n $organisationId = $row['id_organisation'];\n $organisations[$organisationId] = $this->buildDomainObject($row);\n }\n return $organisations;\n }", "function clearRemindersByUser(User $user, User $by) {\n $user_reminders_table = TABLE_PREFIX . \"reminder_users\";\n $reminders_table = TABLE_PREFIX . \"reminders\";\n $project_objects_table = TABLE_PREFIX . \"project_objects\";\n\n // find specific reminders sent to this user\n\n $user_reminder_ids = DB::executeFirstColumn(\"SELECT reminder_id FROM $user_reminders_table WHERE user_id = ? AND dismissed_on IS NULL\", $user->getId());\n $clear_user_reminders_table = is_foreachable($user_reminder_ids);\n if ($clear_user_reminders_table) {\n $user_reminder_ids_prepared = DB::prepareConditions(array(\"id IN (?) OR\", $user_reminder_ids));\n $clear_user_reminders_table = true;\n } else {\n $user_reminder_ids_prepared = \"\";\n } // if\n\n $reminders = array();\n\n // find all objects related to reminders found, or 'selected user id' reminders\n $reminders_raw = DB::execute(\"SELECT parent_type, parent_id FROM $reminders_table WHERE $user_reminder_ids_prepared (selected_user_id = ? AND dismissed_on IS NULL)\", $user->getId());\n if ($reminders_raw) {\n foreach ($reminders_raw as $reminder_raw) {\n if (!array_key_exists($reminder_raw['parent_type'], $reminders)) {\n $reminders[$reminder_raw['parent_type']] = array();\n } // if\n\n $reminders[$reminder_raw['parent_type']][] = $reminder_raw['parent_id'];\n } // foreach\n\n // filter objects that belong to this project only\n $objects_with_reminders = array();\n foreach ($reminders as $object_type => $object_ids) {\n if (is_foreachable($object_ids)) {\n $objects_with_reminders[$object_type] = DB::executeFirstColumn(\"SELECT id FROM $project_objects_table WHERE project_id = ? AND type = ? AND id IN (?)\", $this->object->getId(), $object_type, array_unique($object_ids));\n // clean up in case result is null (none of the objects are in selected project)\n if (!is_foreachable($objects_with_reminders[$object_type])) {\n unset($objects_with_reminders[$object_type]);\n } // if\n } // if\n } // foreach\n\n // reuse old array and get only reminder ID's due for deletion\n $reminders = array();\n foreach ($objects_with_reminders as $object_type => $object_ids) {\n // delete \"selected user\" reminders that may exist\n if (is_foreachable($object_ids)) {\n DB::execute(\"DELETE FROM $reminders_table WHERE send_to = 'selected' AND selected_user_id = ? AND dismissed_on IS NULL AND parent_type = ? AND parent_id IN (?)\", $user->getId(), $object_type, $object_ids);\n } // if\n\n if ($clear_user_reminders_table) {\n $reminders_for_object_type = DB::executeFirstColumn(\"SELECT id FROM $reminders_table WHERE dismissed_on IS NULL AND parent_type = ? AND parent_id IN (?)\", $object_type, $object_ids);\n if (is_foreachable($reminders_for_object_type)) {\n $reminders = array_merge($reminders, $reminders_for_object_type);\n } // if\n } // if\n } // foreach\n\n if ($clear_user_reminders_table && is_foreachable($reminders)) {\n DB::execute(\"DELETE FROM $user_reminders_table WHERE user_id = ? AND reminder_id IN (?) AND dismissed_on IS NULL\", $user->getId(), $reminders);\n } // if\n } // if\n }", "public function getEntries($user) {\n\t\t$db = $this->db;\n\t\t$user = $db->quote($user);\n\t\t$query = \"SELECT value FROM entries WHERE user=$user\";\n\t\t$result = $db->query($query);\n\t\treturn $result->fetchAll(PDO::FETCH_ASSOC);\n\t}", "public static function getSchedDay($date, $user) {\n\n // Slot defaults\n $schedDay = new SchedDay($date);\n /*\n $sql = SchedDao::SQL_SELECT_SCHED .\n \" WHERE user_id=\" . $user->id . \" AND date=\" . quote($date) .\n \" ORDER BY time_start, client_id\";\n $res = query($sql); \n $scheds = array();\n while ($row = mysql_fetch_array($res, MYSQL_ASSOC)) {\n $sched = SchedDao::buildSched($row);\n $sched->client = SchedDao::getClient($sched->clientId);\n $scheds[] = $sched;\n }\n */\n logit_r('here getschedday');\n $scheds = Scheduling::getAppts($date, $user->id);\n $schedUser = new SchedUser($user->id, $user->uid, $user->name);\n $schedUser->scheds = $scheds;\n $schedDay->users[] = $schedUser;\n return $schedDay;\n }", "public function getCalendarObjects($calendarId) {\n\t\t\\GO::debug(\"c:getCalendarObjects($calendarId)\");\n\t\t\n\t\t//weird bug?\n\t\tif(!\\GO::user()) {\n\t\t\tthrow new Sabre\\DAV\\Exception\\NotAuthenticated();\n\t\t}\n\n\t\t//Get the calendar object and check if the user has delete permission.\n\t\t$calendar = \\GO\\Calendar\\Model\\Calendar::model()->findByPk($calendarId, false, true);\n//\t\tif(!$calendar->checkPermissionLevel(\\GO\\Base\\Model\\Acl::DELETE_PERMISSION))\n//\t\t\tthrow new Sabre\\DAV\\Exception\\Forbidden();\n\t\t\n\t\t\\GO::config()->caldav_max_months_old=isset(\\GO::config()->caldav_max_months_old) ? \\GO::config()->caldav_max_months_old : 6;\n\t\t\\GO::config()->caldav_max_months_old=\\GO::config()->caldav_max_months_old*-1;\n\n\n\t\t$objects = array();\n\t\t\n\t\t$whereCriteria = FindCriteria::newInstance()\n\t\t\t->addModel(\\GO\\Calendar\\Model\\Event::model())\n\t\t\t->addCondition('exception_for_event_id', 0)\n\t\t\t->addCondition('calendar_id', $calendarId);\n\t\t\n\t\t$findParams = FindParams::newInstance()\n\t\t\t->ignoreAcl()\n\t\t\t->criteria($whereCriteria);\n\t\t\n\t\t$stmt = \\GO\\Calendar\\Model\\Event::model()->findForPeriod(\n\t\t\t$findParams, \n\t\t\t\\GO\\Base\\Util\\Date::date_add(time(), 0, GO::config()->caldav_max_months_old),\n\t\t\t\\GO\\Base\\Util\\Date::date_add(time(),0,0,3)\n\t\t); //Outlook crashes on dates far in the future.\n\t\t\n\t\t\\GO::debug(\"Found \".$stmt->rowCount().\" events\");\n\t\t\n\t\twhile ($event = $stmt->fetch()) {\n\t\t\t\n\t\t\t\n\t\t\t// Check if all occurences of this rrule are removed with an exception.\n\t\t\t// If so, then continue to the next event. (Sabredav cannot handle rrules where all possible dates are removed by exceptions)\n\t\t\tif(!empty($event->rrule)) {\n\t\t\t\ttry{\n\t\t\t\t\t$vobject = $event->toVObject();\n\t\t\t\t\t$it = new \\Sabre\\VObject\\Recur\\EventIterator($vobject);\n\t\t\t\t}catch(\\Exception $e) {\n\t\t\t\t\t\\GO::debug(\"Invalid rrule event ID: \".$event->id.' : '.$event->rrule.' '.$e->getMessage());\n\t\t\t\t\t\\GO::debug(\"All possible RRULE dates are removed by an RRULE Exception event so there is no event to display\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$calendar_user_id = $event->calendar->user_id;\n\t\t\t$user_id = \\GO::user()->id;\n\t\t\t\n\t\t\tif(!$event->private || $calendar_user_id == $user_id){\n\t\t\t\n\t\t\t\t$davEvent = DavEvent::model()->findByPk($event->id);\n\t\t\t\tif(!$davEvent || $davEvent->mtime != $event->mtime){\t\t\t\t\n\t\t\t\t\t$davEvent = CaldavModule::saveEvent($event, $davEvent);\n\t\t\t\t}\n\n\t\t\t\t$objects[] = array(\n\t\t\t\t\t'id' => $event->id,\n\t\t\t\t\t'uri' => $davEvent->uri,\n\t\t\t\t\t'calendardata' => $davEvent->data,\n\t\t\t\t\t'calendarid' => 'c:'.$calendarId,\n\t\t\t\t\t'lastmodified' => $event->mtime,\n\t\t\t\t\t'etag'=>'\"' . date('Ymd H:i:s', $event->mtime). '-'.$event->id.'\"'\n\t\t\t\t);\n\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tif($calendar->tasklist_id>0)\n\t\t{\n\t\t\t\n\t\t\t$tasklist = \\GO\\Tasks\\Model\\Tasklist::model()->findByPk($calendar->tasklist_id, false, true);\n\t\t\t\n\t\t\tif($tasklist && $tasklist->getPermissionLevel() > 0) {\n\n\t\t\t\t$whereCriteria = FindCriteria::newInstance()\n\t\t\t\t\t->addModel(\\GO\\Tasks\\Model\\Task::model())\n\t\t\t\t\t->addCondition('tasklist_id', $calendar->tasklist_id)\n\t\t\t\t\t->mergeWith(FindCriteria::newInstance()\n\t\t\t\t\t\t->addModel(\\GO\\Tasks\\Model\\Task::model())\n\t\t\t\t\t\t->addCondition('completion_time', 0)\n\t\t\t\t\t\t->addCondition('due_time', \\GO\\Base\\Util\\Date::date_add(time(), 0, \\GO::config()->caldav_max_months_old),'>','t',false));\n\n\t\t\t\t$findParams = \\GO\\Base\\Db\\FindParams::newInstance()\n\t\t\t\t\t->select('t.*')\n\t\t\t\t\t->ignoreAcl()\n\t\t\t\t\t->criteria($whereCriteria);\n\n\t\t\t\t$stmt = \\GO\\Tasks\\Model\\Task::model()->find($findParams);\n\n\t\t\t\t\\GO::debug(\"Found \".$stmt->rowCount().\" tasks\");\n\n\n\t//\t\t\t$sql = \"SELECT * FROM ta_tasks WHERE tasklist_id=? AND (completion_time=0 OR due_time>?)\";\n\t//\t\t\t$count = $this->tasks->query($sql, 'ii', array($calendar['tasklist_id'], Date::date_add(time(),0,\\GO::config()->caldav_max_months_old)));\n\n\t\t\t\twhile ($task = $stmt->fetch()) {\t\t\t\n\t\t\t\t\t$davTask = DavTask::model()->findByPk($task->id);\n\n\t\t\t\t\tif(!$davTask || $davTask->mtime != $task->mtime){\t\t\t\t\n\t\t\t\t\t\t$davTask = CaldavModule::saveTask($task, $davTask);\n\t\t\t\t\t}\n\n\t\t\t\t\t$objects[] = array(\n\t\t\t\t\t\t'id' => $task->id,\n\t\t\t\t\t\t'uri' => $davTask->uri,\n\t\t\t\t\t\t'calendardata' => $davTask->data,\n\t\t\t\t\t\t'calendarid' => 'c:'.$calendarId,\n\t\t\t\t\t\t'lastmodified' => $task->mtime,\n\t\t\t\t\t\t'etag'=>'\"' . date('Ymd H:i:s', $task->mtime). '-'.$task->id.'\"'\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//\\GO::debug($objects);\n\n\t\treturn $objects;\n\t}", "public function get_all_registerd_modal($user_id) {\n\t\t\n\t\t$query = $this->db->prepare(\"SELECT categories.cat_id, categories.cat_name, company_info.info_logo, company_info.info_address, users.user_id, users.user_confirmed, users.admin_confirmed, users.user_name, users.user_email, users.user_comp_name, users.user_number, users.client_cat_id, client_cat.client_cat_id, users.user_time, client_cat.client_cat_name\nFROM client_cat\nLEFT JOIN users ON users.client_cat_id = client_cat.client_cat_id\nRIGHT JOIN company_info ON company_info.user_id = users.user_id\nLEFT JOIN categories ON categories.cat_id = company_info.cat_id WHERE users.user_id=?\");\n\t\t\t\n\t\t\t$query->bindValue(1,$user_id);\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\t$query->execute();\n\t\t\t$result = $query->fetch();\n\t\t\treturn $result;\n\t\t}catch(PDOException $e){\n\n\t\t\tdie($e->getMessage());\n\t\t}\n\t}", "public static function getAllUsers() {\r\n // Create a User object\r\n $user = new User();\r\n // Return an array of user objects from the database, ordered by firstname\r\n return $user->getCollection([\"ORDER\" => ['firstname' => 'ASC']]);\r\n }", "function GetAllSchedules() {\n\tglobal $server;\n\tglobal $user;\n\t$url = \"http://\".$server.\"/api/\".$user.\"/schedules\";\n\t$array = LaunchCurl($url);\n\treturn $array;\n}", "public function allReadForUser($userId);", "public function getCalendars($params){\n /**\n * @var integer $month 0 last month, 1 current month, 2 next month\n */\n $month = isset($params['month']) ? $params['month'] : 1;\n switch ($month){\n case 0:$date = date(\"Y-m-1\",strtotime(\"-1 month\"));break;\n case 1:$date = date(\"Y-m-1\",time());break;\n case 2:$date = date(\"Y-m-1\",strtotime(\"+1 month\"));break;\n default:$date = date(\"Y-m-1\",time());break;\n }\n $month = intval(date(\"m\",strtotime($date)));\n $week = date(\"w\",strtotime($date));\n $start = strtotime($date) - $week * 24 * 3600;\n $end = $start + 41 * 24 * 3600;\n\n $cser = $this->searchByTime($start,$end); /// 排班表内容\n $data = [];\n for ($i = 0; $i < 42; $i++){\n $i_time = $start + $i * 24 * 3600;\n $i_month = intval(date(\"m\",$i_time));\n $data[$i]['day'] = intval(date(\"d\",$i_time));\n $data[$i]['date'] = date(\"Y-m-d\",$i_time);\n $data[$i]['off'] = $i_month != $month ? true : false;\n $data[$i]['on'] = date(\"Y-m-d\",time()) == $data[$i]['date'] ? true : false;\n $flag = false;\n foreach ($cser as $k => $cs){\n if($cs['time'] == $i_time){\n $data[$i]['name'] = $cs['scheduler']['name'];\n $data[$i]['id'] = $cs['s_id'];\n $flag = true;\n unset($cser[$k]);\n break;\n }\n if($cs['time'] < $i_time){\n break;\n }\n }\n if(!$flag){\n $data[$i]['name'] = '无';\n $data[$i]['id'] = null;\n }\n }\n return $data;\n }", "function getCalendarEvents() {\n$client = getClient();\n$service = new Google_Service_Calendar($client);\n\n// Print the next 10 events on the user's calendar.\n$calendarId = 'primary';\n$optParams = array(\n 'maxResults' => 10,\n 'orderBy' => 'startTime',\n 'singleEvents' => TRUE,\n 'timeMin' => date('c'),\n);\n$results = $service->events->listEvents($calendarId, $optParams);\n\nif (count($results->getItems()) == 0) {\n print \"No upcoming events found.\\n\";\n} else {\n print \"Upcoming events:\\n\";\n foreach ($results->getItems() as $event) {\n $start = $event->start->dateTime;\n if (empty($start)) {\n $start = $event->start->date;\n }\n printf(\"%s (%s)\\n\", $event->getSummary(), $start);\n }\n}\n}", "function scheduledreporting_component_get_all_reports()\n{\n $scheduled_reports = array();\n\n // Get all the users and grab their reports\n $users = get_users();\n foreach ($users as $user) {\n $tmp = scheduledreporting_component_get_reports($user['user_id']);\n foreach ($tmp as $i => $t) {\n $tmp[$i]['user_id'] = $user['user_id'];\n }\n $scheduled_reports = array_merge($scheduled_reports, $tmp);\n }\n\n return $scheduled_reports;\n}", "public function index(User $user)\n {\n $invitations = Invitation::where('contact_id', $user->id)->where('viewed', false)->get();\n return $invitations;\n }", "public static function getAllOfUser()\n {\n return Journal::selectRaw(DB::raw(\"journal_types.type, journals.id ,journals.date, journals.date,journals.entry\"))\n ->leftJoin('journal_types','journals.journal_type_id','=','journal_types.id')\n ->whereRaw(DB::raw('journals.user_id = '.Auth::user()->id))\n ->get();\n }", "public function get_events($user_id,$type){\n\t\t$this->db->select('*');\n\t\tif($type===\"restaurant\"){\n\t\t\t$this->db->where('restaurant_id',$user_id);\n\t\t}else{\n\t\t\t$this->db->where('server_id',$user_id);\n\t\t}\n\t\t$query = $this->db->get('calendar');\n\t\treturn $query->result();\n\t}", "public function listAction(UserInterface $user)\n {\n $repository = $this->getDoctrine()->getRepository(Client::class);\n $client = $repository->findBy(['user' => $user]);\n\n return $client;\n }", "public function getUsers();", "public function getUsers();", "public function getUsers();", "public function getBlocks($user)\n\t{\n\t\t$staff = $user->staff;\n\n\t\t// Start an array for storing the blocks\n\t\t$blocks = array();\n\n\t\tif ($staff)\n\t\t{\n\t\t\tif ($staff->appointments->count() > 0)\n\t\t\t{\n\t\t\t\t// Get today\n\t\t\t\t$today = Date::now();\n\n\t\t\t\treturn $staff->appointments->filter(function($a) use ($today)\n\t\t\t\t{\n\t\t\t\t\treturn (int) $a->service_id === 1 and $a->start->startOfDay() >= $today->startOfDay();\n\t\t\t\t})->sortBy(function($a)\n\t\t\t\t{\n\t\t\t\t\treturn $a->start;\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treturn new Collection;\n\t\t}\n\n\t\treturn new Collection;\n\t}", "public static function get_tickets ($user_id)\r\n\t{\r\n\t\t$db_manager = new database_manager ();\r\n\t\t$tickets \t= $db_manager -> select (\r\n\t\t\t'tickets',\r\n\t\t\tnull,\r\n\t\t\t\"user_id='$user_id'\"\r\n\t\t);\r\n\r\n\t\treturn ($tickets);\r\n\t}", "public function findAll() {\n\t\t$sql = \"select u.* from t_user u order by txtUserRole, txtUserName\";\n\t\t$result = $this->getDb()->fetchAll($sql);\n\n\t\t// Convert query result to an array of domain objects\n\t\t$entities = array();\n\t\tforeach ($result as $row) {\n\t\t\t$id = $row['idUser'];\n\t\t\t$entities[$id] = $this->buildDomainObject($row);\n\t\t}\n\t\treturn $entities;\n\t}", "public function findPartnerCollections($user) {\n $table = $this->_db->getTable('Collection');\n $collections = $table->findBy(array('owner_id' => $user->id));\n return $collections;\n }", "static function getContacts($user = null)\r\n {\r\n if ($user === null)\r\n {\r\n return null;\r\n }\r\n\r\n $tableMessage = DatabaseManager::getNameTable('TABLE_MESSAGE');\r\n $tableUser = DatabaseManager::getNameTable('TABLE_USER');\r\n $idUser = $user->getId();\r\n \r\n $query = \"SELECT DISTINCT u.* \r\n FROM (SELECT * FROM $tableMessage ORDER BY time DESC) AS m \r\n JOIN $tableUser as u \r\n ON u.id = m.idUserTo OR m.idUserFrom = u.id\r\n WHERE m.idUserTo = $idUser OR m.idUserFrom = $idUser\";\r\n\r\n $arrayMessages = DatabaseManager::multiFetchAssoc($query);\r\n $messages = array();\r\n\r\n if ($arrayMessages === null)\r\n {\r\n return null;\r\n }\r\n\r\n foreach ($arrayMessages as $Message) \r\n {\r\n $messages[] = self::ArrayToUser($Message);\r\n }\r\n\r\n return $messages;\r\n }" ]
[ "0.8625929", "0.739091", "0.65626097", "0.6485882", "0.6477315", "0.6391695", "0.59377193", "0.5838466", "0.5786328", "0.5778732", "0.57739645", "0.5744249", "0.57347906", "0.572469", "0.5718613", "0.56601167", "0.55454266", "0.55454266", "0.54526913", "0.5445954", "0.54184556", "0.54075", "0.54046094", "0.5401774", "0.5396446", "0.53947824", "0.53838414", "0.53654194", "0.53589463", "0.53460026", "0.534068", "0.5328695", "0.53226423", "0.5297169", "0.52744734", "0.52729", "0.5252164", "0.5251774", "0.5249113", "0.5247474", "0.5242205", "0.52204144", "0.5218949", "0.52184844", "0.52155143", "0.5197647", "0.5171161", "0.5149463", "0.51422757", "0.5142156", "0.51407796", "0.5139793", "0.51376647", "0.51259434", "0.51248413", "0.51206964", "0.51206964", "0.51159173", "0.509116", "0.5072614", "0.507187", "0.5063365", "0.5061315", "0.5060231", "0.50580883", "0.50570154", "0.5055188", "0.5037646", "0.502196", "0.50177234", "0.5013912", "0.5010122", "0.5009581", "0.50078946", "0.5001128", "0.49993065", "0.49937427", "0.49896416", "0.49869946", "0.49835935", "0.49745148", "0.49632552", "0.49600053", "0.4959683", "0.4949987", "0.49457455", "0.4940591", "0.4940222", "0.49153686", "0.4915242", "0.49135137", "0.4907325", "0.4902536", "0.4902536", "0.4902536", "0.49006602", "0.48992154", "0.4894269", "0.48932108", "0.48931953" ]
0.8041804
1
Find all public calendars by given term (name, description or creator of the calendar) of other users.
public function findPublicCalendarsByTerm($term, UserInterface $user) { $qb = $this->repository->createQueryBuilder('c'); $qb->select('c.id, c.name, u.username'); $qb->join('c.createdBy', 'u'); $qb->where('c.name LIKE :term'); $qb->orWhere('c.description LIKE :term'); $qb->orWhere('u.username LIKE :term'); $qb->andWhere('c.visible = :visible'); $qb->andwhere('c.createdBy != :user'); $qb->setMaxResults($this->autocompleteMaxResults); $qb->orderBy('c.name', 'ASC'); $qb->setParameter('term', '%' . $term . '%'); $qb->setParameter('visible', true); $qb->setParameter('user', $user); return $qb->getQuery()->getScalarResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCalendars(User $user = null);", "function get_calendars() {\n\n\t\t// Get the attached calendars\n\t\t$calendars = wp_get_post_terms( $this->post_id , 'calendar' );\n\t\t$this->calendars = $calendars;\n\t\t\n\t\t// Loop through calendars, checking permissions\n\t\tforeach ( $calendars as $calendar ) {\n\t\t\t\n\t\t\t// Is it a group calendar?\n\t\t\tif ( is_group_calendar( $calendar->term_id ) ) :\n\t\t\t\t$group_id\t= groups_get_id( $calendar->slug );\n\t\t\t\t$can_view \t= groups_is_user_member( get_current_user_id() , $group_id ) ? true : false;\n\t\t\telse :\n\t\t\t\t$can_view = true;\n\t\t\tendif;\n\t\t\t\n\t\t\t// If we find a calendar for which the user is authorized, go ahead and display it\n\t\t\tif( $can_view ) :\n\t\t\t\t$this->calendar = $calendar;\n\t\t\t\t$this->can_view = true;\n\t\t\t\tbreak;\n\t\t\tendif;\n\t\t}\n\n\t\t// If the user is not allowed to view any calendar, redirect them to the group\n\t\tif ( !$can_view ) {\n\t\t\t$redirect = SITEURL . '/groups/' . $this->calendar->slug;\n\t\t\tbp_core_add_message( 'You cannot access events on this calendar.' , 'error' );\n\t\t\tbp_core_redirect( $redirect );\n\t\t}\n\t}", "public function listCalendars()\n {\n Kronolith::initialize();\n $all_external_calendars = $GLOBALS['calendar_manager']->get(Kronolith::ALL_EXTERNAL_CALENDARS);\n $result = new stdClass;\n $auth_name = $GLOBALS['registry']->getAuth();\n\n // Calendars. Do some twisting to sort own calendar before shared\n // calendars.\n foreach (array(true, false) as $my) {\n foreach ($GLOBALS['calendar_manager']->get(Kronolith::ALL_CALENDARS) as $id => $calendar) {\n $owner = ($auth_name && ($calendar->owner() == $auth_name));\n if (($my && $owner) || (!$my && !$owner)) {\n $result->calendars['internal'][$id] = $calendar->toHash();\n }\n }\n\n // Tasklists\n if (Kronolith::hasApiPermission('tasks')) {\n foreach ($GLOBALS['registry']->tasks->listTasklists($my, Horde_Perms::SHOW, false) as $id => $tasklist) {\n if (isset($all_external_calendars['tasks/' . $id])) {\n $owner = ($auth_name &&\n ($tasklist->get('owner') == $auth_name));\n if (($my && $owner) || (!$my && !$owner)) {\n $result->calendars['tasklists']['tasks/' . $id] =\n $all_external_calendars['tasks/' . $id]->toHash();\n }\n }\n }\n }\n }\n\n // Resources\n if (!empty($GLOBALS['conf']['resource']['driver'])) {\n foreach (Kronolith::getDriver('Resource')->listResources() as $resource) {\n if ($resource->get('type') != Kronolith_Resource::TYPE_GROUP) {\n $rcal = new Kronolith_Calendar_Resource(array(\n 'resource' => $resource\n ));\n $result->calendars['resource'][$resource->get('calendar')] = $rcal->toHash();\n } else {\n $rcal = new Kronolith_Calendar_ResourceGroup(array(\n 'resource' => $resource\n ));\n $result->calendars['resourcegroup'][$resource->getId()] = $rcal->toHash();\n }\n }\n }\n\n // Timeobjects\n foreach ($all_external_calendars as $id => $calendar) {\n if ($calendar->api() != 'tasks' && $calendar->display()) {\n $result->calendars['external'][$id] = $calendar->toHash();\n }\n }\n\n // Remote calendars\n foreach ($GLOBALS['calendar_manager']->get(Kronolith::ALL_REMOTE_CALENDARS) as $url => $calendar) {\n $result->calendars['remote'][$url] = $calendar->toHash();\n }\n\n // Holidays\n foreach ($GLOBALS['calendar_manager']->get(Kronolith::ALL_HOLIDAYS) as $id => $calendar) {\n $result->calendars['holiday'][$id] = $calendar->toHash();\n }\n\n return $result;\n }", "public function findCalendarsByUser(UserInterface $user)\r\n {\r\n $qb = $this->repository->createQueryBuilder('c');\r\n $qb->where('c.createdBy = :user');\r\n $qb->setParameter('user', $user);\r\n\r\n return $qb->getQuery()->execute();\r\n }", "public static function getSharedCalendarsForUser($a_usr_id = 0)\r\n\t{\r\n\t\tglobal $ilDB,$ilUser,$rbacreview;\r\n\t\t\r\n\t\tif(!$a_usr_id)\r\n\t\t{\r\n\t\t\t$a_usr_id = $ilUser->getId();\r\n\t\t}\r\n\r\n\t\t$query = \"SELECT * FROM cal_shared \".\r\n\t\t\t\"WHERE obj_type = \".$ilDB->quote(self::TYPE_USR ,'integer').\" \".\r\n\t\t\t\"AND obj_id = \".$ilDB->quote($a_usr_id ,'integer').\" \".\r\n\t\t\t\"ORDER BY create_date\";\r\n\t\t$res = $ilDB->query($query);\r\n\t\t$calendars = array();\r\n\t\twhile($row = $res->fetchRow(DB_FETCHMODE_OBJECT))\r\n\t\t{\r\n\t\t\t$calendars[] = $row->cal_id; \r\n\t\t\t\r\n\t\t\t$shared[$row->cal_id]['cal_id'] = $row->cal_id;\r\n\t\t\t$shared[$row->cal_id]['create_date'] = $row->create_date;\r\n\t\t\t$shared[$row->cal_id]['obj_type'] = $row->obj_type;\r\n\t\t}\r\n\t\t\r\n\t\t$assigned_roles = $rbacreview->assignedRoles($ilUser->getId());\r\n\t\t\r\n\t\t$query = \"SELECT * FROM cal_shared \".\r\n\t\t\t\"WHERE obj_type = \".$ilDB->quote(self::TYPE_ROLE ,'integer').\" \".\r\n\t\t\t\"AND \".$ilDB->in('obj_id',$assigned_roles,false ,'integer');\r\n\r\n\t\t$res = $ilDB->query($query);\r\n\t\twhile($row = $res->fetchRow(DB_FETCHMODE_OBJECT))\r\n\t\t{\r\n\t\t\tif(in_array($row->cal_id,$calendars))\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif(ilCalendarCategories::_isOwner($ilUser->getId(),$row->cal_id))\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$shared[$row->cal_id]['cal_id'] = $row->cal_id;\r\n\t\t\t$shared[$row->cal_id]['create_date'] = $row->create_date;\r\n\t\t\t$shared[$row->cal_id]['obj_type'] = $row->obj_type;\r\n\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\treturn $shared ? $shared : array();\r\n\t\t// TODO: return also role calendars\r\n\t\t\r\n\t}", "public function calendarSearchAction(Request $request)\r\n {\r\n if (false === $this->getSecurity()->isGranted('IS_AUTHENTICATED_REMEMBERED')) {\r\n throw new AccessDeniedException();\r\n }\r\n\r\n $isAjax = $request->isXmlHttpRequest();\r\n\r\n if ($isAjax) {\r\n $results = $this->getCalendarManager()->findPublicCalendarsByTerm($request->query->get('term'), $this->getUser());\r\n\r\n $json = array();\r\n foreach ($results as $result) {\r\n $json[] = $result;\r\n };\r\n\r\n return new Response(json_encode($json));\r\n }\r\n\r\n return new Response('This is not ajax.', 400);\r\n }", "public static function getPersons($term) {\n $sql = \"SELECT \n usuarios.dni, usuarios.nombre_persona, usuarios.dni+' '+usuarios.nombre_persona as label\n FROM\n (select \n persona.CodPer as dni\n ,persona.Nombres\n ,persona.Ape1\n ,persona.Ape2\n ,(RTRIM(persona.Nombres)+' '+RTRIM(persona.Ape1)+' '+RTRIM(persona.Ape2)) as nombre_persona\n from dbo.Identis persona\n left join dbo.permis usuario ON(\n persona.CodPer = usuario.LogIn\n )\n where usuario.FHasta >= GETDATE()\n ) usuarios\n WHERE usuarios.nombre_persona+usuarios.dni LIKE '%{$term}%'\n group BY usuarios.dni, usuarios.nombre_persona \";\n\n $command = Yii::$app->chacad->createCommand($sql);\n return $command->queryAll();\n }", "function getAllUsersMatching($terms){\n\t\treturn $this->avalanche->getAllUsersMatching($terms);\n\t}", "public function getCalendarEvents($organizationId, $userId, $calendarId, $start, $end, $connections, $extraField);", "function loadPublicCalendars() {\n $sql = \"\n SELECT c.calendar_id, c.title, c.color\n FROM %s AS c\n WHERE c.surfer_id IS NULL\n ORDER BY c.title\n \";\n $result = $this->databaseQueryFmt($sql, $this->tableCalendars);\n if (!$result || $result->count() == 0) {\n // database error or no public calendars defined\n return FALSE;\n }\n\n $calendars = array();\n while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC)) {\n $calendars[] = $row;\n }\n\n return $calendars;\n }", "function search($term, $fields=array(), $limit=array()) { /* {{{ */\n\t\t$querystr = '';\n\t\t$term = trim($term);\n\t\tif($term) {\n\t\t\t$querystr = substr($term, -1) != '*' ? $term.'*' : $term;\n\t\t}\n\t\tif(!empty($fields['owner'])) {\n\t\t\tif(is_string($fields['owner'])) {\n\t\t\t\tif($querystr)\n\t\t\t\t\t$querystr .= ' ';\n\t\t\t\t$querystr .= 'owner:'.$fields['owner'];\n\t\t\t} elseif(is_array($fields['owner'])) {\n\t\t\t\tif($querystr)\n\t\t\t\t\t$querystr .= ' ';\n\t\t\t\t$querystr .= '(owner:';\n\t\t\t\t$querystr .= implode(' OR owner:', $fields['owner']);\n\t\t\t\t$querystr .= ')';\n\t\t\t}\n\t\t}\n\t\tif(!empty($fields['category'])) {\n\t\t\tif($querystr)\n\t\t\t\t$querystr .= ' ';\n\t\t\t$querystr .= '(category:';\n\t\t\t$querystr .= implode(' OR category:', $fields['category']);\n\t\t\t$querystr .= ')';\n\t\t}\n\t\tif(!empty($fields['status'])) {\n\t\t\tif($querystr)\n\t\t\t\t$querystr .= ' ';\n\t\t\t$status = array_map(function($v){return $v+10;}, $fields['status']);\n\t\t\t$querystr .= '(status:';\n\t\t\t$querystr .= implode(' OR status:', $status);\n\t\t\t$querystr .= ')';\n\t\t}\n\t\tif(!empty($fields['user'])) {\n\t\t\tif($querystr)\n\t\t\t\t$querystr .= ' ';\n\t\t\t$querystr .= '(users:';\n\t\t\t$querystr .= implode(' OR users:', $fields['user']);\n\t\t\t$querystr .= ')';\n\t\t}\n\t\tif(!empty($fields['rootFolder']) && $fields['rootFolder']->getFolderList()) {\n\t\t\tif($querystr)\n\t\t\t\t$querystr .= ' ';\n\t\t\t$querystr .= '(path:';\n\t\t\t$querystr .= str_replace(':', 'x', $fields['rootFolder']->getFolderList().$fields['rootFolder']->getID().':');\n\t\t\t$querystr .= ')';\n\t\t}\n\t\tif(!empty($fields['startFolder']) && $fields['startFolder']->getFolderList()) {\n\t\t\tif($querystr)\n\t\t\t\t$querystr .= ' ';\n\t\t\t$querystr .= '(path:';\n\t\t\t$querystr .= str_replace(':', 'x', $fields['startFolder']->getFolderList().$fields['startFolder']->getID().':');\n\t\t\t$querystr .= ')';\n\t\t}\n\t\ttry {\n\t\t\t$result = $this->index->find($querystr, $limit);\n\t\t\t$recs = array();\n\t\t\tforeach($result[\"hits\"] as $hit) {\n\t\t\t\t$recs[] = array('id'=>$hit->id, 'document_id'=>$hit->documentid);\n\t\t\t}\n\t\t\treturn array('count'=>$result['count'], 'hits'=>$recs, 'facets'=>array());\n\t\t} catch (Exception $e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public function usuarios()\n {\n $parametros = Input::only('term');\n\n $data = SisUsuario::with(\"SisUsuariosGrupos\", \"SisUsuariosContactos\")->where(function($query) use ($parametros) {\n $query->where('nombre','LIKE',\"%\".$parametros['term'].\"%\")\n ->orWhere('email','LIKE',\"%\".$parametros['term'].\"%\");\n });\n\n $data = $data->get();\n return $this->respuestaVerTodo($data);\n }", "public function getCalendarsForUser($principalUri) {\n\t\n\n\t\t\\GO::debug(\"c:getCalendarsForUser($principalUri)\");\n\t\t\n\t\tif(!isset($this->_cachedCalendars[$principalUri])){\n\t\t\n\t\t\t$user = $this->_getUser($principalUri);\n\t\t\t\t\t\n\t\t\t$findParams = \\GO\\Base\\Db\\FindParams::newInstance()->ignoreAcl()\n\t\t\t\t->joinModel(array(\n\t\t\t\t\t\t'model' => 'GO\\Sync\\Model\\UserCalendar',\n\t\t\t\t\t\t'localTableAlias' => 't', //defaults to \"t\"\n\t\t\t\t\t\t'localField' => 'id', //defaults to \"id\"\n\t\t\t\t\t\t'foreignField' => 'calendar_id', //defaults to primary key of the remote model\n\t\t\t\t\t\t'tableAlias' => 'l', //Optional table alias\n\t\t\t\t))\n\t\t\t\t->criteria(\\GO\\Base\\Db\\FindCriteria::newInstance()->addCondition('user_id', $user->id, '=', 'l'));\n\n\t\t\t$stmt = \\GO\\Calendar\\Model\\Calendar::model()->find($findParams);\n\t\t\t\n\t\t\tif(!$stmt->rowCount()){\t\t\n\t\t\t //If the sync settings dialog for this user is never opened no default settings are created\n\t\t\t \\GO\\Sync\\Model\\Settings::model()->findForUser($user); //create default settings\n\t\t\t $stmt = \\GO\\Calendar\\Model\\Calendar::model()->find($findParams);\n\t\t\t}\n\n\t\t\t$this->_cachedCalendars[$principalUri] = array();\n\t\t\twhile ($calendar = $stmt->fetch()) {\n\t\t\t\t$this->_cachedCalendars[$principalUri][] = $this->_modelToDAVCalendar($calendar, $principalUri);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\\GO::debug($this->_cachedCalendars[$principalUri]);\n\t\t\n\t\treturn $this->_cachedCalendars[$principalUri];\n\t}", "function getAllVisibleAuthors()\r\n {\r\n $CI = &get_instance();\r\n $userlogin=getUserLogin();\r\n \r\n if ($userlogin->hasRights('read_all_override'))\r\n return $this->getAllAuthors();\r\n \r\n if ($userlogin->isAnonymous()) //get only public authors\r\n {\r\n $Q = $CI->db->query(\"SELECT DISTINCT \".AIGAION_DB_PREFIX.\"author.* FROM \".AIGAION_DB_PREFIX.\"author, \".AIGAION_DB_PREFIX.\"publicationauthorlink, \".AIGAION_DB_PREFIX.\"publication\r\n WHERE \".AIGAION_DB_PREFIX.\"publication.derived_read_access_level = 'public'\r\n AND \".AIGAION_DB_PREFIX.\"publicationauthorlink.pub_id = \".AIGAION_DB_PREFIX.\"publication.pub_id \r\n AND \".AIGAION_DB_PREFIX.\"author.author_id = \".AIGAION_DB_PREFIX.\"publicationauthorlink.author_id\r\n ORDER BY \".AIGAION_DB_PREFIX.\"author.cleanname\");\r\n }\r\n else //get all non-private authors and authors for publications that belong to the user\r\n {\r\n $Q = $CI->db->query(\"SELECT DISTINCT \".AIGAION_DB_PREFIX.\"author.* FROM \".AIGAION_DB_PREFIX.\"author, \".AIGAION_DB_PREFIX.\"publicationauthorlink, \".AIGAION_DB_PREFIX.\"publication\r\n WHERE (\".AIGAION_DB_PREFIX.\"publication.derived_read_access_level != 'private' \r\n OR \".AIGAION_DB_PREFIX.\"publication.user_id = \".$userlogin->userId().\")\r\n AND \".AIGAION_DB_PREFIX.\"publicationauthorlink.pub_id = \".AIGAION_DB_PREFIX.\"publication.pub_id \r\n AND \".AIGAION_DB_PREFIX.\"author.author_id = \".AIGAION_DB_PREFIX.\"publicationauthorlink.author_id\r\n ORDER BY \".AIGAION_DB_PREFIX.\"author.cleanname\");\r\n }\r\n \r\n //retrieve results or fail \r\n foreach ($Q->result() as $row)\r\n {\r\n $next = $this->getFromRow($row);\r\n if ($next != null)\r\n {\r\n $result[] = $next;\r\n }\r\n }\r\n return $result;\r\n \r\n }", "function cwrc_get_authorities_list($setup_data, $query) {\n $collection = $setup_data['collection'];\n $query_string = 'collection:\"' . $collection . '\"';\n // $records = emic_process_query($query_string);\n $terms = explode(' ', $query);\n $terms = array_filter($terms);\n $solr = variable_get('islandora_solr_search_block_url', 'http://localhost:8080/solr');\n\n $url = \"http://$solr/select?indent=on&version=2.2&q=$query_string&fq=&start=0&rows=1000&qt=standard&wt=json&explainOther=&hl.fl=\";\n $results = json_decode(file_get_contents($url), TRUE);\n $docs = $results['response']['docs'];\n foreach ($docs as $doc) {\n $pid = $doc['PID'];\n $contents = array();\n foreach ($doc['emic.searchname'] as $sample) {\n $identifier = null;\n if (!empty($sample) & !$identifier) {\n $identifier = $sample;\n }\n }\n //$identifier = implode('', $doc['emic.searchname']);\n $contents['identifier'] = $identifier;\n $contents['Object'] = \"<a href='/fedora/repository/$pid' target='_blank'>$pid</a>\";\n $contents['Note'] = $doc['dc.description'][0];\n $records[$doc['PID']] = $contents;\n }\n\n while (count($terms) > 0) {\n $term = array_shift($terms) . \"*\";\n $query_string = 'collection:\"' . $collection . '\" AND emic.searchname:' . strtolower($term);\n\n $new_records = emic_process_query($query_string);\n if (is_array($new_records) && is_array($records)) {\n $records = array_intersect_key($records, $new_records);\n }\n }\n if (is_array($records)) {\n return array_values($records);\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 }", "function getCalendarsForAdmin() {\n //\n // http://dev4.krubner.com/admin.php?page=admin_calendar\n //\n // this brings back 2 months worth of days to show in a calendar\n\n global $controller; \n\n $today = new DateTime(date('Y-m-d'));\n\n //Get Calendar for this week\n if(!isset($_GET['ym'])){\n $top_month = date('Y-m');\n } else {\n $top_month = $_GET['ym'];\n }\n\n $firstDayOfMonthDateTime = new DateTime($top_month.\"-01\");\n $lastDayOfMonthDateTime = clone $firstDayOfMonthDateTime;\n $lastDayOfMonthDateTime->modify(\"+1 month\");\n $lastDayOfMonthDateTime->modify(\"-1 day\");\n\n $arrayOfDaysForThisMonth = array();\n $arrayOfDaysForThisMonth = $controller->command(\"loadAllNights\", $firstDayOfMonthDateTime, $lastDayOfMonthDateTime); \n\n $calendars = array();\n $calendars[$top_month] = $arrayOfDaysForThisMonth;\n\n $firstDayOfMonthDateTime2 = clone $firstDayOfMonthDateTime;\n $firstDayOfMonthDateTime2->modify(\"+1 month\");\n $lastDayOfMonthDateTime2 = clone $firstDayOfMonthDateTime2;\n $lastDayOfMonthDateTime2->modify(\"+1 month\");\n $lastDayOfMonthDateTime2->modify(\"-1 day\");\n\n $arrayOfDaysForThisMonth = array();\n $arrayOfDaysForThisMonth = $controller->command(\"loadAllNights\", $firstDayOfMonthDateTime2, $lastDayOfMonthDateTime2); \n\n $calendars[$lastDayOfMonthDateTime2->format('Y-m')] = $arrayOfDaysForThisMonth;\n\n return $calendars; \n}", "public function listByTerm($term, $offset = null)\n {\n $request = new Highrise_Api_Request();\n $request->endpoint = '/people/search.xml?term=' . str_replace(' ', '+', $term);\n $request->method = Highrise_Api_Client::METHOD_GET;\n $request->expected = 200;\n\n $response = $this->_client->request($request);\n \n $xml = simplexml_load_string($response->getData());\n $result = $xml->xpath('/people/person');\n $collection = array();\n if (!$result) return $collection;\n foreach ($result as $xmlEntry)\n {\n $person = new Highrise_Entity_Person();\n $person->fromXml($xmlEntry->saveXml());\n $collection[] = $person;\n }\n return $collection;\n }", "private function internal_query($start, $limit, $year) {\n global $DB, $CFG;\n $from = '';\n $fromarray = array();\n $where = '';\n $wherearray = array();\n $total = '';\n\n $occurstable = year_tables::get_occurs_table($year);\n $docstable = year_tables::get_docs_table($year);\n\n $join = 0;\n foreach ($this->terms as $term) {\n foreach ($term->ids as $id) {\n $alias = \"o$join\";\n if ($join == 0) {\n $from .= \"{\" . $occurstable . \"} $alias \";\n $where .= \"$alias.wordid = ?\";\n $wherearray[] = $id;\n $total .= \"$alias.score\";\n } else {\n // Note: This line uses the id directly rather than as a ?\n // parameter, because.\n $from .= \"JOIN {\" . $occurstable . \"} $alias\n ON $alias.documentid = o0.documentid AND $alias.wordid = ? \";\n $fromarray[] = $id;\n $total .= \"+$alias.score\";\n }\n $join++;\n }\n }\n // Because it kills the server to search for a large number of terms\n // when the database is full, we need to limit it.\n $maxterms = $CFG->local_ousearch_maxterms;\n if ($join > $maxterms) {\n $referer = $_SERVER['HTTP_REFERER'];\n if (!$referer) {\n $referer = ''; // Use default.\n }\n throw new moodle_exception('toomanyterms', 'local_ousearch', $referer, $maxterms);\n }\n foreach ($this->negativeterms as $term) {\n if (count($term->ids) == 1) {\n $alias = \"o$join\";\n $from .= \"LEFT JOIN {\" . $occurstable . \"} $alias\n ON $alias.documentid = o0.documentid AND $alias.wordid = ?\";\n $fromarray[] = $term->ids[0];\n $total .= \"-(CASE WHEN $alias.score IS NULL THEN 0 ELSE 999999 END)\";\n $join++;\n }\n }\n\n list ($restrict, $restrictarray) = $this->internal_get_restrictions();\n $query = \"\n SELECT o0.documentid, $total AS totalscore, d.*,\n c.shortname AS courseshortname, c.fullname AS coursefullname,\n g.name AS groupname\n FROM $from\n JOIN {\" . $docstable . \"} d ON d.id = o0.documentid\n LEFT JOIN {course} c ON d.courseid = c.id\n LEFT JOIN {groups} g ON d.groupid = g.id\n WHERE $where\n $restrict\n AND $total > 0\n ORDER BY totalscore DESC, o0.documentid\";\n $queryarray = array_merge($fromarray, $wherearray, $restrictarray);\n $result = $DB->get_records_sql($query, $queryarray, $start, $limit);\n if (!$result) {\n $result = array();\n }\n return $result;\n }", "public function getAll($searchTerm);", "public function actionDocauthorAutoComplete($term)\n {\n header('Content-type: application/json');\n\n $criteria = new CDbCriteria();\n $criteria->compare('name', $term, true);\n $criteria->limit = 5;\n\n $data = Docauthor::model()->findAll($criteria);\n\n $result = array();\n foreach ($data as $m) {\n $result[] = array(\n 'value' => $m->name,\n 'label' => $m->name,\n );\n }\n\n echo CJSON::encode($result);\n Yii::app()->end();\n }", "private function getEvents( $days , $filter = null , $startDate = null, $q = null, $city = null ){\n\t\t$events = array();\n\t\t$google_calendar_id = Yii::$app->params['google-calendar-id'];\n\t\t$google_api_key = Yii::$app->params['google-api-key'];\n\n\t\tif( is_null($startDate) )\n\t\t\t$startDate = new \\Datetime();\n\t\t$endPeriod = clone $startDate;\n\t\tif( $days < 84 )\n\t\t\t$movedays = $days;\n\t\telse{\n\t\t\t$movedays = 84;\n\t\t}\n\t\t$endPeriod->modify( ($movedays) . ' days');\n\t\t$format = 'Y-m-d';\n\t\tdo{\n\n\t\t\t$google_url = 'https://www.googleapis.com/calendar/v3/calendars/' . urlencode($google_calendar_id) . '/events?key=' . urlencode($google_api_key) . '&maxResults=2500&orderBy=startTime&singleEvents=true&timeMin=' . urlencode( $startDate->format($format) . 'T07:00:00+00:00') . '&timeMax=' . urlencode( $endPeriod->format($format) . 'T23:59:59+00:00' );\n\t\t\tif(isset($q)){\n\t\t\t\t$google_url.='&q='.urlencode($q);\n\t\t\t}\n\t\t\tif(isset($city) && !empty($city)){\n\t\t\t\t$google_url.='&sharedExtendedProperty=city%3D'.urlencode($city);\n\t\t\t}\n\t\t\t$json_array = $this->getFromApi( $google_url );\n\n\t\t\t$collected_events = $json_array['items'];\n\t\t\tif( !is_null($filter) ){\n\t\t\t\t$collected_events = $this->filterEvents( $filter , $collected_events );\n\t\t\t}\n\t\t\t$events = array_merge( $events , $collected_events );\n\n\t\t\t$startDate = $endPeriod;\n\t\t\t$endPeriod = clone $startDate;\n\t\t\tif( $days < 84 )\n\t\t\t\t$movedays = $days;\n\t\t\telse{\n\t\t\t\t$movedays = 84;\n\t\t\t}\n\t\t\t$endPeriod->modify( ($movedays) . ' days');\n\t\t\t$days-= 84;\n\t\t}while( $days > 0 );\n\n\t\treturn $events;\n\t}", "public function search($val): AnonymousResourceCollection\n {\n $election = Election::where('election_name', 'like', '%'.$val.'%')->paginate(4);\n\n return ElectionResource::collection($election);\n }", "public static function getAllSdById($term){\n // ->join('clienttype as ct', function($join){\n // $join->on('c.ClientType', '=', 'ct.ClientTypeID');\n // })\n // ->join('acctstat as as', function($join){\n // $join->on('c.AccountStatus', '=', 'as.AcctStatID');\n // })\n // ->where('c.ClientID', '=', $clientIdSd)\n // ->get();\n\n return DB::table('client as c')\n ->join('clienttype as ct', function($join) {\n $join->on('c.ClientType', '=', 'ct.ClientTypeID');\n })\n ->join('acctstat as acs', function($join){\n $join->on('c.AccountStatus', '=', 'acs.AcctStatID');\n })\n ->where('c.ClientID', '=', $term)\n ->orWhere('c.FName', 'like', '%'.$term.'%')\n ->orWhere('c.LName', 'like', '%'.$term.'%')\n // ->where('c.AccountStatus', '=', $status)\n // ->orWhere('c.AccountStatus', '=', $status)\n // ->orWhere('c.AccountStatus', '=', $status)\n ->paginate(10);\n }", "public function getCalendarItems($month = FALSE, $year = FALSE, $user_id = FALSE)\n\t{\n\t\t$sql = $this->db->select();\n\t\t$sql = $sql->from(array('i'=>'times'))->columns(array(new \\Zend\\Db\\Sql\\Expression('SUM(hours) AS total'), 'date', 'creator', 'user_id'));\n\n\t\tif($month)\n\t\t{\n\t\t\t$sql = $sql->where(array('month' => $month));\n\t\t}\n\t\t\n\t\tif($year)\n\t\t{\n\t\t\t$sql = $sql->where(array('year' => $year));\n\t\t}\n\t\t\n\t\tif($user_id)\n\t\t{\n\t\t\t$sql = $sql->where('creator = ? ', $user_id);\n\t\t}\t\t\t\t\n\t\t\n\t\t$sql = $sql->join(array('u' => 'users'), 'u.id = i.creator', array('creator_first_name' => 'first_name', 'creator_last_name' => 'last_name'), 'left');\t\t\t\t \n\t\t$sql = $sql->group('date')\n\t\t\t\t ->group('creator');\n\t\t\n\t\t$route_options = array('month' => $month, 'year' => $year);\n\t\t$route_options['user_id'] = $user_id;\n\t\t\n\t\treturn $this->_translateCalendarItems($this->getRows($sql), 'date', array('route_name' => 'times/view-day', 'options' => $route_options));\n\t}", "public function searchContacts($userId, $searchterm)\n { \n $sql = \"SELECT * FROM contacts WHERE ((`firstname` LIKE ?) OR (`lastname` LIKE ?) OR (`phone` LIKE ?) OR (`city` LIKE ?) OR (`birthday` LIKE ?) OR (`email` LIKE ?)) AND (`userid`=?)\";\n $stmt = $this->pdo->prepare($sql);\n $stmt->execute([\"%$searchterm%\", \"%$searchterm%\", \"%$searchterm%\", \"%$searchterm%\", \"%$searchterm%\", \"%$searchterm%\", $userId]);\n return $stmt->fetchAll();\n }", "public function getAuthors();", "public function findCRTForAYear($user,$year)\n {\n $yearp1=$year+1;\n $qb = $this->createQueryBuilder('crt');\n $qb->where('crt.user = :user')\n ->andWhere($qb->expr()->orX(\n $qb->expr()->andX(\n $qb->expr()->eq('YEAR(crt.date )', $year),\n $qb->expr()->gt('MONTH(crt.date )', '5')\n ),\n $qb->expr()->andX(\n $qb->expr()->eq('YEAR(crt.date )', $yearp1),\n $qb->expr()->lte('MONTH(crt.date )', '5')\n )\n )\n \n )\n ->setParameter('user', $user)\n ;\n \n return $qb->getQuery()->getResult();\n }", "public function users() {\n $matches = array();\n if ($name = $this->input->get('q')) {\n $users = ORM::factory('user')->where('site_id', $this->site->id)->like('searchname', text::searchable($name))->where('status', 1)->find_all();\n foreach ($users as $user) {\n if ($user->id != $this->user->id) { // Can't send a message to yourself.\n $matches[] = (object) array('id' => $user->id, 'name' => $user->name());\n }\n }\n }\n print json_encode($matches);\n die();\n }", "private function busquedaUsuarios($filter = array()) {\n $usuarios = new \\Modelos\\userPosix($this->dn, $this->pswd, 'central' );\n $atributos = array('uid','cn','title','o', 'ou','mail', 'telephoneNumber');\n $filtro = empty($filter) ? array(\"cn\"=>\"NOT (root OR nobody)\") : array_merge($filter, array(\"cn\"=>\"NOT (root OR nobody)\"));\n $datos = $usuarios->search($filtro, $atributos, \"dc=sv\");\n $this->parametros['errorLdap'] = $usuarios->getErrorLdap();\n return $datos; \n }", "public function fetchAllForCalendarHome(string $principalUri): array;", "public function searchUsers()\n {\n # Set tables to search to a variable.\n $tables = $this->getTables();\n # Set fields to search to a variable.\n $fields = $this->getFields();\n # Set search terms to a variable.\n $search_terms = $this->getSearchTerms();\n # Perform search.\n $this->performSearch($search_terms, $tables, $fields);\n }", "function axWFactoryDomainQuery() {\r\n\tglobal $wgRequest;\r\n\r\n\t$query = $wgRequest->getVal( \"term\", false );\r\n\r\n\t$return = array(\r\n\t\t\"term\" => $query,\r\n\t\t\"suggestions\" => array(),\r\n\t\t\"data\" => array()\r\n\t);\r\n\r\n\t$exact = array( \"suggestions\" => array(), \"data\" => array() );\r\n\t$match = array( \"suggestions\" => array(), \"data\" => array() );\r\n\r\n\t// query terms: wik, wiki, wikia take too much memory\r\n\t// and end up with fatal errors\r\n\tif ( substr(\"wikia\",0,strlen((string)$query)) === $query ) {\r\n\t\t$query = false;\r\n\t}\r\n\r\n\tif( $query ) {\r\n\t\t/**\r\n\t\t * maybe not very effective but used only by staff anyway\r\n\t\t */\r\n\t\t$query = strtolower( $query );\r\n\t\t$dbr = WikiFactory::db( DB_SLAVE );\r\n\t\t$sth = $dbr->select(\r\n\t\t\tarray( \"city_domains\" ),\r\n\t\t\tarray( \"city_id\", \"city_domain\" ),\r\n\t\t\tarray(\r\n\t\t\t\t\"city_domain not like 'www.%'\",\r\n\t\t\t\t\"city_domain not like '%.wikicities.com'\",\r\n\t\t\t\t\"city_domain like '%{$query}%'\"\r\n\t\t\t),\r\n\t\t\t__METHOD__\r\n\t\t);\r\n\r\n\t\twhile( $domain = $dbr->fetchObject( $sth ) ) {\r\n\t\t\t$domain->city_domain = strtolower( $domain->city_domain );\r\n\t\t if( preg_match( \"/^$query/\", $domain->city_domain ) ) {\r\n\t\t\t\t$exact[ \"suggestions\" ][] = $domain->city_domain;\r\n\t\t\t\t$exact[ \"data\" ][] = $domain->city_id;\r\n\t\t }\r\n\t\t\telseif( preg_match( \"/$query/\", $domain->city_domain ) ){\r\n\t\t\t\t$match[ \"suggestions\" ][] = $domain->city_domain;\r\n\t\t\t\t$match[ \"data\" ][] = $domain->city_id;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$return[ \"suggestions\" ] = array_merge( $exact[ \"suggestions\" ], $match[ \"suggestions\" ] );\r\n\t\t$return[ \"data\" ] = array_merge( $exact[ \"data\" ], $match[ \"suggestions\" ] );\r\n\t}\r\n\t// $.ui.autocomplete expects it to be returned as if there is just suggestions, leaving the rest for debug though\r\n\treturn json_encode( $return[\"suggestions\"] );\r\n}", "public function getresults($searchterm)\n {\n $searchTerm = db::escapechars(trim($searchterm));\n \n // Check if there is a campus lock\n $campus = $this->checkCampus();\n if($campus == 'true')\n {\n // Access to all campuses\n $campuslock = '';\n }\n else{\n if($campus == 'false'){\n // No access to search results - no campus specified\n return;\n }\n else{\n $campuslock = $campus; \n }\n }\n // Get the results from the system and display the output\n if(!is_null($searchTerm)){\n $this->findhelp($searchTerm, $campuslock);\n $this->findmembers($searchTerm, $campuslock);\n $this->findgroup($searchTerm, $campuslock);\n $this->findmessages($searchTerm);\n $this->findreminders($searchTerm);\n }\n else{\n print \"<p>No search term provided</p>\";\n }\n \n return;\n }", "function search($user_id,$term,$limit=1000){\r\n\t\t$idRange=array();\r\n\t\tif($term){\r\n\t\t\t$users=iterator_to_array(\\app\\models\\User::model()->find(array('username'=>new \\MongoRegex(\"/^$term/\")))->sort(array('username'=>1))->limit($limit));\r\n\t\t\t$mongoIds=array();\r\n\t\t\tforeach($users as $_id=>$user)\r\n\t\t\t\t$mongoIds[]=new \\MongoId($_id);\r\n\t\t\t$idRange=array('toId'=>array('$in'=>$mongoIds));\r\n\t\t\t\r\n\t\t\t$following=self::model()->find(array_merge(array('fromId'=>$user_id),$idRange));\r\n\t\t\t\r\n\t\t\t$followedUsers=array();\r\n\t\t\tforeach($following as $_id=>$follower){\r\n\t\t\t\tif($user=$users[strval($follower->toId)])\r\n\t\t\t\t\t$followedUsers[strval($user->_id)]=$user;\r\n\t\t\t}\r\n\t\t\treturn $followedUsers;\t\t\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t$following=self::model()->find(array('fromId'=>$user_id))->limit(20);\r\n\t\t\tforeach($following as $_id=>$follower)\r\n\t\t\t\t$mongoIds[]=new \\MongoId($follower->toId);\t\t\t\r\n\t\t\t$users=\\app\\models\\User::model()->find(array('_id'=>array('$in'=>$mongoIds)))->sort(array('username'=>1));\r\n\t\t\treturn $users;\r\n\t\t}\r\n\t}", "public function getUserCalendar(User $user): array\n {\n $calendarsURL = $user->getCalendars();\n\n $calendars = [];\n foreach ($calendarsURL as $calendar) {\n array_push($calendars, $this->fetchEvents($calendar->getURL()));\n }\n return $calendars;\n }", "public function search($term, $start = null, $end = null)\n {\n $ci = & get_instance();\n $ci->load->model('talks_model', 'talksModel');\n $ci->load->model('user_attend_model', 'userAttend');\n\n $sql = sprintf(\n \"\n select\n u.username,\n u.full_name,\n u.ID,\n u.admin,\n u.active,\n u.last_login,\n u.email\n from\n user u\n where\n lower(username) like %s or\n lower(full_name) like %s\n \", $this->db->escape('%' . $term . '%'), $this->db->escape('%' . $term . '%')\n );\n $query = $this->db->query($sql);\n $results = $query->result();\n foreach ($results as $key => $user) {\n $results[$key]->talk_count = count(\n $ci->talksModel->getSpeakerTalks($user->ID)\n );\n $results[$key]->event_count = count(\n $ci->userAttend->getUserAttending($user->ID)\n );\n }\n\n return $results;\n }", "public function getCompanyWithUsers();", "public function getListOfCustomers($term)\n {\n // build find() options\n $filter = NULL;\n if ($term) {\n $regex = new Regex($term, 'i');\n $filter = ['name' => $regex];\n }\n $options = [\n 'sort' => ['name' => 1],\n 'projection' => ['name' => 1]\n ];\n\n // perform find\n $result = [];\n try {\n $cursor = $this->find($this->customers, $filter, $options);\n foreach ($cursor as $document) {\n //$result[] = var_export($document, TRUE);\n $result[$document->name] = $document->name;\n }\n } catch (Throwable $e) {\n error_log(__METHOD__ . ':' . $e->getMessage());\n $result[] = 'ERROR: unable to find customers';\n }\n return $result;\n }", "public function searchUsers($patern)\n {\n \n $response = $this->buzz->get('https://api.github.com/search/users?q='.$patern);\n\n\n\treturn json_decode($response->toDomDocument()->textContent)->items;\n }", "public function findUsers();", "public function findUsers();", "public function find(string $term, string $namespace) : array;", "public function search_private_messages($user, $term)\n {\n $sent = $this->db->from('privmsgs')\n ->where('privmsgs_author_user', $user)\n ->where('privmsgs_author_display', 'y')\n ->where(\"(privmsgs_content LIKE '%$term%' OR privmsgs_subject LIKE '%$term%')\")\n ->order_by('privmsgs_date', 'desc')\n ->get();\n\n $received = $this->db->from('privmsgs_to')\n ->join('privmsgs', 'privmsgs.privmsgs_id = privmsgs_to.pmto_message')\n ->where('pmto_recipient_user', $user)\n ->where('pmto_display', 'y')\n ->where(\"(privmsgs_content LIKE '%$term%' OR privmsgs_subject LIKE '%$term%')\")\n ->order_by('privmsgs_date', 'desc')\n ->get();\n\n $retval = array(\n 'sent'\t\t\t\t=> ($sent->num_rows() > 0) ? $sent->result() : false,\n 'sent_count'\t\t=> $sent->num_rows(),\n 'received'\t\t\t=> ($received->num_rows() > 0) ? $received->result() : false,\n 'received_count'\t=> $received->num_rows(),\n );\n\n return $retval;\n }", "public function searchMyChannels($params)\n {\n $this->load($params);\n $this->om = Yii::$app->user->id;\n return $this->search();\n }", "public function search($term)\n {\n try {\n $list = (self::MODEL)\n ::with('enderecos')\n ->where('nome', 'LIKE', \"%{$term}%\")\n ->orWhere('taxvat', 'LIKE', \"%{$term}%\")\n ->get();\n\n return $this->listResponse(ClientTransformer::directSearch($list));\n } catch (\\Exception $exception) {\n return $this->listResponse([]);\n }\n }", "public function getSearchedContributorsList($params)\n {\n $where = '';\n if($params['searchsubmit'] == 'Search')\n {\n if($params['aotitle']!='0')\n {\n $contribsIdsList= $this->getContribsInAo($params['aotitle']);\n $where.= \" AND u.identifier IN (\".$contribsIdsList.\")\";\n }\n if($params['contrib']!='0')\n {\n $where.= \" AND u.identifier=\".$params['contrib'];\n }\n if($params['type']!='0')\n {\n $where.= \" AND u.profile_type='\".$params['type'].\"'\";\n }\n if($params['type2']!='0')\n {\n if($params['type2'] == 'writer')\n $where.= \" AND u.type2 IS NULL\";\n else\n $where.= \" AND u.type2='\".$params['type2'].\"'\";\n }\n if($params['status']!='0')\n {\n $where.= \" AND u.status='\".$params['status'].\"'\";\n }\n if($params['blacklist']!='0')\n {\n $where.= \" AND u.blackstatus='\".$params['blacklist'].\"'\";\n }\n if($params['nationalism']!='0')\n {\n $where.= \" AND cb.nationality=\".$params['nationalism'];\n }\n if($params['minage']!='')\n {\n // $where.= \" AND cb.dob='\".$minage.\"'\";\n $where.= \" AND ((DATEDIFF(NOW(),cb.dob))/365) >='\".$params['minage'].\"' AND ((DATEDIFF(NOW(),cb.dob))/365) <='\".$params['maxage'].\"'\";\n }\n if($params['minartsvalid']!='')\n {\n $whereQuery= \" WHERE status IN ('bid', 'under_study', 'disapproved', 'time_out', 'published', 'closed', 'on_hold')\n GROUP BY user_id HAVING COUNT(user_id) Between \".$params['minartsvalid'].\" and \".$params['maxartsvalid'].\"\";\n $contribsIdsList= $this->getContibsIdsForSearch($whereQuery);\n $where.= \" AND u.identifier IN (\".$contribsIdsList.\")\";\n }\n if($params['mintotalparts']!='')\n {\n $whereQuery= \" GROUP BY user_id HAVING COUNT(user_id) Between \".$params['mintotalparts'].\" and \".$params['maxtotalparts'].\"\";\n $contribsIdsList= $this->getContibsIdsForSearch($whereQuery);\n $where.= \" AND u.identifier IN (\".$contribsIdsList.\")\";\n }\n if($params['minartssent']!='')\n {\n $whereQuery= \" WHERE status IN ('under_study','disapproved', 'published')\n GROUP BY user_id HAVING COUNT(user_id) Between \".$params['minartssent'].\" and \".$params['maxartssent'].\"\";\n $contribsIdsList= $this->getContibsIdsForSearch($whereQuery);\n $where.= \" AND u.identifier IN (\".$contribsIdsList.\")\";\n }\n if($params['minpartsrefused']!='')\n {\n $whereQuery= \" WHERE status IN ('bid_refused')\n GROUP BY user_id HAVING COUNT(user_id) Between \".$params['minpartsrefused'].\" and \".$params['maxpartsrefused'].\"\";\n $contribsIdsList= $this->getContibsIdsForSearch($whereQuery);\n $where.= \" AND u.identifier IN (\".$contribsIdsList.\")\";\n }\n if($params['minartsrefused']!='')\n {\n $whereQuery= \" WHERE status IN ('closed')\n GROUP BY user_id HAVING COUNT(user_id) Between \".$params['minartsrefused'].\" and \".$params['maxartsrefused'].\"\";\n $contribsIdsList= $this->getContibsIdsForSearch($whereQuery);\n $where.= \" AND u.identifier IN (\".$contribsIdsList.\")\";\n }\n if($params['noofdisapproved']!='')\n {\n $whereQuery= \" WHERE refused_count > 0\n GROUP BY user_id HAVING COUNT(user_id) <= \".$params['noofdisapproved'].\"\";\n $contribsIdsList= $this->getContibsIdsForSearch($whereQuery);\n $where.= \" AND u.identifier IN (\".$contribsIdsList.\")\";\n }\n if($params['category']!=0)\n {\n $str1 = \" REGEXP ('\";\n $find_ini='';\n foreach($params['category'] as $catid => $catvalue)\n {\n $exp = $catvalue;\n for($i=$catvalue; $i<100; $i++)\n {\n $exp.= \"|\".($i+1);\n }\n\n $str1.= \"(\".$catid.\"@\".$exp.\")|\";\n $category1[] = $str1;\n }\n $str1 = substr($str1, 0, -1).\"')\";\n $where.= \" AND cb.category_more \".$str1.\" AND find_in_set('\".$catid.\"', cb.favourite_category)>0\";\n }\n if($params['contribquiz']!=0)\n {\n $where.= \" AND qp.quiz_id = \".$params['contribquiz'];\n }\n if($params['language']!='0')\n {\n $where.= \" AND cb.language = '\".$params['language'].\"'\";\n }\n if($params['language2']!='0')\n {\n $langstr1 = \" REGEXP ('\";\n foreach($params['language2'] as $lang2id => $lang2value)\n {\n $exp = $lang2value;\n for($i=$lang2value; $i<100; $i++)\n {\n $exp.= \"|\".($i+1);\n }\n $langstr1.= \"(\".$lang2id.\"@\".$exp.\")|\";\n $language2[] = $langstr1;\n }\n $langstr1 = substr($langstr1, 0, -1).\"')\";\n $where.= \" AND cb.language_more \".$langstr1;\n //$where.= \" AND cb.language_more = '\".$language2.\"'\";\n }\n if($params['start_date']!='' && $params['end_date']!='')\n {\n $start_date = str_replace('/','-',$params['start_date']);\n $end_date = str_replace('/','-',$params['end_date']);\n $start_date = date('Y-m-d', strtotime($start_date));\n $end_date = date('Y-m-d', strtotime($end_date));\n $where.= \" AND DATE_FORMAT(u.created_at, '%Y-%m-%d') BETWEEN '\".$start_date.\"' AND '\".$end_date.\"'\";\n }\n if($params['act_start_date']!='' && $params['act_end_date']!='')\n {\n $act_start_date = str_replace('/','-',$params['act_start_date']);\n $act_end_date = str_replace('/','-',$params['act_end_date']);\n $act_start_date = date('Y-m-d', strtotime($act_start_date));\n $act_end_date = date('Y-m-d', strtotime($act_end_date));\n $where.= \" AND DATE_FORMAT(p.created_at, '%Y-%m-%d') BETWEEN '\".$act_start_date.\"' AND '\".$act_end_date.\"'\";\n }\n }\n elseif($params['total_contribs']=='yes')\n $where.= \" \";\n elseif($params['never_participated']=='yes')\n $where.= \" AND u.identifier NOT IN (select user_id from Participation)\";\n elseif($params['never_sent']=='yes')\n $where.= \" AND u.identifier IN (select user_id from Participation where status NOT IN ('closed','disapproved','published', 'under_study', 'disapprove_client','closed_client'))\";\n elseif($params['never_validated']=='yes')\n {\n $where.= \" AND u.identifier IN (select user_id from Participation where status NOT IN\n ('bid','under_study','time_out','validated','published','refused','ignored','disapproved','approved','closed','on_hold','bid_temp','bid_refused_temp','bid_nonpremium_timeout','bid_premium_timeout','disapproved_temp','closed_temp','plag_exec','closed_client_temp','disapprove_client','closed_client'))\";\n }\n elseif($params['once_validated']=='yes')\n $where.= \" AND u.identifier IN (select user_id from Participation where status IN ('bid', 'under_study', 'disapproved', 'time_out', 'published', 'closed', 'on_hold'))\";\n elseif($params['once_published']=='yes')\n $where.= \" AND u.identifier IN (select user_id from Participation where status IN ('published'))\";\n else\n $where = \" \";\n\n $Query = \"select distinct u.identifier,u.email, u.created_at, u.blackstatus, u.profile_type, u.status, up.initial, u.password,\n up.first_name, up.address, up.city, up.state, up.zipcode, up.country, up.phone_number, up.last_name, cb.university,\n cb.dob, cb.profession, cb.favourite_category, cb.category_more, cb.language_more, cb.language, cb.payment_type, cb.self_details from User u\n\t\tLEFT JOIN UserPlus up ON u.identifier=up.user_id\n\t\tLEFT JOIN Contributor cb ON u.identifier=cb.user_id\n\t\tLEFT JOIN Participation p ON p.user_id = cb.user_id\n\t\tLEFT JOIN QuizParticipation qp ON qp.user_id = cb.user_id\n\t where u.type='contributor' \".$where.\"\";\n if(($result = $this->getQuery($Query,true)) != NULL)\n return $result;\n else\n return \"NO\";\n }", "public function findUsers(): iterable;", "public function get_authors();", "function listAllWithSearch($term) \r\n {\r\n\r\n $newTerm = \"%\".$term.\"%\";\r\n\r\n //new PDOAgent\r\n $p = new PDOAgent(\"mysql\", DB_USER, DB_PASS, DB_HOST, DB_NAME);\r\n\r\n //Connect to the Database\r\n $p->connect();\r\n\r\n //Setup the Bind Parameters\r\n $bindParams = [\"term\"=>$newTerm];\r\n \r\n //Get the results of the insert query (rows inserted)\r\n $results = $p->query(\"SELECT * FROM Coaches WHERE coachFName LIKE :term OR\r\n coachLName LIKE :term OR salary LIKE :term OR teamName LIKE :term \r\n OR dateStarted LIKE :term OR endOfContract LIKE :term;\", $bindParams);\r\n \r\n //Disconnect from the database\r\n $p->disconnect();\r\n \r\n //Return the objects\r\n return $results;\r\n }", "public static function get_potential_subscribers($context, $groupid, $fields, $sort = '') {\n global $DB;\n\n // Only active enrolled users or everybody on the frontpage.\n list($esql, $params) = get_enrolled_sql($context, 'mod/reactforum:allowforcesubscribe', $groupid, true);\n if (!$sort) {\n list($sort, $sortparams) = users_order_by_sql('u');\n $params = array_merge($params, $sortparams);\n }\n\n $sql = \"SELECT $fields\n FROM {user} u\n JOIN ($esql) je ON je.id = u.id\n ORDER BY $sort\";\n\n return $DB->get_records_sql($sql, $params);\n }", "public static function search() {\r\n $result = new Collection();\r\n\t\t$key_name = static::getKeyName();\r\n $users = User::all()->toArray();\r\n\t\t$usersRoles = UserRole::all(['user_id', 'role_id'])->groupBy('user_id');\r\n\t\tforeach($users as &$user) {\r\n\t\t\t$user['roles'] = isset($usersRoles[$user[$key_name]]) ? array_pluck($usersRoles[$user[$key_name]], 'role_id') : [];\r\n $result[] = new static($user);\r\n\t\t}\r\n \r\n return $result;\r\n }", "public function search(Request $request)\n {\n $searchTerm = $request->get('searchTerm');\n $users = UserResource::collection(User::searchUsersBySearchTerm($searchTerm)->get());\n if ($users->isEmpty()) {\n return JsonService::jsonError(\n 'There is no users found with this name!',\n 404\n );\n }\n return JsonService::jsonSuccess('Returning all for a users!', $users);\n }", "public function getOfficialDocuments() {}", "public function searchUsers(Request $request)\n {\n //\n $ids = collect(User::search($request->q)->take(500)->get())->pluck('id');\n\n $data = User::orderBy('created_at', 'desc')\n ->whereIn('id', $ids)\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 ->withTrashed()\n ->paginate(10);\n\n return new UserCollection($data, User::getActiveUsers(), User::getTotalUsersCount(), User::getNewUsersToday()); \n }", "public static function subjects_with_subscriptions($term) {\n // since it is run inside a daemon script\n $subject_ids = array();\n $results = db::$connection->query(\"SELECT subject_id FROM MyStellarSubscription \"\n . \"WHERE term='$term' GROUP BY subject_id\");\n while($results && $row = $results->fetch_assoc()) {\n $subject_ids[] = $row['subject_id'];\n }\n if($results) {\n $results->close();\n }\n return $subject_ids;\n }", "public function calendars()\n\t{\n\t\t// -------------------------------------\n\t\t// Load 'em up\n\t\t// -------------------------------------\n\n\t\t$this->load_calendar_datetime();\n\t\t$this->load_calendar_parameters();\n\n\t\t// -------------------------------------\n\t\t// Prep the parameters\n\t\t// -------------------------------------\n\n\t\t$params = array(\n\t\t\tarray(\n\t\t\t\t'name' => 'category',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'multi' => TRUE\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'site_id',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'integer',\n\t\t\t\t'min_value' => 1,\n\t\t\t\t'multi' => TRUE,\n\t\t\t\t'default' => $this->data->get_site_id()\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'calendar_id',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'integer',\n\t\t\t\t'min_value' => 1,\n\t\t\t\t'multi' => TRUE,\n\t\t\t\t'not' => TRUE\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'calendar_name',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'multi' => TRUE,\n\t\t\t\t'not' => TRUE\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'status',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'multi' => TRUE,\n\t\t\t\t'default' => 'open'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'date_range_start',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'date'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'date_range_end',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'date'\n\t\t\t)\n\t\t);\n\n\t\t//ee()->TMPL->log_item('Calendar: Processing parameters');\n\n\t\t$this->add_parameters($params);\n\n\t\t// -------------------------------------\n\t\t// Convert calendar_name to calendar_id\n\t\t// -------------------------------------\n\n\t\tif ($this->P->value('calendar_id') == '' AND\n\t\t\t$this->P->value('calendar_name') != '')\n\t\t{\n\t\t\t$ids = $this->data->get_calendar_id_from_name(\n\t\t\t\t$this->P->value('calendar_name'),\n\t\t\t\tNULL,\n\t\t\t\t$this->P->params['calendar_name']['details']['not']\n\t\t\t);\n\n\t\t\tif ( empty( $ids ) )\n\t\t\t{\n\t\t\t\t//ee()->TMPL->log_item('Calendar: No results for\n\t\t\t\t//calendar name provided, bailing');\n\t\t\t\treturn $this->no_results();\n\t\t\t}\n\n\t\t\t$this->P->set('calendar_id', implode('|', $ids));\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Determine which calendars this user has permission to view\n\t\t// and modify the parameters accordingly.\n\t\t// -------------------------------------\n\n\t\t// TODO\n\n\t\t// -------------------------------------\n\t\t// Fetch the basics\n\t\t// -------------------------------------\n\n\t\t$data = $this->data->fetch_calendars_basics(\n\t\t\t$this->P->value('site_id'),\n\t\t\t$this->P->value('calendar_id'),\n\t\t\t$this->P->params['calendar_id']['details']['not']\n\t\t);\n\n\t\t// -------------------------------------\n\t\t// If no data, then give 'em no_results\n\t\t// -------------------------------------\n\n\t\tif (($total_results = count($data)) == 0)\n\t\t{\n\t\t\t//ee()->TMPL->log_item('Calendar: No results, bailing');\n\t\t\treturn $this->no_results();\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Ensure date_range_start <= date_range_end\n\t\t// -------------------------------------\n\n\t\tif ($this->P->value('date_range_start') !== FALSE AND\n\t\t\t$this->P->value('date_range_end') !== FALSE)\n\t\t{\n\t\t\tif ($this->P->value('date_range_start', 'ymd') > $this->P->value('date_range_end', 'ymd'))\n\t\t\t{\n\t\t\t\t$temp = $this->P->params['date_range_start']['value'];\n\t\t\t\t$this->P->set('date_range_start', $this->P->params['date_range_end']['value']);\n\t\t\t\t$this->P->set('date_range_end', $temp);\n\t\t\t\tunset($temp);\n\t\t\t}\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// This will come in handy later\n\t\t// -------------------------------------\n\n\t\t$calendar_array = array();\n\t\tforeach ($data as $k => $arr)\n\t\t{\n\t\t\t$calendar_array[] = $arr['calendar_id'];\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Date range params? Then we need to do a lot more work.\n\t\t// -------------------------------------\n\n\t\tif ($this->P->value('date_range_start') !== FALSE OR\n\t\t\t$this->P->value('date_range_end') !== FALSE)\n\t\t{\n\t\t\t//ee()->TMPL->log_item('Calendar: Calculating date ranges');\n\t\t\t$min = ($this->P->value('date_range_start') !== FALSE) ?\n\t\t\t\t\t\t$this->P->value('date_range_start', 'ymd') :\n\t\t\t\t\t\t0;\n\n\t\t\t$max = ($this->P->value('date_range_end') !== FALSE) ?\n\t\t\t\t$this->P->value('date_range_end', 'ymd') :\n\t\t\t\t0;\n\n\t\t\t$calendar_array = $this->data->fetch_calendars_with_events_in_date_range(\n\t\t\t\t$min,\n\t\t\t\t$max,\n\t\t\t\t$calendar_array,\n\t\t\t\t$this->P->value('status')\n\t\t\t);\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// No calendars? No results.\n\t\t// -------------------------------------\n\n\t\tif (empty($calendar_array))\n\t\t{\n//ee()->TMPL->log_item('Calendar: No calendars, bailing');\n\t\t\treturn $this->no_results();\n\t\t}\n\n\t\t//\t----------------------------------------\n\t\t//\tInvoke Channel class\n\t\t//\t----------------------------------------\n\n\t\tif ( ! class_exists('Channel') )\n\t\t{\n\t\t\trequire PATH_MOD.'/channel/mod.channel.php';\n\t\t}\n\n\t\t$channel = new Channel();\n\n\t\t//need to remove limit here so huge amounts of events work\n\t\t$channel->limit = 1000000;\n\n\t\t// --------------------------------------------\n\t\t// Invoke Pagination for EE 2.4 and Above\n\t\t// --------------------------------------------\n\n\t\t$channel = $this->add_pag_to_channel($channel);\n\n\t\t// -------------------------------------\n\t\t// Prepare parameters\n\t\t// -------------------------------------\n\n\t\tee()->TMPL->tagparams['entry_id'] = implode('|', $calendar_array);\n\t\tee()->TMPL->tagparams['channel'] = CALENDAR_CALENDARS_CHANNEL_NAME;\n\n\t\t// -------------------------------------\n\t\t// Pre-process related data\n\t\t// -------------------------------------\n\n\t\tif (version_compare($this->ee_version, '2.6.0', '<'))\n\t\t{\n\n\t\t\tee()->TMPL->tagdata = ee()->TMPL->assign_relationship_data(\n\t\t\t\tee()->TMPL->tagdata\n\t\t\t);\n\t\t\tee()->TMPL->var_single = array_merge(\n\t\t\t\tee()->TMPL->var_single,\n\t\t\t\tee()->TMPL->related_markers\n\t\t\t);\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Execute needed methods\n\t\t// -------------------------------------\n\n\t\t$channel->fetch_custom_channel_fields();\n\n\t\t$channel->fetch_custom_member_fields();\n\n\t\t// --------------------------------------------\n\t\t// Pagination Tags Parsed Out\n\t\t// --------------------------------------------\n\n\t\t$this->fetch_pagination_data($channel);\n\n\t\t// -------------------------------------\n\t\t// Querification\n\t\t// -------------------------------------\n\n\t\t$channel->build_sql_query();\n\n\t\tif ($channel->sql == '')\n\t\t{\n\t\t\treturn $this->no_results();\n\t\t}\n\n\t\t$channel->query = ee()->db->query($channel->sql);\n\n\t\tif ($channel->query->num_rows() == 0)\n\t\t{\n//ee()->TMPL->log_item('Calendar: Channel module says no results, bailing');\n\t\t\treturn $this->no_results();\n\t\t}\n\n\t\t$channel->query->result\t= $channel->query->result_array();\n\n\t\t// -------------------------------------------\n\t\t// 'calendar_calendars_channel_query' hook.\n\t\t// - Do something with the channel query\n\n\t\tif (ee()->extensions->active_hook('calendar_calendars_channel_query') === TRUE)\n\t\t{\n\t\t\t$channel->query = ee()->extensions->call('calendar_calendars_channel_query', $channel->query, $calendar_array);\n\t\t\tif (ee()->extensions->end_script === TRUE) return;\n\t\t}\n\t\t//\n\t\t// -------------------------------------------\n\n\t\t// -------------------------------------\n\t\t// Inject Calendar-specific variables\n\t\t// -------------------------------------\n\n\t\t//ee()->TMPL->log_item('Calendar: Adding Calendar variables');\n\n\t\t$aliases = array(\n\t\t\t'title'\t\t\t=> 'calendar_title',\n\t\t\t'url_title'\t\t=> 'calendar_url_title',\n\t\t\t'entry_id'\t\t=> 'calendar_id',\n\t\t\t'author_id'\t\t=> 'calendar_author_id',\n\t\t\t'author'\t\t=> 'calendar_author',\n\t\t\t'status'\t\t=> 'calendar_status'\n\t\t);\n\n\t\t//custom variables with the letters 'url' are borked in\n\t\t//EE 2.6. Bug reported, but this should fix.\n\t\t//https://support.ellislab.com/bugs/detail/19337\n\t\tif (version_compare($this->ee_version, '2.6.0', '>='))\n\t\t{\n\t\t\t$aliases['url_title'] = 'calendar_borked_title';\n\n\t\t\tee()->TMPL->var_single['calendar_borked_title'] = 'calendar_borked_title';\n\n\t\t\tunset(ee()->TMPL->var_single['calendar_url_title']);\n\n\t\t\tee()->TMPL->tagdata = str_replace(\n\t\t\t\tarray(\n\t\t\t\t\tLD . 'calendar_url_title' . RD,\n\t\t\t\t\t'\"calendar_url_title\"',\n\t\t\t\t\t\"'calendar_url_title'\"\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\tLD . 'calendar_borked_title' . RD,\n\t\t\t\t\t'\"calendar_borked_title\"',\n\t\t\t\t\t\"'calendar_borked_title'\"\n\n\t\t\t\t),\n\t\t\t\tee()->TMPL->tagdata\n\t\t\t);\n\t\t}\n\n\t\tforeach ($channel->query->result as $k => $row)\n\t\t{\n\t\t\t$channel->query->result[$k]['author'] = ($row['screen_name'] != '') ?\n\t\t\t\t\t\t\t\t\t\t$row['screen_name'] : $row['username'];\n\n\t\t\tforeach ($aliases as $old => $new)\n\t\t\t{\n\t\t\t\t$channel->query->result[$k][$new] = $channel->query->result[$k][$old];\n\t\t\t}\n\t\t}\n\n\t\t//\t----------------------------------------\n\t\t//\tRedeclare\n\t\t//\t----------------------------------------\n\t\t//\tWe will reassign the $channel->query->result with our\n\t\t//\treordered array of values.\n\t\t//\t----------------------------------------\n\n\t\t$channel->query->result_array = $channel->query->result;\n\n\t\t// --------------------------------------------\n\t\t// Typography\n\t\t// --------------------------------------------\n\n\t\tee()->load->library('typography');\n\t\tee()->typography->initialize();\n\t\tee()->typography->convert_curly = FALSE;\n\n\t\t$channel->fetch_categories();\n\n\t\t// -------------------------------------\n\t\t// Parse\n\t\t// -------------------------------------\n\n\t\t//ee()->TMPL->log_item('Calendar: Parsing, via channel module');\n\n\n\n\t\t$channel->parse_channel_entries();\n\n\t\t// -------------------------------------\n\t\t// Paginate\n\t\t// -------------------------------------\n\n\t\t$channel = $this->add_pagination_data($channel);\n\n\t\t// -------------------------------------\n\t\t// Related entries\n\t\t// -------------------------------------\n\n\t\t//ee()->TMPL->log_item('Calendar: Parsing related entries, via Weblog module');\n\n\t\tif (version_compare($this->ee_version, '2.6.0', '<'))\n\t\t{\n\t\t\tif (count(ee()->TMPL->related_data) > 0 AND\n\t\t\t\tcount($channel->related_entries) > 0)\n\t\t\t{\n\t\t\t\t$channel->parse_related_entries();\n\t\t\t}\n\n\t\t\tif (count(ee()->TMPL->reverse_related_data) > 0 AND\n\t\t\t\tcount($channel->reverse_related_entries) > 0)\n\t\t\t{\n\t\t\t\t$channel->parse_reverse_related_entries();\n\t\t\t}\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Send 'em home\n\t\t// -------------------------------------\n\n\t\t$tagdata = $channel->return_data;\n\n\t\t//ee()->TMPL->log_item('Calendar: Done!');\n\n\t\t//on the off chance someone just wrote the word\n\t\t//'calendar_url_title', we should fix that before\n\t\t//output. (See above calendar_url_title fix)\n\t\tif (version_compare($this->ee_version, '2.6.0', '>='))\n\t\t{\n\t\t\t$tagdata = str_replace(\n\t\t\t\tarray(\n\t\t\t\t\tLD . 'calendar_borked_title' . RD,\n\t\t\t\t\t'\"calendar_borked_title\"',\n\t\t\t\t\t\"'calendar_borked_title'\"\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\tLD . 'calendar_url_title' . RD,\n\t\t\t\t\t'\"calendar_url_title\"',\n\t\t\t\t\t\"'calendar_url_title'\"\n\t\t\t\t),\n\t\t\t\t$tagdata\n\t\t\t);\n\t\t}\n\n\t\treturn $tagdata;\n\n\t}", "public function getOtherPublications($user)\n {\n return $this->getByCategoryType('Other', $user);\n }", "function find_all_subjects($public = true) {\r\n\t\tglobal $db;\r\n\r\n\t\t$query = \"SELECT * \";\r\n\t\t$query .= \"FROM subjects \";\r\n\t\tif($public) {\r\n\t\t$query .= \"WHERE visible = 1 \";\r\n\t\t}\r\n\t\t$query .= \"ORDER BY position ASC\";\r\n\r\n\t\t$subject_set = mysqli_query($db, $query);\r\n\t\tconfirm_query($subject_set);\r\n\r\n\t\treturn $subject_set;\r\n\t}", "private function actionGetAuthors() {\n\t\t$authors = array();\n\t\t$obj = new stdClass();\n\n\t\t$users = get_users( 'exclude=[1]&who=authors' );\n\n\t\tforeach ( $users as $user ) {\n\t\t\t$authors[] = array( 'id' => $user->ID, 'name' => $user->display_name );\n\t\t}\n\n\t\t$obj->success = true;\n\t\t$obj->errorMessage = null;\n\t\t$obj->authors = $authors;\n\n\t\t$this->sendJSON( $obj );\n\t}", "public function findAllOfficialDistributions() {}", "public function findAll()\n {\n return $this->performRequest('GET', '/authors');\n }", "public function search($term)\n {\n $terms = explode(\" \", $term);\n\n $searchQuery = array();\n foreach ($terms as $term) {\n $term = $this->_localConfig->database()->quote(\"[[:<:]]\" . $term . \"[[:>:]]\");\n $searchQuery[] = \"(users.name regexp $term) * 5 + (users.username regexp $term)\";\n }\n\n $searchQuery = implode(\" + \", $searchQuery);\n\n $query = $this->selectAll();\n $query->columns(new Zend_Db_Expr(\"($searchQuery) as hits\"));\n $query->having('hits > 0');\n\n // We need to reset the ordering that was put on in selectAll()\n $query->reset( Zend_Db_Select::ORDER );\n $query->order(\"hits DESC\");\n\n $rows = $this->_localConfig->database()->fetchAll($query);\n\n $models = array();\n foreach ($rows as $row) {\n $model = $this->_getContainer()->User()->setData($row);\n $models[] = $model;\n }\n\n return $models;\n }", "public function getRemainingUsersByNameOrSurnameOrDni() {\n $term = Request::input('term', '');\n $ids = Request::input('ids', '');\n $users_id = ($ids ? array_map('intval', explode(',', $ids)) : []);\n\n $results = array();\n $queries = User::whereNotIn('id', $users_id)\n ->where(function($query) use ($term){\n $query->where('name', 'LIKE', '%'.$term.'%');\n $query->orWhere('surname', 'LIKE', '%'.$term.'%');\n $query->orWhere('dni', 'LIKE', '%'.$term.'%');\n })\n ->take(10)->get();\n\n foreach ($queries as $query)\n $results[] = ['id' => $query->id,\n 'value' => $query->fullname().' ['.$query->dni.']'];\n return response()->json($results);\n }", "public function findAllSearch(string $term)\n {\n return $this->em\n ->getRepository('App:Mail')\n ->findAllSearch($term)\n ;\n }", "function get_users_entries($users, $year, $bundle = 'entry_month_record')\n{\n if (!$users) {\n return NULL;\n }\n if (!isset($year)) {\n $year = date('Y');\n }\n $dates = get_year_dates($year);\n $start_date = $dates['start_date'];\n $end_date = $dates['end_date'];\n $query = new EntityFieldQuery();\n $query->entityCondition('entity_type', 'entry_month_record')\n ->entityCondition('bundle', $bundle)\n ->fieldCondition('field_entry_date', 'value', $start_date, '>=')\n ->fieldCondition('field_entry_date', 'value', $end_date, '<=')\n ->propertyCondition('uid', $users, 'IN')\n ->addMetaData('account', user_load(1));\n\n $records = $query->execute();\n if (isset($records[$bundle])) {\n return entity_load(\"entry_month_record\", array_keys($records[$bundle]));\n }\n return array();\n}", "function getAllTeamsMatching($terms){\n\t\treturn $this->avalanche->getAllTeamsMatching($terms);\n\t}", "public function index(Request $request)\n {\n $resource = User::when($request->keyword, function ($q) use ($request) {\n $q->where(function ($q) use ($request) {\n $q->where('name', 'LIKE', \"%{$request->keyword}%\")\n ->orWhere('email', 'LIKE', \"%{$request->keyword}%\");\n });\n })->orderBy('name', 'asc')->get();\n\n return new UserCollection($resource);\n }", "public function query($term) {\n $matches = $this->getMatchesService('vienna',$term,array('showSyn'=>false,'NearMatch'=>false,'includeCommonNames'=>true));\n return $matches;\n }", "function get_all_employees($terms = null ){\n\t\tif(!is_null($terms)){\n\t\t\t$sql = \"SELECT *\n\t\t\tFROM employees\n\t\t\tWHERE employee_name LIKE '$terms%' \";\n\t\t\tif(is_numeric($terms)){\n\t\t\t$sql = \"SELECT *\n\t\t\tFROM employees\n\t\t\t\tWHERE employee_id = '$terms' \";\n\t\t\t}\n\t\t\t$query = $this->db->query($sql);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t$query = $this->db->get('employees');\n\t\t}\n\t\treturn $query->result();\n\t\t\n\t}", "public function getCalendarInfo()\n\t{\n\t\t\n\t\t//get URL to calendar page\n\t\t$url = $this->calendarLink;\n\t\t//Get the sourcecode\t\t\t\n\t\t$data = $this->curl->curlGetReq($url);\n\t\t//find all links to each person\n\t\t$query = \"//a\";\n\t\t$aTagNodes = $this->curl-> getDOMData($data,$query);\n\t\t\n\t\t$calendarDates = new CalendarDateRepository();\n\t\t//loop through each link, representing a person\n\t\tforeach ($aTagNodes as $at)\n\t\t{\n\t\t\t//get the href to that persons calendar\n\t\t\t$calURL =$at->getAttribute(\"href\");\n\t\t\t//get the sourcecode of that page\n\t\t\t$data = $this->curl->curlGetReq($url.$calURL);\n\t\t\t//get the table header containing name of the days\n\t\t\t$query = \"//th\";\n\t\t\t$days = $this->curl->getDOMData($data,$query);\n\t\t\t//get the table data containing availability\n\t\t\t$query = \"//td\";\n\t\t\t$availibility = $this->curl->getDOMData($data,$query);\t\t\t\n\n\t\t\t$dates = array();\n\t\t\t/*\n\t\t\t* loop table data, if the availability of that day is ok\n\t\t\t* save that data.\n\t\t\t*/\n\t\t\tfor ($i=0; $i < $days->length ; $i++)\n\t\t\t{ \n\t\t\t\t$availibilityStr =$availibility[$i]->nodeValue;\n\t\n\t\t\t\tif(strtolower($availibilityStr) === \"ok\")\n\t\t\t\t{\t\n\t\t\t\t\t//$calendarDates->add($days[$i]->nodeValue);\n\t\t\t\t\t$dates[] = new Day($days[$i]->nodeValue);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t$calendarDates->add($dates);\n\t\t\t\n\t\t }\n\t\t\n\t\treturn $calendarDates; \n\t}", "public function test_getAllCalendars() {\n// \t\t$user = TestingUtil::getTestAdminUser();\n// \t\t$userApp = new UserApp();\n// \t\t$userApp->initializeForAppID($user, 5);\n// \t\t$outlookClient = new OutlookClient($user, $userApp);\n// \t\t$outlookCalendar = new OutlookCalendar($outlookClient);\n// \t\t$calendars = $outlookCalendar->getAllCalendars();\n// \t\t$this->assertCount(3, $calendars);\n\t\t$this->assertEquals(1,1);\n\t}", "public function search($query, $year = null, $language = null);", "public static function get_public_users()\n {\n $connection = Yii::$app->getDb();\n /*$users = Yii::$app->db->createCommand(\"SELECT core_users.*,(SELECT core_sessions.date_created FROM core_sessions WHERE core_sessions.user_id = core_users.user_id ORDER BY core_sessions.date_created DESC LIMIT 1) last_login FROM core_users where core_users.user_type =:user_type\")\n ->bindValue(':user_type', 1)\n ->queryAll();*/\n $users = Yii::$app->db->createCommand(\"SELECT core_users.*,\"\n . \"(SELECT core_sessions.date_created FROM core_sessions WHERE core_sessions.user_id = core_users.user_id ORDER BY core_sessions.date_created DESC LIMIT 1) last_login,\"\n . \"(SELECT core_user_roles.role_name FROM core_user_roles WHERE core_user_roles.role_id = core_users.user_type) role_name FROM core_users \"\n . \"where core_users.user_type = 1\")->queryAll();\n /*$users = $connection->createCommand(\"SELECT core_users.*,(SELECT core_sessions.date_created FROM core_sessions WHERE core_sessions.user_id = core_users.user_id ORDER BY core_sessions.date_created DESC LIMIT 1) last_login FROM core_users where core_users.user_type = 1\")->queryAll();*/\n /*$users = $query->select(['core_users.*','core_sessions.date_created'])->from('core_users')\n ->innerJoin('core_sessions','core_users.user_id = core_sessions.user_id')\n ->where(\"core_users.user_type = '1'\")\n ->orderBy(['core_sessions.date_created' => SORT_DESC])\n ->groupBy('core_sessions.user_id')\n ->All();*/\n return $users;\n }", "public function getAccountsBasedOnSearchTerm(Request $request)\n {\n $searchTerm = $request -> searchTerm;\n $options;\n if(!isset($request -> searchTerm))\n $options = ChartOfAccount::get();\n else\n {\n $options = ChartOfAccount :: where('description','like','%'.$searchTerm.'%')\n ->Orwhere('general_code','like','%'.$searchTerm.'%')\n ->Orwhere('name','like','%'.$searchTerm.'%')\n ->Orwhere('company_code','like','%'.$searchTerm.'%')\n ->get();\n }\n $data = array();\n foreach($options as $option)\n {\n $data[] = array('id' => $option -> id,'text' => $option -> name.'('.$option -> general_code.')');\n }\n return json_encode($data);\n }", "public function getOwnerTermFilter()\n {\n $ownerTermFilter = new \\Elastica\\Filter\\Term();\n $ownerTermFilter->setTerm('doc_owner', $GLOBALS['current_user']->id);\n\n return $ownerTermFilter;\n }", "public function getCalendarObjects($calendarId)\n {\n $params[\"calendar_id\"] = $calendarId;\n\n list($type, $user) = explode(\"_\", $calendarId);\n\n $events = MyScEvents::getMyScEvents($params);\n\n// Info: Array scheme\n// $events[] = array(\n// \"allDay\"=> false,\n// \"description\" => $description,\n// \"end\" => $end->format(\"Y-m-d H:i:s\"),\n// \"id\" => $id,\n// \"start\" => $start->format(\"Y-m-d H:i:s\"),\n// \"title\" => $title,\n// \"summary\" => \"Test2\",\n// \"calendardata\" => \"BEGIN:VCALENDAR\\nVERSION:2.0\\n\"\n// . \"PRODID:mySchoolCalendar\"\n// . \\OCP\\App::getAppVersion('mySchoolCalendar') . \"\\n\"\n// . $vevent->serialize() . \"END:VCALENDAR\"\n// );\n\n $objects = array();\n\n foreach ($events as $event) {\n $object = array(\n \"id\" => $event[\"id\"],\n \"uri\" => $type . \"_event_\" . $event[\"id\"],\n \"lastmodified\" => time(),\n \"calendarid\" => $calendarId,\n \"calendardata\" => $event[\"calendardata\"]\n );\n\n $objects[] = $object;\n }\n\n return $objects;\n }", "public function search($term = null);", "public function search_user(Request $request){\n $search = $request->input('term');\n $users = User::where('name', 'like' , \"%$search%\")\n ->orwhere('username', 'like', \"%$search%\")\n ->get();\n return response()->json($users, 200);\n }", "public function findTeamsCreatedBy($creator, $relations = []);", "public function actionOrganizationAutoComplete($term)\n {\n header('Content-type: application/json');\n\n $criteria = new CDbCriteria();\n $criteria->compare('name', $term, true);\n $criteria->limit = 5;\n\n $data = Organization::model()->findAll($criteria);\n\n $result = array();\n foreach ($data as $m) {\n $result[] = array(\n 'value' => $m->name,\n 'label' => $m->name . ' (' . Lookup::item('OrganizationActionArea', $m->action_area) . ')',\n 'id' => $m->id,\n );\n }\n\n echo CJSON::encode($result);\n Yii::app()->end();\n }", "public function getRequesterCompanies (usuario $user = null, $self = true, $corps = true, $requirements = false)\n {\n $actives = new ArrayObjectList();\n $company = $user instanceof usuario ? $user->getCompany() : null;\n $requesters = $this->obtenerEmpresasCliente($company, $user);\n\n\n // loop over each requester\n foreach ($requesters as $requester) {\n $actives[] = $requester;\n\n if ($corps === true && $corp = $requester->perteneceCorporacion()) {\n $actives[] = $requester;\n\n if ($user instanceof usuario) {\n // Need to check the visibility to the corp\n $limiterUser = $user->getUserLimiter($corp);\n if ($limiterUser && $limiterUser->compareTo($user) === false) {\n continue;\n }\n }\n\n $actives[] = $corp;\n }\n }\n\n if ($self === true) {\n $limiterUser = $user instanceof usuario ? $user->getUserLimiter($this) : false;\n\n // if the user who hide the visibility is the same as $user\n // we have an optional visibility, and we dont want to hide\n // those clients here\n if ($limiterUser === false || $limiterUser->compareTo($user)) {\n\n //adding own company if the user has visibility\n $actives[] = $this;\n }\n }\n\n // filter the companies with docs if neeeded\n if ($requirements) {\n $withRequirements = new ArrayObjectList();\n foreach ($actives as $i => $active) {\n if ($active->countCorpDocuments() > 0) {\n $withRequirements[] = $active;\n }\n }\n\n $actives = $withRequirements;\n }\n\n return $actives->unique();\n }", "public function find($input){\r\n\t\t$query = \"Owner = '$input' OR id = '$input' OR Subject LIKE '$input'\";\r\n\t\t$uri = $this->getUri() . RT_Api::PATH_SEARCH . '?' . $this->getAuthenticationParams();\r\n\t\t$this->_client->setUri($uri);\r\n\t\t$this->_client->setParameterGet('query',$query);\r\n\t\t$this->_client->setParameterGet('orderby',$id);\r\n\t\t$this->_client->setParameterGet('format','l');\r\n\t\t$response = $this->_client->request('GET');\r\n\t\t$tickets = $this->formatTicketList($response->getBody());\r\n\t\treturn $tickets;\r\n\t}", "public function newCalendarSearchAction()\r\n {\r\n if (false === $this->getSecurity()->isGranted('IS_AUTHENTICATED_REMEMBERED')) {\r\n throw new AccessDeniedException();\r\n }\r\n\r\n $form = $this->createForm(new CalendarSearchType());\r\n\r\n return array(\r\n 'form' => $form->createView()\r\n );\r\n }", "public function getResults( $searchTerm )\n\t{\n\t\t/* Check we have access */\n\t\tif( !$this->hasAccess() )\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t/* Init */\n\t\t$results = array();\n\t\t$searchTerm = mb_strtolower( $searchTerm );\n\t\t\n\t\t/* Perform the search */\n\t\t$members = \\IPS\\Db::i()->select( \"*\", 'core_members', \\IPS\\Db::i()->like( array( 'name', 'email' ), $searchTerm, TRUE, TRUE, $this->canPerformInlineSearch() ), NULL, 50 ); # Limit to 50 so it doesn't take too long to run\n\n\t\t/* Format results */\n\t\tforeach ( $members as $member )\n\t\t{\n\t\t\t$member = \\IPS\\Member::constructFromData( $member );\n\t\t\t\n\t\t\t$results[] = \\IPS\\Theme::i()->getTemplate('livesearch')->member( $member );\n\t\t}\n\t\t\t\t\t\n\t\treturn $results;\n\t}", "public function getCorpoAdminLikeDepartments($term, $limit, $accountId)\n {\n $query = $this->createQueryBuilder('p')\n ->select('p.name,p.id');\n if ($term && $term != '') {\n $query->where('p.name LIKE :term')\n ->setParameter(':term', '%'.$term.'%');\n }\n if ($accountId && $accountId != '') {\n $query->andwhere(\"p.accountId = :accountId\")\n ->setParameter(':accountId', $accountId);\n }\n $query->setMaxResults($limit);\n\n $quer = $query->getQuery();\n $result = $quer->getScalarResult();\n\n if (!empty($result) && isset($result[0])) {\n return $result;\n } else {\n return array();\n }\n }", "public function eventsByUserName(Request $request)\n {\n $name = $request->input('searchNameValue');\n $uCname = ucwords($name);\n $nameSplit = preg_split('/\\s+/', $uCname);\n $firstname = $nameSplit[0];\n $lastname = end($nameSplit);\n\n $results = collect();\n\n $users = User::where('name', '=', \"$uCname\")\n ->orWhere('name', 'like', \"$firstname%\")\n ->orWhere('name', 'like', \"%$lastname%\")\n ->orWhere('email', '=', mb_strtolower($name))\n ->get();\n\n foreach ($users as $user) {\n $results = $results->merge($user->events()->get()->sortBy('start'));\n }\n\n $calendar_events = $calendar_events_sorted = $this->paginate(\n $results, 10, null,\n ['path' => route('calendar_events.events.userName', ['searchNameValue' => $name])]);\n\n $calendar = $this->prepCalendar($calendar_events);\n\n $admins = Admin::all()->pluck('name', 'id');\n\n return view('calendar_events.index', compact('calendar_events', 'calendar_events_sorted', 'calendar', 'admins'));\n }", "public static function searchCollectionWithContributors($mots)\n {\n // This function is not used anymore.\n foreach ($mots as $mot){\n $stmt = self::connectToDb()->prepare('SELECT * FROM contributors cb INNER JOIN collections cl ON cb.collection_id = cl.id WHERE cb.user_id = :id');\n $stmt->bindParam(':mot1', $mot);\n $stmt->execute();\n $tmp = $stmt->fetchAll();\n }\n }", "public function ownerCombinedCal()\n {\n // Restricted access\n if ( ! $this->ownerLoggedIn() )\n {\n $this->restricted();\n return;\n }\n\n require_once('views/OwnerCombinedCalView.class.php');\n $site = new SiteContainer($this->db);\n $page = new OwnerCombinedCalView();\n \n $site->printHeader();\n $site->printNav(\"owner\");\n $site->printCombinedCalFooter();\n $page->printHtml();\n $page->printCalendar(); \n\n }", "public function findLicencesByName($names)\n {\n\t\t$query = $this->createQueryBuilder('l')\n\t\t\t->leftJoin('l.publishers', 'publ')\n\t\t\t->addSelect('publ')\n\t\t\t->leftJoin('l.developers', 'dev')\n\t\t\t->addSelect('dev')\n\t\t\t->leftJoin('l.plateformes', 'plat')\n\t\t\t->addSelect('plat')\n\t\t\t->leftJoin('l.genres', 'gen')\n\t\t\t->addSelect('gen')\n\t\t\t->leftJoin('l.themes', 'the')\n\t\t\t->addSelect('the')\n\t\t\t->where('l.name = :name')\n\t\t\t->setParameter('name', $names[0]);\n\t\t$namesLen = count($names);\n\t\tfor ($i = 1; $i < $namesLen; $i++)\n\t\t{\n\t\t\t$query = $query\n\t\t\t->orWhere('l.name = :name'.$i)\n\t\t\t->setParameter('name'.$i, $names[$i]);\n\t\t}\n\t\treturn $query->getQuery()->getResult();\n }", "public function personas()\n {\n $parametros = Input::only('term');\n\n $acompaniantes = Acompaniantes::select('personas_id')->get();\n\n $data = Personas::with('municipios','localidades','derechohabientes', 'estados_embarazos')->whereNotIn('id', $acompaniantes)\n ->where(function($query) use ($parametros) {\n $query->where('id','LIKE',\"%\".$parametros['term'].\"%\");\n });\n\n $data = $data->get();\n return $this->respuestaVerTodo($data);\n }", "public function testQueryWithTermButTermsIsNotAssociatedWithAnyPost()\n {\n $user = User::create(array(\n 'first_name' => 'dianne',\n 'email' => '[email protected]',\n 'password' => 'pass$dianne',\n 'permissions' => array(\n 'superuser' => 1\n )\n ));\n\n // logged in the user\n $this->application['auth']->loginUsingId($user->id);\n\n // create dummy\n $this->createDummyData($user);\n\n // begin\n $result = $this->commandDispatcher->dispatchFromArray(\n 'Darryldecode\\Backend\\Components\\ContentBuilder\\Commands\\QueryContentsCommand',\n array(\n 'type' => 'Blog',\n 'terms' => array(\n 'category' => 'technology'\n )\n )\n );\n\n // prove successful\n $this->assertTrue($result->isSuccessful());\n $this->assertEquals('Query contents successful.', $result->getMessage());\n $this->assertEquals(200, $result->getStatusCode(), 'Status code should be ok');\n $this->assertCount(0, $result->getData()->toArray()['data']);\n }", "public function getResults( $searchTerm )\n\t{\n\t\t/* Check we have access */\n\t\tif( !$this->hasAccess() )\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t/* Init */\n\t\t$results = array();\n\t\t$searchTerm = mb_strtolower( $searchTerm );\n\t\t\n\t\t/* Perform the search */\n\t\t$members = \\IPS\\Db::i()->select( \"*\", 'core_members', array( \"LOWER(name) LIKE CONCAT( '%', ?, '%' ) OR LOWER(email) LIKE CONCAT( '%', ?, '%' )\", $searchTerm, $searchTerm ), NULL, 50 ); # Limit to 50 so it doesn't take too long to run\n\t\t\n\t\t/* Format results */\n\t\tforeach ( $members as $member )\n\t\t{\n\t\t\t$member = \\IPS\\Member::constructFromData( $member );\n\t\t\t\n\t\t\t$results[] = \\IPS\\Theme::i()->getTemplate('livesearch')->member( $member );\n\t\t}\n\t\t\t\t\t\n\t\treturn $results;\n\t}", "function is_term_publicly_viewable($term)\n {\n }", "public function scopeSearch($query, $term)\n {\n if($term)\n {\n $query->where(function ($q) use ($term){\n $q->where('title', 'LIKE', \"%{$term}%\");\n\n $q->orwhereHas('author', function ($qr) use ($term){\n $qr->where('name', 'LIKE', \"%{$term}%\");\n });\n });\n }\n }", "function findObject($term, $filter) {\n\t\tglobal $conf;\n\n\t\t/*about escaping:\n\t\t * SET standard_conforming_string is not available before 8.2\n\t\t * So we must use PostgreSQL specific notation :/\n\t\t * E'' notation is not available before 8.1\n\t\t * $$ is available since 8.0\n\t\t * Nothing specific from 7.4\n\t\t **/\n\n\t\t// Escape search term for ILIKE match\n\t\t$term = str_replace('_', '\\\\_', $term);\n\t\t$term = str_replace('%', '\\\\%', $term);\n\t\t$this->clean($term);\n\t\t$this->clean($filter);\n\n\t\t// Exclude system relations if necessary\n\t\tif (!$conf['show_system']) {\n\t\t\t// XXX: The mention of information_schema here is in the wrong place, but\n\t\t\t// it's the quickest fix to exclude the info schema from 7.4\n\t\t\t$where = \" AND pn.nspname NOT LIKE 'pg\\\\\\\\_%' AND pn.nspname != 'information_schema'\";\n\t\t\t$lan_where = \"AND pl.lanispl\";\n\t\t}\n\t\telse {\n\t\t\t$where = '';\n\t\t\t$lan_where = '';\n\t\t}\n\n\t\t// Apply outer filter\n\t\t$sql = '';\n\t\tif ($filter != '') {\n\t\t\t$sql = \"SELECT * FROM (\";\n\t\t}\n\n\t\t$sql .= \"\n\t\t\tSELECT 'SCHEMA' AS type, oid, NULL AS schemaname, NULL AS relname, nspname AS name\n\t\t\t\tFROM pg_catalog.pg_namespace pn WHERE nspname ILIKE '%{$term}%' {$where}\n\t\t\tUNION ALL\n\t\t\tSELECT CASE WHEN relkind='r' THEN 'TABLE' WHEN relkind='v' THEN 'VIEW' WHEN relkind='S' THEN 'SEQUENCE' END, pc.oid,\n\t\t\t\tpn.nspname, NULL, pc.relname FROM pg_catalog.pg_class pc, pg_catalog.pg_namespace pn\n\t\t\t\tWHERE pc.relnamespace=pn.oid AND relkind IN ('r', 'v', 'S') AND relname ILIKE '%{$term}%' {$where}\n\t\t\tUNION ALL\n\t\t\tSELECT CASE WHEN pc.relkind='r' THEN 'COLUMNTABLE' ELSE 'COLUMNVIEW' END, NULL, pn.nspname, pc.relname, pa.attname FROM pg_catalog.pg_class pc, pg_catalog.pg_namespace pn,\n\t\t\t\tpg_catalog.pg_attribute pa WHERE pc.relnamespace=pn.oid AND pc.oid=pa.attrelid\n\t\t\t\tAND pa.attname ILIKE '%{$term}%' AND pa.attnum > 0 AND NOT pa.attisdropped AND pc.relkind IN ('r', 'v') {$where}\n\t\t\tUNION ALL\n\t\t\tSELECT 'FUNCTION', pp.oid, pn.nspname, NULL, pp.proname || '(' || pg_catalog.oidvectortypes(pp.proargtypes) || ')' FROM pg_catalog.pg_proc pp, pg_catalog.pg_namespace pn\n\t\t\t\tWHERE pp.pronamespace=pn.oid AND NOT pp.proisagg AND pp.proname ILIKE '%{$term}%' {$where}\n\t\t\tUNION ALL\n\t\t\tSELECT 'INDEX', NULL, pn.nspname, pc.relname, pc2.relname FROM pg_catalog.pg_class pc, pg_catalog.pg_namespace pn,\n\t\t\t\tpg_catalog.pg_index pi, pg_catalog.pg_class pc2 WHERE pc.relnamespace=pn.oid AND pc.oid=pi.indrelid\n\t\t\t\tAND pi.indexrelid=pc2.oid\n\t\t\t\tAND NOT EXISTS (\n\t\t\t\t\tSELECT 1 FROM pg_catalog.pg_depend d JOIN pg_catalog.pg_constraint c\n\t\t\t\t\tON (d.refclassid = c.tableoid AND d.refobjid = c.oid)\n\t\t\t\t\tWHERE d.classid = pc2.tableoid AND d.objid = pc2.oid AND d.deptype = 'i' AND c.contype IN ('u', 'p')\n\t\t\t\t)\n\t\t\t\tAND pc2.relname ILIKE '%{$term}%' {$where}\n\t\t\tUNION ALL\n\t\t\tSELECT 'CONSTRAINTTABLE', NULL, pn.nspname, pc.relname, pc2.conname FROM pg_catalog.pg_class pc, pg_catalog.pg_namespace pn,\n\t\t\t\tpg_catalog.pg_constraint pc2 WHERE pc.relnamespace=pn.oid AND pc.oid=pc2.conrelid AND pc2.conrelid != 0\n\t\t\t\tAND CASE WHEN pc2.contype IN ('f', 'c') THEN TRUE ELSE NOT EXISTS (\n\t\t\t\t\tSELECT 1 FROM pg_catalog.pg_depend d JOIN pg_catalog.pg_constraint c\n\t\t\t\t\tON (d.refclassid = c.tableoid AND d.refobjid = c.oid)\n\t\t\t\t\tWHERE d.classid = pc2.tableoid AND d.objid = pc2.oid AND d.deptype = 'i' AND c.contype IN ('u', 'p')\n\t\t\t\t) END\n\t\t\t\tAND pc2.conname ILIKE '%{$term}%' {$where}\n\t\t\tUNION ALL\n\t\t\tSELECT 'CONSTRAINTDOMAIN', pt.oid, pn.nspname, pt.typname, pc.conname FROM pg_catalog.pg_type pt, pg_catalog.pg_namespace pn,\n\t\t\t\tpg_catalog.pg_constraint pc WHERE pt.typnamespace=pn.oid AND pt.oid=pc.contypid AND pc.contypid != 0\n\t\t\t\tAND pc.conname ILIKE '%{$term}%' {$where}\n\t\t\tUNION ALL\n\t\t\tSELECT 'TRIGGER', NULL, pn.nspname, pc.relname, pt.tgname FROM pg_catalog.pg_class pc, pg_catalog.pg_namespace pn,\n\t\t\t\tpg_catalog.pg_trigger pt WHERE pc.relnamespace=pn.oid AND pc.oid=pt.tgrelid\n\t\t\t\t\tAND ( pt.tgisconstraint = 'f' OR NOT EXISTS\n\t\t\t\t\t(SELECT 1 FROM pg_catalog.pg_depend d JOIN pg_catalog.pg_constraint c\n\t\t\t\t\tON (d.refclassid = c.tableoid AND d.refobjid = c.oid)\n\t\t\t\t\tWHERE d.classid = pt.tableoid AND d.objid = pt.oid AND d.deptype = 'i' AND c.contype = 'f'))\n\t\t\t\tAND pt.tgname ILIKE '%{$term}%' {$where}\n\t\t\tUNION ALL\n\t\t\tSELECT 'RULETABLE', NULL, pn.nspname AS schemaname, c.relname AS tablename, r.rulename FROM pg_catalog.pg_rewrite r\n\t\t\t\tJOIN pg_catalog.pg_class c ON c.oid = r.ev_class\n\t\t\t\tLEFT JOIN pg_catalog.pg_namespace pn ON pn.oid = c.relnamespace\n\t\t\t\tWHERE c.relkind='r' AND r.rulename != '_RETURN' AND r.rulename ILIKE '%{$term}%' {$where}\n\t\t\tUNION ALL\n\t\t\tSELECT 'RULEVIEW', NULL, pn.nspname AS schemaname, c.relname AS tablename, r.rulename FROM pg_catalog.pg_rewrite r\n\t\t\t\tJOIN pg_catalog.pg_class c ON c.oid = r.ev_class\n\t\t\t\tLEFT JOIN pg_catalog.pg_namespace pn ON pn.oid = c.relnamespace\n\t\t\t\tWHERE c.relkind='v' AND r.rulename != '_RETURN' AND r.rulename ILIKE '%{$term}%' {$where}\n\t\t\";\n\n\t\t// Add advanced objects if show_advanced is set\n\t\tif ($conf['show_advanced']) {\n\t\t\t$sql .= \"\n\t\t\t\tUNION ALL\n\t\t\t\tSELECT CASE WHEN pt.typtype='d' THEN 'DOMAIN' ELSE 'TYPE' END, pt.oid, pn.nspname, NULL,\n\t\t\t\t\tpt.typname FROM pg_catalog.pg_type pt, pg_catalog.pg_namespace pn\n\t\t\t\t\tWHERE pt.typnamespace=pn.oid AND typname ILIKE '%{$term}%'\n\t\t\t\t\tAND (pt.typrelid = 0 OR (SELECT c.relkind = 'c' FROM pg_catalog.pg_class c WHERE c.oid = pt.typrelid))\n\t\t\t\t\t{$where}\n\t\t\t\tUNION ALL\n\t\t\t\tSELECT 'OPERATOR', po.oid, pn.nspname, NULL, po.oprname FROM pg_catalog.pg_operator po, pg_catalog.pg_namespace pn\n\t\t\t\t\tWHERE po.oprnamespace=pn.oid AND oprname ILIKE '%{$term}%' {$where}\n\t\t\t\tUNION ALL\n\t\t\t\tSELECT 'CONVERSION', pc.oid, pn.nspname, NULL, pc.conname FROM pg_catalog.pg_conversion pc,\n\t\t\t\t\tpg_catalog.pg_namespace pn WHERE pc.connamespace=pn.oid AND conname ILIKE '%{$term}%' {$where}\n\t\t\t\tUNION ALL\n\t\t\t\tSELECT 'LANGUAGE', pl.oid, NULL, NULL, pl.lanname FROM pg_catalog.pg_language pl\n\t\t\t\t\tWHERE lanname ILIKE '%{$term}%' {$lan_where}\n\t\t\t\tUNION ALL\n\t\t\t\tSELECT DISTINCT ON (p.proname) 'AGGREGATE', p.oid, pn.nspname, NULL, p.proname FROM pg_catalog.pg_proc p\n\t\t\t\t\tLEFT JOIN pg_catalog.pg_namespace pn ON p.pronamespace=pn.oid\n\t\t\t\t\tWHERE p.proisagg AND p.proname ILIKE '%{$term}%' {$where}\n\t\t\t\tUNION ALL\n\t\t\t\tSELECT DISTINCT ON (po.opcname) 'OPCLASS', po.oid, pn.nspname, NULL, po.opcname FROM pg_catalog.pg_opclass po,\n\t\t\t\t\tpg_catalog.pg_namespace pn WHERE po.opcnamespace=pn.oid\n\t\t\t\t\tAND po.opcname ILIKE '%{$term}%' {$where}\n\t\t\t\";\n\t\t}\n\t\t// Otherwise just add domains\n\t\telse {\n\t\t\t$sql .= \"\n\t\t\t\tUNION ALL\n\t\t\t\tSELECT 'DOMAIN', pt.oid, pn.nspname, NULL,\n\t\t\t\t\tpt.typname FROM pg_catalog.pg_type pt, pg_catalog.pg_namespace pn\n\t\t\t\t\tWHERE pt.typnamespace=pn.oid AND pt.typtype='d' AND typname ILIKE '%{$term}%'\n\t\t\t\t\tAND (pt.typrelid = 0 OR (SELECT c.relkind = 'c' FROM pg_catalog.pg_class c WHERE c.oid = pt.typrelid))\n\t\t\t\t\t{$where}\n\t\t\t\";\n\t\t}\n\n\t\tif ($filter != '') {\n\t\t\t// We use like to make RULE, CONSTRAINT and COLUMN searches work\n\t\t\t$sql .= \") AS sub WHERE type LIKE '{$filter}%' \";\n\t\t}\n\n\t\t$sql .= \"ORDER BY type, schemaname, relname, name\";\n\n\t\treturn $this->selectSet($sql);\n\t}", "public function getDuties2($creator)\n {\n $datas = DB::select(\"SELECT DISTINCT\n\tduties.*\nFROM\n\tduties\n\tINNER JOIN users ON duties.creator = users.id\n\tINNER JOIN priorities ON duties.priority = priorities.id\n\tINNER JOIN groups ON duties.`group` = groups.id\n\tINNER JOIN user_duty ON duties.id = user_duty.duty \n\tOR user_duty.`user` = users.id \nWHERE\n\tduties.creator = $creator \n\tOR user_duty.`user` = $creator\");\n\n return $datas;\n\n\n }", "function findEventsByCalendar($events=array(),$calendar) {\n\t\t$output = array();\n\t\tif (!$events) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\t$x = 0;\n\t\t\tforeach ($events as $event) {\n\t\t\t\t$calendar_found = false;\n\t\t\t\tforeach ($event['Tag'] as $tag) {\n\t\t\t\t\tfor ($i=0; $i<count($tag['Calendar']); $i++) {\n\t\t\t\t\t\tif ($tag['Calendar'][$i]['shortname'] == $calendar) {\n\t\t\t\t\t\t\t$output[$x] = $event;\n\t\t\t\t\t\t\t$calendar_found = true;\n\t\t\t\t\t\t\t$x++;\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\tif ($calendar_found == true) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $output;\n\t\t}\n\t}", "public function findBySearchTerm($searchterm = '') {\n\n\t\t\t// create the query object\n\t\t$query = $this->createQuery();\n\n\t\t\t// break up the searchterm into searchwords\n\t\t$searchwords = Tx_Catalogueraisonne_Utility_Search::wordSplit($searchterm);\n\n\t\t\t// create constraints if multiple searchwords\n\t\tif (count($searchwords) > 0) {\n\t\t\tforeach ($searchwords as $searchword) {\n\t\t\t\t$searchword = '%' . $searchword. '%';\n\t\t\t\t$autConstraints[] = $query->like('aut', $searchword);\n\t\t\t\t$titelConstraints[] = $query->like('titel', $searchword);\n\t\t\t\t$seriesConstraints[] = $query->like('series', $searchword);\n\t\t\t}\n\t\t\t$query->matching(\n\t\t\t\t$query-> logicalOr(\n\t\t\t\t\t$query->logicalAnd($autConstraints),\n\t\t\t\t\t$query->logicalAnd($titelConstraints),\n\t\t\t\t\t$query->logicalAnd($seriesConstraints)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\t\t// result order\n\t\t$query->setOrderings(\n\t\t\tarray('aut' => Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING),\n\t\t\tarray('titel' => Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING)\n\t\t);\n\n\t\t\t// go\n\t\treturn $query->execute();\n\t}", "public function searchMyContacts() {\n $criteria = new CDbCriteria;\n\n $accessLevel = Yii::app()->user->checkAccess('ContactsView') ? 1 : 0;\n $conditions = $this->getAccessConditions($accessLevel);\n foreach ($conditions as $arr) {\n $criteria->addCondition($arr['condition'], $arr['operator']);\n $criteria->params = array_merge($criteria->params, $arr['params']);\n }\n\n // $condition = 'assignedTo=\"'.Yii::app()->user->getName().'\"';\n // $parameters=array('limit'=>ceil(Profile::getResultsPerPage()));\n // $parameters['condition']=$condition;\n // $criteria->scopes=array('findAll'=>array($parameters));\n\n return $this->searchBase($criteria);\n }" ]
[ "0.5598045", "0.5595388", "0.5437381", "0.5436465", "0.5308328", "0.52769184", "0.521769", "0.51238567", "0.4972738", "0.49298882", "0.49289572", "0.49045506", "0.48545828", "0.4790912", "0.4786395", "0.4769992", "0.47561833", "0.47351235", "0.46823883", "0.46598724", "0.465732", "0.4656136", "0.4624035", "0.46165702", "0.46128997", "0.46026406", "0.4597121", "0.4590554", "0.4588253", "0.45870352", "0.45864478", "0.4584488", "0.45835832", "0.45671785", "0.4550159", "0.45475534", "0.45418975", "0.45300406", "0.45262834", "0.45172244", "0.45107207", "0.45107207", "0.45005947", "0.44804183", "0.4449796", "0.4447309", "0.44392636", "0.44388968", "0.44219518", "0.43971145", "0.43941027", "0.43895838", "0.43862617", "0.4377547", "0.43742514", "0.43740582", "0.43641865", "0.43596715", "0.4351866", "0.4343588", "0.43337753", "0.43263608", "0.43132502", "0.43109304", "0.43061838", "0.4302939", "0.42945164", "0.4292065", "0.42914742", "0.4287615", "0.42858505", "0.42841786", "0.42837983", "0.42811364", "0.42754132", "0.4268044", "0.42653966", "0.4263611", "0.4255351", "0.424831", "0.42478308", "0.42408982", "0.42396855", "0.42381653", "0.42359245", "0.42338103", "0.4225652", "0.4225043", "0.42238763", "0.422298", "0.4212442", "0.42090893", "0.42061937", "0.42043424", "0.42008746", "0.41984397", "0.4197299", "0.41851294", "0.4184911", "0.41813534" ]
0.74065596
0
show all the invalid properties with reasons.
public function listInvalidProperties() { $invalid_properties = []; return $invalid_properties; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listInvalidProperties();", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n $allowed_values = [\"CREDIT_CARD\", \"CASH\", \"THIRD_PARTY_CARD\", \"NO_SALE\", \"SQUARE_WALLET\", \"SQUARE_GIFT_CARD\", \"UNKNOWN\", \"OTHER\"];\n if (!in_array($this->container['event_type'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'event_type', must be one of #{allowed_values}.\";\n }\n\n $allowed_values = [\"OTHER_BRAND\", \"VISA\", \"MASTERCARD\", \"AMERICAN_EXPRESS\", \"DISCOVER\", \"DISCOVER_DINERS\", \"JCB\", \"CHINA_UNIONPAY\", \"SQUARE_GIFT_CARD\"];\n if (!in_array($this->container['card_brand'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'card_brand', must be one of #{allowed_values}.\";\n }\n\n $allowed_values = [\"MANUAL\", \"SCANNED\", \"SQUARE_CASH\", \"SQUARE_WALLET\", \"SWIPED\", \"WEB_FORM\", \"OTHER\"];\n if (!in_array($this->container['entry_method'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'entry_method', must be one of #{allowed_values}.\";\n }\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n $allowedValues = $this->getStyleIdentifierAllowableValues();\n if (!in_array($this->container['style_identifier'], $allowedValues)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'style_identifier', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getTextEffectAllowableValues();\n if (!in_array($this->container['text_effect'], $allowedValues)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'text_effect', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getUnderlineAllowableValues();\n if (!in_array($this->container['underline'], $allowedValues)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'underline', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = array();\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = array();\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = array();\n return $invalid_properties;\n }", "public function listInvalidProperties() {\n\t\treturn array();\n\t}", "public function listInvalidProperties()\n {\n $invalid_properties = parent::listInvalidProperties();\n\n return $invalid_properties;\n }", "public function listInvalidProperties() {\n\n $invalidProperties = [];\n\n /*\n * Any needed validation goes here. If a property requires no validation\n * (e.g. it's OK for it to be empty) then it may be omitted.\n */\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getLevelAllowableValues();\n if (!is_null($this->container['level']) && !in_array($this->container['level'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'level', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getStatusAllowableValues();\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'status', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n return [];\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n $allowed_values = $this->getBootOrderAllowableValues();\n if (!in_array($this->container['boot_order'], $allowed_values)) {\n $invalid_properties[] = sprintf(\n \"invalid value for 'boot_order', must be one of '%s'\",\n implode(\"', '\", $allowed_values)\n );\n }\n\n $allowed_values = $this->getFirewallAllowableValues();\n if (!in_array($this->container['firewall'], $allowed_values)) {\n $invalid_properties[] = sprintf(\n \"invalid value for 'firewall', must be one of '%s'\",\n implode(\"', '\", $allowed_values)\n );\n }\n\n $allowed_values = $this->getVideoModelAllowableValues();\n if (!in_array($this->container['video_model'], $allowed_values)) {\n $invalid_properties[] = sprintf(\n \"invalid value for 'video_model', must be one of '%s'\",\n implode(\"', '\", $allowed_values)\n );\n }\n\n $allowed_values = $this->getVncAllowableValues();\n if (!in_array($this->container['vnc'], $allowed_values)) {\n $invalid_properties[] = sprintf(\n \"invalid value for 'vnc', must be one of '%s'\",\n implode(\"', '\", $allowed_values)\n );\n }\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n $allowedValues = $this->getTypeAllowableValues();\r\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\r\n $invalidProperties[] = sprintf(\r\n \"invalid value for 'type', must be one of '%s'\",\r\n implode(\"', '\", $allowedValues)\r\n );\r\n }\r\n\r\n $allowedValues = $this->getStatusAllowableValues();\r\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\r\n $invalidProperties[] = sprintf(\r\n \"invalid value for 'status', must be one of '%s'\",\r\n implode(\"', '\", $allowedValues)\r\n );\r\n }\r\n\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n $allowedValues = $this->getTypeAllowableValues();\r\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\r\n $invalidProperties[] = sprintf(\r\n \"invalid value for 'type', must be one of '%s'\",\r\n implode(\"', '\", $allowedValues)\r\n );\r\n }\r\n\r\n $allowedValues = $this->getStatusAllowableValues();\r\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\r\n $invalidProperties[] = sprintf(\r\n \"invalid value for 'status', must be one of '%s'\",\r\n implode(\"', '\", $allowedValues)\r\n );\r\n }\r\n\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n if ($this->container['overview'] === null) {\n $invalidProperties[] = \"'overview' can't be null\";\n }\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n if ($this->container['legalName'] === null) {\n $invalidProperties[] = \"'legalName' can't be null\";\n }\n if ($this->container['registeredAddress'] === null) {\n $invalidProperties[] = \"'registeredAddress' can't be null\";\n }\n $allowedValues = $this->getTypeAllowableValues();\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'type', must be one of '%s'\",\n $this->container['type'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getVatAbsenceReasonAllowableValues();\n if (!is_null($this->container['vatAbsenceReason']) && !in_array($this->container['vatAbsenceReason'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'vatAbsenceReason', must be one of '%s'\",\n $this->container['vatAbsenceReason'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n if ($this->container['id'] === null) {\n $invalidProperties[] = \"'id' can't be null\";\n }\n if ($this->container['type'] === null) {\n $invalidProperties[] = \"'type' can't be null\";\n }\n $allowedValues = $this->getTypeAllowableValues();\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getResultAllowableValues();\n if (!is_null($this->container['result']) && !in_array($this->container['result'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'result', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n if ($this->container['locale'] === null) {\n $invalidProperties[] = \"'locale' can't be null\";\n }\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getFieldAllowableValues();\n if (!is_null($this->container['field']) && !in_array($this->container['field'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'field', must be one of '%s'\",\n $this->container['field'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getOpAllowableValues();\n if (!is_null($this->container['op']) && !in_array($this->container['op'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'op', must be one of '%s'\",\n $this->container['op'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getTypeAllowableValues();\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getCostTypeAllowableValues();\n if (!is_null($this->container['cost_type']) && !in_array($this->container['cost_type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'cost_type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n if ($this->container['text'] === null) {\r\n $invalidProperties[] = \"'text' can't be null\";\r\n }\r\n if ($this->container['textOriginal'] === null) {\r\n $invalidProperties[] = \"'textOriginal' can't be null\";\r\n }\r\n if ($this->container['textNormalised'] === null) {\r\n $invalidProperties[] = \"'textNormalised' can't be null\";\r\n }\r\n if (!is_null($this->container['score']) && ($this->container['score'] > 1E+2)) {\r\n $invalidProperties[] = \"invalid value for 'score', must be smaller than or equal to 1E+2.\";\r\n }\r\n if (!is_null($this->container['score']) && ($this->container['score'] < 0)) {\r\n $invalidProperties[] = \"invalid value for 'score', must be bigger than or equal to 0.\";\r\n }\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n return $invalidProperties;\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n if ($this->container['use_async_pattern'] === null) {\n $invalid_properties[] = \"'use_async_pattern' can't be null\";\n }\n if ($this->container['source_file_name'] === null) {\n $invalid_properties[] = \"'source_file_name' can't be null\";\n }\n if ($this->container['source_file_content'] === null) {\n $invalid_properties[] = \"'source_file_content' can't be null\";\n }\n if ($this->container['copy_metadata'] === null) {\n $invalid_properties[] = \"'copy_metadata' can't be null\";\n }\n $allowed_values = [\"English\", \"Arabic\", \"Danish\", \"German\", \"Dutch\", \"Finnish\", \"French\", \"Hebrew\", \"Hungarian\", \"Italian\", \"Norwegian\", \"Portuguese\", \"Spanish\", \"Swedish\", \"Russian\"];\n if (!in_array($this->container['language'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'language', must be one of 'English', 'Arabic', 'Danish', 'German', 'Dutch', 'Finnish', 'French', 'Hebrew', 'Hungarian', 'Italian', 'Norwegian', 'Portuguese', 'Spanish', 'Swedish', 'Russian'.\";\n }\n\n $allowed_values = [\"Slow but accurate\", \"Faster and less accurate\", \"Fastest and least accurate\"];\n if (!in_array($this->container['performance'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'performance', must be one of 'Slow but accurate', 'Faster and less accurate', 'Fastest and least accurate'.\";\n }\n\n $allowed_values = [\"None\", \"Whitelist\", \"Blacklist\"];\n if (!in_array($this->container['characters_option'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'characters_option', must be one of 'None', 'Whitelist', 'Blacklist'.\";\n }\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = array();\n if ($this->container['name'] === null) {\n $invalid_properties[] = \"'name' can't be null\";\n }\n if ($this->container['type'] === null) {\n $invalid_properties[] = \"'type' can't be null\";\n }\n $allowed_values = array(\"text\", \"range\", \"category\");\n if (!in_array($this->container['type'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'type', must be one of #{allowed_values}.\";\n }\n\n if ($this->container['sort_type'] === null) {\n $invalid_properties[] = \"'sort_type' can't be null\";\n }\n $allowed_values = array(\"alphabetical\", \"count\", \"value\", \"size\");\n if (!in_array($this->container['sort_type'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'sort_type', must be one of #{allowed_values}.\";\n }\n\n if ($this->container['values'] === null) {\n $invalid_properties[] = \"'values' can't be null\";\n }\n return $invalid_properties;\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n if ($this->container['status'] === null) {\r\n $invalidProperties[] = \"'status' can't be null\";\r\n }\r\n $allowedValues = $this->getStatusAllowableValues();\r\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\r\n $invalidProperties[] = sprintf(\r\n \"invalid value for 'status', must be one of '%s'\",\r\n implode(\"', '\", $allowedValues)\r\n );\r\n }\r\n\r\n if ($this->container['reason'] === null) {\r\n $invalidProperties[] = \"'reason' can't be null\";\r\n }\r\n if ($this->container['message'] === null) {\r\n $invalidProperties[] = \"'message' can't be null\";\r\n }\r\n if ($this->container['currentVersion'] === null) {\r\n $invalidProperties[] = \"'currentVersion' can't be null\";\r\n }\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n if ($this->container['name'] === null) {\n $invalid_properties[] = \"'name' can't be null\";\n }\n if ($this->container['has_thumbnail'] === null) {\n $invalid_properties[] = \"'has_thumbnail' can't be null\";\n }\n $allowed_values = [\"stl\", \"step\", \"iges\", \"obj\", \"svf2\",\"svf\", \"thumbnail\", \"ifc\"];\n if (!in_array($this->container['output_type'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'output_type', must be one of 'stl', 'step', 'iges', 'obj', 'svf2','svf', 'thumbnail', 'ifc'.\";\n }\n\n if ($this->container['progress'] === null) {\n $invalid_properties[] = \"'progress' can't be null\";\n }\n if ($this->container['status'] === null) {\n $invalid_properties[] = \"'status' can't be null\";\n }\n $allowed_values = [\"pending\", \"inprogress\", \"success\", \"failed\", \"timeout\", \"partialsuccess\"];\n if (!in_array($this->container['status'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'status', must be one of 'pending', 'inprogress', 'success', 'failed', 'timeout', 'partialsuccess'.\";\n }\n\n if ($this->container['children'] === null) {\n $invalid_properties[] = \"'children' can't be null\";\n }\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n if ($this->container['last_change'] === null) {\n $invalidProperties[] = \"'last_change' can't be null\";\n }\n $allowedValues = $this->getNetworkAllowableValues();\n if (!is_null($this->container['network']) && !in_array($this->container['network'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'network', must be one of '%s'\",\n $this->container['network'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n if ($this->container['status'] === null) {\n $invalidProperties[] = \"'status' can't be null\";\n }\n $allowedValues = $this->getStatusAllowableValues();\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'status', must be one of '%s'\",\n $this->container['status'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getStatusAllowableValues();\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'status', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getTypeAllowableValues();\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getStatusAllowableValues();\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'status', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getFilingFrequencyAllowableValues();\n if (!is_null($this->container['filing_frequency']) && !in_array($this->container['filing_frequency'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'filing_frequency', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getFilingTypeAllowableValues();\n if (!is_null($this->container['filing_type']) && !in_array($this->container['filing_type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'filing_type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getAccrualTypeAllowableValues();\n if (!is_null($this->container['accrual_type']) && !in_array($this->container['accrual_type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'accrual_type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getFraudResultTypeAllowableValues();\n if (!is_null($this->container['fraudResultType']) && !in_array($this->container['fraudResultType'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'fraudResultType', must be one of '%s'\",\n $this->container['fraudResultType'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getRecurringProcessingModelAllowableValues();\n if (!is_null($this->container['recurringProcessingModel']) && !in_array($this->container['recurringProcessingModel'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'recurringProcessingModel', must be one of '%s'\",\n $this->container['recurringProcessingModel'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n if (!is_null($this->container['athlete_count']) && ($this->container['athlete_count'] < 1)) {\n $invalidProperties[] = \"invalid value for 'athlete_count', must be bigger than or equal to 1.\";\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }" ]
[ "0.7885589", "0.7704446", "0.7691335", "0.76856136", "0.76856136", "0.76856136", "0.7683929", "0.76756734", "0.7666285", "0.7653707", "0.7653707", "0.76334393", "0.7632623", "0.7632623", "0.7632623", "0.7632623", "0.7632623", "0.7632623", "0.76262254", "0.7612341", "0.75786686", "0.75786686", "0.7565056", "0.7554806", "0.7554806", "0.7554806", "0.7554806", "0.7554806", "0.7554806", "0.7537941", "0.75339395", "0.752852", "0.75186086", "0.7517895", "0.75157785", "0.75157785", "0.75157785", "0.75157785", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.749399", "0.7491233", "0.7483622", "0.7481498", "0.74799484", "0.7477273", "0.7470583", "0.7454461", "0.74524194", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126" ]
0.75995564
38
validate all the properties in the model return true if all passed
public function valid() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validate(){\n\t\t$valid = true;\n\t\t$ref = new ReflectionObject($this);\n\t\tforeach($ref->getProperties() as $prop){\n\t\t\tif(isset($this->_atributosMetadata[$prop->getName()])){\n\t\t\t\t$propMetadata = $this->_atributosMetadata[$prop->getName()];\n\t\t\t\tif($propMetadata->needValidate){\n\t\t\t\t\t$propMetadata->Validate($prop->getValue($this));\n\t\t\t\t\tif($propMetadata->isValid){\n\t\t\t\t\t\t$valid = $valid && $propMetadata->isValid; \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $valid;\t\t\n\t}", "public function isValid(): bool\n {\n return count($this->filterProperties()) === 5;\n }", "function validate_rows() {\r\n $ok = True;\r\n for ($i = 0; $i < $this->db_count; $i++) {\r\n foreach ($this->properties as $colvar=>$col) {\r\n if (!$this->validate_field($colvar,$i)) { # make sure this field is not empty\r\n $ok = False;\r\n }\r\n }\r\n }\r\n return $ok;\r\n }", "public function validate(){\n $valid = true;\n foreach($this->fields as $field){\n if(!$field->validate()) $valid = false;\n }\n $this->setIsValid($valid);\n return $valid;\n }", "public function validate()\r\n {\r\n //clean out the errors in the errors array\r\n $this->errors = array(); //set it equal to a new empty array to clear the items in the array\r\n\r\n // need find a way to check each property\r\n // lets uses a naming convention that any function that begins with 'validate_'\r\n //will be executed in this method\r\n $methods = get_class_methods($this);\r\n $validationResults = array();\r\n foreach($methods as $func)\r\n {\r\n //see if the function begins with the text 'validate_'\r\n if(strpos($func,'validate_')===0)\r\n {\r\n //call the method with the name stored in the $func variable\r\n $validationResults[] = call_user_func([$this,$func]);\r\n }\r\n }\r\n //check to see if any of the property validation functions returned false\r\n return !in_array(false,$validationResults);\r\n\r\n }", "function is_valid() {\n $valid = True;\n foreach(get_object_vars($this) as $name => $obj) {\n if ($obj != NULL) {\n #validacion errores genericos de los campos\n $obj->required_validate();\n $flag = $obj->is_valid(); \n if (!$flag) \n { \n $valid = False;\n echo $obj->name.\" \";\n }\n #echo $obj->name;\n }\n }\n #busca metodos de validacion definido por usuario\n foreach(get_class_methods($this) as $fname) {\n $pos = strpos($fname, \"clean_\");\n if ($pos !== False) {\n $flag = $this->$fname();\n if (!$flag) \n { \n $valid = False;\n echo $fname.\" \";\n }\n }\n }\n echo $valid;\n return $valid;\n }", "private function validate() {\n $this->valid = (1 === count($this->marriages));\n }", "public function validate()\n {\n return $this->validateId()\n && $this->validateCreatedAt()\n && $this->validateOnBoardingPercentage()\n && $this->validateCountApplication()\n && $this->validateCountAcceptedApplications();\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\n {\n return 0 === count($this->listInvalidProperties());\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }" ]
[ "0.77140415", "0.74920857", "0.7374397", "0.7260932", "0.7256496", "0.7250838", "0.7190354", "0.7176844", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.7157431", "0.71248275", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975", "0.71237975" ]
0.0
-1
Returns true if offset exists. False otherwise.
#[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function offsetExists($offset): bool\n {\n return false;\n }", "public function hasOffset(){\n return $this->_has(1);\n }", "public function offsetExists($offset): bool;", "public function offsetExists($offset) {\n\t\t$result = false;\n\t\t\n\t\tif($this->_data[$offset]) {\n\t\t\t$result = true;\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function offsetExists($offset)\n {\n return isset($this->data[$offset]) ? true : false;\n }", "public function offsetExists($offset)\n {\n return true;\n }", "public function offsetExists($offset): bool\n {\n return isset($this->contents[$offset]);\n }", "public function offsetExists($offset){\n\t\treturn $this->has($offset);\n\t}", "public function offsetExists($offset)\n {\n return !is_null($this->getAttribute($offset));\n }", "public function offsetExists($offset)\n {\n return !is_null($this->getAttribute($offset));\n }", "public function offsetExists($offset): bool\n {\n return isset($this->json()[$offset]);\n }", "public function offsetExists($offset) {\n\t\treturn $this->hasValueForKey($offset);\n\t}", "public function offsetExists($offset): bool\n {\n return $this->__isset($offset);\n }", "public function offsetExists($offset)\n {\n // init\n $length = $this->length();\n $offset = (int) $offset;\n\n if ($offset >= 0) {\n return ($length > $offset);\n }\n\n return ($length >= abs($offset));\n }", "public function offsetExists($offset): bool\n {\n return $this->getAttribute($offset) !== null;\n }", "public function offsetExists($offset): bool\n {\n return $this->has($offset);\n }", "public function exists($offset): bool\n {\n return $this->get($offset) !== null;\n }", "public function offsetExists($offset): bool\n {\n return isset($this->{$offset});\n }", "public function offsetExists($offset) {\n\t\treturn isset($this->data[$offset]);\n\t}", "public function offsetExists($offset) {\n\t\treturn isset($this->data[$offset]);\n\t}", "public function offsetExists($offset): bool\n {\n return isset($this->array[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return (bool) $this->get($offset);\n }", "public function offsetExists($offset)\n {\n return isset($this->$offset);\n }", "public function offsetExists($offset) : bool\n {\n return isset($this->attributes[$offset]);\n }", "public function offsetExists(mixed $offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists(mixed $offset): bool\n {\n return $this->has((string) $offset);\n }", "public function offsetExists($offset) {\n return $this->__isset($offset);\n }", "public function offsetExists($offset) {\n\t\treturn isset($this->tokens[$offset]);\n\t}", "public function offsetExists($offset) {\n $value = $this->{\"get$offset\"}();\n return $value !== null;\n }", "public function offsetExists($offset) {\n\t\treturn isset($this->pile[$offset]);\n\t}", "public function offsetExists($offset)\n {\n return ! is_null($this->getAttribute($offset));\n }", "public function offsetExists($offset) {\n return isset(current($this->_data)[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return array_key_exists($offset, $this->array);\n }", "public function offsetExists ($offset)\n {\n try\n {\n $this->get ($offset);\n }\n catch (InvalidArgumentException $exception)\n {\n return false;\n }\n catch (UnexpectedValueException $exception)\n {\n return false;\n }\n \n return true;\n }", "public function offsetExists($offset)\n {\n return $this->__isset($offset);\n }", "public function offsetExists($offset)\n {\n return $this->__isset($offset);\n }", "public function offsetExists($offset)\n {\n return $this->__isset($offset);\n }", "public function offsetExists($offset) {\n\t\tsettype($offset, 'integer');\n\n\t\tif ($offset >= 0 && $offset < $this->indexMax) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->container[$offset]);\n }", "public function has($offset) {\n return $this->offsetExists($offset);\n }", "public function offsetExists($offset): bool\n {\n return isset($this->items()[$offset]);\n }", "public function offsetExists($offset):bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset)\n {\n return isset($this->$offset);\n\n }", "public function offsetExists($offset);", "public function offsetExists($offset);", "public function offsetExists($offset) : bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset) : bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset) : bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset) : bool\n {\n return isset($this->container[$offset]);\n }", "public function offsetExists($offset) : bool\n {\n return isset($this->container[$offset]);\n }" ]
[ "0.85544497", "0.8536287", "0.84871614", "0.83249027", "0.8321316", "0.8298716", "0.8213521", "0.81545013", "0.814174", "0.814174", "0.8133434", "0.81310785", "0.8129841", "0.81279516", "0.81168467", "0.811427", "0.8104857", "0.8101739", "0.80859023", "0.80859023", "0.80809575", "0.8074809", "0.8072697", "0.8062485", "0.8059216", "0.80587965", "0.8057387", "0.80553615", "0.80533046", "0.8052027", "0.80484784", "0.80411905", "0.8038255", "0.80321527", "0.8029531", "0.8029531", "0.8029531", "0.8028214", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8021903", "0.8020191", "0.801866", "0.80093783", "0.800808", "0.80080634", "0.80080634", "0.8005498", "0.8005498", "0.8005498", "0.8005498", "0.8005498" ]
0.0
-1
Sets value based on offset.
#[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($offset, $value);", "public function set($offset, $value = null);", "function setOffset($value) {\n $this->offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset,$value) {\n if (is_null($offset)) {\n current($this->_data)[] = $value;\n } else {\n current($this->_data)[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n $this->getValue()[$offset] = $value;\n }", "public function offsetSet( $offset, $value ) {\n\t\t// ...\n\t}", "public function offsetSet($offset, $value);", "public function offsetSet($offset, $value);", "public function offsetSet($offset, $value){\n\t\t$this->set($offset, $value);\n\t}", "public function offsetSet($offset, $value) {}", "public function offsetSet($offset, $value) {}", "public function offsetSet($offset, $value) {}", "public function offsetSet($offset, $value) {}", "public function offsetSet(mixed $offset, mixed $value): void\n {\n if (Arr::accessible($this->value)) {\n $this->value[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value) { }", "public function offsetSet($offset, $value)\r\n {\r\n $this->data[$offset] = $value;\r\n }", "public function offsetSet($offset, $value)\n\t{\n\t\t$this->{$offset} = $value;\n\t}", "public function offsetSet($offset, $value)\n {\n $this->_data[$offset] = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->_data[$offset] = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->data[$offset] = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->data[$offset] = $value;\n }", "public function offsetSet($offset, $value)\n {\n\n\n $this->__set($offset, $value);\n }", "public\t\tfunction\tsetValue($offset, $value)\n\t\t{\n\t\t\tif(array_key_exists($offset, $this->_values) && $this->_values[$offser] !== $value) {\n\t\t\t\t$this->_values[$offset]\t=\t$value;\n\t\t\t\t$this->_saved\t\t\t=\tfalse;\n\t\t\t}\n\t\t}", "public function offsetSet($offset,$value) {\n if ($offset == \"\") {\n\t $this->_data[] = $value;\n\t}else {\n\t $this->_data[$offset] = $value;\n\t}\n }", "public function setOffset($offset, $value, $container = 'default');", "public function offsetSet($offset, $value)\n {\n }", "public function offsetSet($offset, $value)\n {\n $this->setModel($value, $offset);\n }", "public function offsetSet($offset, $value) \n {\n }", "public function offsetSet($offset, $value) { \n if (is_null($offset)) {\n $this->insert($value);\n $this->incrementLength();\n } else {\n if (is_null($this->offsetGet($offset))) {\n $this->incrementLength();\n }\n\n $this->update($offset, $value); \n }\n }", "public function offsetSet($offset, $value)\n {\n if (!is_null($offset)) {\n $this->data[$offset] = $value;\n }\n }", "public function offsetSet ($offset, $value) {\n $this->__set($offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n $this->setAttribute($offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n }", "public function offsetSet($offset, $value) {\n $this->__set($offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n $this->item[$offset] = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->setAttribute($offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n $this->setAttribute($offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n $this->setAttribute($offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n $this->elements[$offset] = $offset;\n }", "public function offsetSet($offset, $value)\n {\n if ($offset == null)\n {\n $this->data[] = $offset;\n }\n else\n {\n $this->data[$offset] = $value;\n }\n $this->size++;\n }", "public function offsetSet($offset, $value): void;", "final public function offsetSet($offset, $value)\n\t{\n\t\t$this->__set($offset, $value);\n\t}", "public function offsetSet($offset, $value)\n {\n $this->__set($offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n $this->__set($offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n $this->__set($offset, $value);\n }", "public function offsetSet($offset , $value) {\n $this->_items[$offset] = $value;\n }", "public function offsetSet($offset, $value)\n {\n $method = 'set' . str_replace(\" \", \"\", ucwords(strtr($offset, \"_-\", \" \")));\n if(method_exists($this, $method)){\n $this->$method($value);\n }\n }", "public function offsetSet($offset, $value)\n\t{\n\t\t// TODO: Implement offsetSet() method.\n\t}", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->data[] = $value;\n } else {\n $this->data[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->data[] = $value;\n } else {\n $this->data[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n $this->set($offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n $this->set($offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n $this->set($offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n $this->set($offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n $this->set($offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n $this->set($offset, $value);\n }", "public function offsetSet($offset,$value)\n\t{\n\t\t$this->store()->offsetSet($offset,$value);\n\t}", "public function offsetSet($offset, $value): void\n {\n $this->update($offset, $value);\n }", "public function offsetSet($offset, $value): void\n {\n }", "public function offsetSet($offset, $value)\n {\n if ($offset === null) {\n $this->data[] = $value;\n } else {\n $this->data[$offset] = $value;\n }\n }", "public function set($offset, $value): void\n {\n $this->store->set($offset, $value);\n }", "public function offsetSet($offset, $value)\n\t\t{\n\t\t\tif(is_null($offset))\n\t\t\t\t$this->source[] = $value;\n\t\t\telse\n\t\t\t\t$this->source[$offset] = $value;\n\t\t}", "public function offsetSet(mixed $offset, mixed $value)\n {\n $this->set((string) $offset, $value);\n }", "public function offsetSet($offset, $value)\n {\n\n // add the data depending an offset has been passed or not\n if (is_null($offset)) {\n $offset = apc_inc($this->serial);\n }\n\n // store the data back to the property\n $this->__set($offset, $value);\n }", "public function offsetSet($offset, $value) {\n\t\tif(!array_key_exists($offset, $this->_data)) {\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('The specified column \"' . $offset . '\" is not a part of this record, the value was not assigned.');\n\t\t}\n\t\t\n\t\t$this->_data[$offset] = $value;\n\t}", "public function offsetSet($offset, $value)\n {\n parent::offsetSet($offset, $value);\n $this->performHook('modified');\n }", "public function offsetSet($offset, $value): void\n {\n $items = &$this->items();\n $items[$offset] = $value;\n }", "public /*void*/ function offsetSet(/*scalar*/ $offset, /*mixed*/ $value)\n\t{\n\t\tif($offset === null) {\n\t\t\t$this->_data[] = $value;\n\t\t} else {\n\t\t\t$this->_data[$offset] = $value;\n\t\t}\n\t}", "function offsetSet($offset, $value) {\n $property = defined('static::$DOMAIN_PROPERTY') ? static::$DOMAIN_PROPERTY : 'data';\n if(!isset($this->{$property})) {\n $this->{$property} = [];\n }\n \n if (is_null($offset)) {\n $offset = 0;\n if (!empty($this->{$property})) {\n $keys = \\preg_grep( '#^(0|([1-9][0-9]*))$#', \\array_keys($this->{$property}));\n if (!empty($keys)) {\n $offset = \\max($keys) + 1;\n }\n }\n }\n\n $this->{$property}[$offset] = $value;\n }", "public function offsetSet($offset, $value)\r\n {\r\n if ( ! isset($offset)) {\r\n $this->add($value);\r\n } else {\r\n $this->set($offset, $value);\r\n }\r\n }" ]
[ "0.8670502", "0.84270954", "0.821386", "0.8191476", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.81676894", "0.8118936", "0.8105677", "0.80739844", "0.80739844", "0.8055169", "0.8049614", "0.8049066", "0.8049066", "0.8049066", "0.8047941", "0.80345124", "0.8014046", "0.8012902", "0.80005074", "0.80005074", "0.79962283", "0.79962283", "0.7993535", "0.7988586", "0.79849035", "0.79569495", "0.79568005", "0.7947382", "0.7944527", "0.79422164", "0.7940082", "0.79384965", "0.7937125", "0.7935071", "0.7918337", "0.7916076", "0.7908293", "0.7908293", "0.7908293", "0.79033184", "0.78849", "0.787758", "0.7874427", "0.78388196", "0.78388196", "0.78388196", "0.78323215", "0.78242445", "0.78159875", "0.78142", "0.78142", "0.7813506", "0.7813506", "0.7813506", "0.7813506", "0.7813506", "0.7813506", "0.78095996", "0.7808172", "0.78012717", "0.779916", "0.77978307", "0.7793151", "0.7784688", "0.7784433", "0.7757673", "0.77549654", "0.77270854", "0.7702829", "0.7696581", "0.7691455" ]
0.0
-1
Gets the string presentation of the object
public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode(\Secuconnect\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } return json_encode(\Secuconnect\Client\ObjectSerializer::sanitizeForSerialization($this)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __toString() {\r\n\t\treturn $this->getPrint();\r\n\t}", "public function __toString() {\r\n\t\treturn $this->getPrint();\r\n\t}", "public function __toString() {\n\t\treturn $this->getPrint();\n\t}", "public function visualize()\n {\n \n return new StringWrapper('object('.$this->name().')');\n \n }", "public function __toString()\n {\n $result = $this->show();\n return $result ? $result : '';\n }", "public function getToString()\n {\n return $this->toString();\n }", "public function to_string() { return $this->__toString(); }", "public function __toString()\n {\n return $this->formatAsString();\n }", "public function toString()\n {\n $data = $this->origin->data();\n $out = '';\n if (is_scalar($data) || is_null($data)) {\n $out = (string) $data;\n } elseif (is_object($data) && method_exists($data, '__toString')) {\n $out = (string) $data;\n }\n return $out;\n }", "function asString () {\n \t\treturn $this->printableString();\n \t}", "public function __toString()\n {\n return $this->format();\n }", "public function __toString()\n {\n return $this->format();\n }", "public function __toString()\n {\n return $this->format();\n }", "public function __toString()\n {\n return sprintf('%s -> %s', $this->getLugar(), $this->getMotivo());\n }", "public function toString()\n {\n return $this->__toString();\n }", "public function __toString()\r\n {\r\n return $this->getFormattedString();\r\n }", "public function __toString() {\n\t\t\treturn Core\\Convert::toString($this->render());\n\t\t}", "public function __toString() { return $this->as_string(); }", "public function __toString()\n {\n try {\n return $this->toString();\n } catch (\\Exception $e) {\n return '';\n }\n }", "public function toString()\n {\n return $this->cast('string');\n }", "public function __toString()\n\t{\n\t\treturn $this->get();\n\t}", "public function __toString() {\r\n return $this->toString();\r\n }", "public function __toString()\n {\n return $this->toFormattedString();\n }", "public function __toString()\n {\n return $this->make()->toString();\n }", "public function __toString(): string\n {\n return (string) $this->format();\n }", "public function __toString() {\n\t\treturn get_class($this) . '-object ' . \"\\n\";\n\t}", "public function __toString()\n {\n return $this->assemble();\n }", "public function toString()\n {\n $data = $this->getProperties();\n $out = get_class($this).' ('.CRLF;\n foreach ($data as $key => $value) {\n $type = gettype($value);\n $value = is_bool($value) ? (int) $value : $value;\n $value = is_string($value) ? '\"'.$value.'\"' : $value;\n $value = is_object($value) ? implode(CRLF.TAB, explode(CRLF, (string) $value)) : $value;\n $value = is_array($value) ? print_r($value, true) : $value;\n $out .= TAB.$key.' ('.$type.')';\n $out .= ': '.$value.CRLF;\n }\n\n return $out.');';\n }", "public function __toString() {\n return $this->toString();\n }", "public function __toString() {\n return $this->toString();\n }", "function __toString() \n {\n $str = \"\";\n foreach(get_object_vars($this) as $name => $obj) {\n if ($obj != NULL) {\n $obj->name = $name; #nombre de la variable que hace de nombre de objecto\n $str .= $obj->label();\n $str .= $obj;\n $str .= \"<br />\\n\";\n }\n }\n return $str;\n }", "public function __toString() {\n return $this->assemble();\n }", "public function __toString() {\n\t\treturn $this->toString();\n\t}", "public function __toString() {\n\t\treturn $this->toString();\n\t}", "public function __toString() {\n return $this->as_string();\n }", "function __toString() {\n return $this->string();\n }", "public function __toString () {\r\n\t\treturn '';\r\n\t}", "public function __tostring() {\r\n return (string) $this->object->getId();\r\n }", "public function __toString() {\n \n return $this->toString();\n }", "public function __toString()\n {\n return (string) $this->getContents();\n }", "public function __toString()\n {\n \treturn $this->get();\n }", "public function __tostring();", "public function __toString()\n {\n return $this->adaptor->render();\n }", "public function __toString()\n {\n return (string) $this->exportTo(SekolahPaudPeer::DEFAULT_STRING_FORMAT);\n }", "public function toString() {\n return $this->getClassName().'<'.$this->name.'>';\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function toString()\n {\n return json_encode($this->obj);\n }", "public function __toString(){\n\t\t$ref = new ReflectionObject($this);\n\t\t$r = \"[\".$ref->getName().\"]\\n\";\n\t\tforeach($ref->getProperties() as $prop){\n\t\t\t$r .= \"\\t - \".$prop->getName().\"=\".$prop->getValue().\"\\n\";\n\t\t}\n\t\treturn $r;\n\t}", "public function __toString()\n {\n return $this->_;\n }", "public function __toString()\n {\n return $this->_;\n }", "public function __toString()\n {\n return $this->_;\n }", "public function __toString()\n {\n return (string) $this->exportTo(SanitasiPeer::DEFAULT_STRING_FORMAT);\n }", "public function __tostring()\n {\n return get_class($this) . '#' . $this->get_id() . ' (' . $this->get_title() . ')';\n }", "public function __toString() {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->_render();\n }", "public function __toString() : string {\n return $this->box . ' ' . $this->created->format('c');\n }", "public function __toString()\n {\n return (string) $this->exportTo(JadwalPeer::DEFAULT_STRING_FORMAT);\n }", "public function __toString(): string\n {\n return $this -> text;\n }", "public function __toString() {\n\t\t\treturn $this->name();\n\t\t}", "public function __toString()\n\t{\n\t\treturn '';\n\t}", "public function __toString()\n {\n notice('Object: \"'.get_class($this).'\" is used as string');\n\n return 'Object('.get_class($this).')';\n }", "public function __toString(){\n return $this->convert();\n }", "public function __toString()\n {\n return $this->toNative();\n }", "public function __toString() {\n\t\treturn $this->debug();\n\t}", "public function __toString()\n\t{\n\t\treturn $this->_toString();\n\t}", "public function toString() {\n $s= $this->getClassName().'@('.$this->hashCode().\"){\\n\";\n $s.= ' [ name ] '.$this->name.\"\\n\";\n $s.= ' [ value ] '.$this->value.\"\\n\";\n $s.= ' [ mustUnderstand ] '.xp::stringOf($this->mustUnderstand).\"\\n\";\n $s.= ' [ encodingStyle ] '.$this->encodingStyle.\"\\n\";\n $s.= ' [ actor ] '.$this->actor.\"\\n\";\n return $s.'}';\n }", "public function __toString()\n {\n return $this->reference ?? '';\n }", "public function __toString()\n {\n return $this->render(true);\n }", "public function __toString() : string\n {\n return $this->toString();\n }", "public function __toString() {\n\t\treturn $this->name->getFullyQualifiedName();\n//\t\t$s = $this->name->getFullyQualifiedName();\n//\t\t$c = $this->extended;\n//\t\twhile($c !== NULL){\n//\t\t\t$s .= \"->\" . $c->name;\n//\t\t\t$c = $c->extended;\n//\t\t}\n//\t\treturn $s;\n\t}", "public function __toString() {\n\t\treturn $this->render();\n\t}", "public function __toString()\n {\n return $this->make()->render();\n }", "public function __toString()\n {\n return $this->output();\n }", "public function __toString()\n {\n return $this->render();\n }", "public function __toString()\n {\n return $this->render();\n }", "public function __toString()\n {\n return $this->render();\n }", "public function __toString()\n {\n return $this->render();\n }", "public function __toString()\n {\n return $this->render();\n }", "public function __toString()\n {\n return $this->render();\n }", "public function __toString()\n {\n return $this->render();\n }", "public function __toString()\n {\n return $this->render();\n }", "public function __toString()\n {\n return $this->render();\n }", "public function __toString()\n {\n return $this->render();\n }", "public function __toString()\n {\n return $this->render();\n }", "public function __toString()\n {\n return $this->render();\n }", "public function __toString()\n {\n return $this->render();\n }", "public function __toString()\n {\n return $this->render();\n }" ]
[ "0.78987753", "0.78987753", "0.78655267", "0.78240114", "0.7798868", "0.77837336", "0.77770287", "0.77690274", "0.77437395", "0.774057", "0.7733258", "0.7733258", "0.7733258", "0.7695146", "0.767794", "0.76635754", "0.76593804", "0.7630339", "0.76228136", "0.7610629", "0.7575354", "0.7573883", "0.75735986", "0.75721085", "0.7561757", "0.75431705", "0.7537132", "0.75362605", "0.75335604", "0.75335604", "0.75276136", "0.7519024", "0.7514037", "0.7514037", "0.75004286", "0.7499962", "0.7497666", "0.74929035", "0.7487213", "0.7479636", "0.74712914", "0.7462192", "0.74601185", "0.7455943", "0.7455742", "0.745568", "0.745568", "0.745568", "0.745568", "0.745568", "0.745568", "0.745568", "0.745568", "0.745568", "0.745568", "0.745568", "0.745568", "0.745568", "0.745568", "0.745568", "0.74519074", "0.745044", "0.7448012", "0.7448012", "0.7448012", "0.7446098", "0.74429476", "0.7441371", "0.7430801", "0.74215424", "0.74149144", "0.74128985", "0.74083585", "0.74013644", "0.7390187", "0.7385503", "0.73853725", "0.7384312", "0.73842263", "0.7383548", "0.7380489", "0.73800004", "0.7369339", "0.7366414", "0.7363444", "0.7361871", "0.7358607", "0.73577785", "0.73577785", "0.73577785", "0.73577785", "0.73577785", "0.73577785", "0.73577785", "0.73577785", "0.73577785", "0.73577785", "0.73577785", "0.73577785", "0.73577785", "0.73577785" ]
0.0
-1
Implementation of hook_civicrm_managed Generate a list of entities to create/deactivate/delete when this module is installed, disabled, uninstalled.
function gittest_civicrm_managed(&$entities) { return _gittest_civix_civicrm_managed($entities); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pcptab_civicrm_managed(&$entities) {\n _pcptab_civix_civicrm_managed($entities);\n}", "function mysmsmantra_civicrm_managed(&$entities) {\n return _mysmsmantra_civix_civicrm_managed($entities);\n}", "function ccdev_hosting_list_entities() {\n module_load_include('inc','ccHosting','includes/entity_load');\n module_load_include('inc','ccHosting','includes/lib');\n global $user;\n\n ctools_include('modal');\n ctools_modal_add_js();\n\n $content = array();\n $rows = array();\n\n $header = array(\n 'site_name' => array(\n 'data' => t('Site Name'),\n 'type' => 'property',\n 'specifier' => 'site_name',\n 'field' => 'site_name'\n ),\n 'site_description' => array(\n 'data' => t('Description'),\n 'type' => 'property',\n 'specifier' => 'total_balance',\n 'field' => 'total_balance'\n ),\n 'site_domain' => array(\n 'data' => t('Domain'),\n 'type' => 'property',\n 'specifier' => 'site_domain',\n 'field' => 'site_domain'\n ),\n 'site_cms' => array(\n 'data' => t('CMS'),\n 'type' => 'property',\n 'specifier' => 'site_cms',\n 'field' => 'site_cms'\n ),\n );\n\n\n $entities = ccdev_hosting_load_multiple(FALSE, array(), FALSE, $header);\n if (!empty($entities)) {\n foreach ($entities as $entity) {\n\tif($user->uid == $entity->user_id || user_access('administer ccdev_hosting entities')) {\n\t // Create tabular rows for our entities.\n\t $rows[] = array(\n\t\t'data' => array(\n\t\t'site_name' => l($entity->site_name, 'ccMods/ccHosting/basic/' . $entity->site_name),\n\t\t'site_description' => $entity->site_description,\n\t\t'site_domain' => $entity->site_domain,\n\t\t'site_cms' => $entity->site_cms,\n\t\t'manage' => _ccHosting_make_link(array('site_id' => $entity->basic_id,'title' => 'Manage')),\n\t\t),\n\t );\n\t}\n }\n\n // Put our entities into a themed table. See theme_table() for details.\n $content['entity_table'] = array(\n '#theme' => 'table',\n '#rows' => $rows,\n '#header' => $header,\n '#attributes' => array(\n 'id' => 'sort-table')\n );\n\n //Add pagination to table\n $content['pager'] = array(\n '#theme' => 'pager');\n\n }\n else {\n // There were no entities. Tell the user.\n $content[] = array(\n '#type' => 'item',\n '#markup' => t('No ccdev_hosting entities currently exist.'),\n );\n }\n return $content;\n}", "function postcodenl_civicrm_managed(&$entities) {\n return _postcodenl_civix_civicrm_managed($entities);\n}", "function exercise_civicrm_managed(&$entities) {\n return _exercise_civix_civicrm_managed($entities);\n}", "function getEntityList()\n\t{\n\t\tif($this->entityList === null)\n\t\t{\n\t\t\t$event = new \\Bitrix\\Main\\Event('main', 'onUserTypeEntityOrmMap');\n\t\t\t$event->send();\n\n\t\t\tforeach($event->getResults() as $eventResult)\n\t\t\t{\n\t\t\t\tif($eventResult->getType() == \\Bitrix\\Main\\EventResult::SUCCESS)\n\t\t\t\t{\n\t\t\t\t\t$result = $eventResult->getParameters(); // [ENTITY_ID => 'SomeTable']\n\t\t\t\t\tforeach($result as $entityId => $entityClass)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(mb_substr($entityClass, 0, 1) !== '\\\\')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$entityClass = '\\\\' . $entityClass;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$this->entityList[$entityId] = $entityClass;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $this->entityList;\n\t}", "protected function createMenuEntriesForTbeModulesExt() {}", "protected function createMenuEntriesForTbeModulesExt() {}", "function entity_lists_admin_menu(\\Elgg\\Event $event) {\n if (!elgg_in_context('admin')) {\n return null;\n }\n \n /* @var $return MenuItems */\n $result = $event->getValue();\n \n $result[] = \\ElggMenuItem::factory([\n 'name' => 'entity_lists',\n 'text' => elgg_echo('admin:entity_lists'),\n 'href' => false,\n ]);\n\n if (EntityListsOptions::isUserEnabled()) { \n $result[] = \\ElggMenuItem::factory([\n 'name' => 'entity_lists:user',\n 'href' => elgg_normalize_url(\"admin/entity_lists/user\"),\n 'text' => elgg_echo(\"item:user\"),\n 'parent_name' => 'entity_lists',\n ]); \n }\n \n if (EntityListsOptions::isGroupEnabled()) { \n $result[] = \\ElggMenuItem::factory([\n 'name' => \"entity_lists:group\",\n 'href' => elgg_normalize_url(\"admin/entity_lists/group\"),\n 'text' => elgg_echo(\"item:group\"),\n 'parent_name' => 'entity_lists',\n ]);\n }\n \n if ($enables_types = EntityListsOptions::getEnabledEntities()) {\n foreach ($enables_types as $key => $e) { \n $result[] = \\ElggMenuItem::factory([\n 'name' => \"entity_lists:{$e}\",\n 'href' => elgg_normalize_url(\"admin/entity_lists/object?e={$e}\"),\n 'text' => elgg_echo(\"item:object:{$e}\"),\n 'parent_name' => 'entity_lists',\n ]);\n }\n } \n \n return $result;\n}", "public function generate()\n\t{\n\t\t$entityName = mb_strtolower($this->getEntityName());\n\n\t\t$entityDir = Yii::getAlias(self::PATH_TO_MODULE . '/' . $entityName);\n\n\t\tif (!is_dir($entityDir) && !mkdir($entityDir) && !is_dir($entityDir)) {\n\t\t\tthrow new InternalException(InternalException::ERROR_DENIED, \"Не удалось создать папку: {$entityDir}\");\n\t\t}\n\n\t\t$entityTableFilePath = \"{$entityDir}/{$entityName}.php\";\n\n\t\t$files = [\n\t\t\tnew CodeFile($entityTableFilePath, $this->render('table.php')),\n\t\t];\n\n\t\t$helpersDir = __DIR__ . '/default/admininterface';\n\n\t\tif (!is_dir($helpersDir) && !mkdir($helpersDir) && !is_dir($helpersDir)) {\n\t\t\tthrow new InternalException(InternalException::ERROR_DENIED, \"Не удалось создать папку: {$helpersDir}\");\n\t\t}\n\n\t\tforeach ($dirs = scandir($helpersDir, null) as $file) {\n\t\t\tif ($file === '.' || $file === '..') {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$templateFilePath = $helpersDir . '/' . $file;\n\t\t\t$codeFilePath = $entityDir . '/admininterface/' . $entityName . $file;\n\t\t\tif (is_file($templateFilePath) && pathinfo($templateFilePath, PATHINFO_EXTENSION) === 'php') {\n\t\t\t\t$files[] = new CodeFile($codeFilePath, $this->render(\"admininterface/$file\"));\n\t\t\t}\n\t\t}\n\n\t\treturn $files;\n\t}", "abstract protected function getEntitiesToSync();", "abstract protected function createEntities();", "function getAvailableEntities( Application $app ) {\n\n $entitiesList = array();\n $sql = \"SELECT entity FROM entities WHERE active > 0\";\n $res = $app['db']->fetchAll($sql);\n\n foreach( $res as $v )\n $entitiesList[] = $v['entity'];\n\n return $entitiesList;\n}", "function discountvoucherpurchase_civicrm_managed(&$entities) {\n return _discountvoucherpurchase_civix_civicrm_managed($entities);\n}", "private static function loadEntityList()\n {\n if (!isset(self::$_data[self::KEY_ENTITY_LIST]))\n {\n $_adapter = self::getZendDbAdapter(TRUE);\n $_dbSelect = $_adapter->select()\n ->from(\"c_entity\", array(\"entity_id\" => \"id\", \"entity_name\" => \"name\", \"entity_label\" => \"label\"))\n ->join(\"c_entity_field\", \"c_entity_field.entity_id = c_entity.id\", array(\"field_id\" => \"id\", \"field_name\" => \"name\", \"field_label\" => \"label\"))\n ->join(\"c_entity_option\", \"c_entity_option.field_id = c_entity_field.id\", array(\"option_id\" => \"id\", \"option_value\" => \"value\", \"option_label\" => \"label\"))\n ->order(\"c_entity.id\")\n ->order(\"c_entity_field.id\")\n ->order(\"c_entity_option.label\")\n ;\n $_recordList = $_adapter->fetchAll($_dbSelect);\n\n $_data = array();\n foreach ($_recordList as $_record)\n {\n $_eName = $_record[\"entity_name\"];\n $_fName = $_record[\"field_name\"];\n $_oName = $_record[\"option_value\"];\n if (!isset($_data[$_eName]))\n {\n $_data[$_eName] = array(\n \"id\" => $_record[\"entity_id\"],\n \"label\" => $_record[\"entity_label\"],\n \"field_list\" => array()\n );\n }\n if (!isset($_data[$_eName][\"field_list\"][$_fName]))\n {\n $_data[$_eName][\"field_list\"][$_fName] = array(\n \"id\" => $_record[\"field_id\"],\n \"label\" => $_record[\"field_label\"],\n \"option_list\" => array()\n );\n }\n\n $_data[$_eName][\"field_list\"][$_fName][\"option_list\"][$_oName] = array(\n \"id\" => $_record[\"option_id\"],\n \"label\" => $_record[\"option_label\"]\n );\n }\n self::$_data[self::KEY_ENTITY_LIST] = $_data;\n }\n }", "function custom_entity_generate_entities_pre_entity(&$results) {\n module_load_include('inc', 'devel_generate');\n // Get user id.\n $users = devel_get_users();\n $users = array_merge($users, array('0'));\n $results['users'] = $users;\n}", "function custom_entity_generate_form($form, $form_state, $name) {\n $form['entity_label'] = array(\n '#type' => 'value',\n '#value' => $name,\n );\n $form['kill_entities'] = array(\n '#type' => 'checkbox',\n '#title' => t('<strong>Delete all @name</strong> before generating new @name.', ['@name' => $name]),\n '#default_value' => FALSE,\n );\n\n $form['num_entities'] = array(\n '#type' => 'textfield',\n '#title' => t('How many @name would you like to generate?', ['@name' => $name]),\n '#default_value' => 50,\n '#size' => 10,\n );\n\n $form['title_length'] = array(\n '#type' => 'textfield',\n '#title' => t('Max word length of titles'),\n '#default_value' => 4,\n '#size' => 10,\n );\n\n unset($options);\n $options[LANGUAGE_NONE] = t('Language neutral');\n if (module_exists('locale')) {\n $options += locale_language_list();\n }\n $form['add_language'] = array(\n '#type' => 'select',\n '#title' => t('Set language on @name', ['@name' => $name]),\n '#multiple' => TRUE,\n '#disabled' => !module_exists('locale'),\n '#description' => t('Requires locale.module'),\n '#options' => $options,\n '#default_value' => array(LANGUAGE_NONE => LANGUAGE_NONE),\n );\n\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Generate'),\n );\n $form['#redirect'] = FALSE;\n\n return $form;\n}", "function __MB_TASKS_LIST_GetFilterEntities()\n{\n\t$oFieldOriginator = new CTaskFilterEntityUser(\n\t\t'TASKS_FILTER_BUILDER_PRESET_ORIGINATOR_NAME',\n\t\t'CREATED_BY'\n\t);\n\n\t$oFieldResponsible = new CTaskFilterEntityUser(\n\t\t'TASKS_FILTER_BUILDER_PRESET_RESPONSIBLE_NAME',\n\t\t'RESPONSIBLE_ID'\n\t);\n\n\t$oFieldCloser = new CTaskFilterEntityUser(\n\t\t'TASKS_FILTER_BUILDER_PRESET_CLOSER_NAME',\n\t\t'CLOSED_BY'\n\t);\n\n\t$oFieldPriority = new CTaskFilterEntity(\n\t\t'TASKS_FILTER_BUILDER_PRESET_PRIORITY_NAME',\n\t\t'PRIORITY',\n\t\tarray(\n\t\t\tarray(\n\t\t\t\t'name' => 'TASKS_FILTER_BUILDER_PRESET_PRIORITY_LOW',\n\t\t\t\t'value' => 0\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'TASKS_FILTER_BUILDER_PRESET_PRIORITY_MIDDLE',\n\t\t\t\t'value' => 1\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'TASKS_FILTER_BUILDER_PRESET_PRIORITY_HIGH',\n\t\t\t\t'value' => 2\n\t\t\t)\n\t\t)\n\t);\n\n\t$oFieldStatus = new CTaskFilterEntity(\n\t\t'TASKS_FILTER_BUILDER_PRESET_STATUS_NAME',\n\t\t'STATUS',\n\t\tarray(\n\t\t\tarray(\n\t\t\t\t'name' => 'TASKS_FILTER_BUILDER_PRESET_STATUS_ACTIVE',\n\t\t\t\t'value' => array(\n\t\t\t\t\tCTasks::METASTATE_VIRGIN_NEW,\n\t\t\t\t\tCTasks::METASTATE_EXPIRED,\n\t\t\t\t\tCTasks::STATE_NEW,\n\t\t\t\t\tCTasks::STATE_PENDING,\n\t\t\t\t\tCTasks::STATE_IN_PROGRESS,\n\t\t\t\t\tCTasks::STATE_DECLINED\n\t\t\t\t)\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'TASKS_FILTER_BUILDER_PRESET_STATUS_DEFERRED',\n\t\t\t\t'value' => CTasks::STATE_DEFERRED\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'TASKS_FILTER_BUILDER_PRESET_STATUS_DECLINED',\n\t\t\t\t'value' => CTasks::STATE_DECLINED\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'TASKS_FILTER_BUILDER_PRESET_STATUS_EXPIRED',\n\t\t\t\t'value' => CTasks::METASTATE_EXPIRED\n\t\t\t)\n\t\t)\n\t);\n\n\t$arFilterEntities = array(\n\t\t$oFieldOriginator,\n\t\t$oFieldResponsible,\n\t\t$oFieldCloser,\n\t\t$oFieldPriority,\n\t\t$oFieldStatus\n\t);\n\n\treturn ($arFilterEntities);\n}", "public function getEntities()\n {\n /** @var \\Umc\\Base\\Model\\Core\\Module $module */\n if ($module = $this->_coreRegistry->registry('current_module')) {\n return $module->getEntities();\n }\n return [];\n }", "public static function deleteCreatedEntities() {\n global $entities;\n\n if (!empty($entities)) {\n foreach ($entities as $key => $val) {\n foreach ($val as $entity_id => $object) {\n if ($object->deleteProgrammatically()) {\n unset($entities[$key][$entity_id]);\n }\n }\n }\n }\n\n /*self::deleteEntities('node', 1);\n self::deleteEntities('taxonomy_term', 0);\n self::deleteEntities('user', 30);\n self::deleteEntities('comment', 0);*/\n }", "function workflow_list_entity_menu_setup($hook, $type, $return, $params) {\n\tif (elgg_in_context('widgets')) {\n\t\treturn $return;\n\t}\n\n\t$entity = $params['entity'];\n\t$handler = elgg_extract('handler', $params, false);\n\tif ($handler != 'workflow') {\n\t\treturn $return;\n\t}\n\n\t$workflow_list = $params['entity'];\n\t$show_edit = elgg_extract('show_edit', $params, true);\n\n\t//$container_guid = $tasklist->container_guid;\n\t//$user = elgg_get_logged_in_user_entity();\n\t//$can_edit = is_group_member($container_guid, $user->guid);\n\t//if ($can_edit) {\n\tif (elgg_is_admin_logged_in() || elgg_get_logged_in_user_guid() == $workflow_list->getOwnerGuid()) {\n\t\t$delete = array(\n\t\t\t'name' => 'delete',\n\t\t\t'text' => elgg_view_icon('delete-alt'),\n\t\t\t'title' => elgg_echo('workflow:list:delete', array($tasklist->title)),\n\t\t\t'href' => \"action/workflow/list/delete?list_guid=$workflow_list->guid\",\n\t\t\t'is_action' => true,\n\t\t\t'class' => 'workflow-list-delete-button',\n\t\t\t'id' => \"workflow-list-delete-button-$workflow_list->guid\",\n\t\t\t'priority' => 900\n\t\t);\n\t\t$return[] = ElggMenuItem::factory($delete);\n\n\t\tif ($show_edit) {\n\t\t\t$edit = array(\n\t\t\t\t'name' => 'settings',\n\t\t\t\t'text' => elgg_view_icon('settings-alt'),\n\t\t\t\t'title' => elgg_echo('workflow:list:edit'),\n\t\t\t\t'href' => \"#workflow-list-edit-$workflow_list->guid\",\n\t\t\t\t'class' => \"workflow-list-edit-button\",\n\t\t\t\t'rel' => 'toggle',\n\t\t\t\t'priority' => 800,\n\t\t\t);\n\t\t\t$return[] = ElggMenuItem::factory($edit);\n\t\t}\n\t}\n\n\treturn $return;\n}", "protected function installEntities()\n {\n $sm = \\Core::make('Concrete\\Core\\Database\\DatabaseStructureManager');\n $entities = array('Concrete\\Core\\Entity\\File\\File');\n\n // Now we fill the rest of the class names recursively from the entity directory, since it's\n // entirely new\n $entityPath = DIR_BASE_CORE . '/' . DIRNAME_CLASSES . '/Entity';\n $iterator = new \\RecursiveIteratorIterator(\n new \\RecursiveDirectoryIterator($entityPath, \\FilesystemIterator::SKIP_DOTS),\n \\RecursiveIteratorIterator::CHILD_FIRST\n );\n\n foreach ($iterator as $path) {\n if (!$path->isDir()) {\n $path = $path->__toString();\n if (substr(basename($path), 0, 1) != '.') {\n $path = str_replace(array($entityPath, '.php'), '', $path);\n $entities[] = 'Concrete\\Core\\Entity' . str_replace('/', '\\\\', $path);\n }\n }\n }\n\n $em = $this->connection->getEntityManager();\n $cmf = $em->getMetadataFactory();\n $metadatas = array();\n foreach ($cmf->getAllMetadata() as $meta) {\n if (in_array($meta->getName(), $entities)) {\n $metadatas[] = $meta;\n }\n }\n\n $sm->installDatabaseFor($metadatas);\n }", "public function getEntities();", "public function getEntities();", "protected function afterImport($entities)\n {\n\n }", "public function getAllEntities();", "function plugin_customfields_activate_all($itemtype) {\n global $DB;\n\n $query = \"SELECT `id`\n FROM `glpi_plugin_customfields_fields`\n WHERE `itemtype` = '$itemtype'\";\n $result = $DB->query($query);\n\n if ($DB->numrows($result) > 0) {\n plugin_customfields_create_data_table($itemtype);\n\n $table1 = getTableForItemType($itemtype);\n $table2 = plugin_customfields_table($itemtype);\n if ($itemtype == 'Entity') {\n $sql = \"INSERT INTO `$table2`\n (`id`)\n VALUES ('0')\"; // Add a row for the Root Entity\n $result2 = $DB->query($sql);\n }\n\n $query = \"SELECT a.`id`, b.`id` AS skip\n FROM $table1 AS a\n LEFT JOIN $table2 AS b\n ON a.`id` = b.`id`\";\n $result = $DB->query($query);\n\n while ($data=$DB->fetch_assoc($result)) {\n if (is_null($data['skip'])) {\n $sql = \"INSERT INTO `$table2`\n (`id`)\n VALUES ('\".intval($data['id']).\"')\";\n $result2 = $DB->query($sql);\n }\n }\n }\n}", "function betterbounce_civicrm_managed(&$entities) {\n return _betterbounce_civix_civicrm_managed($entities);\n}", "function mongo_node_entities() {\n $set = mongo_node_settings();\n $base_path = 'admin/structure/mongo-node';\n\n $header = array(t('Name'), array(\n 'data' => t('Operations'),\n 'colspan' => 3,\n ),\n );\n\n foreach ($set as $entity_type => $settings) {\n $rows[] = array(\n array('data' => l($settings['label'], $base_path . '/' . $entity_type)),\n array('data' => l(t('edit'), $base_path . '/' . $entity_type . '/edit')),\n array('data' => l(t('delete'), $base_path . '/' . $entity_type . '/delete')),\n );\n }\n\n $output = theme('table', array(\n 'rows' => $rows,\n 'header' => $header,\n 'empty' => t('No entities created yet.'),\n )\n );\n return $output;\n}", "function documents_civicrm_managed(&$entities) {\n return _documents_civix_civicrm_managed($entities);\n}", "function hook_uuid_entities_features_export_entity_alter(&$entity, $entity_type) {\n\n}", "function getModules(){\n global $adb;\n $query=\"select vtiger_tab.tabid,vtiger_tab.tablabel as modulename,linklabel from vtiger_tab left join vtiger_links on vtiger_tab.tabid=vtiger_links.tabid and linklabel='WYSIWYG'\nwhere isentitytype=1 and tablabel!='Comments'\";\n $result=$adb->pquery($query,array());\n while($resultrow = $adb->fetch_array($result)) {\n $modulelist[$resultrow['modulename']]=array('enabled'=>$resultrow['linklabel']==\"WYSIWYG\",'tabid'=>$resultrow['tabid']);\n }\n return $modulelist;\n }", "private function setConfigEntities()\n {\n foreach ($this->entityMethods as $entity => $methodName) {\n $this->openEntity($entity);\n foreach ($this->generator->types as $objName => $objData) {\n if (in_array($objName, $this->generator->customTypes) === false) { // if this is not a custom type generate resources\n $excluded = false;\n foreach ($this->generator->excludedSubtypes as $type) {\n if (strpos($objName, $type) !== false) {\n $excluded = true;\n }\n }\n // if the type is among excluded - continue\n if ($excluded === true) {\n continue;\n }\n $this->setOptions($objName, $methodName);\n }\n }\n $this->closeEntities();\n }\n }", "function getCustomFieldSupportedModules()\n{\n\tglobal $adb;\n\t$sql=\"select distinct ec_field.tabid,name from ec_field inner join ec_tab on ec_field.tabid=ec_tab.tabid where ec_field.tabid not in(7,9,10,29)\";\n\t$result = $adb->getList($sql);\n\tforeach($result as $row)\n\t{\n\t\t$modulelist[$row['name']] = $row['name'];\n\t}\n\treturn $modulelist;\n}", "private function getEntities() {\n return [\n [\n 'title' => 'Details',\n 'alias' => 'product.info.description',\n 'block' => 'Magento\\Catalog\\Block\\Product\\View\\Description',\n 'sort_order' => 0,\n 'status' => 1,\n 'widget_template' => 'Magento_Catalog::product/view/description.phtml'\n ],\n [\n 'title' => 'More Information',\n 'alias' => 'additional',\n 'block' => 'Magento\\Catalog\\Block\\Product\\View\\Attributes',\n 'sort_order' => 10,\n 'status' => 1,\n 'widget_template' => 'Magento_Catalog::product/view/attributes.phtml',\n 'widget_unset' => 'product.attributes.wrapper' // unset block when page layout is \"Product -- Full Width\"\n ],\n [\n 'title' => '{{eval code=\"getTabTitle()\"}}',\n 'alias' => 'reviews',\n 'block' => 'Swissup\\Easytabs\\Block\\Tab\\Product\\Review',\n 'sort_order' => 20,\n 'status' => 1,\n 'widget_template' => 'Magento_Review::review.phtml',\n 'widget_unset' => 'product.reviews.wrapper' // unset block when page layout is \"Product -- Full Width\"\n ]\n ];\n }", "public function listing($entity_type) {\n\n $templates_ids = $this->entityTypeManager->getStorage('cohesion_content_templates')->getQuery()->execute();\n\n if ($templates_ids) {\n $candidate_template_storage = $this->entityTypeManager->getStorage('cohesion_content_templates');\n $candidate_templates = $candidate_template_storage->loadMultiple($templates_ids);\n $bundles = [];\n foreach ($candidate_templates as $entity) {\n if (!isset($bundles[$entity->get('entity_type')])) {\n $bundles[$entity->get('entity_type')] = $entity->get('entity_type');\n }\n }\n\n $entity_types = $this->entityTypeManager->getDefinitions();\n foreach ($bundles as $entity_type_name) {\n $entity_type = $entity_types[$entity_type_name];\n $types[$entity_type_name] = [\n 'label' => ($entity_type->get('bundle_label')) ? $entity_type->get('bundle_label') : $entity_type->get('label'),\n 'description' => t('Manage your @settings_label templates', ['@settings_label' => strtolower($entity_type->getLabel())]),\n 'add_link' => Link::createFromRoute($entity_type->getLabel(), 'entity.cohesion_content_templates.collection', ['content_entity_type' => $entity_type_name]),\n ];\n }\n\n $build = [\n '#theme' => 'entity_add_list',\n '#bundles' => $types,\n '#add_bundle_message' => t('There are no available content templates. Go to the batch import page to import the list of content templates.'),\n '#cache' => [\n 'contexts' => $this->entityTypeDefinition->getListCacheContexts(),\n 'tags' => $this->entityTypeDefinition->getListCacheTags(),\n ],\n ];\n\n return $build;\n }\n else {\n throw new NotFoundHttpException();\n }\n }", "public function getEntitiesOverrides(): array;", "function expositor_list(){\n return expositor_novo();\n}", "public function getEntities(): array;", "protected function getEntities() {\n $query = $this->getStorage()->getQuery();\n $keys = $this->entityType->getKeys();\n\n $query->condition($keys['bundle'], $this->bundle)\n ->sort($keys['id']);\n\n $bundle = $this->entityManager->getStorage($this->entityType->getBundleEntityType())\n ->load($this->bundle);\n\n $pager_settings = $bundle->getPagerSettings();\n if (!empty($pager_settings['page_parameter']) && !empty($pager_settings['page_size_parameter'])) {\n $query->pager($pager_settings['default_limit']);\n }\n\n return $this->getStorage()->getResultEntities($query->execute());\n }", "public function indexActionEntities() {\n return [];\n }", "protected function beforeImport($entities)\n {\n\n }", "function flag_features_providing_module() {\n $modules = array();\n $hook = 'flag_definitions';\n foreach (module_implements($hook) as $module) {\n foreach (module_invoke($module, $hook) as $key => $value) {\n $modules[$key] = $module;\n }\n }\n\n // Any entity type without a flag providing module will be provided by the\n // flag module.\n foreach (entity_get_info() as $entity_type => $entity) {\n if (!isset($modules[$entity_type]) && empty($entity['configuration']) && $entity_type !== 'taxonomy_vocabulary') {\n $modules[$entity_type] = 'flag';\n }\n }\n\n return $modules;\n}", "function ef_contract_action_info() {\n // UPDATE COUNTRY GROUP AND CONTRACT\n $actions['ef_contract_update_country_group_and_contract'] = array(\n 'type' => 'node',\n 'label' => t('Update Country group and Contract'),\n 'configurable' => FALSE,\n 'triggers' => array('any'),\n 'behavior' => array('changes_property'),\n 'vbo_configurable' => FALSE,\n 'pass rows' => TRUE,\n );\n // UPDATE old contracts with real values (Authors and contracts)\n $actions['ef_contract_upload_contract'] = array(\n 'type' => 'node', // Here come's the name of your custom entity type\n 'label' => t('Upload contract'),\n 'configurable' => FALSE,\n 'triggers' => array('any'),\n 'behavior' => array('changes_property'),\n 'vbo_configurable' => FALSE,\n 'pass rows' => TRUE,\n );\n // UPDATE old contracts with N/A contract\n $actions['ef_contract_upload_NA_contract'] = array(\n 'type' => 'node', // Here come's the name of your custom entity type\n 'label' => t('Upload N/A contracts'),\n 'configurable' => FALSE,\n 'triggers' => array('any'),\n 'behavior' => array('changes_property'),\n 'vbo_configurable' => FALSE,\n 'pass rows' => TRUE,\n );\n // Change EF Article, CAR/REP,NC,IR Dictionary status\n // from Approved for Editing to On external Editing\n $actions['ef_editor_to_ee'] = array(\n 'type' => 'node', // Here come's the name of your custom entity type\n 'label' => t('Change status to On External Editing'),\n 'configurable' => FALSE,\n 'triggers' => array('any'),\n 'behavior' => array('changes_property'),\n 'vbo_configurable' => FALSE,\n 'pass rows' => TRUE,\n );\n // Update empty contracts for network quarterly reports\n $actions['empty_network'] = array(\n 'type' => 'node', // Here come's the name of your custom entity type\n 'label' => t('Update empty Network Quarterly Reports'),\n 'configurable' => FALSE,\n 'triggers' => array('any'),\n 'behavior' => array('changes_property'),\n 'vbo_configurable' => FALSE,\n 'pass rows' => TRUE,\n );\n\n return $actions;\n}", "function procMenuAdminAllActList()\n\t{\n\t\t$oModuleModel = getModel('module');\n\t\t$installed_module_list = $oModuleModel->getModulesXmlInfo();\n\t\tif(is_array($installed_module_list))\n\t\t{\n\t\t\t$currentLang = Context::getLangType();\n\t\t\t$menuList = array();\n\t\t\tforeach($installed_module_list AS $key=>$value)\n\t\t\t{\n\t\t\t\t$info = $oModuleModel->getModuleActionXml($value->module);\n\t\t\t\tif($info->menu) $menuList[$value->module] = $info->menu;\n\t\t\t\tunset($info->menu);\n\t\t\t}\n\t\t}\n\t\t$this->add('menuList', $menuList);\n\t}", "public function getDefaultEntities()\n {\n $brandEntity = \\Magecom\\Brand\\Model\\Brand::ENTITY;\n return [\n $brandEntity => [\n 'entity_model' => 'Magecom\\Brand\\Model\\ResourceModel\\Brand',\n// 'attribute_model' => 'Magento\\Catalog\\Model\\ResourceModel\\Eav\\Attribute',\n 'table' => $brandEntity . '_entity',\n// 'entity_attribute_collection' => 'Magento\\Eav\\Model\\ResourceModel\\Entity\\Attribute\\Collection',\n 'attributes' => [\n 'status' => [\n 'type' => 'static',\n 'label' => 'Status',\n 'input' => 'select',\n 'source' => 'Magecom\\Brand\\Model\\Config\\Status',\n 'global' => \\Magento\\Eav\\Model\\Entity\\Attribute\\ScopedAttributeInterface::SCOPE_WEBSITE,\n ],\n 'name' => [\n 'type' => 'varchar',\n 'label' => 'Name',\n 'input' => 'text',\n 'frontend_class' => 'validate-length maximum-length-255',\n 'sort_order' => 1,\n 'global' => \\Magento\\Eav\\Model\\Entity\\Attribute\\ScopedAttributeInterface::SCOPE_STORE,\n ],\n 'logo' => [\n 'type' => 'varchar',\n 'label' => 'Brand Logo',\n 'input' => 'text',\n 'frontend' => 'Magecom\\Landing\\Model\\Attribute\\Frontend\\Image',\n 'required' => false,\n 'sort_order' => 2,\n 'global' => \\Magento\\Eav\\Model\\Entity\\Attribute\\ScopedAttributeInterface::SCOPE_STORE,\n ],\n 'description' => [\n 'type' => 'text',\n 'label' => 'Description',\n 'input' => 'textarea',\n 'sort_order' => 3,\n 'global' => \\Magento\\Eav\\Model\\Entity\\Attribute\\ScopedAttributeInterface::SCOPE_STORE,\n 'wysiwyg_enabled' => true,\n ],\n ],\n ]\n ];\n }", "public function getModuleList(){\n $qb = $this->createQueryBuilder();\n $qb->module('system')->query('modulelistnames');\n return $this->execute($qb);\n }", "public function listEntities($limit, $listDisabled)\n {\n }", "protected function getEntityTypes() : array {\n $existingData = $this->entityTypeManager->getDefinitions();\n\n $entity_types = array_keys(array_intersect_key($this->reportData, $existingData));\n return array_diff($entity_types, [\n // TODO: Remove when crop type is exported.\n 'crop',\n 'update_helper_checklist_update',\n 'access_token',\n 'menu_link_content',\n 'redirect',\n 'shortcut',\n ]);\n }", "protected function saveAndReplaceEntity()\n {\n $behavior = $this->getBehavior();\n $listId = [];\n while ($bunch = $this->_dataSourceModel->getNextBunch()) {\n $entityList = [];\n foreach ($bunch as $rowNum => $rowData) {\n if (!$this->validateRow($rowData, $rowNum)) {\n $this->addRowError(ValidatorInterface::ERROR_ID_IS_EMPTY, $rowNum);\n continue;\n }\n if ($this->getErrorAggregator()->hasToBeTerminated()) {\n $this->getErrorAggregator()->addRowToSkip($rowNum);\n continue;\n }\n $taskId= $rowData[self::TASK_ID];\n $listId[] = $taskId;\n $entityList[$taskId][] = [\n self::TASK_ID => $rowData[self::TASK_ID ],\n self::TASK_NAME => $rowData[self::TASK_NAME ],\n self::TASK_CONTENT => $rowData[self::TASK_CONTENT],\n self::START_DATE => $rowData[self::START_DATE ],\n self::END_DATE => $rowData[self::END_DATE ],\n self::STATUS => $rowData[self::STATUS ],\n self::ASSIGN_TO => $rowData[self::ASSIGN_TO ],\n self::PROGRESS => $rowData[self::PROGRESS ],\n self::DESCRIPTION => $rowData[self::DESCRIPTION ],\n self::PRIORITY => $rowData[self::PRIORITY ],\n self::CREATED_AT => $rowData[self::CREATED_AT ],\n self::UPDATED_AT => $rowData[self::UPDATED_AT ],\n self::USER_CREATED => $rowData[self::USER_CREATED],\n self::USER_UPDATED => $rowData[self::USER_UPDATED],\n ];\n }\n\n if (Import::BEHAVIOR_REPLACE == $behavior) {\n if ($listId) {\n if ($this->deleteEntityFinish(array_unique($listId), self::TABLE_ENTITY)) {\n $this->saveEntityFinish($entityList, self::TABLE_ENTITY);\n }\n }\n } elseif (Import::BEHAVIOR_APPEND == $behavior) {\n $this->saveEntityFinish($entityList, self::TABLE_ENTITY);\n }\n }\n\n return $this;\n }", "function setup_notifelms() {\n\n\tglobal $AccountId, $DefaultNotificationElms, $DB;\n\n\t$ids = array();\n\t$insert_failure = false;\n\tif(!is_numeric($AccountId) || $AccountId < 1) {\n\t\tif(ADMIN_DEBUG_MODE === true) {\n\t\t\techo \"Invalid account id\\n\";\n\t\t}\n\t\treturn $ids;\n\t}\n\n\tforeach($DefaultNotificationElms as $idx => $elmdata) {\n\t\t$sql = \"INSERT INTO NotificationElm (Id, TypeId, AccId, Name, ElmId, Height, Width, Style, DisplayOrder, InnerHtml, DisplayNotifCount, Active, Del) VALUES\n\t\t\t\t(NULL, (SELECT Id FROM NotificationElmType WHERE Type = '{$elmdata[\"type\"]}'), {$AccountId}, '{$elmdata[\"name\"]}', '{$elmdata[\"id\"]}', '{$elmdata[\"h\"]}',\n\t\t\t\t'{$elmdata[\"w\"]}', NULL, '{$elmdata[\"display\"]}', NULL, '{$elmdata[\"count\"]}', 1, 0)\";\n\t\tif(!$DB->Query($sql)) {\n\t\t\tif(ADMIN_DEBUG_MODE === true) {\n\t\t\t\techo \"Elm Insert Failure: {$DB->GetLastErrorMsg()}\\n\";\n\t\t\t}\n\t\t\t$insert_failure = true;\n\t\t} else {\n\t\t\t$ids[] = $DB->GetLastInsertedId();\n\t\t}\n\n\t\tif($elmdata[\"attribs\"] === true) {\n\t\t\tif(!add_elm_attributes($DB->GetLastInsertedId())) {\n\t\t\t\techo \"****Failed to add attribs for elm id: {$DB->GetLastInsertedId()}\\n\";\n\t\t\t}\n\t\t}\n\t}\n\n\tif($insert_failure) {\n\t\t$tmp = var_export($ids, true);\n\t\techo \"*****************\\nExperienced Insert Failure!. Data:\\n{$tmp}\\n******************\\n\";\n\t}\n\n\treturn $ids;\n}", "protected function get_bulk_actions()\n {\n }", "public function generateList() {}", "public function generateList() {}", "public function generateList() {}", "protected function get_bulk_actions()\n {\n }", "public function getModulesList();", "public function getList()\n {\n return array('entities' => $this->entities);\n }", "public function get_entities();", "function model_entity_menu_setup($hook, $type, $return, $params) {\n\tif (elgg_in_context('widgets')) {\n\t\treturn $return;\n\t}\n\n\t$entity = $params['entity'];\n\t$handler = elgg_extract('handler', $params, false);\n\tif ($handler != 'model') {\n\t\treturn $return;\n\t}\n\n\tif ($entity->status != 'published') {\n\t\t// draft status replaces access\n\t\tforeach ($return as $index => $item) {\n\t\t\tif ($item->getName() == 'access') {\n\t\t\t\tunset($return[$index]);\n\t\t\t}\n\t\t}\n\n\t\t$status_text = elgg_echo(\"status:{$entity->status}\");\n\t\t$options = array(\n\t\t\t'name' => 'published_status',\n\t\t\t'text' => \"<span>$status_text</span>\",\n\t\t\t'href' => false,\n\t\t\t'priority' => 150,\n\t\t);\n\t\t$return[] = ElggMenuItem::factory($options);\n\t}\n\n\treturn $return;\n}", "public function generate()\n {\n $this->createUsersEntity();\n }", "public function getEntityTypes() {\n return $this->entity_types;\n }", "function CreateDefaultListEntity()\n {\n\t\t$result = $this->sendRequest(\"CreateDefaultListEntity\", array());\n\t\treturn $this->getResultFromResponse($result);\n }", "abstract protected function getEntityClassNames();", "public function createModuleInstalls() {\n $strReturn = \"\";\n $strInstallLog = \"\";\n\n $objManager = new class_module_packagemanager_manager();\n\n //module-installs to loop?\n if(isset($_POST[\"moduleInstallBox\"]) && is_array($_POST[\"moduleInstallBox\"])) {\n $arrModulesToInstall = $_POST[\"moduleInstallBox\"];\n foreach($arrModulesToInstall as $strOneModule => $strValue) {\n\n //search the matching modules\n foreach($this->arrMetadata as $objOneMetadata) {\n if($strOneModule == \"installer_\".$objOneMetadata->getStrTitle()) {\n $objHandler = $objManager->getPackageManagerForPath($objOneMetadata->getStrPath());\n $strInstallLog .= $objHandler->installOrUpdate();\n }\n }\n\n }\n\n }\n\n class_objectfactory::getInstance()->flushCache();\n class_carrier::getInstance()->getObjDB()->flushQueryCache();\n class_module_system_module::flushCache();\n $this->loadInstaller();\n\n\n $this->strLogfile = $strInstallLog;\n $strReturn .= $this->getLang(\"installer_modules_found\");\n\n $strRows = \"\";\n $strTemplateID = $this->objTemplates->readTemplate(\"/core/module_installer/installer.tpl\", \"installer_modules_row\", true);\n $strTemplateIDInstallable = $this->objTemplates->readTemplate(\"/core/module_installer/installer.tpl\", \"installer_modules_row_installable\", true);\n\n //Loading each installer\n\n foreach($this->arrMetadata as $objOneMetadata) {\n\n //skip samplecontent\n if($objOneMetadata->getStrTitle() == \"samplecontent\")\n continue;\n\n $objHandler = $objManager->getPackageManagerForPath($objOneMetadata->getStrPath());\n\n $arrTemplate = array();\n $arrTemplate[\"module_name\"] = $objHandler->getObjMetadata()->getStrTitle();\n $arrTemplate[\"module_nameShort\"] = $objHandler->getObjMetadata()->getStrTitle();\n $arrTemplate[\"module_version\"] = $objHandler->getObjMetadata()->getStrVersion();\n\n //generate the hint\n $arrTemplate[\"module_hint\"] = \"\";\n\n if($objHandler->getVersionInstalled() !== null) {\n $arrTemplate[\"module_hint\"] .= $this->getLang(\"installer_versioninstalled\", \"system\").$objHandler->getVersionInstalled().\"<br />\";\n }\n\n //check missing modules\n $arrModules = $objHandler->getObjMetadata()->getArrRequiredModules();\n foreach($arrModules as $strOneModule => $strVersion) {\n if(trim($strOneModule) != \"\" && class_module_system_module::getModuleByName(trim($strOneModule)) === null) {\n\n //check if a corresponding module is available\n $objPackagemanager = new class_module_packagemanager_manager();\n $objPackage = $objPackagemanager->getPackage($strOneModule);\n\n if($objPackage === null || $objPackage->getBitProvidesInstaller() || version_compare($strVersion, $objPackage->getStrVersion(), \">\")) {\n $arrTemplate[\"module_hint\"] .= $this->getLang(\"installer_systemversion_needed\", \"system\").$strOneModule.\" >= \".$strVersion.\"<br />\";\n }\n\n }\n\n else if(version_compare($strVersion, class_module_system_module::getModuleByName(trim($strOneModule))->getStrVersion(), \">\")) {\n $arrTemplate[\"module_hint\"] .= $this->getLang(\"installer_systemversion_needed\", \"system\").$strOneModule.\" >= \".$strVersion.\"<br />\";\n }\n }\n\n\n\n\n if($objHandler->isInstallable()) {\n $strRows .= $this->objTemplates->fillTemplate($arrTemplate, $strTemplateIDInstallable);\n }\n else {\n $strRows .= $this->objTemplates->fillTemplate($arrTemplate, $strTemplateID);\n }\n\n }\n\n //wrap in form\n $strTemplateID = $this->objTemplates->readTemplate(\"/core/module_installer/installer.tpl\", \"installer_modules_form\", true);\n $strReturn .= $this->objTemplates->fillTemplate(array(\"module_rows\" => $strRows), $strTemplateID);\n\n $this->strOutput .= $strReturn;\n $this->strBackwardLink = $this->getBackwardLink(_webpath_.\"/installer.php?step=modeSelect\");\n $this->strForwardLink = $this->getForwardLink(_webpath_.\"/installer.php?step=samplecontent\");\n }", "public function run()\n {\n $list = \n \t[\n \t\t[\n\t 'name' => 'admin-users',\n\t 'display_name' => 'Administrar Usuarios',\n\t 'description' => 'Puede crear, listar, ver, editar y eliminar usuarios'\n \t],\n \t[\n\t 'name' => 'admin-enterprise',\n\t 'display_name' => 'Administrar Empresa',\n\t 'description' => 'Puede ver y editar la información de la empresa'\n \t],\n \t[\n\t 'name' => 'admin-stores',\n\t 'display_name' => 'Administrar Almacenes',\n\t 'description' => 'Puede crear, listar, ver, editar y eliminar Almacenes'\n \t],\n \t[\n\t 'name' => 'admin-providers',\n\t 'display_name' => 'Administrar Proveedores',\n\t 'description' => 'Puede crear, listar, ver, editar y eliminar Almacenes'\n \t],\n \t[\n\t 'name' => 'admin-clients',\n\t 'display_name' => 'Administrar Clientes',\n\t 'description' => 'Puede manipular el modulo de clientes'\n \t],\n \t[\n\t 'name' => 'admin-products',\n\t 'display_name' => 'Administrar Productos',\n\t 'description' => 'Puede manipular el modulo de productos'\n \t],\n \t[\n\t 'name' => 'admin-inventory',\n\t 'display_name' => 'Administrar Inventario',\n\t 'description' => 'Puede manipular el modulo de inventario'\n \t],\n \t[\n\t 'name' => 'admin-sales',\n\t 'display_name' => 'Administrar Ventas',\n\t 'description' => 'Puede manipular el modulo de ventas'\n \t],\n \t[\n\t 'name' => 'admin-deliveries',\n\t 'display_name' => 'Administrar Despachos',\n\t 'description' => 'Puede manipular el modulo de despachos'\n \t],\n \t[\n\t 'name' => 'admin-credits',\n\t 'display_name' => 'Administrar Creditos',\n\t 'description' => 'Puede manipular el modulo de creditos'\n \t],\n \t[\n\t 'name' => 'admin-roles',\n\t 'display_name' => 'Administrar Permisologia',\n\t 'description' => 'Puede manipular el modulo de permisologia'\n \t],\n \t[\n\t 'name' => 'administrator',\n\t 'display_name' => 'Administrador',\n\t 'description' => 'Puede administrar todo el sistema'\n \t],\n \t];\n\n \tforeach ($list as $key => $value) {\n \t\tDB::table('permissions')->insert($value);\t\n \t}\n }", "public function run()\n {\n $system_modules = $system_modules = array(\n array('id' => '1','name' => 'Escritorio','url' => '/','icon' => 'dashboard','view' => 'admin.home','parent' => '0','order' => '1','created_at' => '2018-12-13 02:13:23','updated_at' => '2018-12-13 02:13:23'),\n array('id' => '2','name' => 'Citas','url' => '/citas','icon' => 'calendar','view' => 'admin.appointment','parent' => '0','order' => '2','created_at' => '2018-12-13 02:13:23','updated_at' => '2018-12-13 02:13:23'),\n array('id' => '3','name' => 'Prospectos','url' => '/prospectos','icon' => 'group','view' => 'admin.prospect','parent' => '0','order' => '3','created_at' => '2018-12-13 02:13:23','updated_at' => '2018-12-13 02:13:23'),\n array('id' => '4','name' => 'Pacientes','url' => '/pacientes','icon' => 'user','view' => 'admin.patient','parent' => '0','order' => '4','created_at' => '2018-12-13 02:13:23','updated_at' => '2018-12-13 02:13:23'),\n array('id' => '5','name' => 'Inventario','url' => '/inventario','icon' => 'barcode','view' => 'admin.inventory','parent' => '0','order' => '5','created_at' => '2018-12-13 02:13:23','updated_at' => '2018-12-13 02:13:23'),\n array('id' => '6','name' => 'Gastos','url' => '/gastos','icon' => '','view' => 'admin.inventory.expenses','parent' => '5','order' => '1','created_at' => '2018-12-13 02:13:23','updated_at' => '2018-12-13 02:13:23'),\n array('id' => '7','name' => 'Ingresos','url' => '/ingresos','icon' => '','view' => 'admin.inventory.income','parent' => '5','order' => '2','created_at' => '2018-12-13 02:13:23','updated_at' => '2018-12-13 02:13:23'),\n array('id' => '8','name' => 'Categoría de gastos','url' => '/categoria_de_gastos','icon' => '','view' => 'admin.inventory.category_expenses','parent' => '5','order' => '3','created_at' => '2018-12-13 02:13:23','updated_at' => '2018-12-13 02:13:23'),\n array('id' => '9','name' => 'Categoría de ingresos','url' => '/categoria_de_ingresos','icon' => '','view' => 'admin.inventory.category_incomes','parent' => '5','order' => '4','created_at' => '2018-12-13 02:13:23','updated_at' => '2018-12-13 02:13:23'),\n array('id' => '10','name' => 'Contabilidad','url' => '/contabilidad','icon' => 'money','view' => 'admin.accounting','parent' => '0','order' => '6','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '11','name' => 'Impuestos','url' => '/impuestos','icon' => '','view' => 'admin.accounting.tax','parent' => '10','order' => '1','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '12','name' => 'Cuentas','url' => '/cuentas','icon' => '','view' => 'admin.accounting.account','parent' => '10','order' => '2','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '13','name' => 'Ejercicios','url' => '/ejercicios','icon' => '','view' => 'admin.accounting.exercise','parent' => '10','order' => '3','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '14','name' => 'Asientos','url' => '/asientos','icon' => '','view' => 'admin.accounting.entry','parent' => '10','order' => '4','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '15','name' => 'Grupos y Epígrafes','url' => '/grupos','icon' => '','view' => 'admin.accounting.groups','parent' => '10','order' => '5','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '16','name' => 'Formas de Pago','url' => '/formas_de_pago','icon' => '','view' => 'admin.accounting.payment','parent' => '10','order' => '6','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '17','name' => 'Series','url' => '/series','icon' => '','view' => 'admin.accounting.series','parent' => '10','order' => '7','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '18','name' => 'Remesas','url' => '/remesas','icon' => '','view' => 'admin.accounting.remittance','parent' => '10','order' => '8','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '19','name' => 'Compras','url' => '/compras','icon' => 'credit-card','view' => 'admin.purchase','parent' => '0','order' => '7','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '20','name' => 'Pedidos','url' => '/ordenes','icon' => '','view' => 'admin.purchase.orders','parent' => '19','order' => '1','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '21','name' => 'Proveedores','url' => '/proveedores','icon' => '','view' => 'admin.purchase.providers','parent' => '19','order' => '2','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '22','name' => 'Facturas','url' => '/facturas','icon' => '','view' => 'admin.purchase.invoices','parent' => '19','order' => '3','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '23','name' => 'Recibos','url' => '/recibos','icon' => '','view' => 'admin.purchase.receipts','parent' => '19','order' => '4','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '24','name' => 'Configuración','url' => '/configuracion','icon' => 'cog','view' => 'admin.configuration','parent' => '0','order' => '8','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '25','name' => 'Perfiles de Usuarios','url' => '/perfiles_de_usuarios','icon' => '','view' => 'admin.configuration.user_profiles','parent' => '24','order' => '1','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '26','name' => 'Usuarios','url' => '/usuarios','icon' => '','view' => 'admin.configuration.users','parent' => '24','order' => '2','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '27','name' => 'Empresa','url' => '/empresa','icon' => '','view' => 'admin.configuration.company','parent' => '24','order' => '3','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '28','name' => 'Servicios','url' => '/servicios','icon' => '','view' => 'admin.configuration.services','parent' => '24','order' => '4','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '29','name' => 'Especialidades','url' => '/especialidades','icon' => '','view' => 'admin.configuration.specialties','parent' => '24','order' => '5','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '30','name' => 'Doctores','url' => '/doctores','icon' => '','view' => 'admin.configuration.doctors','parent' => '24','order' => '6','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '31','name' => 'Reportes','url' => '/reportes','icon' => 'bar-chart','view' => 'admin.report','parent' => '0','order' => '9','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '32','name' => 'Clientes','url' => '/clientes','icon' => '','view' => 'admin.report.clients','parent' => '31','order' => '1','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '33','name' => 'Prospectos','url' => '/prospectos','icon' => '','view' => 'admin.report.prospects','parent' => '31','order' => '2','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '34','name' => 'Gastos','url' => ' /gastos','icon' => '','view' => 'admin.report.expenses','parent' => '31','order' => '3','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '35','name' => 'Ingresos','url' => '/ingresos','icon' => '','view' => 'admin.report.incomes','parent' => '31','order' => '4','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '36','name' => 'Facturas','url' => '/facturas','icon' => '','view' => 'admin.report.invoices','parent' => '31','order' => '5','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24'),\n array('id' => '37','name' => 'Pedidos','url' => '/pedidos','icon' => '','view' => 'admin.report.orders','parent' => '31','order' => '6','created_at' => '2018-12-13 02:13:24','updated_at' => '2018-12-13 02:13:24')\n);\n\n\n\t\tforeach ($system_modules as $item) {\n\t\t\tSystemModule::create($item);\n\t\t}\n }", "public function getEntityManagersWithDiagramEntities()\n {\n // Get all entity managers.\n $unsanitizedEntityManagerNames = $this->getAllEntityManagerNames();\n // Identify which entity managers have data source entities.\n $unsanitizedEntityManagerNamesWithExistingEntities = array();\n foreach ($unsanitizedEntityManagerNames as $unsanitizedEntityManagerName) {\n // Get the directory where the entity manager would have its data source entities.\n $directory = $this->getDiagramEntityDirectory($unsanitizedEntityManagerName);\n\n // Count how many files are in the directory.\n try {\n $finder = new Finder();\n $entityCount = $finder->files()->in($directory)->count();\n if ($entityCount > 0) {\n // This entity manager has data source entities.\n $unsanitizedEntityManagerNamesWithExistingEntities[] = $unsanitizedEntityManagerName;\n }\n }\n catch (\\Exception $e) {\n // The directory does not exist or it is unreadable.\n // Silently ignore this as it is normal in most cases.\n }\n }\n\n return $unsanitizedEntityManagerNamesWithExistingEntities;\n }", "function enabledModules() {\n\n\t\t// get user course\n\t\t$myCourse = Course::whereHas('users', function($query) {\n\t\t\t$query->where('course_role', '1')->where('user_id',$this->id);\n\t\t})->first();\n\n\t\t// gather module list and init array\n\t\t$allModules = Module::all();\n\t\t$modulesList = array();\n\n\t\t// return array of 1s if user is not registered to a course\n\t\tif ($myCourse == null) {\n\t\t\t$modulesList = array_fill(0,count($allModules)+1,1);\n\t\t\treturn $modulesList;\n\t\t}\n\n\t\t// gather list of enabled modules for user course\n\t\t$enabledModules = Module::select(array('id'))->whereHas('courses', function($q) use ($myCourse) {\n\t\t\t$q->where('course_id',$myCourse->id)->where('enabled',1);\n\t\t})->get();\n\n\t\t// generate a full list of modules and \n\t\t$modulesList = array_fill(0,count($allModules),0);\n\t\tforeach ($allModules as $mod) {\n\t\t\t// check if current mod is present in modules\n\t\t\tforeach($enabledModules as $eMod) {\n\t\t\t\tif ($eMod->id == $mod->id) {\n\t\t\t\t\t// add to modules list as 1\n\t\t\t\t\t$modulesList[$mod->id] = 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn $modulesList;\n\n\t}", "public function newEntities(array $data, array $options = []): array;", "protected function execute($arguments = array(), $options = array())\n {\n $databaseManager = new sfDatabaseManager($this->configuration);\n $connection = $databaseManager->getDatabase($options['connection'] ? $options['connection'] : null)->getConnection();\n\n // add your code here\n\n $dir_for_deleted_accounts = $arguments['dirdeleted'] ? $arguments['dirdeleted'] : '/home/vmail_deleted';\n $dir = $arguments['dir'] ? $arguments['dir'] : '/home/vmail';\n\n $db_email_addresses = array();\n $domains_on_system = array();\n $system_email_addresses = array();\n \n foreach (UserPeer::getEmailAccounts() as $user)\n {\n $db_email_addresses[] = $user->getEmailAddress(); \n }\n \n if ($handle_domain = opendir($dir)) {\n while (false !== ($domain_dir = readdir($handle_domain))) {\n if ($domain_dir != \".\" && $domain_dir != \"..\") \n {\n if(is_dir($dir .\"/\". $domain_dir)){\n $domains_on_system[$domain_dir] = 1;\n if ($handle_local_part = opendir($dir .\"/\". $domain_dir)) {\n while (false !== ($local_part_dir = readdir($handle_local_part))) {\n if ($local_part_dir != \".\" && $local_part_dir != \"..\") {\n //is $local_part_dir is directory\n if(is_dir($dir . \"/\" . $domain_dir. \"/\".$local_part_dir)){ \n // put email accounts on array\n $system_email_addresses[] = \"$local_part_dir@$domain_dir\";\n //echo \"$subfile@$file\\n\";\n }\n else\n {\n echo $dir .\"/\".$domain_dir. \"/\".$local_part_dir;\n die(\"Not a directory\");\n }\n }\n }\n }\n \t }\n \t else\n \t {\n \t die($dir . $domain_dir .\" not directory\");\n \t } \n }\n }\n closedir($handle_domain);\n }else\n {\n die($dir . \"does not exist\");\n }\n \n if(sizeof($domains_on_system) == 0)\n {\n die(\"Please create the domain names under $dir\\n\");\n }\n \n // Create domain name directory where we store deleted accounts\n foreach(array_keys($domains_on_system) as $domain_on_system)\n {\n if(!is_dir($dir_for_deleted_accounts. \"/\".$domain_on_system))\n {\n exec(\"mkdir \".$dir_for_deleted_accounts. \"/\".$domain_on_system);\n }\n }\n \n // Compute accounts to be deleted.\n \n if(sizeof($system_email_addresses) == 0)\n {\n $deleted_accounts = array();\n }else\n {\n $deleted_accounts = array_diff($system_email_addresses, $db_email_addresses);\n }\n \n foreach($deleted_accounts as $deleted_account)\n {\n // Get the local part and domain name from the email address\n $a = explode(\"@\",$deleted_account); \n $local_part = $a[0];\n $domain = $a[1];\n $path = $domain . \"/\" .$local_part;\n exec(\"mv ${dir}/$path ${dir_for_deleted_accounts}/$path\");\n echo(\"mv ${dir}/$path ${dir_for_deleted_accounts}/$path\\n\");\n }\n \n //Accounts to have home directory created.\n\n $create_accounts = array_diff($db_email_addresses, $system_email_addresses);\n\n foreach($create_accounts as $create_account)\n {\n // Get the local part and domain name from the email address\n $a = explode(\"@\",$create_account); \n $local_part = $a[0];\n $domain = $a[1];\n $path = $domain . \"/\" .$local_part;\n exec(\"mkdir -p ${dir}/$path\");\n $output = shell_exec(\"symfony uas:sendLoginNames messages/welcomeMessage ${local_part}@${domain}\\n\");\n //echo(\"symfony uas:sendLoginNames messages/LoginNames ${local_part}@${domain}\\n\");\n echo \"<pre>$output</pre>\";\n chown(\"${dir}/$path\",\"vmail\");\n chgrp(\"${dir}/$path\",\"vmail\");\n echo(\"mkdir -p ${dir}/$path\\n\");\n } \n\n\n }", "public static function generateDatabase()\n\t{\n\t\t$entities\t=\tself::getEntities();\n\t\t$query\t\t=\tself::$current_db->query('SHOW TABLES');\n\t\t$tables\t\t=\tarray();\n\n\t\twhile($table = $query->fetch(\\PDO::FETCH_NUM))\n\t\t\t$tables[]\t=\tstrtolower($table[0]);\n\n\t\tforeach($entities as $entity)\n\t\t{\n\t\t\tif( ! in_array(strtolower($entity::getTableName()), $tables))\n\t\t\t\t$entity::createTable();\n\t\t\telse\n\t\t\t\t$entity::updateTable();\n\t\t}\n\t}", "public function generateForNewEntity(ManageEntity $entity, string $workflowState): array\n {\n return [\n 'data' => $this->generateDataForNewEntity($entity, $workflowState),\n 'type' => 'saml20_sp',\n ];\n }", "protected function generateModuleMenu() {}", "public function findAllEntities();", "public function generateList()\n {\n // Set page record in header\n $this->pageRecord = BackendUtility::getRecordWSOL('pages', $this->id);\n $hideTablesArray = GeneralUtility::trimExplode(',', $this->hideTables);\n\n $backendUser = $this->getBackendUser();\n\n // pre-process tables and add sorting instructions\n $tableNames = array_flip(array_keys($GLOBALS['TCA']));\n foreach ($tableNames as $tableName => &$config) {\n $hideTable = false;\n\n // Checking if the table should be rendered:\n // Checks that we see only permitted/requested tables:\n if ($this->table && $tableName !== $this->table\n || $this->tableList && !GeneralUtility::inList($this->tableList, $tableName)\n || !$backendUser->check('tables_select', $tableName)\n ) {\n $hideTable = true;\n }\n\n if (!$hideTable) {\n // Don't show table if hidden by TCA ctrl section\n // Don't show table if hidden by pageTSconfig mod.web_list.hideTables\n $hideTable = $hideTable\n || !empty($GLOBALS['TCA'][$tableName]['ctrl']['hideTable'])\n || in_array($tableName, $hideTablesArray, true)\n || in_array('*', $hideTablesArray, true);\n // Override previous selection if table is enabled or hidden by TSconfig TCA override mod.web_list.table\n if (isset($this->tableTSconfigOverTCA[$tableName . '.']['hideTable'])) {\n $hideTable = (bool)$this->tableTSconfigOverTCA[$tableName . '.']['hideTable'];\n }\n }\n if ($hideTable) {\n unset($tableNames[$tableName]);\n } else {\n if (isset($this->tableDisplayOrder[$tableName])) {\n // Copy display order information\n $tableNames[$tableName] = $this->tableDisplayOrder[$tableName];\n } else {\n $tableNames[$tableName] = [];\n }\n }\n }\n unset($config);\n\n $orderedTableNames = GeneralUtility::makeInstance(DependencyOrderingService::class)\n ->orderByDependencies($tableNames);\n\n foreach ($orderedTableNames as $tableName => $_) {\n // check if we are in single- or multi-table mode\n if ($this->table) {\n $this->iLimit = isset($GLOBALS['TCA'][$tableName]['interface']['maxSingleDBListItems'])\n ? (int)$GLOBALS['TCA'][$tableName]['interface']['maxSingleDBListItems']\n : $this->itemsLimitSingleTable;\n } else {\n // if there are no records in table continue current foreach\n $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)\n ->getQueryBuilderForTable($tableName);\n $queryBuilder->getRestrictions()\n ->removeAll()\n ->add(GeneralUtility::makeInstance(DeletedRestriction::class))\n ->add(GeneralUtility::makeInstance(BackendWorkspaceRestriction::class));\n $queryBuilder = $this->addPageIdConstraint($tableName, $queryBuilder);\n $firstRow = $queryBuilder->select('uid')\n ->from($tableName)\n ->execute()\n ->fetch();\n if (!is_array($firstRow)) {\n continue;\n }\n $this->iLimit = isset($GLOBALS['TCA'][$tableName]['interface']['maxDBListItems'])\n ? (int)$GLOBALS['TCA'][$tableName]['interface']['maxDBListItems']\n : $this->itemsLimitPerTable;\n }\n if ($this->showLimit) {\n $this->iLimit = $this->showLimit;\n }\n // Setting fields to select:\n if ($this->allFields) {\n $fields = $this->makeFieldList($tableName);\n $fields[] = 'tstamp';\n $fields[] = 'crdate';\n $fields[] = '_PATH_';\n $fields[] = '_CONTROL_';\n if (is_array($this->setFields[$tableName])) {\n $fields = array_intersect($fields, $this->setFields[$tableName]);\n } else {\n $fields = [];\n }\n } else {\n $fields = [];\n }\n\n // Finally, render the list:\n $this->HTMLcode .= $this->getTable($tableName, $this->id, implode(',', $fields));\n }\n }", "function showkid_civicrm_managed(&$entities) {\n return _showkid_civix_civicrm_managed($entities);\n}", "public function install_module_entries_table()\n {\n $this->EE->load->dbforge();\n\n $this->EE->dbforge->add_field(array(\n 'log_entry_id' => array(\n 'auto_increment' => TRUE,\n 'constraint' => 10,\n 'type' => 'INT',\n 'unsigned' => TRUE\n ),\n 'site_id' => array(\n 'constraint' => 5,\n 'type' => 'INT',\n 'unsigned' => TRUE\n ),\n 'addon_name' => array(\n 'constraint' => 50,\n 'type' => 'VARCHAR'\n ),\n 'admin_emails' => array(\n 'type' => 'MEDIUMTEXT'\n ),\n 'date' => array(\n 'constraint' => 10,\n 'type' => 'INT',\n 'unsigned' => TRUE\n ),\n 'notify_admin' => array(\n 'constraint' => 1,\n 'default' => 'n',\n 'type' => 'CHAR'\n ),\n 'type' => array(\n 'constraint' => 10,\n 'type' => 'VARCHAR'\n ),\n 'message' => array(\n 'type' => 'TEXT'\n ),\n 'extended_data' => array(\n 'type' => 'TEXT'\n )\n ));\n\n $this->EE->dbforge->add_key('log_entry_id', TRUE);\n $this->EE->dbforge->add_key('addon_name');\n $this->EE->dbforge->create_table('omnilog_entries', TRUE);\n }", "abstract public function sellToListManagement();", "public function GenerateEntity() {\n return $this->entity->Generate();\n }", "public function getModules(){\n $qb = $this->createQueryBuilder();\n $qb->module('system')->query('modulelist');\n return $this->execute($qb);\n }", "function listaAll() {\n require ROOT . \"config/bootstrap.php\";\n return $em->getRepository('models\\Equipamentos')->findby(array(), array(\"id\" => \"DESC\"));\n $em->flush();\n }", "protected function getTargetEntities()\n {\n if (null === $this->targetEntities) {\n $targetEntityClasses = $this->identifyProvider->getEventTargetEntities();\n $this->targetEntityConfigs = [];\n\n $configs = $this->configManager->getProvider('extend')->getConfigs();\n foreach ($configs as $config) {\n if ($config->is('upgradeable')\n && in_array($config->getId()->getClassName(), $targetEntityClasses)\n ) {\n $this->targetEntities[] = $config->getId()->getClassName();\n }\n }\n }\n\n return $this->targetEntities;\n }", "public function execute()\n {\n $insertedEntities = array();\n foreach ($this->quantities as $class => $number) {\n for ($i=0; $i < $number; $i++) {\n $insertedEntities[$class][]= $this->entities[$class]->execute($this->mandango, $insertedEntities);\n }\n }\n $this->mandango->flush();\n\n return $insertedEntities;\n }", "protected function getDisableActions() {}", "public function getAllInstalledAvailableStable(){\r\n\t\t$extDir = Constants::EXT_DIR.DS;\r\n\r\n\t\tif( !isset($this->_config['modules'])){\r\n\t\t\treturn [];\r\n\t\t}\r\n\r\n\t\t$vendors = $this->_config['modules'];\r\n\r\n\t\t$allTables = []; \r\n\t\tforeach($vendors as $keyVendor => $modules){\r\n\t\t\tforeach($modules as $module){\r\n\t\t\t\t\r\n\t\t\t\t$modDir = $extDir . $keyVendor . DS . $module;\r\n\t\t\t\t$tableDir = $modDir.Constants::MODULE_DB_TABLES_DIR;\r\n\r\n\t\t\t\t$extName = $keyVendor . '_' . $module;\r\n\t\t\t\t$allTables[$extName] = [];\r\n\r\n\t\t\t\tif(is_dir($tableDir)){\r\n\t\t\t\t\t$files = scandir($tableDir);\r\n\t\t\t\t\tforeach ($files as $key => $table) {\r\n\t\t\t\t\t\tif($table == '.' || $table == '..' || $this->checkIfFileIsData($table)){\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t$targetFile = $tableDir . DS . $table;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t$tableContent = file_get_contents($targetFile);\r\n\t\t\t\t\t\t\t$tableContent = json_decode($tableContent, true);\r\n\r\n\t\t\t\t\t\t\tif(json_last_error() == JSON_ERROR_NONE){\r\n\t\t\t\t\t\t\t\t$tableName = $this->getTableNameFromFileName($targetFile);\r\n\t\t\t\t\t\t\t\t$dbTableName = $this->_connection->getTablename($tableName);\r\n\r\n\t\t\t\t\t\t\t\t$isExist = $this->fetchTableName($dbTableName);\r\n\t\t\t\t\t\t\t\t$tableContent['is_installed'] = false;\r\n\t\t\t\t\t\t\t\tif($isExist){\r\n\t\t\t\t\t\t\t\t\t$tableContent['is_installed'] = true;\r\n\t\t\t\t\t\t\t\t}\r\n \r\n\t\t\t\t\t\t\t\t$tableContent['prefixed_tablename'] = $dbTableName;\r\n\t\t\t\t\t\t\t\t$allTables[$extName][$tableName] = $tableContent;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcatch (\\Exception $e) {\r\n\t\t\t\t\t\t\t/** do nothing */\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $allTables;\r\n\t}", "public function actionGet_modules_sheet_data(){\n //get existing modules data\n $modules_data = ArrayHelper::map(DvModuleModel::find()->all(), 'module_name', 'module_name');\n //get sheet's modules data\n $fetch_sheet_data = Yii::$app->runAction('dv-cron/get_batch_data');\n $new_modules_array = array();\n $course_array = ['SMM','SEO','SEM','IM','WA','DAP','DAR','CMAM','EM'];\n //DAP','DAR : da && rest of --> //dm\n $domain_array = ['DAP','DAR']; // da\n $module_array = array();\n \n foreach ($fetch_sheet_data as $sheet_data) {\n if(!in_array(trim($sheet_data['Course']),$modules_data)){\n \n if(trim($sheet_data['Course']) !='' && !in_array(trim($sheet_data['Course']), $module_array)){\n //get new modules name\n\n $module_array[] = trim($sheet_data['Course']);\n\n if(substr(trim($sheet_data['Type']),1) == 'w' || substr(trim($sheet_data['Type']),2) == 'w'){\n $weeks_data = '';\n $weeks_data = explode('w',$sheet_data['Type'])[0];\n }\n $domain='';\n if($sheet_data['Course'] == \"DAP\" || $sheet_data['Course'] == 'DAR'){\n $domain = \"da\";\n }else{\n $domain = \"dm\"; \n } \n if(in_array($sheet_data['Course'], $course_array)){\n $new_modules_array[] = [trim($sheet_data['Course']),\"Instructor led\",\"Core\",$weeks_data,$domain];\n }else{\n $new_modules_array[] = [trim($sheet_data['Course']),\"Self\",\"Special\",$weeks_data,$domain];\n }\n }\n } \n }//End of inner loop\n \n /* echo \"<pre>\";\n print_r($new_modules_array);\n die;*/\n //TRUNCATE TABLE assist_module_sheet_data;\n //INSERT INTO assist_module_sheet_data SELECT * FROM assist_module;\n \n /*\n foreach ($new_modules_array as $new_value) {\n Yii::$app->db->createCommand()->insert('assist_module_sheet_data',['module_name'=>$new_value[0], 'module_type'=>$new_value[1],'number_of_weeks'=>$new_value[3],'category_type'=>$new_value[2],'mcourse'=>$new_value[4]])->execute();\n \n }\n */\n echo \"All Modules data has been inserted\";\n }", "private function loadGenerated(ObjectManager $em)\n {\n for ($i = 100; $i <= 130; $i++) {\n $fixture = new AlumniExperiences();\n\n $ref_aid = $this->getReference('alumni-anon-'.$i);\n\n $fixture\n ->setAlumni($em->merge($ref_aid))\n ->setOrganization('PT. '.$i)\n ->setDescription('Pekerjaan '.$i);\n\n $em->persist($fixture);\n }\n\n $em->flush();\n }", "function deactivate_custom_modules()\n{\n $db = Db::getInstance();\n $modulesDirOnDisk = [];\n $modules = scandir(_PS_MODULE_DIR_, SCANDIR_SORT_NONE);\n foreach ($modules as $name) {\n if (!in_array($name, ['.', '..', 'index.php', '.htaccess']) && @is_dir(_PS_MODULE_DIR_ . $name . DIRECTORY_SEPARATOR) && @file_exists(_PS_MODULE_DIR_ . $name . DIRECTORY_SEPARATOR . $name . '.php')) {\n if (!preg_match('/^[a-zA-Z0-9_-]+$/', $name)) {\n exit(Tools::displayError() . ' (Module ' . $name . ')');\n }\n $modulesDirOnDisk[] = $name;\n }\n }\n\n $module_list_xml = _PS_ROOT_DIR_ . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'xml' . DIRECTORY_SEPARATOR . 'modules_list.xml';\n\n if (!file_exists($module_list_xml)) {\n $module_list_xml = _PS_ROOT_DIR_ . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'modules_list.xml';\n if (!file_exists($module_list_xml)) {\n return false;\n }\n }\n\n $nativeModules = @simplexml_load_file($module_list_xml);\n if ($nativeModules) {\n $nativeModules = $nativeModules->modules;\n }\n $arrNativeModules = [];\n if (!empty($nativeModules)) {\n foreach ($nativeModules as $nativeModulesType) {\n if (in_array($nativeModulesType['type'], ['native', 'partner'])) {\n $arrNativeModules[] = '\"\"';\n foreach ($nativeModulesType->module as $module) {\n $arrNativeModules[] = '\"' . pSQL($module['name']) . '\"';\n }\n }\n }\n }\n $arrNonNative = [];\n if ($arrNativeModules) {\n $arrNonNative = $db->executeS('\n \t\tSELECT *\n \t\tFROM `' . _DB_PREFIX_ . 'module` m\n \t\tWHERE name NOT IN (' . implode(',', $arrNativeModules) . ') ');\n }\n\n $uninstallMe = ['undefined-modules'];\n if (is_array($arrNonNative)) {\n foreach ($arrNonNative as $k => $aModule) {\n $uninstallMe[(int) $aModule['id_module']] = $aModule['name'];\n }\n }\n\n if (!is_array($uninstallMe)) {\n $uninstallMe = [$uninstallMe];\n }\n\n foreach ($uninstallMe as $k => $v) {\n $uninstallMe[$k] = '\"' . pSQL($v) . '\"';\n }\n\n $return = Db::getInstance()->execute('\n\tUPDATE `' . _DB_PREFIX_ . 'module` SET `active` = 0 WHERE `name` IN (' . implode(',', $uninstallMe) . ')');\n\n if (count(Db::getInstance()->executeS('SHOW TABLES LIKE \\'' . _DB_PREFIX_ . 'module_shop\\'')) > 0) {\n foreach ($uninstallMe as $k => $uninstall) {\n $return &= Db::getInstance()->execute('DELETE FROM `' . _DB_PREFIX_ . 'module_shop` WHERE `id_module` = ' . (int) $k);\n }\n }\n\n return $return;\n}", "public function getAllGroupedByModuleName(bool $deleted = false): array\n {\n $groupedEntities = [];\n $allEntities = $this->getAll($deleted);\n\n foreach($allEntities as $entity){\n\n $moduleName = ( is_null($entity->getModule()) ? null : $entity->getModule()->getName()) ;\n if(\n !is_null($moduleName)\n && !$this->lockedResourceController->isAllowedToSeeResource(\"\", LockedResource::TYPE_ENTITY, $moduleName, false)\n ){\n continue;\n }\n\n $groupedEntities[$moduleName][] = $entity;\n }\n\n return $groupedEntities;\n }", "public function sync_all_model_nos() {\n\t\tglobal $sync_taxonomies;\n\t\t$sync_taxonomies = [];\n\t\tedgenet()->debug->notice( \"\\n\" );\n\t\tedgenet()->debug->notice( \"\\n\" );\n\t\tedgenet()->debug->notice( str_repeat( '*', 32 ) );\n\t\tedgenet()->debug->notice( __( 'Start SYNC_ALL_CUSTOM_FIELDS_ATTRIBUTES', 'edgenet' ) );\n\t\tedgenet()->debug->notice( str_repeat( '*', 32 ) );\n\n\t\t// Get array of all product IDs\n\t\t$args = [\n\t\t\t'post_type' => 'product',\n\t\t\t'post_status' => 'all',\n\t\t\t'posts_per_page' => - 1,\n\t\t\t'fields' => 'ids',\n\t\t];\n\n\t\t$product_ids = new \\WP_Query( $args );\n\n\t\tedgenet()->debug->notice( __( sprintf( 'Syncing %s products', $product_ids->post_count ), 'edgenet' ) );\n\n\t\tforeach ( $product_ids->posts as $product_id ) {\n\t\t\tedgenet()->debug->notice( __( sprintf( 'Starting sync for Product ID: %s', $product_id ), 'edgenet' ) );\n\t\t\t$this->sync_product_model_no( $product_id );\n\t\t\tedgenet()->debug->notice( __( sprintf( 'Stopping sync for Product ID: %s', $product_id ), 'edgenet' ) );\n\t\t}\n\n\t\tedgenet()->debug->notice( str_repeat( '*', 32 ) );\n\t\tedgenet()->debug->notice( __( 'End SYNC_ALL_CUSTOM_FIELDS_ATTRIBUTES', 'edgenet' ) );\n\t\tedgenet()->debug->notice( str_repeat( '*', 32 ) );\n\t\tedgenet()->debug->notice( \"\\n\" );\n\t\tedgenet()->debug->notice( \"\\n\" );\n\t}", "public function getEntityManagers()\n {\n // TODO: Implement getEntityManagers() method.\n }", "public function getActivitiesEntities() : array;", "public function getDependentEntities();", "public function install()\r\n {\r\n //----------------------------------------\r\n // EXP_MODULES\r\n //----------------------------------------\r\n $module = ee('Model')->make('Module');\r\n $module->module_name = ucfirst($this->module_name);\r\n $module->module_version = $this->version;\r\n $module->has_cp_backend = 'y';\r\n $module->has_publish_fields = 'n';\r\n $module->save();\r\n\r\n //----------------------------------------\r\n // EXP_TAGGER\r\n //----------------------------------------\r\n $tagger = array(\r\n 'tag_id' => array('type' => 'INT', 'unsigned' => true, 'auto_increment' => true),\r\n 'tag_name' => array('type' => 'VARCHAR', 'constraint' => 255),\r\n 'site_id' => array('type' => 'TINYINT', 'unsigned' => true, 'default' => 1),\r\n 'author_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 1),\r\n 'entry_date' => array('type' => 'INT', 'unsigned' => true, 'default' => 1),\r\n 'edit_date' => array('type' => 'INT', 'unsigned' => true, 'default' => 1),\r\n 'hits' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n 'total_entries' => array('type' => 'INT', 'unsigned' => true, 'default' => 1),\r\n );\r\n\r\n ee()->dbforge->add_field($tagger);\r\n ee()->dbforge->add_key('tag_id', true);\r\n ee()->dbforge->add_key('tag_name');\r\n ee()->dbforge->create_table('tagger', true);\r\n\r\n //----------------------------------------\r\n // EXP_TAGGER_LINKS\r\n //----------------------------------------\r\n $tagger = array(\r\n 'rel_id' => array('type' => 'INT', 'unsigned' => true, 'auto_increment' => true),\r\n 'site_id' => array('type' => 'TINYINT', 'unsigned' => true, 'default' => 1),\r\n 'entry_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n 'channel_id' => array('type' => 'SMALLINT', 'unsigned' => true, 'default' => 0),\r\n 'field_id' => array('type' => 'MEDIUMINT', 'unsigned' => true, 'default' => 0),\r\n// 'item_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n 'tag_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n 'author_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 1),\r\n 'type' => array('type' => 'SMALLINT', 'unsigned' => true, 'default' => 1),\r\n 'tag_order' => array('type' => 'SMALLINT', 'unsigned' => true, 'default' => 0),\r\n );\r\n\r\n ee()->dbforge->add_field($tagger);\r\n ee()->dbforge->add_key('rel_id', true);\r\n ee()->dbforge->add_key('tag_id');\r\n ee()->dbforge->add_key('entry_id');\r\n ee()->dbforge->create_table('tagger_links', true);\r\n\r\n //----------------------------------------\r\n // EXP_TAGGER_GROUPS\r\n //----------------------------------------\r\n $tagger = array(\r\n 'group_id' => array('type' => 'INT', 'unsigned' => true, 'auto_increment' => true),\r\n 'group_title' => array('type' => 'VARCHAR', 'constraint' => 255),\r\n 'group_name' => array('type' => 'VARCHAR', 'constraint' => 255),\r\n 'group_desc' => array('type' => 'VARCHAR', 'constraint' => 255),\r\n 'parent_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n 'site_id' => array('type' => 'TINYINT', 'unsigned' => true, 'default' => 1),\r\n '`order`' => array('type' => 'MEDIUMINT', 'unsigned' => true, 'default' => 1),\r\n );\r\n\r\n ee()->dbforge->add_field($tagger);\r\n ee()->dbforge->add_key('group_id', true);\r\n ee()->dbforge->create_table('tagger_groups', true);\r\n\r\n //----------------------------------------\r\n // EXP_TAGGER_GROUPS_ENTRIES\r\n //----------------------------------------\r\n $tagger = array(\r\n 'rel_id' => array('type' => 'INT', 'unsigned' => true, 'auto_increment' => true),\r\n 'tag_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n 'group_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n '`order`' => array('type' => 'INT', 'unsigned' => true, 'default' => 1),\r\n );\r\n\r\n ee()->dbforge->add_field($tagger);\r\n ee()->dbforge->add_key('rel_id', true);\r\n ee()->dbforge->add_key('group_id');\r\n ee()->dbforge->add_key('tag_id');\r\n ee()->dbforge->create_table('tagger_groups_entries', true);\r\n\r\n //----------------------------------------\r\n // EXP_ACTIONS\r\n //----------------------------------------\r\n $action = ee('Model')->make('Action');\r\n $action->class = ucfirst($this->module_name);\r\n $action->method = $this->module_name . '_router';\r\n $action->csrf_exempt = 0;\r\n $action->save();\r\n\r\n //----------------------------------------\r\n // EXP_MODULES\r\n // The settings column, Ellislab should have put this one in long ago.\r\n // No need for a seperate preferences table for each module.\r\n //----------------------------------------\r\n if (ee()->db->field_exists('settings', 'modules') == false) {\r\n ee()->dbforge->add_column('modules', array('settings' => array('type' => 'TEXT') ) );\r\n }\r\n\r\n return true;\r\n }", "protected function listEntityClasses()\n {\n $classNames = [];\n $classNames[] = 'MU\\FilesModule\\Entity\\CollectionEntity';\n $classNames[] = 'MU\\FilesModule\\Entity\\CollectionCategoryEntity';\n $classNames[] = 'MU\\FilesModule\\Entity\\FileEntity';\n $classNames[] = 'MU\\FilesModule\\Entity\\HookAssignmentEntity';\n \n return $classNames;\n }", "function _ec_partners_strongarm() {\n $export = array();\n $strongarm = new stdClass;\n $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */\n $strongarm->api_version = 1;\n $strongarm->name = 'comment_partner';\n $strongarm->value = '0';\n\n $export['comment_partner'] = $strongarm;\n $strongarm = new stdClass;\n $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */\n $strongarm->api_version = 1;\n $strongarm->name = 'comment_partner_feed';\n $strongarm->value = '0';\n\n $export['comment_partner_feed'] = $strongarm;\n $strongarm = new stdClass;\n $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */\n $strongarm->api_version = 1;\n $strongarm->name = 'content_complete_fields_partner';\n $strongarm->value = array(\n '0' => 'title',\n '1' => 'body',\n '2' => 'field_partner_logo',\n '3' => 'field_partner_location',\n '4' => 'field_partner_address',\n '5' => 'field_partner_city',\n '6' => 'field_partner_country',\n '7' => 'field_partner_website',\n );\n\n $export['content_complete_fields_partner'] = $strongarm;\n $strongarm = new stdClass;\n $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */\n $strongarm->api_version = 1;\n $strongarm->name = 'content_complete_partner';\n $strongarm->value = '1';\n\n $export['content_complete_partner'] = $strongarm;\n $strongarm = new stdClass;\n $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */\n $strongarm->api_version = 1;\n $strongarm->name = 'node_options_partner';\n $strongarm->value = array(\n '0' => 'status',\n '1' => 'promote',\n );\n\n $export['node_options_partner'] = $strongarm;\n $strongarm = new stdClass;\n $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */\n $strongarm->api_version = 1;\n $strongarm->name = 'node_options_partner_feed';\n $strongarm->value = array();\n\n $export['node_options_partner_feed'] = $strongarm;\n $strongarm = new stdClass;\n $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */\n $strongarm->api_version = 1;\n $strongarm->name = 'pathauto_node_partner_feed_pattern';\n $strongarm->value = 'partner-feed/[nid]';\n\n $export['pathauto_node_partner_feed_pattern'] = $strongarm;\n $strongarm = new stdClass;\n $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */\n $strongarm->api_version = 1;\n $strongarm->name = 'pathauto_node_partner_pattern';\n $strongarm->value = 'partner/[nid]';\n\n $export['pathauto_node_partner_pattern'] = $strongarm;\n return $export;\n}", "public function entities()\n {\n return $this->belongsToMany('App\\Entity')->withTimestamps();\n }", "public function execute()\n {\n $department1 = $this->departmentFactory->create();\n $department1->setName('Finance');\n $department1->save();\n //Simple model, creating new entities, flavour #2\n $department2 = $this->departmentFactory->create();\n $department2->setData('name', 'Research');\n $department2->save();\n //Simple model, creating new entities, flavour #3\n $department3 = $this->departmentFactory->create();\n $department3->setData(['name' => 'Support']);\n $department3->save();\n //EAV model, creating new entities, flavour #1\n $employee1 = $this->employeeFactory->create();\n $employee1->setDepartment_id($department1->getId());\n $employee1->setEmail('[email protected]');\n $employee1->setFirstName('Goran');\n $employee1->setLastName('Gorvat');\n $employee1->setServiceYears(3);\n $employee1->setDob('1984-04-18');\n $employee1->setSalary(3800.00);\n $employee1->setVatNumber('GB123451234');\n $employee1->setNote('Note #1');\n $employee1->save();\n //EAV model, creating new entities, flavour #2\n $employee2 = $this->employeeFactory->create();\n $employee2->setData('department_id', $department2->getId());\n $employee2->setData('email', '[email protected]');\n $employee2->setData('first_name', 'Marko');\n $employee2->setData('last_name', 'Tunukovic');\n $employee2->setData('service_years', 3);\n $employee2->setData('dob', '1984-04-18');\n $employee2->setData('salary', 3800.00);\n $employee2->setData('vat_number', 'GB123451234');\n $employee2->setData('note', 'Note #2');\n $employee2->save();\n //EAV model, creating new entities, flavour #3\n $employee3 = $this->employeeFactory->create();\n $employee3->setData([\n 'department_id' => $department3->getId(),\n 'email' => '[email protected]',\n 'first_name' => 'Ivan',\n 'last_name' => 'Telebar',\n 'service_years' => 2,\n 'dob' => '1986-08-22',\n 'salary' => 2400.00,\n 'vat_number' => 'GB123454321',\n 'note' => 'Note #3'\n ]);\n $employee3->save();\n }", "public function installKeTabel() {\n\t\t$countModulesFile = count($this->getModulesDirOnDisk());\n\t\t$toBeInstalled = array();\n\n\t\tif($countModulesFile > $this->getTotalModuleFromDb()) {\n\t\t\t$cacheModule = file(Yii::getPathOfAlias('application.config').'/cache_module.php');\n\t\t\t$installedModule = $this->getModulesDirOnDisk();\n\t\t\t$toBeInstalled = array();\n\t\t\t$caches = array();\n\t\t\tforeach($cacheModule as $val) {\n\t\t\t\t$caches[] = trim(strtolower($val));\n\t\t\t}\n\n\t\t\t// Cari nama modul yang belum masuk database.\n\t\t\tif(count($cacheModule) == 0 || count($cacheModule) < 1) {\n\t\t\t\tif($installedModule) {\n\t\t\t\t\tforeach($installedModule as $val) {\n\t\t\t\t\t\t$toBeInstalled[] = $val;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}else {\n\t\t\t\tif($installedModule) {\n\t\t\t\t\tforeach($installedModule as $val) {\n\t\t\t\t\t\t$val = trim($val);\n\t\t\t\t\t\tif(!in_array(strtolower($val), $caches)) {\n\t\t\t\t\t\t\t$toBeInstalled[] = $val;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$sql = \"INSERT INTO {$this->_moduleTableName}(id, name, enabled) VALUES\";\n\t\t\t$id = $this->getIdMax('id', 'swt_com_modules');\n\t\t\tfor($i = 0; $i < count($toBeInstalled); $i++) {\n\t\t\t\tif(isset(Yii::app()->getModule($toBeInstalled[$i])->active))\n\t\t\t\t\t$active = Yii::app()->getModule($toBeInstalled[$i])->active;\n\t\t\t\telse\n\t\t\t\t\t$active = 0;\n\n\t\t\t\t$desc = Yii::app()->getModule($toBeInstalled[$i])->description;\n\n\t\t\t\tif($i == (count($toBeInstalled) - 1)) {\n\t\t\t\t\t$sql .= '(' . $id . ', \"' . $toBeInstalled[$i] . '\", ' . $active . ')';\n\t\t\t\t}else\n\t\t\t\t\t$sql .= '(' . $id . ', \"' . $toBeInstalled[$i] . '\", ' . $active . '),';\n\n\t\t\t\t$id++;\n\t\t\t}\n\n\t\t\t//Check if module already inserted to table.\n\t\t\t$conn = Yii::app()->db;\n\n\t\t\tif(count($toBeInstalled) > 0) {\n\t\t\t\t$result = $conn->createCommand($sql)->execute();\n\t\t\t\tif($result)\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.59725857", "0.592425", "0.5914847", "0.57337314", "0.5714875", "0.56585854", "0.5532775", "0.5532775", "0.5524083", "0.5507416", "0.5474976", "0.542899", "0.5421034", "0.5374375", "0.5350142", "0.5331395", "0.5294453", "0.52666855", "0.52545947", "0.5241904", "0.52297163", "0.5228212", "0.521946", "0.521946", "0.5214636", "0.5214555", "0.52005726", "0.51879615", "0.51630354", "0.51410073", "0.510598", "0.5104243", "0.51041126", "0.51027924", "0.5096953", "0.5086294", "0.50392634", "0.50184965", "0.4990535", "0.49799773", "0.49726945", "0.49719706", "0.496913", "0.49278492", "0.49122974", "0.49009138", "0.4895505", "0.48853546", "0.4879944", "0.4874127", "0.4867885", "0.48579162", "0.48569307", "0.48569307", "0.48568174", "0.48564708", "0.48538196", "0.48425484", "0.4833766", "0.4830818", "0.48244697", "0.4821624", "0.48174298", "0.4815839", "0.48068374", "0.48058763", "0.48011047", "0.4797517", "0.47935778", "0.47842535", "0.47841042", "0.47751716", "0.4771956", "0.47685176", "0.47577736", "0.47313607", "0.47248507", "0.4724715", "0.4722444", "0.47135863", "0.47120136", "0.47071972", "0.4699524", "0.46994877", "0.46990398", "0.4692105", "0.46803343", "0.46717653", "0.46708465", "0.46680415", "0.46675405", "0.46671355", "0.4659798", "0.46596113", "0.46483696", "0.46430072", "0.4642625", "0.46425757", "0.4637745", "0.46310142" ]
0.57218736
4
Parses a dscan to an array
function parseDscan($dscan) { $objects = array(); //Split into rows $rows = explode("\n", $dscan); //Iterate through our rows foreach($rows as $row) { //Check if it matches a dscan row format if(preg_match("/^([^\t]+)\t([^\t]+)\t([^\t]+)\t(([0-9,.]+) (km|m|AU)|-)/", $row, $matches) == 1) { $ob['type'] = $matches[3]; $ob['name'] = $matches[2]; //Parse distance if(count($matches) == 5) { //Unknown distance $ob['distance'] = -1; } else { //Known distance $ob['distance'] = distanceToMeters($matches[5], $matches[6]); } //Add to list $objects[] = $ob; } } return $objects; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function data2Array($data);", "public function getDataprotArray() {\n\t\t$arr = array();\n\t\t$ds = $this->getDataprotXML();\n\t\tif (strlen($ds) > 1) {\n\t\t\t$arr = GeneralUtility::xml2array($ds);\n\t\t}\n\n\t\treturn $arr;\n\t}", "function ussd_string_to_array($ussd_string){\n return explode(\"*\",$ussd_string);\n}", "function parse($data) {\n $output=[];\n $val=0;\n foreach(str_split($data) as $value){\n switch($value){\n case 'i': $val++;break;\n case 'd': $val--; break;\n case 's': $val **= 2; break;\n case 'o': $output[] = $val; break;\n }\n }\n return $output;\n}", "public function parse($input) {\n\t//--\n\treturn (array) $this->loadWithSource((array)$this->loadFromString((string)$input));\n\t//--\n}", "abstract public function parseInput(array $input): array;", "public function ParseFromArray() {\n $this->value = $this->reader->next();\n $this->clean();\n }", "function darr(&$R,$n,$m=\"\")\n\t\t{\n\t\treturn $this->Zarr($R,\"uint8\",$n,$m);\n\t\t}", "function parsescan($arLines)\n {\n #no data in first two lines.skip them.\n array_shift($arLines);\n array_shift($arLines);\n\n $result = array();\n foreach($arLines as $key=>$line)\n {\n if(trim($line) == '')\n {\n continue;\n }\n\n $arMatches = array();\n $temp = array();\n if (!preg_match($this->channelreg, $line, $arMatches))\n print \"channel not found\";\n\n $temp['channel']=$arMatches[0];\n\n $line = trim(substr($line,strlen($arMatches[0])));\n if (!preg_match($this->essidreg, $line, $arMatches))\n print \"essid not found\";\n\n $temp['essid']=trim($arMatches[0]);\n\n $line = trim(substr($line,strlen($arMatches[0])));\n if (!preg_match($this->macreg, $line, $arMatches))\n print \"mac not found\";\n\n $temp['mac']=$arMatches[0];\n\n $line = trim(substr($line,strlen($arMatches[0])));\n if (!preg_match($this->securityreg, $line, $arMatches))\n print \"security not found\";\n\n $temp['security']=$arMatches[0];\n\n $line = trim(substr($line,strlen($arMatches[0])));\n\n if (!preg_match($this->signalreg, $line, $arMatches))\n print \"signal not found\";\n\n $temp['signal']=$arMatches[0];\n\n array_push($result, $temp);\n\n print(\"\\n\");\n\n }\n return $result;\n }", "public function importArray($data);", "function parseDscanTower($dscan) {\n\t//Parse mods file\n\t$csv = explode(\"\\n\", file_get_contents(\"posmods.csv\"));\n\tforeach($csv as $mod) {\n\t\t$mod = str_getcsv($mod, \",\", \"\\\"\", \"\\\\\");\n\t\t$m['id'] = $mod[0];\n\t\t$m['igbName'] = $mod[1];\n\t\t$m['typeName'] = $mod[2];\n\t\t$mods[$m['typeName']] = $m;\n\t}\n\t\n\t//Parse control towers file\n\t$csv = explode(\"\\n\", file_get_contents(\"controltowers.csv\"));\n\tforeach($csv as $ct) {\n\t\t$ct = str_getcsv($ct, \",\", \"\\\"\", \"\\\\\");\n\t\t$m['id'] = $ct[0];\n\t\t$m['igbName'] = $ct[1];\n\t\t$m['typeName'] = $ct[2];\n\t\t$cts[$m['typeName']] = $m;\n\t}\n\t\n\t//Parse the dscan\n\t$pos = array();\n\t$ct = null;\n\t$rows = explode(\"\\n\", $dscan);\n\tforeach($rows as $row) {\n\t\t$cols = explode(\"\\t\", $row);\n\t\t\n\t\t//Check if it's on grid\n\t\tif(preg_match(\"/([0-9,]+) (km|m|AU)/\", $cols[2], $matches) == 1) {\n\t\t\t//Check if this module exists in our pos mod db\n\t\t\tif(array_search($cols[1], array_keys($mods)) != false) {\n\t\t\t\t//Add it to our pos\n\t\t\t\t$pos[] = $mods[$cols[1]];\n\t\t\t} else {\n\t\t\t\t//Check if it's a control tower\n\t\t\t\tif(array_search($cols[1], array_keys($cts)) != false) {\n\t\t\t\t\t//Check we don't already have one\n\t\t\t\t\tif($ct != null) {\n\t\t\t\t\t\tdie(\"Error, more than 1 control tower on scan\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$ct = $cts[$cols[1]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\t//Check if empty\n\tif($ct === null) {\n\t\treturn null;\n\t}\n\t\n\t//Generate URL\n\t$url = \"http://eve.1019.net/pos/index.php?ct=%%CT%%&mod=%%MODS%%&off=\";\n\t$modlist = \"\";\n\tforeach($pos as $mod) {\n\t\t$modlist .= $mod['id'];\n\t}\n\t$url = str_replace(\"%%CT%%\", $ct['id'], $url);\n\t$url = str_replace(\"%%MODS%%\", $modlist, $url);\n\treturn $url;\n}", "public function read(): array;", "function sloodle_vector_to_array($vector)\n {\n if (preg_match('/<(.*?),(.*?),(.*?)>/',$vector,$vectorbits)) {\n $arr = array();\n $arr['x'] = $vectorbits[1];\n $arr['y'] = $vectorbits[2];\n $arr['z'] = $vectorbits[3];\n return $arr;\n }\n return false;\n }", "public function parse2array() {\n\t\t/**\n\t\t * Thanks to Vladimir Struchkov <great_boba yahoo com> for providing the\n\t\t * code to extract base64 encoded values\n\t\t */\n\n\t\t$arr1 = explode( \"\\n\", str_replace( \"\\r\", '', $this->rawdata ) );\n\t\t$i = $j = 0;\n\t\t$arr2 = array();\n\n\t\t/* First pass, rawdata is splitted into raw blocks */\n\t\tforeach ( $arr1 as $v ) {\n\t\t\tif ( trim( $v ) == '' ) {\n\t\t\t\t++ $i;\n\t\t\t\t$j = 0;\n\t\t\t} else {\n\t\t\t\t$arr2[ $i ][ $j ++ ] = $v;\n\t\t\t}\n\t\t}\n\n\t\t/* Second pass, raw blocks are updated with their name/value pairs */\n\t\tforeach ( $arr2 as $k1 => $v1 ) {\n\t\t\t$i = 0;\n\t\t\t$decode = false;\n\t\t\tforeach ( $v1 as $v2 ) {\n\t\t\t\tif ( ereg( '::', $v2 ) ) { // base64 encoded, chunk start\n\t\t\t\t\t$decode = true;\n\t\t\t\t\t$arr = explode( ':', str_replace( '::', ':', $v2 ) );\n\t\t\t\t\t$i = $arr[0];\n\t\t\t\t\t$this->entries[ $k1 ][ $i ] = base64_decode( $arr[1] );\n\t\t\t\t} elseif ( ereg( ':', $v2 ) ) {\n\t\t\t\t\t$decode = false;\n\t\t\t\t\t$arr = explode( ':', $v2 );\n\t\t\t\t\t$count = count( $arr );\n\t\t\t\t\tif ( $count != 2 ) {\n\t\t\t\t\t\tfor ( $i = $count - 1; $i > 1; -- $i ) {\n\t\t\t\t\t\t\t$arr[ $i - 1 ] .= ':' . $arr[ $i ];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$i = $arr[0];\n\t\t\t\t\t$this->entries[ $k1 ][ $i ] = $arr[1];\n\t\t\t\t} else {\n\t\t\t\t\tif ( $decode ) { // base64 encoded, next chunk\n\t\t\t\t\t\t$this->entries[ $k1 ][ $i ] .= base64_decode( $v2 );\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->entries[ $k1 ][ $i ] = $v2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "abstract public function array2Data($arr);", "function csv_to_array($input, $delimiter=',') { \n $header = null; \n $data = array(); \n $csvData = str_getcsv($input, \"\\n\"); \n \n foreach($csvData as $csvLine){ \n if(is_null($header)) $header = explode($delimiter, $csvLine); \n else{ \n \n $items = explode($delimiter, $csvLine); \n \n for($n = 0, $m = count($header); $n < $m; $n++){ \n $prepareData[$header[$n]] = $items[$n]; \n } \n \n $data[] = $prepareData; \n } \n } \n \n return $data; \n}", "function csv_to_array($input, $delimiter=',') { \n $header = null; \n $data = array(); \n $csvData = str_getcsv($input, \"\\n\"); \n \n foreach($csvData as $csvLine){ \n if(is_null($header)) $header = explode($delimiter, $csvLine); \n else{ \n \n $items = explode($delimiter, $csvLine); \n \n for($n = 0, $m = count($header); $n < $m; $n++){ \n $prepareData[$header[$n]] = $items[$n]; \n } \n \n $data[] = $prepareData; \n } \n } \n \n return $data; \n}", "abstract public function to_array();", "function parseSDSS($output) {\n\n $xml = new SimpleXMLElement($output);\n \n\t\t\t\t$xpath_run = \"//field[@col='run']\";\n $xpath_camcol = \"//field[@col='camcol']\";\n\t\t\t\t$xpath_rerun = \"//field[@col='rerun']\";\n $xpath_field = \"//field[@col='field']\";\n\n $out_run = $xml->xpath($xpath_run);\n $out_camcol = $xml->xpath($xpath_camcol);\n\t\t\t\t$out_rerun = $xml->xpath($xpath_rerun);\n $out_field = $xml->xpath($xpath_field);\n \n $imagefields = array();\n \n $i = 0;\n while(list( , $node) = each($out_run)) {\n $imagefields[$i] = array(trim($node), 0);\n $i++;\n }\n \n $i = 0;\n while(list( , $node) = each($out_camcol)) {\n $imagefields[$i][1] = trim($node);\n $i++;\n }\n\n\t\t\t\t$i = 0;\n\t while(list( , $node) = each($out_rerun)) {\n\t $imagefields[$i][2] = trim($node);\n\t $i++;\n\t }\n\t\t\t\t$i = 0;\n\t while(list( , $node) = each($out_field)) {\n\t $imagefields[$i][3] = trim($node);\n\t $i++;\n\t }\n \n return $imagefields;\n }", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function parseFromArray()\n {\n $this->value = $this->reader->next();\n }", "function raw_zone_to_array($data)\n{\n $records = array();\n $data = explode(\"\\n\", $data);\n foreach ($data as $line)\n {\n if (psf_string_startsWith($line, \";\"))\n continue;\n // This is a little bit hard-core, we need to parse output from dig, which is terrible\n // In past we did some magic by simply replacing all tabs and spaces to split it, but that doesn't work\n // for some special TXT records\n // For example:\n // 2 tabs tab double space\n // v v v\n // example.org.\t\t600\tIN\tTXT\t\"v=spf1 a mx include:_spf.example.org ip4:124.6.178.206 ~all\"\n //\n // keep in mind that dig is randomly using tabs as separators and randomly spaces\n //\n // So there are two easy ways of this mess\n // 1) we use regular expressions and pray a lot (we use this one)\n // 2) we simply walk through out the whole string, that's the correct way, but this is actually CPU intensive,\n // so we might want to implement this into some kind of C library I guess\n \n // Get rid of empty lines\n if (strlen(str_replace(\" \", \"\", $line)) == 0)\n continue;\n\n $records[] = preg_split('/[\\t\\s]/', $line, 5, PREG_SPLIT_NO_EMPTY);\n }\n return $records;\n}", "function db_result_to_array($result){\n\t\t\t\t\t\t\t$res_array = array();\n\n\t\t\t\t\t\t\tfor($count=0; $row= @mysql_fetch_array($result); $count++)\n\t\t\t\t\t\t\t\t$res_array[$count] = $row;\n\t\t\t\t\t\t\treturn $res_array;\n\t\t\t\t\t\t}", "function parseBISArray($str) {\n $str = substr($str, 1, -1); // Strip trailing quotes\n $bla = parseBISArray_helper($str);\n $result = array();\n\n foreach ($bla as $row) {\n foreach ($row as $child) {\n $result[] = $child;\n }\n if (count($row) == 0)\n $result[] = array();\n }\n //var_dump($result);\n return $result;\n}", "public function _parse_to_array($in) {\n\t\t$string = str_replace(' ', '', trim($in));\n\t\t\n\t\tif ( ! empty($string)) {\n\t\t\treturn (array) explode('|', $string);\n\t\t}\n\t\telse {\n\t\t\treturn array();\n\t\t}\n\t}", "abstract function extract(): array;", "function ods_to_array($filename, $sheet_name = 0) {\n// using SpreadsheetReader.php\n $out = array();\n\n\n $Spreadsheet = new SpreadsheetReader($filename);\n $Sheets = $Spreadsheet->Sheets();\n\n $sheet_index = array_search($sheet_name, $Sheets);\n\n $Spreadsheet->ChangeSheet($sheet_index);\n \n foreach ($Spreadsheet as $Row) {\n \n $out[] = $Row;\n }\n\n\n return associate_first_row($out);\n}", "static function readArray($inputs, $flag = 1)\n\t{\n\t\t$result = array();\n\t\tforeach($inputs as $input) {\n\t\t\t$element = self::readNummer($input); \n\t\t\tif($element->isException()) {self::handleException($element, $result, $flag); }\n\t\t\telse \n\t\t\t\t$result[] = $element;\t\n\t\t}\n\t\treturn $result;\n\t}", "public function readArray()\n {\n $arrayReference = $this->readInteger();\n\n $refObj = $this->getReferenceObject($arrayReference);\n if($refObj !== false)\n return $refObj;\n\n // Create a holder for the array in the reference list\n $data = [];\n $this->_referenceObjects[] =& $data;\n $key = $this->readString();\n\n // Iterating for string based keys.\n while ($key != '') {\n $data[$key] = $this->readTypeMarker();\n $key = $this->readString();\n }\n\n $arrayReference = $arrayReference >>1;\n\n //We have a dense array\n for ($i=0; $i < $arrayReference; $i++) {\n $data[] = $this->readTypeMarker();\n }\n\n return $data;\n }", "function toArray() ;", "function toArray() ;", "public function AsArray();", "function syndic_article_raw_data_to_array($methode_syndication, $raw_data, $raw_format) {\n\t$data = array();\n\tif ($methode_syndication\n\t and $syndic = charger_fonction($methode_syndication, 'syndic', true)\n\t\tand $methode_row_data_to_array = charger_fonction($methode_syndication . \"_raw_data_to_array\", 'syndic', true)) {\n\t\t$data = $methode_row_data_to_array($raw_data, $raw_format);\n\t}\n\n\treturn $data;\n}", "function aarr(&$R,$nn,$n,$m=\"\")\n\t\t{\n\t\treturn $this->Zarr($R,\"int8\",$n,$m);\t\t\t\n\t\t}", "#[\\JetBrains\\PhpStorm\\ArrayShape([0 => 'int[]', 1 => 'Board[]'])]\nfunction parse_input(string $input): array\n{\n [$n, $b] = explode(\"\\n\\n\", $input, 2);\n\n $numbers = toIntArray(explode(',', $n));\n\n $boards = collect(explode(\"\\n\\n\", $b))\n ->map(function ($board) {\n return new Board($board);\n });\n\n return [$numbers, $boards];\n}", "public function parse(string $string): array;", "function snmp_walk_parser2($device, $oid, $oid_elements, $mib = NULL, $mibdir = NULL)\n{\n $data = snmp_walk($device, $oid, \"-Oqs\", $mib, $mibdir, FALSE);\n foreach (explode(\"\\n\", $data) as $text)\n {\n $ret = parse_oid2($text);\n if (!empty($ret['value']))\n {\n // this seems retarded. need a way to just build this automatically.\n switch ($oid_elements)\n {\n case \"1\":\n $array[$ret['oid'][0]] = $ret['value'];\n break;\n case \"2\":\n $array[$ret['oid'][1]][$ret['oid'][0]] = $ret['value'];\n break;\n case \"3\":\n $array[$ret['oid'][1]][$ret['oid'][2]][$ret['oid'][0]] = $ret['value'];\n break;\n case \"4\":\n $array[$ret['oid'][1]][$ret['oid'][2]][$ret['oid'][3]][$ret['oid'][0]] = $ret['value'];\n break;\n }\n }\n }\n return $array;\n}", "function decompress_row($row)\n\t{\n\t\t$return = array();\n\t\t$i = -1;\n\t\tforeach (explode('|', $row) AS $value)\n\t\t{\n\t\t\t$return[$i] = $value;\n\t\t\t++$i;\n\t\t}\n\t\treturn $return;\n\n\t\t//return unserialize($row);\n\t}", "function d2d_value_decode($string) {\n $array = preg_split('/\\$/', $string, 2);\n if (sizeof($array) != 2) {\n return array(FALSE, '');\n }\n switch ($array[0]) {\n case 'n': return array(TRUE, NULL);\n case 'b': return array(TRUE, $array[1] ? TRUE : FALSE);\n case 's': return array(TRUE, $array[1]);\n }\n return array(FALSE, '');\n}", "function db_result_to_array($result) {\r\n $res_array = array();\r\n\r\n for ($count = 0; $row = $result->fetch_assoc(); $count++) {\r\n $res_array[$count] = $row;\r\n }\r\n return $res_array;\r\n }", "function snmp_walk_parser($device, $oid, $oid_elements, $mib = NULL, $mibdir = NULL)\n{\n $data = snmp_walk($device, $oid, \"-Oqs\", $mib, $mibdir, FALSE);\n foreach (explode(\"\\n\", $data) as $text)\n {\n $ret = parse_oid($text);\n if (!empty($ret['value']))\n {\n // this seems retarded. need a way to just build this automatically.\n switch ($oid_elements)\n {\n case \"1\":\n $array[$ret['oid'][0]] = $ret['value'];\n break;\n case \"2\":\n $array[$ret['oid'][1]][$ret['oid'][0]] = $ret['value'];\n break;\n case \"3\":\n $array[$ret['oid'][1]][$ret['oid'][2]][$ret['oid'][0]] = $ret['value'];\n break;\n case \"4\":\n $array[$ret['oid'][1]][$ret['oid'][2]][$ret['oid'][3]][$ret['oid'][0]] = $ret['value'];\n break;\n }\n }\n }\n\n return $array;\n}", "abstract protected function toArray();", "abstract protected function report_to_array_mapping();", "function init_sudoku(array $array_str_sudoku): array\r\n{\r\n $line = 0;\r\n foreach ($array_str_sudoku as $str_sudoku_line) {\r\n if (is_numeric($str_sudoku_line[0]) || $str_sudoku_line[0] === \"_\") {\r\n $col = 0;\r\n for ($i = 0; $i < strlen($str_sudoku_line); $i++) {\r\n if (is_numeric($str_sudoku_line[$i]) || $str_sudoku_line[$i] === \"_\") {\r\n $sudoku[$line][$col] = (int) $str_sudoku_line[$i];\r\n $col++;\r\n }\r\n }\r\n $line++;\r\n }\r\n }\r\n return $sudoku;\r\n}", "function db_result_to_array($result) {\n $res_array = array();\n \n for ($count=0; $row = $result->fetch_assoc(); $count++) {\n $res_array[$count] = $row;\n }\n \n return $res_array;\n }", "function ConvertirArray($result){\n\t\t \t$arreglo = array(); \n\t\t \tforeach ($result as $row){\n\t\t\t\t$arreglo[] = $row;\n\t\t \t}\n\t\t \treturn $arreglo;\n\t\t}", "function sphinx_result_parse($res)\n {\n $id_arr = array();\n $total = $res['total'];\n if(!empty($res['matches']))\n {\n foreach($res['matches'] as $item)\n {\n array_push($id_arr, $item['id']);\n }\n }\t \t\n return array('id_arr'=>$id_arr, 'total'=>$total);\n }", "function getDeviceImeiNoDAVAArray($account_id_local1,$DbConnection)\n{\n $query=\"SELECT device_assignment.device_imei_no FROM device_assignment USE INDEX(dass_aid_status) LEFT JOIN vehicle_assignment ON vehicle_assignment.device_imei_no\".\n\t\t\"=device_assignment.device_imei_no AND vehicle_assignment.status=1 WHERE vehicle_assignment.device_imei_no IS NULL AND \".\n\t\t\"device_assignment.account_id = '$account_id_local1' AND device_assignment.status=1\";\t\n\t\t$device_result=mysql_query($query,$DbConnection);\n\t\twhile($row=mysql_fetch_object($device_result))\n\t\t{\n\t\t\t$dataDIN[]=array('device_imei_no'=>$row->device_imei_no);\n\t\t}\n\t\treturn $dataDIN;\t\t\n}", "function xml_to_array()\r\n {\r\n $output=array();\r\n \r\n foreach($this->xpath_map as $key=>$value)\r\n {\r\n $output[$key]=$value['data'];\r\n }\r\n \r\n return $output;\r\n }", "public function gen_dd_array()\n {\n $vec = array();\n if($result = $this->get($this->_table) )\n {\n foreach($result as $reg)\n { \n $vec[$reg->id] = $reg->name;\n }\n }\n return $vec;\n }", "function answersArray($strInput)\t{\n\t\t$strLine=explode(chr(10),$strInput);\n\t\tforeach($strLine as $intKey => $strLineValue)\t{\n\t\t\t$strValue = explode('|',$strLineValue);\n\t\t\t$arrOutput[$intKey+1]=trim($strValue[0]);\n\t\t}\n\t\treturn $arrOutput;\n\t}", "function convert_basic_array($string, $delimitor, $separator)\n{\n\t$the_array = array();\n\t$row = explode($delimitor, $string);\n\tforeach($row AS $item)\n\t{\n\t\t$the_value = htmlentities(trim(strstr($item, $separator), $separator));\n\t\t\n\t\t$check_array = explode('**',$the_value);\n\t\tif(in_array('drillevent', $check_array))\n\t\t{\n\t\t\t$check_array[array_search('drillevent',$check_array)] = 'drillevent=';\n\t\t\t$the_value = implode('**', $check_array);\n\t\t}\n\t\t\n\t\tif($the_value == '_')\n\t\t{\n\t\t\t$the_value = '';\n\t\t}\n\t\t\n\t\t$the_array[strstr($item, $separator, TRUE)] = $the_value;\n\t}\n\t\n\treturn $the_array;\n}", "function csv_to_array($csv, $delimiter = ',', $enclosure = '\"', $escape = '\\\\', $terminator = \"\\n\") { \r\n $r = array(); \r\n $rows = explode($terminator,trim($csv)); \r\n $names = array_shift($rows); \r\n $names = str_getcsv($names,$delimiter,$enclosure,$escape); \r\n $nc = count($names); \r\n foreach ($rows as $row) { \r\n if (trim($row)) { \r\n $values = str_getcsv($row,$delimiter,$enclosure,$escape); \r\n if (!$values) $values = array_fill(0,$nc,null); \r\n $r[] = array_combine($names,$values); \r\n } \r\n } \r\n return $r; \r\n}", "abstract public function getArray();", "public function parse(array $description);", "function getArray();", "private function getFinalArray($date) {\r\n if(self::sanitizeDate($date)){\r\n $db1 = $this->parseDB($date);\r\n $aulario = $this->getArrayFromAulario($date);\r\n $merge = $this->mergeArrays($aulario, $db1); // aggiunge il secondo array in coda al primo\r\n // var_dump($merge);//die();\r\n $risultato;\r\n foreach ($merge as $row) {\r\n if (isset($row)){\r\n $aula = $row[0];\r\n $oraIn = $this->convertiOra($row[2]);\r\n if (isset($row[3]))\r\n $oraFine = $this->convertiOra($row[3]);\r\n else\r\n $oraFine = $this->convertiOra(null);\r\n $risultato[$oraIn][$aula] = $row;\r\n $diffOre = $oraFine - $oraIn;\r\n for ($i = 1; $i < $diffOre; $i++) {\r\n $risultato[$oraIn + $i][$aula] = \"\\\"\";\r\n }\r\n }\r\n }\r\n return $risultato;\r\n }\r\n return array();\r\n }", "public function read(): array\n {\n }", "public function read(): array\n {\n }", "function toArray();", "abstract public function toArray();", "abstract public function toArray();", "abstract public function toArray();", "abstract public function toArray();", "abstract public function toArray();", "public static function toArray($result) { \n $data = array();\n while ($row = $result->current()) {\n if (!empty($row)) {\n $data[] = (array) $row;\n }\n $result->next();\n }\n return $data;\n }", "public function xml_prase_array(){\n\t\t$str=array();\n\t\n\t\t\t$fg=$this->xml->children(); \n\t\t//echo \t$fg->count().\"dds\";\n\t\t\t//$i=0;\n\t\t\tforeach ($fg[1]->children() as $re=>$fw) {\n\t\t\t\t$ds=array();\n\t\t\t\tforeach ($fw->children() as $fw1) {\n\t\t\t\t $str1=$fw1->getName();\n\t\t\t\t//echo $fw1;\n\t\t\t\t$r=(string)$fw1;\n\t\t\t\t//$ds=array();\n\t\t\t\t$ds[$str1]=$r;\n\t\t\t\t///$this->xml->saveXML();\n\t\t\t\t//print_r($fw1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$str[$re]=$ds;\n\t\t//$i++;\n\t\t\t}\n\t\t\n\t\t\t$this->xml->saveXML();\n\t\t\n\t\treturn $str;\n\t}", "protected function parseResult(array $result): array\n {\n [$key, $rawData] = $result;\n\n $data = collect($rawData)\n ->map(function ($rawData) {\n [$id, $rawData] = $rawData;\n\n $data = [];\n for ($i = 0; $i < count($rawData); $i += 2) {\n $value = $rawData[$i + 1];\n $data[\"{$rawData[$i]}\"] = $value;\n }\n\n return ['id' => $id, 'data' => $data];\n });\n\n return ['key' => $key, 'data' => $data->toArray()];\n }", "function makearray($mstrg) {\n\t\t// check if values are separated by comma ','.\n\t if ($this->havecomma($mstrg)) {\n\t \t$marr = explode(\",,\", $mstrg);\n\t }\n\t\treturn $marr;\n\t}", "protected function parseData(array $raw): array\n {\n $data = [];\n foreach ($raw as $field => $value) {\n $data[] = $field;\n $data[] = $value;\n }\n\n return $data;\n }", "public function decode(array $txData): array;", "function pg_array_parse($array, $asText = true) {\n $s = $array;\n if ($asText) {\n $s = str_replace(\"{\", \"array('\", $s);\n $s = str_replace(\"}\", \"')\", $s); \n $s = str_replace(\",\", \"','\", $s); \n } else {\n $s = str_replace(\"{\", \"array(\", $s);\n $s = str_replace(\"}\", \")\", $s);\n }\n\t$ss = \"\\$retval = $s;\";\n eval($ss);\n\treturn $retval;\n}", "public function residue () :array\n {\n return [\n\n ];\n }", "function tab2data( $tabedfile, $fields_length){\n\n $fp=fopen( $tabedfile, \"r\");\n\n while ( ( $line = fgets($fp, 4096))!== false){\n\n // split line into row array\n $cursor_pos = 0;\n $row = array();\n foreach ($fields_length as $length) {\n $row[] = trim(substr($line, $cursor_pos, $length));\n $cursor_pos += $length;\n }\n\n $datas[] = $row;\n }\n return $datas;\n}", "function mysql_to_array($query_result)\n{\n\n\t#Establishing the returned array and some helper variables:\n\n\t$fingerPrints = array(); #array of arrays, which will contain Fingerprint objects.\n\t$outer_index = 0; #outerindex for the array.\n\t$inner_index = 0; #innerindex for the array.\n\t$helper = 0; #helper variable for the first time.\n\n\n\t#Looping through the query result one row at a time:\n\n\tforeach ($query_result as $row)\n\t{\n\n\n\t\tif ($helper == 0) #this is special case for the first Fingerprint object to be created\n\t\t{\n\t\t\t#for first time, the loop will insert a new Fingerprint object for \n\t\t\t#the index [0][0], and then increase inner index by one.\n\n\t\t\tif (abs($row['Average']) < 90.0 and $row['Variance'] < 15.0) {\n\n\t\t\t\t$fingerPrints[$outer_index][$inner_index] = new Fingerprint($row['Room'], \n\t\t\t\t\t$row['Position'], $row['AP_Mac'], $row['Average'], $row['Variance'],\n\t\t\t\t\t\t$row['Values_Num'], $row['id'] );\n\n\t\t\t\t$inner_index = $inner_index + 1;\n\t\t\t\t$helper = 1;\n\n\t\t\t}\n\t\t}\n\t\telseif ($row['Position'] != $fingerPrints[$outer_index][$inner_index - 1]->get_position()\n\t\t \tor $row['Room'] != $fingerPrints[$outer_index][$inner_index - 1]->get_room())\n\t\t{\n\t\t\t#if the next row in the query results has a different position coordinates,\n\t\t\t#or different room than the one before, then we will know, that our function\n\t\t\t#has iterated all values of the same (coordinate - room), and is time to make\n\t\t\t#room for the next one, that will now begin. Therefore we will set the inner\n\t\t\t#index to zero, and increase outer index by one. So we will start filling\n\t\t\t#the next array with Fingerprint objects with either different room or \n\t\t\t#coordinates, or both.\n\n\t\t\tif (abs($row['Average']) < 90.0 and $row['Variance'] < 15.0) {\n\n\t\t\t$inner_index = 0;\n\t\t\t$outer_index = $outer_index + 1;\n\t\t\t$fingerPrints[$outer_index][$inner_index] = new Fingerprint($row['Room'], \n\t\t\t\t$row['Position'], $row['AP_Mac'], $row['Average'], $row['Variance'],\n\t\t\t\t\t$row['Values_Num'], $row['id'] );\n\n\t\t\t$inner_index = $inner_index + 1;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t#if the next row in the query results has the same position and coordinates\n\t\t\t#than the one before, we will know that we have not yet collected all results\n\t\t\t#with same room and coordinate. Therefore we will continue filling the current\n\t\t\t#array, and in the end increase the inner index.\n\n\t\t\tif (abs($row['Average']) < 90.0 and $row['Variance'] < 15.0) {\n\n\n\t\t\t$fingerPrints[$outer_index][$inner_index] = new Fingerprint($row['Room'],\n\t\t\t\t$row['Position'], $row['AP_Mac'], $row['Average'], $row['Variance'],\n\t\t\t\t\t$row['Values_Num'], $row['id'] );\n\n\t\t\t$inner_index = $inner_index + 1;\n\n\t\t\t}\n\t\t}\n\t}\n\n\n\treturn $fingerPrints;\n\n}", "protected function parseData($data){\r\n $d = array();\r\n if(is_string($data)){\r\n try{\r\n parse_str($data,$arr);\r\n $d = $arr;\r\n }catch(Exception $e){\r\n //del lam gi ca\r\n }\r\n }elseif(is_array($data)){\r\n $d = $data;\r\n }\r\n if(!$d) return null;\r\n unset($d[$this->idField]);\r\n $r = array();\r\n foreach($d as $f => $v){\r\n if(in_array($f, $this->fields)) $r[$f] = $v;\r\n }\r\n return $r;\r\n }", "public function loadArrayByDNASequenceID($searchTerm) {\n global $connection;\n $returnvalue = array();\n $operator = \"=\";\n // change to a like search if a wildcard character is present\n if (!(strpos($searchTerm,\"%\")===false)) { $operator = \"like\"; }\n if (!(strpos($searchTerm,\"_\")===false)) { $operator = \"like\"; }\n $sql = \"SELECT DNASequencingRunID FROM dnasequencingrun WHERE DNASequenceID $operator '$searchTerm'\";\n $preparedsql = \"SELECT DNASequencingRunID FROM dnasequencingrun WHERE DNASequenceID $operator ? \";\n if ($statement = $connection->prepare($preparedsql)) { \n $statement->bind_param(\"s\", $searchTerm);\n $statement->execute();\n $statement->bind_result($id);\n while ($statement->fetch()) { ;\n $obj = new huh_dnasequencingrun();\n $obj->load($id);\n $returnvalue[] = $obj;\n }\n $statement->close();\n }\n return $returnvalue;\n }", "abstract public function getRowAsArray();", "public function normalizeData() : array;", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();" ]
[ "0.5584773", "0.54677004", "0.5435761", "0.5323445", "0.5300616", "0.5297419", "0.5217488", "0.52032334", "0.5166246", "0.5157352", "0.5154616", "0.51353115", "0.5130848", "0.51080436", "0.50948715", "0.50821775", "0.50821775", "0.5065223", "0.505185", "0.502081", "0.502081", "0.502081", "0.502081", "0.502081", "0.502081", "0.500788", "0.5003174", "0.49915376", "0.49260435", "0.49218258", "0.49204576", "0.4906403", "0.48926225", "0.48915482", "0.4885252", "0.4885252", "0.48707214", "0.48656085", "0.48636776", "0.48572436", "0.48470557", "0.48290253", "0.48151705", "0.4812011", "0.4795021", "0.47872064", "0.47617954", "0.47573167", "0.4749742", "0.47490254", "0.47452262", "0.4744128", "0.47122344", "0.4708709", "0.4696261", "0.4688791", "0.46858934", "0.46806476", "0.4673837", "0.46709225", "0.46660227", "0.4664499", "0.4662233", "0.4662233", "0.46459293", "0.46426094", "0.46426094", "0.46426094", "0.46426094", "0.46426094", "0.46232992", "0.4606244", "0.46036994", "0.45964062", "0.4592829", "0.45921314", "0.45838526", "0.4580367", "0.45802468", "0.45723155", "0.4568262", "0.45648602", "0.4561228", "0.45603368", "0.45602173", "0.45602173", "0.45602173", "0.45602173", "0.45602173", "0.45602173", "0.45602173", "0.45602173", "0.45602173", "0.45602173", "0.45602173", "0.45602173", "0.45602173", "0.45602173", "0.45602173", "0.45602173" ]
0.7394252
0
Parses a dscan down for an ongrid control tower
function parseDscanTower($dscan) { //Parse mods file $csv = explode("\n", file_get_contents("posmods.csv")); foreach($csv as $mod) { $mod = str_getcsv($mod, ",", "\"", "\\"); $m['id'] = $mod[0]; $m['igbName'] = $mod[1]; $m['typeName'] = $mod[2]; $mods[$m['typeName']] = $m; } //Parse control towers file $csv = explode("\n", file_get_contents("controltowers.csv")); foreach($csv as $ct) { $ct = str_getcsv($ct, ",", "\"", "\\"); $m['id'] = $ct[0]; $m['igbName'] = $ct[1]; $m['typeName'] = $ct[2]; $cts[$m['typeName']] = $m; } //Parse the dscan $pos = array(); $ct = null; $rows = explode("\n", $dscan); foreach($rows as $row) { $cols = explode("\t", $row); //Check if it's on grid if(preg_match("/([0-9,]+) (km|m|AU)/", $cols[2], $matches) == 1) { //Check if this module exists in our pos mod db if(array_search($cols[1], array_keys($mods)) != false) { //Add it to our pos $pos[] = $mods[$cols[1]]; } else { //Check if it's a control tower if(array_search($cols[1], array_keys($cts)) != false) { //Check we don't already have one if($ct != null) { die("Error, more than 1 control tower on scan"); } $ct = $cts[$cols[1]]; } } } } //Check if empty if($ct === null) { return null; } //Generate URL $url = "http://eve.1019.net/pos/index.php?ct=%%CT%%&mod=%%MODS%%&off="; $modlist = ""; foreach($pos as $mod) { $modlist .= $mod['id']; } $url = str_replace("%%CT%%", $ct['id'], $url); $url = str_replace("%%MODS%%", $modlist, $url); return $url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function parseDscan($dscan) {\n\t$objects = array();\n\t\n\t//Split into rows\n\t$rows = explode(\"\\n\", $dscan);\n\t\n\t//Iterate through our rows\n\tforeach($rows as $row) {\n\t\t//Check if it matches a dscan row format\n\t\tif(preg_match(\"/^([^\\t]+)\\t([^\\t]+)\\t([^\\t]+)\\t(([0-9,.]+) (km|m|AU)|-)/\", $row, $matches) == 1) {\n\t\t\t$ob['type'] = $matches[3];\n\t\t\t$ob['name'] = $matches[2];\n\t\t\t\n\t\t\t//Parse distance\n\t\t\tif(count($matches) == 5) {\n\t\t\t\t//Unknown distance\n\t\t\t\t$ob['distance'] = -1;\n\t\t\t} else {\n\t\t\t\t//Known distance\n\t\t\t\t$ob['distance'] = distanceToMeters($matches[5], $matches[6]);\n\t\t\t}\n\t\t\t\n\t\t\t//Add to list\n\t\t\t$objects[] = $ob;\n\t\t}\n\t}\n\t\n\treturn $objects;\n}", "function getDscanTower($key) {\n\t/*$csv = explode(\"\\n\", file_get_contents(\"controltowers.csv\"));\n\tforeach($csv as $ct) {\n\t\t$ct = str_getcsv($ct, \",\", \"\\\"\", \"\\\\\");\n\t\t$m['id'] = $ct[0];\n\t\t$m['igbName'] = $ct[1];\n\t\t$m['typeName'] = $ct[2];\n\t\t$cts[$m['typeName']] = $m;\n\t}*/\n\n\t//Connect MySQL\n\t/*include(\"config.php\");\n\t$db = new PDO('mysql:host='.$mysql_host.';dbname='.$mysql_db.';charset=utf8', $mysql_user, $mysql_pass);\n\t\n\t//Check if scan exists\n\t$st = $db->prepare(\"SELECT * FROM dscanScans WHERE `key`=:key LIMIT 1\");\n\t$st->bindValue(\":key\", $key, PDO::PARAM_STR);\n\t$st->execute();\n\t$rows = $st->fetchAll(PDO::FETCH_ASSOC);\n\tif(count($rows) < 1) {\n\t\t//No scan found\n\t\treturn null;\n\t}\n\t\n\t//Get objects for scan\n\t$id = $rows[0]['id'];\n\t$st = $db->prepare(\"SELECT type, distance FROM dscanObjects WHERE scan=:scan AND distance >= 0\");\n\t$st->bindValue(\":scan\", $id, PDO::PARAM_STR);\n\t$st->execute();\n\t$rows = $st->fetchAll(PDO::FETCH_ASSOC);\n\t\n\t//Search objects for tower\n\t$found = false;\n\tforeach($rows as $row) {\n\t\tif(array_search($row['type'], array_keys($cts)) !== false) {\n\t\t\t$type = $row['type'];\n\t\t\t$found = true;\n\t\t}\n\t}*/\n\t\n\tif(true) {\n\t\t$dscan = file_get_contents(\"scans/\".$key);\n\t\t//echo $dscan;\n\t\treturn parseDscanTower($dscan);\n\t} else {\n\t\treturn null;\n\t}\n}", "private function fillWireGrid($input): array\n {\n $grid = [0 => [0 => \"B\"]];\n\n foreach($input as $line_number => $line) {\n $last_x_cor = 0;\n $last_y_cor = 0;\n $line_steps = 0;\n foreach ($line as $instruction) {\n // A letter as dir and a number as cor the direction determines X or Y the number how much\n $direction = substr($instruction, 0, 1);\n $cor = (int) substr($instruction, 1);\n\n switch ($direction) {\n case \"U\":\n for ($new_x_cor = $last_x_cor + 1; $new_x_cor <= $last_x_cor + $cor; $new_x_cor++) {\n $line_steps++;\n $grid = $this->fillGridPoints($line_number, $grid, $new_x_cor, $last_y_cor, $line_steps);\n }\n $last_x_cor = $last_x_cor + $cor;\n break;\n case \"D\":\n for ($new_x_cor = $last_x_cor - 1; $new_x_cor >= $last_x_cor - $cor; $new_x_cor--) {\n $line_steps++;\n $grid = $this->fillGridPoints($line_number, $grid, $new_x_cor, $last_y_cor, $line_steps);\n }\n $last_x_cor = $last_x_cor - $cor;\n break;\n case \"R\":\n for ($new_y_cor = $last_y_cor + 1; $new_y_cor <= $last_y_cor + $cor; $new_y_cor++) {\n $line_steps++;\n $grid = $this->fillGridPoints($line_number, $grid, $last_x_cor, $new_y_cor, $line_steps);\n }\n $last_y_cor = $last_y_cor + $cor;\n break;\n case \"L\":\n for ($new_y_cor = $last_y_cor - 1; $new_y_cor >= $last_y_cor - $cor; $new_y_cor--) {\n $line_steps++;\n $grid = $this->fillGridPoints($line_number, $grid, $last_x_cor, $new_y_cor, $line_steps);\n }\n $last_y_cor = $last_y_cor - $cor;\n break;\n }\n }\n }\n\n return $grid;\n }", "public function processInput()\n {\n $directionsArray = explode(',', $this->input[0]);\n $allVisitedCoordinates = [];\n $currentPositionX = 0;\n $currentPositionY = 0;\n # This represents an angle\n $currentDirection = 0;\n foreach ($directionsArray as $step) {\n $step = trim($step);\n $turn = substr($step, 0, 1);\n $distance = substr($step, -1 * (strlen($step) - 1));\n // Check where we're facing\n $currentDirection += ($turn == 'L' ? -90 : 90);\n if ($currentDirection % 360 == 0) {\n $currentDirection = 0;\n }\n // Move by given distance changing the coordinates\n switch ($currentDirection) {\n case 0:\n for ($i = 1; $i <= $distance; $i++) {\n $nextCoordinates = $currentPositionX . ':' . ($currentPositionY + $i);\n $allVisitedCoordinates[] = $nextCoordinates;\n }\n $currentPositionY += $distance;\n break;\n case 90:\n case -270:\n for ($i = 1; $i <= $distance; $i++) {\n $nextCoordinates = ($currentPositionX + $i) . ':' . $currentPositionY;\n $allVisitedCoordinates[] = $nextCoordinates;\n }\n $currentPositionX += $distance;\n break;\n case -90:\n case 270:\n for ($i = 1; $i <= $distance; $i++) {\n $nextCoordinates = ($currentPositionX - $i) . ':' . $currentPositionY;\n $allVisitedCoordinates[] = $nextCoordinates;\n }\n $currentPositionX -= $distance;\n break;\n case 180:\n case -180:\n for ($i = 1; $i <= $distance; $i++) {\n $nextCoordinates = $currentPositionX . ':' . ($currentPositionY - $i);\n $allVisitedCoordinates[] = $nextCoordinates;\n }\n $currentPositionY -= $distance;\n break;\n }\n }\n $countArray = [];\n foreach ($allVisitedCoordinates as $key => $coordinates) {\n if (array_key_exists($coordinates, $countArray)) {\n $countArray[$coordinates]++;\n $c = $coordinates;\n break;\n } else {\n $countArray[$coordinates] = 1;\n }\n }\n $coordinates = explode(':', $c);\n $this->distanceTotal = abs($coordinates[0]) + abs($coordinates[1]);\n }", "public function scan()\r\n {\r\n $result = array(\"wormholes\" => array(), \"asteroids\" => array());\r\n // asteroids first.\r\n foreach ($this->asteroids as $asteroid) {\r\n // if the asteroid is within scanning range of the ship....\r\n if (abs($asteroid->getX() - $this->spaceShip->getX()) < $this->asteroidScanningRange &&\r\n abs($asteroid->getY() - $this->spaceShip->getY()) < $this->asteroidScanningRange &&\r\n abs($asteroid->getZ() - $this->spaceShip->getZ()) < $this->asteroidScanningRange) {\r\n // then add it's details to the result\r\n $result['asteroids'][] = array(\r\n // we don't give absolute positions of asteroids, only their location relative to the ship\r\n 'x' => $asteroid->getX() - $this->spaceShip->getX(),\r\n 'y' => $asteroid->getY() - $this->spaceShip->getY(),\r\n 'z' => $asteroid->getZ() - $this->spaceShip->getZ(),\r\n 'dx' => $asteroid->getDx(),\r\n 'dy' => $asteroid->getDY(),\r\n 'dz' => $asteroid->getDz()\r\n );\r\n }\r\n }\r\n // now do the same for the wormholes...\r\n // for wormholes we only return the nearest end, and then the SHA1 of the furthest end\r\n // the navigator will have to figure out what the input of the SHA1 was. If you've actually\r\n // bothered to read these comments, please be assured that there is a better way to do it\r\n // then to brute force them.\r\n foreach ($this->wormholes as $wormhole) {\r\n // we'll do pythagorean distance\r\n // first for end1\r\n $diffX = abs($wormhole->getX1() - $this->spaceShip->getX());\r\n $diffY = abs($wormhole->getY1() - $this->spaceShip->getY());\r\n $diffZ = abs($wormhole->getZ1() - $this->spaceShip->getZ());\r\n $diffXY = sqrt(($diffX * $diffX) + ($diffY * $diffY));\r\n $diffXYZ1 = sqrt(($diffZ * $diffZ) + ($diffXY * $diffXY));\r\n // then for end2\r\n $diffX = abs($wormhole->getX2() - $this->spaceShip->getX());\r\n $diffY = abs($wormhole->getY2() - $this->spaceShip->getY());\r\n $diffZ = abs($wormhole->getZ2() - $this->spaceShip->getZ());\r\n $diffXY = sqrt(($diffX * $diffX) + ($diffY * $diffY));\r\n $diffXYZ2 = sqrt(($diffZ * $diffZ) + ($diffXY * $diffXY));\r\n // now show them the details for the nearest end, and let them figure out the further one...\r\n if ($diffXYZ1 < $diffXYZ2) {\r\n $result['wormholes'][] = array(\r\n 'x' => $wormhole->getX1(),\r\n 'y' => $wormhole->getY1(),\r\n 'z' => $wormhole->getZ1(),\r\n 'destination' => sha1($wormhole->getX2() . ',' . $wormhole->getY2() . ',' . $wormhole->getZ2())\r\n );\r\n } else {\r\n $result['wormholes'][] = array(\r\n 'x' => $wormhole->getX2(),\r\n 'y' => $wormhole->getY2(),\r\n 'z' => $wormhole->getZ2(),\r\n 'destination' => sha1($wormhole->getX1() . ',' . $wormhole->getY1() . ',' . $wormhole->getZ1())\r\n );\r\n }\r\n }\r\n return $result;\r\n }", "function parseSDSS($output) {\n\n $xml = new SimpleXMLElement($output);\n \n\t\t\t\t$xpath_run = \"//field[@col='run']\";\n $xpath_camcol = \"//field[@col='camcol']\";\n\t\t\t\t$xpath_rerun = \"//field[@col='rerun']\";\n $xpath_field = \"//field[@col='field']\";\n\n $out_run = $xml->xpath($xpath_run);\n $out_camcol = $xml->xpath($xpath_camcol);\n\t\t\t\t$out_rerun = $xml->xpath($xpath_rerun);\n $out_field = $xml->xpath($xpath_field);\n \n $imagefields = array();\n \n $i = 0;\n while(list( , $node) = each($out_run)) {\n $imagefields[$i] = array(trim($node), 0);\n $i++;\n }\n \n $i = 0;\n while(list( , $node) = each($out_camcol)) {\n $imagefields[$i][1] = trim($node);\n $i++;\n }\n\n\t\t\t\t$i = 0;\n\t while(list( , $node) = each($out_rerun)) {\n\t $imagefields[$i][2] = trim($node);\n\t $i++;\n\t }\n\t\t\t\t$i = 0;\n\t while(list( , $node) = each($out_field)) {\n\t $imagefields[$i][3] = trim($node);\n\t $i++;\n\t }\n \n return $imagefields;\n }", "function live_neighbors($key, $type, $cells, $cols)\r\n\t{\r\n\t\t$live_neighbors = 0;\r\n\t\tif ($type !== 'ur' && $type !== 'rs' && $type !== 'br' && $cells[$key+1] == 'alive') {\r\n\t\t\t$live_neighbors++;\r\n\t\t}\r\n\t\tif ($type !== 'ul' && $type !== 'ls' && $type !== 'bl' && $cells[$key-1] == 'alive') {\r\n\t\t\t$live_neighbors++;\r\n\t\t}\r\n\t\tif ($type !== 'bl' && $type !== 'bs' && $type !== 'br' && $cells[$key+$cols] == 'alive') {\r\n\t\t\t$live_neighbors++;\r\n\t\t}\r\n\t\tif ($type !== 'ur' && $type !== 'rs' && $type !== 'br' && $type !== 'bl' && $type !== 'bs' && $cells[$key+$cols+1] == 'alive') {\r\n\t\t\t$live_neighbors++;\r\n\t\t}\r\n\t\tif ($type !== 'ul' && $type !== 'ls' && $type !== 'br' && $type !== 'bl' && $type !== 'bs' && $cells[$key+$cols-1] == 'alive') {\r\n\t\t\t$live_neighbors++;\r\n\t\t}\t\r\n\t\tif ($type !== 'ul' && $type !== 'us' && $type !== 'ur' && $cells[$key-$cols] == 'alive') {\r\n\t\t\t$live_neighbors++;\r\n\t\t}\t\t\r\n\t\tif ($type !== 'ul' && $type !== 'ls' && $type !== 'us' && $type !== 'bl' && $type !== 'ur' && $cells[$key-$cols-1] == 'alive') {\r\n\t\t\t$live_neighbors++;\r\n\t\t}\t\r\n\t\tif ($type !== 'ul' && $type !== 'us' && $type !== 'br' && $type !== 'ur' && $type !== 'rs' && $cells[$key-$cols+1] == 'alive') {\r\n\t\t\t$live_neighbors++;\r\n\t\t}\r\n\t\treturn $live_neighbors;\r\n\t}", "function get_inverter_data() {\n\t$context = stream_context_create(array(\n\t\t\t'http' => array(\n\t\t\t\t\t'header' => \"Authorization: Basic \" . base64_encode(\"pvserver:pvwr\"))));\n\t$data = file_get_contents('http://inverter.fritz.box', false, $context);\n\n\t$search_string = '<td width=\"70\" align=\"right\" bgcolor=\"#FFFFFF\">';\n\t$sl = strlen($search_string);\n\n\t/* Locate fields in order current, total, totalDaily */\n\t$cur_pos = strpos($data, $search_string, 0) + $sl;\n\t$total_pos = strpos($data, $search_string, $cur_pos+1) + $sl;\n\t$total_daily_pos = strpos($data, $search_string, $total_pos+1) + $sl;\n\n\t/* echo \"${cur_pos}, ${total_pos}, ${total_daily_pos}\"; */\n\n\t$cur = get_field($data, $cur_pos);\n\tif (strpos($cur, ' x x') != FALSE)\n\t\t$cur = 0;\n\t$total = get_field($data, $total_pos);\n\t$total_daily = get_field($data, $total_daily_pos);\n\t\n\t/* Next are: string voltage 1(V), L1(V), string 1 current (A), L1 power(W), string 2 voltage (V), L2(V), string 2 current (A) */\n\t/* Aim is to calculate DC input and thereby efficiency */\n\t$s1_v_pos = strpos($data, $search_string, $total_daily_pos+1) + $sl;\n\t$l1_v_pos = strpos($data, $search_string, $s1_v_pos+1) + $sl;\n\t$s1_a_pos = strpos($data, $search_string, $l1_v_pos+1) + $sl;\n\t$l1_w_pos = strpos($data, $search_string, $s1_a_pos+1) + $sl;\n\t$s2_v_pos = strpos($data, $search_string, $l1_w_pos+1) + $sl;\n\t$l2_v_pos = strpos($data, $search_string, $s2_v_pos+1) + $sl;\n\t$s2_a_pos = strpos($data, $search_string, $l2_v_pos+1) + $sl;\n\t\n\t$s1_v = get_field($data, $s1_v_pos);\n\t$s1_a = get_field($data, $s1_a_pos);\n\t$s2_v = get_field($data, $s2_v_pos);\n\t$s2_a = get_field($data, $s2_a_pos);\n\t\n\tif ($cur == 0) {\n\t\t$dc = 0;\n\t\t$eff = 0;\n\t} else {\n\t\t$dc = $s1_v * $s1_a + $s2_v * $s2_a;\n\t\t$eff = round (100.0 * $cur / $dc, 1);\n\t}\n\t\n\t/* echo \"${s1_v} ${s1_a} ${s2_v} ${s2_a} .. ${dc} .. ${eff}\\n\"; */\n\t\n\n\treturn join(\",\", array($cur, $total_daily, $total, $eff));\n}", "function read_cld_xml($xml_path, &$datetime, &$vehicleserial, &$vehiclename, &$vehiclenumber, &$last_halt_time, &$lat, &$lng, &$vehicletype, &$speed, &$io1, &$io2, &$io3, &$io4, &$io5, &$io6, &$io7, &$io8)\r\n {\r\n $fexist =1;\r\n $fix_tmp = 1;\r\n $DataValid == 0;\r\n $final_xml = $xml_path;\r\n $xml = fopen($final_xml, \"r\") or $fexist = 0;\r\n \r\n $count = count(file($xml_unsorted));\r\n //echo \"<BR>COUNT======== $count lines in $xml\";\r\n //$xml2 = '\"'.$xml.'\"';\r\n if($fexist)\r\n {\r\n $i=0;\r\n $format = 2;\r\n \r\n \twhile(!feof($xml)) // WHILE LINE != NULL\r\n \t{\r\n \t\t$DataValid = 0;\r\n $line = fgets($xml); // STRING SHOULD BE IN SINGLE QUOTE \r\n //echo '<textarea>'.$line.'</textarea>'; \r\n \r\n if(strpos($line,'c=\"1\"')) // RETURN FALSE IF NOT FOUND\r\n {\r\n $format = 1;\r\n $fix_tmp = 1;\r\n } \r\n if(strpos($line,'c=\"0\"'))\r\n {\r\n $format = 1;\r\n $fix_tmp = 0;\r\n } \r\n \r\n if ((preg_match('/d=\"\\d+.\\d+[a-zA-Z0-9]\\\"/', $line, $lat_match) ) && (preg_match('/d=\"\\d+.\\d+[a-zA-Z0-9]\\\"/', $line, $lng_match)) )\r\n { \r\n $lat_value = explode('=',$lat_match[0]);\r\n $lng_value = explode('=',$lng_match[0]);\r\n //echo \"<br>lat=\".$lat_value[1].\" lng=\".$lng_value[1];\r\n \r\n if( (strlen($lat_value[1])>5) && ($lat_value[1]!=\"-\") && (strlen($lng_value[1])>5) && ($lng_value[1]!=\"-\") )\r\n {\r\n $DataValid = 1;\r\n }\r\n }\r\n \r\n if( ($line[0] == '<') && ($line[strlen($line)-2] == '>') && ($fix_tmp==1) && ($format == 1) && ($DataValid == 1))\r\n {\r\n // echo \"<br>IN format1\"; \r\n $status = preg_match('/v=\"[^\" ]+/', $line, $vehicleserial_tmp);\r\n //echo \"Status=\".$status.'<BR>';\r\n //echo \"test1\".'<BR>';\r\n if($status==0)\r\n {\r\n continue;\r\n }\r\n //echo \"test2\".'<BR>';\r\n $status = preg_match('/w=\"[^\"]+/', $line, $vehiclename_tmp);\r\n if($status==0)\r\n {\r\n continue;\r\n }\r\n \r\n //echo \"test2\".'<BR>';\r\n $status = preg_match('/x=\"[^\"]+/', $line, $vehiclenumber_tmp);\r\n /*if($status==0)\r\n {\r\n continue;\r\n }*/\r\n // echo \"test3\".'<BR>';\r\n //$status = preg_match('/\\d+-\\d+-\\d+ \\d+:\\d+:\\d+/', $line, $datetime_tmp);\r\n $status = preg_match('/h=\"[^\"]+/', $line, $datetime_tmp);\t\r\n if($status==0)\r\n {\r\n continue;\r\n }\r\n\t\t\t\r\n\t\t\t $status = preg_match('/u=\"[^\"]+/', $line, $lasthalt_tmp);\t\r\n if($status==0)\r\n {\r\n continue;\r\n }\r\n\t\t\r\n //echo 'test4<BR>';\r\n $status = preg_match('/d=\"[^\" ]+/', $line, $lat_tmp);\r\n if($status==0)\r\n {\r\n continue;\r\n }\r\n //echo \"test5\".'<BR>';\r\n $status = preg_match('/e=\"[^\" ]+/', $line, $lng_tmp);\r\n if($status==0)\r\n {\r\n continue;\r\n }\r\n //echo \"test6\".'<BR>';\r\n /* $status = preg_match('/vehicletype=\"[^\" ]+/', $line, $vehicletype_tmp); \r\n if($status==0)\r\n {\r\n continue;\r\n }*/ \r\n //echo \"test7\".'<BR>'; \r\n $status = preg_match('/f=\"[^\" ]+/', $line, $speed_tmp);\r\n if($status==0)\r\n {\r\n continue;\r\n }\r\n\t\t\t\r\n\t\t\t\r\n //echo \"test8\".'<BR>';\r\n \r\n $tmp = explode(\"=\",$vehicleserial_tmp[0]);\r\n $vehicleserial[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n \r\n\t\t\t$status = preg_match('/i=\"[^\" ]+/', $line, $io1_tmp);\r\n if($status==0)\r\n {\r\n continue;\r\n } \r\n \r\n $status = preg_match('/j=\"[^\" ]+/', $line, $io2_tmp);\r\n if($status==0)\r\n {\r\n continue;\r\n } \r\n \r\n $status = preg_match('/k=\"[^\" ]+/', $line, $io3_tmp);\r\n if($status==0)\r\n {\r\n continue;\r\n } \r\n \r\n $status = preg_match('/l=\"[^\" ]+/', $line, $io4_tmp);\r\n if($status==0)\r\n {\r\n continue;\r\n } \r\n \r\n $status = preg_match('/m=\"[^\" ]+/', $line, $io5_tmp);\r\n if($status==0)\r\n {\r\n continue;\r\n } \r\n \r\n $status = preg_match('/n=\"[^\" ]+/', $line, $io6_tmp);\r\n if($status==0)\r\n {\r\n continue;\r\n } \r\n \r\n $status = preg_match('/o=\"[^\" ]+/', $line, $io7_tmp);\r\n if($status==0)\r\n {\r\n continue;\r\n } \r\n\t\t\t\r\n\t\t\t$status = preg_match('/p=\"[^\" ]+/', $line, $io8_tmp);\r\n if($status==0)\r\n {\r\n continue;\r\n } \r\n \r\n \r\n \r\n /* $tmp = explode(\"=\",$vehicleserial_tmp[0]);\r\n $vehicleserial[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n $io = get_io($vehicleserial[$i],'fuel');\r\n //echo \"io=\".$io;\r\n if($io!=\"io\")\r\n {\r\n $status = preg_match('/'.$io.'=\"[^\" ]+/', $line, $fuel_tmp);\r\n if($status==0)\r\n {\r\n continue;\r\n }\r\n }\r\n\t\t\t\r\n\t\t\t$tmp = explode(\"=\",$fuel_tmp[0]);\r\n $fuel[$i] = preg_replace('/\"/', '', $tmp[1]);*/\r\n \r\n $tmp = explode(\"=\",$datetime_tmp[0]);\r\n $datetime[$i] = preg_replace('/\"/', '', $tmp[1]); \r\n\t\t\t\r\n\t\t\t$tmp = explode(\"=\",$lasthalt_tmp[0]);\r\n $last_halt_time[$i] = preg_replace('/\"/', '', $tmp[1]);\t\t\r\n \r\n $tmp = explode(\"=\",$vehiclename_tmp[0]);\r\n $vehiclename[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n \r\n $tmp = explode(\"=\",$vehiclenumber_tmp[0]);\r\n $vehiclenumber[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n \r\n $tmp = explode(\"=\",$lat_tmp[0]);\r\n $lat[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n \r\n $tmp = explode(\"=\",$lng_tmp[0]);\r\n $lng[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n \r\n $tmp = explode(\"=\",$speed_tmp[0]);\r\n $speed[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n if($speed[$i]>200)\r\n\t\t\t{\r\n $speed[$i] =0; \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$tmp = explode(\"=\",$io1_tmp[0]);\r\n $io1[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n\t\t\t\r\n\t\t\t$tmp = explode(\"=\",$io2_tmp[0]);\r\n $io2[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n\t\t\t\r\n\t\t\t$tmp = explode(\"=\",$io3_tmp[0]);\r\n $io3[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n\t\t\t\r\n\t\t\t$tmp = explode(\"=\",$io4_tmp[0]);\r\n $io4[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n\t\t\t\r\n\t\t\t$tmp = explode(\"=\",$io5_tmp[0]);\r\n $io5[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n\t\t\t\r\n\t\t\t$tmp = explode(\"=\",$io6_tmp[0]);\r\n $io6[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n\t\t\t\r\n\t\t\t$tmp = explode(\"=\",$io7_tmp[0]);\r\n $io7[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n\t\t\t\r\n\t\t\t$tmp = explode(\"=\",$io8_tmp[0]);\r\n $io8[$i] = preg_replace('/\"/', '', $tmp[1]);\r\n \r\n $i++; \r\n } // IF FORMAT 2 CLOSED \r\n \r\n ///////////////////////////////////////////////////////////// \r\n } // WHILE CLOSED\r\n }\r\n}", "function get_drag_at_v($v) { \r\n\tglobal $kr,$mw,$mw_zu,$cw,$proj_A,$steig; # Annahme Luftdichte: 1.2051 bar\r\n $F_w=(($kr*($mw+$mw_zu)*9.81)+((9.810463*(10**-11))*(($v/3.6)**5)))+($cw*$proj_A*1.2051/2*(($v/3.6)**2))+(($mw+$mw_zu)*9.81*$steig/100);\r\n return $F_w;\r\n}", "public function drillAcross(){\n $attendences = unserialize($_SESSION['attendences']);\n $hasteam = unserialize($_SESSION['hasteam']);\n $commonDimension = $_SESSION['commonDimension'];\n $commonTbl = explode('.',$commonDimension)[0];\n $measures1 = $_SESSION['measure'];\n $measures2 = $_SESSION['hasTeamMeasure'];\n $slices = $_SESSION['slice'];\n $mea2Col = explode('(',$measures2)[1];\n $mea2Col = explode(')',$mea2Col)[0];\n\n // Initialize query statement that will use in this function\n $select = 'SELECT DISTINCT ';\n $join = ' INNER JOIN ';\n $group = ' GROUP BY ';\n $on = ' ON ';\n $equal = ' = ';\n $apos = \"'\"; //apostrophe\n $from = \" FROM \";\n \n // start generate query by adding select statement\n $firstQuery = $select;\n $firstQuery .= ' * '.$from;\n $firstQuery .= $attendences->tblName.\" \";\n \n // If there is slice and dice\n if(!empty($slices)){\n // get all tableName for slice and dice\n foreach($slices as $key => $slice){\n $keyArr[] = $slice->dimension;\n }\n // get the unique table from key array\n $uniqueKey = array_unique($keyArr);\n foreach($uniqueKey as $ky){\n foreach($slices as $key => $slice){\n if($ky == $slice->dimension){\n $val[$ky][] = $slice->value;\n }\n }\n }\n // join the dimension for slice\n foreach($uniqueKey as $ky){\n $firstQuery .= $join;\n $refTbl = explode('.',$ky)[0];\n $firstQuery .= $refTbl;\n $firstQuery .= $on;\n $firstQuery .= $attendences->tblName . '.' . $attendences->reference[$refTbl];\n $firstQuery .= $equal;\n $firstQuery .= $refTbl .'.'.$attendences->dimension[$refTbl]->pkey.\" \";\n }\n\n // add where statement if there is slice\n // loop through all the value\n $firstQuery .= ' WHERE ';\n foreach($val as $dim => $values){\n $firstQuery .= $dim;\n $firstQuery .= ' IN (';\n foreach($values as $index=>$value){\n $firstQuery .= $apos.$value.$apos;\n if($value != end($values)){\n $firstQuery .= \",\";\n }\n }\n $firstQuery .= \")\";\n if($values != end($val)){\n $firstQuery .= \" AND \";\n }\n }\n }\n\n // Start generating outer query\n // outer query\n $secondQuery = 'SELECT ';\n\n // add measure from fact table 1\n if(!empty($measures1)){\n foreach($measures1 as $measure){\n $secondQuery .= $measure;\n if($measure != end($measures1)){\n $secondQuery .= \",\";\n }\n }\n }\n\n // add the selected common dimension and loop until the highest hierarchy\n $dimension = $attendences->dimension[$commonTbl];\n $cd = explode('.',$commonDimension)[1];\n $arrKey = array_keys($dimension->column);\n $index = array_search($cd,$arrKey);\n \n while($index != -1 ){\n $secondQuery.=',';\n $secondQuery .= $dimension->column[$arrKey[$index]].\" \";\n $index--;\n }\n\n // add measure from fact table 2\n if(!empty($measures2)){\n $secondQuery .= \",\";\n $secondQuery .= $measures2;\n\n }\n\n\n // concat the inner query to outer query\n $secondQuery .= $from;\n $secondQuery .= \"( \";\n $secondQuery .= $firstQuery;\n $secondQuery .= \") as tbl\";\n \n\n // join the unique table with second fact and common dimension\n $secondQuery .= $join;\n $secondQuery .= $hasteam->tblName . $on;\n $secondQuery .= 'tbl'.\".\";\n $secondQuery .= $attendences->reference[$commonTbl];\n $secondQuery .= $equal;\n $secondQuery .= $hasteam->tblName.\".\".$hasteam->reference[$commonTbl];\n\n $secondQuery .= $join;\n $secondQuery .= $commonTbl . $on;\n $secondQuery .= $hasteam->tblName.\".\".$hasteam->reference[$commonTbl];\n $secondQuery .= $equal;\n $secondQuery .= $commonTbl.\".\".$attendences->dimension[$commonTbl]->pkey;\n \n\n // add the group by statement by looping until highest hierarchy\n $secondQuery .= $group;\n $dimension = $attendences->dimension[$commonTbl];\n $cd = explode('.',$commonDimension)[1];\n $arrKey = array_keys($dimension->column);\n $index = array_search($cd,$arrKey);\n \n while($index != -1 ){\n $secondQuery .= $dimension->column[$arrKey[$index]].\" \";\n $index--;\n if($index != -1){\n $secondQuery.=',';\n }\n }\n\n // Display the result dynamically same as generatePivot()\n // Start PDO connection\n $pivotStmt = $this->connect()->prepare($secondQuery);\n $pivotStmt->execute();\n\n $ttlCol = $pivotStmt->columnCount();\n $column = array();\n\n for ($counter = 0; $counter < $ttlCol; $counter ++) {\n $meta = $pivotStmt->getColumnMeta($counter);\n $column[] = $meta['name'];\n }\n \n $result = array();\n\n if($pivotStmt->rowCount()){\n while($row = $pivotStmt->fetch()){\n foreach($column as $col){\n $result[$col][] = $row[$col];\n }\n }\n\n $rowCount = $pivotStmt->rowCount();\n print('<div class=\"container-fluid\">');\n print('<div class=\"table-responsive table-responsive-sm\">');\n print \"<table class='table table-striped table-hover'>\";\n print '<thead class=\"\"><tr>';\n print '<tr>';\n for($j=0;$j<2;$j++){\n print '<th>'.'</th>';\n }\n $colspan = $ttlCol - 1;\n print '</tr>';\n print(\"<th scope='row'> Count </th>\");\n foreach($column as $col){\n print '<th>'.$col.'</th>';\n }\n print '</tr>';\n print '</thead>';\n for($i=0; $i < $rowCount; $i++){\n print('<tr>');\n print(\"<td scope='row'>\".$i.\"</td>\");\n foreach($column as $col){\n print('<td>'.$result[$col][$i].'</td>');\n }\n print('</tr>');\n }\n print '</table>';\n print '</div>';\n print '</div>';\n\n } \n }", "function solve_two(string $input) : string\n{\n\n $seats = array_map('str_split', xplode_input($input));\n $limit = 5;\n while(true) {\n [$seats, $hasChanged, $occupied] = walk_matrix($seats, $limit, 'visible_neighbors');\n if (!$hasChanged) {\n return sprintf(\"Occupied seats: %d\\n\", $occupied);\n }\n }\n}", "function calc_time_elapsed_and_barcode_command_type($scanner){\n\t$last_barcode_history_processed = css_get_last_barcode_time_elapsed_for_scanner($scanner);\n\t\n\t// Get some uncalculated data for this scanner.\n\t$barcode_data = css_get_new_barcode_history_for_scanner($scanner);\n\t\n\t// No calculated elapsed times yet, first call to function \n\tif(empty($last_barcode_history_processed)){\n\t\t//echo(\"First barcode skipped\");\n\t\t$elapsed_time = '-2'; //very first barcode data..\n\t\t$command_type_id = '-1'; //will get updated on the next function call\n\t\tcss_update_barcode_history_elapsed_time_command_type($barcode_data[0]['id'], $elapsed_time, $command_type_id);\n\t\tcalc_time_elapsed_and_barcode_command_type($scanner); // Call self, start the function over.\n\t}\n\t//print_r($last_barcode_history_processed);\n\t\n\t$barcode_commands = css_get_barcode_commands();\n\t//print_r($barcode_commands);\n\t\n\t$last_time = \"\";\n\t$command_type_id = \"\";\n\tforeach($barcode_data as $k => $v)\n\t{\n\t\t// Time Elapsed\n\t\tif($last_time == \"\"){\n\t\t\t$elapsed_time = strtotime($v['time_scanned']) - strtotime($last_barcode_history_processed[0]['time_scanned']);\n\t\t}else{\n\t\t\t$elapsed_time = strtotime($v['time_scanned']) - strtotime($last_time);\n\t\t}\n\t\t//echo(\"v\");\n\t\t//print_r($v);\n\t\t\n\t\t//$command_id = array_search($v['barcode'], array_column($barcode_commands,'barcode'));\n\t\t$command_id = searchForId(str_replace(\"\\n\",'',$v['barcode']), $barcode_commands, 'barcode');\n\t\t//echo(\"barcode:\");\n\t\t//echo($v['barcode']);\n\t\t//echo(\"Command_id:\");\n\t\t//echo($command_id);\n\t\t//echo(\"OK\");\n\t\t\t\n\t\t// Barcode Command Type\n\t\t//echo(\"<br>\");\n\t\t//echo($v['barcode'].\" \".$v['barcode'][0].\"<br>\");\n\t\t\n\t\tif($v['barcode'][0] == \"T\")\n\t\t{\n\t\t\t$command_type_id = \"2\";\n\t\t}else{\n\t\t\t//$command_id = array_search($v['barcode'], array_column($barcode_commands,'barcode'));\n\t\t\t//echo($command_id);\n\t\t\t//echo(\"<br>\");\n\t\t\tif($command_id == FALSE){\n\t\t\t\t$command_type_id = \"9\"; //unknown type of barcode\n\t\t\t}else{\n\t\t\t\t$command_type_id = $barcode_commands[$command_id]['command_type_id'];\n\t\t\t\t//echo($command_type_id);\n\t\t\t\t//echo(\"<br>\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tcss_update_barcode_history_elapsed_time_command_type($v['id'], $elapsed_time, $command_type_id);\n\t\t$last_time = $v['time_scanned'];\t\n\t}\n\n\n}", "private function getJumps(& $deck){\n\t\t$cards=$deck->getCards();\n\t\t\n\t\t$straight=array();\t//array for straight , ace is copied as 1\n\t\t$doubles=array();\t//array for dublicates\n\t\t$lastCardVal=0;\n\t\t// generate counters\n\t\t\tforeach ($cards as $card){\n\t\t\t//echo $card->value.',';\n\t\t\t\tif ($lastCardVal==0){\n\t\t\t\t\t$lastCardVal=$card->value;\n\t\t\t\t\t$jump->card=$card;\n\t\t\t\t\t$jump->val=1;\n\t\t\t\t\t$straight[]=$jump;\n\t\t\t\t\t$doubles[]=$jump;\n\t\t\t\t}else{\n\t\t\t\t\t$lastCardVal=$card->value - $lastCardVal;\n\t\t\t\t\t$jump->card=$card;\n\t\t\t\t\t$jump->val=$lastCardVal;\n\t\t\t\t\t$lastCardVal=$card->value;\n\t\t\t\t\t$straight[]=$jump;\n\t\t\t\t\t$doubles[]=$jump;\n\t\t\t\t}\n\t\t\t\tunset($jump);\n\t\t\t\t// if ace , add to start of [straight]ers\n\t\t\t\tif ($card->value==14){\n\t\t\t\t\t$x=$straight[0]->card->value;\n\t\t\t\t\tif($x==14){$x=1;}\n\t\t\t\t\t$newJump=$x-1;\n\t\t\t\t\t$straight[0]->val=$newJump;\n\t\t\t\t\t\n\t\t\t\t\t$jump->card=$card;\n\t\t\t\t\t$jump->val=1;\n\t\t\t\t\tarray_unshift($straight,$jump);\n\t\t\t\t}\n\t\t\t}//end foreach\n\t\t\t\n\t\t\t$sCount=count($straight)-1;\n\t\t\t$new_straight=array();\n\t\t\t$lastNStraighter=0;\n\t\t// flip straights values (inverse the diffirence)\n\t\t\tfor ($i=$sCount ; $i>=0 ; $i--){\n\t\t\t\t$card=$straight[$i]->card;\n\t\t\t\t\n\t\t\t\tif ($lastNStraighter==0){\n\t\t\t\t\t$lastNStraighter=$card->value;\n\t\t\t\t\t$jump->card=$card;\n\t\t\t\t\t$jump->val=1;\n\t\t\t\t\t$new_straight[]=$jump;\n\t\t\t\t}else{\n\t\t\t\t\t$lastNStraighter=$lastNStraighter - $card->value;\n\t\t\t\t\t$jump->card=$card;\n\t\t\t\t\t$jump->val=$lastNStraighter;\n\t\t\t\t\t$lastNStraighter=$card->value;\n\t\t\t\t\t$new_straight[]=$jump;\n\t\t\t\t}\n\t\t\t\tunset($jump);\n\t\t\t}//\n\t\t\t\n\t\t\tunset($straight);\n\t\t\t$straight = $new_straight;\n\t\t// get straights\n\t\t\t$sCount=count($straight);\n\t\t\t$straightCounters=array();\n\t\t\t$lastStraightCounter=0;\n\t\t\t//echo \"\\n\";\n\t\t\tfor ($i=0 ; $i<$sCount ; $i++){\n\t\t\t\t//echo $i.'-';\n\t\t\t\tif (!isset($straightCounters[$lastStraightCounter]->cards)){ // create cards array\n\t\t\t\t\t$straightCounters[$lastStraightCounter]->cards=array();\n\t\t\t\t}//\n\t\t\t\tif ($straight[$i]->val==1){\t// if next card , add it and count it\n\t\t\t\t\t$straightCounters[$lastStraightCounter]->count=$straightCounters[$lastStraightCounter]->count+1;\n\t\t\t\t\t$straightCounters[$lastStraightCounter]->cards[]=$straight[$i]->card;\n\t\t\t\t}//\n\t\t\t\t\n\t\t\t\tif ($straight[$i]->val==0 && $straightCounters[$lastStraightCounter]->count>0){\t// if same card , just add it to know the suites\n\t\t\t\t\t$straightCounters[$lastStraightCounter]->cards[]=$straight[$i]->card;\n\t\t\t\t}//\n\t\t\t\t\n\t\t\t\tif ($straight[$i]->val>1 && $straightCounters[$lastStraightCounter]->count>0){\n\t\t\t\t\t$lastStraightCounter++;\n\t\t\t\t}//\n\t\t\t\t\n\t\t\t}//end for\n\t\t\t\n\t\t// get doubles (count how many zeros series)\n\t\t\t$dCount=count($doubles);\n\t\t\t$doubleCounters=array();\n\t\t\t$lastDblCounter=0;\n\t\t\tfor ($i=0 ; $i<$dCount ; $i++){\n\t\t\t\tif (!isset($doubleCounters[$lastDblCounter]->cards)){ // create cards array\n\t\t\t\t\t$doubleCounters[$lastDblCounter]->cards=array();\n\t\t\t\t}//\n\t\t\t\t\n\t\t\t\tif ($doubles[$i]->val==0){\t// if same card , add it and count it\n\t\t\t\t\t$doubleCounters[$lastDblCounter]->count=$doubleCounters[$lastDblCounter]->count+1;\n\t\t\t\t\t$doubleCounters[$lastDblCounter]->cards[]=$doubles[$i]->card;\n\t\t\t\t}//\n\t\t\t\t\n\t\t\t\tif ($doubles[$i]->val>0 && $doubleCounters[$lastDblCounter]->count>0){\t// if diffirent card , generate next counter\n\t\t\t\t\t$lastDblCounter++;\n\t\t\t\t}//\n\t\t\t}//end for\n\t\t\t\n\t\t\t\n\t\t$result->straights=$straightCounters;\n\t\t$result->doubles=$doubleCounters;\n\t\t\n\t\t//print_r($straight);\n\t\t//print_r($result);\n\t\t\n\t\treturn $result;\n\t}", "public function getDn();", "public function get_smart_data($drive)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n try {\n $shell = new Shell();\n $args = '-A ' . $drive;\n $options['env'] = 'LANG=en_US';\n $shell->execute(self::CMD_SMARTCTL, $args, TRUE, $options);\n $retval = $shell->get_output();\n } catch (Exception $e) {\n //do nothing\n }\n\n foreach ($retval as $line) {\n $line2 = \" \".$line;\n $line2 = preg_replace('/\\s+/m', '|', $line2);\n $pieces = explode(\"|\", $line2);\n\n if ($pieces[1]=='194') {\n $field = 'Temp';\n // fudge for odd raw values which contain hours and minutes\n $output[$field]['Raw'] = $pieces[10].$pieces[11].$pieces[12].$pieces[13].$pieces[14];\n $output[$field]['T'] = $pieces[6];\n $output[$field]['W'] = $pieces[5];\n $output[$field]['V'] = $pieces[4];\n }\n if ($pieces[1]=='1') {\n $field = 'RawReadErrorRate';\n $output[$field]['Raw'] = $pieces[10];\n $output[$field]['T'] = $pieces[6];\n $output[$field]['W'] = $pieces[5];\n $output[$field]['V'] = $pieces[4];\n }\n if ($pieces[1]=='12') {\n $field ='PowerCycle';\n $output[$field]['Raw'] = $pieces[10];\n $output[$field]['T'] = $pieces[6];\n $output[$field]['W'] = $pieces[5];\n $output[$field]['V'] = $pieces[4];\n } \n if ($pieces[1]=='9') {\n $field = 'PowerOnHours';\n $output[$field]['Raw'] = $pieces[10];\n $output[$field]['T'] = $pieces[6];\n $output[$field]['W'] = $pieces[5];\n $output[$field]['V'] = $pieces[4];\n }\n if ($pieces[1]=='7') {\n $field = 'SeekErrorRate';\n $output[$field]['Raw'] = $pieces[10];\n $output[$field]['T'] = $pieces[6];\n $output[$field]['W'] = $pieces[5];\n $output[$field]['V'] = $pieces[4];\n }\n if ($pieces[1]=='5') {\n $field = 'ReAllocSector';\n $output[$field]['Raw'] = $pieces[10];\n $output[$field]['T'] = $pieces[6];\n $output[$field]['W'] = $pieces[5];\n $output[$field]['V'] = $pieces[4];\n }\n if ($pieces[1]=='10') {\n $field = 'SpinRetryCnt';\n $output[$field]['Raw'] = $pieces[10];\n $output[$field]['T'] = $pieces[6];\n $output[$field]['W'] = $pieces[5];\n $output[$field]['V'] = $pieces[4];\n }\n if ($pieces[1]=='3') {\n $field = 'SpinUpTime';\n $output[$field]['Raw'] = $pieces[10];\n $output[$field]['T'] = $pieces[6];\n $output[$field]['W'] = $pieces[5];\n $output[$field]['V'] = $pieces[4];\n } \n }\n return $output;\n }", "function checkCell($datum, $stunde, $adr_id)\n {\n //echo $datum.\" \".$stunde.\"<br>\";\n return $this->app->DB->SelectArr(\"SELECT aufgabe,adresse,prio\n FROM aufgabe\n WHERE DATE(startdatum) = '$datum'\n AND HOUR(TIME(startzeit)) <= $stunde \n AND HOUR(TIME(startzeit)) + stunden >= $stunde\n AND (adresse = $adr_id OR adresse = 0)\n OR \n ((DATE_SUB('$datum', INTERVAL MOD(DATEDIFF('$datum',DATE_FORMAT(startdatum, '%Y:%m:%d')),intervall_tage) day)='$datum'\n AND DATE_SUB('$datum', INTERVAL MOD(DATEDIFF('$datum',DATE_FORMAT(startdatum, '%Y:%m:%d')),intervall_tage) day)\n > abgeschlossen_am\n AND intervall_tage>0 AND (adresse=$adr_id OR adresse=0))\n AND HOUR(TIME(startzeit)) <= $stunde AND HOUR(TIME(startzeit)) + stunden >= $stunde) \n LIMIT 1\");\n }", "protected function get_wind( ) {\n// Format is dddssKT where ddd = degrees from North, ss = speed, KT for knots,\n// or dddssGggKT where G stands for gust and gg = gust speed. (ss or gg can be a 3-digit number.)\n// KT can be replaced with MPH for meters per second or KMH for kilometers per hour.\n\n if (preg_match('#^([0-9G]{5,10}|VRB[0-9]{2,3})(KT|MPS|KMH)$#',$this->current_group_text,$pieces)) {\n $this->wxInfo['ITEMS'][$this->tend]['CODE_WIND'] = $this->current_group_text;\n $this->current_group_text = $pieces[1];\n $unit = $pieces[2];\n if ($this->current_group_text == '00000') {\n $this->wxInfo['ITEMS'][$this->tend]['WIND_SPEED'] = '0'; // no wind\n }\n else {\n preg_match('#([0-9]{3}|VRB)([0-9]{2,3})G?([0-9]{2,3})?#',$this->current_group_text,$pieces);\n if ($pieces[1] == 'VRB') {\n $direction = 'VAR';\n $this->wxInfo['ITEMS'][$this->tend]['WIND_DIRECTION_TEXT'] = $direction;\n }\n else {\n $angle = (integer) $pieces[1];\n $compass = array('N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW');\n $direction = $compass[round($angle / 22.5) % 16];\n $this->wxInfo['ITEMS'][$this->tend]['WIND_DIRECTION'] = round($angle / 22.5)*22.5;\n $this->wxInfo['ITEMS'][$this->tend]['WIND_DIRECTION_TEXT'] = $direction;\n// $this->wxInfo['WIND_DIRECTION_TEXT'] =round($angle / 22.5);\n }\n\n if (isset($pieces[3]) && trim($pieces[3])!='') $this->wxInfo['ITEMS'][$this->tend]['WIND_GUST'] = $this->convertSpeed($pieces[3], $unit);\n $this->wxInfo['ITEMS'][$this->tend]['WIND_SPEED'] = $this->convertSpeed($pieces[2], $unit);\n }\n $this->current_ptr++;\n }\n $this->current_group++;\n }", "private function calculateConnections() {\n $map = array();\n $whiteRecheck = array();\n for ($row=0; $row < $this->matrix->getSize(); $row++) {\n for ($col=0; $col < $this->matrix->getSize(); $col++) {\n $map[$row][$col][5] = $this->isDarkInt($row, $col);\n $map[$row][$col][0] = 0;\n $map[$row][$col][4] = $this->isDarkInt($row, $col - 1);\n $map[$row][$col][6] = $this->isDarkInt($row, $col + 1);\n $map[$row][$col][8] = $this->isDarkInt($row - 1, $col);\n $map[$row][$col][2] = $this->isDarkInt($row + 1, $col);\n $map[$row][$col][7] = $this->isDarkInt($row - 1, $col - 1);\n $map[$row][$col][9] = $this->isDarkInt($row - 1, $col + 1);\n $map[$row][$col][1] = $this->isDarkInt($row + 1, $col - 1);\n $map[$row][$col][3] = $this->isDarkInt($row + 1, $col + 1);\n if (!$map[$row][$col][5]) {\n $fullCount = $map[$row][$col][1] + $map[$row][$col][2] + $map[$row][$col][3] + $map[$row][$col][4]\n + $map[$row][$col][6] + $map[$row][$col][7] + $map[$row][$col][8] + $map[$row][$col][9];\n $soloCount = $map[$row][$col][2] + $map[$row][$col][4] + $map[$row][$col][6] + $map[$row][$col][8];\n $map[$row][$col][7] = 0;\n $map[$row][$col][9] = 0;\n $map[$row][$col][1] = 0;\n $map[$row][$col][3] = 0;\n if ($this->isDarkInt($row, $col - 1) && $this->isDarkInt($row - 1, $col)) {\n $map[$row][$col][7] = 1;\n }\n if ($this->isDarkInt($row, $col + 1) && $this->isDarkInt($row - 1, $col)) {\n $map[$row][$col][9] = 1;\n }\n if ($this->isDarkInt($row, $col - 1) && $this->isDarkInt($row + 1, $col)) {\n $map[$row][$col][1] = 1;\n }\n if ($this->isDarkInt($row, $col + 1) && $this->isDarkInt($row + 1, $col)) {\n $map[$row][$col][3] = 1;\n }\n if ($fullCount >= 5) {\n $whiteRecheck[]=array('row' => $row, 'col' => $col);\n }\n if ($soloCount >= 4) {\n $map[$row][$col][0] = 1;\n }\n }\n }\n }\n foreach ($whiteRecheck as $key => $cw) {\n $row = $cw['row'];\n $col = $cw['col'];\n if (isset($map[$row + 1][$col - 1]) && !$map[$row + 1][$col - 1][5] && isset($map[$row + 1][$col - 1]) && $map[$row + 1][$col - 1][0]) {\n $map[$row][$col][1] = 0;\n $map[$row][$col - 1][3] = 0;\n $map[$row + 1][$col][7] = 0;\n $map[$row + 1][$col - 1][9] = 0;\n }\n if (isset($map[$row + 1][$col + 1]) && !$map[$row + 1][$col + 1][5] && isset($map[$row + 1][$col + 1]) && $map[$row + 1][$col + 1][0]) {\n $map[$row][$col][3] = 0;\n $map[$row][$col + 1][1] = 0;\n $map[$row + 1][$col][9] = 0;\n $map[$row + 1][$col + 1][7] = 0;\n }\n }\n return $map;\n }", "function dumpXYLayout($exclude=array())\r\n {\r\n $x=array();\r\n $y=array();\r\n $pos=array();\r\n //Iterates through controls calling show for all of them\r\n\r\n reset($this->_control->controls->items);\r\n while (list($k,$v)=each($this->_control->controls->items))\r\n {\r\n $dump=false;\r\n\r\n if( $v->Visible && !$v->IsLayer )\r\n {\r\n if( $this->_control->methodExists('getActiveLayer') )\r\n {\r\n $dump = ( (string)$v->Layer == (string)$this->_control->Activelayer );\r\n }\r\n else\r\n {\r\n $dump = true;\r\n }\r\n }\r\n\r\n if ($dump)\r\n {\r\n $left=$v->Left;\r\n $top=$v->Top;\r\n $aw=$v->Width;\r\n $ah=$v->Height;\r\n\r\n $x[]=$left;\r\n $x[]=$left+$aw;\r\n $y[]=$top;\r\n $y[]=$top+$ah;\r\n\r\n $pos[$left][$top]=$v;\r\n }\r\n }\r\n\r\n $width=$this->_control->Width;\r\n $height=$this->_control->Height;\r\n\r\n $x[]=$width;\r\n $y[]=$height;\r\n\r\n sort($x);\r\n sort($y);\r\n\r\n\r\n //Dumps the inner controls\r\n if ($this->_control->controls->count()>=1)\r\n {\r\n $widths=array();\r\n reset($x);\r\n if ($x[0]!=0) $widths[]=$x[0];\r\n while (list($k,$v)=each($x))\r\n {\r\n if ($k<count($x)-1)\r\n {\r\n if ($x[$k+1]-$v!=0) $widths[]=$x[$k+1]-$v;\r\n }\r\n else $widths[]=\"\";\r\n }\r\n\r\n $heights=array();\r\n reset($y);\r\n if ($y[0]!=0) $heights[]=$y[0];\r\n while (list($k,$v)=each($y))\r\n {\r\n if ($k<count($y)-1)\r\n {\r\n if ($y[$k+1]-$v!=0) $heights[]=$y[$k+1]-$v;\r\n }\r\n else $heights[]=\"\";\r\n }\r\n\r\n\r\n $y=0;\r\n reset($heights);\r\n\r\n while (list($hk,$hv)=each($heights))\r\n {\r\n if ($hv!=\"\")\r\n {\r\n\r\n }\r\n else continue;\r\n\r\n\r\n $rspan=false;\r\n\r\n $x=0;\r\n reset($widths);\r\n\r\n ob_start();\r\n while (list($k,$v)=each($widths))\r\n {\r\n $cs=1;\r\n $rs=1;\r\n\r\n\r\n if (isset($pos[$x][$y]))\r\n {\r\n if ((!is_object($pos[$x][$y])) && ($pos[$x][$y]==-1))\r\n {\r\n $x+=$v;\r\n continue;\r\n }\r\n }\r\n\r\n if (isset($pos[$x][$y]))\r\n {\r\n $control=$pos[$x][$y];\r\n }\r\n else $control=null;\r\n\r\n $w=0;\r\n\r\n if (is_object($control))\r\n {\r\n $w=$control->Width;\r\n $h=$control->Height;\r\n\r\n $tv=0;\r\n $th=0;\r\n\r\n $also=array();\r\n\r\n for ($kkk=$hk;$kkk<count($heights);$kkk++)\r\n {\r\n if ($heights[$kkk]!='')\r\n {\r\n $tv+=$heights[$kkk];\r\n if ($h>$tv)\r\n {\r\n $rs++;\r\n $pos[$x][$y+$tv]=-1;\r\n $also[]=$y+$tv;\r\n }\r\n else break;\r\n }\r\n }\r\n\r\n for ($ppp=$k;$ppp<count($widths);$ppp++)\r\n {\r\n if ($widths[$ppp]!='')\r\n {\r\n $th+=$widths[$ppp];\r\n\r\n if ($w>$th)\r\n {\r\n $cs++;\r\n $pos[$x+$th][$y]=-1;\r\n\r\n reset($also);\r\n while(list($ak,$av)=each($also))\r\n {\r\n $pos[$x+$th][$av]=-1;\r\n }\r\n }\r\n else break;\r\n }\r\n }\r\n }\r\n\r\n\r\n $width=\"\";\r\n if ($v!=\"\")\r\n {\r\n $zv=round(($v*100)/$this->_control->Width,2);\r\n $zv.=\"%\";\r\n $width=\" width=\\\"$v\\\" \";\r\n }\r\n\r\n if ($rs!=1)\r\n {\r\n $rspan=true;\r\n $rs=\" rowspan=\\\"$rs\\\" \";\r\n }\r\n else $rs=\"\";\r\n\r\n if ($cs!=1)\r\n {\r\n $cs=\" colspan=\\\"$cs\\\" \";\r\n $width=\"\";\r\n }\r\n else $cs=\"\";\r\n\r\n $hh=\"\";\r\n\r\n echo \"<td $width $hh $rs $cs valign=\\\"top\\\">\";\r\n\r\n if (is_object($control))\r\n {\r\n echo \"<div id=\\\"\".$control->Name.\"_outer\\\">\\n\";\r\n $control->show();\r\n echo \"\\n</div>\\n\";\r\n }\r\n else\r\n {\r\n if ($this->_usepixeltrans) echo \"<img src=\\\"rpcl/images/pixel_trans.gif\\\" width=\\\"1\\\" height=\\\"1\\\">\";\r\n }\r\n\r\n echo \"</td>\\n\";\r\n $x+=$v;\r\n }\r\n $trow=ob_get_contents();\r\n ob_end_clean();\r\n if ($hv!=\"\")\r\n {\r\n $zhv=round(($hv*100)/$this->_control->Height,2);\r\n $zhv.=\"%\";\r\n echo \"<tr height=\\\"$hv\\\">\";\r\n }\r\n echo $trow;\r\n echo \"</tr>\\n\";\r\n $y+=$hv;\r\n }\r\n }\r\n else\r\n {\r\n echo \"<tr><td>\";\r\n if ($this->_usepixeltrans) echo \"<img src=\\\"rpcl/images/pixel_trans.gif\\\" width=\\\"1\\\" height=\\\"1\\\">\";\r\n echo \"</td></tr>\";\r\n }\r\n\r\n reset($this->_control->controls->items);\r\n while (list($k,$v)=each($this->_control->controls->items))\r\n {\r\n if (($v->Visible) && ($v->IsLayer))\r\n {\r\n echo \"<div id=\\\"\".$v->Name.\"_outer\\\">\\n\";\r\n $v->show();\r\n echo \"\\n</div>\\n\";\r\n }\r\n }\r\n }", "function get_trees($rows, $right, $down) {\n $trees = 0;\n $position = 0;\n echo \"Slope: $right, $down\\n\";\n // Intentionally skip row 0 since our first check is on row 1\n for($i=1;$i<count($rows);$i++) {\n $position += $right;\n if($position > 30) $position -= 31;\n if(substr_compare($rows[$i], \"#\", $position, 1) === 0) {\n $trees++;\n }\n }\n echo \"Trees: $trees\\n\";\n return $trees;\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}", "protected function dnd()\n\t{\n\t\t$source_id = (int)array_pop(explode(\"_\", $_REQUEST[\"il_hform_source\"]));\n\t\tif($_REQUEST[\"il_hform_target\"] != \"droparea_end\")\n\t\t{\n\t\t\t$target_id = (int)array_pop(explode(\"_\", $_REQUEST[\"il_hform_target\"]));\n\t\t\t$pos = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$page = $this->object->getSurveyPages();\n\t\t\t$page = $page[$this->current_page-1];\n\t\t\t$last = array_pop($page);\n\t\t\t$target_id = (int)$last[\"question_id\"];\n\t\t\t$pos = 1;\n\t\t}\n\t\tif($source_id != $target_id)\n\t\t{\n\t\t\t$this->object->moveQuestions(array($source_id), $target_id, $pos);\n\t\t}\n\t}", "public function getDddCell()\n {\n return $this->dddCell;\n }", "function degree_to_compass_point($d){\r\n $dp = $d + 11.25;\r\n $dp = $dp % 360;\r\n $dp = floor($dp / 22.5) ;\r\n $points = array(\"N\",\"NNE\",\"NE\",\"ENE\",\"E\",\"ESE\",\"SE\",\"SSE\",\"S\",\"SSW\",\"SW\",\"WSW\",\"W\",\"WNW\",\"NW\",\"NNW\",\"N\");\r\n $dir = $points[$dp];\r\n return $dir;\r\n }", "public function get_directions();", "private function findLMove()\n\t{\n\t\t$moves = array();\n\t\t\n\t\tfor($i = 3; $i >= -3; $i--)\n\t\t{\n\t\t\tfor($j = -3; $j <= 3; $j++)\n\t\t\t{\n\t\t\t\t$hole = & $this->board[$i][$j];\n\t\t\t\t\n\t\t\t\tif($hole && !$hole->hasMarble)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// Right Down\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t@$this->board[$i][$j + 1]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i][$j + 2]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i - 1][$j + 1]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i - 2][$j + 1]->hasMarble\n\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$moves[0] = array();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$moves[0][] = array('left', $i, $j + 2);\n\t\t\t\t\t\t\t$moves[0][] = array('up', $i - 2, $j + 1);\n\t\t\t\t\t\t\t$moves[0][] = array('right', $i, $j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception $e) {} // Not available\n\t\t\t\t\t\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// Top Left\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t@$this->board[$i + 1][$j]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i + 2][$j]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i + 1][$j - 1]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i + 1][$j - 2]->hasMarble\n\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$moves[1] = array();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$moves[1][] = array('down', $i + 2, $j);\n\t\t\t\t\t\t\t$moves[1][] = array('right', $i + 1, $j - 2);\n\t\t\t\t\t\t\t$moves[1][] = array('up', $i, $j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception $e) {} // Not available\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// Down Right\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t@$this->board[$i - 1][$j]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i - 2][$j]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i - 1][$j + 1]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i - 1][$j + 2]->hasMarble\n\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$moves[2] = array();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$moves[2][] = array('up', $i - 2, $j);\n\t\t\t\t\t\t\t$moves[2][] = array('left', $i - 1, $j + 2);\n\t\t\t\t\t\t\t$moves[2][] = array('down', $i, $j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception $e) {} // Not available\n\t\t\t\t\t\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// Down Left\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t@$this->board[$i - 1][$j]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i - 2][$j]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i - 1][$j - 1]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i - 1][$j - 2]->hasMarble\n\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$moves[3] = array();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$moves[3][] = array('up', $i - 2, $j);\n\t\t\t\t\t\t\t$moves[3][] = array('right', $i - 1, $j - 2);\n\t\t\t\t\t\t\t$moves[3][] = array('down', $i, $j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception $e) {} // Not available\n\t\t\t\t\t\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// Top Right\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t@$this->board[$i + 1][$j]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i + 2][$j]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i + 1][$j + 1]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i + 1][$j + 2]->hasMarble\n\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$moves[4] = array();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$moves[4][] = array('down', $i + 2, $j);\n\t\t\t\t\t\t\t$moves[4][] = array('left', $i + 1, $j + 2);\n\t\t\t\t\t\t\t$moves[4][] = array('up', $i, $j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception $e) {} // Not available\n\t\t\t\t\t\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// Right Top\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t@$this->board[$i][$j + 1]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i][$j + 2]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i + 1][$j + 1]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i + 2][$j + 1]->hasMarble\n\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$moves[5] = array();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$moves[5][] = array('left', $i, $j + 2);\n\t\t\t\t\t\t\t$moves[5][] = array('down', $i + 2, $j + 1);\n\t\t\t\t\t\t\t$moves[5][] = array('right', $i, $j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception $e) {}// Not available\n\t\t\t\t\t\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// Left Top\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t@$this->board[$i][$j - 1]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i][$j - 2]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i + 1][$j - 1]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i + 2][$j - 1]->hasMarble\n\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$moves[6] = array();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$moves[6][] = array('right', $i, $j - 2);\n\t\t\t\t\t\t\t$moves[6][] = array('down', $i + 2, $j - 1);\n\t\t\t\t\t\t\t$moves[6][] = array('left', $i, $j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception $e) {}// Not available\n\t\t\t\t\t\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// Left Down\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t@$this->board[$i][$j - 1]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i][$j - 2]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i - 1][$j - 1]->hasMarble &&\n\t\t\t\t\t\t\t@$this->board[$i - 2][$j - 1]->hasMarble\n\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$moves[7] = array();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$moves[7][] = array('right', $i, $j - 2);\n\t\t\t\t\t\t\t$moves[7][] = array('up', $i - 2, $j - 1);\n\t\t\t\t\t\t\t$moves[7][] = array('left', $i, $j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception $e) {}// Not available\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $moves;\n\t}", "function readDIMAPv2($filePath) {\n\n libxml_use_internal_errors(true);\n\n $doc = new DOMDocument();\n $doc->loadXML(file_get_contents($filePath));\n \n $errors = libxml_get_errors();\n\n $isFirst = 1;\n $footprint = 'POLYGON((';\n \n $spectralMode = $doc->getElementsByTagname('Processing_Information')->item(0)->getElementsByTagname('Product_Settings')->item(0)->getElementsByTagname('SPECTRAL_PROCESSING')->item(0)->nodeValue;\n $vertices = $doc->getElementsByTagname('Dataset_Extent')->item(0)->getElementsByTagname('Vertex');\n foreach($vertices as $vertex) {\n $lon = trim($vertex->getElementsByTagName('LON')->item(0)->nodeValue);\n $lat = trim($vertex->getElementsByTagName('LAT')->item(0)->nodeValue);\n if ($isFirst === 1) {\n $lon1 = $lon;\n $lat1 = $lat;\n $isFirst = 0;\n }\n $footprint .= ((float) $lon) . ' ' . ((float) $lat) . ',';\n \n }\n $footprint .= ((float) $lon1) . ' ' . ((float) $lat1) . '))';\n \n // Only process first scene\n $scene = $doc->getElementsByTagname('Source_Identification')->item(0);\n $sceneInfo = $scene->getElementsByTagname('Strip_Source')->item(0);\n $time = $sceneInfo->getElementsByTagname('IMAGING_DATE')->item(0)->nodeValue . 'T' . $sceneInfo->getElementsByTagname('IMAGING_TIME')->item(0)->nodeValue;\n $mission = $sceneInfo->getElementsByTagname('MISSION')->item(0)->nodeValue;\n \n // CNES (SPOT) or DMC ?\n $parentIdentifier = \"urn:ogc:def:EOP:PHR:\" . $sceneInfo->getElementsByTagname('MISSION_INDEX')->item(0)->nodeValue; \n \n return array(\n 'identifier' => $parentIdentifier . ':' . correctIdentifier($scene->getElementsByTagname('SOURCE_ID')->item(0)->nodeValue . $spectralMode),\n 'parentidentifier' => $parentIdentifier,\n 'startdate' => $time,\n 'enddate' => $time,\n 'platform' => $mission . ($sceneInfo->getElementsByTagname('MISSION_INDEX')->item(0) ? ' ' . $sceneInfo->getElementsByTagname('MISSION_INDEX')->item(0)->nodeValue : ''),\n 'instrument' => $sceneInfo->getElementsByTagname('INSTRUMENT')->item(0)->nodeValue . ($sceneInfo->getElementsByTagname('INSTRUMENT_INDEX')->item(0) ? ' ' . $sceneInfo->getElementsByTagname('INSTRUMENT_INDEX')->item(0)->nodeValue : ''),\n 'footprint' => $footprint\n );\n\n}", "private function findLineMove()\n\t{\n\t\t$moves = array();\n\t\t\n\t\tfor($i = 3; $i >= -3; $i--)\n\t\t{\n\t\t\tfor($j = -3; $j <= 3; $j++)\n\t\t\t{\n\t\t\t\t$hole = & $this->board[$i][$j];\n\t\t\t\t\n\t\t\t\tif(\t$hole )\n\t\t\t\t{\n\t\t\t\t\tif($hole->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Top\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t$this->canMoveTo('up', $i, $j) &&\n\t\t\t\t\t\t\t!empty($this->board[$i + 3][$j]) &&\n\t\t\t\t\t\t\t$this->board[$i + 3][$j]->hasMarble\n\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$moves[0] = array();\n\t\t\t\t\t\t\t$moves[0][] = array('up', $i, $j);\n\t\t\t\t\t\t\t$moves[0][] = array('down', $i + 3, $j);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Right\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t$this->canMoveTo('right', $i, $j) &&\n\t\t\t\t\t\t\t!empty($this->board[$i][$j + 3]) &&\n\t\t\t\t\t\t\t$this->board[$i][$j + 3]->hasMarble\n\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$moves[1] = array();\n\t\t\t\t\t\t\t$moves[1][] = array('right', $i, $j);\n\t\t\t\t\t\t\t$moves[1][] = array('left', $i, $j + 3);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Down\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t$this->canMoveTo('down', $i, $j) &&\n\t\t\t\t\t\t\t!empty($this->board[$i - 3][$j]) &&\n\t\t\t\t\t\t\t$this->board[$i - 3][$j]->hasMarble\n\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$moves[2] = array();\n\t\t\t\t\t\t\t$moves[2][] = array('down', $i, $j);\n\t\t\t\t\t\t\t$moves[2][] = array('top', $i - 3, $j);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Left\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t$this->canMoveTo('left', $i, $j) &&\n\t\t\t\t\t\t\t!empty($this->board[$i][$j - 3]) &&\n\t\t\t\t\t\t\t$this->board[$i][$j - 3]->hasMarble\n\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$moves[3] = array();\n\t\t\t\t\t\t\t$moves[3][] = array('left', $i, $j);\n\t\t\t\t\t\t\t$moves[3][] = array('right', $i, $j - 3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $moves;\n\t}", "public function buscarDetalle_monitor($co_operacion_bd) {\r\n \t$query = \"SELECT \tc011t.* \r\n\t\t\t\t FROM \tc011t_detalle_monitor as c011t \r\n\t\t\t\t WHERE c011t.co_operacion_bd = '\".$co_operacion_bd.\"'\";\r\n\t$r = $this->pdo->_query($query);\r\n\treturn $r;\r\n }", "private function Build_DIFAT ( )\r\n\t{\r\n\t\t$seekPos\t\t\t\t= ftell ( $this -> fileStream );\t\r\n\t\t$this -> difatArray \t= $this -> OLEHeader -> Get_DIFAT ( );\r\n\t\t$firstDIFATSecLoc\t\t= $this -> OLEHeader -> Get_First_Difat_Sec_Loc( );\r\n\t\t\tif( $firstDIFATSecLoc != OLEFile::ENDOFCHAIN ) { \r\n\t\t\t\tfseek ( $this -> fileStream, ( $firstDIFATSecLoc * $this -> sectorSize ) + 512 );\r\n\t\t\t\t$readBuf = Helpers :: Hex_Str_To_Array ( Helpers :: Fix_Hex ( bin2hex ( fread ( $this -> fileStream, $this -> sectorSize ) ) , 8 ) , 8 );\r\n\t\t\t\t\r\n\t\t\t\tfor($i=0;$i<count($readBuf);$i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t$this -> difatArray [] = $readBuf [$i];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor($i=1;$i<$this->OLEHeader->Get_Num_DIFAT_Sectors();$i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t$count = count($this->difatArray) - 1;\r\n\t\t\t\t\tif( $this -> difatArray [ $count ] != OLEFile::ENDOFCHAIN ) {\r\n\t\t\t\t\t\tfseek ( $this -> fileStream, ($this -> difatArray [ $count ] * $this -> sectorSize ) + 512 );\r\n\t\t\t\t\t\tunset ( $this -> difatArray [ $count ] );\r\n\t\t\t\t\t\t$this -> difatArray = array_merge ( $this -> difatArray, Helpers :: Hex_Str_To_Array ( Helpers :: Fix_Hex ( bin2hex ( fread ( $this -> fileStream, $this -> sectorSize ) ) , 8 ) , 8 ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse break;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\tfseek ( $this -> fileStream, $seekPos );\t\r\n\t\treturn;\r\n\t}", "function GasStation($strArr) {\r\n $totalGasAtStation = 0;\r\n $totalGasToTravel = 0;\r\n $totalNumGasStation = array_shift($strArr);\r\n for ($i = 0; $i < $totalNumGasStation; $i++) {\r\n $gas = explode(':',$strArr[$i]);\r\n $totalGasAtStation = $totalGasAtStation + $gas[0];\r\n $totalGasToTravel = $totalGasToTravel + $gas[1];\r\n }\r\n if ($totalGasAtStation < $totalGasToTravel) {\r\n $strArr = \"impossible\";\r\n }\r\n // iterate through the routes \r\n else {\r\n \r\n $iteration = 0;\r\n $foundloop = false;\r\n while (($foundloop == false) && ($iteration <= $totalNumGasStation)) {\r\n $iteration++;\r\n $gasTank = 0;\r\n $isBrokeDown = false;\r\n $gasStationNum = 0;\r\n for ($gasStationNum; $gasStationNum < $totalNumGasStation; $gasStationNum++) {\r\n \r\n $gas = explode(':',$strArr[$gasStationNum]);\r\n $gasTank = $gasTank + $gas[0] - $gas[1];\r\n if ($gasTank < 0) {\r\n \r\n $isBrokeDown = true;\r\n break;\r\n }\r\n }\r\n \r\n if (($isBrokeDown == FALSE) && ($gasStationNum == 4)) {\r\n $strArr = $iteration;\r\n $foundloop = true;\r\n }\r\n else {\r\n $deltaGasStation = array_shift($strArr);\r\n $strArr[] = $deltaGasStation;\r\n\r\n }\r\n }\r\n }\r\n return $strArr; \r\n\r\n}", "private function mapDiagonal()\n {\n //plot out diagnal cells above\n if (!is_null($this->rowsAboveMe)) {\n $this->rowsAboveMe = array_reverse($this->rowsAboveMe);\n $counter = 1;\n foreach ($this->rowsAboveMe as $row) {\n if ($this->inRowRange((($this->cellNum + ($this->boardWidth * ($row - $this->myRowNum))) + $counter), $row)) {\n $this->disabledCells[] = (($this->cellNum + ($this->boardWidth * ($row - $this->myRowNum))) + $counter);\n }\n\n if ($this->inRowRange((($this->cellNum + ($this->boardWidth * ($row - $this->myRowNum))) + ($counter * -1)), $row)) {\n $this->disabledCells[] = (($this->cellNum + ($this->boardWidth * ($row - $this->myRowNum))) + ($counter * -1));\n }\n $counter++;\n }\n }\n\n //plot out diagnal cells below\n if (!is_null($this->rowsBelowMe)) {\n $counter = 1;\n foreach ($this->rowsBelowMe as $row) {\n if ($this->inRowRange((($this->cellNum + ($this->boardWidth * ($row - $this->myRowNum))) + $counter), $row)) {\n $this->disabledCells[] = (($this->cellNum + ($this->boardWidth * ($row - $this->myRowNum))) + $counter);\n }\n\n if ($this->inRowRange((($this->cellNum + ($this->boardWidth * ($row - $this->myRowNum))) + ($counter * -1)), $row)) {\n $this->disabledCells[] = (($this->cellNum + ($this->boardWidth * ($row - $this->myRowNum))) + ($counter * -1));\n }\n\n $counter++;\n }\n }\n }", "function getInOut($report) \n{\n\t$totals[\"in\"] = 0;\n\t$totals[\"out\"] = 0;\t\t\n\t$myData = $report->getData(\"/^f\\s+lRrBb\\s+\\d+\\s+(\\d+)\\s+(\\S+)\\s+(\\d+)\\s+(\\S+)\\s+(.+)/\");\n\tfor ($i = 0; $i < count($myData); $i++) {\n\t\tswitch ($myData[$i][5]) {\n\t\tcase \"http://i/\":\n\t\t\t$totals[\"in\"] = $myData[$i][1];\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"http://o/\":\n\t\t\t$totals[\"out\"] = $myData[$i][1];\n\t\t\tbreak;\n\t\t\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn $totals;\n}", "public function parse(){\n try {\n $table = new HomeNet_Model_DbTable_Apikeys();\n $apikey = $table->fetchRowById($this->apikey);\n\n $table = new HomeNet_Model_DbTable_Devices();\n $device = $table->fetchRowByHouseNodeDevice($apikey->house, $this->_packet->fromNode, $this->_packet->fromDevice);\n\n if(!$device && (!$device->command == $this->_packet->command)){\n throw new Zend_Exception('Cannot find matching device');\n }\n $this->saveDatapoint();\n /*\n $table = new HomeNet_Model_DbTable_Components();\n $component = $table->fetchAllByDevice($this->fromDevice);*/\n\n } catch (Zend_Exception $e){\n return $e->message();\n }\n return 'true';\n }", "function convert($file) {\n\t\t\n\t\t// max\n\t\t$MAX_X = 540;\n\t\t$MAX_Y = 340;\n\t\t\n\t\t// parse RDP\n if (($array = @parse_ini_file($file, true)) == false) {\n echo \"Erreur parse_ini_file\";\n }\n \n\t\t// afficher RDP\n\t\t//var_dump($array);\n\t\t\n\t\t// propriétés valides = PLACE\n\t\t$valid_prop_place = array();\n\t\t$valid_prop_place[] = 'POSITION.X';\n\t\t$valid_prop_place[] = 'POSITION.Y';\n\t\t$valid_prop_place[] = 'MARKING';\n \n\t\t// propriétés valides = TRANSITION\n\t\t$valid_prop_trans = array();\n\t\t$valid_prop_trans[] = 'POSITION.X';\n\t\t$valid_prop_trans[] = 'POSITION.Y';\n\t\t\n\t\t// propriétés valides = ARC\n\t\t$valid_prop_arc = array();\n\t\t$valid_prop_arc[] = 'SOURCE';\n\t\t$valid_prop_arc[] = 'DEST';\n\t\t$valid_prop_arc[] = 'PLACE2TRANS';\n\t\t$valid_prop_arc[] = 'VALUE';\n \n\t\t// recherche extreme Y\n\t\t$extreme_y = 9999;\n\t\twhile ($element = current($array)) {\n\t\t\t$key = key($array);\n\t\t\t// parcours prop\n\t\t\tif ($key[0] == 'P' || $key[0] == 'T' || $key[0] == 'A') { \n\t\t\t\tif (count($element) > 0) {\n\t\t\t\t\tforeach ($element as $prop=>$val) {\n\t\t\t\t\t\tif (in_array($prop, $valid_prop_place)) {\n\t\t\t\t\t\t\tif ($prop == 'POSITION.Y') {\n\t\t\t\t\t\t\t\tif ($val < $extreme_y) {\n\t\t\t\t\t\t\t\t\t$extreme_y = $val;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tnext($array); \n\t\t}\n\t\treset($array);\n\t\t// ratio y\n\t\t$ratio_y = $MAX_Y/abs($extreme_y);\n\t\t\t\n\t\t// recherche extreme x\n\t\t$extreme_x = -9999;\n\t\twhile ($element = current($array)) {\n\t\t\t$key = key($array);\n\t\t\t// parcours prop\n\t\t\tif ($key[0] == 'P' || $key[0] == 'T' || $key[0] == 'A') { \n\t\t\t\tif (count($element) > 0) {\n\t\t\t\t\tforeach ($element as $prop=>$val) {\n\t\t\t\t\t\tif (in_array($prop, $valid_prop_place)) {\n\t\t\t\t\t\t\tif ($prop == 'POSITION.X') {\n\t\t\t\t\t\t\t\tif ($val > $extreme_x) {\n\t\t\t\t\t\t\t\t\t$extreme_x = $val;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tnext($array); \n\t\t}\n\t\treset($array);\n\t\t// ratio y\n\t\t$ratio_x = $MAX_X/abs($extreme_x);\n\t\t\n\t\t// tableau de résultats\n\t\t$good_array = array();\n\n\t\t$i = 0;\n\t\t$j = 0;\n\t\t$k = 0;\n\t\t$b = false;\n\t\t// parcours élements\n\t\twhile ($element = current($array)) {\n\t\t\t$key = key($array);\n\t\t\t$b = false;\n\t\t\t// parcours prop\n\t\t\tif ($key[0] == 'P') { // place\n\t\t\t\tif (count($element) > 0) {\n\t\t\t\t\tforeach ($element as $prop=>$val) {\n\t\t\t\t\t\tif (in_array($prop, $valid_prop_place)) {\n\t\t\t\t\t\t\t$prop_good = convert_prop_to_another($prop);\n\t\t\t\t\t\t\tif ($prop_good == 'coordx') {\n\t\t\t\t\t\t\t\t$val = $val * $ratio_x;\n\t\t\t\t\t\t\t} else if ($prop_good == 'coordy') {\n\t\t\t\t\t\t\t\t$val = abs($val) * $ratio_y;\n\t\t\t\t\t\t\t}\n if ($prop_good == 'marking') {\n $good_array['places'][$i]['properties'][$prop_good] = $val;\n if ($val != 1) {\n $good_array['places'][$i]['properties'][$prop_good] = 0;\n }\n } else {\n $good_array['places'][$i][$prop_good] = $val;\n }\n $b = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ($b) {\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if ($key[0] == 'T') { // transition\n\t\t\t\tif (count($element) > 0) {\n\t\t\t\t\tforeach ($element as $prop=>$val) {\n\t\t\t\t\t\tif (in_array($prop, $valid_prop_trans)) {\n\t\t\t\t\t\t\t$prop_good = convert_prop_to_another($prop);\n\t\t\t\t\t\t\tif ($prop_good == 'coordx') {\n\t\t\t\t\t\t\t\t$val = $val * $ratio_x;\n\t\t\t\t\t\t\t} else if ($prop_good == 'coordy') {\n\t\t\t\t\t\t\t\t$val = abs($val) * $ratio_y;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$good_array['transitions'][$j][$prop_good] = $val;\n\t\t\t\t\t\t\t$b = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ($b) {\n\t\t\t\t\t\t$j++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if ($key[0] == 'A') { // arc\n\t\t\t\tif (count($element) > 0) {\n\t\t\t\t\tforeach ($element as $prop=>$val) {\n\t\t\t\t\t\tif (in_array($prop, $valid_prop_arc)) {\n\t\t\t\t\t\t\t$prop_good = convert_prop_to_another($prop);\n\t\t\t\t\t\t\tif ($prop_good == 'coordx') {\n\t\t\t\t\t\t\t\t$val = $val * $ratio_x;\n\t\t\t\t\t\t\t} else if ($prop_good == 'coordy') {\n\t\t\t\t\t\t\t\t$val = abs($val) * $ratio_y;\n\t\t\t\t\t\t\t} \n if ($prop_good == 'value') {\n $good_array['arcs'][$k]['properties'][$prop_good] = $val;\n if ($val != 1) {\n $good_array['arcs'][$k]['properties'][$prop_good] = 0;\n }\n } else {\n $good_array['arcs'][$k][$prop_good] = $val;\n }\n\t\t\t\t\t\t\t$b = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ($b) {\n\t\t\t\t\t\t$k++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tnext($array);\n\t\t}\n\t\treset($array);\n\t\t\n\t\t// affichage tableau résultats\n\t\t//var_dump($good_array); \n\t\t\n\t\t// encodage json\n\t\t$res_json = json_encode($good_array);\n\t\t$res_json = str_replace('\"','', $res_json);\n //$res_json_joli = pretty_json($res_json); \n\t\n\t\t// affichage json\n\t\t//echo '<b>Resultat JSON pas joli</b> : <br/><br/>'.$res_json;\n\t\t\n\t\t// affichage json joli\n\t\t//echo '<pre><b>Resultat JSON joli</b> : <br/><br/>'.$res_json_joli.'</pre>';\n\t\n\t\treturn $res_json;\n\t}", "private function _getPosData($sweres) {\n $swearr = explode(\"\\n\",$sweres);\n $points = array();\n $points['sun'] = $swearr[0]; //7\n $points['earth'] = fmod($swearr[0] + 180.0, 360.0); //5\n $points['moon'] = $swearr[1]; //4\n $points['lil'] = $swearr[2]; //2\n $points['nnode'] = $swearr[3]; //6\n $points['snode'] = fmod($swearr[3] + 180.0, 360.0); //8\n $points['asc'] = $swearr[4]; // 3\n $minuslil = $swearr[2] - 30.0;\n if ($minuslil < 0) {\n $minuslil += 360.0;\n }\n $points['prevlil'] = $minuslil; //1\n\n asort($points, SORT_NUMERIC);\n foreach (array_keys($points) as $key) {\n if ($key == 'asc') {\n break;\n } else {\n $points[$key] = array_shift($points);\n }\n }\n $order = array('prevlil' => 'I', 'lil' => 'II', 'asc' => 'III', 'moon' => 'IV', 'earth' => 'V',\n 'nnode' => 'VI', 'sun' => 'VII', 'snode' => 'VIII');\n $seq = array();\n foreach (array_keys($points) as $key) {\n $seq[] = $order[$key];\n }\n return $seq;\n }", "protected function get_runway() {\n// Format is Rrrr/vvvvFT where rrr = runway number and vvvv = visibility in feet.\n if (substr($this->current_group_text,0,1) == 'R') {\n $this->varConcatenate($this->wxInfo,'CODE_RUNWAY', $this->current_group_text);\n $this->varConcatenate($this->wxInfo, 'IGNORES', $this->current_group_text);\n\n $this->current_ptr++;\n }\n else $this->current_group++;\n }", "function part2() {\n foreach ($this->areas as $a) {\n extract($a); // creates in scope: $id, $x, $y, $w, $h\n $area = $this->charCounter($id, $this->fabric);\n echo \"$id: $area\\n\";\n if ($area == $w * $h) {\n die(\"$id fills $area cells and is not overlapped.\\n\");\n }\n }\n echo \"No region found.\\n\";\n }", "function init_map_groupes(): array\r\n{\r\n $col_depart = 0;\r\n $line_depart = 0;\r\n $num_groupe = 0;\r\n\r\n while ($line_depart !== 9) {\r\n while ($col_depart !== 9) {\r\n for ($y = $line_depart; $y < $line_depart + 3; $y++) {\r\n for ($x = $col_depart; $x < $col_depart + 3; $x++) {\r\n $map[$y][$x] = $num_groupe;\r\n }\r\n }\r\n $col_depart = $col_depart + 3;\r\n $num_groupe++;\r\n }\r\n $col_depart = 0;\r\n $line_depart = $line_depart + 3;\r\n }\r\n\r\n return $map;\r\n}", "public function run()\n {\n $subDistricts = [\n [1101010001, 1101010, \"LATIUNG\"],\n [1101010002, 1101010, \"LABUHAN BAJAU\"],\n [1101010003, 1101010, \"SUAK LAMATAN\"],\n [1101010004, 1101010, \"ANA AO\"],\n [1101010005, 1101010, \"LATALING\"],\n [1101010006, 1101010, \"PULAU BENGKALAK\"],\n [1101010007, 1101010, \"BADEGONG\"],\n [1101010008, 1101010, \"KEBUN BARU\"],\n [1101010009, 1101010, \"ULUL MAYANG\"],\n [1101010010, 1101010, \"PASIR TINGGI\"],\n [1101010011, 1101010, \"LABUHAN JAYA\"],\n [1101010012, 1101010, \"LABUHAN BAKTI\"],\n [1101010013, 1101010, \"BATU RALANG\"],\n [1101010014, 1101010, \"ALUS ALUS\"],\n [1101010015, 1101010, \"SEUNEUBOK\"],\n [1101010016, 1101010, \"BLANG SEBEL\"],\n [1101010017, 1101010, \"TRANS BARU\"],\n [1101010018, 1101010, \"TRANS MERANTI\"],\n [1101010019, 1101010, \"TRANS JERNGE\"],\n [1101020022, 1101020, \"AIR PINANG\"],\n [1101020023, 1101020, \"KUALA MAKMUR\"],\n [1101020024, 1101020, \"GANTING\"],\n [1101020025, 1101020, \"LINGGI\"],\n [1101020026, 1101020, \"LUGU\"],\n [1101020027, 1101020, \"SINABANG\"],\n [1101020028, 1101020, \"SUKA MAJU\"],\n [1101020029, 1101020, \"SUKA KARYA\"],\n [1101020030, 1101020, \"SUKA JAYA\"],\n [1101020031, 1101020, \"AIR DINGIN\"],\n [1101020032, 1101020, \"KOTA BATU\"],\n [1101020035, 1101020, \"SUAK BULUH\"],\n [1101020036, 1101020, \"UJUNG TINGGI\"],\n [1101020037, 1101020, \"PULAU SIUMAT\"],\n [1101020038, 1101020, \"SEFOYAN\"],\n [1101020039, 1101020, \"AMAITENG MULIA\"],\n [1101020040, 1101020, \"AMERIA BAHAGIA\"],\n [1101021001, 1101021, \"SITAL\"],\n [1101021002, 1101021, \"LEUBANG\"],\n [1101021003, 1101021, \"LEUBANG HULU\"],\n [1101021004, 1101021, \"AWE SEUBAL\"],\n [1101021005, 1101021, \"LANTIK\"],\n [1101021006, 1101021, \"AWE KECIL\"],\n [1101021007, 1101021, \"SALUR\"],\n [1101021008, 1101021, \"SALUR LATUN\"],\n [1101021009, 1101021, \"SALUR LASENGALU\"],\n [1101021010, 1101021, \"NANCALA\"],\n [1101021011, 1101021, \"MAUDIL\"],\n [1101021012, 1101021, \"INOR\"],\n [1101021013, 1101021, \"NAIBOS\"],\n [1101021014, 1101021, \"LAAYON\"],\n [1101021015, 1101021, \"ANGKEO\"],\n [1101021016, 1101021, \"BUNON\"],\n [1101021017, 1101021, \"SILENGAS\"],\n [1101021018, 1101021, \"PULAU TEUPAH\"],\n [1101022001, 1101022, \"KAHAT\"],\n [1101022002, 1101022, \"BUSUNG INDAH\"],\n [1101022003, 1101022, \"NANCAWA\"],\n [1101022004, 1101022, \"LABUAH\"],\n [1101022005, 1101022, \"ABAIL\"],\n [1101022006, 1101022, \"SIMPANG ABAIL\"],\n [1101022007, 1101022, \"LANTING\"],\n [1101022008, 1101022, \"LASIKIN\"],\n [1101022009, 1101022, \"MATANURUNG\"],\n [1101022010, 1101022, \"SUA SUA\"],\n [1101022011, 1101022, \"BATU BATU\"],\n [1101022012, 1101022, \"SITUBUK\"],\n [1101030001, 1101030, \"DIHIT\"],\n [1101030002, 1101030, \"LAUKE\"],\n [1101030003, 1101030, \"LAMBAYA\"],\n [1101030004, 1101030, \"LAKUBANG\"],\n [1101030005, 1101030, \"KAMPUNG AIE\"],\n [1101030006, 1101030, \"LAUREE\"],\n [1101030007, 1101030, \"LATITIK\"],\n [1101030008, 1101030, \"LAMAYANG\"],\n [1101030009, 1101030, \"WEL WEL\"],\n [1101030020, 1101030, \"SITUFA JAYA\"],\n [1101030021, 1101030, \"PUTRA JAYA\"],\n [1101030022, 1101030, \"LUAN SORIP\"],\n [1101030023, 1101030, \"SUAK BARU\"],\n [1101030024, 1101030, \"SEBBE\"],\n [1101030025, 1101030, \"KUTA BARU\"],\n [1101030026, 1101030, \"WEL LANGKOM\"],\n [1101031001, 1101031, \"KUALA BAKTI\"],\n [1101031002, 1101031, \"LUGU SEBAHAK\"],\n [1101031003, 1101031, \"GUNUNG PUTIH\"],\n [1101031004, 1101031, \"BABUSSALAM\"],\n [1101031005, 1101031, \"MUARA AMAN\"],\n [1101031006, 1101031, \"LUAN BALU\"],\n [1101031007, 1101031, \"SAMBAI\"],\n [1101031008, 1101031, \"KUALA BARU\"],\n [1101031009, 1101031, \"TANJUNG RAYA\"],\n [1101031010, 1101031, \"BULU HADIK\"],\n [1101032001, 1101032, \"BUBUHAN\"],\n [1101032002, 1101032, \"AMARABU\"],\n [1101032003, 1101032, \"KUTA INANG\"],\n [1101032004, 1101032, \"KUTA PADANG\"],\n [1101032005, 1101032, \"LATAK AYAH\"],\n [1101032006, 1101032, \"SIBULUH\"],\n [1101032007, 1101032, \"BORENGAN\"],\n [1101032008, 1101032, \"UJUNG PADANG\"],\n [1101040001, 1101040, \"UJUNG SALANG\"],\n [1101040002, 1101040, \"PADANG UNOI\"],\n [1101040003, 1101040, \"MEUNAFA\"],\n [1101040004, 1101040, \"NASREUHE\"],\n [1101040005, 1101040, \"ALONG\"],\n [1101040006, 1101040, \"PANTON LAWE\"],\n [1101040007, 1101040, \"MUTIARA\"],\n [1101040008, 1101040, \"KARYA BAKTI\"],\n [1101040009, 1101040, \"TAMON JAYA\"],\n [1101040010, 1101040, \"JAYA BARU\"],\n [1101040011, 1101040, \"TAMENG\"],\n [1101040012, 1101040, \"LALLA BAHAGIA\"],\n [1101040013, 1101040, \"SUAK MANANG\"],\n [1101040014, 1101040, \"BUNGA\"],\n [1101040015, 1101040, \"GANANG PUSAKO\"],\n [1101040016, 1101040, \"KENANGAN JAYA\"],\n [1101050007, 1101050, \"SANGGIRAN\"],\n [1101050008, 1101050, \"AMABAAN\"],\n [1101050009, 1101050, \"MITEUM\"],\n [1101050010, 1101050, \"MALASIN\"],\n [1101050011, 1101050, \"LAMAMEK\"],\n [1101050012, 1101050, \"SIGULAI\"],\n [1101050013, 1101050, \"SEMBILAN\"],\n [1101050014, 1101050, \"LAYABAUNG\"],\n [1101050015, 1101050, \"LHOK MAKMUR\"],\n [1101050016, 1101050, \"UJUNG HARAPAN\"],\n [1101050017, 1101050, \"LHOK BIKHAO\"],\n [1101050018, 1101050, \"BABUL MAKMUR\"],\n [1101050019, 1101050, \"BATU RAGI\"],\n [1101050020, 1101050, \"SINAR BAHAGIA\"],\n [1101051001, 1101051, \"LAFAKHA\"],\n [1101051002, 1101051, \"LHOK DALAM\"],\n [1101051003, 1101051, \"LUBUK BAIK\"],\n [1101051004, 1101051, \"LANGI\"],\n [1101051005, 1101051, \"SERAFON\"],\n [1101051006, 1101051, \"LHOK PAUH\"],\n [1101051007, 1101051, \"LAMEREM\"],\n [1101051008, 1101051, \"LEWAK\"],\n [1102010003, 1102010, \"PULAU BAGUK\"],\n [1102010004, 1102010, \"PULAU BALAI\"],\n [1102010005, 1102010, \"TELUK NIBUNG\"],\n [1102011001, 1102011, \"ASANTOLA\"],\n [1102011002, 1102011, \"UJUNG SIALIT\"],\n [1102011003, 1102011, \"HALOBAN\"],\n [1102011004, 1102011, \"SUKA MAKMUR\"],\n [1102020003, 1102020, \"PULO SAROK\"],\n [1102020004, 1102020, \"PASAR SINGKIL\"],\n [1102020005, 1102020, \"UJUNG\"],\n [1102020006, 1102020, \"KOTA SIMBOLING\"],\n [1102020007, 1102020, \"KILANGAN\"],\n [1102020009, 1102020, \"TELUK AMBUN\"],\n [1102020010, 1102020, \"RANTAU GEDANG\"],\n [1102020011, 1102020, \"TELUK RUMBIA\"],\n [1102020012, 1102020, \"TAKAL PASIR\"],\n [1102020013, 1102020, \"SELOK ACEH\"],\n [1102020014, 1102020, \"PEA BUMBUNG\"],\n [1102020015, 1102020, \"PEMUKA\"],\n [1102020019, 1102020, \"SUKA DAMAI\"],\n [1102020020, 1102020, \"UJUNG BAWANG\"],\n [1102020021, 1102020, \"SITI AMBIA\"],\n [1102020022, 1102020, \"SUKA MAKMUR\"],\n [1102021001, 1102021, \"GOSONG TELAGA UTARA\"],\n [1102021002, 1102021, \"GOSONG TELAGA SELATAN\"],\n [1102021003, 1102021, \"GOSONG TELAGA TIMUR\"],\n [1102021004, 1102021, \"TELAGA BAKTI\"],\n [1102021005, 1102021, \"KAMPUNG BARU\"],\n [1102021006, 1102021, \"KETAPANG INDAH\"],\n [1102021007, 1102021, \"GOSONG TELAGA BARAT\"],\n [1102022001, 1102022, \"KAYU MENANG\"],\n [1102022002, 1102022, \"KUALA BARU SUNGAI\"],\n [1102022003, 1102022, \"KUALA BARU LAUT\"],\n [1102022004, 1102022, \"SUKA JAYA\"],\n [1102030017, 1102030, \"PANGI\"],\n [1102030026, 1102030, \"TUGAN\"],\n [1102030027, 1102030, \"CIBUBUKAN\"],\n [1102030028, 1102030, \"KAIN GOLONG\"],\n [1102030029, 1102030, \"SUKAREJO\"],\n [1102030030, 1102030, \"TUH TUHAN\"],\n [1102030031, 1102030, \"LAE GECIH\"],\n [1102030032, 1102030, \"SIATAS\"],\n [1102030033, 1102030, \"KUTA KERANGAN\"],\n [1102030034, 1102030, \"LIPAT KAJANG\"],\n [1102030035, 1102030, \"TANJUNG MAS\"],\n [1102030036, 1102030, \"SERASAH\"],\n [1102030038, 1102030, \"UJUNG LIMUS\"],\n [1102030039, 1102030, \"SILATONG\"],\n [1102030040, 1102030, \"LAE RIMAN\"],\n [1102030041, 1102030, \"PERTABAS\"],\n [1102030042, 1102030, \"KUTA TINGGI\"],\n [1102030043, 1102030, \"LAE NIPE\"],\n [1102030044, 1102030, \"PAKIRAMAN\"],\n [1102030048, 1102030, \"LAE GAMBIR\"],\n [1102030049, 1102030, \"KUTA BATU\"],\n [1102030050, 1102030, \"GUHA\"],\n [1102030051, 1102030, \"LIPAT KAJANG ATAS\"],\n [1102030052, 1102030, \"SIDODADI\"],\n [1102030053, 1102030, \"PANDAN SARI\"],\n [1102031001, 1102031, \"PERTAMPAKAN\"],\n [1102031002, 1102031, \"TANAH MERAH\"],\n [1102031003, 1102031, \"SEBATANG\"],\n [1102031004, 1102031, \"SEPING BARU\"],\n [1102031005, 1102031, \"PERANGUSAN\"],\n [1102031006, 1102031, \"GUNUNG LAGAN\"],\n [1102031007, 1102031, \"TANAH BARA\"],\n [1102031008, 1102031, \"SUKA MAKMUR\"],\n [1102031009, 1102031, \"SIDOREJO\"],\n [1102031010, 1102031, \"PANDAN SARI\"],\n [1102031011, 1102031, \"BLOK 31\"],\n [1102031012, 1102031, \"BLOK 18\"],\n [1102031013, 1102031, \"SANGGABERU SILULUSAN\"],\n [1102031014, 1102031, \"BLOK 15\"],\n [1102031015, 1102031, \"TULAAN\"],\n [1102031016, 1102031, \"BLOK VI BARU\"],\n [1102031017, 1102031, \"TUNAS HARAPAN\"],\n [1102031018, 1102031, \"LAE BUTAR\"],\n [1102031019, 1102031, \"RIMO\"],\n [1102031020, 1102031, \"SIANJO ANJO MERIAH\"],\n [1102031021, 1102031, \"CINGKAM\"],\n [1102031022, 1102031, \"BUKIT HARAPAN\"],\n [1102031023, 1102031, \"PENJAHITAN\"],\n [1102031024, 1102031, \"TANJUNG BETIK\"],\n [1102031025, 1102031, \"LABUHAN KERA\"],\n [1102032001, 1102032, \"SITUBAN MAKMUR\"],\n [1102032002, 1102032, \"LAE BALNO\"],\n [1102032003, 1102032, \"SIKORAN\"],\n [1102032004, 1102032, \"NAPA GALUH\"],\n [1102032005, 1102032, \"BISKANG\"],\n [1102032006, 1102032, \"SITUBUH-TUBUH\"],\n [1102032007, 1102032, \"DANAU PINANG\"],\n [1102033001, 1102033, \"MANDUMPANG\"],\n [1102033002, 1102033, \"ALUR LINCI\"],\n [1102033003, 1102033, \"SIRIMO MUNGKUR\"],\n [1102033004, 1102033, \"KERAS\"],\n [1102033005, 1102033, \"KETANGKUHAN\"],\n [1102033006, 1102033, \"SIOMPIN\"],\n [1102033007, 1102033, \"BULU ARA\"],\n [1102033008, 1102033, \"LAE BANGUN\"],\n [1102033009, 1102033, \"BULU SEMA\"],\n [1102033010, 1102033, \"PANGKALAN SULAMPI\"],\n [1102033011, 1102033, \"SURO BARU\"],\n [1102033012, 1102033, \"LAE CIKALA\"],\n [1102042001, 1102042, \"SRI KAYU\"],\n [1102042002, 1102042, \"PEA JAMBU\"],\n [1102042003, 1102042, \"LAE PINANG\"],\n [1102042004, 1102042, \"SINGKOHOR\"],\n [1102042005, 1102042, \"MUKTI HARAPAN\"],\n [1102042006, 1102042, \"MUKTI JAYA\"],\n [1102042007, 1102042, \"LAE SIPOLA\"],\n [1102043001, 1102043, \"MUARA PEA\"],\n [1102043002, 1102043, \"SUMBER MUKTI\"],\n [1102043003, 1102043, \"LADANG BISIK\"],\n [1102043004, 1102043, \"SAMAR DUA\"],\n [1102043005, 1102043, \"BUTAR\"],\n [1102043006, 1102043, \"MUKTI LINCIR\"],\n [1102043007, 1102043, \"LAPAHAN BUAYA\"],\n [1102043008, 1102043, \"LENTONG\"],\n [1102043009, 1102043, \"DANAU BUNGARA\"],\n [1102043010, 1102043, \"SELAKAR UDANG\"],\n [1103010001, 1103010, \"KUTA PADANG\"],\n [1103010002, 1103010, \"RAKET\"],\n [1103010003, 1103010, \"GAMPONG TENGAH\"],\n [1103010004, 1103010, \"TEPIN TINGGI\"],\n [1103010005, 1103010, \"IE MEUDAMA\"],\n [1103010009, 1103010, \"UJONG TAN0H\"],\n [1103010010, 1103010, \"KEUDE TRUMON\"],\n [1103010011, 1103010, \"KUTA BARU\"],\n [1103010012, 1103010, \"SINGLENG\"],\n [1103010013, 1103010, \"PANTON BILI\"],\n [1103010027, 1103010, \"UPT II PD HARAPAN\"],\n [1103010030, 1103010, \"SEUNABOK JAYA (EX UPT V)\"],\n [1103011001, 1103011, \"TITI POBEN\"],\n [1103011002, 1103011, \"ALUR BUJOK\"],\n [1103011003, 1103011, \"SEUNEUBOK PUNTHO\"],\n [1103011008, 1103011, \"PINTO RIMBA\"],\n [1103011009, 1103011, \"KRUNG LUAS\"],\n [1103011010, 1103011, \"JAMBO DALEM\"],\n [1103011011, 1103011, \"KAPAI SEUSAK\"],\n [1103011012, 1103011, \"UPT I SNB PUSAKA\"],\n [1103012001, 1103012, \"LHOK RAYA\"],\n [1103012002, 1103012, \"IE JEUREUNEH\"],\n [1103012003, 1103012, \"NACA\"],\n [1103012004, 1103012, \"COT BAYU\"],\n [1103012005, 1103012, \"JAMBO PAPEUN\"],\n [1103012006, 1103012, \"LADANG RIMBA\"],\n [1103012007, 1103012, \"PULO PAYA\"],\n [1103012008, 1103012, \"KRUENG BATEE\"],\n [1103012009, 1103012, \"KAMPONG TEUNGOH\"],\n [1103012010, 1103012, \"GUNONG KAPHO\"],\n [1103020001, 1103020, \"UJUNG MANGKI\"],\n [1103020002, 1103020, \"KEUDE BAKONGAN\"],\n [1103020003, 1103020, \"KAMPUNG BARU\"],\n [1103020014, 1103020, \"UJUNG PADANG\"],\n [1103020015, 1103020, \"KMP DRIEN\"],\n [1103020023, 1103020, \"DAHRUL IHSAN\"],\n [1103020024, 1103020, \"PADANG BEURAHAN\"],\n [1103021002, 1103021, \"UJUNG PULO CUT\"],\n [1103021003, 1103021, \"UJUNG PULO RAYEUK\"],\n [1103021004, 1103021, \"PASI SEUBADEH\"],\n [1103021005, 1103021, \"LADANG RIMBA\"],\n [1103021006, 1103021, \"SIMPANG\"],\n [1103021007, 1103021, \"SAWAH TINGKEUM\"],\n [1103021008, 1103021, \"SEULEUKAT\"],\n [1103022001, 1103022, \"SENEUBOK ALUR BULAH\"],\n [1103022002, 1103022, \"ALURDUAMAS\"],\n [1103022003, 1103022, \"JAMBO KEUPOK\"],\n [1103022004, 1103022, \"UJUNG TANOH\"],\n [1103022005, 1103022, \"BEUTONG\"],\n [1103022006, 1103022, \"UJUNG GUNONG RAYEK\"],\n [1103022007, 1103022, \"UJUNG GUNUNG CUT\"],\n [1103022008, 1103022, \"RAMBONG\"],\n [1103022009, 1103022, \"SEUNEUBOK KEURANJI\"],\n [1103022010, 1103022, \"BUKIT GADING\"],\n [1103030001, 1103030, \"PASI LEMBANG\"],\n [1103030002, 1103030, \"UJUNG PADANG\"],\n [1103030003, 1103030, \"INDRA DAMAI\"],\n [1103030004, 1103030, \"SUAQ BAKONG\"],\n [1103030005, 1103030, \"BARAT DAYA\"],\n [1103030006, 1103030, \"SIALANG\"],\n [1103030007, 1103030, \"KAPEH\"],\n [1103030008, 1103030, \"PULO IE\"],\n [1103030009, 1103030, \"JUA\"],\n [1103030010, 1103030, \"PASI MERAPAT\"],\n [1103030011, 1103030, \"UJUNG\"],\n [1103030012, 1103030, \"LUAR\"],\n [1103030013, 1103030, \"KEDAI KANDANG\"],\n [1103030014, 1103030, \"RANTAU BINUANG\"],\n [1103030015, 1103030, \"UJUNG PASIR\"],\n [1103030016, 1103030, \"GELUMBUK\"],\n [1103030017, 1103030, \"KEDAI RUNDING\"],\n [1103031001, 1103031, \"SAPIK\"],\n [1103031002, 1103031, \"DURIAN KAWAN\"],\n [1103031003, 1103031, \"ALAI\"],\n [1103031004, 1103031, \"PAYA DAPUR\"],\n [1103031005, 1103031, \"PUCUK LEMBANG\"],\n [1103031006, 1103031, \"LAWE BULUH DIDI\"],\n [1103031007, 1103031, \"LAWE SAWAH\"],\n [1103031008, 1103031, \"PAYA LABA\"],\n [1103031009, 1103031, \"LAWE CIMANOK\"],\n [1103040001, 1103040, \"KEDAI PADANG\"],\n [1103040002, 1103040, \"PASI KUALA BAU\"],\n [1103040003, 1103040, \"SUAQ GERINGGENG\"],\n [1103040004, 1103040, \"SIMPANG LHEE\"],\n [1103040005, 1103040, \"SIMPANG EMPAT\"],\n [1103040006, 1103040, \"JAMBO MANYANG\"],\n [1103040007, 1103040, \"LIMAU PURUT\"],\n [1103040008, 1103040, \"PULO KAMBING\"],\n [1103040009, 1103040, \"KAMPUNG PAYA\"],\n [1103040010, 1103040, \"KRUENG BATU\"],\n [1103040011, 1103040, \"GUNONG PULO\"],\n [1103040012, 1103040, \"PULO IE I\"],\n [1103040013, 1103040, \"KRUENG BATEE\"],\n [1103040014, 1103040, \"PASI KUALA ASAHAN\"],\n [1103040015, 1103040, \"FAJAR HARAPAN\"],\n [1103040036, 1103040, \"KRUENG KLUET\"],\n [1103040039, 1103040, \"ALUR MAS\"],\n [1103040050, 1103040, \"KAMPUNG TINGGI\"],\n [1103040051, 1103040, \"KAMPUNG RUAK\"],\n [1103040052, 1103040, \"KOTA FAJAR\"],\n [1103040053, 1103040, \"GUNUNG PUDUNG\"],\n [1103041001, 1103041, \"UJUNG PADANG ASAHAN\"],\n [1103041002, 1103041, \"PULO IE II\"],\n [1103041003, 1103041, \"IE MIRAH\"],\n [1103041004, 1103041, \"UJUNG PADANG RASIAN\"],\n [1103041005, 1103041, \"PASI RASIAN\"],\n [1103041006, 1103041, \"TEUPIN GAJAH\"],\n [1103041007, 1103041, \"KAMPUNG BARO\"],\n [1103041008, 1103041, \"KRUENG KELEE\"],\n [1103041009, 1103041, \"LHOK SIALANG RAYEUK\"],\n [1103041010, 1103041, \"LHOK SIALANG CUT\"],\n [1103041011, 1103041, \"PAYATEUK\"],\n [1103041012, 1103041, \"SILOLO\"],\n [1103041013, 1103041, \"KAMPUNG BARU\"],\n [1103041014, 1103041, \"SI NEUBOK\"],\n [1103041015, 1103041, \"LADANG TUHA\"],\n [1103041016, 1103041, \"PANTON BILI\"],\n [1103041017, 1103041, \"LADANG TEUNGOH\"],\n [1103041018, 1103041, \"PUCUK KRUENG\"],\n [1103041019, 1103041, \"MATA IE\"],\n [1103041020, 1103041, \"UJUNG BATU\"],\n [1103041021, 1103041, \"PANTE RAJA\"],\n [1103042001, 1103042, \"JAMBO PAPAN\"],\n [1103042002, 1103042, \"KOTO INDARUNG\"],\n [1103042003, 1103042, \"SIURAI URAI\"],\n [1103042004, 1103042, \"MALAKA\"],\n [1103042005, 1103042, \"LAWE MELANG\"],\n [1103042006, 1103042, \"KOTO\"],\n [1103042007, 1103042, \"KAMPUNG SAWAH\"],\n [1103042008, 1103042, \"KAMPUNG PADANG\"],\n [1103042009, 1103042, \"PULO AIR\"],\n [1103042010, 1103042, \"MERSAK\"],\n [1103042011, 1103042, \"SIMPANG DUA\"],\n [1103042012, 1103042, \"SIMPANG TIGA\"],\n [1103042013, 1103042, \"ALUR KEJRUN\"],\n [1103050001, 1103050, \"GUNUNG KERAMBIL\"],\n [1103050002, 1103050, \"AIR BERUDANG\"],\n [1103050003, 1103050, \"LHOK KETAPANG\"],\n [1103050004, 1103050, \"HILIR\"],\n [1103050005, 1103050, \"PASAR\"],\n [1103050006, 1103050, \"PADANG\"],\n [1103050007, 1103050, \"TEPI AIR\"],\n [1103050008, 1103050, \"HULU\"],\n [1103050009, 1103050, \"JAMBO APHA\"],\n [1103050010, 1103050, \"LHOK BENGKUANG\"],\n [1103050011, 1103050, \"BATU ITAM\"],\n [1103050012, 1103050, \"PANJUPIAN\"],\n [1103050013, 1103050, \"LHOK RUKAM\"],\n [1103050014, 1103050, \"AIR PINANG\"],\n [1103050015, 1103050, \"PANTON LUAS\"],\n [1103050016, 1103050, \"LHOK BENGKUANG TIMUR\"],\n [1103060001, 1103060, \"UJUNG TANAH\"],\n [1103060002, 1103060, \"PAYONAN GADANG\"],\n [1103060003, 1103060, \"LUBUK LAYU\"],\n [1103060004, 1103060, \"SUAQ HULU\"],\n [1103060005, 1103060, \"LUAR\"],\n [1103060006, 1103060, \"UJUNG KAMPUNG\"],\n [1103060007, 1103060, \"TAMPANG\"],\n [1103060008, 1103060, \"JILATANG\"],\n [1103060009, 1103060, \"AIR SIALANG HULU\"],\n [1103060010, 1103060, \"AIR SIALANG TENGAH\"],\n [1103060011, 1103060, \"AIR SIALANG HILIR\"],\n [1103060012, 1103060, \"SUBARANG\"],\n [1103060013, 1103060, \"GUNUNG KETEK\"],\n [1103060014, 1103060, \"KOTA BARU\"],\n [1103060015, 1103060, \"MADAT\"],\n [1103060016, 1103060, \"DALAM\"],\n [1103060017, 1103060, \"TENGAH\"],\n [1103060018, 1103060, \"BALAI\"],\n [1103060019, 1103060, \"BARU\"],\n [1103060020, 1103060, \"GADANG\"],\n [1103060021, 1103060, \"LADANG KASIK PUTIH\"],\n [1103060022, 1103060, \"LADANG PANTON LUAS\"],\n [1103060023, 1103060, \"ALUR SIMERAH\"],\n [1103060024, 1103060, \"ALUR PINANG\"],\n [1103060025, 1103060, \"GUNUNG CUT\"],\n [1103060026, 1103060, \"KUTA BLANG\"],\n [1103060027, 1103060, \"BATEE TUNGGAI\"],\n [1103060028, 1103060, \"ARAFAH\"],\n [1103070001, 1103070, \"SAWANG BAU\"],\n [1103070002, 1103070, \"UJUNG PADANG\"],\n [1103070003, 1103070, \"KUTA BARO\"],\n [1103070004, 1103070, \"SIMPANG III\"],\n [1103070005, 1103070, \"BLANG GELINGGANG\"],\n [1103070006, 1103070, \"MEULIGO\"],\n [1103070007, 1103070, \"SAWANG I\"],\n [1103070008, 1103070, \"SAWANG II\"],\n [1103070009, 1103070, \"UJUNG KARANG\"],\n [1103070010, 1103070, \"LHOK PAWOH\"],\n [1103070011, 1103070, \"PANTON LUAS\"],\n [1103070012, 1103070, \"TRIENG MEUDURO TUNONG\"],\n [1103070013, 1103070, \"TRIENG MEUDURO BAROH\"],\n [1103070014, 1103070, \"SIKULAT\"],\n [1103070015, 1103070, \"MUTIARA\"],\n [1103080001, 1103080, \"ALUE MEUTUAH\"],\n [1103080002, 1103080, \"LHOK AMAN\"],\n [1103080003, 1103080, \"LADANG BARO\"],\n [1103080004, 1103080, \"LABUHAN TAROK\"],\n [1103080005, 1103080, \"TANJUNG HARAPAN\"],\n [1103080006, 1103080, \"KUTA BARO\"],\n [1103080007, 1103080, \"KEUDE MEUKEK\"],\n [1103080008, 1103080, \"ARON TUNGGAI\"],\n [1103080009, 1103080, \"BLANG BLADEH\"],\n [1103080010, 1103080, \"BLANG TEUNGOH\"],\n [1103080011, 1103080, \"IE BUBOH\"],\n [1103080012, 1103080, \"KUTA BULOH II\"],\n [1103080013, 1103080, \"KUTA BULOH I\"],\n [1103080014, 1103080, \"IE DINGEN\"],\n [1103080015, 1103080, \"DRIEN JALO\"],\n [1103080016, 1103080, \"JAMBO PAPEUN\"],\n [1103080017, 1103080, \"BUKET MEUH\"],\n [1103080018, 1103080, \"ALUE BARO\"],\n [1103080019, 1103080, \"ROT TEUNGOH\"],\n [1103080020, 1103080, \"BLANG KUALA\"],\n [1103080021, 1103080, \"LADANG TUHA\"],\n [1103080022, 1103080, \"LHOK MAMPLAM\"],\n [1103080023, 1103080, \"LABUHAN TAROK II\"],\n [1103090010, 1103090, \"PADANG BARU\"],\n [1103090011, 1103090, \"LEMBAH BARU\"],\n [1103090012, 1103090, \"TENGAH BARU\"],\n [1103090013, 1103090, \"PAWOH\"],\n [1103090014, 1103090, \"APHA\"],\n [1103090015, 1103090, \"PASAR LAMA\"],\n [1103090016, 1103090, \"PADANG BAKAU\"],\n [1103090028, 1103090, \"BAKAU HULU\"],\n [1103090029, 1103090, \"MANGGIS HARAPAN\"],\n [1103090030, 1103090, \"UJUNG BATU\"],\n [1103090031, 1103090, \"DALAM\"],\n [1103090032, 1103090, \"KOTA PALAK\"],\n [1103090033, 1103090, \"CACANG\"],\n [1103090034, 1103090, \"TENGAH PISANG\"],\n [1103090035, 1103090, \"PISANG\"],\n [1103090036, 1103090, \"HULU PISANG\"],\n [1103091001, 1103091, \"KEUMUMU HILIR\"],\n [1103091002, 1103091, \"PAYA PEULUMAT\"],\n [1103091003, 1103091, \"TENGAH PEULUMAT\"],\n [1103091004, 1103091, \"PADANG PEULUMAT\"],\n [1103091005, 1103091, \"LIMAU SARING\"],\n [1103091006, 1103091, \"AUR PEULUMAT\"],\n [1103091007, 1103091, \"KEUMUMU HULU\"],\n [1103091008, 1103091, \"BEUTONG\"],\n [1103091009, 1103091, \"PEUNALOP\"],\n [1103091010, 1103091, \"GUNUNG ROTAN\"],\n [1103091011, 1103091, \"KEUMUMU SEBERANG\"],\n [1103091012, 1103091, \"SAWANG INDAH\"],\n [1103092001, 1103092, \"PULO IE\"],\n [1103092002, 1103092, \"SUAK LOKAN\"],\n [1103092003, 1103092, \"IKU LHUNG\"],\n [1103092004, 1103092, \"PANTE GEULIMA\"],\n [1103092005, 1103092, \"BLANG BARU\"],\n [1103092006, 1103092, \"BLANG POROH\"],\n [1103092007, 1103092, \"KUTA IBOH\"],\n [1103092008, 1103092, \"TUTONG\"],\n [1103092009, 1103092, \"UJUNG PADANG\"],\n [1103092010, 1103092, \"TENGAH IBOH\"],\n [1103092011, 1103092, \"PEULOKAN\"],\n [1103092012, 1103092, \"KUTA TRIENG\"],\n [1103092013, 1103092, \"PANTON PAWOH\"],\n [1103092014, 1103092, \"BATEE MEUCANANG\"],\n [1103092015, 1103092, \"PANTON RUBEK\"],\n [1104010021, 1104010, \"MUARA BARU\"],\n [1104010022, 1104010, \"PASIR BANGUN\"],\n [1104010023, 1104010, \"NGKERAN\"],\n [1104010024, 1104010, \"LAWE KONGKIR\"],\n [1104010025, 1104010, \"KUBU\"],\n [1104010026, 1104010, \"KUTA CINGKAM II\"],\n [1104010027, 1104010, \"KUTA CINGKAM I\"],\n [1104010028, 1104010, \"LAWE SEMPILANG\"],\n [1104010029, 1104010, \"KUTA BATU II\"],\n [1104010030, 1104010, \"KUTA BATU I\"],\n [1104010031, 1104010, \"PRAPAT BATU NUNGGUL\"],\n [1104010032, 1104010, \"PULO SEPANG\"],\n [1104010034, 1104010, \"PAYA MUNJE\"],\n [1104010035, 1104010, \"DARUL AMIN\"],\n [1104010036, 1104010, \"LAWE LUBANG INDAH\"],\n [1104010037, 1104010, \"BATU HAMPARAN\"],\n [1104010038, 1104010, \"RIH MBELANG\"],\n [1104010039, 1104010, \"KUTE BATU BARU\"],\n [1104010040, 1104010, \"RUMAH KAMPUNG\"],\n [1104010041, 1104010, \"PASEKH PEKHMATE\"],\n [1104010042, 1104010, \"PASIR NUNGGUL\"],\n [1104010043, 1104010, \"LAWE KONGKIR HILIR\"],\n [1104010044, 1104010, \"PULO NDADAP\"],\n [1104010045, 1104010, \"PINTU KHIMBE\"],\n [1104010046, 1104010, \"PULO GADUNG\"],\n [1104010047, 1104010, \"CINGKAM MERANGGUN\"],\n [1104010048, 1104010, \"PASIR NUNANG\"],\n [1104010049, 1104010, \"DELENG KUKUSEN\"],\n [1104011001, 1104011, \"PENGUHAPAN\"],\n [1104011002, 1104011, \"SALIM PIPIT\"],\n [1104011003, 1104011, \"LAWE SUMUR\"],\n [1104011004, 1104011, \"UNING SIGUGUR\"],\n [1104011005, 1104011, \"KUTA LANG LANG\"],\n [1104011006, 1104011, \"LUMBAN SITIO TIO\"],\n [1104011007, 1104011, \"MERANTI\"],\n [1104011008, 1104011, \"PERDAMEAN\"],\n [1104011009, 1104011, \"MUTIARA DAMAI\"],\n [1104011010, 1104011, \"LUMBAN TUA\"],\n [1104011011, 1104011, \"DOLOK NAULI\"],\n [1104011012, 1104011, \"TUHI JONGKAT\"],\n [1104011013, 1104011, \"TITI MAS\"],\n [1104011017, 1104011, \"LAWE MALUN\"],\n [1104011018, 1104011, \"ALUR BANING\"],\n [1104011019, 1104011, \"SIGAI INDAH\"],\n [1104011020, 1104011, \"SUMUR ALAS\"],\n [1104011021, 1104011, \"TUAH MESADE\"],\n [1104011022, 1104011, \"LINGGA ALAS\"],\n [1104011023, 1104011, \"RAMBUNG TUBUNG\"],\n [1104011024, 1104011, \"SPERINDING\"],\n [1104011025, 1104011, \"TANAH SUBUR\"],\n [1104011026, 1104011, \"PINGGAN MBLANG\"],\n [1104011027, 1104011, \"UKIR DELENG\"],\n [1104011028, 1104011, \"ALAS MESIKHAT\"],\n [1104011029, 1104011, \"TITI HARAPAN\"],\n [1104011030, 1104011, \"ALUR BARU\"],\n [1104012001, 1104012, \"ALUR LANGSAT\"],\n [1104012002, 1104012, \"LAWE TUNGKAL\"],\n [1104012003, 1104012, \"RUMAH LUAR\"],\n [1104012005, 1104012, \"RAMBAH SAYANG\"],\n [1104012006, 1104012, \"JAMBUR DAMAR\"],\n [1104012007, 1104012, \"TENEMBAK ALAS\"],\n [1104012008, 1104012, \"SALIM PINIM\"],\n [1104012009, 1104012, \"RUTUNG MBELANG\"],\n [1104012010, 1104012, \"SETAMBUL JAYA\"],\n [1104012011, 1104012, \"ALUR NANGKA\"],\n [1104012012, 1104012, \"TIMANG RASA\"],\n [1104012013, 1104012, \"JAMBUR PERMATA\"],\n [1104012014, 1104012, \"KUTE MEJILE\"],\n [1104012015, 1104012, \"SALIM PINIM II\"],\n [1104020011, 1104020, \"LAWE LONING GAB\"],\n [1104020012, 1104020, \"LAWE LONING AMAN\"],\n [1104020013, 1104020, \"GABUNGAN PARSAORAN\"],\n [1104020014, 1104020, \"KEDATARAN GAB\"],\n [1104020016, 1104020, \"KUTA TENGAH\"],\n [1104020017, 1104020, \"TANAH BARU\"],\n [1104020018, 1104020, \"LAWE SIGALA TIMUR\"],\n [1104020019, 1104020, \"LAWE SIGALA BARAT\"],\n [1104020020, 1104020, \"SUKA DAMAI\"],\n [1104020021, 1104020, \"LAWE SIGALA II\"],\n [1104020022, 1104020, \"LAWE TUA GAB\"],\n [1104020023, 1104020, \"BUKIT MERDEKA\"],\n [1104020024, 1104020, \"LAWE KESUMPAT\"],\n [1104020027, 1104020, \"DARUL AMAN\"],\n [1104020035, 1104020, \"LAWE LONING SEPAKAT\"],\n [1104020036, 1104020, \"GAYA JAYA\"],\n [1104020037, 1104020, \"LAWE LONING I\"],\n [1104020038, 1104020, \"LAWE RAKAT\"],\n [1104020039, 1104020, \"SUKA MAJU\"],\n [1104020040, 1104020, \"SUKA JAYA\"],\n [1104020041, 1104020, \"LAWE SERKE\"],\n [1104020042, 1104020, \"LAWE TUA PERSATUAN\"],\n [1104020043, 1104020, \"LAWE TUA MAKMUR\"],\n [1104020044, 1104020, \"BUKIT SEPAKAT\"],\n [1104020045, 1104020, \"ENMYA BATU DUA RATUS\"],\n [1104020046, 1104020, \"SEBUNGKE\"],\n [1104020047, 1104020, \"LAWE LONING HAKHAPEN\"],\n [1104020048, 1104020, \"NDAUH NI TENGGAU\"],\n [1104020049, 1104020, \"KERTIMBANG\"],\n [1104020050, 1104020, \"LAWE SIGALA BARAT JAYA\"],\n [1104020051, 1104020, \"LAWE PEKHIDINAN\"],\n [1104020052, 1104020, \"GELAH MUSARA\"],\n [1104020053, 1104020, \"MULIE DAME\"],\n [1104020054, 1104020, \"KARYA INDAH\"],\n [1104020055, 1104020, \"KAYU MBELIN\"],\n [1104021002, 1104021, \"MUARA SITULEN\"],\n [1104021003, 1104021, \"PARDAMEAN\"],\n [1104021004, 1104021, \"SEJAHTERA\"],\n [1104021005, 1104021, \"KAMPUNG BHAKTI\"],\n [1104021006, 1104021, \"LAWE PERBUNGA\"],\n [1104021007, 1104021, \"CINTA DAMAI\"],\n [1104021008, 1104021, \"PARDOMUAN II\"],\n [1104021009, 1104021, \"LAWE DESKI SABAS\"],\n [1104021010, 1104021, \"PARDOMUAN I\"],\n [1104021011, 1104021, \"LAWE DESKI I\"],\n [1104021017, 1104021, \"MUSARA SETIA\"],\n [1104021018, 1104021, \"SEJAHTERA BARU\"],\n [1104021019, 1104021, \"TANOH ALAS\"],\n [1104021020, 1104021, \"CINTA MAKMUR\"],\n [1104021021, 1104021, \"LAWE MANTIK\"],\n [1104021022, 1104021, \"KUTE MAKMUR\"],\n [1104021023, 1104021, \"LAWE DESKY TONGAH\"],\n [1104021024, 1104021, \"LAWE TAWAKH\"],\n [1104021025, 1104021, \"SABILUSSALAM\"],\n [1104021026, 1104021, \"DESKI JAYA\"],\n [1104021027, 1104021, \"PINTU ALAS\"],\n [1104022001, 1104022, \"LAWE KINGA T TINGGI\"],\n [1104022002, 1104022, \"LAWE BERINGIN HORAS\"],\n [1104022003, 1104022, \"LAWE BERINGIN GAYO\"],\n [1104022004, 1104022, \"SUKA MAKMUR\"],\n [1104022005, 1104022, \"NGK ALUR BULUH\"],\n [1104022006, 1104022, \"SIMPANG SEMADAM\"],\n [1104022007, 1104022, \"SEMADAM AWAL\"],\n [1104022008, 1104022, \"KEBUN SERE\"],\n [1104022009, 1104022, \"SEMADAM ASAL\"],\n [1104022010, 1104022, \"LAWE KINGA GAB\"],\n [1104022011, 1104022, \"TITI PASIR\"],\n [1104022012, 1104022, \"PASAR PUNTUNG\"],\n [1104022013, 1104022, \"LAWE PETANDUK\"],\n [1104022014, 1104022, \"SEPAKAT SEGENEP\"],\n [1104022015, 1104022, \"KAMPUNG BARU\"],\n [1104022016, 1104022, \"SELAMAT INDAH\"],\n [1104022017, 1104022, \"LAWE MEJILE\"],\n [1104022018, 1104022, \"LAWE KINGA LAPTER\"],\n [1104022019, 1104022, \"LAWE PETANDUK I\"],\n [1104023001, 1104023, \"NAGA TIMBUL\"],\n [1104023002, 1104023, \"GUNUNG PAK-PAK\"],\n [1104023003, 1104023, \"BUNBUN ALAS\"],\n [1104023004, 1104023, \"TANJUNG SARI\"],\n [1104023005, 1104023, \"BINTANG ALGA MUSARA\"],\n [1104023006, 1104023, \"BUKIT BINTANG INDAH\"],\n [1104023007, 1104023, \"SUKA DAMAI\"],\n [1104023008, 1104023, \"SEPAKAT\"],\n [1104023009, 1104023, \"PUNCE NALI\"],\n [1104023010, 1104023, \"SADE ATE\"],\n [1104023011, 1104023, \"ARIH MEJILAI\"],\n [1104023012, 1104023, \"UKHAT PESELUK\"],\n [1104023013, 1104023, \"TUNAS MUDE\"],\n [1104023014, 1104023, \"GAYE SENDAH\"],\n [1104023015, 1104023, \"KUTE HAKHAPEN\"],\n [1104023016, 1104023, \"TUAH KERINE\"],\n [1104023017, 1104023, \"LAWE SEKHAKUT\"],\n [1104023018, 1104023, \"BUN BUN INDAH\"],\n [1104023019, 1104023, \"LAUT TAWAR\"],\n [1104023020, 1104023, \"KANE MENDE\"],\n [1104023021, 1104023, \"KOMPAS\"],\n [1104023022, 1104023, \"BUKIT MERIAH\"],\n [1104023023, 1104023, \"PERMATA MUSARA\"],\n [1104030016, 1104030, \"TUALANG SEMBILAR\"],\n [1104030017, 1104030, \"TERUTUNG PAYUNG HILIR\"],\n [1104030018, 1104030, \"TERUTUNG PAYUNG HULU\"],\n [1104030019, 1104030, \"LIKAT\"],\n [1104030020, 1104030, \"RIKIT\"],\n [1104030021, 1104030, \"KUNING I\"],\n [1104030022, 1104030, \"CINTA DAMAI\"],\n [1104030023, 1104030, \"KUNING II\"],\n [1104030024, 1104030, \"KUTA LANG LANG\"],\n [1104030025, 1104030, \"PEDESI\"],\n [1104030026, 1104030, \"BIAK MULI\"],\n [1104030027, 1104030, \"TERUTUNG MEGARA ASLI\"],\n [1104030028, 1104030, \"PINDING\"],\n [1104030029, 1104030, \"LAWE HIJO\"],\n [1104030034, 1104030, \"BAMBEL GABUNGAN\"],\n [1104030040, 1104030, \"PULO KEDONDONG\"],\n [1104030041, 1104030, \"PULO PERENGGE\"],\n [1104030042, 1104030, \"KUTE ANTARA\"],\n [1104030046, 1104030, \"TERUTUNG SEPERAI\"],\n [1104030047, 1104030, \"LAWE KIHING\"],\n [1104030048, 1104030, \"BAMBEL\"],\n [1104030049, 1104030, \"KUTE SERI\"],\n [1104030050, 1104030, \"KUTA BULUH\"],\n [1104030051, 1104030, \"TUALANG SEMBILAR BARU\"],\n [1104030052, 1104030, \"TERUTUNG PAYUNG GABUNGAN\"],\n [1104030053, 1104030, \"BIAK MULI BARU\"],\n [1104030054, 1104030, \"BIAK MULI PANTE RAJA\"],\n [1104030055, 1104030, \"BIAK MULI SEJAHTERA\"],\n [1104030056, 1104030, \"LAWE HIJO METUAH\"],\n [1104030057, 1104030, \"LAWE HIJO AMPERA\"],\n [1104030058, 1104030, \"LEMBAH HAJI\"],\n [1104030059, 1104030, \"KUTA LANG LANG BARU\"],\n [1104030060, 1104030, \"PANCAR IMAN\"],\n [1104031001, 1104031, \"MAHA SINGKIL\"],\n [1104031002, 1104031, \"TENEMBAK BINTANG\"],\n [1104031003, 1104031, \"ALUR BULUH\"],\n [1104031004, 1104031, \"TUALANG BARU\"],\n [1104031005, 1104031, \"KUTA LENGAT PAGAN\"],\n [1104031006, 1104031, \"KUTA LENGAT SELIAN\"],\n [1104031007, 1104031, \"KUTA LINGGA\"],\n [1104031008, 1104031, \"REMA\"],\n [1104031009, 1104031, \"LAWE DUA GAB\"],\n [1104031010, 1104031, \"KERUKUNAN\"],\n [1104031012, 1104031, \"RIKIT BUR\"],\n [1104031013, 1104031, \"AMALIAH\"],\n [1104031014, 1104031, \"GUMPANG\"],\n [1104031015, 1104031, \"PEJUANG\"],\n [1104031016, 1104031, \"SEBUDI JAYA\"],\n [1104031017, 1104031, \"BAMBEL BARU\"],\n [1104031018, 1104031, \"DARUSSALAM\"],\n [1104031019, 1104031, \"KUTE GEKHAT\"],\n [1104031020, 1104031, \"MBAK SAKO\"],\n [1104031021, 1104031, \"PAYE RAMBUNG\"],\n [1104031022, 1104031, \"DARUL IMAMI\"],\n [1104031023, 1104031, \"RIKIT BUR II\"],\n [1104031024, 1104031, \"EMPAT LIMA\"],\n [1104032001, 1104032, \"KUTA LESUNG\"],\n [1104032002, 1104032, \"BERANDANG\"],\n [1104032003, 1104032, \"LAWE SUMUR\"],\n [1104032004, 1104032, \"TERUTUNG MEGARE LAWE PASARAN\"],\n [1104032005, 1104032, \"KISAM GABUNGAN\"],\n [1104032006, 1104032, \"PENOSAN\"],\n [1104032007, 1104032, \"KISAM KUTE PASIR\"],\n [1104032008, 1104032, \"BUAH PALA\"],\n [1104032009, 1104032, \"KUTE BUNIN\"],\n [1104032010, 1104032, \"LAWE SUMUR BARU\"],\n [1104032011, 1104032, \"SETIA BARU\"],\n [1104032012, 1104032, \"LAWE PERLAK\"],\n [1104032013, 1104032, \"LAWE SUMUR SEPAKAT\"],\n [1104032014, 1104032, \"TERUTUNG MEGARA BARU\"],\n [1104032015, 1104032, \"LAWE PASARAN TENGKU MBELIN\"],\n [1104032016, 1104032, \"KISAM LESTARI\"],\n [1104032017, 1104032, \"KISAM KUTA RAMBE\"],\n [1104032018, 1104032, \"TIGER MIKO\"],\n [1104040001, 1104040, \"KUTA RIH\"],\n [1104040002, 1104040, \"KUTACANE LAMA\"],\n [1104040003, 1104040, \"PERAPAT HILIR\"],\n [1104040004, 1104040, \"PERAPAT HULU\"],\n [1104040005, 1104040, \"PULO LATONG\"],\n [1104040010, 1104040, \"KOTA KUTACANE\"],\n [1104040011, 1104040, \"MUARA LAWE BULAN\"],\n [1104040012, 1104040, \"MBARUNG\"],\n [1104040013, 1104040, \"PULONAS\"],\n [1104040021, 1104040, \"BATU BULAN I\"],\n [1104040022, 1104040, \"BATU BULAN II\"],\n [1104040023, 1104040, \"BATU BULAN ASLI\"],\n [1104040024, 1104040, \"KAMPUNG RAJA\"],\n [1104040026, 1104040, \"KAMPUNG MELAYU GABUNGAN\"],\n [1104040027, 1104040, \"TERUTUNG PEDI\"],\n [1104040029, 1104040, \"GUMPANG JAYA\"],\n [1104040030, 1104040, \"BATUMBULAN BARU\"],\n [1104040031, 1104040, \"UJUNG BARAT\"],\n [1104040032, 1104040, \"PULO PEDING\"],\n [1104040033, 1104040, \"MEDABE\"],\n [1104040034, 1104040, \"PERAPAT SEPAKAT\"],\n [1104040035, 1104040, \"PERAPAT TITI PANJANG\"],\n [1104040036, 1104040, \"PULO SANGGAR\"],\n [1104040037, 1104040, \"MBARUNG DATUK SAUDANE\"],\n [1104040038, 1104040, \"BATU BULAN SEPAKAT\"],\n [1104040039, 1104040, \"KAMPUNG MELAYU I\"],\n [1104040040, 1104040, \"ALAS MERANCAR\"],\n [1104041001, 1104041, \"PASIR PENJENGAKAN\"],\n [1104041002, 1104041, \"KUTAMBARU\"],\n [1104041003, 1104041, \"PASIR GALA\"],\n [1104041004, 1104041, \"LAWE RUTUNG\"],\n [1104041005, 1104041, \"KUTA BANTIL\"],\n [1104041006, 1104041, \"LAWE KULOK\"],\n [1104041007, 1104041, \"LAWE SAGU HULU\"],\n [1104041012, 1104041, \"TENEMBAK JUHAR\"],\n [1104041013, 1104041, \"LAWE SAGU HILIR\"],\n [1104041014, 1104041, \"KP NANGKA GAB\"],\n [1104041016, 1104041, \"TELAGA MEKAR\"],\n [1104041018, 1104041, \"KUTE BULUH BOTONG\"],\n [1104041019, 1104041, \"KUTE MBARU BENCAWAN\"],\n [1104041020, 1104041, \"PULONAS BARU\"],\n [1104041021, 1104041, \"SIMPANG EMPAT\"],\n [1104041022, 1104041, \"KANDANG BELANG MANDIRI\"],\n [1104041023, 1104041, \"MBACANG RACUN\"],\n [1104041024, 1104041, \"LAWE KINGE\"],\n [1104041025, 1104041, \"PERAPAT TIMUR\"],\n [1104041026, 1104041, \"BAHAGIA\"],\n [1104041027, 1104041, \"KUTA GALUH\"],\n [1104041028, 1104041, \"KUTE GENTING\"],\n [1104041029, 1104041, \"LAWE SAGU\"],\n [1104041030, 1104041, \"KUTE PANGGUH\"],\n [1104050002, 1104050, \"KAMPUNG BARU\"],\n [1104050003, 1104050, \"PURWODADI\"],\n [1104050004, 1104050, \"LAWE BEKUNG\"],\n [1104050005, 1104050, \"SALANG ALAS\"],\n [1104050006, 1104050, \"KUTA TINGGI\"],\n [1104050014, 1104050, \"PERANGINAN\"],\n [1104050015, 1104050, \"KUTA PASIR\"],\n [1104050022, 1104050, \"NATAM\"],\n [1104050034, 1104050, \"KUMBANG JAYA\"],\n [1104050035, 1104050, \"KUMBANG INDAH\"],\n [1104050036, 1104050, \"DELENG MEGAKHE\"],\n [1104050037, 1104050, \"LAWE BEKUNG TEMPAHAN\"],\n [1104050038, 1104050, \"BADAR INDAH\"],\n [1104050040, 1104050, \"NATAM BARU\"],\n [1104050041, 1104050, \"TANAH MERAH\"],\n [1104050042, 1104050, \"BATU MBERONG\"],\n [1104050043, 1104050, \"LAWE SEKERAH\"],\n [1104050044, 1104050, \"TANOH MEGAKHE\"],\n [1104051001, 1104051, \"GULO\"],\n [1104051002, 1104051, \"LAWE STUL\"],\n [1104051003, 1104051, \"KITE MERANGGUN\"],\n [1104051004, 1104051, \"PULO PIKU\"],\n [1104051005, 1104051, \"TERUTUNG KUTE\"],\n [1104051006, 1104051, \"KUTA UJUNG\"],\n [1104051007, 1104051, \"MAMAS\"],\n [1104051008, 1104051, \"TANJUNG LAMA\"],\n [1104051009, 1104051, \"TANJUNG MUDA\"],\n [1104051010, 1104051, \"TANJUNG AMAN\"],\n [1104051011, 1104051, \"RAMBUNG TELDAK\"],\n [1104051012, 1104051, \"SERIMUDA\"],\n [1104051013, 1104051, \"DARUL MAKMUR\"],\n [1104051014, 1104051, \"KUTE RAMBE\"],\n [1104051015, 1104051, \"UJUNG BARU\"],\n [1104051016, 1104051, \"MAMAS BARU\"],\n [1104051017, 1104051, \"RAMBUNG JAYA\"],\n [1104051018, 1104051, \"MAKMUR JAYA\"],\n [1104051019, 1104051, \"PULO GADUNG\"],\n [1104051020, 1104051, \"ISTIQOMAH\"],\n [1104051021, 1104051, \"KHOTAN JAYA\"],\n [1104051022, 1104051, \"LAWE MAMAS INDAH\"],\n [1104051023, 1104051, \"TANJUNG BARU\"],\n [1104051024, 1104051, \"SIMPANG IV TANJUNG\"],\n [1104051025, 1104051, \"TANJUNG LEUSER\"],\n [1104051026, 1104051, \"LAWE PINIS\"],\n [1104051027, 1104051, \"KUNING ABADI\"],\n [1104051028, 1104051, \"BUNTUL KENDAWI\"],\n [1104052001, 1104052, \"DELENG DAMAR\"],\n [1104052002, 1104052, \"SIMPANG III JONGAR\"],\n [1104052003, 1104052, \"PENYEBRANGAN CINGKAM\"],\n [1104052004, 1104052, \"JONGAR\"],\n [1104052005, 1104052, \"LAWE PENANGGALAN\"],\n [1104052006, 1104052, \"JAMBUR LAK LAK\"],\n [1104052007, 1104052, \"LAWE MENGKUDU\"],\n [1104052008, 1104052, \"AUNAN SEPAKAT\"],\n [1104052009, 1104052, \"KETAMBE\"],\n [1104052010, 1104052, \"RUMAH BUNDAR\"],\n [1104052011, 1104052, \"KAYU MENTANGUR\"],\n [1104052012, 1104052, \"LAWE SEMBEKAN\"],\n [1104052013, 1104052, \"LAWE GEKH GEKH\"],\n [1104052014, 1104052, \"LAWE BERINGIN\"],\n [1104052015, 1104052, \"BENER BERPAPAH\"],\n [1104052016, 1104052, \"DATUK PINDING\"],\n [1104052017, 1104052, \"PENUNGKUNEN\"],\n [1104052018, 1104052, \"JATI SARA\"],\n [1104052019, 1104052, \"LEUSER\"],\n [1104052020, 1104052, \"BUKIT BARU\"],\n [1104052021, 1104052, \"KATI MAJU\"],\n [1104052022, 1104052, \"LAWE AUNAN\"],\n [1104052023, 1104052, \"BINTANG BENER\"],\n [1104052024, 1104052, \"SUKA RIMBUN\"],\n [1104052025, 1104052, \"SIMPUR JAYA\"],\n [1104053001, 1104053, \"BUNGA MELUR\"],\n [1104053002, 1104053, \"TERUTUNG MBELANG\"],\n [1104053003, 1104053, \"TENEMBAK LANG LANG\"],\n [1104053004, 1104053, \"PENAMPAAN\"],\n [1104053005, 1104053, \"TUALANG LAMA\"],\n [1104053006, 1104053, \"LAWE PANGKAT\"],\n [1104053007, 1104053, \"GUSUNG BATU\"],\n [1104053008, 1104053, \"KAYA PANGUR\"],\n [1104053009, 1104053, \"RANTO DIUR\"],\n [1104053010, 1104053, \"LEMBAH ALAS\"],\n [1104053011, 1104053, \"KAMPUNG SEPAKAT\"],\n [1104053012, 1104053, \"SALANG SIGOTOM\"],\n [1104053013, 1104053, \"SALANG BARU\"],\n [1104053014, 1104053, \"SALANG MUARA\"],\n [1104053015, 1104053, \"MUHAJIRIN\"],\n [1104053016, 1104053, \"BERINGIN NARU\"],\n [1104053017, 1104053, \"TANOH KHUKAHEN\"],\n [1104053018, 1104053, \"TADING NIULIHI\"],\n [1104053019, 1104053, \"PESELUK PESIMBE\"],\n [1104053020, 1104053, \"KATI JEROH\"],\n [1104053021, 1104053, \"KANE LOT\"],\n [1104053022, 1104053, \"LAWE HAKHUM\"],\n [1105080001, 1105080, \"LOKOP\"],\n [1105080002, 1105080, \"TUALANG\"],\n [1105080003, 1105080, \"GAMPONG TERUJAK\"],\n [1105080004, 1105080, \"LELES\"],\n [1105080013, 1105080, \"UJUNG KARANG\"],\n [1105080014, 1105080, \"UJUNG TARING\"],\n [1105080015, 1105080, \"SUNTI\"],\n [1105080016, 1105080, \"SEKUALAN\"],\n [1105080017, 1105080, \"LOOT\"],\n [1105080018, 1105080, \"NALON\"],\n [1105080019, 1105080, \"JERING\"],\n [1105080020, 1105080, \"RAMPAH\"],\n [1105080021, 1105080, \"MESIR\"],\n [1105080022, 1105080, \"SELEMAK\"],\n [1105080023, 1105080, \"SEMBUANG\"],\n [1105080028, 1105080, \"BUNIN\"],\n [1105080029, 1105080, \"ALUR DRIEN\"],\n [1105080030, 1105080, \"UPT I KUALA PANGOH\"],\n [1105081001, 1105081, \"HTI RANTO NARO\"],\n [1105081002, 1105081, \"TAMPUR BOOR\"],\n [1105081003, 1105081, \"TAMPOR PALOH\"],\n [1105081004, 1105081, \"MELIDI\"],\n [1105081005, 1105081, \"BATU SUMBANG\"],\n [1105081006, 1105081, \"SIMPANG JERNIH\"],\n [1105081007, 1105081, \"PANTE KERA\"],\n [1105081008, 1105081, \"RANTAU PANJANG\"],\n [1105082001, 1105082, \"ARUL PINANG\"],\n [1105082002, 1105082, \"PEUNARON BARU\"],\n [1105082003, 1105082, \"PEUNARON LAMA\"],\n [1105082004, 1105082, \"BUKIT TIGA\"],\n [1105082006, 1105082, \"SRI MULYA\"],\n [1105090001, 1105090, \"BUKET TIGA\"],\n [1105090002, 1105090, \"BENTENG\"],\n [1105090003, 1105090, \"AFD.II BUKET\"],\n [1105090004, 1105090, \"ALUE DRIEN\"],\n [1105090005, 1105090, \"ALUE CANANG\"],\n [1105090006, 1105090, \"JAMBUR LABU\"],\n [1105090007, 1105090, \"ALUE BULOH\"],\n [1105090008, 1105090, \"PEUTOW\"],\n [1105090009, 1105090, \"KEMUNING HULU\"],\n [1105090010, 1105090, \"ALUE TEH\"],\n [1105090011, 1105090, \"PAYA TAMPAH\"],\n [1105090012, 1105090, \"PAYA BILI II\"],\n [1105090013, 1105090, \"PAYA RAMBONG\"],\n [1105090014, 1105090, \"ALUE GADENG SATU\"],\n [1105090015, 1105090, \"BIREM RAYEUK\"],\n [1105090016, 1105090, \"KEUDE BIREM\"],\n [1105090017, 1105090, \"ARAMIYAH\"],\n [1105090018, 1105090, \"PAYA BILI I\"],\n [1105090019, 1105090, \"MERBAU II\"],\n [1105090020, 1105090, \"PAYA PEULAWI\"],\n [1105090021, 1105090, \"BAYEUN\"],\n [1105090022, 1105090, \"ALUE GADENG\"],\n [1105090023, 1105090, \"PERK. ALUE GADENG DUA\"],\n [1105090024, 1105090, \"BUKIT SEULEMAK\"],\n [1105090025, 1105090, \"BLANG TUALANG\"],\n [1105090026, 1105090, \"ALUE SENTANG\"],\n [1105090027, 1105090, \"ALUE NYAMUK\"],\n [1105100001, 1105100, \"ALUE TUWI\"],\n [1105100002, 1105100, \"ALUE KAOL\"],\n [1105100003, 1105100, \"ALUE PUNTI\"],\n [1105100004, 1105100, \"DAMAR SIPUT\"],\n [1105100005, 1105100, \"SIMPANG PEUT\"],\n [1105100006, 1105100, \"SARAH KAYEE\"],\n [1105100007, 1105100, \"ALUR SEULEUMAK\"],\n [1105100008, 1105100, \"SIMPANG ANEUH\"],\n [1105100009, 1105100, \"GAMPONG BAYEUN\"],\n [1105100010, 1105100, \"SARAH TEUBEE\"],\n [1105100011, 1105100, \"RANTAU PANJANG\"],\n [1105100012, 1105100, \"ALUE RAYA\"],\n [1105100013, 1105100, \"SEUNEUBOK DALAM\"],\n [1105100014, 1105100, \"ALUE KUMBA\"],\n [1105101001, 1105101, \"GAJAH MENTAH\"],\n [1105101002, 1105101, \"SEUNEUBOK ACEH\"],\n [1105101003, 1105101, \"SEUNEUBOK PASE\"],\n [1105101004, 1105101, \"SUNGAI SIMPANG\"],\n [1105101005, 1105101, \"PAYA KEUTAPANG\"],\n [1105101006, 1105101, \"ALUE ITAM\"],\n [1105101007, 1105101, \"BUKIT DRIEN\"],\n [1105101008, 1105101, \"BUKIT SELAMAT\"],\n [1105101009, 1105101, \"KUALA PAREK\"],\n [1105101010, 1105101, \"LABUHAN KEUDE\"],\n [1105101011, 1105101, \"KRUENG LINGKA\"],\n [1105101012, 1105101, \"GEULUMPANG PAYONG\"],\n [1105101013, 1105101, \"ALUE RANGAN\"],\n [1105110008, 1105110, \"CEK MBON\"],\n [1105110018, 1105110, \"SEUNEUBOK PIDIE\"],\n [1105110019, 1105110, \"KUALA LEUGE\"],\n [1105110020, 1105110, \"SEUNEUBOK PEUSANGAN\"],\n [1105110023, 1105110, \"LEUBUK PEMPENG\"],\n [1105110024, 1105110, \"DAMA TUTONG\"],\n [1105110025, 1105110, \"BALE BUYA\"],\n [1105110026, 1105110, \"MATANG GLEUM\"],\n [1105110027, 1105110, \"ALUE NIBONG\"],\n [1105110028, 1105110, \"BUKET PALA\"],\n [1105110029, 1105110, \"BLANG SIMPO\"],\n [1105110030, 1105110, \"PAYA KALUT\"],\n [1105110031, 1105110, \"ALUE DUA PAYA GAJAH\"],\n [1105110032, 1105110, \"SEUNEUBOK ACEH\"],\n [1105110033, 1105110, \"UTEUN DAMA\"],\n [1105110034, 1105110, \"PAYA MEULIGO\"],\n [1105110035, 1105110, \"PUNTI\"],\n [1105110036, 1105110, \"KEUMUNENG\"],\n [1105110037, 1105110, \"BANGKA RIMUENG\"],\n [1105110038, 1105110, \"LEUGE\"],\n [1105110039, 1105110, \"LHOK DALAM\"],\n [1105110040, 1105110, \"BANDRONG\"],\n [1105110042, 1105110, \"TANAH RATA\"],\n [1105110043, 1105110, \"TUALANG\"],\n [1105110044, 1105110, \"KEUDE PEUREULAK\"],\n [1105110045, 1105110, \"COT MUDA ITAM\"],\n [1105110046, 1105110, \"PASIR PUTIH\"],\n [1105110047, 1105110, \"BLANG BETRA\"],\n [1105110055, 1105110, \"BEUSA MEURANOU\"],\n [1105110056, 1105110, \"SEUMATANG MUDA ITAM\"],\n [1105110057, 1105110, \"BLANG BALOK\"],\n [1105110058, 1105110, \"KUALA BUGAK\"],\n [1105110059, 1105110, \"PAYA LIPAH\"],\n [1105110060, 1105110, \"COT GEULUMPANG\"],\n [1105110062, 1105110, \"COT KEH\"],\n [1105110063, 1105110, \"BLANG BATEE\"],\n [1105110064, 1105110, \"ALUE RAMBONG\"],\n [1105110065, 1105110, \"MATANG PEULAWI\"],\n [1105111001, 1105111, \"BUKIT MEURIAM\"],\n [1105111002, 1105111, \"SEUNEUBOK PUNTI\"],\n [1105111003, 1105111, \"ALUE BUGENG\"],\n [1105111004, 1105111, \"SEUNEUBOK TEUNGOH\"],\n [1105111005, 1105111, \"SEUNEUBOK TEUPIN\"],\n [1105111006, 1105111, \"ALUE BU/ALUE LHOK\"],\n [1105111007, 1105111, \"ALUE GUREP\"],\n [1105111008, 1105111, \"ALUE BU ALUE NIREH\"],\n [1105111009, 1105111, \"SEUNEUBOK PAYA\"],\n [1105111010, 1105111, \"SEUNEUBOK RAWANG\"],\n [1105111011, 1105111, \"ALUE THO\"],\n [1105111012, 1105111, \"SEUNEUBOK LAPANG\"],\n [1105111013, 1105111, \"SEUNEUBOK JALAN\"],\n [1105111014, 1105111, \"GEULANGGANG MERAK\"],\n [1105111015, 1105111, \"SEUMATANG KEUDE\"],\n [1105111016, 1105111, \"BABAH KRUENG\"],\n [1105111017, 1105111, \"KRUT LINTANG\"],\n [1105111018, 1105111, \"JEUNGKI\"],\n [1105111019, 1105111, \"SEUNEUBOK DALAM\"],\n [1105111020, 1105111, \"TUALANG PATENG\"],\n [1105112001, 1105112, \"KABU\"],\n [1105112002, 1105112, \"BEURINGIN\"],\n [1105112003, 1105112, \"TEUMPEUN\"],\n [1105112004, 1105112, \"KEBUN TEUMPEUN\"],\n [1105112005, 1105112, \"PAYA SEUNGAT\"],\n [1105112006, 1105112, \"TANJUNG TUALANG\"],\n [1105112007, 1105112, \"BEUSA SEBERANG\"],\n [1105112008, 1105112, \"PAYA GAJAH\"],\n [1105112009, 1105112, \"MON GEUDONG\"],\n [1105112010, 1105112, \"ALUE BU TUHA\"],\n [1105112011, 1105112, \"ALUE BU JALAN\"],\n [1105112012, 1105112, \"PAYA BIEK\"],\n [1105112013, 1105112, \"BEUSA BAROH\"],\n [1105112014, 1105112, \"ALUE BU TUNONG\"],\n [1105112015, 1105112, \"ALUE BU JALAN BAROH\"],\n [1105120001, 1105120, \"BEURANDANG\"],\n [1105120002, 1105120, \"ALUE GEUNTENG\"],\n [1105120003, 1105120, \"KLIET\"],\n [1105120004, 1105120, \"GAMPONG TAMPAK\"],\n [1105120005, 1105120, \"PAYA PALAS\"],\n [1105120006, 1105120, \"ALUE BATEE\"],\n [1105120007, 1105120, \"BHOM LAMA\"],\n [1105120008, 1105120, \"PASIR PUTIH\"],\n [1105120009, 1105120, \"ALUE DUA\"],\n [1105120010, 1105120, \"BUKET PALA BSP\"],\n [1105120011, 1105120, \"PUNTI PAYONG\"],\n [1105120012, 1105120, \"SEUMALY\"],\n [1105120013, 1105120, \"KP. PERTAMINA\"],\n [1105120014, 1105120, \"BLANG BAROM\"],\n [1105120015, 1105120, \"PULO BLANG\"],\n [1105120016, 1105120, \"SNB JOHAN\"],\n [1105120017, 1105120, \"PAYA UNOU\"],\n [1105120018, 1105120, \"SNB BARO\"],\n [1105120019, 1105120, \"SNB DALAM\"],\n [1105120020, 1105120, \"SEULEMAK MUDA\"],\n [1105120021, 1105120, \"MATA IE\"],\n [1105120022, 1105120, \"ALUE UDEP\"],\n [1105120023, 1105120, \"SEUMANAH JAYA\"],\n [1105130042, 1105130, \"DAMA PULO\"],\n [1105130043, 1105130, \"GUREB BLANG\"],\n [1105130044, 1105130, \"SEUNEUBOK TUTONG\"],\n [1105130045, 1105130, \"SAM PAI MAH\"],\n [1105130046, 1105130, \"SEUNEUBOK TUHA\"],\n [1105130047, 1105130, \"BUKET LANGA\"],\n [1105130048, 1105130, \"BUKET JUARA\"],\n [1105130049, 1105130, \"BUKET PALA\"],\n [1105130050, 1105130, \"MEUNASAH PUUK\"],\n [1105130051, 1105130, \"KEUDE BLANG\"],\n [1105130078, 1105130, \"BANTAYAN TIMUR\"],\n [1105130079, 1105130, \"GAMPONG ACEH\"],\n [1105130080, 1105130, \"KEUDE ACEH\"],\n [1105130081, 1105130, \"KUTA BLANG\"],\n [1105130083, 1105130, \"SEUNEUBOK BACEE\"],\n [1105130084, 1105130, \"TITI BARO\"],\n [1105130103, 1105130, \"SEUNEUBOK TEUNGOH (PR)\"],\n [1105130104, 1105130, \"SEUNEUBOK RAMBONG\"],\n [1105130105, 1105130, \"TANOH ANOU\"],\n [1105130106, 1105130, \"KAMPUNG TANJONG\"],\n [1105130107, 1105130, \"KUALA PD PUNTONG\"],\n [1105130108, 1105130, \"KAMPUNG JAWA\"],\n [1105130109, 1105130, \"BLANG GEULUMPANG\"],\n [1105130111, 1105130, \"GAMPONG JALAN\"],\n [1105130112, 1105130, \"BUKET MEULINTEUNG\"],\n [1105130113, 1105130, \"BUKET JOK\"],\n [1105130114, 1105130, \"TEUPIN BATEE\"],\n [1105130115, 1105130, \"ALUE DUA MUKA S\"],\n [1105130116, 1105130, \"TANJONG KAPAI\"],\n [1105130117, 1105130, \"GAMPONG BARO\"],\n [1105130118, 1105130, \"KUALA IDI\"],\n [1105130119, 1105130, \"KEUTAPANG MAMEH\"],\n [1105130120, 1105130, \"ULEE BLANG\"],\n [1105130121, 1105130, \"ALUE DUA MUKA 0\"],\n [1105130122, 1105130, \"KUTA LAWAH\"],\n [1105131001, 1105131, \"ASAN RAMPAK\"],\n [1105131002, 1105131, \"BUKET KUTA\"],\n [1105131003, 1105131, \"BLANG KUTA\"],\n [1105131004, 1105131, \"ALUE BATEE\"],\n [1105131005, 1105131, \"PAYA BILI I\"],\n [1105131006, 1105131, \"BLANG BUKET\"],\n [1105131007, 1105131, \"KUTA BARO\"],\n [1105131008, 1105131, \"SEUNEUBOK TEUNGOH\"],\n [1105131009, 1105131, \"SEUNEUBOK PUNTEUT\"],\n [1105131010, 1105131, \"SAMA DUA\"],\n [1105131011, 1105131, \"KAMPUNG KEUDE\"],\n [1105131012, 1105131, \"MEUNASAH KRUENG\"],\n [1105131013, 1105131, \"PAYA BILI DUA\"],\n [1105131014, 1105131, \"PAYA DUA\"],\n [1105131015, 1105131, \"KAMPUNG KUALA\"],\n [1105131016, 1105131, \"ALUE IE ITAM\"],\n [1105131017, 1105131, \"MATANG RAYEUK\"],\n [1105132001, 1105132, \"SEUNEUBOK BAYU\"],\n [1105132002, 1105132, \"JAMBO REUHAT\"],\n [1105132003, 1105132, \"BLANG RAMBONG\"],\n [1105132004, 1105132, \"ULEE JALAN\"],\n [1105132005, 1105132, \"SEUNEUBOK KANDANG\"],\n [1105132006, 1105132, \"SEUNEUBOK BENTENG\"],\n [1105132007, 1105132, \"SEUNEUBOK PANGOU\"],\n [1105132008, 1105132, \"URAM JALAN\"],\n [1105132009, 1105132, \"JALAN DUA\"],\n [1105132010, 1105132, \"PANTON RAYEUK T\"],\n [1105132011, 1105132, \"PANTON RAYEUK A\"],\n [1105132012, 1105132, \"PANTON RAYEUK B\"],\n [1105132013, 1105132, \"PANTON RAYEUK M\"],\n [1105132014, 1105132, \"BUKET DRIEN\"],\n [1105132015, 1105132, \"PAYA LAMAN\"],\n [1105132016, 1105132, \"SEUNEUBOK SIMPANG\"],\n [1105133001, 1105133, \"ALUE LHOK\"],\n [1105133002, 1105133, \"PADANG KASAH\"],\n [1105133003, 1105133, \"SEUNEUBOK BUYA\"],\n [1105133004, 1105133, \"PAYA AWE\"],\n [1105133005, 1105133, \"PAYA GABOH\"],\n [1105133006, 1105133, \"SEUNEUBOK DRIEN\"],\n [1105133007, 1105133, \"KEUDE KEUMUNENG\"],\n [1105133008, 1105133, \"GAMPONG KEUMUNING\"],\n [1105133009, 1105133, \"SEUNEUBOK MEURUDU\"],\n [1105133010, 1105133, \"SEUNEUBOK PUNTI\"],\n [1105133011, 1105133, \"SEUNEUBOK DALAM\"],\n [1105133012, 1105133, \"SEUNEUBOK JALAN\"],\n [1105133013, 1105133, \"BUKET TEUKUH\"],\n [1105133014, 1105133, \"KEUMUNING LHOK\"],\n [1105133015, 1105133, \"BUKET RUMIYA\"],\n [1105133016, 1105133, \"ALUE KUMBANG M\"],\n [1105133017, 1105133, \"ALUE KUMBANG A\"],\n [1105133018, 1105133, \"SEUNEUBOK BARO\"],\n [1105133019, 1105133, \"BUKET PUUK\"],\n [1105133020, 1105133, \"SEUNEUBOK BULOH\"],\n [1105133021, 1105133, \"BLANG MINJEI\"],\n [1105133022, 1105133, \"BLANG SEGUCI\"],\n [1105133023, 1105133, \"BANTAYAN BARAT\"],\n [1105133024, 1105133, \"SEUNEUBOK TEUPIN PANAH\"],\n [1105133025, 1105133, \"TEUPIN PANAH\"],\n [1105134001, 1105134, \"SEUNEUBOK ACEH BARO\"],\n [1105134002, 1105134, \"LHOK LEUMAK\"],\n [1105134003, 1105134, \"SEUNEUBOK TEUNGOH (KD II)\"],\n [1105134004, 1105134, \"MEUNASAH ARON\"],\n [1105134005, 1105134, \"LHOK DALAM\"],\n [1105134006, 1105134, \"LHOK MEUREU\"],\n [1105134007, 1105134, \"PT. MEUREUBO\"],\n [1105134008, 1105134, \"KHOK PANJOU\"],\n [1105134009, 1105134, \"ALUE JANGAT\"],\n [1105134010, 1105134, \"MEDANG ARA\"],\n [1105134011, 1105134, \"SEUNEUBOK KULAM\"],\n [1105134012, 1105134, \"GUNONG PUTOH\"],\n [1105134013, 1105134, \"SEUNEUBOK LAPANG\"],\n [1105134014, 1105134, \"KEUDE DUA\"],\n [1105134015, 1105134, \"BUKET PEULAWI\"],\n [1105134016, 1105134, \"PULO BLANG\"],\n [1105135001, 1105135, \"KETAPANG DUA\"],\n [1105135002, 1105135, \"MATANG RAYEUK (SMK)\"],\n [1105135003, 1105135, \"MENUNASAH JEUMPA\"],\n [1105135004, 1105135, \"LHOK ASAHAN\"],\n [1105135005, 1105135, \"TUALANG DALAM\"],\n [1105135006, 1105135, \"SEUNEUBOK KUYUN\"],\n [1105135007, 1105135, \"ULEE GLE\"],\n [1105135008, 1105135, \"SEUNEUBOK BARAT\"],\n [1105135009, 1105135, \"SEUNEUBOK TEUNGOH (SMK)\"],\n [1105135010, 1105135, \"SEUNEUBOK TIMUR\"],\n [1105135011, 1105135, \"MATANG BUNGONG\"],\n [1105135012, 1105135, \"MATANG RAYEUK (PR)\"],\n [1105135013, 1105135, \"SEUNEUBOK DALAM (SMK)\"],\n [1105140001, 1105140, \"SEUNEUBOK SIMPANG\"],\n [1105140002, 1105140, \"ALUR LHOK\"],\n [1105140003, 1105140, \"ALUR MERBO\"],\n [1105140004, 1105140, \"MEUNASAH KEUTAPANG\"],\n [1105140005, 1105140, \"ALUE DALAM\"],\n [1105140006, 1105140, \"DAMA POLO II\"],\n [1105140007, 1105140, \"ALUR LUDIN II\"],\n [1105140008, 1105140, \"JUNGKA GAJAH\"],\n [1105140009, 1105140, \"BUKET RUMIYA\"],\n [1105140010, 1105140, \"BUKET RAYA\"],\n [1105140011, 1105140, \"GASEH SAYANG\"],\n [1105140012, 1105140, \"SEUNEUBOK BULOH\"],\n [1105140013, 1105140, \"KAPAI BARO\"],\n [1105140014, 1105140, \"KEMUNING I\"],\n [1105140015, 1105140, \"SEUNEUBOK TUHA I\"],\n [1105140016, 1105140, \"ALUE GADENG\"],\n [1105140017, 1105140, \"TRIENG GADENG\"],\n [1105140018, 1105140, \"BUKET KULAM\"],\n [1105140019, 1105140, \"SEUNEUBOK TEUNGOH\"],\n [1105140020, 1105140, \"DAMA PULO I\"],\n [1105140021, 1105140, \"KAMPUNG BEUNOT\"],\n [1105140022, 1105140, \"TEUPIN DRUM\"],\n [1105140023, 1105140, \"KUALA IDI CUT\"],\n [1105140024, 1105140, \"KAMPUNG BARO\"],\n [1105140025, 1105140, \"ALUR LUDIN I\"],\n [1105140026, 1105140, \"LHOK GEULUMPANG\"],\n [1105140027, 1105140, \"BLANG BUKET\"],\n [1105140028, 1105140, \"SEUNEUBOK TUHA II\"],\n [1105140029, 1105140, \"KEMUNING II\"],\n [1105140030, 1105140, \"BUKET TUALANG\"],\n [1105140031, 1105140, \"BAGOK PANAH IV\"],\n [1105140032, 1105140, \"BAGOK PANAH III\"],\n [1105140033, 1105140, \"KEMUNING V\"],\n [1105140034, 1105140, \"KEMUNING III\"],\n [1105140035, 1105140, \"KEMUNING IV\"],\n [1105140036, 1105140, \"GRONG-GRONG\"],\n [1105140037, 1105140, \"KAMPUNG KEUDE\"],\n [1105140038, 1105140, \"KEUDE IDI CUT\"],\n [1105140039, 1105140, \"SEUNEUBOK BAROH\"],\n [1105140040, 1105140, \"MEUNASAH BLANG\"],\n [1105140041, 1105140, \"SEUNEUBOK ACEH\"],\n [1105140042, 1105140, \"MATANG GEUTOU\"],\n [1105140043, 1105140, \"MATANG PINEUNG\"],\n [1105140044, 1105140, \"BAGOK PANAH I\"],\n [1105140045, 1105140, \"BAGOK PANAH II\"],\n [1105150001, 1105150, \"ALUE SIWAH SERDANG\"],\n [1105150002, 1105150, \"GAMPONG LHEE\"],\n [1105150003, 1105150, \"BEURANDANG\"],\n [1105150005, 1105150, \"SEUNEUBOK RAMBONG\"],\n [1105150006, 1105150, \"GAMPUNG JALAN\"],\n [1105150008, 1105150, \"BUKET MEURAK\"],\n [1105150009, 1105150, \"SEUNEUBOK DALAM\"],\n [1105150010, 1105150, \"KAMPUNG MESJID\"],\n [1105150011, 1105150, \"PAYA ENJEE\"],\n [1105150012, 1105150, \"SEULEUMAK MUDA\"],\n [1105150013, 1105150, \"COT ASAN\"],\n [1105150014, 1105150, \"BUKET PANYANG\"],\n [1105150023, 1105150, \"BUKET PANJOU\"],\n [1105150024, 1105150, \"MATANG PANYANG\"],\n [1105150025, 1105150, \"MEUNASAH HAGU\"],\n [1105150026, 1105150, \"MATANG KUNYET\"],\n [1105150027, 1105150, \"MATANG NEUHEUN\"],\n [1105150028, 1105150, \"TEUPIN PUKAT\"],\n [1105150029, 1105150, \"PULO-U\"],\n [1105150030, 1105150, \"MATANG SEULEUMAK\"],\n [1105150031, 1105150, \"BANTAYAN\"],\n [1105150032, 1105150, \"BLANG PANJOU\"],\n [1105150034, 1105150, \"SEUMATANG ARON\"],\n [1105150035, 1105150, \"MEUDANG ARA\"],\n [1105150036, 1105150, \"MEUNASAH TEUNGOH\"],\n [1105150037, 1105150, \"KAMPUNG KEUDE BAGOK\"],\n [1105150038, 1105150, \"KEUDE BAGOK\"],\n [1105150039, 1105150, \"KUALA BAGOK\"],\n [1105150040, 1105150, \"ASAN TANJUNG\"],\n [1105150041, 1105150, \"BAROH BUGENG\"],\n [1105150042, 1105150, \"PEULAWI\"],\n [1105151001, 1105151, \"TUNONG BUGENG\"],\n [1105151002, 1105151, \"GAMPONG CEMPEUDAK\"],\n [1105151003, 1105151, \"BUKET TUFAH\"],\n [1105151004, 1105151, \"TUNONG ULEE GAJAH\"],\n [1105151005, 1105151, \"KEUDONDONG\"],\n [1105151006, 1105151, \"SEUNEUBOK PANTON\"],\n [1105151007, 1105151, \"BUKET TEUMPEN\"],\n [1105151008, 1105151, \"KEUDE BLANG\"],\n [1105151009, 1105151, \"PAYA KREUB\"],\n [1105151010, 1105151, \"TUNONG PAYA KREUB\"],\n [1105151011, 1105151, \"ALUE SIWAH DUA\"],\n [1105160006, 1105160, \"KEUMUNENG\"],\n [1105160007, 1105160, \"LADANG BARO\"],\n [1105160008, 1105160, \"SEUNEUBOK BARO\"],\n [1105160009, 1105160, \"SEUNEUBOK RAMBONG\"],\n [1105160010, 1105160, \"TEUPIN RAYA\"],\n [1105160011, 1105160, \"BUKET PANYANG\"],\n [1105160012, 1105160, \"BLANG KEUMUHANG\"],\n [1105160013, 1105160, \"BUKIT MAKMUR\"],\n [1105160014, 1105160, \"BUKET DINDENG\"],\n [1105160015, 1105160, \"LHOK RAMBONG\"],\n [1105160016, 1105160, \"BLANG MIDEUN\"],\n [1105160017, 1105160, \"BLANG JAMBEE\"],\n [1105160018, 1105160, \"PAYA BAKONG\"],\n [1105160019, 1105160, \"BUKET SERAJA\"],\n [1105160020, 1105160, \"BLANG PAOH SATU\"],\n [1105160021, 1105160, \"ULEE ATEUNG\"],\n [1105160022, 1105160, \"MANE RAMPAK\"],\n [1105160023, 1105160, \"UJONG TUNONG\"],\n [1105160024, 1105160, \"PAYA PASI\"],\n [1105160025, 1105160, \"BLANG GLEUM\"],\n [1105160026, 1105160, \"ALUE CEK DOY\"],\n [1105160027, 1105160, \"TUMPOK TEUNGOH\"],\n [1105160028, 1105160, \"MATANG\"],\n [1105160029, 1105160, \"JULOK TUNONG\"],\n [1105160030, 1105160, \"BLANG PAOH DUA\"],\n [1105160031, 1105160, \"KEUDE KUTA BINJAI\"],\n [1105160032, 1105160, \"ULEE TANOH\"],\n [1105160033, 1105160, \"KUALA GEULUMPANG\"],\n [1105160034, 1105160, \"BLANG UYOK\"],\n [1105160035, 1105160, \"ULEE BLANG\"],\n [1105160036, 1105160, \"NALEUNG\"],\n [1105160037, 1105160, \"LABOHAN\"],\n [1105160038, 1105160, \"GAMPONG BARO\"],\n [1105160039, 1105160, \"SEUMATANG\"],\n [1105160040, 1105160, \"TANJONG TOK BLANG\"],\n [1105160041, 1105160, \"SIMPANG LHEE\"],\n [1105160042, 1105160, \"LHOK SEUNTANG\"],\n [1105161001, 1105161, \"ALUE IE ITAM\"],\n [1105161002, 1105161, \"SEUNEUBOK BAYU\"],\n [1105161003, 1105161, \"BLANG NISAM\"],\n [1105161004, 1105161, \"BANDAR BARO\"],\n [1105161005, 1105161, \"ALUE PATONG\"],\n [1105161006, 1105161, \"SEUNEUBOK CINA\"],\n [1105161007, 1105161, \"PELITA SAGUP JAYA\"],\n [1105161008, 1105161, \"PERK JULOK RAYEUK UTARA\"],\n [1105161009, 1105161, \"PERK JULOK RAYEUK SELATAN\"],\n [1105161010, 1105161, \"JAMBO BALEE\"],\n [1105161011, 1105161, \"ALUE IE MIRAH\"],\n [1105161012, 1105161, \"JAMBO LUBOK\"],\n [1105161013, 1105161, \"SUKA MAKMUR\"],\n [1105170001, 1105170, \"BLANG SEUNONG\"],\n [1105170002, 1105170, \"PANTE LABU\"],\n [1105170003, 1105170, \"PANTE RAMBONG\"],\n [1105170004, 1105170, \"ALUE IE MIRAH\"],\n [1105170005, 1105170, \"SEUNEUBOK TUHA\"],\n [1105170006, 1105170, \"SEUNEUBOK SABOH\"],\n [1105170007, 1105170, \"BUKET KARENG\"],\n [1105170008, 1105170, \"BUKET BATA\"],\n [1105170009, 1105170, \"GRONG GRONG\"],\n [1105170010, 1105170, \"MEUNASAH TUNONG\"],\n [1105170011, 1105170, \"MATANG PEUREULAK\"],\n [1105170012, 1105170, \"MEUNASAH LEUBOK\"],\n [1105170013, 1105170, \"MEUNASAH TEUNGOH\"],\n [1105170014, 1105170, \"KEUDE BARO\"],\n [1105170015, 1105170, \"PANTE PANAH\"],\n [1105170016, 1105170, \"MATANG PUDENG\"],\n [1105170017, 1105170, \"GAMPONG PUTOH DUA\"],\n [1105170018, 1105170, \"MATANG KRUET\"],\n [1105170019, 1105170, \"PAYA DEUMAM SATU\"],\n [1105170020, 1105170, \"PAYA DEUMAM LHEE\"],\n [1105170021, 1105170, \"PAYA DEUMAM DUA\"],\n [1105170022, 1105170, \"PUTOH SATU\"],\n [1105170023, 1105170, \"SUKA DAMAI\"],\n [1105170024, 1105170, \"SAH RAJA\"],\n [1105170025, 1105170, \"SIJUDO\"],\n [1105180003, 1105180, \"MATANG WENG\"],\n [1105180005, 1105180, \"ALUE MULIENG\"],\n [1105180009, 1105180, \"PUCOK ALUE BARAT\"],\n [1105180010, 1105180, \"PUCOK ALUE SATU\"],\n [1105180011, 1105180, \"MATANG KUMBANG\"],\n [1105180012, 1105180, \"TITI BAROEH\"],\n [1105180013, 1105180, \"ARA KUNDO\"],\n [1105180014, 1105180, \"ALUE BULOH DUA\"],\n [1105180015, 1105180, \"MATANG RAYEUK\"],\n [1105180016, 1105180, \"TEUPIN BREUH\"],\n [1105180017, 1105180, \"BLANG ME\"],\n [1105180018, 1105180, \"PUCOK ALUE DUA\"],\n [1105180019, 1105180, \"PEULALU\"],\n [1105180023, 1105180, \"ALUE BULOH SATU\"],\n [1105180024, 1105180, \"KUALA SIMPANG ULIM\"],\n [1105180025, 1105180, \"KAMPONG BARO\"],\n [1105180026, 1105180, \"NICAH AWE\"],\n [1105180027, 1105180, \"BANTAYAN\"],\n [1105180028, 1105180, \"KEUDE TUHA\"],\n [1105180030, 1105180, \"GAMPONG BLANG\"],\n [1105180031, 1105180, \"LAMPUH RAYEUK\"],\n [1105180033, 1105180, \"TEUPIN MAMPLAM\"],\n [1105180034, 1105180, \"MATANG SEUPENG\"],\n [1105181001, 1105181, \"PAYA DEUMAM PEUT\"],\n [1105181002, 1105181, \"PAYA NADEN\"],\n [1105181003, 1105181, \"TANJUNG ARA\"],\n [1105181004, 1105181, \"TANJUNG MINJEI\"],\n [1105181005, 1105181, \"SEUNEUBOK PIDIE\"],\n [1105181006, 1105181, \"RAMBONG LOP\"],\n [1105181007, 1105181, \"MATANG JROK\"],\n [1105181008, 1105181, \"MATANG NIBONG\"],\n [1105181009, 1105181, \"MADAT\"],\n [1105181010, 1105181, \"ABEUK GEULANTEU\"],\n [1105181011, 1105181, \"MATANG KEUPULA SATU\"],\n [1105181012, 1105181, \"ULEE ATEUNG\"],\n [1105181013, 1105181, \"BLANG ANDAM\"],\n [1105181014, 1105181, \"BINTAH\"],\n [1105181015, 1105181, \"BLANG AWE\"],\n [1105181016, 1105181, \"PANTE MEUREUBO\"],\n [1105181017, 1105181, \"LUENG SATU\"],\n [1105181018, 1105181, \"MATANG KEUPULA LHEE\"],\n [1105181019, 1105181, \"MATANG KEUPULA DUA\"],\n [1105181020, 1105181, \"BLANG UBIT\"],\n [1105181021, 1105181, \"LUENG PEUT\"],\n [1105181022, 1105181, \"LUENG DUA\"],\n [1105181023, 1105181, \"MATANG GURU\"],\n [1105181024, 1105181, \"PANTE BAYAM\"],\n [1105181025, 1105181, \"MEUNASAH TINGKEUM\"],\n [1105181026, 1105181, \"MEUNASAH ASAN\"],\n [1106010007, 1106010, \"LUMUT\"],\n [1106010008, 1106010, \"DELUNG SEKINEL\"],\n [1106010009, 1106010, \"JAMAT\"],\n [1106010010, 1106010, \"LINGE\"],\n [1106010011, 1106010, \"OWAQ\"],\n [1106010012, 1106010, \"PENARUN\"],\n [1106010013, 1106010, \"UMANG\"],\n [1106010014, 1106010, \"SIMPANG TIGA UNING\"],\n [1106010015, 1106010, \"PANTAN NANGKA\"],\n [1106010016, 1106010, \"MUNGKUR\"],\n [1106010017, 1106010, \"GEWAT\"],\n [1106010018, 1106010, \"KEMERLENG\"],\n [1106010019, 1106010, \"KUTE RAYANG\"],\n [1106010020, 1106010, \"KUTE KERAMIL\"],\n [1106010021, 1106010, \"KUTE RIYEM\"],\n [1106010022, 1106010, \"KUTE BARU\"],\n [1106010023, 1106010, \"KUTE ROBEL\"],\n [1106010024, 1106010, \"GELAMPANG GADING\"],\n [1106010030, 1106010, \"GEMBOYAH\"],\n [1106010031, 1106010, \"DISPOT LINGE\"],\n [1106010036, 1106010, \"ISE-ISE\"],\n [1106010037, 1106010, \"KUTE REJE\"],\n [1106010038, 1106010, \"REJE PAYUNG\"],\n [1106010039, 1106010, \"ARUL ITEM\"],\n [1106010040, 1106010, \"ANTARA\"],\n [1106010041, 1106010, \"PANTAN REDUK\"],\n [1106011001, 1106011, \"ATU LINTANG\"],\n [1106011002, 1106011, \"MERAH MEGE\"],\n [1106011003, 1106011, \"TANOH ABU\"],\n [1106011004, 1106011, \"MERAH MUYANG\"],\n [1106011005, 1106011, \"MERAH PUPUK\"],\n [1106011006, 1106011, \"BINTANG KEKELIP\"],\n [1106011007, 1106011, \"MERAH JERNANG\"],\n [1106011008, 1106011, \"KEPALA AKAL\"],\n [1106011009, 1106011, \"GAYO MURNI\"],\n [1106011010, 1106011, \"PANTAN DAMAR\"],\n [1106011011, 1106011, \"DAMAR MULYO\"],\n [1106012001, 1106012, \"GEGARANG\"],\n [1106012002, 1106012, \"BERAWANG DEWAL\"],\n [1106012003, 1106012, \"JAGONG\"],\n [1106012004, 1106012, \"MERAH SAID\"],\n [1106012005, 1106012, \"JEGET AYU\"],\n [1106012006, 1106012, \"PAYA TUNGEL\"],\n [1106012007, 1106012, \"TELEGE SARI\"],\n [1106012008, 1106012, \"PAYA DEDEP\"],\n [1106012009, 1106012, \"BUKIT KEMUNING\"],\n [1106012010, 1106012, \"BUKIT SARI\"],\n [1106020001, 1106020, \"BAMIL NOSAR\"],\n [1106020002, 1106020, \"MUDE NOSAR\"],\n [1106020003, 1106020, \"BALE NOSAR\"],\n [1106020004, 1106020, \"MENGAYA\"],\n [1106020005, 1106020, \"BEWANG\"],\n [1106020006, 1106020, \"LINUNG BULEN I\"],\n [1106020007, 1106020, \"LINUNG BULEN II\"],\n [1106020008, 1106020, \"DEDAMAR\"],\n [1106020009, 1106020, \"SERULE\"],\n [1106020010, 1106020, \"KUALA II\"],\n [1106020011, 1106020, \"KUALA I\"],\n [1106020012, 1106020, \"KALA SEGI\"],\n [1106020013, 1106020, \"KELITU\"],\n [1106020014, 1106020, \"KEJURUN SYIAH UTAMA\"],\n [1106020015, 1106020, \"WIHLAH SETIE\"],\n [1106020016, 1106020, \"ATU PAYUNG\"],\n [1106020017, 1106020, \"WAKIL JALIL\"],\n [1106020018, 1106020, \"GENUREN\"],\n [1106020019, 1106020, \"KALA BINTANG\"],\n [1106020020, 1106020, \"JAMUR KONYEL\"],\n [1106020021, 1106020, \"MERODOT\"],\n [1106020022, 1106020, \"GEGARANG\"],\n [1106020023, 1106020, \"SINTEP\"],\n [1106020024, 1106020, \"GELEPULO\"],\n [1106031001, 1106031, \"ASIR ASIR\"],\n [1106031002, 1106031, \"ASIR ASIR ASIA\"],\n [1106031003, 1106031, \"BUJANG\"],\n [1106031004, 1106031, \"HAKIM BALE BUJANG\"],\n [1106031005, 1106031, \"KENAWAT\"],\n [1106031006, 1106031, \"PEDEMUN ONE ONE\"],\n [1106031007, 1106031, \"TOWEREN TOA\"],\n [1106031008, 1106031, \"TOWEREN ANTARA\"],\n [1106031009, 1106031, \"TOWEREN UKEN\"],\n [1106031010, 1106031, \"GUNUNG SUKU\"],\n [1106031011, 1106031, \"RAWE\"],\n [1106031012, 1106031, \"TAKENGON TIMUR\"],\n [1106031013, 1106031, \"BALE ATU\"],\n [1106031014, 1106031, \"TAKENGON BARAT\"],\n [1106031015, 1106031, \"KUTENI REJE\"],\n [1106031016, 1106031, \"MERAH MERSA\"],\n [1106031017, 1106031, \"ONE-ONE\"],\n [1106031018, 1106031, \"TOWEREN MUSARA\"],\n [1106032001, 1106032, \"GUNUNG BUKIT\"],\n [1106032002, 1106032, \"LOT KALA\"],\n [1106032003, 1106032, \"MENDALE\"],\n [1106032004, 1106032, \"JONGOK MELUEM\"],\n [1106032005, 1106032, \"PAYA REJE TAMI DELEM\"],\n [1106032006, 1106032, \"PINANGAN\"],\n [1106032007, 1106032, \"PAYA TUMPI\"],\n [1106032008, 1106032, \"BUKIT SAMA\"],\n [1106032009, 1106032, \"KELUPAK MATA\"],\n [1106032010, 1106032, \"GUNUNG BALOHEN\"],\n [1106032011, 1106032, \"BUKIT\"],\n [1106032013, 1106032, \"KALA LENGKIO\"],\n [1106032014, 1106032, \"JONGOK BATHIN\"],\n [1106032015, 1106032, \"BUKIT EWIH TAMI DELEM\"],\n [1106032016, 1106032, \"GUNUNG BAHGIE\"],\n [1106032017, 1106032, \"TIMANGAN GADING\"],\n [1106032018, 1106032, \"PAYA TUMPI I\"],\n [1106032019, 1106032, \"PAYA TUMPI BARU\"],\n [1106032030, 1106032, \"KUTE LOT\"],\n [1106032031, 1106032, \"TELEGE ATU\"],\n [1106040001, 1106040, \"WIH ILANG\"],\n [1106040002, 1106040, \"WIH LAH\"],\n [1106040003, 1106040, \"PEDEKOK\"],\n [1106040004, 1106040, \"URING\"],\n [1106040005, 1106040, \"IERELOP\"],\n [1106040006, 1106040, \"TERANG ULEN\"],\n [1106040007, 1106040, \"GELE LUNGI\"],\n [1106040008, 1106040, \"KEDELAH\"],\n [1106040009, 1106040, \"WIH NAREH\"],\n [1106040010, 1106040, \"KUNG\"],\n [1106040011, 1106040, \"SIMPANG KELAPING\"],\n [1106040012, 1106040, \"KUTE LINTANG\"],\n [1106040013, 1106040, \"KAYU KUL\"],\n [1106040019, 1106040, \"UNING\"],\n [1106040022, 1106040, \"ARUL BADAK\"],\n [1106040023, 1106040, \"BERAWANG BARO\"],\n [1106040024, 1106040, \"LELUMU\"],\n [1106040025, 1106040, \"TEBUK\"],\n [1106040026, 1106040, \"PAYA JEGET\"],\n [1106040027, 1106040, \"UJUNG GELE\"],\n [1106040028, 1106040, \"PEPALANG\"],\n [1106040029, 1106040, \"PEGASING\"],\n [1106040032, 1106040, \"WIH TERJUN\"],\n [1106040033, 1106040, \"PANTAN MUSARA\"],\n [1106040034, 1106040, \"PANANGEN MATA\"],\n [1106040035, 1106040, \"LINUNG AYU\"],\n [1106040036, 1106040, \"KALA PEGASING\"],\n [1106040038, 1106040, \"BELANG BEBANGKA\"],\n [1106040039, 1106040, \"JURUSEN\"],\n [1106040041, 1106040, \"JEJEM\"],\n [1106040042, 1106040, \"SUKA DAMAI\"],\n [1106041001, 1106041, \"ATANG JUNGKET\"],\n [1106041002, 1106041, \"LENGA\"],\n [1106041003, 1106041, \"PUCUK DEKU\"],\n [1106041004, 1106041, \"ARUL LATONG\"],\n [1106041005, 1106041, \"TEBES LUES\"],\n [1106041006, 1106041, \"BIES BARU\"],\n [1106041007, 1106041, \"BIES PENENTANAN\"],\n [1106041008, 1106041, \"SP UNING NIKEN\"],\n [1106041009, 1106041, \"BIES MULIE\"],\n [1106041010, 1106041, \"SIMPANG LUKUP BADAK\"],\n [1106041011, 1106041, \"UNING PEGANTUNGEN\"],\n [1106041012, 1106041, \"KARANG BAYUR\"],\n [1106050001, 1106050, \"BLANG GELE\"],\n [1106050002, 1106050, \"TANSARIL\"],\n [1106050003, 1106050, \"BLANG KOLAK II\"],\n [1106050004, 1106050, \"BLANG KOLAK I\"],\n [1106050005, 1106050, \"KEMILI\"],\n [1106050006, 1106050, \"SIMPANG EMPAT\"],\n [1106050007, 1106050, \"BEBESEN\"],\n [1106050008, 1106050, \"MONGAL\"],\n [1106050009, 1106050, \"DALING\"],\n [1106050010, 1106050, \"TENSAREN\"],\n [1106050011, 1106050, \"LELABU\"],\n [1106050012, 1106050, \"UMANG\"],\n [1106050019, 1106050, \"ATU TULU\"],\n [1106050020, 1106050, \"GELE LAH\"],\n [1106050021, 1106050, \"ATU GAJAH REJE GURU\"],\n [1106050022, 1106050, \"PENDERE SARIL\"],\n [1106050023, 1106050, \"SADONG JURU MUDI\"],\n [1106050024, 1106050, \"KERAMAT MUPAKAT\"],\n [1106050025, 1106050, \"NUNANG ANTARA\"],\n [1106050026, 1106050, \"KEBET\"],\n [1106050027, 1106050, \"EMPUS TALU\"],\n [1106050028, 1106050, \"LEMAH BURBANA\"],\n [1106050029, 1106050, \"BAHGIE\"],\n [1106050030, 1106050, \"BUR BIAH\"],\n [1106050031, 1106050, \"ULU NUIH\"],\n [1106050032, 1106050, \"MAH BENGI\"],\n [1106050033, 1106050, \"CALO BLANG GELE\"],\n [1106050034, 1106050, \"KALA KEMILI\"],\n [1106051001, 1106051, \"TAPAK MOGE\"],\n [1106051002, 1106051, \"KUTE PANANG\"],\n [1106051003, 1106051, \"PANTAN SILE\"],\n [1106051004, 1106051, \"RATAWALI\"],\n [1106051005, 1106051, \"TIMANG RASA\"],\n [1106051006, 1106051, \"TAWAR MIKO\"],\n [1106051007, 1106051, \"TAWARDI\"],\n [1106051008, 1106051, \"WIH NONGKAL\"],\n [1106051009, 1106051, \"DEDINGIN\"],\n [1106051010, 1106051, \"SEGENE BALIK\"],\n [1106051011, 1106051, \"BUTER BALIK\"],\n [1106051012, 1106051, \"BALIK\"],\n [1106051013, 1106051, \"ATU GOGOP\"],\n [1106051014, 1106051, \"LUKUP SABUN\"],\n [1106051015, 1106051, \"LUKUP SABUN TENGAH\"],\n [1106051016, 1106051, \"LUKUP SABUN TIMUR\"],\n [1106051017, 1106051, \"LUKUP SABUN BARAT\"],\n [1106051018, 1106051, \"BUKIT RATA\"],\n [1106051019, 1106051, \"KALA NONGKAL\"],\n [1106051020, 1106051, \"EMPU BALIK\"],\n [1106051021, 1106051, \"BLANG BALIK\"],\n [1106051022, 1106051, \"WIH NONGKAL TOA\"],\n [1106051023, 1106051, \"TAPAK MOGE TIMUR\"],\n [1106051024, 1106051, \"PANTAN JERIK\"],\n [1106060009, 1106060, \"RUTIH\"],\n [1106060011, 1106060, \"GENTING GERBANG\"],\n [1106060012, 1106060, \"PEPAYUNGEN ANGKUP\"],\n [1106060013, 1106060, \"REMESEN\"],\n [1106060014, 1106060, \"BURNI BIUS\"],\n [1106060015, 1106060, \"WIHNI BAKONG\"],\n [1106060016, 1106060, \"WIH PORAK\"],\n [1106060017, 1106060, \"ARULGELE\"],\n [1106060018, 1106060, \"GUNUNG SINGIT\"],\n [1106060019, 1106060, \"SEMELIT MUTIARA\"],\n [1106060020, 1106060, \"ARUL KUMER\"],\n [1106060021, 1106060, \"WIHNI DURIN\"],\n [1106060049, 1106060, \"PAYA BEKE\"],\n [1106060051, 1106060, \"JERATA\"],\n [1106060052, 1106060, \"TERANG ENGON\"],\n [1106060053, 1106060, \"SIMPANG KEMILI\"],\n [1106060054, 1106060, \"BURNI BIUS BARU\"],\n [1106060055, 1106060, \"REBEGEDUNG\"],\n [1106060056, 1106060, \"SANEHEN\"],\n [1106060057, 1106060, \"WIH PESAM\"],\n [1106060058, 1106060, \"PAYA PELU\"],\n [1106060059, 1106060, \"ARUL PUTIH\"],\n [1106060060, 1106060, \"ARUL RELEM\"],\n [1106060061, 1106060, \"TENEBUK KP. BARU\"],\n [1106060062, 1106060, \"REREMAL\"],\n [1106060065, 1106060, \"MULIE JADI\"],\n [1106060066, 1106060, \"BIUS UTAMA\"],\n [1106060067, 1106060, \"WIH SAGI INDAH\"],\n [1106060068, 1106060, \"MEKAR INDAH\"],\n [1106060069, 1106060, \"WIH BERSIH\"],\n [1106060070, 1106060, \"ARUL KUMER TIMUR\"],\n [1106060071, 1106060, \"ARUL KUMER BARAT\"],\n [1106060072, 1106060, \"ARUL KUMER SELATAN\"],\n [1106061001, 1106061, \"PANTAN PENYO\"],\n [1106061002, 1106061, \"BAH\"],\n [1106061003, 1106061, \"CANG DURI\"],\n [1106061004, 1106061, \"JALUK\"],\n [1106061005, 1106061, \"GELUMPANG PAYUNG\"],\n [1106061006, 1106061, \"BLANG MANCUNG\"],\n [1106061007, 1106061, \"KUTE GELIME\"],\n [1106061008, 1106061, \"KALAKETOL\"],\n [1106061009, 1106061, \"SEREMPAH\"],\n [1106061010, 1106061, \"BURLAH\"],\n [1106061011, 1106061, \"REJEWALI\"],\n [1106061012, 1106061, \"PONDOK BALIK\"],\n [1106061013, 1106061, \"BUTER\"],\n [1106061014, 1106061, \"KEKUYANG\"],\n [1106061015, 1106061, \"BINTANG PEPARA\"],\n [1106061016, 1106061, \"KARANG AMPAR\"],\n [1106061017, 1106061, \"PANTAN REDUK\"],\n [1106061018, 1106061, \"JERATA\"],\n [1106061019, 1106061, \"SIMPANG JULI\"],\n [1106061020, 1106061, \"JALAN TENGAH\"],\n [1106061021, 1106061, \"BLANG MANCUNG BAWAH\"],\n [1106061022, 1106061, \"GENTING BULEN\"],\n [1106061023, 1106061, \"SELON\"],\n [1106061024, 1106061, \"BUGE ARA\"],\n [1106061025, 1106061, \"BERGANG\"],\n [1106062001, 1106062, \"PAYA KOLAK\"],\n [1106062002, 1106062, \"ARUL GADING\"],\n [1106062003, 1106062, \"TANOH DEPET\"],\n [1106062004, 1106062, \"KUYUN UKEN\"],\n [1106062005, 1106062, \"KUYUN TOA\"],\n [1106062006, 1106062, \"UNING BERAWANG RAMUNG\"],\n [1106062007, 1106062, \"CIBRO\"],\n [1106062008, 1106062, \"BERAWANG GADING\"],\n [1106062009, 1106062, \"MELALA\"],\n [1106062010, 1106062, \"BLANG KEKUMUR\"],\n [1106062011, 1106062, \"MAKMUR\"],\n [1106062012, 1106062, \"CELALA\"],\n [1106062013, 1106062, \"RAMUNG ARA\"],\n [1106062014, 1106062, \"SEPAKAT\"],\n [1106062015, 1106062, \"KUYUN\"],\n [1106062016, 1106062, \"BLANG DELEM\"],\n [1106062017, 1106062, \"DEPET INDAH\"],\n [1106063001, 1106063, \"MERANDEH PAYA\"],\n [1106063002, 1106063, \"TANJUNG\"],\n [1106063003, 1106063, \"RUSIP\"],\n [1106063004, 1106063, \"PAYA TAMPU\"],\n [1106063005, 1106063, \"KUALA RAWA\"],\n [1106063006, 1106063, \"PANTAN TENGAH\"],\n [1106063007, 1106063, \"PILAR\"],\n [1106063008, 1106063, \"ARUL PERTIK\"],\n [1106063009, 1106063, \"ATU SINGKIH\"],\n [1106063010, 1106063, \"PANTAN BENER\"],\n [1106063011, 1106063, \"KERAWANG\"],\n [1106063012, 1106063, \"PILAR JAYA\"],\n [1106063013, 1106063, \"TIRMI ARA\"],\n [1106063014, 1106063, \"MEKAR MAJU\"],\n [1106063015, 1106063, \"PILAR WIH KIRI\"],\n [1106063016, 1106063, \"LAUT JAYA\"],\n [1107050001, 1107050, \"SUWAK INDRAPURI\"],\n [1107050002, 1107050, \"PASAR ACEH\"],\n [1107050003, 1107050, \"PADANG SEURAHET\"],\n [1107050004, 1107050, \"PANGGONG\"],\n [1107050005, 1107050, \"KAMPUNG BELAKANG\"],\n [1107050006, 1107050, \"KAMPUNG PASIR\"],\n [1107050007, 1107050, \"UJUNG KALAK\"],\n [1107050008, 1107050, \"UJONG BAROH\"],\n [1107050009, 1107050, \"RUNDENG\"],\n [1107050010, 1107050, \"KUTA PADANG\"],\n [1107050011, 1107050, \"DRIEN RAMPAK\"],\n [1107050012, 1107050, \"KAMPUNG DARAT\"],\n [1107050013, 1107050, \"GAMPA\"],\n [1107050014, 1107050, \"SEUNEUBOK\"],\n [1107050015, 1107050, \"SUAK RIBEE\"],\n [1107050016, 1107050, \"SUAK RAYA\"],\n [1107050017, 1107050, \"SUAK NIE\"],\n [1107050018, 1107050, \"LAPANG\"],\n [1107050019, 1107050, \"LEUHAN\"],\n [1107050020, 1107050, \"BLANG BERANDANG\"],\n [1107050021, 1107050, \"SUAK SIGADENG\"],\n [1107060007, 1107060, \"SUAK SEUMASEH\"],\n [1107060008, 1107060, \"SUAK GEUDUBANG\"],\n [1107060009, 1107060, \"SUAK PANTE BREUH\"],\n [1107060010, 1107060, \"SUAK SEUKEE\"],\n [1107060011, 1107060, \"SUAK PANDAN\"],\n [1107060012, 1107060, \"LHOK BUBON\"],\n [1107060013, 1107060, \"GAMPONG COT\"],\n [1107060014, 1107060, \"GAMPONG TEUNGOH\"],\n [1107060015, 1107060, \"KUALA BUBON\"],\n [1107060016, 1107060, \"SUAK TIMAH\"],\n [1107060017, 1107060, \"COT DARAT\"],\n [1107060018, 1107060, \"PUCOK LUENG\"],\n [1107060019, 1107060, \"ALUE RAYA\"],\n [1107060020, 1107060, \"COT PLUH\"],\n [1107060021, 1107060, \"COT MESJID\"],\n [1107060022, 1107060, \"COT SEULAMAT\"],\n [1107060023, 1107060, \"COT SEUMEURENG\"],\n [1107060024, 1107060, \"PAYA LUMPAT\"],\n [1107060025, 1107060, \"UJONG NGA\"],\n [1107060026, 1107060, \"GAMPONG LADANG\"],\n [1107060027, 1107060, \"COT LAMPISE\"],\n [1107060028, 1107060, \"PINEM\"],\n [1107060029, 1107060, \"RANGKILEH\"],\n [1107060030, 1107060, \"COT AMUN\"],\n [1107060031, 1107060, \"REUSAK\"],\n [1107060032, 1107060, \"DEUAH\"],\n [1107060033, 1107060, \"MESJID BARO\"],\n [1107060034, 1107060, \"LEUKEUN\"],\n [1107060035, 1107060, \"LUBOK\"],\n [1107060036, 1107060, \"KRUENG TINGGAI\"],\n [1107060037, 1107060, \"PANGE\"],\n [1107060038, 1107060, \"KEUREUSENG\"],\n [1107061001, 1107061, \"RAMBONG\"],\n [1107061002, 1107061, \"BEURAWANG\"],\n [1107061003, 1107061, \"KUTA PADANG\"],\n [1107061004, 1107061, \"LAYUNG\"],\n [1107061005, 1107061, \"ALUE BAKONG\"],\n [1107061006, 1107061, \"ALUE LHOK\"],\n [1107061007, 1107061, \"GUNONG PANAH\"],\n [1107061008, 1107061, \"SEUMULENG\"],\n [1107061009, 1107061, \"KUALA PLING\"],\n [1107061010, 1107061, \"ULEE BLANG\"],\n [1107061011, 1107061, \"SEUNEUBOK TRAP\"],\n [1107061012, 1107061, \"LICEH\"],\n [1107061013, 1107061, \"COT KEUMUNENG\"],\n [1107061014, 1107061, \"SUAK PANGKAT\"],\n [1107061015, 1107061, \"PEULANTEU SP\"],\n [1107061016, 1107061, \"COT LADA\"],\n [1107061017, 1107061, \"BLANG SIBEUTONG\"],\n [1107062001, 1107062, \"PANTE MEUTIA\"],\n [1107062002, 1107062, \"SUAK BIDOK\"],\n [1107062003, 1107062, \"SUAK IE BEUSOU\"],\n [1107062004, 1107062, \"SUAK KEUMUDEE\"],\n [1107062005, 1107062, \"ARONGAN\"],\n [1107062006, 1107062, \"COT KUMBANG\"],\n [1107062007, 1107062, \"KEUB\"],\n [1107062008, 1107062, \"PEURIBU\"],\n [1107062009, 1107062, \"TEUPIN PEURAHO\"],\n [1107062010, 1107062, \"UJONG BEUSA\"],\n [1107062011, 1107062, \"KUBU\"],\n [1107062012, 1107062, \"SEUNEUBOK LUENG\"],\n [1107062013, 1107062, \"DRIEN RAMPAK\"],\n [1107062014, 1107062, \"COT BULOH\"],\n [1107062015, 1107062, \"SIMPANG PEUT\"],\n [1107062016, 1107062, \"RIMBA LANGGEH\"],\n [1107062017, 1107062, \"SEUNEUBOK TEUNGOH\"],\n [1107062018, 1107062, \"GUNONG PULO\"],\n [1107062019, 1107062, \"KARANG HAMPA\"],\n [1107062020, 1107062, \"PEULANTEU LB\"],\n [1107062021, 1107062, \"UJONG SIMPANG\"],\n [1107062022, 1107062, \"PANTON MAKMUR\"],\n [1107062023, 1107062, \"PANTON BAHAGIA\"],\n [1107062024, 1107062, \"COT JURUMUDI\"],\n [1107062025, 1107062, \"ALUE SUNDAK\"],\n [1107062026, 1107062, \"ALUE BAGOK\"],\n [1107062027, 1107062, \"ALUE BATEE\"],\n [1107070015, 1107070, \"IE ITAM BAROH\"],\n [1107070016, 1107070, \"IE ITAM TUNONG\"],\n [1107070017, 1107070, \"COT MURONG\"],\n [1107070018, 1107070, \"PADANG JAWA\"],\n [1107070023, 1107070, \"RANTO PANYANG\"],\n [1107070024, 1107070, \"GEMPA RAYA\"],\n [1107070025, 1107070, \"COT LAGAN CM\"],\n [1107070026, 1107070, \"ARON BAROH\"],\n [1107070027, 1107070, \"PASI PANDAN\"],\n [1107070033, 1107070, \"ARON TUNONG\"],\n [1107070034, 1107070, \"PASI ACEH\"],\n [1107070035, 1107070, \"LHUNG TGK YAH\"],\n [1107070036, 1107070, \"PAYA DUA\"],\n [1107070037, 1107070, \"SUAK TRING\"],\n [1107070038, 1107070, \"GLEE SIBLAH\"],\n [1107070039, 1107070, \"DARUL HUDA\"],\n [1107070040, 1107070, \"PAYA LUAH\"],\n [1107070041, 1107070, \"GUNONG RAMBONG\"],\n [1107070042, 1107070, \"LUENG BULOH\"],\n [1107070043, 1107070, \"LUENG TANOH THO\"],\n [1107070044, 1107070, \"LUENG JAWA\"],\n [1107070045, 1107070, \"TINGKEUM PANYANG\"],\n [1107070046, 1107070, \"KUALA BHEE\"],\n [1107070047, 1107070, \"PASI LUNAK\"],\n [1107070048, 1107070, \"BAKAT\"],\n [1107070049, 1107070, \"COT KEUMUDEE\"],\n [1107070050, 1107070, \"ALUE BLANG\"],\n [1107070051, 1107070, \"BLANG MEE\"],\n [1107070052, 1107070, \"KEULEUMBAH\"],\n [1107070053, 1107070, \"JAWA\"],\n [1107070054, 1107070, \"ALUE PANYANG\"],\n [1107070055, 1107070, \"PULO IE\"],\n [1107070056, 1107070, \"PASI ARA KB\"],\n [1107070057, 1107070, \"GUNUNG HAMPA\"],\n [1107070058, 1107070, \"ALUE SIKAYA\"],\n [1107070059, 1107070, \"DRIN MANGKO\"],\n [1107070060, 1107070, \"SEUMANTOK\"],\n [1107070062, 1107070, \"COT SITUAH\"],\n [1107070063, 1107070, \"PASI BIRAH\"],\n [1107070070, 1107070, \"PANTON\"],\n [1107070071, 1107070, \"ALUE SUNDAK\"],\n [1107070079, 1107070, \"TEUMAROM\"],\n [1107070080, 1107070, \"JAWI\"],\n [1107071001, 1107071, \"ALUE LEUHOB\"],\n [1107071002, 1107071, \"BLANG LUAH LM\"],\n [1107071003, 1107071, \"PASI MALE\"],\n [1107071004, 1107071, \"NAPAI\"],\n [1107071005, 1107071, \"BLANG COT MAMEH\"],\n [1107071006, 1107071, \"KULAM KAJU\"],\n [1107071007, 1107071, \"LHOK MALE\"],\n [1107071008, 1107071, \"COT RAMBONG\"],\n [1107071009, 1107071, \"LUBUK PASI ARA\"],\n [1107071010, 1107071, \"ULEE PASI ARA\"],\n [1107071011, 1107071, \"COT LAGAN LM\"],\n [1107071012, 1107071, \"LUENG BARO\"],\n [1107071013, 1107071, \"ALUE PERMAN\"],\n [1107071014, 1107071, \"BLANG COT RUBEK\"],\n [1107071015, 1107071, \"PEULUEKUNG\"],\n [1107071016, 1107071, \"PASI JEUT\"],\n [1107071017, 1107071, \"MON PASONG\"],\n [1107071018, 1107071, \"PASI MALI\"],\n [1107071019, 1107071, \"KARAK\"],\n [1107071020, 1107071, \"ALUE KEUMUNENG\"],\n [1107071021, 1107071, \"IE SAYANG\"],\n [1107071022, 1107071, \"ULEE PULO\"],\n [1107071023, 1107071, \"PASI PANYANG\"],\n [1107071024, 1107071, \"SIMPANG TEUMAROM\"],\n [1107072001, 1107072, \"COT PUNTI\"],\n [1107072002, 1107072, \"PASI JANENG\"],\n [1107072003, 1107072, \"TANGKEH\"],\n [1107072004, 1107072, \"PAYA MEUGEUNDRANG\"],\n [1107072005, 1107072, \"GUNONG PANYANG\"],\n [1107072006, 1107072, \"SEUNEUBOK DALAM\"],\n [1107072007, 1107072, \"BLANG LUAH KB\"],\n [1107072008, 1107072, \"RAMBONG PINTO\"],\n [1107072009, 1107072, \"ALUE SEURALEN\"],\n [1107072010, 1107072, \"ALUE EMPEUK\"],\n [1107072011, 1107072, \"RAMBONG\"],\n [1107072012, 1107072, \"GAMPONG BARO WT\"],\n [1107072013, 1107072, \"PASI ARA WT\"],\n [1107072014, 1107072, \"KEUBEU CAPANG\"],\n [1107072015, 1107072, \"PAYA BARO\"],\n [1107072016, 1107072, \"ALUE BILIE\"],\n [1107072017, 1107072, \"TUWI EMPEUK\"],\n [1107072018, 1107072, \"ALUE MEUGANDA\"],\n [1107072019, 1107072, \"GAMPONG BARO KB\"],\n [1107072020, 1107072, \"LUBOK PANYANG\"],\n [1107072021, 1107072, \"SEURADEUK\"],\n [1107072022, 1107072, \"BLANG MAKMUR\"],\n [1107072023, 1107072, \"BUKIT MEGAJAH\"],\n [1107072024, 1107072, \"BLANG DALAM\"],\n [1107072025, 1107072, \"TEUMIKET RANOM\"],\n [1107072026, 1107072, \"ALUE KUYUEN\"],\n [1107080023, 1107080, \"MAREK\"],\n [1107080025, 1107080, \"PASI TEUNGOH\"],\n [1107080026, 1107080, \"PASI JAMBU\"],\n [1107080027, 1107080, \"ALUE TAMPAK\"],\n [1107080028, 1107080, \"TUMPOK LADANG\"],\n [1107080032, 1107080, \"MEUNASAH ARA\"],\n [1107080033, 1107080, \"MEUNASAH RAYEUK\"],\n [1107080034, 1107080, \"MEUNASAH BULOH\"],\n [1107080035, 1107080, \"PADANG MANCANG\"],\n [1107080036, 1107080, \"MESJID\"],\n [1107080037, 1107080, \"KEUDE ARON\"],\n [1107080038, 1107080, \"PEUNIA\"],\n [1107080039, 1107080, \"SIMPANG\"],\n [1107080040, 1107080, \"BEUREUGANG\"],\n [1107080041, 1107080, \"BATU JAYA\"],\n [1107080042, 1107080, \"BLANG GEUNANG\"],\n [1107080043, 1107080, \"MUKO\"],\n [1107080044, 1107080, \"TANJONG BUNGA\"],\n [1107080045, 1107080, \"PUTIM\"],\n [1107080046, 1107080, \"MEUNASAH RAMBOT\"],\n [1107080047, 1107080, \"ALUE ON\"],\n [1107080048, 1107080, \"PASI JEUMPA\"],\n [1107080049, 1107080, \"PALIMBUNGAN\"],\n [1107080050, 1107080, \"PASI MEUGAT\"],\n [1107080051, 1107080, \"PUUK\"],\n [1107080052, 1107080, \"MEUNASAH GANTUNG\"],\n [1107080053, 1107080, \"PUNGKIE\"],\n [1107080054, 1107080, \"BABAH MEULABOH\"],\n [1107080055, 1107080, \"MENUANG TANJONG\"],\n [1107080056, 1107080, \"TANJONG MEULABOH\"],\n [1107080057, 1107080, \"BLANG DALAM\"],\n [1107080058, 1107080, \"ALUE PEUDEUNG\"],\n [1107080059, 1107080, \"PASI ARA\"],\n [1107080060, 1107080, \"KEUDE TANJONG\"],\n [1107080061, 1107080, \"PUCOK PUNGKIE\"],\n [1107080062, 1107080, \"PASI KUMBANG\"],\n [1107080063, 1107080, \"TEUPIN PANAH\"],\n [1107080064, 1107080, \"DRIEN CALEE\"],\n [1107080065, 1107080, \"ALUE LHEE\"],\n [1107080067, 1107080, \"TEULADAN\"],\n [1107080068, 1107080, \"SAWANG TEUBEE\"],\n [1107080069, 1107080, \"ALUE LHOK\"],\n [1107080070, 1107080, \"PADANG SIKABU\"],\n [1107080071, 1107080, \"KEURAMAT\"],\n [1107081001, 1107081, \"PEUNAGA CUT UJONG\"],\n [1107081002, 1107081, \"GUNONG KLENG\"],\n [1107081003, 1107081, \"PEUNAGA PASI\"],\n [1107081004, 1107081, \"PEUNAGA RAYEUK\"],\n [1107081005, 1107081, \"PAYA PEUNAGA\"],\n [1107081006, 1107081, \"LANGUNG\"],\n [1107081007, 1107081, \"MEUREUBO\"],\n [1107081008, 1107081, \"UJONG DRIEN\"],\n [1107081009, 1107081, \"PASI PINANG\"],\n [1107081010, 1107081, \"UJONG TANJONG\"],\n [1107081011, 1107081, \"BUKIT JAYA\"],\n [1107081012, 1107081, \"BULOH\"],\n [1107081013, 1107081, \"RANTO PANYANG TIMUR\"],\n [1107081014, 1107081, \"RANTO PANYANG BARAT\"],\n [1107081015, 1107081, \"MESJID TUHA\"],\n [1107081016, 1107081, \"UJONG TANOH DARAT\"],\n [1107081017, 1107081, \"RANUB DONG\"],\n [1107081018, 1107081, \"PASI MESJID\"],\n [1107081019, 1107081, \"PULO TEUNGOH RANTO\"],\n [1107081020, 1107081, \"BALEE\"],\n [1107081021, 1107081, \"SUMBER BATU\"],\n [1107081022, 1107081, \"PASI ACEH BAROH\"],\n [1107081023, 1107081, \"PASI ACEH TUNONG\"],\n [1107081024, 1107081, \"REUDEUP\"],\n [1107081025, 1107081, \"PUCOK REUDEUP\"],\n [1107081026, 1107081, \"PAYA BARO RANTO PANJANG\"],\n [1107082001, 1107082, \"TEGAL SARI\"],\n [1107082002, 1107082, \"KRUENG BEUKAH\"],\n [1107082003, 1107082, \"BERDIKARI\"],\n [1107082004, 1107082, \"SUWAK AWE\"],\n [1107082005, 1107082, \"GUNONG TAROK\"],\n [1107082006, 1107082, \"BABAH KRUENG TEKLEP\"],\n [1107082007, 1107082, \"LHOK SARI\"],\n [1107082008, 1107082, \"LHOK GUCI\"],\n [1107082009, 1107082, \"KEUDE SUWAK AWE\"],\n [1107082010, 1107082, \"SAWANG RAMBOT\"],\n [1107082011, 1107082, \"MENUANG KINCO\"],\n [1107082012, 1107082, \"SEUMARA\"],\n [1107082013, 1107082, \"SEUMANTOK\"],\n [1107082014, 1107082, \"MANJENG\"],\n [1107082015, 1107082, \"PANTE CEUREUMEN\"],\n [1107082016, 1107082, \"PULO TEUNGOH MANYENG\"],\n [1107082017, 1107082, \"KEUTAMBANG\"],\n [1107082018, 1107082, \"CANGGAI\"],\n [1107082019, 1107082, \"LAWET\"],\n [1107082020, 1107082, \"LANGO\"],\n [1107082021, 1107082, \"BABAH LUENG\"],\n [1107082022, 1107082, \"BABAH ISEUNG\"],\n [1107082023, 1107082, \"ALUE KEUMANG\"],\n [1107082024, 1107082, \"JAMBAK\"],\n [1107082025, 1107082, \"SIKUNDO\"],\n [1107083001, 1107083, \"PAYA BARO MEUKO\"],\n [1107083002, 1107083, \"GUNUNG MATA IE\"],\n [1107083003, 1107083, \"BABAH KRUENG MANGGIE\"],\n [1107083004, 1107083, \"BLANG BALEE\"],\n [1107083005, 1107083, \"LEK LEK\"],\n [1107083006, 1107083, \"GAMPONG BARO\"],\n [1107083007, 1107083, \"MEUTULANG\"],\n [1107083008, 1107083, \"MANGGIE\"],\n [1107083009, 1107083, \"TAMPING\"],\n [1107083010, 1107083, \"COT MANGGIE\"],\n [1107083011, 1107083, \"KUALA MANYE\"],\n [1107083012, 1107083, \"TUWI BUYA\"],\n [1107083013, 1107083, \"UJONG RAJA\"],\n [1107083014, 1107083, \"MUGO CUT\"],\n [1107083015, 1107083, \"MUGO RAYEUK\"],\n [1107083016, 1107083, \"BARO PAYA\"],\n [1107083017, 1107083, \"SIBINTANG\"],\n [1107083018, 1107083, \"BLANG TEUNGOH\"],\n [1107083019, 1107083, \"ANTONG\"],\n [1107090001, 1107090, \"TUWI SAYA\"],\n [1107090002, 1107090, \"LUENG BARO\"],\n [1107090003, 1107090, \"SIPOT\"],\n [1107090004, 1107090, \"GASEU\"],\n [1107090005, 1107090, \"LEUBOK BEUTONG\"],\n [1107090006, 1107090, \"PUNGKIE\"],\n [1107090007, 1107090, \"GUNONG BULOH\"],\n [1107090008, 1107090, \"RAMITIE\"],\n [1107090009, 1107090, \"GLEUNG\"],\n [1107090010, 1107090, \"TANOH MIRAH\"],\n [1107090011, 1107090, \"DRIEN SIBAK\"],\n [1107090012, 1107090, \"SAKUY\"],\n [1107090013, 1107090, \"KAJEUNG\"],\n [1107090014, 1107090, \"GEUDONG\"],\n [1107090015, 1107090, \"TUNGKOP\"],\n [1107090016, 1107090, \"SARAH PERLAK\"],\n [1107090017, 1107090, \"LANCONG\"],\n [1107090018, 1107090, \"TUTUT\"],\n [1108010001, 1108010, \"MEUNASAH LHOK\"],\n [1108010002, 1108010, \"PUDENG\"],\n [1108010003, 1108010, \"PASI\"],\n [1108010004, 1108010, \"GLEE BRUEK\"],\n [1108010005, 1108010, \"MEUNASAH COT\"],\n [1108010006, 1108010, \"CUNDIEN\"],\n [1108010007, 1108010, \"GAPUY\"],\n [1108010008, 1108010, \"MON MATA\"],\n [1108010009, 1108010, \"KEUTAPANG\"],\n [1108010010, 1108010, \"LAMSUJEN\"],\n [1108010011, 1108010, \"LAMJUHANG\"],\n [1108010012, 1108010, \"UTAMONG\"],\n [1108010013, 1108010, \"SANEY\"],\n [1108010014, 1108010, \"LAMGEURIHEU\"],\n [1108010015, 1108010, \"UMONG SEURIBEE\"],\n [1108010016, 1108010, \"LAMKUTA BLANG MEE\"],\n [1108010017, 1108010, \"TEUNGOH BLANG MEE\"],\n [1108010018, 1108010, \"TEUNGOH GEUNTEUT\"],\n [1108010019, 1108010, \"BAROH GEUNTEUT\"],\n [1108010020, 1108010, \"BAROH BLANG MEE\"],\n [1108010021, 1108010, \"JANTANG\"],\n [1108010022, 1108010, \"MEUNASAH KRUENG KALA\"],\n [1108010023, 1108010, \"KAREUNG\"],\n [1108010024, 1108010, \"BIREK\"],\n [1108010025, 1108010, \"SEUNGKO MULAT\"],\n [1108010026, 1108010, \"BAROH KRUENG KALA\"],\n [1108010027, 1108010, \"TUNONG KRUENG KALA\"],\n [1108010028, 1108010, \"PAROY\"],\n [1108020007, 1108020, \"MON IKEUN\"],\n [1108020008, 1108020, \"NAGA UMBANG\"],\n [1108020009, 1108020, \"LAMBARO KUEH\"],\n [1108020010, 1108020, \"LAM ATEUK\"],\n [1108020011, 1108020, \"ANEUK PAYA\"],\n [1108020012, 1108020, \"LAMPAYA\"],\n [1108020013, 1108020, \"LAMKRUET\"],\n [1108020014, 1108020, \"WEURAYA\"],\n [1108020015, 1108020, \"MEUNASAH LAMBARO\"],\n [1108020016, 1108020, \"MON CUT\"],\n [1108020017, 1108020, \"MEUNASAH MANYANG\"],\n [1108020018, 1108020, \"MEUNASAH KARIENG\"],\n [1108020019, 1108020, \"LAMGABOH\"],\n [1108020020, 1108020, \"TANJONG\"],\n [1108020021, 1108020, \"KUEH\"],\n [1108020022, 1108020, \"NUSA\"],\n [1108020023, 1108020, \"SEUBUN KEUTAPANG\"],\n [1108020024, 1108020, \"SEUBUN AYON\"],\n [1108020025, 1108020, \"LAMBARO SEUBUN\"],\n [1108020026, 1108020, \"MEUNASAH MESJID LAMLHOM\"],\n [1108020027, 1108020, \"MEUNASAH BARO\"],\n [1108020028, 1108020, \"MEUNASAH MESJID LAMPUUK\"],\n [1108020029, 1108020, \"MEUNASAH BALEE\"],\n [1108020030, 1108020, \"LAMGIREK\"],\n [1108020031, 1108020, \"MEUNASAH BEUTONG\"],\n [1108020032, 1108020, \"LAMCOK\"],\n [1108020033, 1108020, \"MEUNASAH BLANG\"],\n [1108020034, 1108020, \"MEUNASAH CUT\"],\n [1108021001, 1108021, \"LAYEUN\"],\n [1108021002, 1108021, \"PULOT\"],\n [1108021003, 1108021, \"LAMSEUNIA\"],\n [1108021004, 1108021, \"MEUNASAH MESJID\"],\n [1108021005, 1108021, \"MEUNASAH BAK U\"],\n [1108021006, 1108021, \"DAYAH MAMPLAM\"],\n [1108030001, 1108030, \"ANEUK GLEE\"],\n [1108030002, 1108030, \"LAM ILIE GANTO\"],\n [1108030003, 1108030, \"LAM ILIE TEUNGOH\"],\n [1108030004, 1108030, \"REUKIH DAYAH\"],\n [1108030005, 1108030, \"KRUENG LAMKAREUNG\"],\n [1108030006, 1108030, \"RITING\"],\n [1108030028, 1108030, \"LAMPANAH TUNONG\"],\n [1108030029, 1108030, \"LAMPANAH BARO\"],\n [1108030030, 1108030, \"LAMPANAH TEUNGOH\"],\n [1108030031, 1108030, \"LAMPANAH DAYAH\"],\n [1108030032, 1108030, \"LAMPANAH RANJO\"],\n [1108030033, 1108030, \"SEUOT TUNONG\"],\n [1108030034, 1108030, \"SIHOM COT\"],\n [1108030035, 1108030, \"SIHOM LHOK\"],\n [1108030036, 1108030, \"SINYEU\"],\n [1108030037, 1108030, \"SEUOT BAROH\"],\n [1108030038, 1108030, \"PASAR INDRAPURI\"],\n [1108030039, 1108030, \"INDRA PURI\"],\n [1108030040, 1108030, \"REUKIH KEUPULA\"],\n [1108030041, 1108030, \"LAMLEUBOK\"],\n [1108030042, 1108030, \"LAM ILIE MESJID\"],\n [1108030043, 1108030, \"EMPE ARA\"],\n [1108030044, 1108030, \"ULEE KAREUNG\"],\n [1108030045, 1108030, \"SEUREMO\"],\n [1108030046, 1108030, \"MEUNARA\"],\n [1108030047, 1108030, \"LINGOM\"],\n [1108030048, 1108030, \"LAMBUNOT\"],\n [1108030049, 1108030, \"LAMSIOT\"],\n [1108030050, 1108030, \"ULEE UE\"],\n [1108030051, 1108030, \"JRUEK BAK KREH\"],\n [1108030052, 1108030, \"JRUEK BALEE\"],\n [1108030053, 1108030, \"GROT MANYANG\"],\n [1108030054, 1108030, \"GROT BARO\"],\n [1108030055, 1108030, \"MON ALUE\"],\n [1108030056, 1108030, \"GROT BLANG\"],\n [1108030057, 1108030, \"SEULANGAI\"],\n [1108030058, 1108030, \"LAMPUPOK BARO\"],\n [1108030059, 1108030, \"LAMPUPOK RAYA\"],\n [1108030060, 1108030, \"LAMBEUTONG\"],\n [1108030061, 1108030, \"LIMO LAMLUWEUNG\"],\n [1108030062, 1108030, \"LIMO MESJID\"],\n [1108030063, 1108030, \"LIMO BLANG\"],\n [1108030064, 1108030, \"COT KAREUNG\"],\n [1108030065, 1108030, \"CUREH\"],\n [1108030066, 1108030, \"LHEUE\"],\n [1108030067, 1108030, \"MESALEE\"],\n [1108030068, 1108030, \"LAMLUNG\"],\n [1108030069, 1108030, \"MUREU ULE TITIE\"],\n [1108030070, 1108030, \"MUREU BUNG U\"],\n [1108030071, 1108030, \"MUREU BARO\"],\n [1108030072, 1108030, \"MUREU LAMGLUMPANG\"],\n [1108030073, 1108030, \"MANGGRA\"],\n [1108031001, 1108031, \"BAK SUKON\"],\n [1108031002, 1108031, \"SIRON KRUENG\"],\n [1108031003, 1108031, \"SIRON BLANG\"],\n [1108031004, 1108031, \"BUENG SIMEK\"],\n [1108031005, 1108031, \"BITHAK\"],\n [1108031006, 1108031, \"TUTUI\"],\n [1108031007, 1108031, \"PAKUK\"],\n [1108031008, 1108031, \"PASAR LAMPAKU\"],\n [1108031009, 1108031, \"SIGAPANG\"],\n [1108031010, 1108031, \"KEUREUWEUNG KRUENG\"],\n [1108031011, 1108031, \"KEUREUWEUNG BLANG\"],\n [1108031012, 1108031, \"GLEE JAI\"],\n [1108031013, 1108031, \"LAMPAKUK\"],\n [1108031014, 1108031, \"BANDA SAFA\"],\n [1108031015, 1108031, \"LAMTUI\"],\n [1108031016, 1108031, \"LAMBEUGAK\"],\n [1108031017, 1108031, \"LAMLEUPUNG\"],\n [1108031018, 1108031, \"COT BAYU\"],\n [1108031019, 1108031, \"KEUMIREU\"],\n [1108031020, 1108031, \"LAMLEUOT\"],\n [1108031021, 1108031, \"LEUPUNG BALEU\"],\n [1108031022, 1108031, \"IE ALANG LAMKEUREUMEUH\"],\n [1108031023, 1108031, \"IE ALANG MESJID\"],\n [1108031024, 1108031, \"IE ALANG DAYAH\"],\n [1108031025, 1108031, \"IE ALANG LAMGHUI\"],\n [1108031026, 1108031, \"MAHENG\"],\n [1108031027, 1108031, \"LEUPUNG BRUEK\"],\n [1108031028, 1108031, \"LAM ALING\"],\n [1108031029, 1108031, \"LAMSIE\"],\n [1108031030, 1108031, \"LAMPOH RAJA\"],\n [1108031031, 1108031, \"BARIH LHOK\"],\n [1108031032, 1108031, \"LAMKLENG\"],\n [1108040016, 1108040, \"ALUE GINTONG\"],\n [1108040017, 1108040, \"LHIEB\"],\n [1108040019, 1108040, \"DATA GASEU\"],\n [1108040020, 1108040, \"KEUNALOI\"],\n [1108040021, 1108040, \"JAWIE\"],\n [1108040022, 1108040, \"BUGA\"],\n [1108040023, 1108040, \"PASAR SEULIMEUM\"],\n [1108040024, 1108040, \"RABO\"],\n [1108040025, 1108040, \"LAMPISANG TUNONG\"],\n [1108040026, 1108040, \"LAMPISANG TEUNGOH\"],\n [1108040027, 1108040, \"LAMPISANG DAYAH\"],\n [1108040028, 1108040, \"CAPEUNG BAROH\"],\n [1108040029, 1108040, \"CAPEUNG DAYAH\"],\n [1108040030, 1108040, \"BAK AGHU\"],\n [1108040031, 1108040, \"MEUNASAH JEUMPA\"],\n [1108040032, 1108040, \"PINTO KHOP\"],\n [1108040033, 1108040, \"KAYEE ADANG\"],\n [1108040034, 1108040, \"SEUNEUBOK\"],\n [1108040035, 1108040, \"SEULIMEUM\"],\n [1108040036, 1108040, \"GAMPONG RAYA\"],\n [1108040037, 1108040, \"LAMJRUEN\"],\n [1108040038, 1108040, \"IBOH TANJONG\"],\n [1108040039, 1108040, \"IBOH TUNONG\"],\n [1108040040, 1108040, \"ALUE RINDANG\"],\n [1108040041, 1108040, \"MEUNASAH BARO\"],\n [1108040047, 1108040, \"AYON\"],\n [1108040048, 1108040, \"BAYU\"],\n [1108040049, 1108040, \"BATEE LHEE\"],\n [1108040050, 1108040, \"MEUNASAH TUNONG\"],\n [1108040051, 1108040, \"MANGEU\"],\n [1108040052, 1108040, \"BAK SEUTUI\"],\n [1108040053, 1108040, \"UJONG MESJID TANOH ABEE\"],\n [1108040054, 1108040, \"LAMKUK\"],\n [1108040055, 1108040, \"LAMCARAK\"],\n [1108040056, 1108040, \"LAMPANTEE\"],\n [1108040057, 1108040, \"LAMTEUBA DROE\"],\n [1108040058, 1108040, \"PULO\"],\n [1108040059, 1108040, \"MEURAH\"],\n [1108040060, 1108040, \"LAMBADA\"],\n [1108040061, 1108040, \"BLANG TINGKEUM\"],\n [1108040062, 1108040, \"LAM APENG\"],\n [1108040063, 1108040, \"ATEUK\"],\n [1108040064, 1108040, \"BEUREUNUT\"],\n [1108040065, 1108040, \"UJONG KEUPULA\"],\n [1108040066, 1108040, \"LAMPANAH\"],\n [1108040067, 1108040, \"UJONG MESJID LAMPANAH\"],\n [1108040068, 1108040, \"LEUNGAH\"],\n [1108041001, 1108041, \"JANTHO BARU\"],\n [1108041002, 1108041, \"WEU\"],\n [1108041003, 1108041, \"AWEEK\"],\n [1108041004, 1108041, \"BUENG\"],\n [1108041005, 1108041, \"JALIN\"],\n [1108041006, 1108041, \"SUKA TANI\"],\n [1108041007, 1108041, \"DATA CUT\"],\n [1108041008, 1108041, \"JANTHO\"],\n [1108041009, 1108041, \"BARUEH\"],\n [1108041010, 1108041, \"JANTHO MAKMUR\"],\n [1108041011, 1108041, \"BUKIT MEUSARA\"],\n [1108041012, 1108041, \"TEUREUBEH\"],\n [1108041013, 1108041, \"CUCUM\"],\n [1108042001, 1108042, \"PANCA\"],\n [1108042002, 1108042, \"PANCA KUBU\"],\n [1108042003, 1108042, \"LAM KUBU\"],\n [1108042004, 1108042, \"LON ASAN\"],\n [1108042005, 1108042, \"LON BAROH\"],\n [1108042006, 1108042, \"PAYA KEUREULEH\"],\n [1108042007, 1108042, \"LAMBARO TUNONG\"],\n [1108042008, 1108042, \"TEULADAN\"],\n [1108042009, 1108042, \"LAMTAMOT\"],\n [1108042010, 1108042, \"SUKA DAMAI\"],\n [1108042011, 1108042, \"SUKA MULIA\"],\n [1108042012, 1108042, \"SAREE ACEH\"],\n [1108050001, 1108050, \"LAMNGA\"],\n [1108050002, 1108050, \"BARO\"],\n [1108050003, 1108050, \"NEUHEUN\"],\n [1108050004, 1108050, \"DURUNG\"],\n [1108050005, 1108050, \"LADONG\"],\n [1108050006, 1108050, \"RUYUNG\"],\n [1108050007, 1108050, \"PAYA KAMENG\"],\n [1108050008, 1108050, \"BEURANDEH\"],\n [1108050009, 1108050, \"MEUNASAH KULAM\"],\n [1108050010, 1108050, \"MEUNASAH KEUDEE\"],\n [1108050011, 1108050, \"MEUNASAH MON\"],\n [1108050012, 1108050, \"IE SEUM\"],\n [1108050013, 1108050, \"LAMREH\"],\n [1108060001, 1108060, \"LAMPUJA\"],\n [1108060002, 1108060, \"LAM UJONG\"],\n [1108060003, 1108060, \"LAM GAWEE\"],\n [1108060004, 1108060, \"LAM ASAN\"],\n [1108060005, 1108060, \"LAM REH\"],\n [1108060006, 1108060, \"SIEM\"],\n [1108060007, 1108060, \"KRUENG KALEE\"],\n [1108060008, 1108060, \"LAMBARO SUKON\"],\n [1108060009, 1108060, \"LAMBIHEU LAMBARO ANGAN\"],\n [1108060010, 1108060, \"LAMBIHEU SIEM\"],\n [1108060011, 1108060, \"LAM KLAT\"],\n [1108060012, 1108060, \"LAMKEUNEUNG\"],\n [1108060013, 1108060, \"LAMPUUK\"],\n [1108060014, 1108060, \"LAMTIMPEUNG\"],\n [1108060015, 1108060, \"LIMPOK\"],\n [1108060016, 1108060, \"BARABUNG\"],\n [1108060017, 1108060, \"TUNGKOB\"],\n [1108060018, 1108060, \"LAM DURO\"],\n [1108060019, 1108060, \"LAMBITRA\"],\n [1108060020, 1108060, \"LIEUE\"],\n [1108060021, 1108060, \"LAMBADA PEUKAN\"],\n [1108060022, 1108060, \"BLANG\"],\n [1108060023, 1108060, \"COT\"],\n [1108060024, 1108060, \"ANGAN\"],\n [1108060026, 1108060, \"MIRUEK TAMAN\"],\n [1108060027, 1108060, \"LAMPEUDAYA\"],\n [1108060028, 1108060, \"SULEUE\"],\n [1108060029, 1108060, \"TANJONG DEAH\"],\n [1108060030, 1108060, \"TANJUNG SELAMAT\"],\n [1108061001, 1108061, \"BLANG KRUENG\"],\n [1108061002, 1108061, \"BAET\"],\n [1108061003, 1108061, \"CADEK\"],\n [1108061004, 1108061, \"KAJHU\"],\n [1108061005, 1108061, \"COT PAYA\"],\n [1108061006, 1108061, \"LAMBADA LHOK\"],\n [1108061007, 1108061, \"KLIENG COT ARON\"],\n [1108061008, 1108061, \"MIRUEK LAMREUDEUP\"],\n [1108061009, 1108061, \"KLIENG MEURIA\"],\n [1108061010, 1108061, \"LAMPINEUNG\"],\n [1108061011, 1108061, \"LAM ASAN\"],\n [1108061012, 1108061, \"LABUY\"],\n [1108061013, 1108061, \"LAM UJONG\"],\n [1108070005, 1108070, \"GUE\"],\n [1108070009, 1108070, \"BABAH JURONG\"],\n [1108070010, 1108070, \"LAMBRO DEYAH\"],\n [1108070011, 1108070, \"LAM BAED\"],\n [1108070012, 1108070, \"KRUENG ANOI\"],\n [1108070013, 1108070, \"COT MASAM\"],\n [1108070014, 1108070, \"COT MANCANG\"],\n [1108070015, 1108070, \"BUENG BAKJOK\"],\n [1108070016, 1108070, \"COT BEUT\"],\n [1108070017, 1108070, \"UJONG BLANG\"],\n [1108070018, 1108070, \"SEUPEU\"],\n [1108070019, 1108070, \"LAM NEUHEUN\"],\n [1108070020, 1108070, \"LAM PUUK\"],\n [1108070021, 1108070, \"LAMBRO BILEU\"],\n [1108070022, 1108070, \"LAMPOH KEUDE\"],\n [1108070023, 1108070, \"COT PEUTANO\"],\n [1108070024, 1108070, \"COT CUT\"],\n [1108070025, 1108070, \"LAM GLUMPANG\"],\n [1108070026, 1108070, \"MEUNASAH BAK TRIENG\"],\n [1108070027, 1108070, \"LAM ASAN\"],\n [1108070028, 1108070, \"LAMCEU\"],\n [1108070029, 1108070, \"COT PREH\"],\n [1108070030, 1108070, \"PUUK\"],\n [1108070031, 1108070, \"LAM SEUNONG\"],\n [1108070032, 1108070, \"LAM TRIENG\"],\n [1108070033, 1108070, \"BEURANGONG\"],\n [1108070034, 1108070, \"RABEU\"],\n [1108070035, 1108070, \"DEYAH\"],\n [1108070036, 1108070, \"CUCUM\"],\n [1108070037, 1108070, \"COT YANG\"],\n [1108070038, 1108070, \"COT RAYA\"],\n [1108070039, 1108070, \"LAMPOH TAROM\"],\n [1108070040, 1108070, \"ARON\"],\n [1108070041, 1108070, \"LAM ROH\"],\n [1108070042, 1108070, \"BAK BULOH\"],\n [1108070043, 1108070, \"LAM RAYA\"],\n [1108070044, 1108070, \"TUMPOK LAMPOH\"],\n [1108070045, 1108070, \"LAMBUNOT TANOH\"],\n [1108070046, 1108070, \"LAMBUNOT PAYA\"],\n [1108070047, 1108070, \"LAMTEUBE MON ARA\"],\n [1108070048, 1108070, \"LAMTEUBEE GEUPULA\"],\n [1108070049, 1108070, \"LAM ALU CUT\"],\n [1108070050, 1108070, \"LAM SABANG\"],\n [1108070051, 1108070, \"LAM ALU RAYA\"],\n [1108070052, 1108070, \"LEUPUNG ULEE ALUE\"],\n [1108070053, 1108070, \"LEUPUNG MESJID\"],\n [1108070054, 1108070, \"COT LAMME\"],\n [1108080001, 1108080, \"WEU BADA\"],\n [1108080002, 1108080, \"PIYEUNG LHANG\"],\n [1108080003, 1108080, \"PIYEUNG DATU\"],\n [1108080004, 1108080, \"PIYEUNG MANE\"],\n [1108080005, 1108080, \"KUWEU\"],\n [1108080006, 1108080, \"BUENG DAROH\"],\n [1108080007, 1108080, \"COT LAMPOH SOH\"],\n [1108080008, 1108080, \"MON ARA\"],\n [1108080009, 1108080, \"COT LHOK\"],\n [1108080010, 1108080, \"BUENG RAYA\"],\n [1108080011, 1108080, \"ATONG\"],\n [1108080012, 1108080, \"TEUBANG PHUI MESJID\"],\n [1108080013, 1108080, \"LAMME GAROT\"],\n [1108080014, 1108080, \"REUDEUP\"],\n [1108080015, 1108080, \"BAKCIRIH\"],\n [1108080016, 1108080, \"MEUNASAH TUTONG\"],\n [1108080017, 1108080, \"EMPEE TANONG\"],\n [1108080018, 1108080, \"DAYAH DABOH\"],\n [1108080019, 1108080, \"LAMPASEH KRUENG\"],\n [1108080020, 1108080, \"LAMNGA\"],\n [1108080021, 1108080, \"LAMPASEH LHOK\"],\n [1108080022, 1108080, \"BAROH\"],\n [1108080023, 1108080, \"MATA IE\"],\n [1108080024, 1108080, \"WEU KRUENG\"],\n [1108080025, 1108080, \"ALUE\"],\n [1108080026, 1108080, \"WEU LHOK\"],\n [1108080027, 1108080, \"WARABO\"],\n [1108080028, 1108080, \"TEUBANG PHUI BARO\"],\n [1108080029, 1108080, \"BUENG TUJOH\"],\n [1108080030, 1108080, \"BIRA LHOK\"],\n [1108080031, 1108080, \"BIRA COT\"],\n [1108080032, 1108080, \"PEURUMPING\"],\n [1108080035, 1108080, \"BAK DILIP\"],\n [1108080036, 1108080, \"ULEE LHAT\"],\n [1108080037, 1108080, \"SEUBAM LHOK\"],\n [1108080038, 1108080, \"LAM RAYA\"],\n [1108080039, 1108080, \"COT SEUNONG\"],\n [1108080042, 1108080, \"SEUBAM COT\"],\n [1108080043, 1108080, \"SEUMET\"],\n [1108081001, 1108081, \"COT MON RAYA\"],\n [1108081002, 1108081, \"COT GEUNDREUT\"],\n [1108081003, 1108081, \"PAYA-UE\"],\n [1108081004, 1108081, \"LAMME\"],\n [1108081005, 1108081, \"MEULAYO\"],\n [1108081006, 1108081, \"LAM SIEM\"],\n [1108081007, 1108081, \"COT PUKLAT\"],\n [1108081008, 1108081, \"DATA MAKMUR\"],\n [1108081009, 1108081, \"KAYEE KUNYET\"],\n [1108081010, 1108081, \"COT MEULANGEN\"],\n [1108081011, 1108081, \"COT NAMBAK\"],\n [1108081012, 1108081, \"COT MANCANG\"],\n [1108081013, 1108081, \"EMPEE BATA\"],\n [1108081014, 1108081, \"COT BAGI\"],\n [1108081015, 1108081, \"TEUPIN BATEE\"],\n [1108081016, 1108081, \"COT LEUOT\"],\n [1108081017, 1108081, \"COT HOHO\"],\n [1108081018, 1108081, \"COT JAMBO\"],\n [1108081019, 1108081, \"COT RUMPUN\"],\n [1108081020, 1108081, \"BUNG PAGEU\"],\n [1108081021, 1108081, \"COT SAYUN\"],\n [1108081022, 1108081, \"COT KARIENG\"],\n [1108081023, 1108081, \"COT MALEM\"],\n [1108081024, 1108081, \"KAMPUNG BLANG\"],\n [1108081025, 1108081, \"BUNG SIDOM\"],\n [1108081026, 1108081, \"COT MADHI\"],\n [1108090001, 1108090, \"KAYEE LEE\"],\n [1108090002, 1108090, \"LAM TEUNGOH\"],\n [1108090003, 1108090, \"LUBOK SUKON\"],\n [1108090004, 1108090, \"LUBOK GAPUY\"],\n [1108090005, 1108090, \"LAMDAYA\"],\n [1108090006, 1108090, \"LAM UE\"],\n [1108090007, 1108090, \"PALEUH BLANG\"],\n [1108090008, 1108090, \"PALEUH PULO\"],\n [1108090009, 1108090, \"LAMBADA\"],\n [1108090010, 1108090, \"LAMCOT\"],\n [1108090011, 1108090, \"LAMPREH LAMJAMPOK\"],\n [1108090012, 1108090, \"LAM SINYEU\"],\n [1108090013, 1108090, \"COT MENTIWAN\"],\n [1108090014, 1108090, \"COT ALUE\"],\n [1108090015, 1108090, \"COT GUD\"],\n [1108090016, 1108090, \"COT BADA\"],\n [1108090017, 1108090, \"COT SURUY\"],\n [1108090018, 1108090, \"AJEE CUT\"],\n [1108090019, 1108090, \"AJEE RAYEUK\"],\n [1108090020, 1108090, \"DHAM PULO\"],\n [1108090021, 1108090, \"PASIE LUBUK\"],\n [1108090022, 1108090, \"UJONG XII\"],\n [1108090023, 1108090, \"LAMPREH LAMTEUNGOH\"],\n [1108090024, 1108090, \"BADA\"],\n [1108090025, 1108090, \"LAMBARO\"],\n [1108090026, 1108090, \"KALUT\"],\n [1108090027, 1108090, \"MEUNASAH MANYET\"],\n [1108090028, 1108090, \"AJEE PAGAR AIR\"],\n [1108090029, 1108090, \"LUBOK BATEE\"],\n [1108090030, 1108090, \"SIRON\"],\n [1108090031, 1108090, \"MEUNASAH BARO\"],\n [1108090032, 1108090, \"PASIE LAMGAROT\"],\n [1108090033, 1108090, \"DHAM CEUKOK\"],\n [1108090034, 1108090, \"GANI\"],\n [1108090035, 1108090, \"BUENG CEUKOK\"],\n [1108090036, 1108090, \"TEUBANG PHUI\"],\n [1108090037, 1108090, \"ATEUK LUENG IE\"],\n [1108090038, 1108090, \"ATEUK ANGGOK\"],\n [1108090039, 1108090, \"BAKOY\"],\n [1108090040, 1108090, \"MEUNASAH MANYANG LAMGAROT\"],\n [1108090041, 1108090, \"MEUNASAH TUTONG\"],\n [1108090042, 1108090, \"MEUNASAH DEYAH\"],\n [1108090043, 1108090, \"JURONG PEUJEURA\"],\n [1108090044, 1108090, \"PANTEE\"],\n [1108090045, 1108090, \"BINEH BLANG\"],\n [1108090046, 1108090, \"REULOH\"],\n [1108090047, 1108090, \"TANJONG\"],\n [1108090048, 1108090, \"MEUNASAH MANYANG PAGAR AIR\"],\n [1108090049, 1108090, \"SANTAN\"],\n [1108090050, 1108090, \"MNS KRUENG\"],\n [1108091001, 1108091, \"LAMPERMAI\"],\n [1108091002, 1108091, \"MIRUK\"],\n [1108091003, 1108091, \"GLA DEYAH\"],\n [1108091004, 1108091, \"GLA MEUNASAH BARO\"],\n [1108091005, 1108091, \"MEUNASAH INTAN\"],\n [1108091006, 1108091, \"MEUNASAH BAET\"],\n [1108091007, 1108091, \"MEUNASAH MANYANG\"],\n [1108091008, 1108091, \"LAMGAPANG\"],\n [1108091009, 1108091, \"RUMPET\"],\n [1108091010, 1108091, \"BAK TRIENG\"],\n [1108091011, 1108091, \"LUENG IE\"],\n [1108091012, 1108091, \"MEUNASAH PAPEUN\"],\n [1108100001, 1108100, \"LUTHU LAMWEU\"],\n [1108100002, 1108100, \"BAET MASJID\"],\n [1108100003, 1108100, \"BAET LAMPHUOT\"],\n [1108100004, 1108100, \"BAET MEESAGO\"],\n [1108100005, 1108100, \"PANTEE RAWA\"],\n [1108100021, 1108100, \"SIBREH KEUMUDEE\"],\n [1108100022, 1108100, \"DILIP LAMTEUNGOH\"],\n [1108100023, 1108100, \"DILIP BUKTI\"],\n [1108100024, 1108100, \"REUHAT TUHA\"],\n [1108100025, 1108100, \"SEUMEUREUNG\"],\n [1108100026, 1108100, \"LUTHU DAYAH KRUENG\"],\n [1108100027, 1108100, \"LAMTANJONG\"],\n [1108100028, 1108100, \"LAMBIRAH\"],\n [1108100029, 1108100, \"KAYEE ADANG\"],\n [1108100031, 1108100, \"TAMPOK BLANG\"],\n [1108100049, 1108100, \"LAMGEU BARO\"],\n [1108100050, 1108100, \"LAMGEU TUHA\"],\n [1108100051, 1108100, \"LAMLHEU\"],\n [1108100052, 1108100, \"LAMTEH DAYAH\"],\n [1108100053, 1108100, \"TAMPOK JEURAT RAYA\"],\n [1108100054, 1108100, \"LAMPANAH INEU\"],\n [1108100055, 1108100, \"KLING MANYANG\"],\n [1108100056, 1108100, \"LAMPISANG\"],\n [1108100057, 1108100, \"LAMBARO SIBREH\"],\n [1108100058, 1108100, \"WEUSITEH\"],\n [1108100059, 1108100, \"ANEUK GALONG TITI\"],\n [1108100060, 1108100, \"ANEUK GALONG BARO\"],\n [1108100061, 1108100, \"MEUNASAH BAKTHU\"],\n [1108100062, 1108100, \"BLANG CUT\"],\n [1108100063, 1108100, \"MEUNASAH TUHA\"],\n [1108100064, 1108100, \"ANEUK BATEE\"],\n [1108100065, 1108100, \"NIRON\"],\n [1108100066, 1108100, \"BUKLOH\"],\n [1108100067, 1108100, \"LAMBARIH JURONG RAYA\"],\n [1108100068, 1108100, \"LAMBARIH BAKMEE\"],\n [1108101001, 1108101, \"LEUBOK BATEE\"],\n [1108101002, 1108101, \"LEUBOK BUNI\"],\n [1108101003, 1108101, \"BUGHU\"],\n [1108101004, 1108101, \"TEU DAYAH\"],\n [1108101005, 1108101, \"LAM ARA TUNONG\"],\n [1108101006, 1108101, \"LAM ARA EUNGKIT\"],\n [1108101007, 1108101, \"LAM ARA CUT\"],\n [1108101008, 1108101, \"LEUPUNG CUT\"],\n [1108101009, 1108101, \"TUMBO BARO\"],\n [1108101010, 1108101, \"LAMBARO SAMAHANI\"],\n [1108101011, 1108101, \"LEUPUNG RIWAT\"],\n [1108101012, 1108101, \"LEUPUNG RAYEUK\"],\n [1108101013, 1108101, \"REULEUNG GLUMPANG\"],\n [1108101014, 1108101, \"REULEUNG KARIENG\"],\n [1108101015, 1108101, \"LAMSITEH COT\"],\n [1108102001, 1108102, \"TAN TUHA\"],\n [1108102002, 1108102, \"BLANG PREH\"],\n [1108102003, 1108102, \"BLANG MIRO\"],\n [1108102004, 1108102, \"BHA ULEE TUTU\"],\n [1108102005, 1108102, \"LAMBUNOT\"],\n [1108102006, 1108102, \"LAMBATEE\"],\n [1108102007, 1108102, \"NYA\"],\n [1108102008, 1108102, \"KRUENG MAK\"],\n [1108102009, 1108102, \"BATEE LINTEUNG\"],\n [1108102010, 1108102, \"ATEUK LAMPHANG\"],\n [1108102011, 1108102, \"ATEUK CUT\"],\n [1108102012, 1108102, \"ATEUK BLANG ASAN\"],\n [1108102013, 1108102, \"ATEUK MON PANAH\"],\n [1108102014, 1108102, \"ATEUK LAM URA\"],\n [1108102015, 1108102, \"ATEUK LAMPEUOT\"],\n [1108102016, 1108102, \"LAMJAMEE DAYAH\"],\n [1108102017, 1108102, \"LAMJAMEE LAMKRAK\"],\n [1108102018, 1108102, \"LAM URIT\"],\n [1108110014, 1108110, \"DEUNONG\"],\n [1108110015, 1108110, \"LEU GEU\"],\n [1108110017, 1108110, \"LAMSITEH\"],\n [1108110018, 1108110, \"LAMPEUNEUEN\"],\n [1108110019, 1108110, \"ULEE TUY\"],\n [1108110020, 1108110, \"PUNIE\"],\n [1108110021, 1108110, \"LEU UE\"],\n [1108110022, 1108110, \"GEUNDRING\"],\n [1108110023, 1108110, \"PASHEU BEUTONG\"],\n [1108110024, 1108110, \"LAMPASI ENGKING\"],\n [1108110025, 1108110, \"JEUMPET AJUN\"],\n [1108110026, 1108110, \"GAROT\"],\n [1108110027, 1108110, \"GUE GAJAH\"],\n [1108110028, 1108110, \"ULEE LUENG\"],\n [1108110029, 1108110, \"LAM BHEU\"],\n [1108110030, 1108110, \"KANDANG\"],\n [1108110031, 1108110, \"DAROY KAMEU\"],\n [1108110032, 1108110, \"TINGKEUM\"],\n [1108110033, 1108110, \"LAMTHEUN\"],\n [1108110034, 1108110, \"LAMSIDAYA\"],\n [1108110035, 1108110, \"KUTA KARANG\"],\n [1108110036, 1108110, \"LAMKAWEE\"],\n [1108110037, 1108110, \"LHEU BLANG\"],\n [1108110038, 1108110, \"LAGANG\"],\n [1108110039, 1108110, \"LAMBLANG MANYANG\"],\n [1108110040, 1108110, \"LAMBLANG TRIENG\"],\n [1108110041, 1108110, \"PAYAROH\"],\n [1108110042, 1108110, \"LAMPEUNEURUT UJONG BLANG\"],\n [1108110043, 1108110, \"LAMPEUNEURUT GAMPONG\"],\n [1108110044, 1108110, \"LAMCOT\"],\n [1108110045, 1108110, \"LAMREUNG\"],\n [1108110046, 1108110, \"BAYU\"],\n [1108111001, 1108111, \"LAMBARO BILUY\"],\n [1108111002, 1108111, \"EMPETRING\"],\n [1108111003, 1108111, \"BILUY\"],\n [1108111004, 1108111, \"LAMSOD\"],\n [1108111005, 1108111, \"MANEE DAYAH\"],\n [1108111006, 1108111, \"LAMTADOK\"],\n [1108111007, 1108111, \"LAMKUNYET\"],\n [1108111008, 1108111, \"LHANG\"],\n [1108111009, 1108111, \"LAMBATEE\"],\n [1108111010, 1108111, \"TURAM\"],\n [1108111011, 1108111, \"BLANG KIREE\"],\n [1108111012, 1108111, \"TEUBALUI\"],\n [1108111013, 1108111, \"NEUSOK\"],\n [1108111014, 1108111, \"LAM BLEUT\"],\n [1108120001, 1108120, \"BERADEUN\"],\n [1108120002, 1108120, \"KEUNEUEU\"],\n [1108120003, 1108120, \"LAMPISANG\"],\n [1108120004, 1108120, \"RIMA JEUNE\"],\n [1108120005, 1108120, \"RIMA KEUNERUM\"],\n [1108120006, 1108120, \"AJUEN\"],\n [1108120007, 1108120, \"LAM HASAN\"],\n [1108120008, 1108120, \"PAYATIENG\"],\n [1108120009, 1108120, \"LAMGEU-EU\"],\n [1108120010, 1108120, \"LAM RUKAM\"],\n [1108120011, 1108120, \"GURAH\"],\n [1108120012, 1108120, \"LAM ISEK\"],\n [1108120013, 1108120, \"LAM KEUMOK\"],\n [1108120014, 1108120, \"LAMLUMPU\"],\n [1108120015, 1108120, \"LAM TEEH\"],\n [1108120016, 1108120, \"BARO\"],\n [1108120017, 1108120, \"LAM MANYANG\"],\n [1108120018, 1108120, \"LAM AWEE\"],\n [1108120019, 1108120, \"MEUNASAH TUHA\"],\n [1108120020, 1108120, \"LAM TEUNGOH\"],\n [1108120021, 1108120, \"LAM TUTUI\"],\n [1108120022, 1108120, \"LAM GURON\"],\n [1108120023, 1108120, \"LAM BADEUK\"],\n [1108120024, 1108120, \"LAMBARO NEUJID\"],\n [1108120025, 1108120, \"LAM PAGEU\"],\n [1108120026, 1108120, \"PULO BUNTA\"],\n [1108130001, 1108130, \"TEUNOM\"],\n [1108130002, 1108130, \"PASI JANENG\"],\n [1108130003, 1108130, \"ALUE RIYEUNG\"],\n [1108130004, 1108130, \"DEUDAP\"],\n [1108130005, 1108130, \"RABO\"],\n [1108130006, 1108130, \"LAMTENG\"],\n [1108130007, 1108130, \"LHOH\"],\n [1108130008, 1108130, \"LAMPUYANG\"],\n [1108130009, 1108130, \"LAPENG\"],\n [1108130010, 1108130, \"PALOH\"],\n [1108130011, 1108130, \"BLANG SITUNGKOH\"],\n [1108130012, 1108130, \"ULEE PAYA\"],\n [1108130013, 1108130, \"SEURAPONG\"],\n [1108130014, 1108130, \"GUGOB\"],\n [1108130015, 1108130, \"ALUE RAYA\"],\n [1108130016, 1108130, \"RINON\"],\n [1108130017, 1108130, \"MELINGGE\"],\n [1109010003, 1109010, \"KEUNE\"],\n [1109010004, 1109010, \"BANGKEH\"],\n [1109010005, 1109010, \"PULO LOIH\"],\n [1109010006, 1109010, \"PUCOK\"],\n [1109010007, 1109010, \"LEUPU\"],\n [1109010008, 1109010, \"UPT V GEUMPANG\"],\n [1109011001, 1109011, \"MANE\"],\n [1109011002, 1109011, \"TURUE CUT\"],\n [1109011003, 1109011, \"LUTUENG\"],\n [1109011004, 1109011, \"BLANG DALAM\"],\n [1109070001, 1109070, \"KUMBANG KEUPULA\"],\n [1109070002, 1109070, \"TUFAH JEULATANG\"],\n [1109070003, 1109070, \"KEUTAPANG MESJID\"],\n [1109070004, 1109070, \"AMUD MESJID\"],\n [1109070005, 1109070, \"COT TUNONG\"],\n [1109070006, 1109070, \"COT BAROH\"],\n [1109070007, 1109070, \"KRUENG NYONG\"],\n [1109070008, 1109070, \"KRUENG JANGKO\"],\n [1109070009, 1109070, \"REUDEUP MEULAYU\"],\n [1109070010, 1109070, \"PANJOE\"],\n [1109070011, 1109070, \"PULO GAJAH MATEE\"],\n [1109070012, 1109070, \"MENJE\"],\n [1109070013, 1109070, \"JURONG PANDEE\"],\n [1109070014, 1109070, \"PULO LON/P.DAYAH\"],\n [1109070015, 1109070, \"KAMPUNG JUMPA\"],\n [1109070016, 1109070, \"BILI\"],\n [1109070017, 1109070, \"DAYAH TANOH\"],\n [1109070018, 1109070, \"SIMPANG\"],\n [1109070019, 1109070, \"KAYEE JATOE\"],\n [1109070020, 1109070, \"KRUET TEUMPEUN\"],\n [1109070021, 1109070, \"SUKON BAROH\"],\n [1109070022, 1109070, \"BLANG DRANG\"],\n [1109070023, 1109070, \"MAMPLAM\"],\n [1109070024, 1109070, \"SUKON MESJID\"],\n [1109070025, 1109070, \"PULO BATEE\"],\n [1109070026, 1109070, \"NEUROK\"],\n [1109070027, 1109070, \"LAMBARO\"],\n [1109070028, 1109070, \"BLANG PUEB\"],\n [1109070029, 1109070, \"BLANG TUNONG\"],\n [1109070030, 1109070, \"DAYAH KP. PISANG\"],\n [1109070031, 1109070, \"BALEE\"],\n [1109070032, 1109070, \"UDE GAMPONG\"],\n [1109070033, 1109070, \"KUPULA\"],\n [1109070039, 1109070, \"PULO LEUNG TEUGA\"],\n [1109071001, 1109071, \"MANYANG\"],\n [1109071002, 1109071, \"MEUNASAH SAGOE\"],\n [1109071003, 1109071, \"PULO IBOIH\"],\n [1109071004, 1109071, \"JURONG BARO\"],\n [1109071005, 1109071, \"GEUNTENG\"],\n [1109071006, 1109071, \"SUKON PAKU\"],\n [1109071007, 1109071, \"BLANG BAROH\"],\n [1109071008, 1109071, \"MEUNASAH SANGGET\"],\n [1109071009, 1109071, \"MEUNASAH BUNGONG\"],\n [1109071010, 1109071, \"MEUNASAH SEUKEE\"],\n [1109071011, 1109071, \"PULO PANJOU\"],\n [1109071012, 1109071, \"SEUREUKUI/CEBREK\"],\n [1109071013, 1109071, \"MEUNASAH DABOIH\"],\n [1109071014, 1109071, \"BALE GANTUNG\"],\n [1109071015, 1109071, \"ME TEUMPEUN\"],\n [1109071016, 1109071, \"U BUNGKOK\"],\n [1109071017, 1109071, \"KUMBANG UNOE\"],\n [1109071018, 1109071, \"GLUMPANG BUNGKOK\"],\n [1109071019, 1109071, \"MEUNASAH KUMPANG\"],\n [1109071020, 1109071, \"MEUNASAH UKEE\"],\n [1109071021, 1109071, \"PALONG\"],\n [1109080032, 1109080, \"PAYA TIBA\"],\n [1109080033, 1109080, \"RAPANA\"],\n [1109080034, 1109080, \"BARO YAMAN\"],\n [1109080044, 1109080, \"SENTOSA\"],\n [1109080045, 1109080, \"MESJID YAMAN\"],\n [1109080046, 1109080, \"BAROH BARAT YAMAN\"],\n [1109080047, 1109080, \"MEE TEUNGOH\"],\n [1109080048, 1109080, \"BALE\"],\n [1109080049, 1109080, \"LINGKOK\"],\n [1109080050, 1109080, \"REULUI\"],\n [1109080051, 1109080, \"DAYAH SYARIF\"],\n [1109080052, 1109080, \"RIBEUN\"],\n [1109080053, 1109080, \"PEUREULAK\"],\n [1109080054, 1109080, \"KUMBANG\"],\n [1109080055, 1109080, \"MEE PANYANG\"],\n [1109080056, 1109080, \"BLANG LILEUE\"],\n [1109080057, 1109080, \"BALE BARO KEUMANGAN\"],\n [1109080058, 1109080, \"MESJID KEUMANGAN\"],\n [1109080059, 1109080, \"LUENG SAGOE\"],\n [1109080060, 1109080, \"BLANG BEUREUEH\"],\n [1109080069, 1109080, \"LAMPOH SIRONG\"],\n [1109080070, 1109080, \"PANTE BEUREUEH\"],\n [1109080071, 1109080, \"PALOH KAMBUEK\"],\n [1109080072, 1109080, \"DAYAH BEUREUEH\"],\n [1109080073, 1109080, \"BLANG TIDIEK\"],\n [1109080074, 1109080, \"JADAN\"],\n [1109080075, 1109080, \"TUHA GAMPONG GAJAH\"],\n [1109080076, 1109080, \"DAYAH TIDIEK\"],\n [1109080077, 1109080, \"KEUMANGAN CUT\"],\n [1109081001, 1109081, \"TONG PERIA\"],\n [1109081002, 1109081, \"TONG WENG\"],\n [1109081003, 1109081, \"BARIEH\"],\n [1109081004, 1109081, \"BLANGONG BASAH\"],\n [1109081005, 1109081, \"KULAM ARA\"],\n [1109081006, 1109081, \"DIDOH\"],\n [1109081007, 1109081, \"RINTI\"],\n [1109081008, 1109081, \"BALEE UJONG RIMBA\"],\n [1109081009, 1109081, \"MEUGIT\"],\n [1109081010, 1109081, \"EMPEH\"],\n [1109081011, 1109081, \"MESJID GUMPUENG\"],\n [1109081012, 1109081, \"PULO DRIEN\"],\n [1109081013, 1109081, \"SIMBE\"],\n [1109081014, 1109081, \"ULEE GAMPONG\"],\n [1109081015, 1109081, \"MON ARA\"],\n [1109081016, 1109081, \"BAROH\"],\n [1109081017, 1109081, \"BARO UJONG RIMBA\"],\n [1109081018, 1109081, \"BLANG RIEK\"],\n [1109081019, 1109081, \"PALOH RAYA\"],\n [1109081020, 1109081, \"NIBONG\"],\n [1109081021, 1109081, \"PALOH LHOK USI\"],\n [1109081022, 1109081, \"CAMPLI USI\"],\n [1109081023, 1109081, \"DAYAH USI\"],\n [1109081024, 1109081, \"PALOH TINGGI\"],\n [1109081025, 1109081, \"RAMBONG\"],\n [1109081026, 1109081, \"MEE TANJONG USI\"],\n [1109081027, 1109081, \"MESJID USI\"],\n [1109081028, 1109081, \"GAMPONG COT USI\"],\n [1109081029, 1109081, \"REUBAT\"],\n [1109081030, 1109081, \"TIBA RAYA\"],\n [1109081031, 1109081, \"MESJID TIBA\"],\n [1109081032, 1109081, \"JOJO\"],\n [1109081033, 1109081, \"GAMPONG LADA\"],\n [1109081034, 1109081, \"DAYAH KUMBA\"],\n [1109081035, 1109081, \"COT KUTHANG\"],\n [1109081036, 1109081, \"MESJID JEURAT MANYANG\"],\n [1109081037, 1109081, \"SAGOE TEUMPEUN\"],\n [1109081038, 1109081, \"DAYAH TANOH\"],\n [1109081039, 1109081, \"BEUREU EH II\"],\n [1109081040, 1109081, \"JIEM\"],\n [1109081041, 1109081, \"ULEE TUTUE\"],\n [1109081042, 1109081, \"MECAT ADAN\"],\n [1109081043, 1109081, \"KARIENG\"],\n [1109081044, 1109081, \"RAMBOT ADAN\"],\n [1109081045, 1109081, \"ALUE ADAN\"],\n [1109081046, 1109081, \"DAYAH ADAN\"],\n [1109081047, 1109081, \"MEE ADAN\"],\n [1109081048, 1109081, \"JUMPHOIH ADAN\"],\n [1109090001, 1109090, \"BLANG RIKUI\"],\n [1109090002, 1109090, \"PANTON BEUNOT\"],\n [1109090003, 1109090, \"DAYA COT\"],\n [1109090004, 1109090, \"DAYA KAMPONG BARO\"],\n [1109090005, 1109090, \"DAYA BAROH\"],\n [1109090006, 1109090, \"DAYA TEUNGOH\"],\n [1109090007, 1109090, \"PULO KEUNARI\"],\n [1109090008, 1109090, \"PULO GLUMPANG\"],\n [1109090009, 1109090, \"PEUNADOK\"],\n [1109090010, 1109090, \"PULO TAMBO\"],\n [1109090011, 1109090, \"MNS. MANCANG\"],\n [1109090012, 1109090, \"MNS. PANAH\"],\n [1109090013, 1109090, \"PULO MESJID\"],\n [1109090014, 1109090, \"TRIENG CUDO TUNONG\"],\n [1109090015, 1109090, \"MAMPREE\"],\n [1109090016, 1109090, \"TRIENG CUDO BAROH\"],\n [1109090017, 1109090, \"RABO\"],\n [1109090018, 1109090, \"PULO SIBLAH\"],\n [1109090019, 1109090, \"LHOK IGEUH\"],\n [1109100001, 1109100, \"PULO SEJAHTRA\"],\n [1109100002, 1109100, \"KRUENG MEURIAM\"],\n [1109100003, 1109100, \"PEUNALOM II\"],\n [1109100004, 1109100, \"PEUNALOM I\"],\n [1109100005, 1109100, \"PULO BARO\"],\n [1109100006, 1109100, \"KEUDE TANGSE\"],\n [1109100007, 1109100, \"PULO MESJID I\"],\n [1109100008, 1109100, \"PULO MESJID II\"],\n [1109100009, 1109100, \"BLANG JEURAT\"],\n [1109100010, 1109100, \"LAYAN\"],\n [1109100011, 1109100, \"BLANG DALAM\"],\n [1109100012, 1109100, \"RANTO PANYANG\"],\n [1109100013, 1109100, \"BLANG TEUNGOH\"],\n [1109100014, 1109100, \"BLANG BUNGONG\"],\n [1109100015, 1109100, \"BLANG DHOD\"],\n [1109100016, 1109100, \"PAYA GUCI\"],\n [1109100017, 1109100, \"ULEE GUNONG\"],\n [1109100018, 1109100, \"KEUBON NILAM\"],\n [1109100019, 1109100, \"PULO SEUNONG\"],\n [1109100020, 1109100, \"PULO KAWA\"],\n [1109100021, 1109100, \"NEUBOK BADEUK\"],\n [1109100022, 1109100, \"BLANG MALO\"],\n [1109100023, 1109100, \"KRUENG SEUKEUK\"],\n [1109100024, 1109100, \"BEUNGGA\"],\n [1109100025, 1109100, \"PULO IEE\"],\n [1109100026, 1109100, \"ALUE CALONG\"],\n [1109100027, 1109100, \"LHOK KEUTAPANG\"],\n [1109100029, 1109100, \"BLANG PANDAK\"],\n [1109111001, 1109111, \"PAKO\"],\n [1109111002, 1109111, \"TUNONG\"],\n [1109111003, 1109111, \"PULO CAHI\"],\n [1109111004, 1109111, \"PULO SEUPENG\"],\n [1109111005, 1109111, \"PAPEUEN NICAH\"],\n [1109111006, 1109111, \"UGADENG\"],\n [1109111007, 1109111, \"KUMBANG\"],\n [1109111008, 1109111, \"SAGOE\"],\n [1109111009, 1109111, \"DAYAH KEUMALA\"],\n [1109111010, 1109111, \"RHENG\"],\n [1109111011, 1109111, \"MESJID NICAH\"],\n [1109111012, 1109111, \"ASAN NICAH\"],\n [1109111013, 1109111, \"PALOH TEUNGOH\"],\n [1109111014, 1109111, \"JIJIEM\"],\n [1109111015, 1109111, \"COT KREH\"],\n [1109111016, 1109111, \"PULO BARO\"],\n [1109111017, 1109111, \"COT NURAN\"],\n [1109111018, 1109111, \"PULO PANTE\"],\n [1109112001, 1109112, \"ALUE\"],\n [1109112002, 1109112, \"BLANG THO\"],\n [1109112003, 1109112, \"ASAN TONGPEUDENG\"],\n [1109112004, 1109112, \"MESJID TONGPEUDENG\"],\n [1109112005, 1109112, \"PULO LOIH\"],\n [1109112006, 1109112, \"PULO RAYA\"],\n [1109112007, 1109112, \"PALOH NALEUNG\"],\n [1109112008, 1109112, \"DAYAH MENARA\"],\n [1109112009, 1109112, \"PANTE SIREN\"],\n [1109112010, 1109112, \"UKE\"],\n [1109112011, 1109112, \"PANTE KULU\"],\n [1109112012, 1109112, \"CUT\"],\n [1109112013, 1109112, \"LINGKOK\"],\n [1109120001, 1109120, \"BARIEH\"],\n [1109120002, 1109120, \"KANDANG\"],\n [1109120003, 1109120, \"PALOH JEUREULA\"],\n [1109120004, 1109120, \"COT CANTEK\"],\n [1109120005, 1109120, \"LHOK PANAH\"],\n [1109120006, 1109120, \"BLANG COT\"],\n [1109120007, 1109120, \"BLANG KUMOT TUNONG\"],\n [1109120008, 1109120, \"MURONG COT\"],\n [1109120009, 1109120, \"MURONG LHOK\"],\n [1109120010, 1109120, \"GAMPONG COT\"],\n [1109120011, 1109120, \"RIWEUK\"],\n [1109120012, 1109120, \"MANCANG\"],\n [1109120013, 1109120, \"KP PISANG BUCUE\"],\n [1109120014, 1109120, \"LINGKOK\"],\n [1109120015, 1109120, \"CUMBOK LIE\"],\n [1109120016, 1109120, \"BLANG KUMOT BAROH\"],\n [1109120017, 1109120, \"LAM UJONG\"],\n [1109120018, 1109120, \"CUMBOK NIWA\"],\n [1109120019, 1109120, \"DAYAH KP PISANG\"],\n [1109120020, 1109120, \"LEUPUEM MESJID\"],\n [1109120021, 1109120, \"JURONG PANTE\"],\n [1109120022, 1109120, \"BEUTONG PERLAK\"],\n [1109120023, 1109120, \"BUCUE\"],\n [1109120024, 1109120, \"BALUE TANOH\"],\n [1109120025, 1109120, \"COT SUKON\"],\n [1109120026, 1109120, \"BALUE KULU\"],\n [1109120027, 1109120, \"LHOK ME\"],\n [1109120028, 1109120, \"BEUTONG POCUT\"],\n [1109120029, 1109120, \"PASAR KOTA BAKTI\"],\n [1109120030, 1109120, \"GAMPONG BARO\"],\n [1109120031, 1109120, \"MNS BLANG\"],\n [1109120032, 1109120, \"MNS BALE\"],\n [1109120033, 1109120, \"GAMPONG JUMPA\"],\n [1109120034, 1109120, \"PANTE KRUENG\"],\n [1109120035, 1109120, \"LAMEUE MNS RAYA\"],\n [1109120036, 1109120, \"DAYAH TUHA\"],\n [1109120037, 1109120, \"LAMEUE MNS BARO\"],\n [1109120038, 1109120, \"PULO JUMPA\"],\n [1109120039, 1109120, \"PULO KEUREMBOK\"],\n [1109120040, 1109120, \"PERLAK ASAN\"],\n [1109120041, 1109120, \"PERLAK BAROH\"],\n [1109120042, 1109120, \"MALI LAMKUTA\"],\n [1109120043, 1109120, \"MALI UKE\"],\n [1109120044, 1109120, \"MALI GUYUI\"],\n [1109120045, 1109120, \"TANG KUENG\"],\n [1109120046, 1109120, \"LAMEU MNS LEUNG\"],\n [1109120047, 1109120, \"LHOK EMPEH\"],\n [1109120048, 1109120, \"MALI MESJID\"],\n [1109120049, 1109120, \"MALI COT\"],\n [1109130001, 1109130, \"TUHA LALA\"],\n [1109130002, 1109130, \"MEUYUB LALA\"],\n [1109130003, 1109130, \"KULU\"],\n [1109130004, 1109130, \"LHOK LUBU\"],\n [1109130005, 1109130, \"KRUENG LALA\"],\n [1109130006, 1109130, \"BABAH JURONG\"],\n [1109130007, 1109130, \"MESJID ANDEUE\"],\n [1109130008, 1109130, \"DAYAH ANDEUE\"],\n [1109130009, 1109130, \"DAYAH SINTHOP\"],\n [1109130010, 1109130, \"PULO TANJONG\"],\n [1109130011, 1109130, \"TEUMEUCET\"],\n [1109130012, 1109130, \"BLANG CUT\"],\n [1109130013, 1109130, \"KUMBANG\"],\n [1109130014, 1109130, \"BLANG\"],\n [1109130015, 1109130, \"LAGANG\"],\n [1109130016, 1109130, \"TUNONG ILOT\"],\n [1109130017, 1109130, \"BAROH ILOT\"],\n [1109130018, 1109130, \"TEUNGOH ILOT\"],\n [1109130019, 1109130, \"MESJID ILOT\"],\n [1109130020, 1109130, \"ARA BUNGKOK\"],\n [1109140001, 1109140, \"SEUNADEU KUNYET\"],\n [1109140002, 1109140, \"BLANG GUNCI KUNYET\"],\n [1109140003, 1109140, \"KAMBUEK NICAH\"],\n [1109140004, 1109140, \"KAMBUEK PAYAPI KUNYET\"],\n [1109140005, 1109140, \"BARO KUNYET\"],\n [1109140006, 1109140, \"HAGU KUNYET\"],\n [1109140007, 1109140, \"PIALA KUNYET\"],\n [1109140008, 1109140, \"MESJID KUNYET\"],\n [1109140009, 1109140, \"DAYAH TANOH KUNYET\"],\n [1109140010, 1109140, \"COT KUNYET\"],\n [1109140011, 1109140, \"BLANG GEULEUDIENG\"],\n [1109140012, 1109140, \"MESJID GEULEUDIENG\"],\n [1109140013, 1109140, \"PERLAK PEUDAYA\"],\n [1109140014, 1109140, \"DAYAH BAROH KUNYET\"],\n [1109140015, 1109140, \"BUNI REULING PEUDAYA\"],\n [1109140016, 1109140, \"BULOH PEUDAYA\"],\n [1109140017, 1109140, \"MESJID PEUDAYA\"],\n [1109140018, 1109140, \"CUT PEUDAYA\"],\n [1109140019, 1109140, \"TUNONG PEUDAYA\"],\n [1109140020, 1109140, \"SEUKEUN PEUDAYA\"],\n [1109140021, 1109140, \"TUHA PEUDAYA\"],\n [1109140022, 1109140, \"GEULUMPANG GLD\"],\n [1109140023, 1109140, \"KREET PALOH\"],\n [1109140024, 1109140, \"CAPA PALOH\"],\n [1109140025, 1109140, \"JURONG ANOE\"],\n [1109140026, 1109140, \"TEUGOH PEUDAYA\"],\n [1109140027, 1109140, \"DAYAH PEUDAYA\"],\n [1109140028, 1109140, \"CUT PALOH\"],\n [1109140029, 1109140, \"PANTE CERMEN\"],\n [1109140030, 1109140, \"MEUKE GOGO\"],\n [1109140031, 1109140, \"RAYA GOGO\"],\n [1109140032, 1109140, \"BULOH GOGO\"],\n [1109140033, 1109140, \"KUMBANG GOGO\"],\n [1109140034, 1109140, \"TUHA GOGO\"],\n [1109140035, 1109140, \"GLEE GOGO\"],\n [1109140036, 1109140, \"PALOH JEURAT BEURABO\"],\n [1109140037, 1109140, \"ADANG BEURABO\"],\n [1109140038, 1109140, \"SEULEUNGGING BEURABO\"],\n [1109140039, 1109140, \"MEUKE BEURABO\"],\n [1109140040, 1109140, \"MESJID BEURABO\"],\n [1109140041, 1109140, \"MESJID GOGO\"],\n [1109140042, 1109140, \"ARON BUNOT GOGO\"],\n [1109140043, 1109140, \"TEUNGOH DRIEN GOGO\"],\n [1109140044, 1109140, \"PASAR PALOH\"],\n [1109140045, 1109140, \"SIRON PALOH\"],\n [1109140046, 1109140, \"BALEE PALOH\"],\n [1109140047, 1109140, \"SUYO PALOH\"],\n [1109140048, 1109140, \"GAMPONG COT PALOH\"],\n [1109140049, 1109140, \"PULO HAGU TANJUNG\"],\n [1109140050, 1109140, \"TRIENG PALOH\"],\n [1109140051, 1109140, \"LEUHOB PALOH\"],\n [1109140052, 1109140, \"PANTE CRUNG TANJONG\"],\n [1109140053, 1109140, \"GRONG GRONG GOGO\"],\n [1109140054, 1109140, \"SEUKEUM BROK BEURABO\"],\n [1109140055, 1109140, \"BARO BEURABO\"],\n [1109140056, 1109140, \"MEURIYA TANJONG\"],\n [1109140057, 1109140, \"KHANG TANJONG\"],\n [1109140058, 1109140, \"LEUN TANJONG\"],\n [1109140059, 1109140, \"COT KETAPANG TANJONG\"],\n [1109140060, 1109140, \"SIRON TANJONG\"],\n [1109140061, 1109140, \"MESJID TANJONG\"],\n [1109140062, 1109140, \"KEUPULA TANJONG\"],\n [1109140063, 1109140, \"JOK TANJONG\"],\n [1109140064, 1109140, \"TUNONG TANJONG\"],\n [1109150001, 1109150, \"KRUENG COT\"],\n [1109150002, 1109150, \"DAYAH BARO\"],\n [1109150003, 1109150, \"DAYAH BEUAH\"],\n [1109150004, 1109150, \"MESJID BEUAH\"],\n [1109150005, 1109150, \"SUKON LHONG\"],\n [1109150006, 1109150, \"SEUPEUNG\"],\n [1109150007, 1109150, \"LHEE MEUNASAH\"],\n [1109150008, 1109150, \"PUUK\"],\n [1109150009, 1109150, \"ULEE TUTUE RAYA\"],\n [1109150010, 1109150, \"MESJID AREE\"],\n [1109150011, 1109150, \"KEURUMBOK\"],\n [1109150012, 1109150, \"PULO TUNONG\"],\n [1109150013, 1109150, \"TUNONG\"],\n [1109150014, 1109150, \"RAYA\"],\n [1109150015, 1109150, \"DABOH\"],\n [1109150016, 1109150, \"CUT\"],\n [1109150017, 1109150, \"TANJUNG\"],\n [1109150018, 1109150, \"BULOH\"],\n [1109150019, 1109150, \"DAYAH REUBEE\"],\n [1109150020, 1109150, \"BUNGO\"],\n [1109150021, 1109150, \"KUMBANG\"],\n [1109150022, 1109150, \"REUBA\"],\n [1109150023, 1109150, \"KRUENG\"],\n [1109150024, 1109150, \"NEULOP\"],\n [1109150025, 1109150, \"GEUDONG\"],\n [1109150026, 1109150, \"MESJID REUBEE\"],\n [1109150027, 1109150, \"CEURIH KEUPULA\"],\n [1109150028, 1109150, \"PULO BAROH\"],\n [1109150029, 1109150, \"KEUTAPANG AREE\"],\n [1109150030, 1109150, \"PANTEE\"],\n [1109150031, 1109150, \"CEURIH BLANG MEE\"],\n [1109150032, 1109150, \"CEURIH COT\"],\n [1109150033, 1109150, \"CEURIH ALUE\"],\n [1109150034, 1109150, \"REUNTOH\"],\n [1109150035, 1109150, \"JAMBEE\"],\n [1109150036, 1109150, \"GLEE\"],\n [1109150039, 1109150, \"KEUTAPANG BAMBONG\"],\n [1109150040, 1109150, \"PANGOE\"],\n [1109150041, 1109150, \"METAREUM\"],\n [1109150042, 1109150, \"LUENG DAMA\"],\n [1109150043, 1109150, \"RUSEP\"],\n [1109150044, 1109150, \"MESJID BAMBONG\"],\n [1109150045, 1109150, \"SAGOE\"],\n [1109150046, 1109150, \"SEUKEUM\"],\n [1109151001, 1109151, \"BEUREULEUNG\"],\n [1109151002, 1109151, \"PANGGE/PILOK\"],\n [1109151003, 1109151, \"NICAH\"],\n [1109151004, 1109151, \"MESJID MEMEUANEUK\"],\n [1109151005, 1109151, \"SENTOSA\"],\n [1109151006, 1109151, \"SUKON\"],\n [1109151007, 1109151, \"DAKA\"],\n [1109151008, 1109151, \"BAROH BEUREULEUNG\"],\n [1109151009, 1109151, \"TEUNGOH BEUREULEUNG\"],\n [1109151010, 1109151, \"MESJID BEUREULEUNG\"],\n [1109151011, 1109151, \"MEE BEUREULEUNG\"],\n [1109151012, 1109151, \"PAYA\"],\n [1109151013, 1109151, \"GINTONG\"],\n [1109151014, 1109151, \"KARIENG\"],\n [1109151015, 1109151, \"GRONG GRONG\"],\n [1109160001, 1109160, \"TUHA SUWIEK\"],\n [1109160002, 1109160, \"MESJID SUWIEK\"],\n [1109160003, 1109160, \"TEUNGOH SUWIEK\"],\n [1109160004, 1109160, \"BEUREUDEUP\"],\n [1109160005, 1109160, \"SUKON ULGA\"],\n [1109160006, 1109160, \"PEUTOE\"],\n [1109160007, 1109160, \"GLEE GAPUI\"],\n [1109160008, 1109160, \"MESJID ULGA\"],\n [1109160009, 1109160, \"BLANG RAPAI\"],\n [1109160010, 1109160, \"BALEE BAROH GAPUI\"],\n [1109160011, 1109160, \"NEULOP II\"],\n [1109160012, 1109160, \"BARO GAPUI\"],\n [1109160013, 1109160, \"MESJID DIJIEM\"],\n [1109160014, 1109160, \"GUCI\"],\n [1109160015, 1109160, \"WAKEUEH\"],\n [1109160016, 1109160, \"DAYAH BIE\"],\n [1109160017, 1109160, \"JURONG\"],\n [1109160018, 1109160, \"BARO BLUEK\"],\n [1109160019, 1109160, \"RUMIA\"],\n [1109160020, 1109160, \"KEUTAPANG\"],\n [1109160021, 1109160, \"COT SEUKEE\"],\n [1109160022, 1109160, \"DRIEN\"],\n [1109160023, 1109160, \"BALE BAROH BLUEK\"],\n [1109160024, 1109160, \"TEUNGOH BLANG\"],\n [1109160025, 1109160, \"MEULAYU\"],\n [1109160026, 1109160, \"SUKON TUNGKOP\"],\n [1109160027, 1109160, \"KEUBANG\"],\n [1109160028, 1109160, \"GAROT CUT\"],\n [1109160029, 1109160, \"RAWA TUNGKOP\"],\n [1109160030, 1109160, \"MESJID TUNGKOP\"],\n [1109160031, 1109160, \"LAMREUNEUNG\"],\n [1109160032, 1109160, \"LAMKABU\"],\n [1109160033, 1109160, \"MESJID BARO\"],\n [1109160034, 1109160, \"TAMPIENG BAROH\"],\n [1109160035, 1109160, \"DAYAH CALEUE\"],\n [1109160036, 1109160, \"TAMPIENG TUNONG\"],\n [1109160037, 1109160, \"ULEE BIRAH\"],\n [1109160038, 1109160, \"BLANG LHOK KAJU\"],\n [1109160039, 1109160, \"BARO JRUEK\"],\n [1109160040, 1109160, \"MESJID LAM UJONG\"],\n [1109160041, 1109160, \"TUNGKOP CUT\"],\n [1109160042, 1109160, \"DAYAH MUARA GAROT\"],\n [1109160043, 1109160, \"BLANG GAROT\"],\n [1109160044, 1109160, \"PULO GAMPONG U\"],\n [1109160045, 1109160, \"DAYAH KEURAKO\"],\n [1109160046, 1109160, \"YUB MEE\"],\n [1109160047, 1109160, \"RAYA LHOK KAJU\"],\n [1109160048, 1109160, \"PANTE GAROT\"],\n [1109160049, 1109160, \"PANTE LHOK KAJU\"],\n [1109170001, 1109170, \"BLUEK ARAB\"],\n [1109170002, 1109170, \"SIALET ALET\"],\n [1109170003, 1109170, \"MEE TANOH\"],\n [1109170004, 1109170, \"PUUK\"],\n [1109170005, 1109170, \"BALEE\"],\n [1109170006, 1109170, \"MEUNJEE MESJID\"],\n [1109170007, 1109170, \"SUMBOE BUGA\"],\n [1109170008, 1109170, \"RAMBAYAN KUPULA\"],\n [1109170009, 1109170, \"RAMBAYAN LUENG\"],\n [1109170010, 1109170, \"DAYAH BUBUE\"],\n [1109170011, 1109170, \"TANJONG HAGU\"],\n [1109170012, 1109170, \"DUA PAYA\"],\n [1109170013, 1109170, \"MEE LAMPOIH SAKA\"],\n [1109170014, 1109170, \"LUENG GUCI RUMPONG\"],\n [1109170015, 1109170, \"COT MULU\"],\n [1109170016, 1109170, \"KUMBANG WAIDO\"],\n [1109170017, 1109170, \"WAIDO\"],\n [1109170018, 1109170, \"DAYAH SEUMIDEN\"],\n [1109170019, 1109170, \"BLANG SEUPENG\"],\n [1109170020, 1109170, \"DAYAH MUARA\"],\n [1109170021, 1109170, \"MEULEUWEUK\"],\n [1109170022, 1109170, \"JIM\"],\n [1109170023, 1109170, \"KABAT\"],\n [1109170024, 1109170, \"LEUHOB\"],\n [1109170025, 1109170, \"PEUNAYONG\"],\n [1109170026, 1109170, \"MESJID GUCI RUMPONG\"],\n [1109170027, 1109170, \"MEE KRUKON\"],\n [1109170028, 1109170, \"REUBA WAIDO\"],\n [1109170029, 1109170, \"CEMPALA KUNENG\"],\n [1109170030, 1109170, \"ULEE COT SEUPENG\"],\n [1109170031, 1109170, \"SAWIET\"],\n [1109170032, 1109170, \"ULEE TUTUE\"],\n [1109170033, 1109170, \"KEUTAPANG\"],\n [1109170034, 1109170, \"JURONG\"],\n [1109170035, 1109170, \"RAYA KRUENG SEUMIDEN\"],\n [1109170036, 1109170, \"KRUENG SEUMIDEN\"],\n [1109170037, 1109170, \"SUKON KRUENG SEUMIDEN\"],\n [1109170038, 1109170, \"BLANG KRUENG SEUMIDEN\"],\n [1109170039, 1109170, \"KEUREUMBOK\"],\n [1109170040, 1109170, \"MEE KRUENG SEUMIDEN\"],\n [1109170041, 1109170, \"BLANG RAYA\"],\n [1109170042, 1109170, \"DAYAH TEUNGKU\"],\n [1109170043, 1109170, \"JURONG RAYA\"],\n [1109170044, 1109170, \"BALEE RASTONG\"],\n [1109170045, 1109170, \"LUENG MESJID\"],\n [1109170046, 1109170, \"TEUNGOH BAROH\"],\n [1109170047, 1109170, \"MEE HAGU\"],\n [1109170048, 1109170, \"DAYAH SUKON\"],\n [1109180001, 1109180, \"BENTAYAN\"],\n [1109180002, 1109180, \"MEUNASAH KANDANG\"],\n [1109180003, 1109180, \"PUUK\"],\n [1109180004, 1109180, \"JURONG BALE\"],\n [1109180005, 1109180, \"ARON ASAN KUMBANG\"],\n [1109180006, 1109180, \"MEUNASAH MESJID\"],\n [1109180007, 1109180, \"MEUNASAH MEE\"],\n [1109180008, 1109180, \"MEUNASAH TEUNGOH\"],\n [1109180009, 1109180, \"ASAN\"],\n [1109180010, 1109180, \"PANJOU\"],\n [1109180011, 1109180, \"JEUMEURANG\"],\n [1109180012, 1109180, \"PUSONG\"],\n [1109180013, 1109180, \"PASI LHOK\"],\n [1109180014, 1109180, \"KAYEE PANYANG\"],\n [1109180015, 1109180, \"TANJONG\"],\n [1109180016, 1109180, \"LAMKAWE\"],\n [1109180017, 1109180, \"BLANG CUT\"],\n [1109180018, 1109180, \"GEULUMPANG\"],\n [1109180019, 1109180, \"ARON KUTA BARO\"],\n [1109180020, 1109180, \"ARAIH\"],\n [1109180021, 1109180, \"BARAT\"],\n [1109180022, 1109180, \"TEUMPEUN\"],\n [1109180023, 1109180, \"REUNG REUNG\"],\n [1109180024, 1109180, \"DAYAH BLANG\"],\n [1109180025, 1109180, \"CEBREK\"],\n [1109180026, 1109180, \"DAYAH MON ARA\"],\n [1109180027, 1109180, \"JURONG MESJID\"],\n [1109180028, 1109180, \"MEUNASAH GANTUNG\"],\n [1109180029, 1109180, \"BABAH JURONG\"],\n [1109180030, 1109180, \"MEURAKSA\"],\n [1109180031, 1109180, \"ARUSAN\"],\n [1109180032, 1109180, \"JARENG\"],\n [1109180033, 1109180, \"KEUPULA\"],\n [1109180034, 1109180, \"KEUREUMBOK\"],\n [1109180035, 1109180, \"MATANG KULI\"],\n [1109180036, 1109180, \"MEUNASAH MANYANG\"],\n [1109180037, 1109180, \"MEUNASAH KRUENG\"],\n [1109180038, 1109180, \"MEUNASAH BARO\"],\n [1109180039, 1109180, \"SUKON\"],\n [1109180040, 1109180, \"ARA\"],\n [1109180041, 1109180, \"KRUENG DHOU\"],\n [1109180042, 1109180, \"TANJONG KRUENG\"],\n [1109180043, 1109180, \"LANCANG\"],\n [1109180044, 1109180, \"KEUDE IE LEUBEUE\"],\n [1109180045, 1109180, \"PASI IE LEUBEUE\"],\n [1109190001, 1109190, \"RAYA PAYA\"],\n [1109190002, 1109190, \"MESJID BUNGIE\"],\n [1109190003, 1109190, \"LILIEP\"],\n [1109190004, 1109190, \"UJONG BAROH\"],\n [1109190005, 1109190, \"SEUK CUKOK\"],\n [1109190006, 1109190, \"PULO TU\"],\n [1109190007, 1109190, \"PALOH TOK DUE\"],\n [1109190008, 1109190, \"MEUNASAH JUERONG\"],\n [1109190009, 1109190, \"KAMPUNG BLANG\"],\n [1109190010, 1109190, \"KULAM BARO\"],\n [1109190011, 1109190, \"LINGGONG SAGOE\"],\n [1109190012, 1109190, \"BLANG LEUEN\"],\n [1109190013, 1109190, \"MESJID TUNGUE\"],\n [1109190014, 1109190, \"ULEE BARAT\"],\n [1109190015, 1109190, \"EMPEH\"],\n [1109190016, 1109190, \"PADANG\"],\n [1109190017, 1109190, \"DAYAH BLANG\"],\n [1109190018, 1109190, \"TEUNGOH MANGKI\"],\n [1109190019, 1109190, \"DAYAH BLANG CUT\"],\n [1109190020, 1109190, \"NIEN\"],\n [1109190021, 1109190, \"CURUCOK TIMUR\"],\n [1109190022, 1109190, \"JAJA TUNONG\"],\n [1109190023, 1109190, \"UJONG GAMPONG\"],\n [1109190024, 1109190, \"LHEUE\"],\n [1109190025, 1109190, \"JAJA BAROH\"],\n [1109190026, 1109190, \"PULO RAYA\"],\n [1109190027, 1109190, \"CURUCOK BARAT\"],\n [1109190028, 1109190, \"CURUCOK SAGOE\"],\n [1109190029, 1109190, \"COT ARA\"],\n [1109190030, 1109190, \"MADIKA\"],\n [1109190031, 1109190, \"SAGOE\"],\n [1109190032, 1109190, \"BUNIEN\"],\n [1109190033, 1109190, \"COT PALEUE\"],\n [1109190034, 1109190, \"RAYA PALEUE\"],\n [1109190035, 1109190, \"PANTE\"],\n [1109190036, 1109190, \"PULO BLANG\"],\n [1109190037, 1109190, \"GONG\"],\n [1109190038, 1109190, \"MESJID GIGIENG\"],\n [1109190039, 1109190, \"COT JAJA\"],\n [1109190040, 1109190, \"PEUKAN TUHA\"],\n [1109190041, 1109190, \"PULO GAJAH MATE\"],\n [1109190042, 1109190, \"MEUNASAH BLANG\"],\n [1109190043, 1109190, \"MAMPLAM\"],\n [1109190044, 1109190, \"LAMBIDENG\"],\n [1109190045, 1109190, \"SEUKEE\"],\n [1109190046, 1109190, \"MEUNASAH LHEE\"],\n [1109190047, 1109190, \"MANTAK RAYA\"],\n [1109190048, 1109190, \"DAYAH LAMPOH AWE\"],\n [1109190049, 1109190, \"KUPULA\"],\n [1109190050, 1109190, \"SUKON\"],\n [1109190051, 1109190, \"CEBREK\"],\n [1109190052, 1109190, \"PEUKAN SOET\"],\n [1109200001, 1109200, \"TANJONG KRUENG\"],\n [1109200002, 1109200, \"MNS PEUKAN\"],\n [1109200003, 1109200, \"GAMPONG ASAN\"],\n [1109200004, 1109200, \"BLANG ASAN\"],\n [1109200005, 1109200, \"BLOK SAWAH\"],\n [1109200006, 1109200, \"PANTE TEUNGOH\"],\n [1109200007, 1109200, \"KRAMAT DALAM\"],\n [1109200008, 1109200, \"KRAMAT LUAR\"],\n [1109200009, 1109200, \"LAMPOH KRUENG\"],\n [1109200010, 1109200, \"PASI PEUKAN BARO\"],\n [1109200011, 1109200, \"PASI RAWA\"],\n [1109200012, 1109200, \"KUALA PIDIE\"],\n [1109200013, 1109200, \"BLOK BENGKEL\"],\n [1109200014, 1109200, \"BENTENG\"],\n [1109200015, 1109200, \"BLANG PASEH\"],\n [1109210001, 1109210, \"TUMPOK LAWEUNG\"],\n [1109210002, 1109210, \"ULEE CEUE KEULIBEUT\"],\n [1109210003, 1109210, \"KEUDEE\"],\n [1109210004, 1109210, \"ULEE TUTUE\"],\n [1109210005, 1109210, \"DALUENG\"],\n [1109210006, 1109210, \"JAWA\"],\n [1109210007, 1109210, \"ABO\"],\n [1109210008, 1109210, \"MEUCAT\"],\n [1109210009, 1109210, \"BAYU\"],\n [1109210010, 1109210, \"DAYAH TEUBENG\"],\n [1109210011, 1109210, \"GAMPONG\"],\n [1109210012, 1109210, \"COT GEUNDUEK\"],\n [1109210013, 1109210, \"DAYAH TANOH\"],\n [1109210014, 1109210, \"DAYAH TUTONG\"],\n [1109210015, 1109210, \"RAYA SANGGEUE\"],\n [1109210016, 1109210, \"SIRONG\"],\n [1109210017, 1109210, \"KEUTUMBU\"],\n [1109210018, 1109210, \"JEULEUPE\"],\n [1109210019, 1109210, \"KRUENG DHOE\"],\n [1109210020, 1109210, \"KEUTAPANG\"],\n [1109210021, 1109210, \"KAMPUNG BARAT\"],\n [1109210022, 1109210, \"KAMPONG PUKAT\"],\n [1109210023, 1109210, \"LABUI\"],\n [1109210024, 1109210, \"TANJONG\"],\n [1109210025, 1109210, \"TIJUE\"],\n [1109210026, 1109210, \"PAYA\"],\n [1109210027, 1109210, \"ULEE CEUE TEUBENG\"],\n [1109210028, 1109210, \"DAYAH TEUNGOH\"],\n [1109210029, 1109210, \"MESJID RUNTOH\"],\n [1109210030, 1109210, \"BAROH\"],\n [1109210031, 1109210, \"PUUK\"],\n [1109210032, 1109210, \"LAMPEUDEU TUNONG\"],\n [1109210033, 1109210, \"LAMPEUDEU BAROH\"],\n [1109210034, 1109210, \"LAMPOH LADA\"],\n [1109210035, 1109210, \"KEUNIREE\"],\n [1109210036, 1109210, \"COT TEUNGOH\"],\n [1109210037, 1109210, \"COT RHENG\"],\n [1109210038, 1109210, \"TUMPOK 40\"],\n [1109210039, 1109210, \"PULO PISANG\"],\n [1109210040, 1109210, \"PALOH\"],\n [1109210041, 1109210, \"LAMKUTA\"],\n [1109210042, 1109210, \"LHOK KEUTAPANG\"],\n [1109210043, 1109210, \"TIBANG\"],\n [1109210044, 1109210, \"JEUMPA\"],\n [1109210045, 1109210, \"UJONG LANGGO\"],\n [1109210046, 1109210, \"BATEE\"],\n [1109210047, 1109210, \"BIE\"],\n [1109210048, 1109210, \"BLANGKULA\"],\n [1109210049, 1109210, \"ALUE\"],\n [1109210050, 1109210, \"PAYA LINTEUNG\"],\n [1109210051, 1109210, \"SEUKEE\"],\n [1109210052, 1109210, \"SEURI WEUK\"],\n [1109210053, 1109210, \"PULI\"],\n [1109210054, 1109210, \"MESJID UTUE\"],\n [1109210055, 1109210, \"SEUKEUMBROK\"],\n [1109210056, 1109210, \"LEUBUE\"],\n [1109210057, 1109210, \"COT GEULUMPANG\"],\n [1109210058, 1109210, \"GAMPONG BARO\"],\n [1109210059, 1109210, \"GAJAH AYEE\"],\n [1109210060, 1109210, \"RAWA\"],\n [1109210061, 1109210, \"PEUKAN BARO\"],\n [1109210062, 1109210, \"PULO BUBEE\"],\n [1109210063, 1109210, \"MANCANG\"],\n [1109210064, 1109210, \"RAYA UTUE\"],\n [1109220001, 1109220, \"KAREUNG\"],\n [1109220002, 1109220, \"AWE\"],\n [1109220003, 1109220, \"RUNGKOM\"],\n [1109220004, 1109220, \"PULO PANDE\"],\n [1109220005, 1109220, \"MEE\"],\n [1109220006, 1109220, \"ALUE LADA\"],\n [1109220007, 1109220, \"SEULATAN\"],\n [1109220008, 1109220, \"TUHA\"],\n [1109220009, 1109220, \"TEUPIN RAYA\"],\n [1109220010, 1109220, \"CALONG CUT\"],\n [1109220011, 1109220, \"DAYAH\"],\n [1109220012, 1109220, \"MEUCAT\"],\n [1109220013, 1109220, \"ARON\"],\n [1109220014, 1109220, \"MESJID\"],\n [1109220015, 1109220, \"BINTANG HU\"],\n [1109220016, 1109220, \"DAYAH TUHA\"],\n [1109220017, 1109220, \"DAYAH BAROH\"],\n [1109220018, 1109220, \"PULO TUKOK\"],\n [1109220019, 1109220, \"GLUMPANG LHEE\"],\n [1109220020, 1109220, \"GEUNTENG TIMUR\"],\n [1109220021, 1109220, \"GEUNTENG BARAT\"],\n [1109220022, 1109220, \"PULO BUNGONG\"],\n [1109220023, 1109220, \"TEUPIN JEUE\"],\n [1109220024, 1109220, \"NEUHEUN\"],\n [1109220025, 1109220, \"CRUENG\"],\n [1109220026, 1109220, \"KULAM\"],\n [1109220027, 1109220, \"KULEE\"],\n [1109220028, 1109220, \"PASI BEURANDEH\"],\n [1109230001, 1109230, \"PAPEUN\"],\n [1109230002, 1109230, \"TUHA BIHEUE\"],\n [1109230003, 1109230, \"BATEE\"],\n [1109230004, 1109230, \"INGIN JAYA\"],\n [1109230005, 1109230, \"BLANG RAYA\"],\n [1109230006, 1109230, \"UJONG PIE\"],\n [1109230007, 1109230, \"SAGOE\"],\n [1109230008, 1109230, \"IE MASEN\"],\n [1109230009, 1109230, \"KRUENG\"],\n [1109230010, 1109230, \"GLE CUT\"],\n [1109230011, 1109230, \"DEYAH\"],\n [1109230012, 1109230, \"PAWOD\"],\n [1109230013, 1109230, \"SUKAJAYA\"],\n [1109230014, 1109230, \"KEUPULA\"],\n [1109230015, 1109230, \"MESJID\"],\n [1109230016, 1109230, \"TGK. DI LAWEUNG\"],\n [1109230017, 1109230, \"COT\"],\n [1109230018, 1109230, \"SIMPANG BEUTUONG\"],\n [1110010001, 1110010, \"MEURAH\"],\n [1110010002, 1110010, \"COT MEURAK BLANG\"],\n [1110010003, 1110010, \"BATEE ILIEK\"],\n [1110010005, 1110010, \"COT MEURAK BAROH\"],\n [1110010006, 1110010, \"MESJID BARO\"],\n [1110010007, 1110010, \"DARUSSALAM\"],\n [1110010009, 1110010, \"MATANG WAKEUH\"],\n [1110010010, 1110010, \"MATANG JAREUNG\"],\n [1110010011, 1110010, \"ALUE BARAT\"],\n [1110010012, 1110010, \"ULEE ALUE\"],\n [1110010013, 1110010, \"COT MANE\"],\n [1110010034, 1110010, \"PALOH\"],\n [1110010035, 1110010, \"GAMPONG MEULUM\"],\n [1110010036, 1110010, \"GEULUMPANG BUNGKOK\"],\n [1110010037, 1110010, \"LANCOK\"],\n [1110010038, 1110010, \"ULEE JEUMATAN\"],\n [1110010039, 1110010, \"LHOK SEUMIRA\"],\n [1110010040, 1110010, \"LUENG KEUBEU\"],\n [1110010041, 1110010, \"MIDEUN GEUDONG\"],\n [1110010042, 1110010, \"MEUNASAH LUENG\"],\n [1110010043, 1110010, \"NAMPLOH PAPEUEN\"],\n [1110010044, 1110010, \"MEULIEK\"],\n [1110010048, 1110010, \"NAMPLOH KRUENG\"],\n [1110010049, 1110010, \"MIDEUN JOK\"],\n [1110010050, 1110010, \"GAMPONG PUTOH\"],\n [1110010051, 1110010, \"NAMPLOH BARO\"],\n [1110010052, 1110010, \"NAMPLOH BLANG GARANG\"],\n [1110010053, 1110010, \"KANDANG\"],\n [1110010054, 1110010, \"NAMPLOH MANYANG\"],\n [1110010070, 1110010, \"SANGSO\"],\n [1110010071, 1110010, \"KEUDE ACEH\"],\n [1110010072, 1110010, \"GAMPONG BARO\"],\n [1110010073, 1110010, \"PINEUNG SIRI BEE\"],\n [1110010074, 1110010, \"MATANG TEUNGOH\"],\n [1110010075, 1110010, \"ULEE UE\"],\n [1110010076, 1110010, \"TANJONGAN IDEM\"],\n [1110010077, 1110010, \"TANJONG BARO\"],\n [1110010078, 1110010, \"MEUNASAH LINCAH\"],\n [1110010079, 1110010, \"ANKIENG BARAT\"],\n [1110010080, 1110010, \"MEUNASAH PUUK\"],\n [1110010081, 1110010, \"MEUNASAH LANCOK\"],\n [1110010082, 1110010, \"COT SIREN\"],\n [1110010084, 1110010, \"PANTE RHEENG\"],\n [1110010085, 1110010, \"PULO BAROH\"],\n [1110010086, 1110010, \"MATANG\"],\n [1110010087, 1110010, \"GEULUMPANG PAYONG\"],\n [1110011001, 1110011, \"GLE MEUNDONG\"],\n [1110011002, 1110011, \"IE RHOB BABAH LUENG\"],\n [1110011003, 1110011, \"LHOK TANOH\"],\n [1110011004, 1110011, \"KRUENG MEUSEUGOB\"],\n [1110011005, 1110011, \"PAKU\"],\n [1110011006, 1110011, \"BLANG TAMBUE\"],\n [1110011007, 1110011, \"MEUNASAH MAMPLAM\"],\n [1110011008, 1110011, \"PULO DAPONG\"],\n [1110011009, 1110011, \"COT TRIENG\"],\n [1110011010, 1110011, \"IE RHOB TIMUR\"],\n [1110011011, 1110011, \"IE RHOB BARAT\"],\n [1110011012, 1110011, \"MEUNASAH DAYAH\"],\n [1110011013, 1110011, \"PULO DRIEN\"],\n [1110011014, 1110011, \"IE RHOB GEULUMPANG\"],\n [1110011015, 1110011, \"CEUREUCOK\"],\n [1110011016, 1110011, \"ARONGAN\"],\n [1110011017, 1110011, \"BALEE\"],\n [1110011018, 1110011, \"BLANG MANE BARAT\"],\n [1110011019, 1110011, \"BLANG MANE DUA MEUNASAH\"],\n [1110011020, 1110011, \"JURONG BINJE\"],\n [1110011021, 1110011, \"MEUNASAH MESJID\"],\n [1110011022, 1110011, \"BLANG TEUMULEK\"],\n [1110011023, 1110011, \"BLANG KUTA DUA MEUNASAH\"],\n [1110011024, 1110011, \"BLANG KUTA COH\"],\n [1110011025, 1110011, \"RHEUM TIMUR\"],\n [1110011026, 1110011, \"RHEUM BARAT\"],\n [1110011027, 1110011, \"RHEUM BAROUH\"],\n [1110011028, 1110011, \"LANCANG\"],\n [1110011029, 1110011, \"KEUDE TAMBUE\"],\n [1110011030, 1110011, \"MEUNASAH ASAN\"],\n [1110011031, 1110011, \"PEUNEULET TUNONG\"],\n [1110011032, 1110011, \"CURE TUNONG\"],\n [1110011033, 1110011, \"CURE BAROH\"],\n [1110011034, 1110011, \"PEUNELET BAROH\"],\n [1110011035, 1110011, \"ULEE KAREUNG\"],\n [1110011036, 1110011, \"ALUE LEUHOB\"],\n [1110011037, 1110011, \"BLANG PANYANG\"],\n [1110011038, 1110011, \"CALOK\"],\n [1110011039, 1110011, \"MEUNASAH BARAT\"],\n [1110011040, 1110011, \"TAMBUE BARAT\"],\n [1110011041, 1110011, \"LHOK MANE\"],\n [1110020001, 1110020, \"SEUNEUBOK BARO\"],\n [1110020002, 1110020, \"PANTON BILI\"],\n [1110020003, 1110020, \"BLANG SAMA GADENG\"],\n [1110020004, 1110020, \"COT LEUBENG\"],\n [1110020005, 1110020, \"BANTAYAN\"],\n [1110020006, 1110020, \"KUTA REUSEP\"],\n [1110020007, 1110020, \"G A R O T\"],\n [1110020008, 1110020, \"GAMPONG BLANG\"],\n [1110020009, 1110020, \"MNS TEUNGOH\"],\n [1110020010, 1110020, \"PANDRAH JANENG\"],\n [1110020011, 1110020, \"PANDRAH KANDEH\"],\n [1110020012, 1110020, \"MNS. REUDEUP\"],\n [1110020013, 1110020, \"ALUE IGEUEH\"],\n [1110020014, 1110020, \"LHOK DAGANG\"],\n [1110020015, 1110020, \"LANCOK ULIM\"],\n [1110020016, 1110020, \"NASE ME\"],\n [1110020017, 1110020, \"PANTON\"],\n [1110020018, 1110020, \"UTEUN KRUET\"],\n [1110020019, 1110020, \"NASE BARAT\"],\n [1110030001, 1110030, \"JEUMPA SIKUREUNG\"],\n [1110030002, 1110030, \"BLANG POROH\"],\n [1110030003, 1110030, \"LHOK KULAM\"],\n [1110030010, 1110030, \"SAMPOI AJAD\"],\n [1110030011, 1110030, \"ULEE BLANG\"],\n [1110030012, 1110030, \"ALUE SEUTUI\"],\n [1110030013, 1110030, \"BLANG NEUBOK\"],\n [1110030014, 1110030, \"MEUNASAH ALUE\"],\n [1110030015, 1110030, \"MEUNASAH TUNONG LUENG\"],\n [1110030016, 1110030, \"LHEUE SIMPANG\"],\n [1110030017, 1110030, \"LHEUE BARAT\"],\n [1110030018, 1110030, \"MEUNASAH DAYAH\"],\n [1110030019, 1110030, \"MEUNASAH KEUPULA\"],\n [1110030020, 1110030, \"ULEE GAJAH\"],\n [1110030021, 1110030, \"UTEUN PUPALEH\"],\n [1110030022, 1110030, \"DARUL AMAN\"],\n [1110030023, 1110030, \"LAMPOH OE\"],\n [1110030024, 1110030, \"PULO RANGKILEH\"],\n [1110030025, 1110030, \"TUFAH\"],\n [1110030030, 1110030, \"TANJONG BUNGONG\"],\n [1110030031, 1110030, \"DAYAH BARO\"],\n [1110030032, 1110030, \"ULEE RABO\"],\n [1110030033, 1110030, \"LHUENG TENGOH\"],\n [1110030034, 1110030, \"MEUNASAH TAMBO\"],\n [1110030035, 1110030, \"MEUNASAH KEUTAPANG\"],\n [1110030036, 1110030, \"COT GEULUMPANG TUNONG\"],\n [1110030037, 1110030, \"COT GEULUMPANG BAROH\"],\n [1110030038, 1110030, \"KEUDE JEUNIEB\"],\n [1110030039, 1110030, \"JANGGOT SEUNGKO\"],\n [1110030040, 1110030, \"BLANG MEE TIMU\"],\n [1110030041, 1110030, \"MATANG NIBONG\"],\n [1110030042, 1110030, \"BLANG MEE BARAT\"],\n [1110030043, 1110030, \"MATANG TEUNGOH\"],\n [1110030044, 1110030, \"MATANG BANGKA\"],\n [1110030045, 1110030, \"BLANG LANCANG\"],\n [1110030046, 1110030, \"LANCANG\"],\n [1110030047, 1110030, \"TEUPIN KEUPULA\"],\n [1110030057, 1110030, \"MEUNASAH LUENG\"],\n [1110030058, 1110030, \"ALUE LAM SABA\"],\n [1110030059, 1110030, \"DAYAH BLANG RALEU\"],\n [1110030060, 1110030, \"MEUNASAH BLANG\"],\n [1110030061, 1110030, \"PAYA BILI\"],\n [1110030062, 1110030, \"MEUNASAH KOTA\"],\n [1110031001, 1110031, \"BALEE DAKA\"],\n [1110031002, 1110031, \"MATANG KULE\"],\n [1110031003, 1110031, \"LANCOK BUNGO\"],\n [1110031004, 1110031, \"TEUPIN PANAH\"],\n [1110031005, 1110031, \"SEUNEUBOK PUNTI\"],\n [1110031006, 1110031, \"UTEUN RUNGKOM\"],\n [1110031007, 1110031, \"UTEUN SIKUMBONG\"],\n [1110031008, 1110031, \"JAMBO DALAM\"],\n [1110031009, 1110031, \"PALOH PUPU\"],\n [1110031010, 1110031, \"RAMBONG PAYONG\"],\n [1110031011, 1110031, \"COT GEULUMPANG\"],\n [1110031012, 1110031, \"SEUNEUBOK ACEH\"],\n [1110031013, 1110031, \"SEUNEUBOK NALAN\"],\n [1110031014, 1110031, \"KRUENG BARO\"],\n [1110031015, 1110031, \"KEUDE PLIMBANG\"],\n [1110031016, 1110031, \"PUUEK\"],\n [1110031017, 1110031, \"PADANG KASAB\"],\n [1110031018, 1110031, \"SEUNEUBOK SEUMAWE\"],\n [1110031019, 1110031, \"SEUNEUBOK PLIMBANG\"],\n [1110031020, 1110031, \"SEUNEUBOK TEUNGOH\"],\n [1110031021, 1110031, \"GARAB\"],\n [1110031022, 1110031, \"KUTA TRIENG\"],\n [1110040001, 1110040, \"BLANG RANGKULUH\"],\n [1110040002, 1110040, \"ALUE SIJUEK\"],\n [1110040003, 1110040, \"BUKET PAYA\"],\n [1110040004, 1110040, \"DAYAH MON ARA\"],\n [1110040005, 1110040, \"PULO ARA\"],\n [1110040006, 1110040, \"COT LAOT\"],\n [1110040007, 1110040, \"MEUNASAH BUNGO\"],\n [1110040008, 1110040, \"PAYA BUNOT\"],\n [1110040009, 1110040, \"COT KEUTAPANG\"],\n [1110040010, 1110040, \"LAWANG\"],\n [1110040011, 1110040, \"HAGU\"],\n [1110040012, 1110040, \"MEUNASAH KRUENG\"],\n [1110040013, 1110040, \"MEUNASAH RABO\"],\n [1110040014, 1110040, \"MEUNASAH TAMBO\"],\n [1110040015, 1110040, \"MEUNASAH BAROH\"],\n [1110040016, 1110040, \"BLANG MATANG\"],\n [1110040017, 1110040, \"MEUNASAH TUNONG\"],\n [1110040018, 1110040, \"MEUNASAH ALUE\"],\n [1110040019, 1110040, \"BLANG BATI\"],\n [1110040020, 1110040, \"KEUDE ALUE RHEING\"],\n [1110040021, 1110040, \"PULO LAWANG\"],\n [1110040022, 1110040, \"KARIENG\"],\n [1110040023, 1110040, \"BLANG GLUMPANG\"],\n [1110040024, 1110040, \"MEUNASAH MESJID\"],\n [1110040025, 1110040, \"MEUNASAH CUT\"],\n [1110040026, 1110040, \"MATANG REULEUT\"],\n [1110040027, 1110040, \"MEUNASAH PULO\"],\n [1110040028, 1110040, \"ARA BUNGONG\"],\n [1110040029, 1110040, \"GAROT\"],\n [1110040030, 1110040, \"BLANG BEURURU\"],\n [1110040031, 1110040, \"JABET\"],\n [1110040032, 1110040, \"SAWANG\"],\n [1110040033, 1110040, \"BLANG KUBU\"],\n [1110040034, 1110040, \"MATANG PASI\"],\n [1110040035, 1110040, \"KUKUE\"],\n [1110040036, 1110040, \"MEUNASAH BLANG\"],\n [1110040037, 1110040, \"GAMPONG BARO\"],\n [1110040038, 1110040, \"GAMPONG PAYA\"],\n [1110040039, 1110040, \"SEUNEUBOK PAYA\"],\n [1110040040, 1110040, \"MEUNASAH TEUNGOH\"],\n [1110040041, 1110040, \"CALOK\"],\n [1110040042, 1110040, \"TANJONG SEULAMAT\"],\n [1110040043, 1110040, \"JABA\"],\n [1110040044, 1110040, \"COT KRUET\"],\n [1110040045, 1110040, \"ALUE KEUTAPANG\"],\n [1110040046, 1110040, \"ALUE GANDAI\"],\n [1110040047, 1110040, \"TGK.DI BATHON\"],\n [1110040048, 1110040, \"PAYA BARAT\"],\n [1110040049, 1110040, \"GAMPONG MULIA\"],\n [1110040050, 1110040, \"NEUBOK NALEUNG\"],\n [1110040051, 1110040, \"PAYA TIMU\"],\n [1110040052, 1110040, \"PINTO RIMBA\"],\n [1110050001, 1110050, \"KRUENG SIMPO\"],\n [1110050002, 1110050, \"TEUPIN MANEE\"],\n [1110050003, 1110050, \"BUNYOT\"],\n [1110050004, 1110050, \"PANTE BARO\"],\n [1110050005, 1110050, \"MANE MEUJINGKI\"],\n [1110050006, 1110050, \"ABEUK BUDI\"],\n [1110050007, 1110050, \"BLANG KEUTUMBA\"],\n [1110050008, 1110050, \"SEUNEUBOK PEURADEN\"],\n [1110050009, 1110050, \"PAYA CUT\"],\n [1110050010, 1110050, \"ALUE UNOU\"],\n [1110050011, 1110050, \"BATEE RAYA\"],\n [1110050012, 1110050, \"JULI MEE TEUNGOH\"],\n [1110050013, 1110050, \"SEUNEUBOK GUNCI\"],\n [1110050014, 1110050, \"GEULUMPANG MEU JIMJIM\"],\n [1110050016, 1110050, \"JULI TAMBOI TANJONG\"],\n [1110050017, 1110050, \"JULI SEUTUY\"],\n [1110050018, 1110050, \"JULI COT MESJID\"],\n [1110050019, 1110050, \"SUKA TANI\"],\n [1110050020, 1110050, \"JULI KEUDEE DUA\"],\n [1110050021, 1110050, \"SIMPANG JAYA\"],\n [1110050022, 1110050, \"ALUE RAMBONG\"],\n [1110050023, 1110050, \"BUKET MULIA\"],\n [1110050024, 1110050, \"JULI MEUNASAH TEUNGOH\"],\n [1110050025, 1110050, \"JULI TGK DILAMPOH\"],\n [1110050026, 1110050, \"JULI SEUPENG\"],\n [1110050027, 1110050, \"JULI MEUNASAH TAMBO\"],\n [1110050028, 1110050, \"PASEH\"],\n [1110050029, 1110050, \"JULI PAYA RU\"],\n [1110050030, 1110050, \"JULI COT MEURAK\"],\n [1110050031, 1110050, \"RANTO PANYANG\"],\n [1110050032, 1110050, \"SEUNEUBOK DALAM\"],\n [1110050033, 1110050, \"BALEE PANAH\"],\n [1110050034, 1110050, \"SIMPANG MULIA\"],\n [1110050035, 1110050, \"JULI MEUNASAH JOK\"],\n [1110050036, 1110050, \"JULI UROEK ANOE\"],\n [1110050037, 1110050, \"PANTE PEUSANGAN\"],\n [1110060001, 1110060, \"ABEUK USONG\"],\n [1110060002, 1110060, \"BLANG SEUPENG\"],\n [1110060003, 1110060, \"COT IBOIH\"],\n [1110060004, 1110060, \"SEUNEUBOK LHONG\"],\n [1110060005, 1110060, \"PALOH PANYANG\"],\n [1110060006, 1110060, \"BLANG RHEUM\"],\n [1110060007, 1110060, \"COT ULIM\"],\n [1110060008, 1110060, \"COT LEUSONG\"],\n [1110060009, 1110060, \"BLANG SEUNONG\"],\n [1110060010, 1110060, \"COT KEUTAPANG\"],\n [1110060027, 1110060, \"COT TAROM TUNONG\"],\n [1110060028, 1110060, \"BLANG COT TUNONG\"],\n [1110060029, 1110060, \"SEULEUMBAH\"],\n [1110060030, 1110060, \"ABEUK TINGKEUM\"],\n [1110060031, 1110060, \"BLANG ME\"],\n [1110060032, 1110060, \"PULO LAWANG\"],\n [1110060033, 1110060, \"PALOH SEULIMENG\"],\n [1110060034, 1110060, \"TEUPOK TUNONG\"],\n [1110060035, 1110060, \"TEUPOK BAROH\"],\n [1110060036, 1110060, \"COT BADA\"],\n [1110060037, 1110060, \"COT GADONG\"],\n [1110060038, 1110060, \"KUALA JEUMPA\"],\n [1110060039, 1110060, \"BLANG DALAM\"],\n [1110060040, 1110060, \"BLANG BLADEH\"],\n [1110060041, 1110060, \"GEULUMPANG PAYONG\"],\n [1110060042, 1110060, \"BLANG COT BAROH\"],\n [1110060043, 1110060, \"COT TAROM BAROH\"],\n [1110060044, 1110060, \"GEUDONG TAMPU\"],\n [1110060061, 1110060, \"LIPAH CUT\"],\n [1110060062, 1110060, \"LIPAH RAYEUK\"],\n [1110060063, 1110060, \"MON JAMBEE\"],\n [1110060064, 1110060, \"BATEE TIMOH\"],\n [1110060065, 1110060, \"COT GEURUNDONG\"],\n [1110060066, 1110060, \"BEURAWANG\"],\n [1110060073, 1110060, \"BLANG GANDAI\"],\n [1110060075, 1110060, \"SALAH SIRONG JAYA\"],\n [1110060076, 1110060, \"MON MANE\"],\n [1110060077, 1110060, \"ALUE LIMENG\"],\n [1110060078, 1110060, \"COT MEUGOE\"],\n [1110060079, 1110060, \"COT IBOIH TIMU\"],\n [1110060080, 1110060, \"KUTA MEULIGOE\"],\n [1110060081, 1110060, \"LHAKSMANA\"],\n [1110061001, 1110061, \"COT PEUTEK\"],\n [1110061002, 1110061, \"COT JRAT\"],\n [1110061003, 1110061, \"UTEUN REUTOH\"],\n [1110061004, 1110061, \"BUKET TEUKUEH\"],\n [1110061005, 1110061, \"BLANG REULIENG\"],\n [1110061006, 1110061, \"BLANG TINGKEUM\"],\n [1110061007, 1110061, \"GEULANGGANG GAMPONG\"],\n [1110061008, 1110061, \"PULO ARA GEUDONG TEUNGOH\"],\n [1110061009, 1110061, \"BIREUN MEUNASAH CAPA\"],\n [1110061010, 1110061, \"BIREUN MEUNSAH TGK DIGADONG\"],\n [1110061011, 1110061, \"BIREUN MEUNASAH DAYAH\"],\n [1110061012, 1110061, \"BIREUN MEUNASAH BLANG\"],\n [1110061013, 1110061, \"BIREUN MNS REULEUT\"],\n [1110061014, 1110061, \"KOTA BIREUN\"],\n [1110061015, 1110061, \"PULO KITON\"],\n [1110061016, 1110061, \"LHOK AWE TEUNGOH\"],\n [1110061017, 1110061, \"GEUDONG ALUE\"],\n [1110061018, 1110061, \"GEUDONG GEUDONG\"],\n [1110061019, 1110061, \"GEULANGGANG TEUNGOH\"],\n [1110061020, 1110061, \"GEULANGGANG BARO\"],\n [1110061021, 1110061, \"GEULANGGANG KULAM\"],\n [1110061022, 1110061, \"COT GAPU\"],\n [1110061023, 1110061, \"GAMPONG BARO\"],\n [1110062001, 1110062, \"COT TRIENG\"],\n [1110062002, 1110062, \"LHOK AWE AWE\"],\n [1110062003, 1110062, \"COT UNOE\"],\n [1110062004, 1110062, \"COT BATEE\"],\n [1110062005, 1110062, \"COT KUTA\"],\n [1110062006, 1110062, \"COT GLUMPANG\"],\n [1110062007, 1110062, \"GLUMPANG BAROH\"],\n [1110062008, 1110062, \"LANCOK PANTE ARA\"],\n [1110062009, 1110062, \"BALEE KUYUN\"],\n [1110062010, 1110062, \"KAREUNG\"],\n [1110062011, 1110062, \"LANCOK LANCOK\"],\n [1110062012, 1110062, \"COT USIBAK\"],\n [1110062013, 1110062, \"KUALA RAJA\"],\n [1110062014, 1110062, \"UJONG BLANG MESJID\"],\n [1110062015, 1110062, \"WEU JANGKA\"],\n [1110062016, 1110062, \"COT LAGASAWA\"],\n [1110062017, 1110062, \"UJONG BLANG\"],\n [1110062018, 1110062, \"KUTA BARO\"],\n [1110062019, 1110062, \"KRUENG JULI TIMUR\"],\n [1110062020, 1110062, \"KRUENG JULI BARAT\"],\n [1110070001, 1110070, \"PULO U\"],\n [1110070002, 1110070, \"ABEUK JALOH\"],\n [1110070003, 1110070, \"PULO SEUNA\"],\n [1110070004, 1110070, \"PULO BLANG\"],\n [1110070005, 1110070, \"PULO IBOIH\"],\n [1110070006, 1110070, \"PULO REUDEUP\"],\n [1110070007, 1110070, \"GAMPONG MEULINTEUNG\"],\n [1110070008, 1110070, \"LAMKUTA\"],\n [1110070009, 1110070, \"RUSEB ARA\"],\n [1110070010, 1110070, \"LUENG\"],\n [1110070011, 1110070, \"RUSEB DAYAH\"],\n [1110070012, 1110070, \"KAMBUEK\"],\n [1110070013, 1110070, \"BADA TIMU\"],\n [1110070014, 1110070, \"BADA BARAT\"],\n [1110070015, 1110070, \"BARAT LANYAN\"],\n [1110070016, 1110070, \"GEUNDOT\"],\n [1110070017, 1110070, \"MEUNASAH KRUENG\"],\n [1110070018, 1110070, \"PAYA BIENG\"],\n [1110070019, 1110070, \"JANGKA ALUE\"],\n [1110070020, 1110070, \"JANGKA KEUTAPANG\"],\n [1110070021, 1110070, \"LAMPOH RAYEUK\"],\n [1110070022, 1110070, \"LHOK BUGENG\"],\n [1110070023, 1110070, \"LINGGONG\"],\n [1110070024, 1110070, \"ALUE BUYA\"],\n [1110070025, 1110070, \"TANOH ANOE\"],\n [1110070026, 1110070, \"TANJONGAN\"],\n [1110070027, 1110070, \"JANGKA ALUE BIE\"],\n [1110070028, 1110070, \"JANGKA MESJID\"],\n [1110070029, 1110070, \"JANGKA ALUE U\"],\n [1110070030, 1110070, \"PANTE PEUSANGAN\"],\n [1110070031, 1110070, \"BUGAK KRUENG\"],\n [1110070032, 1110070, \"BUGAK MESJID\"],\n [1110070033, 1110070, \"BUGAK KRUENG MATE\"],\n [1110070034, 1110070, \"BUGENG\"],\n [1110070035, 1110070, \"KUALA CEURAPE\"],\n [1110070036, 1110070, \"ALUE BAYEU UTANG\"],\n [1110070037, 1110070, \"ULEE CEUE\"],\n [1110070038, 1110070, \"ALUE KUTA\"],\n [1110070039, 1110070, \"PUNJOT\"],\n [1110070040, 1110070, \"PULO PINEUNG MNS II\"],\n [1110070041, 1110070, \"BUGAK BLANG\"],\n [1110070042, 1110070, \"PANTE SUKON\"],\n [1110070043, 1110070, \"PANTE PAKU\"],\n [1110070044, 1110070, \"PANTE RANUB\"],\n [1110070045, 1110070, \"ALUE BUYA PASI\"],\n [1110070046, 1110070, \"ALUE BIE PUSONG\"],\n [1110080023, 1110080, \"ALUE UDEUNG\"],\n [1110080024, 1110080, \"ALUE PEUNO\"],\n [1110080038, 1110080, \"KAPA\"],\n [1110080039, 1110080, \"BLANG PANJOE\"],\n [1110080040, 1110080, \"PANTE LHONG\"],\n [1110080041, 1110080, \"PAYA CUT\"],\n [1110080042, 1110080, \"SEUNEUBOK ACEH\"],\n [1110080043, 1110080, \"PAYA LIPAH\"],\n [1110080044, 1110080, \"SEUNEUBOK RAWA\"],\n [1110080045, 1110080, \"BLANG GEULANGGANG\"],\n [1110080046, 1110080, \"UTEUN BUNTA\"],\n [1110080047, 1110080, \"PAYA REUHAT\"],\n [1110080048, 1110080, \"PAYA ABO\"],\n [1110080049, 1110080, \"PALOH\"],\n [1110080050, 1110080, \"PAYA MEUNENG\"],\n [1110080051, 1110080, \"MATANG SAGOE\"],\n [1110080052, 1110080, \"PANTON GEULIMA\"],\n [1110080053, 1110080, \"NEUHEUEN\"],\n [1110080054, 1110080, \"KEUDE MATANG GLP DUA\"],\n [1110080055, 1110080, \"PANTE GAJAH\"],\n [1110080056, 1110080, \"BLANG ASAN\"],\n [1110080057, 1110080, \"GAMPONG RAYA DAGANG\"],\n [1110080058, 1110080, \"GAMPONG RAYA TAMBO\"],\n [1110080059, 1110080, \"KEUDE TANJONG\"],\n [1110080060, 1110080, \"PANTE PISANG\"],\n [1110080061, 1110080, \"BLANG CUT SP IV\"],\n [1110080062, 1110080, \"PANTE CUT\"],\n [1110080063, 1110080, \"MATANG GLP DUA MEUNASAH TIMU\"],\n [1110080064, 1110080, \"MATANG GLP DUA MEUNASAH DAYAH\"],\n [1110080065, 1110080, \"MATANG MESJID\"],\n [1110080066, 1110080, \"COT PANJOE\"],\n [1110080067, 1110080, \"COT KEURANJI\"],\n [1110080068, 1110080, \"GAMPONG BAROH\"],\n [1110080069, 1110080, \"BLANG RAMBONG\"],\n [1110080070, 1110080, \"TANOH MIRAH\"],\n [1110080071, 1110080, \"COT GIREK\"],\n [1110080072, 1110080, \"SAGOE\"],\n [1110080073, 1110080, \"COT BADA BARAT\"],\n [1110080074, 1110080, \"COT BADA TUNONG\"],\n [1110080075, 1110080, \"COT BUKET\"],\n [1110080076, 1110080, \"COT IEJU\"],\n [1110080077, 1110080, \"NICAH\"],\n [1110080078, 1110080, \"COT BADA BAROH\"],\n [1110080079, 1110080, \"COT KEUMUDEE\"],\n [1110080081, 1110080, \"PULO NALEUNG\"],\n [1110080082, 1110080, \"COT NGA\"],\n [1110080083, 1110080, \"KARIENG\"],\n [1110080084, 1110080, \"MATA MAMPLAM\"],\n [1110080085, 1110080, \"ALUE GLUMPANG\"],\n [1110080086, 1110080, \"COT RABO BAROH\"],\n [1110080087, 1110080, \"COT RABO TUNONG\"],\n [1110080088, 1110080, \"KRUENG DHEUE\"],\n [1110080089, 1110080, \"MATANG COT PASEH\"],\n [1110080090, 1110080, \"KRUENG BARO MESJID\"],\n [1110080091, 1110080, \"GAMPONG PUTOH\"],\n [1110080092, 1110080, \"PANTE PIYEU\"],\n [1110080093, 1110080, \"TANJONG MESJID\"],\n [1110080094, 1110080, \"TANJONG PAYA\"],\n [1110080095, 1110080, \"TANJONG NIE\"],\n [1110080096, 1110080, \"BAYU\"],\n [1110080097, 1110080, \"KRUENG BARO BB KRUENG\"],\n [1110080098, 1110080, \"MEUNASAH NIBONG\"],\n [1110080099, 1110080, \"PANTE ARA\"],\n [1110080100, 1110080, \"MEUNASAH MEUCAP\"],\n [1110080101, 1110080, \"ASAN BIDEUN\"],\n [1110080102, 1110080, \"PULO PISANG\"],\n [1110080104, 1110080, \"COT PUUK\"],\n [1110080105, 1110080, \"BLANG DALAM\"],\n [1110080106, 1110080, \"PULO UE BARO\"],\n [1110081001, 1110081, \"BLANG MANE\"],\n [1110081002, 1110081, \"DARUSSALAM\"],\n [1110081003, 1110081, \"TANJONG BEURIDI\"],\n [1110081004, 1110081, \"DARUL AMAN\"],\n [1110081005, 1110081, \"PAYA CROT\"],\n [1110081006, 1110081, \"PULO PANYANG\"],\n [1110081007, 1110081, \"ULEE JALAN\"],\n [1110081008, 1110081, \"GEULANGGANG LABU\"],\n [1110081009, 1110081, \"TEUPIN REUDEUP\"],\n [1110081010, 1110081, \"KRUENG BEUKAH\"],\n [1110081011, 1110081, \"BLANG PALA\"],\n [1110081012, 1110081, \"CEUBREK\"],\n [1110081013, 1110081, \"UTEUN GHATOM\"],\n [1110081014, 1110081, \"ME RAYEUK\"],\n [1110081015, 1110081, \"UTEUN RAYA\"],\n [1110081016, 1110081, \"MATA IE\"],\n [1110081017, 1110081, \"BLANG CUT\"],\n [1110081018, 1110081, \"LUENG BARO\"],\n [1110081019, 1110081, \"LUENG KULI\"],\n [1110081020, 1110081, \"PULO HARAPAN\"],\n [1110081021, 1110081, \"SUWAK\"],\n [1110082001, 1110082, \"PANTE KARYA\"],\n [1110082002, 1110082, \"ALUE GLUMPANG\"],\n [1110082003, 1110082, \"BUKET SUDAN\"],\n [1110082004, 1110082, \"COT SALEUT\"],\n [1110082005, 1110082, \"PALOH MAMPREE\"],\n [1110082006, 1110082, \"ALUE IET\"],\n [1110082007, 1110082, \"AWE GEUTAH\"],\n [1110082008, 1110082, \"BLANG CIRIH\"],\n [1110082009, 1110082, \"ALUE KEUPULA\"],\n [1110082010, 1110082, \"ALUE KRUEB\"],\n [1110082011, 1110082, \"RAMBONG PAYONG\"],\n [1110082012, 1110082, \"LUENG DANEUN\"],\n [1110082013, 1110082, \"COT ANEUK BATEE\"],\n [1110082014, 1110082, \"KUBU RAYA\"],\n [1110082015, 1110082, \"PANTE BARO GLE SIBLA\"],\n [1110082016, 1110082, \"PANTE BARO KUMBANG\"],\n [1110082017, 1110082, \"PANTE BARO BUKIT PANYANG\"],\n [1110082018, 1110082, \"KUBU\"],\n [1110082019, 1110082, \"TEUPIN RAYA\"],\n [1110082020, 1110082, \"AWE GEUTAH PAYA\"],\n [1110082021, 1110082, \"DAYAH BARO\"],\n [1110090001, 1110090, \"SUKARAME\"],\n [1110090002, 1110090, \"PANTON MESJID\"],\n [1110090003, 1110090, \"ALUE DUA\"],\n [1110090004, 1110090, \"BLANG PERLAK\"],\n [1110090005, 1110090, \"TANJONG MULIA\"],\n [1110090006, 1110090, \"MATANG KUMBANG\"],\n [1110090007, 1110090, \"MEUREUBO\"],\n [1110090008, 1110090, \"SEUNEUBOK BARO\"],\n [1110090009, 1110090, \"BLANG DALAM\"],\n [1110090010, 1110090, \"PANDAK\"],\n [1110090011, 1110090, \"BLANG MANE\"],\n [1110090012, 1110090, \"PANTE BREUH\"],\n [1110090013, 1110090, \"ULEE GLE\"],\n [1110090014, 1110090, \"MON ARA\"],\n [1110090015, 1110090, \"LAPEHAN MESJID\"],\n [1110090016, 1110090, \"BUKET SELAMAT\"],\n [1110090017, 1110090, \"BLANG KUTANG\"],\n [1110090018, 1110090, \"COT KRUET\"],\n [1110090019, 1110090, \"TRIENGGADENG\"],\n [1110090020, 1110090, \"LEUBU MESJID\"],\n [1110090021, 1110090, \"KUTA BARAT\"],\n [1110090022, 1110090, \"LEUBU COT\"],\n [1110090023, 1110090, \"PAYA DUA\"],\n [1110090024, 1110090, \"LEUBU ME\"],\n [1110090025, 1110090, \"BATEE DABAI\"],\n [1110090026, 1110090, \"PULO TEUNGOH\"],\n [1110090027, 1110090, \"ARA LIPEH\"],\n [1110100005, 1110100, \"PALOH KAYEE KUNYET\"],\n [1110100006, 1110100, \"TANJONG RAYA\"],\n [1110100007, 1110100, \"PAYA SEUPAT\"],\n [1110100008, 1110100, \"PAYA KAREUNG\"],\n [1110100009, 1110100, \"BLANG KUBU\"],\n [1110100014, 1110100, \"PAYA BARO\"],\n [1110100015, 1110100, \"TANJONG MESJID\"],\n [1110100016, 1110100, \"MON JEUREUJAK\"],\n [1110100017, 1110100, \"DAMA KAWAN\"],\n [1110100018, 1110100, \"COT RAMBAT\"],\n [1110100019, 1110100, \"BLANG GURON\"],\n [1110100020, 1110100, \"COT TEUBEE\"],\n [1110100021, 1110100, \"TANJONG BUNGONG\"],\n [1110100022, 1110100, \"PULO GISA\"],\n [1110100023, 1110100, \"UJONG BAYU\"],\n [1110100024, 1110100, \"COT TUPAH\"],\n [1110100025, 1110100, \"COT TUNONG\"],\n [1110100039, 1110100, \"COT PUUK\"],\n [1110100040, 1110100, \"PALOH ME\"],\n [1110100041, 1110100, \"GEURUGOK\"],\n [1110100042, 1110100, \"COT JABET\"],\n [1110100043, 1110100, \"PANTE SIKEUMBONG\"],\n [1110100044, 1110100, \"CEUBO\"],\n [1110100045, 1110100, \"KEUDE LAPANG\"],\n [1110100046, 1110100, \"BLANG KEUDE\"],\n [1110100047, 1110100, \"COT MANE\"],\n [1110100057, 1110100, \"LHOK MAMBANG\"],\n [1110100058, 1110100, \"LAPANG TIMUR\"],\n [1110100059, 1110100, \"TEUPIN SIRON\"],\n [1110100060, 1110100, \"IE RHOB\"],\n [1110100061, 1110100, \"ALUE MANGKI\"],\n [1110100062, 1110100, \"LINGKA KUTA\"],\n [1110100063, 1110100, \"LAPANG BARAT\"],\n [1110100064, 1110100, \"SAMUTI KRUENG\"],\n [1110100065, 1110100, \"SAMUTI MAKMUR\"],\n [1110100066, 1110100, \"SAMUTI RAYEUK\"],\n [1110100076, 1110100, \"SAMUTI AMAN\"],\n [1110100077, 1110100, \"MON KEULAYU\"],\n [1110100078, 1110100, \"MON JAMBE\"],\n [1110100079, 1110100, \"BLANG RHEU\"],\n [1110101001, 1110101, \"PARANG SIKUREUNG\"],\n [1110101002, 1110101, \"TANJONG SIRON\"],\n [1110101003, 1110101, \"PALOH RAYA\"],\n [1110101004, 1110101, \"PALOH PEURADI\"],\n [1110101005, 1110101, \"CRUNG KUMBANG\"],\n [1110101006, 1110101, \"PALOH DAMA\"],\n [1110101007, 1110101, \"BUKIT DALAM\"],\n [1110101008, 1110101, \"GLE PUTOH\"],\n [1110101009, 1110101, \"BALE ME\"],\n [1110101010, 1110101, \"KULU\"],\n [1110101011, 1110101, \"BLANG ME\"],\n [1110101012, 1110101, \"BLANG PANJOE\"],\n [1110101013, 1110101, \"LHOK NGA\"],\n [1110101014, 1110101, \"MEUSE\"],\n [1110101015, 1110101, \"BABAH JURONG\"],\n [1110101016, 1110101, \"DAYAH PANJOE\"],\n [1110101017, 1110101, \"IEMBUDEE\"],\n [1110101018, 1110101, \"TINGKEUM BARO\"],\n [1110101019, 1110101, \"PULO REUDEUP\"],\n [1110101020, 1110101, \"TINGKEUM MANYANG\"],\n [1110101021, 1110101, \"ULEE PUSONG\"],\n [1110101022, 1110101, \"PAYA RANGKULUH\"],\n [1110101023, 1110101, \"COT BAROH\"],\n [1110101024, 1110101, \"BABAH SUAK\"],\n [1110101025, 1110101, \"GEULANGGANG RAYEUK\"],\n [1110101026, 1110101, \"GEULANGGANG MEUNJE\"],\n [1110101027, 1110101, \"GEULANGGANG PANAH\"],\n [1110101028, 1110101, \"PULO BLANG\"],\n [1110101029, 1110101, \"PULO SIRON\"],\n [1110101030, 1110101, \"JARUM MAHME\"],\n [1110101031, 1110101, \"DAYAH MESJID\"],\n [1110101032, 1110101, \"UJONG BLANG\"],\n [1110101033, 1110101, \"KEURUMBOK\"],\n [1110101034, 1110101, \"JARUMMAH BAROH\"],\n [1110101035, 1110101, \"COT ARA\"],\n [1110101036, 1110101, \"RANCONG\"],\n [1110101037, 1110101, \"PULO NGA\"],\n [1110101038, 1110101, \"COT ME\"],\n [1110101039, 1110101, \"JAMBO KAJEUNG\"],\n [1110101040, 1110101, \"KULU KUTA\"],\n [1110101041, 1110101, \"PULO AWE\"],\n [1111010001, 1111010, \"RISEH TUNONG\"],\n [1111010002, 1111010, \"GUNCI\"],\n [1111010003, 1111010, \"KUBU\"],\n [1111010004, 1111010, \"BLANG CUT\"],\n [1111010005, 1111010, \"RISEH TEUNGOH\"],\n [1111010006, 1111010, \"RISEH BAROH\"],\n [1111010007, 1111010, \"LHOK CUT\"],\n [1111010008, 1111010, \"SAWANG\"],\n [1111010009, 1111010, \"BLANG TEURAKAN\"],\n [1111010010, 1111010, \"JURONG\"],\n [1111010011, 1111010, \"BLANG MANYAK\"],\n [1111010012, 1111010, \"LHOK JOK\"],\n [1111010013, 1111010, \"BABAH KRUENG\"],\n [1111010014, 1111010, \"RAMBONG PAYONG\"],\n [1111010015, 1111010, \"TEUPIN RUSEP\"],\n [1111010016, 1111010, \"LANCOK\"],\n [1111010017, 1111010, \"LHOK BAYU\"],\n [1111010018, 1111010, \"PAYA RABO TIMU\"],\n [1111010019, 1111010, \"PAYA RABO LHOK\"],\n [1111010020, 1111010, \"KRUENG BARO\"],\n [1111010021, 1111010, \"BLANG REULING\"],\n [1111010022, 1111010, \"PUNTEUET\"],\n [1111010023, 1111010, \"MEUNASAH PULO\"],\n [1111010024, 1111010, \"LHOK KUYUEN\"],\n [1111010025, 1111010, \"LHOK GAJAH\"],\n [1111010026, 1111010, \"PANTE JALOH\"],\n [1111010027, 1111010, \"BABAH BULOH\"],\n [1111010028, 1111010, \"COT LAMBIDENG\"],\n [1111010029, 1111010, \"GAMPONG TEUNGOH\"],\n [1111010030, 1111010, \"PAYA GABOH\"],\n [1111010031, 1111010, \"KUTA MEULIGOE\"],\n [1111010032, 1111010, \"ABEUK REULING\"],\n [1111010033, 1111010, \"COT KEUMUNENG\"],\n [1111010034, 1111010, \"ULEE GEUDONG\"],\n [1111010035, 1111010, \"TANJONG KEUMALA\"],\n [1111010036, 1111010, \"LHOK KREK\"],\n [1111010037, 1111010, \"GLEE DAGANG\"],\n [1111010038, 1111010, \"LAGANG\"],\n [1111010039, 1111010, \"LHOK MERBO\"],\n [1111020007, 1111020, \"JEULIKAT\"],\n [1111020008, 1111020, \"MEUNASAH CUT\"],\n [1111020009, 1111020, \"ALUE BILI\"],\n [1111020010, 1111020, \"COT MAMBONG\"],\n [1111020011, 1111020, \"BLANG DALAM TUNONG\"],\n [1111020012, 1111020, \"BLANG DALAM BAROH\"],\n [1111020013, 1111020, \"BLANG DALAM GEUNTENG\"],\n [1111020014, 1111020, \"TINGKEUM\"],\n [1111020015, 1111020, \"MEUNASAH RAYEUK\"],\n [1111020016, 1111020, \"PEUNAYAN\"],\n [1111020017, 1111020, \"PALOH MAMPREE\"],\n [1111020018, 1111020, \"PANTON\"],\n [1111020019, 1111020, \"MEUNASAH ALUE\"],\n [1111020022, 1111020, \"PALOH MAMBU\"],\n [1111020023, 1111020, \"GAMPONG BARAT\"],\n [1111020024, 1111020, \"MEUNASAH BEUNOT\"],\n [1111020025, 1111020, \"MNS MEUCAT\"],\n [1111020026, 1111020, \"GAMPONG TEUNGOH\"],\n [1111020027, 1111020, \"COT ME\"],\n [1111020028, 1111020, \"COT EUNTUNG\"],\n [1111020029, 1111020, \"KEUTAPANG\"],\n [1111020030, 1111020, \"BLANG CROK\"],\n [1111020031, 1111020, \"BINJEE\"],\n [1111020032, 1111020, \"COT LEUPEE\"],\n [1111020033, 1111020, \"MEUNASAH KRUENG\"],\n [1111020034, 1111020, \"ULEE BLANG\"],\n [1111020035, 1111020, \"SEUNEUBOK\"],\n [1111020036, 1111020, \"BLANG KARIENG\"],\n [1111020037, 1111020, \"PALOH KAYEE KUNYET\"],\n [1111021001, 1111021, \"ALUE DUA\"],\n [1111021002, 1111021, \"ALUE PAPEUN\"],\n [1111021003, 1111021, \"BLANG JRAT\"],\n [1111021004, 1111021, \"BLANG POHROH\"],\n [1111021005, 1111021, \"DARUSSALAM\"],\n [1111021006, 1111021, \"SEUMIRAH\"],\n [1111022001, 1111022, \"JAMUAN\"],\n [1111022002, 1111022, \"ALUE KEUREUNYAI\"],\n [1111022003, 1111022, \"BLANG PALA\"],\n [1111022004, 1111022, \"SANGKELAN\"],\n [1111022005, 1111022, \"ULEE NYEUE\"],\n [1111022006, 1111022, \"PAYA ULEUE\"],\n [1111022007, 1111022, \"COT JABET\"],\n [1111022008, 1111022, \"PAYA DUA\"],\n [1111022009, 1111022, \"PAYA BEUNYOT\"],\n [1111030001, 1111030, \"SIDO MULIYO\"],\n [1111030012, 1111030, \"ALUE RAMBEE\"],\n [1111030013, 1111030, \"MEUNYE CUT BAHAGIA\"],\n [1111030014, 1111030, \"COT MERBO\"],\n [1111030015, 1111030, \"PANTON RAYEUK I\"],\n [1111030016, 1111030, \"BLANG TALON\"],\n [1111030017, 1111030, \"BUKET\"],\n [1111030018, 1111030, \"LHOK JOK\"],\n [1111030019, 1111030, \"SEUNEUBOK DRIEN\"],\n [1111030026, 1111030, \"CEMPEUDAK\"],\n [1111030027, 1111030, \"BLANG RIEK\"],\n [1111030028, 1111030, \"MEUNASAH BLANG ARA\"],\n [1111030029, 1111030, \"KEUDE BLANG ARA\"],\n [1111030030, 1111030, \"KRUENG MANYANG\"],\n [1111030031, 1111030, \"BAYU\"],\n [1111030032, 1111030, \"BLANG ADO\"],\n [1111030033, 1111030, \"DAYAH MEUNARA\"],\n [1111030034, 1111030, \"COT RHEUE\"],\n [1111030035, 1111030, \"BABAH LUENG\"],\n [1111030036, 1111030, \"PANTON RAYEUK II\"],\n [1111030037, 1111030, \"SAWEUK\"],\n [1111030038, 1111030, \"LANGKUTA\"],\n [1111030039, 1111030, \"COT SEUMIYONG\"],\n [1111030040, 1111030, \"MEURIYA\"],\n [1111030041, 1111030, \"COT SEUTUY\"],\n [1111030042, 1111030, \"MULIENG MANYANG\"],\n [1111030043, 1111030, \"MULIENG MEUCAT\"],\n [1111030044, 1111030, \"PULO BARAT\"],\n [1111030045, 1111030, \"PULO RAYEUK\"],\n [1111030046, 1111030, \"MEUNASAH KUMBANG\"],\n [1111030047, 1111030, \"CEUMEUCET\"],\n [1111030048, 1111030, \"GUHA ULEUE\"],\n [1111030049, 1111030, \"BLANG GURAH\"],\n [1111030050, 1111030, \"KRUENG SEUNONG\"],\n [1111030051, 1111030, \"KEUDE KRUENG\"],\n [1111030052, 1111030, \"PULO IBOIH\"],\n [1111030053, 1111030, \"KEUREUSEK\"],\n [1111030054, 1111030, \"MEUNASAH KULAM\"],\n [1111030055, 1111030, \"KRUENG SEUPENG\"],\n [1111031001, 1111031, \"PASE SENTAUSA\"],\n [1111031002, 1111031, \"KILO METER VIII\"],\n [1111031003, 1111031, \"KILO METER VI\"],\n [1111031004, 1111031, \"MEUNASAH DAYAH\"],\n [1111031005, 1111031, \"KEBON BARU\"],\n [1111031006, 1111031, \"IE TAREK I\"],\n [1111031007, 1111031, \"IE TAREK II\"],\n [1111031008, 1111031, \"SEUNEBOK PUNTI\"],\n [1111031009, 1111031, \"KEUDE SIMPANG IV\"],\n [1111031010, 1111031, \"BLANG RALEU\"],\n [1111031011, 1111031, \"MEUNASAH BAROH\"],\n [1111031012, 1111031, \"MEUNASAH TEUNGOH\"],\n [1111031013, 1111031, \"MANCANG\"],\n [1111031014, 1111031, \"ALUE BADE\"],\n [1111031015, 1111031, \"PAYA TEUNGOH\"],\n [1111031016, 1111031, \"PAYA LEUPAH\"],\n [1111040010, 1111040, \"MEUDANG ARA\"],\n [1111040012, 1111040, \"SIREN TUJOH\"],\n [1111040013, 1111040, \"CUT NEUHEUN\"],\n [1111040014, 1111040, \"TUMPEUN\"],\n [1111040015, 1111040, \"A L E N\"],\n [1111040016, 1111040, \"DAYAH BLANG SEUREUKUY\"],\n [1111040017, 1111040, \"BLANG PATRA\"],\n [1111040019, 1111040, \"BUKET GLUMPANG\"],\n [1111040020, 1111040, \"SEUNEBOK BARO\"],\n [1111040021, 1111040, \"ALUE MAJRON\"],\n [1111040022, 1111040, \"BLANG MAJRON\"],\n [1111040023, 1111040, \"BLANG SEUREUKUY\"],\n [1111040024, 1111040, \"KAYEE PANYANG\"],\n [1111040025, 1111040, \"ULEE MEURIA\"],\n [1111040026, 1111040, \"PULO BLANG TRIENG\"],\n [1111040027, 1111040, \"RHENG\"],\n [1111040028, 1111040, \"TRIENG MEUDUROU\"],\n [1111040029, 1111040, \"GAROT\"],\n [1111040030, 1111040, \"CIBREK\"],\n [1111040031, 1111040, \"BLANG AWE\"],\n [1111040032, 1111040, \"PULO BLANG MANGAT\"],\n [1111040033, 1111040, \"ULEE GAMPONG\"],\n [1111040034, 1111040, \"BALE\"],\n [1111040035, 1111040, \"BIE\"],\n [1111040036, 1111040, \"NIBONG\"],\n [1111040037, 1111040, \"BARO KULAM GAJAH\"],\n [1111040038, 1111040, \"BEURANDANG\"],\n [1111040039, 1111040, \"MNS GLONG\"],\n [1111040040, 1111040, \"MNS LANGA\"],\n [1111040041, 1111040, \"MNS BEUNOT\"],\n [1111040042, 1111040, \"KEUDE BAYU\"],\n [1111040043, 1111040, \"BLANG BAYU\"],\n [1111040044, 1111040, \"DAYAH BARO\"],\n [1111040045, 1111040, \"DAYAH TUHA\"],\n [1111040046, 1111040, \"BUNGONG\"],\n [1111040047, 1111040, \"PUNTI\"],\n [1111040048, 1111040, \"BAROH BLANG RIMUENG\"],\n [1111040049, 1111040, \"LANCOK\"],\n [1111041001, 1111041, \"SUKA DAMAI\"],\n [1111041002, 1111041, \"PULO MEURIA\"],\n [1111041003, 1111041, \"KRUENG MBANG\"],\n [1111041004, 1111041, \"DAYAH SEUPENG\"],\n [1111041005, 1111041, \"URAM JALAN\"],\n [1111041006, 1111041, \"PEUDARI\"],\n [1111041007, 1111041, \"RAYEUK JAWA\"],\n [1111041008, 1111041, \"DARUSSALAM\"],\n [1111041009, 1111041, \"ALUE AWE\"],\n [1111041010, 1111041, \"LHOK ASAN\"],\n [1111041011, 1111041, \"DARUL AMAN\"],\n [1111050001, 1111050, \"MNS BAREE BLANG\"],\n [1111050002, 1111050, \"PAYA SUTRA\"],\n [1111050003, 1111050, \"TUALANG\"],\n [1111050004, 1111050, \"PULO BLANG\"],\n [1111050005, 1111050, \"LEUBOK TUWE\"],\n [1111050006, 1111050, \"SARAMABA\"],\n [1111050007, 1111050, \"BLANG REUMA\"],\n [1111050008, 1111050, \"RANTO\"],\n [1111050009, 1111050, \"MEUNYE PEUT\"],\n [1111050010, 1111050, \"MEUNYE PAYONG\"],\n [1111050011, 1111050, \"BEURINGEN\"],\n [1111050012, 1111050, \"UJONG KUTA BATEE\"],\n [1111050013, 1111050, \"TEUNGOH KUTA BATEE\"],\n [1111050014, 1111050, \"BAROH KUTA BATEE\"],\n [1111050015, 1111050, \"CEUBREK\"],\n [1111050016, 1111050, \"GAMPONG TEUNGOH\"],\n [1111050017, 1111050, \"KEUDE JUNGKA GAJAH\"],\n [1111050018, 1111050, \"NIBONG\"],\n [1111050019, 1111050, \"DRIEN BEUKAH\"],\n [1111050020, 1111050, \"PAYA KAMBUEK\"],\n [1111050021, 1111050, \"PAYA BILI\"],\n [1111050022, 1111050, \"DRIEN PUNTONG\"],\n [1111050023, 1111050, \"PULO KITOU\"],\n [1111050024, 1111050, \"TEUNGOH REUBA\"],\n [1111050025, 1111050, \"MEUNASAH NGA\"],\n [1111050026, 1111050, \"UJONG REUBA\"],\n [1111050027, 1111050, \"MNS MESJID\"],\n [1111050028, 1111050, \"MNS ME\"],\n [1111050029, 1111050, \"BARAT PAYA ITIK\"],\n [1111050030, 1111050, \"PRI KEUTAPANG\"],\n [1111050031, 1111050, \"KUMBANG\"],\n [1111050032, 1111050, \"MNS KEH\"],\n [1111050033, 1111050, \"BLANG CUT\"],\n [1111050034, 1111050, \"RAYEUK PAYA ITIK\"],\n [1111050035, 1111050, \"UBIT PAYA ITIK\"],\n [1111050036, 1111050, \"MNS RANGKILEH\"],\n [1111050037, 1111050, \"TUMPOK TUNGKU\"],\n [1111050038, 1111050, \"MANYANG\"],\n [1111050039, 1111050, \"ULEE MEURIA\"],\n [1111050040, 1111050, \"GEULUMPANG\"],\n [1111050041, 1111050, \"MNS TANJONG\"],\n [1111050042, 1111050, \"RAYEUK MATANG\"],\n [1111050043, 1111050, \"KEUDE KARIENG\"],\n [1111050044, 1111050, \"REUDEUP\"],\n [1111050045, 1111050, \"PULO BLUEK\"],\n [1111050046, 1111050, \"DAYAH BLUEK\"],\n [1111050047, 1111050, \"MEURIA BLUEK\"],\n [1111050048, 1111050, \"ULEE CEUBREK\"],\n [1111050049, 1111050, \"MESJID BLUEK\"],\n [1111050050, 1111050, \"RHENG BLUK\"],\n [1111060038, 1111060, \"BLANG SEUPENG\"],\n [1111060039, 1111060, \"BLANG KUTA\"],\n [1111060047, 1111060, \"LEUBOK PIRAK\"],\n [1111060048, 1111060, \"BEURACAN PIRAK\"],\n [1111060049, 1111060, \"MATANG PEUSANGAN\"],\n [1111060057, 1111060, \"KUNYET MULE\"],\n [1111060058, 1111060, \"ARON PIRAK\"],\n [1111060059, 1111060, \"MESJID PIRAK\"],\n [1111060060, 1111060, \"PANTE PIRAK\"],\n [1111060066, 1111060, \"BEURINGEN\"],\n [1111060067, 1111060, \"TEUNGOH PIRAK\"],\n [1111060068, 1111060, \"RAYEUK PIRAK\"],\n [1111060069, 1111060, \"TUTONG\"],\n [1111060071, 1111060, \"TEUNGOH SEULEUMAK\"],\n [1111060072, 1111060, \"TANJONG TGK KARI\"],\n [1111060073, 1111060, \"SEURIWEUK\"],\n [1111060074, 1111060, \"DAYAH BARO\"],\n [1111060075, 1111060, \"ALUE THO\"],\n [1111060076, 1111060, \"CEUBREK PIRAK\"],\n [1111060077, 1111060, \"MEUNYE PIRAK\"],\n [1111060078, 1111060, \"SIREN\"],\n [1111060079, 1111060, \"TANJONG HAJI MUDA\"],\n [1111060085, 1111060, \"TRIENG TEUPIN KEUBEU\"],\n [1111060086, 1111060, \"TEUPIN KEUBEU\"],\n [1111060087, 1111060, \"TANJONG BABAH KRUENG\"],\n [1111060088, 1111060, \"LAWANG\"],\n [1111060089, 1111060, \"TANJONG TGK ALI\"],\n [1111060090, 1111060, \"HAGU\"],\n [1111060091, 1111060, \"MEURIA MATANG KULI\"],\n [1111060092, 1111060, \"ALUE ENTOK\"],\n [1111060093, 1111060, \"TUMPOK BARAT\"],\n [1111060094, 1111060, \"PARANG IX\"],\n [1111060095, 1111060, \"BARO\"],\n [1111060096, 1111060, \"MEE\"],\n [1111060097, 1111060, \"BLANG\"],\n [1111060098, 1111060, \"KEUDE MATANG KULI\"],\n [1111060099, 1111060, \"PUNTI MATANG KULI\"],\n [1111060100, 1111060, \"MATANG MEE\"],\n [1111060101, 1111060, \"RAYEUK GLANGGLONG\"],\n [1111060102, 1111060, \"TUMPOK PEUREULAK\"],\n [1111060103, 1111060, \"RAYEUK MATANG KULI\"],\n [1111060104, 1111060, \"UDE\"],\n [1111060105, 1111060, \"UJONG KULAM\"],\n [1111060106, 1111060, \"JEUMPA GLUMPANG VII\"],\n [1111060107, 1111060, \"PUNTI GLUMPANG VII\"],\n [1111060108, 1111060, \"GLUMPANG VII\"],\n [1111060109, 1111060, \"TEUNGOH GLP VII\"],\n [1111060110, 1111060, \"ARON GLP VII\"],\n [1111060111, 1111060, \"MATANG MUNYE\"],\n [1111061001, 1111061, \"BLANG MANE\"],\n [1111061002, 1111061, \"MATANG PANYANG\"],\n [1111061003, 1111061, \"ALUE LHOK\"],\n [1111061004, 1111061, \"SEUNEUBOK ACEH\"],\n [1111061005, 1111061, \"BUKET PIDIE\"],\n [1111061006, 1111061, \"BUKET GURU\"],\n [1111061007, 1111061, \"ALUE BIENG\"],\n [1111061008, 1111061, \"PEUREUPOK\"],\n [1111061009, 1111061, \"BLANG GUNCI\"],\n [1111061010, 1111061, \"PANTE SEULEUMAK\"],\n [1111061011, 1111061, \"NGA\"],\n [1111061012, 1111061, \"MAMPREE\"],\n [1111061013, 1111061, \"TANJONG DRIEN\"],\n [1111061014, 1111061, \"COT TUFAH\"],\n [1111061015, 1111061, \"ASAN SEULEUMAK\"],\n [1111061016, 1111061, \"TGK DIBANDA TEK-TEK\"],\n [1111061017, 1111061, \"SIMPANG\"],\n [1111061018, 1111061, \"KEUBON PIRAK\"],\n [1111061019, 1111061, \"BLANG ARA\"],\n [1111061020, 1111061, \"GEUREUGHEK\"],\n [1111061021, 1111061, \"BLANG PANTE\"],\n [1111061022, 1111061, \"LUENG\"],\n [1111061023, 1111061, \"TGK DIBANDA PIRAK\"],\n [1111061024, 1111061, \"GEULUMPANG PIRAK\"],\n [1111061025, 1111061, \"BLANG SIALET\"],\n [1111061026, 1111061, \"BLANG PAKU\"],\n [1111061027, 1111061, \"BLANG DALAM\"],\n [1111061028, 1111061, \"MEURIA SEULEUMAK\"],\n [1111061029, 1111061, \"LEUHONG\"],\n [1111061030, 1111061, \"TANJONG BEURUNYONG\"],\n [1111061031, 1111061, \"KEUDE PAYA BAKONG\"],\n [1111061032, 1111061, \"CEUMPEUDAK\"],\n [1111061033, 1111061, \"PAYA MEUDRU\"],\n [1111061034, 1111061, \"MEUNYE SEULEUMAK\"],\n [1111061035, 1111061, \"ALUE LEUKOT\"],\n [1111061036, 1111061, \"PUCOK ALUE SEULEUMAK\"],\n [1111061037, 1111061, \"JOK\"],\n [1111061038, 1111061, \"TUNONG KRUENG\"],\n [1111061039, 1111061, \"TUMPOK MESJID\"],\n [1111062001, 1111062, \"TANJONG SEURUEKUY\"],\n [1111062002, 1111062, \"ALUE RIMEE\"],\n [1111062003, 1111062, \"PAYA LUENG JALO\"],\n [1111062004, 1111062, \"SERDANG\"],\n [1111062005, 1111062, \"ULEE BLANG\"],\n [1111062006, 1111062, \"MEUNYE VII\"],\n [1111062007, 1111062, \"PUCOK ALUE PIRAK\"],\n [1111062008, 1111062, \"ARA TONTON MONCRANG\"],\n [1111062009, 1111062, \"BILI BARO\"],\n [1111062010, 1111062, \"KEUTAPANG\"],\n [1111062011, 1111062, \"RENGKAM\"],\n [1111062012, 1111062, \"TEUPIN U\"],\n [1111062013, 1111062, \"ALUE BUNGKOH\"],\n [1111062014, 1111062, \"CEUMEUCET\"],\n [1111062015, 1111062, \"LEUPE\"],\n [1111062016, 1111062, \"TRIENG KRUENG KREH\"],\n [1111062017, 1111062, \"MATANG KEH\"],\n [1111062018, 1111062, \"KRUENG PIRAK\"],\n [1111062019, 1111062, \"RAYEUK PANGE\"],\n [1111062020, 1111062, \"BUNGONG\"],\n [1111062021, 1111062, \"GEULUMPANG\"],\n [1111062022, 1111062, \"ASAN KRUENG KREH\"],\n [1111062023, 1111062, \"BEURACAN RATA\"],\n [1111070001, 1111070, \"COT GIREK\"],\n [1111070002, 1111070, \"ALUE LEUHOB\"],\n [1111070003, 1111070, \"LHOK MERBO\"],\n [1111070004, 1111070, \"KAMPUNG BANTAN\"],\n [1111070005, 1111070, \"ALUE SEUMAMBU\"],\n [1111070006, 1111070, \"BATU XII\"],\n [1111070007, 1111070, \"KAMPUNG TEMPEL\"],\n [1111070008, 1111070, \"SEUPENG\"],\n [1111070009, 1111070, \"BEURANDANG DAYAH\"],\n [1111070010, 1111070, \"BEURANDANG ASAN\"],\n [1111070011, 1111070, \"DRIEN II\"],\n [1111070012, 1111070, \"BEURANDANG KRUENG\"],\n [1111070013, 1111070, \"JEULIKAT\"],\n [1111070014, 1111070, \"ARA\"],\n [1111070015, 1111070, \"LUENG BARO\"],\n [1111070016, 1111070, \"LHOK REUHAT\"],\n [1111070017, 1111070, \"TRIENG\"],\n [1111070018, 1111070, \"U BARO\"],\n [1111070019, 1111070, \"CEUMPEUDAK\"],\n [1111070020, 1111070, \"ALUE DRIEN\"],\n [1111070021, 1111070, \"SEUNEUBOK BARO\"],\n [1111070022, 1111070, \"ULEE GAMPONG\"],\n [1111070023, 1111070, \"PUCOK ALUE\"],\n [1111070024, 1111070, \"MATANG TEUNGOH\"],\n [1111080024, 1111080, \"BUKET JEURAT MANYANG\"],\n [1111080025, 1111080, \"MATANG RAYA\"],\n [1111080026, 1111080, \"MATANG SEUKE PULOT\"],\n [1111080027, 1111080, \"LUENG TUHA\"],\n [1111080028, 1111080, \"PUCOK ALUE\"],\n [1111080029, 1111080, \"MATANG SERDANG\"],\n [1111080030, 1111080, \"MATANG TEUNGOH T\"],\n [1111080031, 1111080, \"BUKET PADANG\"],\n [1111080032, 1111080, \"LHOK BEURINGEN\"],\n [1111080033, 1111080, \"LHOK MERBO\"],\n [1111080034, 1111080, \"BUKET ALUE PUTEH\"],\n [1111080035, 1111080, \"LHOK REUDEUP\"],\n [1111080036, 1111080, \"MATANG MANEH\"],\n [1111080037, 1111080, \"ALUE IE MIRAH\"],\n [1111080038, 1111080, \"TANJUNG PUNTI\"],\n [1111080039, 1111080, \"TANJUNG ARA\"],\n [1111080040, 1111080, \"MATANG SANTOT\"],\n [1111080041, 1111080, \"ULEE GLE\"],\n [1111080042, 1111080, \"BUKET BATEE BADAN\"],\n [1111080043, 1111080, \"BIRAM CUT\"],\n [1111080044, 1111080, \"BIRAM RAYEUK\"],\n [1111080045, 1111080, \"COT BIEK\"],\n [1111080046, 1111080, \"MATANG ARONGAN\"],\n [1111080047, 1111080, \"LHOK BINTANG HU\"],\n [1111080048, 1111080, \"BIARA BARAT\"],\n [1111080049, 1111080, \"BIARA TIMUR\"],\n [1111080050, 1111080, \"MATANG DRIEN\"],\n [1111080051, 1111080, \"CEUMPEUDAK\"],\n [1111080052, 1111080, \"ALUE PAPEUN\"],\n [1111080053, 1111080, \"SAMAKUROK\"],\n [1111080054, 1111080, \"RAWANG ITIK\"],\n [1111080055, 1111080, \"KOTA PANTON LABU\"],\n [1111080056, 1111080, \"MNS PANTON LABU\"],\n [1111080057, 1111080, \"TANJONG CEUNGAI\"],\n [1111080058, 1111080, \"TEUPIN BAYU\"],\n [1111080059, 1111080, \"TEUPIN GAJAH\"],\n [1111080060, 1111080, \"TANJONG MEUNYE\"],\n [1111080061, 1111080, \"MATANG JURONG\"],\n [1111080062, 1111080, \"TANJONG DALAM UTARA\"],\n [1111080063, 1111080, \"TANJONG MENUANG\"],\n [1111080064, 1111080, \"SEUNEUBOK PIDIE\"],\n [1111080065, 1111080, \"MEUNASAH DAYAH\"],\n [1111080066, 1111080, \"MEUNASAH GEUDONG\"],\n [1111080067, 1111080, \"MEUNASAH MERBO\"],\n [1111080068, 1111080, \"SEUNEUBOK DHOU\"],\n [1111080069, 1111080, \"RANTAU PANYANG\"],\n [1111080070, 1111080, \"GEULUMPANG UMPUNG UNOU\"],\n [1111081001, 1111081, \"LEUBOK PUSAKA\"],\n [1111081002, 1111081, \"SEUREUKE\"],\n [1111081003, 1111081, \"BUKET LINTEUNG\"],\n [1111081004, 1111081, \"RUMOH RAYEUK\"],\n [1111081005, 1111081, \"LANGKAHAN\"],\n [1111081006, 1111081, \"GEUDUMBAK\"],\n [1111081007, 1111081, \"TANJONG DALAM SELATAN\"],\n [1111081008, 1111081, \"MEUNASAH BLANG\"],\n [1111081009, 1111081, \"ALUE KRAK KAYEE\"],\n [1111081010, 1111081, \"TANJONG JAWA\"],\n [1111081011, 1111081, \"MATANG TEUNGOH S\"],\n [1111081012, 1111081, \"PADANG MEURIA\"],\n [1111081013, 1111081, \"LEUBOK MANE\"],\n [1111081014, 1111081, \"MATANG RUBEK\"],\n [1111081015, 1111081, \"SIMPANG TIGA\"],\n [1111081016, 1111081, \"PAYA TUKAI\"],\n [1111081017, 1111081, \"KAMPONG BLANG\"],\n [1111081018, 1111081, \"MATANG KEUTAPANG\"],\n [1111081019, 1111081, \"PANTE GAKI BALE\"],\n [1111081020, 1111081, \"KRUENG LINGKA\"],\n [1111081021, 1111081, \"BANTAYAN\"],\n [1111081022, 1111081, \"ALUE DUA\"],\n [1111081023, 1111081, \"COT BADA\"],\n [1111090001, 1111090, \"BLANG TUE\"],\n [1111090002, 1111090, \"MERBO PUNTONG\"],\n [1111090003, 1111090, \"MANE KAWAN\"],\n [1111090004, 1111090, \"TANJONG PINEUNG\"],\n [1111090005, 1111090, \"ALUE KIRAN\"],\n [1111090006, 1111090, \"ALUE BARUEH\"],\n [1111090007, 1111090, \"KEUDE SIMPANG JALAN\"],\n [1111090008, 1111090, \"COT KAFIRATON\"],\n [1111090009, 1111090, \"PAYA DUA UJONG\"],\n [1111090010, 1111090, \"TANJONG DAMA\"],\n [1111090011, 1111090, \"PAYA DUA URAM\"],\n [1111090012, 1111090, \"LHOK GEULITUET\"],\n [1111090013, 1111090, \"MATANG ANOE\"],\n [1111090014, 1111090, \"LHOK RAMBIDENG\"],\n [1111090015, 1111090, \"BLANG PHA\"],\n [1111090016, 1111090, \"MATANG JEULIKAT\"],\n [1111090017, 1111090, \"DARUL AMAN\"],\n [1111090018, 1111090, \"COT TRUENG\"],\n [1111090019, 1111090, \"MEUNASAH SAGOE\"],\n [1111090020, 1111090, \"MATANG PUNTONG\"],\n [1111090021, 1111090, \"MATANG PANYANG\"],\n [1111090022, 1111090, \"COT PATISAH\"],\n [1111090023, 1111090, \"ALUE CAPLI\"],\n [1111090024, 1111090, \"SIMPANG PEUT\"],\n [1111090025, 1111090, \"ULEE TITI\"],\n [1111090026, 1111090, \"LHOK PUUK\"],\n [1111090027, 1111090, \"ULEE RUBEK BARAT\"],\n [1111090028, 1111090, \"MATANG LADA\"],\n [1111090029, 1111090, \"MATANG KARIENG\"],\n [1111090030, 1111090, \"ULEE MATANG\"],\n [1111090031, 1111090, \"ULEE RUBE TIMU\"],\n [1111090032, 1111090, \"BANTAYAN\"],\n [1111090033, 1111090, \"TEUPIN KUYUEN\"],\n [1111100001, 1111100, \"CINTA MAKMUR\"],\n [1111100002, 1111100, \"BABUSSALAM\"],\n [1111100003, 1111100, \"BUKET DARA BARO\"],\n [1111100004, 1111100, \"MATANG BARO\"],\n [1111100005, 1111100, \"UJONG DAMA\"],\n [1111100006, 1111100, \"BUKET MON SUKON\"],\n [1111100007, 1111100, \"MATANG BEURINGEN\"],\n [1111100009, 1111100, \"MATANG PINEUNG\"],\n [1111100010, 1111100, \"CEUMPEDAK\"],\n [1111100011, 1111100, \"MATANG REUDEUP\"],\n [1111100012, 1111100, \"BUKET LUENG BATA\"],\n [1111100013, 1111100, \"MATANG MANYAM\"],\n [1111100014, 1111100, \"COT MANYANG\"],\n [1111100015, 1111100, \"KEUDE MEUNYE IV\"],\n [1111100016, 1111100, \"MATANG ULIM\"],\n [1111100017, 1111100, \"MATANG LINYA\"],\n [1111100023, 1111100, \"ALUE IE TAREK\"],\n [1111100024, 1111100, \"GEULUMPANG BUNGKOK\"],\n [1111100025, 1111100, \"ARONGAN LISE\"],\n [1111100026, 1111100, \"GLUMPANG PAYONG\"],\n [1111100027, 1111100, \"ALUE RAMBONG\"],\n [1111100028, 1111100, \"GEULUMPANG SAMLAKOE\"],\n [1111100029, 1111100, \"MATANG RAWA\"],\n [1111100030, 1111100, \"MATANG LAWANG\"],\n [1111100032, 1111100, \"COT ARA\"],\n [1111100033, 1111100, \"ALUE DAMA\"],\n [1111100034, 1111100, \"ALUE BILI GEULUMPANG\"],\n [1111100035, 1111100, \"PUCOK ALUE\"],\n [1111100036, 1111100, \"MATANG KAREUNG\"],\n [1111100037, 1111100, \"COT ULAYA\"],\n [1111100040, 1111100, \"KEUDE PANTEU BREUH\"],\n [1111100041, 1111100, \"RAMBONG DALAM\"],\n [1111100042, 1111100, \"ALUE BILI RAYEUK\"],\n [1111100043, 1111100, \"MEUNASAH ALUE IE PUTEH\"],\n [1111100044, 1111100, \"KEUDE ALUE IE PUTEH\"],\n [1111100045, 1111100, \"MATANG KUMBANG\"],\n [1111100057, 1111100, \"COT MANE\"],\n [1111100058, 1111100, \"COT KUMBANG\"],\n [1111100059, 1111100, \"LHOK SEUTUY\"],\n [1111100060, 1111100, \"MEUNASAH BUJOK\"],\n [1111100061, 1111100, \"ALUE JAMOK\"],\n [1111100062, 1111100, \"MEUDANG ARA\"],\n [1111100063, 1111100, \"ALUE KEUTAPANG\"],\n [1111100064, 1111100, \"MEUNASAH GEUDONG\"],\n [1111100065, 1111100, \"KRUENG LINGKA TIMU\"],\n [1111100066, 1111100, \"KRUENG LINGKA BARAT\"],\n [1111100067, 1111100, \"ALUE ANOU TIMU\"],\n [1111100068, 1111100, \"ALUE ANOU BARAT\"],\n [1111100069, 1111100, \"ALUE SERDANG\"],\n [1111100070, 1111100, \"MATANG RAYA BARAT\"],\n [1111100074, 1111100, \"PULO SEUKE\"],\n [1111100075, 1111100, \"ALUE GEUDONG\"],\n [1111100076, 1111100, \"MATANG KEULAYU\"],\n [1111100077, 1111100, \"MATANG RAYA TIMU\"],\n [1111100078, 1111100, \"ALUE BUYA\"],\n [1111100079, 1111100, \"MATANG CUT\"],\n [1111100080, 1111100, \"TANJONG GLUMPANG\"],\n [1111101001, 1111101, \"COT KUPOK\"],\n [1111101002, 1111101, \"MATANG RAYA BLANG SIALET\"],\n [1111101003, 1111101, \"PUCOK ALUE BUKET\"],\n [1111101004, 1111101, \"COT PAYA\"],\n [1111101005, 1111101, \"MATANG TEUNGOH\"],\n [1111101006, 1111101, \"MATANG PANYANG\"],\n [1111101007, 1111101, \"MATANG BAYU\"],\n [1111101008, 1111101, \"LANG NIBONG\"],\n [1111101009, 1111101, \"SINGGAH MATA\"],\n [1111101010, 1111101, \"MATANG CEUBREK\"],\n [1111101011, 1111101, \"COT USEN\"],\n [1111101012, 1111101, \"MATANG SIJUEK BARAT\"],\n [1111101013, 1111101, \"MATANG SIJUEK TEUNGOH\"],\n [1111101014, 1111101, \"MATANG SIJUEK TIMU\"],\n [1111101015, 1111101, \"KEUDE SAMPOYNIET\"],\n [1111101016, 1111101, \"BLANG SEUNONG\"],\n [1111101017, 1111101, \"MATANG PAYA\"],\n [1111101018, 1111101, \"LHOK IBOH\"],\n [1111101019, 1111101, \"COT LABA\"],\n [1111101020, 1111101, \"MEUNASAH PANTE\"],\n [1111101021, 1111101, \"COT MURONG\"],\n [1111101022, 1111101, \"MEURANDEH PAYA\"],\n [1111101023, 1111101, \"MEUNASAH HAGU\"],\n [1111101024, 1111101, \"BLANG RHEU\"],\n [1111101025, 1111101, \"LHOK EUNCIEN\"],\n [1111101026, 1111101, \"PAYA BATEUNG\"],\n [1111110001, 1111110, \"GEULUMPANG\"],\n [1111110002, 1111110, \"BULOH LT\"],\n [1111110003, 1111110, \"ALUE ABEE\"],\n [1111110004, 1111110, \"ALUE EUMPOK\"],\n [1111110005, 1111110, \"ALUE ITAM REUDEUP\"],\n [1111110006, 1111110, \"BUKET KRUENG\"],\n [1111110007, 1111110, \"MEUNASAH TEUNGOH LB\"],\n [1111110008, 1111110, \"KUMBANG LT\"],\n [1111110009, 1111110, \"ALUE ITAM BAROH\"],\n [1111110010, 1111110, \"MEURIA\"],\n [1111110011, 1111110, \"ARONGAN LT\"],\n [1111110012, 1111110, \"BUKET ME LT\"],\n [1111110013, 1111110, \"DAYAH LT\"],\n [1111110014, 1111110, \"KRUENG LT\"],\n [1111110015, 1111110, \"MEUNASAH TUHA\"],\n [1111110016, 1111110, \"MEUNASAH RAYEUK LB\"],\n [1111110017, 1111110, \"MEUCAT\"],\n [1111110018, 1111110, \"ASAN LB\"],\n [1111110019, 1111110, \"RAWA\"],\n [1111110020, 1111110, \"BABAH GEUDUBANG\"],\n [1111110021, 1111110, \"MEUNASAH MEUREBO\"],\n [1111110022, 1111110, \"ULEE GUNONG\"],\n [1111110023, 1111110, \"TEUPIN KEUBEU\"],\n [1111110024, 1111110, \"SEUNEUBOK DALAM\"],\n [1111110025, 1111110, \"GRONG GRONG\"],\n [1111110026, 1111110, \"LHOK KAREUNG\"],\n [1111110027, 1111110, \"COT ASAN\"],\n [1111110028, 1111110, \"BUKET HAGU\"],\n [1111110030, 1111110, \"MATA IE\"],\n [1111110031, 1111110, \"MATA U\"],\n [1111110032, 1111110, \"LHOK SENTANG\"],\n [1111110033, 1111110, \"ULEE TANOH\"],\n [1111110034, 1111110, \"NGA LT\"],\n [1111110035, 1111110, \"MEUNASAH JOK\"],\n [1111110036, 1111110, \"MEUNASAH NGA LB\"],\n [1111110037, 1111110, \"MATANG MEUNYE\"],\n [1111110038, 1111110, \"BERINGIN LB\"],\n [1111110039, 1111110, \"MANYANG\"],\n [1111110040, 1111110, \"BLANG\"],\n [1111110041, 1111110, \"CEUBREK\"],\n [1111110042, 1111110, \"KUTA LHOKSUKON\"],\n [1111110043, 1111110, \"DAYAH LB\"],\n [1111110044, 1111110, \"MEUNASAH MATANG TEUNGOH LT\"],\n [1111110045, 1111110, \"MEUNASAH GEULINGGANG\"],\n [1111110046, 1111110, \"ULEE BARAT\"],\n [1111110047, 1111110, \"PULO DULANG\"],\n [1111110048, 1111110, \"MEUNASAH TUTONG\"],\n [1111110049, 1111110, \"MEUNASAH GEUMATA\"],\n [1111110050, 1111110, \"MEUNASAH PANTE\"],\n [1111110051, 1111110, \"TRIENG MATANG UBI\"],\n [1111110052, 1111110, \"MEUNYE MATANG UBI\"],\n [1111110053, 1111110, \"BLANG RUBEK\"],\n [1111110054, 1111110, \"ALUE BUKET\"],\n [1111110055, 1111110, \"MEUNASAH REUDEUP\"],\n [1111110056, 1111110, \"NGA MATANG UBI\"],\n [1111110057, 1111110, \"BUKET SENTANG\"],\n [1111110058, 1111110, \"BLANG AMAN\"],\n [1111110059, 1111110, \"COT U SIBAK\"],\n [1111110060, 1111110, \"BINTANG HU\"],\n [1111110061, 1111110, \"COT ARA\"],\n [1111110062, 1111110, \"COT GEULUMPANG AB\"],\n [1111110063, 1111110, \"ABEUK LEUPEN\"],\n [1111110064, 1111110, \"MATANG PUPANJI AB\"],\n [1111110065, 1111110, \"MATANG TEUNGOH AB\"],\n [1111110066, 1111110, \"MEUNASAH ASAN AB\"],\n [1111110067, 1111110, \"RANTO\"],\n [1111110068, 1111110, \"KEUTAPANG\"],\n [1111110069, 1111110, \"ALUE MUDEM\"],\n [1111110070, 1111110, \"R A M B O T\"],\n [1111110071, 1111110, \"ARA AB\"],\n [1111110072, 1111110, \"MEUNASAH ALUE DRIEN LB\"],\n [1111110073, 1111110, \"MANCANG\"],\n [1111110074, 1111110, \"LEUBOK AB\"],\n [1111110075, 1111110, \"TRIENG PANTANG\"],\n [1111110076, 1111110, \"MEUNASAH ARONGAN AB\"],\n [1111120001, 1111120, \"LEUPON SIREN\"],\n [1111120002, 1111120, \"ULEE BUKET\"],\n [1111120003, 1111120, \"BLANG PIE\"],\n [1111120004, 1111120, \"BLANG TRIENG\"],\n [1111120008, 1111120, \"COT BARAT\"],\n [1111120009, 1111120, \"PLU PAKAM\"],\n [1111120010, 1111120, \"TUMPOK ACEH\"],\n [1111120011, 1111120, \"COT DAH\"],\n [1111120012, 1111120, \"ALUE SIJUEK\"],\n [1111120015, 1111120, \"HAGU\"],\n [1111120016, 1111120, \"BAYI\"],\n [1111120017, 1111120, \"LEU HONG\"],\n [1111120018, 1111120, \"PUNTI SEULEUMAK BARAT\"],\n [1111120019, 1111120, \"SERBA JAMAN TUNONG\"],\n [1111120020, 1111120, \"ALUE GAMPONG\"],\n [1111120023, 1111120, \"MATANG BALOY\"],\n [1111120024, 1111120, \"TEUPIN ME\"],\n [1111120025, 1111120, \"BLANG\"],\n [1111120026, 1111120, \"MATANG MANE\"],\n [1111120030, 1111120, \"TANJONG MESJID\"],\n [1111120031, 1111120, \"KEUTAPANG\"],\n [1111120032, 1111120, \"CEUBREK\"],\n [1111120033, 1111120, \"MANYANG SEULEUMAK BARAT\"],\n [1111120034, 1111120, \"TRIENG\"],\n [1111120035, 1111120, \"SERBA JAMAN BAROH\"],\n [1111120036, 1111120, \"UJONG BAROH SB\"],\n [1111120044, 1111120, \"BLANG JRUEN\"],\n [1111120045, 1111120, \"RAYEUK KUTA\"],\n [1111120046, 1111120, \"PAYA\"],\n [1111120047, 1111120, \"RANGKAYA\"],\n [1111120048, 1111120, \"RAYEUK MEUNYE\"],\n [1111120049, 1111120, \"KEUDE BLANG JRUEN\"],\n [1111120050, 1111120, \"AMPEH\"],\n [1111120054, 1111120, \"TUTONG\"],\n [1111120055, 1111120, \"ALUE\"],\n [1111120056, 1111120, \"TEUNGOH BEUREGHANG\"],\n [1111120057, 1111120, \"JEUMPA BEUREGHANG\"],\n [1111120058, 1111120, \"PANTE\"],\n [1111120059, 1111120, \"TGK DIBALE\"],\n [1111120060, 1111120, \"SERBA JAMAN\"],\n [1111120061, 1111120, \"RAYEUK NALEUNG\"],\n [1111120062, 1111120, \"BLANG BIDOK\"],\n [1111120063, 1111120, \"PUNTI PULO AGAM\"],\n [1111120064, 1111120, \"TEUNGOH PULO AGAM\"],\n [1111120065, 1111120, \"RAWA\"],\n [1111120066, 1111120, \"MATANG BEN\"],\n [1111120067, 1111120, \"UJONG BAROH BEUREGHANG\"],\n [1111120068, 1111120, \"MANYANG TUNONG\"],\n [1111120069, 1111120, \"ALUE PANGKAT\"],\n [1111120070, 1111120, \"PULO BLANG\"],\n [1111120071, 1111120, \"MATANG CEUBREK\"],\n [1111120072, 1111120, \"HUENG\"],\n [1111120073, 1111120, \"DENG\"],\n [1111120074, 1111120, \"PAYA BEURANDANG\"],\n [1111120075, 1111120, \"PULO U\"],\n [1111120076, 1111120, \"ALUE KEUJRUEN\"],\n [1111120077, 1111120, \"BUKET MAKARTI\"],\n [1111121001, 1111121, \"BUMBAN\"],\n [1111121002, 1111121, \"ALUE NGOM\"],\n [1111121003, 1111121, \"ALUE PANAH\"],\n [1111121004, 1111121, \"ALUE IE MIRAH\"],\n [1111121005, 1111121, \"MADDI\"],\n [1111121006, 1111121, \"TANJONG PUTOH\"],\n [1111121007, 1111121, \"SEULUNYOK\"],\n [1111121008, 1111121, \"RANTO\"],\n [1111121009, 1111121, \"MENYE LHEE\"],\n [1111121010, 1111121, \"KEULILEE\"],\n [1111121011, 1111121, \"PAYA TEUREUBANG\"],\n [1111121012, 1111121, \"SUMBOK RAYEK\"],\n [1111121013, 1111121, \"MAMPLAM\"],\n [1111121014, 1111121, \"KEH\"],\n [1111121015, 1111121, \"DAYAH NIBONG\"],\n [1111121016, 1111121, \"TEUPIN JOK\"],\n [1111121017, 1111121, \"KEUPOK NIBONG\"],\n [1111121018, 1111121, \"KEUDE NIBONG\"],\n [1111121019, 1111121, \"NIBONG WAKEUH\"],\n [1111121020, 1111121, \"NIBONG BAROH\"],\n [1111130001, 1111130, \"KITOU\"],\n [1111130002, 1111130, \"PAYA TERBANG\"],\n [1111130003, 1111130, \"TANJONG MESJID\"],\n [1111130004, 1111130, \"TANJONG AWE\"],\n [1111130005, 1111130, \"TANJONG RENGKAM\"],\n [1111130006, 1111130, \"TANJONG HAGU\"],\n [1111130007, 1111130, \"MADAN\"],\n [1111130008, 1111130, \"TANJONG BAROH\"],\n [1111130009, 1111130, \"GAMPONG BARO\"],\n [1111130010, 1111130, \"TANJONG KLENG\"],\n [1111130011, 1111130, \"KRUENG BARO LGH\"],\n [1111130012, 1111130, \"TEUPIN BEULANGAN\"],\n [1111130013, 1111130, \"TEUPIN ARA\"],\n [1111130014, 1111130, \"PUSONG\"],\n [1111130015, 1111130, \"MANCANG\"],\n [1111130016, 1111130, \"BLANG KABU\"],\n [1111130017, 1111130, \"KEUDE GEUDONG\"],\n [1111130018, 1111130, \"BLANG PEURIA\"],\n [1111130019, 1111130, \"MEUNASAH ASAN\"],\n [1111130020, 1111130, \"MURONG\"],\n [1111130021, 1111130, \"PIE\"],\n [1111130022, 1111130, \"KRUENG MATE\"],\n [1111130023, 1111130, \"BEURINGEN\"],\n [1111130024, 1111130, \"KUTA KRUENG\"],\n [1111130025, 1111130, \"KUTA GLUMPANG\"],\n [1111130026, 1111130, \"MEUCAT\"],\n [1111130027, 1111130, \"KRUENG BARO BLANG ME\"],\n [1111130028, 1111130, \"UJONG\"],\n [1111130029, 1111130, \"MESJID\"],\n [1111130030, 1111130, \"TEUNGOH\"],\n [1111130031, 1111130, \"PUUK\"],\n [1111130032, 1111130, \"PULO\"],\n [1111130033, 1111130, \"LAGA BARO\"],\n [1111130034, 1111130, \"MATANG TUNONG\"],\n [1111130035, 1111130, \"KEUDE BLANG ME\"],\n [1111130036, 1111130, \"MATANG PUNTONG\"],\n [1111130037, 1111130, \"LANCANG\"],\n [1111130038, 1111130, \"MATANG ULIM\"],\n [1111130039, 1111130, \"SAWANG\"],\n [1111130040, 1111130, \"BLANG NIBONG\"],\n [1111140001, 1111140, \"TANJONG KRUENG PASE\"],\n [1111140002, 1111140, \"MATANG MUNYE\"],\n [1111140003, 1111140, \"BLANG\"],\n [1111140004, 1111140, \"GLOK ARON\"],\n [1111140005, 1111140, \"MEE ARON\"],\n [1111140006, 1111140, \"MEURIA ARON\"],\n [1111140007, 1111140, \"U BLANG ASAN\"],\n [1111140008, 1111140, \"KANOT\"],\n [1111140009, 1111140, \"DAYAH ARON\"],\n [1111140010, 1111140, \"MONCRANG\"],\n [1111140011, 1111140, \"KEUDE ARON\"],\n [1111140012, 1111140, \"TEUNGOH\"],\n [1111140013, 1111140, \"KUMBANG\"],\n [1111140014, 1111140, \"CIBREK TUNONG\"],\n [1111140015, 1111140, \"MEUCAT\"],\n [1111140016, 1111140, \"DAYAH TEUNGKU\"],\n [1111140017, 1111140, \"CALONG\"],\n [1111140018, 1111140, \"MANYANG BAROH\"],\n [1111140019, 1111140, \"ALUE GUNTO\"],\n [1111140020, 1111140, \"PEURUPOK\"],\n [1111140021, 1111140, \"PULO\"],\n [1111140022, 1111140, \"TANJONG MULIENG\"],\n [1111140023, 1111140, \"CIBREK BAROH\"],\n [1111140024, 1111140, \"MESJID\"],\n [1111140025, 1111140, \"PANTE\"],\n [1111140026, 1111140, \"KEUTAPANG\"],\n [1111140027, 1111140, \"KEUDE TEUPIN PUNTI\"],\n [1111140028, 1111140, \"AWE\"],\n [1111140029, 1111140, \"HAGU\"],\n [1111140030, 1111140, \"ARA\"],\n [1111140031, 1111140, \"MAMPREE\"],\n [1111140032, 1111140, \"AMPEH\"],\n [1111140033, 1111140, \"DAYAH MEURIA\"],\n [1111140034, 1111140, \"KULAM\"],\n [1111150001, 1111150, \"ALUE\"],\n [1111150002, 1111150, \"KEUDE MATANG PANYANG\"],\n [1111150003, 1111150, \"BLANG\"],\n [1111150004, 1111150, \"GAMPONG PANDE\"],\n [1111150005, 1111150, \"PALOH\"],\n [1111150006, 1111150, \"PRIE\"],\n [1111150007, 1111150, \"ME MERBO\"],\n [1111150008, 1111150, \"ULEE TANOH\"],\n [1111150009, 1111150, \"MATANG RANUB LASEH\"],\n [1111150015, 1111150, \"KEUTAPANG\"],\n [1111150016, 1111150, \"KUMBANG\"],\n [1111150017, 1111150, \"ME MATANG PANYANG\"],\n [1111150018, 1111150, \"CANGGUEK\"],\n [1111150019, 1111150, \"KEUDE JRAT MANYANG\"],\n [1111150020, 1111150, \"TEUPIN GAPEUH\"],\n [1111150021, 1111150, \"CIBREK\"],\n [1111150024, 1111150, \"MATANG JANENG\"],\n [1111150029, 1111150, \"KUALA KEUREUTOE BARAT\"],\n [1111151001, 1111151, \"KEUREUTOAU\"],\n [1111151002, 1111151, \"LUENG BARO\"],\n [1111151003, 1111151, \"MERBO LAMA\"],\n [1111151004, 1111151, \"MERBO JURONG\"],\n [1111151005, 1111151, \"TANJUNG DAMA\"],\n [1111151006, 1111151, \"GEULANGGANG BARO\"],\n [1111151007, 1111151, \"MATANG TUNONG\"],\n [1111151008, 1111151, \"MATANG BAROH\"],\n [1111151009, 1111151, \"KEUDE LAPANG\"],\n [1111151010, 1111151, \"KUALA CANGKOI\"],\n [1111151011, 1111151, \"KUALA KEREUTOU\"],\n [1111160001, 1111160, \"TEUPIN BANJA\"],\n [1111160002, 1111160, \"PANIGAH\"],\n [1111160003, 1111160, \"PALOH AWE\"],\n [1111160004, 1111160, \"REULEUT TIMUR\"],\n [1111160005, 1111160, \"REULEUT BARAT\"],\n [1111160006, 1111160, \"PINTO MAKMUR\"],\n [1111160007, 1111160, \"TUMPOK BEURANDANG\"],\n [1111160008, 1111160, \"PALOH RAYA\"],\n [1111160009, 1111160, \"MEUNASAH PINTO\"],\n [1111160010, 1111160, \"KUALA DUA\"],\n [1111160011, 1111160, \"KEUDE MANE\"],\n [1111160012, 1111160, \"MANE TUNONG\"],\n [1111160013, 1111160, \"PANTE GURAH\"],\n [1111160014, 1111160, \"KAMBAM\"],\n [1111160015, 1111160, \"KEUDE BUNGKAIH\"],\n [1111160016, 1111160, \"ULEE MADON\"],\n [1111160017, 1111160, \"MEUNASAH ARON\"],\n [1111160018, 1111160, \"COT TRUENG\"],\n [1111160019, 1111160, \"DAKUTA\"],\n [1111160020, 1111160, \"MEUNASAH DRANG\"],\n [1111160021, 1111160, \"MEUNASAH BARO\"],\n [1111160022, 1111160, \"MEUNASAH LHOK\"],\n [1111160023, 1111160, \"COT SEURANI\"],\n [1111160024, 1111160, \"TANOH ANOUE\"],\n [1111170001, 1111170, \"PALOH IGEUH\"],\n [1111170002, 1111170, \"PALOH GADENG\"],\n [1111170003, 1111170, \"TAMBON TUNONG\"],\n [1111170004, 1111170, \"TAMBON BAROH\"],\n [1111170005, 1111170, \"PALOH LADA\"],\n [1111170006, 1111170, \"PULO RUNGKOM\"],\n [1111170007, 1111170, \"ULEE PULO\"],\n [1111170008, 1111170, \"ULEE REULEUNG\"],\n [1111170009, 1111170, \"LANCANG BARAT\"],\n [1111170010, 1111170, \"GEULUMPANG SULU BARAT\"],\n [1111170011, 1111170, \"GEULUMPANG SULU TIMUR\"],\n [1111170012, 1111170, \"UTEUN GEULINGGANG\"],\n [1111170013, 1111170, \"KEUDE KRUENG GEUKUEH\"],\n [1111170014, 1111170, \"BANGKA JAYA\"],\n [1111170015, 1111170, \"BLUKA TEUBAI\"],\n [1112010015, 1112010, \"TENGAH\"],\n [1112010016, 1112010, \"PADANG\"],\n [1112010017, 1112010, \"KEDAI\"],\n [1112010018, 1112010, \"PAYA\"],\n [1112010019, 1112010, \"SEUNALOP\"],\n [1112010022, 1112010, \"LADANG PANAH\"],\n [1112010023, 1112010, \"PUSU\"],\n [1112010024, 1112010, \"UJUNG PADANG\"],\n [1112010025, 1112010, \"LHUNG BARO\"],\n [1112010026, 1112010, \"PANTON MAKMUR\"],\n [1112010027, 1112010, \"PANTE RAJA\"],\n [1112010028, 1112010, \"LHOK PAWOH\"],\n [1112010029, 1112010, \"PANTE PIRAK\"],\n [1112010030, 1112010, \"SEJAHTERA\"],\n [1112010031, 1112010, \"BLANG MANGGENG\"],\n [1112010032, 1112010, \"TOKOH\"],\n [1112010033, 1112010, \"LHOK PUNTOY\"],\n [1112010034, 1112010, \"PANTE CERMIN\"],\n [1112011001, 1112011, \"UJUNG TANAH\"],\n [1112011002, 1112011, \"KUTA PAYA\"],\n [1112011003, 1112011, \"GEULANGGANG BATEE\"],\n [1112011004, 1112011, \"MEUNASAH TENGAH\"],\n [1112011005, 1112011, \"MEUNASAH SUKON\"],\n [1112011006, 1112011, \"COT BAK-U\"],\n [1112011007, 1112011, \"MEURANDEH\"],\n [1112011008, 1112011, \"PADANG KELELE\"],\n [1112011009, 1112011, \"LADANG TUHA I\"],\n [1112011010, 1112011, \"LADANG TUHA II\"],\n [1112011011, 1112011, \"ALUE RAMBOT\"],\n [1112011016, 1112011, \"SUKA DAMAI\"],\n [1112011017, 1112011, \"TOKOH II\"],\n [1112011018, 1112011, \"KAYE ACEH\"],\n [1112020001, 1112020, \"PADANG BAKJOK\"],\n [1112020002, 1112020, \"SUAK NIBONG\"],\n [1112020003, 1112020, \"DRIEN KIPAH\"],\n [1112020004, 1112020, \"BINEH KRUENG\"],\n [1112020005, 1112020, \"DRIEN JALO\"],\n [1112020006, 1112020, \"PADANG KAWA\"],\n [1112020007, 1112020, \"MESJID\"],\n [1112020008, 1112020, \"ADAN\"],\n [1112020009, 1112020, \"PANTE GEULUMPANG\"],\n [1112020010, 1112020, \"GUNUNG CUT\"],\n [1112020011, 1112020, \"PADANG BAK JEUMPA\"],\n [1112020012, 1112020, \"BLANG PADANG\"],\n [1112020013, 1112020, \"SUAK LABU\"],\n [1112020014, 1112020, \"KUTA BAK DRIN\"],\n [1112020015, 1112020, \"IE LHOP\"],\n [1112021002, 1112021, \"TANGAN TANGAN CUT\"],\n [1112021003, 1112021, \"LHANG\"],\n [1112021004, 1112021, \"UJUNG TANAH\"],\n [1112021005, 1112021, \"RAMBONG\"],\n [1112021006, 1112021, \"PISANG\"],\n [1112021007, 1112021, \"ALUE DAMA\"],\n [1112021008, 1112021, \"MON MAMEH\"],\n [1112021009, 1112021, \"CINTA MAKMUR\"],\n [1112021010, 1112021, \"KUTA MURNI\"],\n [1112030002, 1112030, \"COT JEURAT\"],\n [1112030003, 1112030, \"KUTA BAHAGIA\"],\n [1112030004, 1112030, \"KEDAI SIBLAH\"],\n [1112030005, 1112030, \"PASAR BLANG PIDIE\"],\n [1112030006, 1112030, \"MEUDANG ARA\"],\n [1112030007, 1112030, \"GEULUMPANG PAYONG\"],\n [1112030008, 1112030, \"KUTA TINGGI\"],\n [1112030009, 1112030, \"KEDAI PAYA\"],\n [1112030010, 1112030, \"BAHARU\"],\n [1112030011, 1112030, \"LAMKUTA\"],\n [1112030012, 1112030, \"ALUM ANGGOTA\"],\n [1112030013, 1112030, \"MATA IE\"],\n [1112030014, 1112030, \"PANTON RAYA\"],\n [1112030015, 1112030, \"SEUNALOH\"],\n [1112030016, 1112030, \"LHUNG TAROK\"],\n [1112030018, 1112030, \"LHUNG ASAN\"],\n [1112030019, 1112030, \"GUHANG\"],\n [1112030027, 1112030, \"KUTA TUHA\"],\n [1112030029, 1112030, \"GUDANG\"],\n [1112030030, 1112030, \"BABAH LHUNG\"],\n [1112031001, 1112031, \"PADANG GEULUMPANG\"],\n [1112031002, 1112031, \"ASO NANGGRO\"],\n [1112031003, 1112031, \"LADANG NEUBOK\"],\n [1112031004, 1112031, \"IKU LHUNG\"],\n [1112031005, 1112031, \"COT MANE\"],\n [1112031006, 1112031, \"KUTA JEUMPA\"],\n [1112031007, 1112031, \"ALUE SUNGAI PINANG\"],\n [1112031008, 1112031, \"ALUE RAMBOT\"],\n [1112031009, 1112031, \"BARU\"],\n [1112031010, 1112031, \"KUTA MAKMUR\"],\n [1112031011, 1112031, \"ALUE SELASEH\"],\n [1112031012, 1112031, \"JEUMPA BARAT\"],\n [1112040001, 1112040, \"KEDAI SUSOH\"],\n [1112040002, 1112040, \"PANJANG BARU\"],\n [1112040003, 1112040, \"KEDAI PALAK KERAMBIL\"],\n [1112040004, 1112040, \"LADANG\"],\n [1112040005, 1112040, \"PADANG PANJANG\"],\n [1112040006, 1112040, \"RUBEK MEUPAYONG\"],\n [1112040007, 1112040, \"COT MANCANG\"],\n [1112040008, 1112040, \"LAMPOH DRIEN\"],\n [1112040009, 1112040, \"MEUNASAH\"],\n [1112040010, 1112040, \"BLANG DALAM\"],\n [1112040011, 1112040, \"PALAK HULU\"],\n [1112040012, 1112040, \"PALAK HILIR\"],\n [1112040013, 1112040, \"RUMAH DUA LAPIS\"],\n [1112040014, 1112040, \"DURIAN JANGEK\"],\n [1112040015, 1112040, \"BAHARU\"],\n [1112040016, 1112040, \"PINANG\"],\n [1112040017, 1112040, \"RUMAH PANJANG\"],\n [1112040018, 1112040, \"PADANG BARU\"],\n [1112040019, 1112040, \"PULAU KAYU\"],\n [1112040020, 1112040, \"UJUNG PADANG\"],\n [1112040021, 1112040, \"PAWOH\"],\n [1112040022, 1112040, \"BARAT\"],\n [1112040023, 1112040, \"DURIAN RAMPAK\"],\n [1112040024, 1112040, \"PANTAI PERAK\"],\n [1112040025, 1112040, \"PADANG HILIR\"],\n [1112040026, 1112040, \"GADANG\"],\n [1112040027, 1112040, \"TANGAH\"],\n [1112040028, 1112040, \"KEPALA BANDAR\"],\n [1112040029, 1112040, \"GEULIMA JAYA\"],\n [1112050001, 1112050, \"LAMA TUHA\"],\n [1112050002, 1112050, \"KEUDEE BARO\"],\n [1112050003, 1112050, \"IE MAMEH\"],\n [1112050004, 1112050, \"ALUE PISANG\"],\n [1112050005, 1112050, \"KRUENG BATEE\"],\n [1112050006, 1112050, \"LHOK GAJAH\"],\n [1112050007, 1112050, \"MUKA BLANG\"],\n [1112050008, 1112050, \"PADANG SIKABU\"],\n [1112050009, 1112050, \"LHUNG GELUMPANG\"],\n [1112050010, 1112050, \"ALUE PADEE\"],\n [1112050011, 1112050, \"BLANG PANYANG\"],\n [1112050012, 1112050, \"KAMPUNG TENGAH\"],\n [1112050013, 1112050, \"BLANG MAKMUR\"],\n [1112050014, 1112050, \"KUALA TERUBU\"],\n [1112050015, 1112050, \"PASAR KUTA BAHAGIA\"],\n [1112050016, 1112050, \"PANTO CUT\"],\n [1112050017, 1112050, \"KOTA BAHAGIA\"],\n [1112050018, 1112050, \"GELANGGANG GAJAH\"],\n [1112050019, 1112050, \"KRUENG PANTO\"],\n [1112050020, 1112050, \"DRIEN BEURUMBANG\"],\n [1112050021, 1112050, \"RUMOH PANYANG\"],\n [1112060001, 1112060, \"GUNUNG SAMARINDA\"],\n [1112060002, 1112060, \"IE MERAH\"],\n [1112060003, 1112060, \"PANTEE RAKYAT\"],\n [1112060004, 1112060, \"PANTEE CERMIN\"],\n [1112060005, 1112060, \"ALUE JERJAK\"],\n [1112060006, 1112060, \"BLANG DALAM\"],\n [1112060007, 1112060, \"ALUE PEUNAWA\"],\n [1112060008, 1112060, \"SIMPANG GADENG\"],\n [1112060009, 1112060, \"TELADAN JAYA\"],\n [1112060010, 1112060, \"BLANG RAJA\"],\n [1112060011, 1112060, \"RUKOEN DAMEE\"],\n [1112060012, 1112060, \"LHOK GAYO\"],\n [1112060013, 1112060, \"ALUE DAWAH\"],\n [1112060014, 1112060, \"COT SEUMANTOK\"],\n [1113010001, 1113010, \"BENER\"],\n [1113010003, 1113010, \"RIKIT DEKAT\"],\n [1113010004, 1113010, \"ULON TANOH\"],\n [1113010005, 1113010, \"REMA\"],\n [1113010006, 1113010, \"TAMPENG\"],\n [1113010007, 1113010, \"BERANANG\"],\n [1113010008, 1113010, \"KUTA UJUNG\"],\n [1113010014, 1113010, \"CIKE\"],\n [1113010015, 1113010, \"REMA BARU\"],\n [1113010016, 1113010, \"KERUKUNAN KUTA PANJANG\"],\n [1113010017, 1113010, \"TAMPENG MUSARA\"],\n [1113010018, 1113010, \"KONG PALUH\"],\n [1113011001, 1113011, \"PENOSAN\"],\n [1113011002, 1113011, \"PENOSAN SEPAKAT\"],\n [1113011003, 1113011, \"GEGARANG\"],\n [1113011004, 1113011, \"PEPARIK GAIB\"],\n [1113011005, 1113011, \"TINGKEM\"],\n [1113011006, 1113011, \"SEKUELEN\"],\n [1113011007, 1113011, \"AKUL\"],\n [1113011008, 1113011, \"KETUKAH\"],\n [1113011009, 1113011, \"BLANG JERANGO\"],\n [1113011010, 1113011, \"PEPARIK DEKAT\"],\n [1113020002, 1113020, \"PALOK\"],\n [1113020003, 1113020, \"PENGGALANGAN\"],\n [1113020004, 1113020, \"LEMPUH\"],\n [1113020007, 1113020, \"KUTE SERE\"],\n [1113020008, 1113020, \"CEMPA\"],\n [1113020009, 1113020, \"GELE\"],\n [1113020010, 1113020, \"PENAMPAAN\"],\n [1113020011, 1113020, \"PORANG\"],\n [1113020013, 1113020, \"KOTA BLANGKEJEREN\"],\n [1113020014, 1113020, \"KAMPUNG JAWA\"],\n [1113020015, 1113020, \"KUTA LINTANG\"],\n [1113020016, 1113020, \"LEME\"],\n [1113020017, 1113020, \"BUKIT\"],\n [1113020018, 1113020, \"DURIN\"],\n [1113020019, 1113020, \"BACANG\"],\n [1113020025, 1113020, \"AGUSEN\"],\n [1113020026, 1113020, \"PENAMPAAN UKEN\"],\n [1113020028, 1113020, \"BUSTANUSSALAM\"],\n [1113020029, 1113020, \"SEPANG\"],\n [1113020030, 1113020, \"RAK LUNUNG\"],\n [1113020031, 1113020, \"SENTANG\"],\n [1113021001, 1113021, \"MARPUNGE\"],\n [1113021002, 1113021, \"RAMUNG MUSARA\"],\n [1113021003, 1113021, \"MELOAK SEPAKAT\"],\n [1113021004, 1113021, \"GUMPANG PEKAN\"],\n [1113021005, 1113021, \"PINTU GAYO\"],\n [1113021006, 1113021, \"JERET ONOM\"],\n [1113021007, 1113021, \"KUTE LENGAT SEPAKAT\"],\n [1113021008, 1113021, \"PUNGKE JAYA\"],\n [1113021009, 1113021, \"SINGAH MULE\"],\n [1113021010, 1113021, \"MELOAK AIH ILANG\"],\n [1113021011, 1113021, \"UNING PUNE\"],\n [1113021012, 1113021, \"PUTRI BETUNG\"],\n [1113021013, 1113021, \"GUMPANG LEMPUH\"],\n [1113022001, 1113022, \"SANGIR\"],\n [1113022002, 1113022, \"PANGLIMA LINTING\"],\n [1113022003, 1113022, \"PANGUR\"],\n [1113022004, 1113022, \"BADAK\"],\n [1113022005, 1113022, \"BLANGTEMUNG\"],\n [1113022006, 1113022, \"KENDAWI\"],\n [1113022007, 1113022, \"PEPALAN\"],\n [1113022008, 1113022, \"UNING SEPAKAT\"],\n [1113022009, 1113022, \"UNING GELUNG\"],\n [1113022010, 1113022, \"REREBE\"],\n [1113022011, 1113022, \"RIGEB\"],\n [1113023001, 1113023, \"BENER BARU\"],\n [1113023002, 1113023, \"KUTE BUKIT\"],\n [1113023003, 1113023, \"BLANG BENGKIK\"],\n [1113023004, 1113023, \"GANTUNG GELUNI\"],\n [1113023005, 1113023, \"KONG BUR\"],\n [1113023006, 1113023, \"UME LAH\"],\n [1113023007, 1113023, \"AKANG SIWAH\"],\n [1113023008, 1113023, \"TETINGI\"],\n [1113023009, 1113023, \"CINTA MAJU\"],\n [1113023011, 1113023, \"PORANG AYU\"],\n [1113023012, 1113023, \"ANAK REJE\"],\n [1113023013, 1113023, \"RAK LINTANG\"],\n [1113030001, 1113030, \"GAJAH\"],\n [1113030002, 1113030, \"URING\"],\n [1113030003, 1113030, \"PINTU RIME\"],\n [1113030004, 1113030, \"EKAN\"],\n [1113030005, 1113030, \"PERTIK\"],\n [1113030006, 1113030, \"PINING\"],\n [1113030007, 1113030, \"PEPALAH\"],\n [1113030008, 1113030, \"PASIR PUTIH\"],\n [1113030009, 1113030, \"LESTEN\"],\n [1113040004, 1113040, \"KUNING\"],\n [1113040005, 1113040, \"PADANG PASIR\"],\n [1113040006, 1113040, \"MANGANG\"],\n [1113040007, 1113040, \"RIKIT GAIB\"],\n [1113040008, 1113040, \"AMPA KOLAK\"],\n [1113040009, 1113040, \"CANE UKEN\"],\n [1113040010, 1113040, \"TUNGEL\"],\n [1113040011, 1113040, \"PINANG RUGUP\"],\n [1113040012, 1113040, \"REMPELAM\"],\n [1113040013, 1113040, \"CANE TOA\"],\n [1113040014, 1113040, \"TUNGEL BARU\"],\n [1113040015, 1113040, \"LUKUP BARU\"],\n [1113040016, 1113040, \"PENOMON JAYA\"],\n [1113041001, 1113041, \"TETINGI\"],\n [1113041002, 1113041, \"REMUKUT\"],\n [1113041003, 1113041, \"SENEREN\"],\n [1113041004, 1113041, \"KENYARAN\"],\n [1113041005, 1113041, \"ATU KAPUR\"],\n [1113041006, 1113041, \"UNING KURNIA\"],\n [1113041007, 1113041, \"SURI MUSARA\"],\n [1113041008, 1113041, \"CANE BARU\"],\n [1113041009, 1113041, \"AIH SELAH\"],\n [1113050001, 1113050, \"BUKUT\"],\n [1113050002, 1113050, \"SOYO\"],\n [1113050003, 1113050, \"KUTA SANGE\"],\n [1113050004, 1113050, \"RUMPI\"],\n [1113050005, 1113050, \"REMPELAM JABO\"],\n [1113050006, 1113050, \"PADANG\"],\n [1113050007, 1113050, \"TERANGUN\"],\n [1113050008, 1113050, \"REMPELAM PINANG\"],\n [1113050012, 1113050, \"TERLIS\"],\n [1113050013, 1113050, \"BERHUT\"],\n [1113050015, 1113050, \"KUTE REJE\"],\n [1113050016, 1113050, \"GEWAT\"],\n [1113050017, 1113050, \"PANTAN LUES\"],\n [1113050018, 1113050, \"MAKMUR JAYA\"],\n [1113050019, 1113050, \"PERSADA TONGRA\"],\n [1113050020, 1113050, \"BLANG KUNCIR\"],\n [1113050021, 1113050, \"TELEGE JERNIH\"],\n [1113050022, 1113050, \"REJE PUDUNG\"],\n [1113050023, 1113050, \"MELELANG\"],\n [1113050024, 1113050, \"LESTARI\"],\n [1113050025, 1113050, \"BLANG KALA\"],\n [1113050026, 1113050, \"GARUT\"],\n [1113050027, 1113050, \"GAWAR BELANGI\"],\n [1113050028, 1113050, \"RIME RAYA\"],\n [1113050029, 1113050, \"BLANG KEDE\"],\n [1113051001, 1113051, \"PASIR\"],\n [1113051002, 1113051, \"REREBE\"],\n [1113051003, 1113051, \"SETUL\"],\n [1113051004, 1113051, \"PERLAK\"],\n [1113051005, 1113051, \"PANTAN KELA\"],\n [1113051006, 1113051, \"PAYA KUMER\"],\n [1113051007, 1113051, \"UYEM BERIRING\"],\n [1113051008, 1113051, \"PULO GELIME\"],\n [1113051009, 1113051, \"BUNTUL MUSARA\"],\n [1113051010, 1113051, \"KUALA JERNIH\"],\n [1114010001, 1114010, \"KALOY\"],\n [1114010002, 1114010, \"RONGOH\"],\n [1114010003, 1114010, \"ALUR TANI I\"],\n [1114010004, 1114010, \"ALUR TANI II\"],\n [1114010005, 1114010, \"BANDAR KHALIFAH\"],\n [1114010006, 1114010, \"PERK PULAU TIGA\"],\n [1114010007, 1114010, \"BANDAR SETIA\"],\n [1114010008, 1114010, \"HARUM SARI\"],\n [1114010009, 1114010, \"WONO SARI\"],\n [1114011001, 1114011, \"JAMBO RAMBONG\"],\n [1114011002, 1114011, \"BLANG KANDIS\"],\n [1114011003, 1114011, \"PERK ALUR JAMBU\"],\n [1114011004, 1114011, \"ARAS SEMBILAN\"],\n [1114011005, 1114011, \"ALUR JAMBU\"],\n [1114011006, 1114011, \"BATANG ARA\"],\n [1114011007, 1114011, \"PERUPUK\"],\n [1114011008, 1114011, \"SERBA\"],\n [1114011009, 1114011, \"SUNTING\"],\n [1114011010, 1114011, \"RANTAU BINTANG\"],\n [1114011011, 1114011, \"BABO\"],\n [1114011012, 1114011, \"PANTAI CEMPA\"],\n [1114011013, 1114011, \"PENGIDAM\"],\n [1114011014, 1114011, \"BENGKELANG\"],\n [1114011015, 1114011, \"BATU BEDULANG\"],\n [1114020005, 1114020, \"KEBUN SUNGAI LIPUT\"],\n [1114020007, 1114020, \"ALUR SELEBU\"],\n [1114020008, 1114020, \"SUKA MAKMUR\"],\n [1114020009, 1114020, \"SEUMADAM\"],\n [1114020010, 1114020, \"KARANGJADI\"],\n [1114020011, 1114020, \"KAMPUNG JAWA\"],\n [1114020012, 1114020, \"SIDODADI\"],\n [1114020013, 1114020, \"PURWODADI\"],\n [1114020014, 1114020, \"TANJUNG GENTENG\"],\n [1114020015, 1114020, \"GERENGGAM\"],\n [1114020016, 1114020, \"SIMPANG KANAN\"],\n [1114020017, 1114020, \"TANJUNG MANCANG\"],\n [1114020018, 1114020, \"PANGKALAN\"],\n [1114020019, 1114020, \"SUNGAI LIPUT\"],\n [1114020020, 1114020, \"BUKIT RATA\"],\n [1114021001, 1114021, \"SELAMAT\"],\n [1114021002, 1114021, \"TENGGULUN\"],\n [1114021003, 1114021, \"RIMBA SAWANG\"],\n [1114021004, 1114021, \"TEBING TINGGI\"],\n [1114021006, 1114021, \"SIMPANG KIRI\"],\n [1114030001, 1114030, \"INGIN JAYA\"],\n [1114030002, 1114030, \"PAYA BEDI\"],\n [1114030003, 1114030, \"LANDUH\"],\n [1114030004, 1114030, \"BENUA RAJA\"],\n [1114030005, 1114030, \"KAMPUNG DURIAN\"],\n [1114030006, 1114030, \"SUKAJADI\"],\n [1114030007, 1114030, \"SUKA RAHMAT\"],\n [1114030008, 1114030, \"SUKA MULIA\"],\n [1114030009, 1114030, \"SUKA RAKYAT\"],\n [1114030010, 1114030, \"JAMUR LABU\"],\n [1114030011, 1114030, \"JAMUR JELATANG\"],\n [1114030012, 1114030, \"KAMP PERTAMINA\"],\n [1114030013, 1114030, \"RANTAU PAUH\"],\n [1114030014, 1114030, \"ALUR CUCUR\"],\n [1114030015, 1114030, \"KEBUN RANTAU\"],\n [1114030016, 1114030, \"ALUR MANIS\"],\n [1114040001, 1114040, \"SRIWIJAYA\"],\n [1114040002, 1114040, \"KOTA KUALA SIMPANG\"],\n [1114040003, 1114040, \"PERDAMAIAN\"],\n [1114040004, 1114040, \"BUKIT TEMPURUNG\"],\n [1114040005, 1114040, \"KOTA LINTANG\"],\n [1114050001, 1114050, \"SUKARAMAI II\"],\n [1114050002, 1114050, \"SUKARAMAI I\"],\n [1114050003, 1114050, \"PERK GEDUNG BIARA\"],\n [1114050004, 1114050, \"AIR MASIN\"],\n [1114050005, 1114050, \"SIDODADI\"],\n [1114050006, 1114050, \"TUALANG\"],\n [1114050007, 1114050, \"MATANG SENTANG\"],\n [1114050008, 1114050, \"ALUR ALIM\"],\n [1114050009, 1114050, \"LUBUK DAMAR\"],\n [1114050010, 1114050, \"SEI KURUK III\"],\n [1114050011, 1114050, \"SEI KURUK II\"],\n [1114050012, 1114050, \"GEDUNG BIARA\"],\n [1114050013, 1114050, \"PERK SEURUWAY\"],\n [1114050014, 1114050, \"PADANG LANGGIS\"],\n [1114050015, 1114050, \"PANTAI BALAI\"],\n [1114050016, 1114050, \"BINJAI\"],\n [1114050017, 1114050, \"TANGSI LAMA\"],\n [1114050018, 1114050, \"PEUKAN SEURUWAY\"],\n [1114050019, 1114050, \"MUKA SUNGAI KURUK\"],\n [1114050020, 1114050, \"SUNGAI KURUK I\"],\n [1114050021, 1114050, \"PAYA UDANG\"],\n [1114050022, 1114050, \"GELUNG\"],\n [1114050023, 1114050, \"KAMPUNG BARU\"],\n [1114050024, 1114050, \"KW PUSUNG KAPAL\"],\n [1114060001, 1114060, \"UPAH\"],\n [1114060002, 1114060, \"PERKEBUNAN UPAH\"],\n [1114060003, 1114060, \"MATANG TEUPAH\"],\n [1114060004, 1114060, \"SEUNEUBOK DALAM UPAH\"],\n [1114060006, 1114060, \"SUKAMULIA BD /S.IYU\"],\n [1114060009, 1114060, \"KEBON SUNGAI IYU\"],\n [1114060010, 1114060, \"MARLEMPANG\"],\n [1114060011, 1114060, \"BALAI\"],\n [1114060012, 1114060, \"LAMBUNG BLANG\"],\n [1114060013, 1114060, \"LUBUK BATIL\"],\n [1114060014, 1114060, \"TANJUNG PARET\"],\n [1114060015, 1114060, \"SEUNEUBOK DALAM MESJID\"],\n [1114060016, 1114060, \"RANTAU PAKAM\"],\n [1114060017, 1114060, \"TUMPOK TEUNGAH\"],\n [1114060018, 1114060, \"TANJUNG\"],\n [1114060019, 1114060, \"TANJUNG MULIA\"],\n [1114060020, 1114060, \"TELUK KEMIRI\"],\n [1114060021, 1114060, \"MESJID BDH\"],\n [1114060022, 1114060, \"TELUK KEPAYANG\"],\n [1114060023, 1114060, \"TELUK HALBAN\"],\n [1114060024, 1114060, \"RAJA\"],\n [1114060025, 1114060, \"CINTA RAJA\"],\n [1114060026, 1114060, \"TANJUNG BINJAI\"],\n [1114060027, 1114060, \"KUALA PEUNAGA\"],\n [1114060028, 1114060, \"KUALA GEUNTING\"],\n [1114060029, 1114060, \"BANDAR BARU\"],\n [1114060030, 1114060, \"MESJID S.IYU\"],\n [1114060031, 1114060, \"ALUR CANTIK\"],\n [1114060032, 1114060, \"TANJUNG LIPAT I\"],\n [1114060034, 1114060, \"BANDAR KHALIFAH\"],\n [1114060035, 1114060, \"SEUNEUBOK ACEH\"],\n [1114060036, 1114060, \"TANJUNG LIPAT II\"],\n [1114060037, 1114060, \"TENGKU TINGGI\"],\n [1114061001, 1114061, \"SUKAJADI\"],\n [1114061002, 1114061, \"SUKA DAMAI\"],\n [1114061003, 1114061, \"PAYA RAHAT\"],\n [1114061004, 1114061, \"SUKA MULIA/UPAH HULU\"],\n [1114061005, 1114061, \"MATANG SEUPING\"],\n [1114061006, 1114061, \"GAMPONG BESAR\"],\n [1114061007, 1114061, \"TELAGA MEUKU II\"],\n [1114061008, 1114061, \"TELAGA MEUKU I\"],\n [1114061009, 1114061, \"TANJUNG KERAMAT\"],\n [1114061010, 1114061, \"ALUR NUNANG\"],\n [1114070013, 1114070, \"TANJUNG KARANG\"],\n [1114070015, 1114070, \"MENANG GINI\"],\n [1114070016, 1114070, \"KESEHATAN\"],\n [1114070017, 1114070, \"GAMPONG SUKAJADI\"],\n [1114070018, 1114070, \"DALAM\"],\n [1114070019, 1114070, \"GAMPONG BUNDAR\"],\n [1114070021, 1114070, \"KEBUN TANAH TERBAN\"],\n [1114070022, 1114070, \"TANAH TERBAN\"],\n [1114070023, 1114070, \"GAMPONG AIR TENANG\"],\n [1114070024, 1114070, \"GAMPONG JOHAR\"],\n [1114070025, 1114070, \"GAMPONG TUPAH\"],\n [1114070026, 1114070, \"BANAI\"],\n [1114070027, 1114070, \"RANTAU PANJANG\"],\n [1114070028, 1114070, \"PAHLAWAN\"],\n [1114070029, 1114070, \"MEDANG ARA\"],\n [1114070030, 1114070, \"KEBUN MEDANG ARA\"],\n [1114070031, 1114070, \"KEBUN SELELEH\"],\n [1114070032, 1114070, \"ALUR SELALAS\"],\n [1114070033, 1114070, \"ALUR BAUNG\"],\n [1114070034, 1114070, \"PAYAMETA\"],\n [1114070035, 1114070, \"ALUR BEMBAN\"],\n [1114070036, 1114070, \"TANJUNG SEUMANTOH\"],\n [1114070037, 1114070, \"KEBUN TANJUNG SEUMANTOH\"],\n [1114070038, 1114070, \"PAYA TAMPAH\"],\n [1114070039, 1114070, \"ALUR LHOK\"],\n [1114070040, 1114070, \"BUKET PANJANG\"],\n [1114070041, 1114070, \"SUKAJADI PAYA BUJUK\"],\n [1114070042, 1114070, \"SIMPANG EMPAT\"],\n [1114070043, 1114070, \"PAYA AWE\"],\n [1114070044, 1114070, \"PAYA KULBI\"],\n [1114070045, 1114070, \"BUKET KERANJI\"],\n [1114071001, 1114071, \"BALING KARANG\"],\n [1114071002, 1114071, \"SUKA MAKMUR\"],\n [1114071003, 1114071, \"SULUM\"],\n [1114071004, 1114071, \"JUAR\"],\n [1114071005, 1114071, \"PEMATANG DURIAN\"],\n [1114071006, 1114071, \"SEKUMUR\"],\n [1114071007, 1114071, \"TANJUNG GELUMPANG\"],\n [1114071008, 1114071, \"LUBUK SIDUP\"],\n [1114071009, 1114071, \"SEKERAK KANAN\"],\n [1114071010, 1114071, \"BANDAR MAHLIGAI\"],\n [1114071011, 1114071, \"SEKERAK KIRI\"],\n [1114071012, 1114071, \"PANTAI PERLAK\"],\n [1114071013, 1114071, \"PANTAI TINJAU\"],\n [1114071014, 1114071, \"KEBUN BATANG ARA\"],\n [1114080001, 1114080, \"KRUENG SIKAJANG\"],\n [1114080002, 1114080, \"SEUNEUBOK PUNTI\"],\n [1114080003, 1114080, \"PAYA KETENGGAR\"],\n [1114080004, 1114080, \"BUKET PANJANG II\"],\n [1114080005, 1114080, \"BUKET PAYA\"],\n [1114080006, 1114080, \"BUKIT PANJANG I\"],\n [1114080007, 1114080, \"SEUNEUBOK BARU\"],\n [1114080008, 1114080, \"BENTENG ANYER\"],\n [1114080009, 1114080, \"MATANG ARA JAWA\"],\n [1114080010, 1114080, \"MATANG ARA ACEH\"],\n [1114080011, 1114080, \"LHOK MEDANG ARA\"],\n [1114080012, 1114080, \"IE BINTAH\"],\n [1114080013, 1114080, \"TUALANG BARU\"],\n [1114080014, 1114080, \"PAHLAWAN\"],\n [1114080015, 1114080, \"GASEH SAYANG\"],\n [1114080016, 1114080, \"SAMPAIMAH\"],\n [1114080017, 1114080, \"GELANGGANG MERAK\"],\n [1114080018, 1114080, \"MATANG CINCIN\"],\n [1114080019, 1114080, \"ALUE IE PUTEH\"],\n [1114080020, 1114080, \"LUENG MANYO\"],\n [1114080021, 1114080, \"RAJA TUHA\"],\n [1114080022, 1114080, \"SEUNEUBOK PIDIE\"],\n [1114080023, 1114080, \"GEUDHAM\"],\n [1114080024, 1114080, \"ALUE SENTANG\"],\n [1114080025, 1114080, \"UJONG TANJONG\"],\n [1114080026, 1114080, \"TANJUNG NERACA\"],\n [1114080027, 1114080, \"DAGANG SETIA\"],\n [1114080028, 1114080, \"SIMPANG LHEE\"],\n [1114080029, 1114080, \"SEUNEUBOK CANTEK\"],\n [1114080030, 1114080, \"MESJID\"],\n [1114080031, 1114080, \"MEUNASAH PAYA\"],\n [1114080032, 1114080, \"MEURANDEH\"],\n [1114080033, 1114080, \"BANDUNG JAYA\"],\n [1114080034, 1114080, \"PANDAN SARI\"],\n [1114080035, 1114080, \"PAYA BARU\"],\n [1114080036, 1114080, \"SAPTA MARGA\"],\n [1115010003, 1115010, \"KUALA SEMANYAM\"],\n [1115010005, 1115010, \"BLANG LUAH\"],\n [1115010007, 1115010, \"PULO KRUET\"],\n [1115010009, 1115010, \"ALUE BATEUNG BROOK\"],\n [1115010010, 1115010, \"LADANG BARO\"],\n [1115010011, 1115010, \"ALUE KUYUN\"],\n [1115010013, 1115010, \"ALUE RAYA\"],\n [1115010014, 1115010, \"SUKARAMAI\"],\n [1115010015, 1115010, \"UJONG TANJONG\"],\n [1115010016, 1115010, \"ALUE JAMPAK\"],\n [1115010017, 1115010, \"SERBA JADI\"],\n [1115010018, 1115010, \"SERBA GUNA\"],\n [1115010022, 1115010, \"KAYEE UNOU\"],\n [1115010023, 1115010, \"GEULANGGANG GAJAH\"],\n [1115010024, 1115010, \"SIDOJADI\"],\n [1115010025, 1115010, \"SUKAMULIA\"],\n [1115010026, 1115010, \"SIMPANG DUA\"],\n [1115010027, 1115010, \"PANTON BAYU\"],\n [1115010028, 1115010, \"SIMPANG DELI KILANG\"],\n [1115010029, 1115010, \"SIMPANG DELI KAMPONG\"],\n [1115010030, 1115010, \"PULO IE\"],\n [1115010031, 1115010, \"PULO TENGAH\"],\n [1115010032, 1115010, \"KARANG ANYAR\"],\n [1115010033, 1115010, \"SUKAJADI\"],\n [1115010034, 1115010, \"ALUE BILIE\"],\n [1115010035, 1115010, \"BLANG BARO\"],\n [1115010036, 1115010, \"KUTA TRIENG\"],\n [1115010037, 1115010, \"LAMIE\"],\n [1115010040, 1115010, \"UJONG LAMIE\"],\n [1115010041, 1115010, \"TUWI BUYA\"],\n [1115010042, 1115010, \"SUKARAJA\"],\n [1115010043, 1115010, \"GUNUNG CUT\"],\n [1115010044, 1115010, \"SUAK PALEMBANG\"],\n [1115010045, 1115010, \"ALUE GEUTAH\"],\n [1115010046, 1115010, \"ALUE WAKIE\"],\n [1115010047, 1115010, \"KRUENG ALEM\"],\n [1115010048, 1115010, \"ALUE RAMBOT\"],\n [1115010049, 1115010, \"KRUENG SEUMAYAM\"],\n [1115010050, 1115010, \"MAKARTI JAYA\"],\n [1115010051, 1115010, \"SUMBER MAKMUR\"],\n [1115011001, 1115011, \"KUALA TERIPA\"],\n [1115011002, 1115011, \"DRIEN TUJOH\"],\n [1115011003, 1115011, \"LUENG KEUBEU JAGAT\"],\n [1115011004, 1115011, \"KABU\"],\n [1115011005, 1115011, \"BABAH LUENG\"],\n [1115011006, 1115011, \"PASI KEUBEU DOM\"],\n [1115011007, 1115011, \"NEUBOK YEE PK\"],\n [1115011008, 1115011, \"NEUBOK YEE PP\"],\n [1115011009, 1115011, \"MON DUA\"],\n [1115011010, 1115011, \"PANTON PANGE\"],\n [1115011011, 1115011, \"UJONG KRUENG\"],\n [1115020017, 1115020, \"UJONG FATIHAH\"],\n [1115020018, 1115020, \"BLANG TEUNGOH\"],\n [1115020019, 1115020, \"COT KUMBANG\"],\n [1115020020, 1115020, \"BLANG BINTANG\"],\n [1115020021, 1115020, \"UJONG PADANG\"],\n [1115020022, 1115020, \"JOKJA\"],\n [1115020023, 1115020, \"LAWA BATU\"],\n [1115020026, 1115020, \"PURWOREJO\"],\n [1115020038, 1115020, \"PULO IE\"],\n [1115020039, 1115020, \"UJONG SIKUNENG\"],\n [1115020040, 1115020, \"BLANG BARO\"],\n [1115020041, 1115020, \"BLANG MUKO\"],\n [1115020042, 1115020, \"SIMPANG PEUT\"],\n [1115020043, 1115020, \"KUTA MAKMUR\"],\n [1115020044, 1115020, \"GUNONG REUBO\"],\n [1115020045, 1115020, \"UJONG PASI\"],\n [1115020046, 1115020, \"ALUE IE MAMEH\"],\n [1115021001, 1115021, \"SUAK PUNTONG\"],\n [1115021002, 1115021, \"GAMPONG LHOK\"],\n [1115021003, 1115021, \"KUALA BARO\"],\n [1115021004, 1115021, \"PADANG RUBEK\"],\n [1115021005, 1115021, \"PULO\"],\n [1115021006, 1115021, \"LANGKAK\"],\n [1115021007, 1115021, \"KUALA TUHA\"],\n [1115021008, 1115021, \"KUBANG GAJAH\"],\n [1115021009, 1115021, \"KUALA TRANG\"],\n [1115021010, 1115021, \"COT RAMBONG\"],\n [1115021011, 1115021, \"PADANG PANYANG\"],\n [1115021012, 1115021, \"ARONGAN\"],\n [1115021013, 1115021, \"JATIREJO\"],\n [1115021014, 1115021, \"PURWODADI\"],\n [1115021015, 1115021, \"LUENG T BEN\"],\n [1115021016, 1115021, \"PURWOSARI\"],\n [1115022001, 1115022, \"ALUE BATA\"],\n [1115022002, 1115022, \"GUNONG SAPEK\"],\n [1115022003, 1115022, \"SARAH MANTOK\"],\n [1115022004, 1115022, \"PASI LUAH\"],\n [1115022005, 1115022, \"GUNONG GEULUGO\"],\n [1115022006, 1115022, \"GUNONG KUPOK\"],\n [1115022007, 1115022, \"GUNONG PUNGKIE\"],\n [1115022008, 1115022, \"ALUE SIRON\"],\n [1115022009, 1115022, \"COT MU\"],\n [1115022010, 1115022, \"BABAH ROT\"],\n [1115022011, 1115022, \"BABAH DUA\"],\n [1115022012, 1115022, \"BATU RAJA\"],\n [1115022013, 1115022, \"SIMPANG JAYA\"],\n [1115022014, 1115022, \"SUMBER DAYA\"],\n [1115022015, 1115022, \"RANTAU SELAMAT\"],\n [1115022016, 1115022, \"ALUE SEPENG\"],\n [1115022017, 1115022, \"KRUENG ITAM\"],\n [1115022018, 1115022, \"ALUE GAJAH\"],\n [1115022019, 1115022, \"ALUE LABU\"],\n [1115022020, 1115022, \"GAPA GARU\"],\n [1115022021, 1115022, \"KUALA TADU\"],\n [1115022022, 1115022, \"COT ME\"],\n [1115030001, 1115030, \"KUTA JEUMPA\"],\n [1115030002, 1115030, \"BLANG DALAM\"],\n [1115030003, 1115030, \"LHOK SEUMOT\"],\n [1115030004, 1115030, \"BUMI SARI\"],\n [1115030005, 1115030, \"BLANG BARO RAMBONG\"],\n [1115030006, 1115030, \"MEUNASAH KRUENG\"],\n [1115030007, 1115030, \"KEUDE SEUMOT\"],\n [1115030008, 1115030, \"BLANG SEUMOT\"],\n [1115030009, 1115030, \"BABAH KRUENG\"],\n [1115030010, 1115030, \"MEUNASAH PANTE\"],\n [1115030011, 1115030, \"BLANG BARO PR\"],\n [1115030012, 1115030, \"GUNUNG NAGAN\"],\n [1115030013, 1115030, \"BLANG MESJID\"],\n [1115030014, 1115030, \"KULAM JEURNEH\"],\n [1115030015, 1115030, \"MEUNASAH TEUNGOH\"],\n [1115030016, 1115030, \"MEUNASAH DAYAH\"],\n [1115030017, 1115030, \"UJONG BLANG\"],\n [1115030018, 1115030, \"KRUENG CUT\"],\n [1115030019, 1115030, \"BLANG NEUANG\"],\n [1115030020, 1115030, \"BLANG SEUNONG\"],\n [1115030021, 1115030, \"TUWI BUNTA\"],\n [1115030022, 1115030, \"BLANG LEUMAK\"],\n [1115030023, 1115030, \"PANTON BAYAM\"],\n [1115030028, 1115030, \"PANTE ARA\"],\n [1115031001, 1115031, \"BLANG MEURANDEH\"],\n [1115031002, 1115031, \"BLANG PUUK\"],\n [1115031003, 1115031, \"KUTA TEUNGOH\"],\n [1115031004, 1115031, \"BABAH SUAK\"],\n [1115040014, 1115040, \"BLANG MURONG\"],\n [1115040015, 1115040, \"LHOK PADANG\"],\n [1115040016, 1115040, \"PAYA UNDAN\"],\n [1115040021, 1115040, \"BLANG PUUK KULU\"],\n [1115040022, 1115040, \"KULU\"],\n [1115040023, 1115040, \"KUTA ACEH\"],\n [1115040024, 1115040, \"KRUENG CEUKOU\"],\n [1115040025, 1115040, \"PAYA UDEUNG\"],\n [1115040026, 1115040, \"KUTA PAYA\"],\n [1115040027, 1115040, \"RAMBONG CUT\"],\n [1115040028, 1115040, \"RAMBONG RAYEUK\"],\n [1115040031, 1115040, \"BANTAN\"],\n [1115040032, 1115040, \"BLANG PUUK NIGAN\"],\n [1115040033, 1115040, \"KRUENG CEH\"],\n [1115040034, 1115040, \"NIGAN\"],\n [1115040035, 1115040, \"GAMPONG COT\"],\n [1115040036, 1115040, \"COT LHE LHE\"],\n [1115040037, 1115040, \"KUTA BARO JEURAM\"],\n [1115040038, 1115040, \"JEURAM\"],\n [1115040039, 1115040, \"LATONG\"],\n [1115040040, 1115040, \"ALUE BULOH\"],\n [1115040041, 1115040, \"KRUENG MANGKOM\"],\n [1115040042, 1115040, \"PANTE CERMIN\"],\n [1115040043, 1115040, \"PADANG\"],\n [1115040044, 1115040, \"LHOK PAROM\"],\n [1115040045, 1115040, \"BLANG PATEUK\"],\n [1115040046, 1115040, \"COT KUMBANG\"],\n [1115040047, 1115040, \"KUTA KUMBANG\"],\n [1115040048, 1115040, \"SAPEK\"],\n [1115040049, 1115040, \"KUTA SAYEH\"],\n [1115040050, 1115040, \"PAROM\"],\n [1115040051, 1115040, \"BLANG BARO\"],\n [1115040052, 1115040, \"PEUREULAK\"],\n [1115040059, 1115040, \"ALUE THO\"],\n [1115040060, 1115040, \"ALUE DODOK\"],\n [1115041001, 1115041, \"LUENG BARO\"],\n [1115041002, 1115041, \"ALUE KAMBUEK\"],\n [1115041003, 1115041, \"KUTA PADANG\"],\n [1115041004, 1115041, \"SUAK BILI\"],\n [1115041005, 1115041, \"MACAH\"],\n [1115041006, 1115041, \"SEUMAMBEK\"],\n [1115041007, 1115041, \"COT KUTA\"],\n [1115041008, 1115041, \"KABU BLANG SAPEK\"],\n [1115041009, 1115041, \"COT PERADI\"],\n [1115041010, 1115041, \"BLANG SAPEK\"],\n [1115041011, 1115041, \"LHOK BEUTONG\"],\n [1115041012, 1115041, \"KAMPONG TEUNGOH\"],\n [1115041013, 1115041, \"LHOK RAMEUN\"],\n [1115041014, 1115041, \"BLANG MULIENG\"],\n [1115041015, 1115041, \"KRAK TAMPAI\"],\n [1115041016, 1115041, \"MEUREUBO\"],\n [1115041017, 1115041, \"KUTA BARO BM\"],\n [1115041018, 1115041, \"ALUE PEUSAJA\"],\n [1115041019, 1115041, \"ALUE GAJAH\"],\n [1115050001, 1115050, \"BLANG LANGO\"],\n [1115050002, 1115050, \"TUWI MEULEUSONG\"],\n [1115050003, 1115050, \"BLANG GEUDONG\"],\n [1115050004, 1115050, \"SAWANG MANE\"],\n [1115050005, 1115050, \"LHOK PANGE\"],\n [1115050006, 1115050, \"KEUDE NEULOP\"],\n [1115050007, 1115050, \"MON BATEUNG\"],\n [1115050008, 1115050, \"IE BEUDOH\"],\n [1115050009, 1115050, \"SUAK PERBONG\"],\n [1115050010, 1115050, \"BLANG ARA KMP.\"],\n [1115050011, 1115050, \"KRUENG KULU\"],\n [1115050012, 1115050, \"COT PUNTI\"],\n [1115050013, 1115050, \"KEUDE BLANG ARA\"],\n [1115050014, 1115050, \"PEULEUKUNG\"],\n [1115050015, 1115050, \"SAPENG\"],\n [1115050016, 1115050, \"MEUGAT MEUH\"],\n [1115050017, 1115050, \"BLANG PANYANG\"],\n [1115050018, 1115050, \"UTEUN PULO\"],\n [1115050019, 1115050, \"KEUDE LINTEUNG\"],\n [1115050020, 1115050, \"PAYA\"],\n [1115050021, 1115050, \"COT TEUKU DEK\"],\n [1115050022, 1115050, \"LHOK MESJID\"],\n [1115050023, 1115050, \"BLANG PREH\"],\n [1115050024, 1115050, \"BLANG BAYU\"],\n [1115050025, 1115050, \"MEURANDEH SUAK\"],\n [1115050026, 1115050, \"COT DIRUI\"],\n [1115050027, 1115050, \"COT MANYANG\"],\n [1115050028, 1115050, \"KABU BAROH\"],\n [1115050029, 1115050, \"KABU TUNONG\"],\n [1115050030, 1115050, \"COT GUD\"],\n [1115050031, 1115050, \"PULO TEUNGOH\"],\n [1115050032, 1115050, \"KILA\"],\n [1115050033, 1115050, \"KANDEH\"],\n [1115050034, 1115050, \"BLANG TENGKU\"],\n [1116010001, 1116010, \"LUENG GAYO\"],\n [1116010002, 1116010, \"COT TRAP\"],\n [1116010003, 1116010, \"PASI GEULIMA\"],\n [1116010004, 1116010, \"TEUPIN ARA\"],\n [1116010005, 1116010, \"PAYA BARO\"],\n [1116010006, 1116010, \"PASI TULAK BALA\"],\n [1116010007, 1116010, \"PANTON\"],\n [1116010008, 1116010, \"GAMPONG BARO\"],\n [1116010009, 1116010, \"PASI PAWANG\"],\n [1116010010, 1116010, \"RAMBONG PAYONG\"],\n [1116010011, 1116010, \"PADANG KLENG\"],\n [1116010012, 1116010, \"KEUDE TEUNOM\"],\n [1116010013, 1116010, \"ALUE AMBANG\"],\n [1116010014, 1116010, \"BATEE-ROO\"],\n [1116010015, 1116010, \"TANOH MANYANG\"],\n [1116010016, 1116010, \"TANOH ANOU\"],\n [1116010017, 1116010, \"BLANG BARO\"],\n [1116010019, 1116010, \"PASI TIMON\"],\n [1116010025, 1116010, \"SEUMIRA\"],\n [1116010026, 1116010, \"SEUNEUBOK PADANG\"],\n [1116010046, 1116010, \"KUBU\"],\n [1116010051, 1116010, \"ALUE MEURAKSA\"],\n [1116011001, 1116011, \"PULO TINGGI\"],\n [1116011002, 1116011, \"ALUE KRUENG\"],\n [1116011003, 1116011, \"PASI TEUBEE\"],\n [1116011004, 1116011, \"TIM PLEUNG\"],\n [1116011005, 1116011, \"KRUENG BEUKAH\"],\n [1116011006, 1116011, \"TUWI KAREUNG I\"],\n [1116011007, 1116011, \"LHOK GUCI\"],\n [1116011008, 1116011, \"BINTAH\"],\n [1116011009, 1116011, \"TUWI PERYA\"],\n [1116011010, 1116011, \"ALUE PUNTI\"],\n [1116011011, 1116011, \"CEURACEU\"],\n [1116011012, 1116011, \"ALUE JANG\"],\n [1116011013, 1116011, \"SARAH RAYA\"],\n [1116011014, 1116011, \"BUKET KEMUNENG\"],\n [1116020001, 1116020, \"KEUDE PANGA\"],\n [1116020002, 1116020, \"TUWI KAREUNG PANGA\"],\n [1116020003, 1116020, \"KUTA TUHA\"],\n [1116020004, 1116020, \"LADANG BARO\"],\n [1116020005, 1116020, \"BABAH CEUPAN\"],\n [1116020006, 1116020, \"GAMPONG HARAPAN\"],\n [1116020007, 1116020, \"TUWI KAYEE\"],\n [1116020008, 1116020, \"PANTON KABU\"],\n [1116020009, 1116020, \"ALUE TEUNGOH\"],\n [1116020010, 1116020, \"PANTON KRUENG\"],\n [1116020011, 1116020, \"ALUE PANDE\"],\n [1116020012, 1116020, \"BATEE MEUTUDONG\"],\n [1116020013, 1116020, \"GLEPUTOH\"],\n [1116020014, 1116020, \"ALUE RAYA\"],\n [1116020015, 1116020, \"ALUE ABET\"],\n [1116020016, 1116020, \"GUNONG MANTOK\"],\n [1116020017, 1116020, \"TUWI EMPEUK\"],\n [1116020018, 1116020, \"GUNONG MEULINTEUNG\"],\n [1116020019, 1116020, \"GUNONG BULOH\"],\n [1116020020, 1116020, \"ALUE PIET\"],\n [1116030001, 1116030, \"BAHAGIA\"],\n [1116030002, 1116030, \"SENTOSA\"],\n [1116030003, 1116030, \"DAYAH BARO\"],\n [1116030004, 1116030, \"KAMPUNG BLANG\"],\n [1116030005, 1116030, \"PANTON MAKMUR\"],\n [1116030006, 1116030, \"KEUTAPANG\"],\n [1116030007, 1116030, \"PADANG DATAR\"],\n [1116030008, 1116030, \"MON MATA\"],\n [1116030009, 1116030, \"KEUDE KRUENG SABEE\"],\n [1116030010, 1116030, \"KABONG\"],\n [1116030011, 1116030, \"DATAR LUAS\"],\n [1116030012, 1116030, \"PAYA SEUMANTOK\"],\n [1116030013, 1116030, \"RANTO PANYANG\"],\n [1116030014, 1116030, \"CUREK\"],\n [1116030015, 1116030, \"ALUE THO\"],\n [1116030016, 1116030, \"BUNTHA\"],\n [1116030017, 1116030, \"PANGGONG\"],\n [1116040001, 1116040, \"SAWANG\"],\n [1116040002, 1116040, \"LHOK GEULUMPANG\"],\n [1116040003, 1116040, \"LHOK TIMON\"],\n [1116040004, 1116040, \"GAMPONG BARO\"],\n [1116040005, 1116040, \"LHOK BUYA\"],\n [1116040006, 1116040, \"LHOK BOT\"],\n [1116040007, 1116040, \"PADANG\"],\n [1116040008, 1116040, \"GUNONG MEUNASAH\"],\n [1116040009, 1116040, \"PAYA LAUT\"],\n [1116040010, 1116040, \"SAPEK\"],\n [1116040011, 1116040, \"GAMPONG BAROH\"],\n [1116040012, 1116040, \"GLE SUBAK\"],\n [1116040013, 1116040, \"PANTE KUYUN\"],\n [1116050004, 1116050, \"KUALA BAKONG\"],\n [1116050009, 1116050, \"COT LANGSAT\"],\n [1116050010, 1116050, \"MATAIE\"],\n [1116050011, 1116050, \"JEUMPHEUK\"],\n [1116050012, 1116050, \"BABAH NIPAH\"],\n [1116050013, 1116050, \"KUALA LIGAN\"],\n [1116050014, 1116050, \"SEUMANTOK\"],\n [1116050027, 1116050, \"BLANG LUAH\"],\n [1116050028, 1116050, \"COT PUNTI (EX UPT V PATEK)\"],\n [1116050029, 1116050, \"LIGAN\"],\n [1116050030, 1116050, \"LHOK KRUET\"],\n [1116050031, 1116050, \"PULO RAYA\"],\n [1116050032, 1116050, \"KRUENG NO\"],\n [1116050033, 1116050, \"CRAK MONG\"],\n [1116050034, 1116050, \"MEUNASAH KULAM\"],\n [1116050035, 1116050, \"BLANG MONLUNG\"],\n [1116050036, 1116050, \"ALUE GRO\"],\n [1116050037, 1116050, \"IE JEUREUNGEH\"],\n [1116050038, 1116050, \"RANTO SABON\"],\n [1116051001, 1116051, \"PATEK\"],\n [1116051002, 1116051, \"BLANG DALAM\"],\n [1116051003, 1116051, \"GAMPONG BARO P\"],\n [1116051004, 1116051, \"PAJAR\"],\n [1116051005, 1116051, \"REUNTANG\"],\n [1116051006, 1116051, \"COT PANGE\"],\n [1116051007, 1116051, \"ARONGAN\"],\n [1116051008, 1116051, \"KRUENG THO\"],\n [1116051009, 1116051, \"PANTON KRUENG\"],\n [1116051010, 1116051, \"PAYA SANTEUT\"],\n [1116051011, 1116051, \"LAM TEUNGOH\"],\n [1116051012, 1116051, \"UJONG RIMBA\"],\n [1116051013, 1116051, \"GUNUNG CUT\"],\n [1116051014, 1116051, \"SAYEUNG\"],\n [1116051015, 1116051, \"BABAH DUA\"],\n [1116051016, 1116051, \"GAMPONG BARO L\"],\n [1116051017, 1116051, \"ALUE GAJAH\"],\n [1116051018, 1116051, \"MASEN\"],\n [1116051019, 1116051, \"TEUPIN ASAN\"],\n [1116060011, 1116060, \"MEUTARA\"],\n [1116060015, 1116060, \"LHUET\"],\n [1116060016, 1116060, \"LAMME\"],\n [1116060017, 1116060, \"SEUREUBA\"],\n [1116060018, 1116060, \"LEUPE\"],\n [1116060020, 1116060, \"NUSA\"],\n [1116060021, 1116060, \"RUMPET\"],\n [1116060022, 1116060, \"DARAT\"],\n [1116060023, 1116060, \"GLE JONG\"],\n [1116060024, 1116060, \"GAMPONG BARO\"],\n [1116060025, 1116060, \"MEUNASAH WEH\"],\n [1116060026, 1116060, \"COT DULANG\"],\n [1116060027, 1116060, \"PUTUE\"],\n [1116060028, 1116060, \"LAM DURIAN\"],\n [1116060029, 1116060, \"BABAH KRUENG\"],\n [1116060030, 1116060, \"BAK PAOH\"],\n [1116060031, 1116060, \"PASAR LAMNO\"],\n [1116060032, 1116060, \"PANTE KEUTAPANG\"],\n [1116060033, 1116060, \"PANTON MAKMUR\"],\n [1116060034, 1116060, \"KRUENG TUNONG\"],\n [1116060035, 1116060, \"LAMTUI\"],\n [1116060036, 1116060, \"JAMBO MASI\"],\n [1116060037, 1116060, \"LAMBAROH\"],\n [1116060038, 1116060, \"GLE PUTOH\"],\n [1116060039, 1116060, \"ALUE RAYEUK\"],\n [1116060040, 1116060, \"MAREU\"],\n [1116060041, 1116060, \"SABET\"],\n [1116060042, 1116060, \"PANTE CERMIN\"],\n [1116060043, 1116060, \"SANGO\"],\n [1116060044, 1116060, \"LAMASAN\"],\n [1116060045, 1116060, \"UJONG SUDEUN\"],\n [1116060046, 1116060, \"BABAH IE\"],\n [1116060047, 1116060, \"MEUDHEUN\"],\n [1116060048, 1116060, \"SAPEK\"],\n [1116061001, 1116061, \"CEUNAMPRONG\"],\n [1116061002, 1116061, \"KEUDE UNGA\"],\n [1116061003, 1116061, \"KARENG ATEUH\"],\n [1116061004, 1116061, \"MEUDANG GHON\"],\n [1116061005, 1116061, \"UJONG MULOH\"],\n [1116061006, 1116061, \"KUALA\"],\n [1116061007, 1116061, \"TEUMAREUM\"],\n [1116061008, 1116061, \"JANGEUT\"],\n [1116061009, 1116061, \"ALUE MIE\"],\n [1116061010, 1116061, \"BABAH DUA\"],\n [1116061011, 1116061, \"MEUNASAH TUTONG\"],\n [1116061012, 1116061, \"MEUNASAH TEUNGOH\"],\n [1116061013, 1116061, \"MEUNASAH RAYEUK\"],\n [1116061014, 1116061, \"MUKHAN\"],\n [1117010003, 1117010, \"BANDAR LAMPAHAN\"],\n [1117010004, 1117010, \"KARANG JADI\"],\n [1117010005, 1117010, \"LAMPAHAN\"],\n [1117010006, 1117010, \"SUKA DAMAI\"],\n [1117010007, 1117010, \"BLANG RONGKA\"],\n [1117010008, 1117010, \"TUNYANG\"],\n [1117010012, 1117010, \"SETIE\"],\n [1117010014, 1117010, \"SIMPANG LAYANG\"],\n [1117010015, 1117010, \"GEGUR SEPAKAT\"],\n [1117010016, 1117010, \"CEKAL BARU\"],\n [1117010019, 1117010, \"DAMARAN BARU\"],\n [1117010020, 1117010, \"PAJAR HARAPAN\"],\n [1117010021, 1117010, \"KENINE\"],\n [1117010022, 1117010, \"REMBUNE\"],\n [1117010023, 1117010, \"BUMI AYU\"],\n [1117010024, 1117010, \"KAMPUNG BARU\"],\n [1117010025, 1117010, \"MUDE BENARA\"],\n [1117010026, 1117010, \"PANTAN PEDIANGAN\"],\n [1117010027, 1117010, \"LAMPAHAN BARAT\"],\n [1117010028, 1117010, \"MEKAR AYU\"],\n [1117010029, 1117010, \"LAMPAHAN TIMUR\"],\n [1117010030, 1117010, \"KOLAM PARA KANIS\"],\n [1117010031, 1117010, \"TIMANG RASA\"],\n [1117010032, 1117010, \"BUKIT MULIE\"],\n [1117010033, 1117010, \"SUMBER JAYA\"],\n [1117010034, 1117010, \"GUNUNG TUNYANG\"],\n [1117010035, 1117010, \"DATU BERU TUNYANG\"],\n [1117010036, 1117010, \"PANTAN KEMUNING\"],\n [1117010037, 1117010, \"BUKIT TUNYANG\"],\n [1117010038, 1117010, \"LINUNG BALE\"],\n [1117011001, 1117011, \"TIMANG GAJAH\"],\n [1117011002, 1117011, \"RERONGA\"],\n [1117011003, 1117011, \"PANTAN LUES\"],\n [1117011004, 1117011, \"MERIAH JAYA\"],\n [1117011005, 1117011, \"UMAH BESI\"],\n [1117011006, 1117011, \"PANTE KARYA\"],\n [1117011007, 1117011, \"SIMPANG RAHMAT\"],\n [1117011008, 1117011, \"GAJAH PUTIH\"],\n [1117011009, 1117011, \"GAYO SETIE\"],\n [1117011010, 1117011, \"ALAM JAYA\"],\n [1117020001, 1117020, \"RIME RAYA\"],\n [1117020002, 1117020, \"SINGAH MULO\"],\n [1117020003, 1117020, \"ALUR GADING\"],\n [1117020004, 1117020, \"BLANG RAKAL\"],\n [1117020005, 1117020, \"NEGERI ANTARA\"],\n [1117020006, 1117020, \"BLANG ARA\"],\n [1117020007, 1117020, \"GEMASIH\"],\n [1117020008, 1117020, \"PULO INTAN\"],\n [1117020009, 1117020, \"RATA ARA\"],\n [1117020010, 1117020, \"MUSARA 58\"],\n [1117020011, 1117020, \"MUSARA PAKAT\"],\n [1117020012, 1117020, \"WEH PORAK\"],\n [1117020013, 1117020, \"SIMPANG LANCANG\"],\n [1117020014, 1117020, \"BENER MERIAH\"],\n [1117020015, 1117020, \"PERDAMAIAN\"],\n [1117020016, 1117020, \"ULU NARON\"],\n [1117020017, 1117020, \"TAMAN FIRDAUS\"],\n [1117020018, 1117020, \"BINTANG BERANGUN\"],\n [1117020019, 1117020, \"UNING EMAS\"],\n [1117020020, 1117020, \"PANCAR JELOBOK\"],\n [1117020021, 1117020, \"ALUR CINCIN\"],\n [1117020022, 1117020, \"PANTAN SINAKU\"],\n [1117020023, 1117020, \"PANTAN LAH\"],\n [1117030002, 1117030, \"BLANG TAMPU\"],\n [1117030003, 1117030, \"UNING BERSAH\"],\n [1117030004, 1117030, \"UNING TERITIT\"],\n [1117030005, 1117030, \"KUTE LINTANG\"],\n [1117030006, 1117030, \"TINGKEM BERSATU\"],\n [1117030007, 1117030, \"TINGKEM ASLI\"],\n [1117030008, 1117030, \"REJE GURU\"],\n [1117030009, 1117030, \"BLANG SENTANG\"],\n [1117030010, 1117030, \"PASAR SIMPANG TIGA\"],\n [1117030011, 1117030, \"BALE REDELONG\"],\n [1117030012, 1117030, \"UJUNG GELE\"],\n [1117030013, 1117030, \"DELUNG TUE\"],\n [1117030014, 1117030, \"KENAWAT REDELONG\"],\n [1117030015, 1117030, \"BLANG ARA\"],\n [1117030016, 1117030, \"WAQ PONDOK SAYUR\"],\n [1117030017, 1117030, \"PANJI MULIA II\"],\n [1117030018, 1117030, \"PANJI MULIA I\"],\n [1117030019, 1117030, \"ISAQ BUSUR\"],\n [1117030020, 1117030, \"BUJANG\"],\n [1117030021, 1117030, \"HAKIM TUNGGUL NARU\"],\n [1117030022, 1117030, \"BALE ATU\"],\n [1117030033, 1117030, \"TINGKEM BENYER\"],\n [1117030034, 1117030, \"BANTIN WIH PONGAS\"],\n [1117030035, 1117030, \"SEDIA JADI\"],\n [1117030036, 1117030, \"REMBELE\"],\n [1117030037, 1117030, \"MUTIARA BARU\"],\n [1117030038, 1117030, \"BLANG PANAS\"],\n [1117030039, 1117030, \"BUKIT BERSATU\"],\n [1117030040, 1117030, \"SERULE KAYU\"],\n [1117030041, 1117030, \"KUTE KERING\"],\n [1117030042, 1117030, \"KUTE TANYUNG\"],\n [1117030043, 1117030, \"BABUSSALAM\"],\n [1117030044, 1117030, \"PAYA GAJAH\"],\n [1117030045, 1117030, \"DELUNG ASLI\"],\n [1117030046, 1117030, \"PILAR JAYA\"],\n [1117030047, 1117030, \"MELUEM\"],\n [1117030048, 1117030, \"MUPAKAT JADI\"],\n [1117030049, 1117030, \"GODANG\"],\n [1117030050, 1117030, \"URING\"],\n [1117030051, 1117030, \"KARANG REJO\"],\n [1117040001, 1117040, \"SIMPANG TERITIT\"],\n [1117040003, 1117040, \"SUKARAME ATAS\"],\n [1117040004, 1117040, \"SUKARAME BAWAH\"],\n [1117040005, 1117040, \"SYURA JADI\"],\n [1117040006, 1117040, \"PANTE RAYA\"],\n [1117040007, 1117040, \"SIMPANG BALEK\"],\n [1117040008, 1117040, \"SUKA JADI\"],\n [1117040009, 1117040, \"BENER AYU\"],\n [1117040010, 1117040, \"BLANG PAKU\"],\n [1117040011, 1117040, \"SUKA MAKMUR\"],\n [1117040012, 1117040, \"MERIE I\"],\n [1117040013, 1117040, \"JAMUR ULUH\"],\n [1117040014, 1117040, \"GEGERUNG\"],\n [1117040015, 1117040, \"BUKIT PEPANYI\"],\n [1117040016, 1117040, \"JAMUR UJUNG\"],\n [1117040017, 1117040, \"WONOSOBO\"],\n [1117040018, 1117040, \"LUT KUCAK\"],\n [1117040019, 1117040, \"WIH PESAM\"],\n [1117040020, 1117040, \"CINTA DAMAI\"],\n [1117040021, 1117040, \"BENER MULIE\"],\n [1117040022, 1117040, \"KEBUN BARU\"],\n [1117040023, 1117040, \"BLANG KUCAK\"],\n [1117040024, 1117040, \"SIMPANG ANTARA\"],\n [1117040025, 1117040, \"BLANG BENARA\"],\n [1117040026, 1117040, \"SUKA MAKMUR TIMUR\"],\n [1117040027, 1117040, \"BURNI TELONG\"],\n [1117040028, 1117040, \"MEKAR JADI AYU\"],\n [1117050001, 1117050, \"WONOSARI\"],\n [1117050002, 1117050, \"PAYA BANING\"],\n [1117050003, 1117050, \"BLANG PULO\"],\n [1117050011, 1117050, \"PETUKEL BLANG JORONG\"],\n [1117050012, 1117050, \"TANJUNG PURA\"],\n [1117050013, 1117050, \"HAKIM WIH ILANG\"],\n [1117050014, 1117050, \"LEWA JADI\"],\n [1117050015, 1117050, \"BUKIT WIH ILANG\"],\n [1117050016, 1117050, \"SUKU WIH ILANG\"],\n [1117050017, 1117050, \"PONDOK GAJAH\"],\n [1117050018, 1117050, \"PURWOSARI\"],\n [1117050019, 1117050, \"SIDODADI\"],\n [1117050020, 1117050, \"SELAMAT REJO\"],\n [1117050021, 1117050, \"PONDOK ULUNG\"],\n [1117050022, 1117050, \"JANARATA\"],\n [1117050023, 1117050, \"BATIN BARU\"],\n [1117050033, 1117050, \"MUYANG KUTE MANGKU\"],\n [1117050034, 1117050, \"KERAMAT JAYA\"],\n [1117050035, 1117050, \"SIMPANG UTAMA\"],\n [1117050038, 1117050, \"PAKAT JEROH\"],\n [1117050039, 1117050, \"PUJA MULIA\"],\n [1117050040, 1117050, \"PONDOK BARU\"],\n [1117050041, 1117050, \"BAHGIE BERTONA\"],\n [1117050044, 1117050, \"TANSARAN BIDIN\"],\n [1117050045, 1117050, \"SINAR JAYA PAYA RINGKEL\"],\n [1117050046, 1117050, \"REMANG KETIKE JAYA\"],\n [1117050047, 1117050, \"GUNUNG ANTARA\"],\n [1117050048, 1117050, \"GELE SEMAYANG\"],\n [1117050049, 1117050, \"MAKMUR SENTOSA\"],\n [1117050050, 1117050, \"TAWAR SEDENGE\"],\n [1117050051, 1117050, \"JADI SEPAKAT\"],\n [1117050052, 1117050, \"SELISIH MARA\"],\n [1117050053, 1117050, \"KALA NEMPAN\"],\n [1117050054, 1117050, \"MUTIARA\"],\n [1117050060, 1117050, \"BERANUN TELEDEN\"],\n [1117051001, 1117051, \"BENER LUKUP II\"],\n [1117051002, 1117051, \"BENER KELIPAH UTARA\"],\n [1117051003, 1117051, \"BENER KELIPAH SELATAN\"],\n [1117051004, 1117051, \"BINTANG MUSARA\"],\n [1117051005, 1117051, \"BANDAR JAYA\"],\n [1117051006, 1117051, \"NOSAR TAWAR JAYA\"],\n [1117051007, 1117051, \"JONGOK MELUEM\"],\n [1117051008, 1117051, \"SUKU BENER\"],\n [1117051009, 1117051, \"LOT BENER KELIPAH\"],\n [1117051010, 1117051, \"KALA TENANG\"],\n [1117051011, 1117051, \"GUNUNG MUSARA\"],\n [1117051012, 1117051, \"NOSAR BARU\"],\n [1117060001, 1117060, \"TEMBOLON\"],\n [1117060002, 1117060, \"WIH NIDURIN\"],\n [1117060003, 1117060, \"KUTE LAH LANE\"],\n [1117060004, 1117060, \"PAYUNG\"],\n [1117060007, 1117060, \"KERLANG\"],\n [1117060008, 1117060, \"GERPA\"],\n [1117060009, 1117060, \"GONENG\"],\n [1117060010, 1117060, \"BLANG PANU\"],\n [1117060011, 1117060, \"RUSIP\"],\n [1117060015, 1117060, \"UNING\"],\n [1117060016, 1117060, \"PASIR PUTIH\"],\n [1117060027, 1117060, \"RATA MULIE\"],\n [1117060028, 1117060, \"TEMPEN BARU\"],\n [1117060029, 1117060, \"GERUTI JAYA\"],\n [1117061001, 1117061, \"CEMPARAM JAYA\"],\n [1117061002, 1117061, \"JAMUR ATU\"],\n [1117061003, 1117061, \"GUNUNG SAYANG\"],\n [1117061004, 1117061, \"WIH RESAP\"],\n [1117061005, 1117061, \"SIMPUR\"],\n [1117061006, 1117061, \"AMOR\"],\n [1117061007, 1117061, \"BUNTUL GAYO\"],\n [1117061008, 1117061, \"WER TINGKEM\"],\n [1117061009, 1117061, \"HAKIM PETERI PINTU\"],\n [1117061010, 1117061, \"PERUMPAKAN BENJADI\"],\n [1117061011, 1117061, \"CEMPARAM LAMA\"],\n [1117061012, 1117061, \"CEMPARAM PAKAT JEROH\"],\n [1117061013, 1117061, \"SIMPANG RENGGALI\"],\n [1117061014, 1117061, \"SOSIAL\"],\n [1117061015, 1117061, \"PANTAN KULI\"],\n [1117070001, 1117070, \"PANTAN TENGAH JAYA\"],\n [1117070002, 1117070, \"BENER PEPANYI\"],\n [1117070003, 1117070, \"BINTANG BENER\"],\n [1117070004, 1117070, \"BINTANG PERMATA\"],\n [1117070005, 1117070, \"BUNTUL PETERI\"],\n [1117070006, 1117070, \"GELAMPANG\"],\n [1117070007, 1117070, \"SENI ANTARA\"],\n [1117070008, 1117070, \"WEH TENANG UKEN\"],\n [1117070009, 1117070, \"DARUL AMAN\"],\n [1117070010, 1117070, \"PENOSAN JAYA\"],\n [1117070011, 1117070, \"RAMUNG JAYA\"],\n [1117070012, 1117070, \"TEMAS MUMANANG\"],\n [1117070013, 1117070, \"WEH TENANG TUA\"],\n [1117070014, 1117070, \"AYU ARA\"],\n [1117070015, 1117070, \"BALE MUSARA\"],\n [1117070016, 1117070, \"BALE PURNAMA\"],\n [1117070017, 1117070, \"BURNI PASE\"],\n [1117070018, 1117070, \"KEPIES\"],\n [1117070019, 1117070, \"RIKIT MUSARA\"],\n [1117070020, 1117070, \"CEDING AYU\"],\n [1117070021, 1117070, \"JUNGKE GAJAH\"],\n [1117070022, 1117070, \"JELOBOK\"],\n [1117070023, 1117070, \"PEMANGO\"],\n [1117070024, 1117070, \"SUKU SARA TANGKE\"],\n [1117070025, 1117070, \"TAWAR BENGI\"],\n [1117070026, 1117070, \"UNING SEJUK\"],\n [1117070027, 1117070, \"TIMUR JAYA\"],\n [1118010001, 1118010, \"MNS MULIENG\"],\n [1118010002, 1118010, \"LAMPOIH LADA\"],\n [1118010003, 1118010, \"GLUMPANG TUTONG\"],\n [1118010004, 1118010, \"RUNGKOM\"],\n [1118010005, 1118010, \"BLANG AWE\"],\n [1118010006, 1118010, \"MANYANG LANCOK\"],\n [1118010007, 1118010, \"POHROH\"],\n [1118010008, 1118010, \"KUDRANG\"],\n [1118010009, 1118010, \"MEUNASAH HAGU\"],\n [1118010010, 1118010, \"DAYAH TUHA\"],\n [1118010011, 1118010, \"RUMPUEN\"],\n [1118010012, 1118010, \"MEUNASAH KULAM\"],\n [1118010013, 1118010, \"RAMBONG\"],\n [1118010014, 1118010, \"GRONG GRONG\"],\n [1118010015, 1118010, \"KUTA TRIENG\"],\n [1118010016, 1118010, \"PULO U\"],\n [1118010017, 1118010, \"MANYANG CUT\"],\n [1118010018, 1118010, \"BEURAWANG\"],\n [1118010019, 1118010, \"DAYAH TIMU\"],\n [1118010020, 1118010, \"BUNOT\"],\n [1118010021, 1118010, \"TEUPIN PEURAHO\"],\n [1118010022, 1118010, \"GEULEUDAH\"],\n [1118010023, 1118010, \"MEUNASAH LHOK\"],\n [1118010024, 1118010, \"MESJID TUHA\"],\n [1118010025, 1118010, \"RHIENG MANCANG\"],\n [1118010026, 1118010, \"RHIENG KRUENG\"],\n [1118010027, 1118010, \"RHIENG BLANG\"],\n [1118010028, 1118010, \"MEURAKSA\"],\n [1118010029, 1118010, \"MEUNASAH BALEK\"],\n [1118010030, 1118010, \"KOTA MEUREUDU\"],\n [1118020001, 1118020, \"SEUNONG\"],\n [1118020002, 1118020, \"LHOK SANDENG\"],\n [1118020003, 1118020, \"SARAH MANE\"],\n [1118020004, 1118020, \"LANCOK\"],\n [1118020005, 1118020, \"MEUNASAH KULAM\"],\n [1118020006, 1118020, \"MEUNASAH TEUNGOH\"],\n [1118020007, 1118020, \"GEUNTENG\"],\n [1118020008, 1118020, \"MEUNASAH BIE\"],\n [1118020009, 1118020, \"MEUNASAH RAYA\"],\n [1118020010, 1118020, \"GAMPONG BLANG\"],\n [1118020011, 1118020, \"BLANG CUT\"],\n [1118020012, 1118020, \"MEUNASAH DAYAH USEN\"],\n [1118020013, 1118020, \"MEUNASAH MANCANG\"],\n [1118020014, 1118020, \"DAYAH KRUET\"],\n [1118020015, 1118020, \"BEURINGEN\"],\n [1118020016, 1118020, \"PANTE BEUREUNE\"],\n [1118020017, 1118020, \"MEUNASAH JURONG\"],\n [1118020018, 1118020, \"BUANGAN\"],\n [1118020019, 1118020, \"LUENG BIMBA\"],\n [1118030001, 1118030, \"GAHRU\"],\n [1118030002, 1118030, \"KUMBA\"],\n [1118030003, 1118030, \"BLANG MIROE\"],\n [1118030004, 1118030, \"BEURASAN\"],\n [1118030005, 1118030, \"COT KENG\"],\n [1118030006, 1118030, \"KRUENG KIRAN\"],\n [1118030007, 1118030, \"ASAN KUMBANG\"],\n [1118030008, 1118030, \"PULO GAPU\"],\n [1118030009, 1118030, \"COT GURUFAI\"],\n [1118030010, 1118030, \"ALUE SANE\"],\n [1118030011, 1118030, \"LHOK PUSONG\"],\n [1118030012, 1118030, \"ALUE KEUTAPANG\"],\n [1118030013, 1118030, \"JEULANGA BARAT\"],\n [1118030014, 1118030, \"JEULANGA MATA IE\"],\n [1118030015, 1118030, \"JEULANGA MESJID\"],\n [1118030016, 1118030, \"MEUNASAH PAKU\"],\n [1118030017, 1118030, \"MEURANDEH ALUE\"],\n [1118030018, 1118030, \"REUDEUP MELAYU\"],\n [1118030019, 1118030, \"PAYA PISANG KLAT\"],\n [1118030020, 1118030, \"ALUE MEE\"],\n [1118030021, 1118030, \"DRIEN TUJOH\"],\n [1118030022, 1118030, \"BLANG KUTA\"],\n [1118030023, 1118030, \"SEUNONG\"],\n [1118030024, 1118030, \"POHROH\"],\n [1118030025, 1118030, \"BABAH KRUENG\"],\n [1118030026, 1118030, \"UTEUN BAYU\"],\n [1118030027, 1118030, \"MUKO BULOH\"],\n [1118030028, 1118030, \"DRIEN BUNGONG\"],\n [1118030029, 1118030, \"MEUGIT SAGOE\"],\n [1118030030, 1118030, \"MEUGIT KAYEE PANYANG\"],\n [1118030031, 1118030, \"ADAN\"],\n [1118030032, 1118030, \"MUKO DAYAH\"],\n [1118030033, 1118030, \"KEUDE ULEE GLE\"],\n [1118030034, 1118030, \"PULO\"],\n [1118030035, 1118030, \"GAMPONG BARO\"],\n [1118030036, 1118030, \"GAMPONG ULEE GLE\"],\n [1118030037, 1118030, \"MUKO KUTHANG\"],\n [1118030038, 1118030, \"PEULAKAN TUNONG\"],\n [1118030039, 1118030, \"PEULAKAN TAMBO\"],\n [1118030040, 1118030, \"KUTA KRUENG\"],\n [1118030041, 1118030, \"PAYA TUNONG\"],\n [1118030042, 1118030, \"PAYA BAROH\"],\n [1118030043, 1118030, \"BLANG DALAM\"],\n [1118030044, 1118030, \"MUKOE BAROH\"],\n [1118030045, 1118030, \"PEULAKAN CIBREK\"],\n [1118040001, 1118040, \"MEUKO JURONG\"],\n [1118040002, 1118040, \"BUKET TEUNGOH\"],\n [1118040003, 1118040, \"JURONG ARA\"],\n [1118040004, 1118040, \"JURONG TEUNGOH\"],\n [1118040005, 1118040, \"JURONG BINJE\"],\n [1118040006, 1118040, \"REULUI MANGAT\"],\n [1118040007, 1118040, \"MEUNASAH MEE\"],\n [1118040008, 1118040, \"MEUNASAH KUMBANG\"],\n [1118040009, 1118040, \"KUTA BAROH\"],\n [1118040010, 1118040, \"MEUKO MEUGIT\"],\n [1118040011, 1118040, \"KEURISI MEUNASAH RAYA\"],\n [1118040012, 1118040, \"KIRAN DAYAH\"],\n [1118040013, 1118040, \"KIRAN BAROH\"],\n [1118040014, 1118040, \"KIRAN KRUENG\"],\n [1118040015, 1118040, \"KEURISI MEUNASAH LUENG\"],\n [1118040016, 1118040, \"KEUDE JANGKA BUYA\"],\n [1118040017, 1118040, \"GAMPONG COT\"],\n [1118040018, 1118040, \"KEURISI MEUNASAH BEUREMBANG\"],\n [1118050001, 1118050, \"ALUE KEUMIKI\"],\n [1118050002, 1118050, \"LHOK GAJAH\"],\n [1118050003, 1118050, \"BLANG RHEUE\"],\n [1118050004, 1118050, \"COT SEUTUI\"],\n [1118050005, 1118050, \"MEUNASAH MESJID\"],\n [1118050006, 1118050, \"BLANG CARI\"],\n [1118050007, 1118050, \"BIDOK\"],\n [1118050008, 1118050, \"BALEE ULIM\"],\n [1118050009, 1118050, \"PANTANG COT BALOI\"],\n [1118050010, 1118050, \"NANGRHOE BARAT\"],\n [1118050011, 1118050, \"REULEUT\"],\n [1118050012, 1118050, \"SAMBONGAN BARO\"],\n [1118050013, 1118050, \"DAYAH BAROH\"],\n [1118050014, 1118050, \"MEUNASAH PUPU\"],\n [1118050015, 1118050, \"NANGRHOE TIMU\"],\n [1118050016, 1118050, \"MEUNASAH KUMBANG\"],\n [1118050017, 1118050, \"MESJID ULIM TUNONG\"],\n [1118050018, 1118050, \"SIBLAH COH\"],\n [1118050019, 1118050, \"PULO ULIM\"],\n [1118050020, 1118050, \"GRONG GRONG CAPA\"],\n [1118050021, 1118050, \"TANJONG ULIM\"],\n [1118050022, 1118050, \"MEUNASAH KRUENG\"],\n [1118050023, 1118050, \"KEUDE ULIM\"],\n [1118050024, 1118050, \"DAYAH LUBUE\"],\n [1118050025, 1118050, \"MESJID ULIM BAROH\"],\n [1118050026, 1118050, \"MEUNASAH BUENG\"],\n [1118050027, 1118050, \"GEULANGGANG\"],\n [1118050028, 1118050, \"TIJIEN HUSEN\"],\n [1118050029, 1118050, \"PULO LHOK\"],\n [1118050030, 1118050, \"TIJIEN DABOH\"],\n [1118060001, 1118060, \"PANTON RAYA\"],\n [1118060002, 1118060, \"PEULANDOK TUNONG\"],\n [1118060003, 1118060, \"PEULANDOK TEUNGOH\"],\n [1118060004, 1118060, \"BULOH\"],\n [1118060005, 1118060, \"DAYAH UJONG BAROH\"],\n [1118060006, 1118060, \"MATANG\"],\n [1118060007, 1118060, \"DEE\"],\n [1118060008, 1118060, \"DEAH TEUMANAH\"],\n [1118060009, 1118060, \"TAMPUI\"],\n [1118060010, 1118060, \"REUSEB\"],\n [1118060011, 1118060, \"MESJID PEUDEUEK BAROH\"],\n [1118060012, 1118060, \"TUHA\"],\n [1118060013, 1118060, \"PAYA\"],\n [1118060014, 1118060, \"MESJID TRIENGGADENG\"],\n [1118060015, 1118060, \"TUENG KLUET\"],\n [1118060016, 1118060, \"MEE PANGWA\"],\n [1118060017, 1118060, \"RAWASARI\"],\n [1118060018, 1118060, \"COT MAKASO\"],\n [1118060019, 1118060, \"KUTA\"],\n [1118060020, 1118060, \"MEUCAT\"],\n [1118060021, 1118060, \"DEAH PANGWA\"],\n [1118060022, 1118060, \"COT LHEUE RHEUNG\"],\n [1118060023, 1118060, \"MEUE\"],\n [1118060024, 1118060, \"KEUDE\"],\n [1118060025, 1118060, \"RAYA\"],\n [1118060026, 1118060, \"MEE PEUDUEK\"],\n [1118060027, 1118060, \"SAGOE\"],\n [1118070001, 1118070, \"LHOK PU'UK\"],\n [1118070002, 1118070, \"TUNONG\"],\n [1118070003, 1118070, \"TEUNGOH\"],\n [1118070004, 1118070, \"PEURADE\"],\n [1118070005, 1118070, \"REUDEUP\"],\n [1118070006, 1118070, \"MESJID\"],\n [1118070007, 1118070, \"MUKA BLANG\"],\n [1118070008, 1118070, \"HAGU\"],\n [1118070009, 1118070, \"TU PANTEE RAJA\"],\n [1118070010, 1118070, \"KEUDE\"],\n [1118080001, 1118080, \"MNS AKI NEUNGOH\"],\n [1118080002, 1118080, \"MNS ABAH LUENG\"],\n [1118080003, 1118080, \"MEUNASAH JIJIEM\"],\n [1118080004, 1118080, \"MNS SARAH PANYANG\"],\n [1118080005, 1118080, \"MNS BLANG SUKON\"],\n [1118080006, 1118080, \"MNS KAYEE JATOE\"],\n [1118080007, 1118080, \"MNS BLANG BARO\"],\n [1118080008, 1118080, \"MNS BLANG IBOIH\"],\n [1118080009, 1118080, \"MNS DAYAH LANGIEN\"],\n [1118080010, 1118080, \"MNS BLANG KRUENG\"],\n [1118080011, 1118080, \"MEUNASAH ALUE\"],\n [1118080012, 1118080, \"MNS TANOH MIRAH\"],\n [1118080013, 1118080, \"MNS UJONG LEUBAT\"],\n [1118080014, 1118080, \"MNS TUALADA\"],\n [1118080015, 1118080, \"MNS CUT LANGIEN\"],\n [1118080016, 1118080, \"MEUNASAH SAGOE\"],\n [1118080017, 1118080, \"MNS BAROH COT\"],\n [1118080018, 1118080, \"MEUNASAH BALEE\"],\n [1118080019, 1118080, \"MNS TEUNGOH\"],\n [1118080020, 1118080, \"MNS BAROH MUSA\"],\n [1118080021, 1118080, \"MNS PARU KEUDE\"],\n [1118080022, 1118080, \"MNS LANCANG\"],\n [1118080023, 1118080, \"MNS UDEUNG\"],\n [1118080024, 1118080, \"MEUNASAH ARA\"],\n [1118080025, 1118080, \"MNS BLANG GLONG\"],\n [1118080026, 1118080, \"MEUNASAH KEUDE\"],\n [1118080027, 1118080, \"MNS PUEB LUENG NIBONG\"],\n [1118080028, 1118080, \"MNS DABOIH\"],\n [1118080029, 1118080, \"MNS PULO RHENG\"],\n [1118080030, 1118080, \"MNS GAMPONG\"],\n [1118080031, 1118080, \"MNS DAYAH NYONG\"],\n [1118080032, 1118080, \"MNS BEURANDEH\"],\n [1118080033, 1118080, \"MNS KAYEE RAYA\"],\n [1118080034, 1118080, \"MEUNASAH SIREN\"],\n [1118080035, 1118080, \"MEUNASAH TUTONG\"],\n [1118080036, 1118080, \"MNS MANYANG\"],\n [1118080037, 1118080, \"MNS BAROH LANCOK\"],\n [1118080038, 1118080, \"MEUNASAH MESJID\"],\n [1118080039, 1118080, \"MNS PULO PUEB\"],\n [1118080040, 1118080, \"MEUNASAH SAWANG\"],\n [1118080041, 1118080, \"MEUNASAH BARO\"],\n [1118080042, 1118080, \"MNS CUT NYONG\"],\n [1118080043, 1118080, \"MNS PARU COT\"],\n [1171010019, 1171010, \"SURIEN\"],\n [1171010020, 1171010, \"ASOI NANGGRO\"],\n [1171010021, 1171010, \"GAMPONG BLANG\"],\n [1171010022, 1171010, \"LAMJABAT\"],\n [1171010023, 1171010, \"GAMPONG BARO\"],\n [1171010025, 1171010, \"PUNGE JURONG\"],\n [1171010027, 1171010, \"LAMPASEH ACEH\"],\n [1171010028, 1171010, \"PUNGE UJONG\"],\n [1171010029, 1171010, \"COT LAMKUWEUEH\"],\n [1171010030, 1171010, \"GAMPONG PIE\"],\n [1171010031, 1171010, \"ULEE LHEUE\"],\n [1171010032, 1171010, \"DEAH GLUMPANG\"],\n [1171010033, 1171010, \"LAMBUNG\"],\n [1171010034, 1171010, \"BLANG OI\"],\n [1171010035, 1171010, \"ALUE DEAH TEUNGOH\"],\n [1171010036, 1171010, \"DEAH BARO\"],\n [1171011001, 1171011, \"ULEE PATA\"],\n [1171011002, 1171011, \"LAMJAMEE\"],\n [1171011003, 1171011, \"LAMPOH DAYA\"],\n [1171011004, 1171011, \"EMPEROM\"],\n [1171011005, 1171011, \"GEUCEU MEUNARA\"],\n [1171011006, 1171011, \"LAMTEMEN BARAT\"],\n [1171011007, 1171011, \"BITAI\"],\n [1171011008, 1171011, \"LAMTEMEN TIMUR\"],\n [1171011009, 1171011, \"PUNGE BLANG CUT\"],\n [1171012001, 1171012, \"LAM ARA\"],\n [1171012002, 1171012, \"LAMPUOT\"],\n [1171012003, 1171012, \"MIBO\"],\n [1171012004, 1171012, \"LHONG CUT\"],\n [1171012005, 1171012, \"LHONG RAYA\"],\n [1171012006, 1171012, \"PEUNYEURAT\"],\n [1171012007, 1171012, \"LAM LAGANG\"],\n [1171012008, 1171012, \"GEUCEU KOMPLEK\"],\n [1171012009, 1171012, \"GEUCEU INIEM\"],\n [1171012010, 1171012, \"GEUCEU KAYEE JATO\"],\n [1171020001, 1171020, \"ATEUK JAWO\"],\n [1171020007, 1171020, \"ATEUK DEAH TANOH\"],\n [1171020008, 1171020, \"ATEUK PAHLAWAN\"],\n [1171020009, 1171020, \"ATEUK MUNJENG\"],\n [1171020010, 1171020, \"NEUSU ACEH\"],\n [1171020011, 1171020, \"SEUTUI\"],\n [1171020012, 1171020, \"SUKARAMAI\"],\n [1171020013, 1171020, \"NEUSU JAYA\"],\n [1171020014, 1171020, \"PEUNITI\"],\n [1171020019, 1171020, \"KAMPUNG BARU\"],\n [1171021001, 1171021, \"LANDOM\"],\n [1171021002, 1171021, \"COT MESJID\"],\n [1171021003, 1171021, \"BATOH\"],\n [1171021004, 1171021, \"LUENG BATA\"],\n [1171021005, 1171021, \"BLANG CUT\"],\n [1171021006, 1171021, \"LAMPALOH\"],\n [1171021007, 1171021, \"SUKADAMAI\"],\n [1171021008, 1171021, \"PANTERIEK\"],\n [1171021009, 1171021, \"LAMSEUPEUNG\"],\n [1171030001, 1171030, \"PEUNAYONG\"],\n [1171030002, 1171030, \"LAKSANA\"],\n [1171030003, 1171030, \"KEURAMAT\"],\n [1171030004, 1171030, \"KUTA ALAM\"],\n [1171030005, 1171030, \"BEURAWE\"],\n [1171030006, 1171030, \"KOTA BARU\"],\n [1171030007, 1171030, \"BANDAR BARU\"],\n [1171030008, 1171030, \"MULIA\"],\n [1171030013, 1171030, \"LAMPULO\"],\n [1171030014, 1171030, \"LAMDINGIN\"],\n [1171030015, 1171030, \"LAMBARO SKEP\"],\n [1171031001, 1171031, \"LAMPASEH KOTA\"],\n [1171031002, 1171031, \"MERDUATI\"],\n [1171031003, 1171031, \"KEUDAH\"],\n [1171031004, 1171031, \"PEULANGGAHAN\"],\n [1171031005, 1171031, \"GAMPONG JAWA\"],\n [1171031006, 1171031, \"GAMPONG PANDE\"],\n [1171040010, 1171040, \"IEMASEN KAYE ADANG\"],\n [1171040011, 1171040, \"PINEUNG\"],\n [1171040012, 1171040, \"LAMGUGOB\"],\n [1171040013, 1171040, \"KOPELMA DARUSSALAM\"],\n [1171040014, 1171040, \"RUKOH\"],\n [1171040015, 1171040, \"JEULINGKE\"],\n [1171040016, 1171040, \"TIBANG\"],\n [1171040017, 1171040, \"DEAH RAYA\"],\n [1171040018, 1171040, \"ALUE NAGA\"],\n [1171040019, 1171040, \"PEURADA\"],\n [1171041001, 1171041, \"PANGO RAYA\"],\n [1171041002, 1171041, \"PANGO DEAH\"],\n [1171041003, 1171041, \"ILIE\"],\n [1171041004, 1171041, \"LAMTEH\"],\n [1171041005, 1171041, \"LAMGLUMPANG\"],\n [1171041006, 1171041, \"CEURIH\"],\n [1171041007, 1171041, \"IEMASEN ULEE KARENG\"],\n [1171041008, 1171041, \"DOI\"],\n [1171041009, 1171041, \"LAMBHUK\"],\n [1172010001, 1172010, \"PAYA\"],\n [1172010002, 1172010, \"KEUNEUKAI\"],\n [1172010003, 1172010, \"BEURAWANG\"],\n [1172010004, 1172010, \"JABOI\"],\n [1172010005, 1172010, \"BALOHAN\"],\n [1172010006, 1172010, \"COT ABEUK\"],\n [1172010007, 1172010, \"COT BA'U\"],\n [1172010008, 1172010, \"ANOE ITAM\"],\n [1172010009, 1172010, \"UJONG KAREUNG\"],\n [1172010010, 1172010, \"IE MEULEE\"],\n [1172020001, 1172020, \"IBOIH\"],\n [1172020002, 1172020, \"BATEE SHOEK\"],\n [1172020003, 1172020, \"PAYA SEUNARA\"],\n [1172020004, 1172020, \"KRUENG RAYA\"],\n [1172020005, 1172020, \"ANEUK LAOT\"],\n [1172020006, 1172020, \"KUTA TIMU\"],\n [1172020007, 1172020, \"KUTA BARAT\"],\n [1172020008, 1172020, \"KUTA ATEUH\"],\n [1173010007, 1173010, \"BUKET MEUDANG ARA\"],\n [1173010009, 1173010, \"MATANG SEUTUI\"],\n [1173010010, 1173010, \"BUKET PULO\"],\n [1173010011, 1173010, \"MATANG PANYANG\"],\n [1173010012, 1173010, \"SIMPANG WIE\"],\n [1173010013, 1173010, \"BUKET RATA\"],\n [1173010014, 1173010, \"BUKET MEUTUAH\"],\n [1173010015, 1173010, \"ALUE MERBAU\"],\n [1173010016, 1173010, \"MATANG CEUNGAI\"],\n [1173010017, 1173010, \"SEUNEUBOK ANTARA\"],\n [1173010018, 1173010, \"ALUE PINEUNG\"],\n [1173010019, 1173010, \"SUKAREJO\"],\n [1173010020, 1173010, \"CINTA RAJA\"],\n [1173010021, 1173010, \"SUNGAI LUENG\"],\n [1173010022, 1173010, \"ALUE PINEUNG TIMUE\"],\n [1173010023, 1173010, \"KAPA\"],\n [1173011001, 1173011, \"PONDOK KEUMUNING\"],\n [1173011002, 1173011, \"SEULALAH\"],\n [1173011003, 1173011, \"PONDOK PABRIK\"],\n [1173011004, 1173011, \"SIDODADI\"],\n [1173011005, 1173011, \"SIDOREJO\"],\n [1173011006, 1173011, \"GAMPONG BARO\"],\n [1173011007, 1173011, \"MEURANDEH\"],\n [1173011008, 1173011, \"ASAM PEUTEK\"],\n [1173011009, 1173011, \"BAROH LANGSA LAMA\"],\n [1173011010, 1173011, \"SEULALAH BARU\"],\n [1173011011, 1173011, \"SUKA JADI KEBUN IRENG\"],\n [1173011012, 1173011, \"MEURANDEH TENGAH\"],\n [1173011013, 1173011, \"MEURANDEH DAYAH\"],\n [1173011014, 1173011, \"MEURANDEH ACEH\"],\n [1173011015, 1173011, \"BATE PUTEH\"],\n [1173020008, 1173020, \"LHOK BANIE\"],\n [1173020009, 1173020, \"PAYA BUJOK TEUNGOH\"],\n [1173020010, 1173020, \"PAYA BUJOK. BEURAMOE\"],\n [1173020011, 1173020, \"SIMPANG LHEE\"],\n [1173020012, 1173020, \"SEURIGET\"],\n [1173020019, 1173020, \"MATANG SEULIMENG\"],\n [1173020020, 1173020, \"SUNGAI PAUH\"],\n [1173020021, 1173020, \"KUALA LANGSA\"],\n [1173020022, 1173020, \"TELAGA TUJUH\"],\n [1173020023, 1173020, \"SERAMBI INDAH\"],\n [1173020024, 1173020, \"SUNGAI PAUH PUSAKA\"],\n [1173020025, 1173020, \"SUNGAI PAUH TANJONG\"],\n [1173020026, 1173020, \"SUNGAI PAUH FIRDAUS\"],\n [1173021001, 1173021, \"TIMBANG LANGSA\"],\n [1173021002, 1173021, \"ALUE DUA\"],\n [1173021003, 1173021, \"BIREM PUNTONG\"],\n [1173021004, 1173021, \"PAYA BUJOK SEULEUMAK\"],\n [1173021005, 1173021, \"PONDOK KELAPA\"],\n [1173021006, 1173021, \"KARANG ANYAR\"],\n [1173021007, 1173021, \"PAYA BUJOK TUNONG\"],\n [1173021008, 1173021, \"GEUDUBANG JAWA\"],\n [1173021009, 1173021, \"GEUDUBANG ACEH\"],\n [1173021010, 1173021, \"ALUE DUA BAKARAN BATEE\"],\n [1173021011, 1173021, \"LENGKONG\"],\n [1173021012, 1173021, \"SUKAJADI MAKMUR\"],\n [1173030001, 1173030, \"GAMPONG TEUNGOH\"],\n [1173030002, 1173030, \"PEUKAN LANGSA\"],\n [1173030004, 1173030, \"GAMPONG JAWA\"],\n [1173030005, 1173030, \"PAYA BUJOK BLANG PASE\"],\n [1173030006, 1173030, \"GAMPONG BLANG\"],\n [1173030007, 1173030, \"ALUE BERAWE\"],\n [1173030009, 1173030, \"GAMPONG DAULAT\"],\n [1173030010, 1173030, \"GAMPONG MUTIA\"],\n [1173030011, 1173030, \"BLANG SINIBONG\"],\n [1173030013, 1173030, \"TUALANG TEUNGOH\"],\n [1174010001, 1174010, \"ALUE LIM\"],\n [1174010002, 1174010, \"BLANG BULOH\"],\n [1174010003, 1174010, \"MANE KAREUNG\"],\n [1174010004, 1174010, \"ASAN KAREUNG\"],\n [1174010005, 1174010, \"RAYEUK KAREUNG\"],\n [1174010006, 1174010, \"KUMBANG PUNTEUT\"],\n [1174010007, 1174010, \"BLANG PUNTEUT\"],\n [1174010008, 1174010, \"ULEE BLANG MANE\"],\n [1174010009, 1174010, \"KEUDE PUNTEUT\"],\n [1174010010, 1174010, \"MESJID PUNTEUT\"],\n [1174010011, 1174010, \"TUNONG\"],\n [1174010012, 1174010, \"BALOY\"],\n [1174010013, 1174010, \"TEUNGOH\"],\n [1174010014, 1174010, \"BLANG TEUE\"],\n [1174010015, 1174010, \"JAMBO TIMU\"],\n [1174010016, 1174010, \"MESJID MEURAKSA\"],\n [1174010017, 1174010, \"BLANG CUT\"],\n [1174010018, 1174010, \"KUALA MEURAKSA\"],\n [1174010019, 1174010, \"JEULEUKAT\"],\n [1174010020, 1174010, \"BLANG WEU PANJOU\"],\n [1174010021, 1174010, \"BLANG WEU BAROH\"],\n [1174010022, 1174010, \"SEUNEUBOK\"],\n [1174020002, 1174020, \"PALOH BATEE\"],\n [1174020003, 1174020, \"LHOK MON PUTEH\"],\n [1174020004, 1174020, \"COT GIREK\"],\n [1174020005, 1174020, \"MANYANG\"],\n [1174020006, 1174020, \"BLANG CRUM\"],\n [1174020007, 1174020, \"ALUE AWE\"],\n [1174020008, 1174020, \"CUT MAMPLAM\"],\n [1174020009, 1174020, \"MNS MEE\"],\n [1174020010, 1174020, \"MNS BLANG\"],\n [1174020011, 1174020, \"UTEUNKOT\"],\n [1174020012, 1174020, \"BLANG POHROH\"],\n [1174020013, 1174020, \"PAYA PUNTEUT\"],\n [1174020014, 1174020, \"KEUDE CUNDA\"],\n [1174020015, 1174020, \"MNS MESJID\"],\n [1174020016, 1174020, \"PANGGOI\"],\n [1174020017, 1174020, \"PAYA BILI\"],\n [1174020018, 1174020, \"MNS ALUE\"],\n [1174021001, 1174021, \"COT TRIENG\"],\n [1174021002, 1174021, \"PALOH PUNTI\"],\n [1174021003, 1174021, \"MNS DAYAH\"],\n [1174021004, 1174021, \"BLANG PANYANG\"],\n [1174021005, 1174021, \"MEURIA\"],\n [1174021006, 1174021, \"BLANG PULO\"],\n [1174021007, 1174021, \"BATUPHAT TIMUR\"],\n [1174021008, 1174021, \"PADANG SAKTI\"],\n [1174021009, 1174021, \"UJONG PACU\"],\n [1174021010, 1174021, \"BLANG NALEUNG MAMEH\"],\n [1174021011, 1174021, \"BATUPHAT BARAT\"],\n [1174030001, 1174030, \"MON GEUDONG\"],\n [1174030002, 1174030, \"KEUDE ACEH\"],\n [1174030003, 1174030, \"PUSONG LAMA\"],\n [1174030004, 1174030, \"PUSONG BARU\"],\n [1174030005, 1174030, \"LHOKSEUMAWE\"],\n [1174030006, 1174030, \"SIMPANG EMPAT\"],\n [1174030007, 1174030, \"LANCANG GARAM\"],\n [1174030008, 1174030, \"KAMPUNG JAWA BARU\"],\n [1174030009, 1174030, \"TUMPOK TEUNGOH\"],\n [1174030010, 1174030, \"KUTA BLANG\"],\n [1174030011, 1174030, \"UTEUN BAYI\"],\n [1174030012, 1174030, \"BANDA MASEN\"],\n [1174030013, 1174030, \"UJONG BLANG\"],\n [1174030014, 1174030, \"ULEE JALAN\"],\n [1174030015, 1174030, \"HAGU BARAT LAUT\"],\n [1174030016, 1174030, \"HAGU TEUNGOH\"],\n [1174030017, 1174030, \"HAGU SELATAN\"],\n [1174030018, 1174030, \"KAMPUNG JAWA LAMA\"],\n [1175010001, 1175010, \"BULUH DORI\"],\n [1175010002, 1175010, \"PEGAYO\"],\n [1175010003, 1175010, \"SUBULUSSALAM\"],\n [1175010004, 1175010, \"PASAR PANJANG\"],\n [1175010005, 1175010, \"TANGGA BESI\"],\n [1175010006, 1175010, \"KUTA CEPU\"],\n [1175010007, 1175010, \"SUKA MAKMUR\"],\n [1175010008, 1175010, \"SIKELONDANG\"],\n [1175010009, 1175010, \"MUKTI MAKMUR\"],\n [1175010010, 1175010, \"SUBULUSSALAM BARAT\"],\n [1175010011, 1175010, \"SUBULUSSALAM SELATAN\"],\n [1175010012, 1175010, \"SUBULUSSALAM UTARA\"],\n [1175010013, 1175010, \"LAE ORAM\"],\n [1175010014, 1175010, \"MAKMUR JAYA\"],\n [1175010015, 1175010, \"BELEGEN MULIA\"],\n [1175010016, 1175010, \"DANAU TRAS\"],\n [1175010017, 1175010, \"SUBULUSSALAM TIMUR\"],\n [1175020001, 1175020, \"LAE MOTONG\"],\n [1175020002, 1175020, \"KAMPUNG BARU\"],\n [1175020003, 1175020, \"PENANGGALAN\"],\n [1175020004, 1175020, \"LAE BERSIH\"],\n [1175020005, 1175020, \"CEPU\"],\n [1175020006, 1175020, \"KUTA TENGAH\"],\n [1175020007, 1175020, \"SIKELANG\"],\n [1175020008, 1175020, \"JONTOR\"],\n [1175020009, 1175020, \"LAE IKAN\"],\n [1175020010, 1175020, \"PENUNTUNGAN\"],\n [1175020011, 1175020, \"DASAN RAJA\"],\n [1175020012, 1175020, \"PENANGGALAN BARAT\"],\n [1175020013, 1175020, \"PENANGGALAN TIMUR\"],\n [1175030001, 1175030, \"SIPERKAS\"],\n [1175030002, 1175030, \"KUTA BERINGIN\"],\n [1175030003, 1175030, \"KAMPONG BADAR\"],\n [1175030004, 1175030, \"HARAPAN BARU\"],\n [1175030005, 1175030, \"TELADAN BARU\"],\n [1175030006, 1175030, \"OBOH\"],\n [1175030007, 1175030, \"BINANGA\"],\n [1175030008, 1175030, \"BELUKUR MAKMUR\"],\n [1175030009, 1175030, \"PASAR RUNDENG\"],\n [1175030010, 1175030, \"LAE PAMUALAN\"],\n [1175030011, 1175030, \"MUARA BATU-BATU\"],\n [1175030012, 1175030, \"SIBUNGKE\"],\n [1175030013, 1175030, \"PANGLIMA SAHMAN\"],\n [1175030014, 1175030, \"SIBUASAN\"],\n [1175030015, 1175030, \"DAH\"],\n [1175030016, 1175030, \"SEPADAN\"],\n [1175030017, 1175030, \"GERUGUH\"],\n [1175030018, 1175030, \"LAE MATE\"],\n [1175030019, 1175030, \"MANDILAM\"],\n [1175030020, 1175030, \"TUALANG\"],\n [1175030021, 1175030, \"TANAH TUMBUH\"],\n [1175030022, 1175030, \"KUALA KEUPENG\"],\n [1175030023, 1175030, \"SUAK JAMPAK\"],\n [1175040001, 1175040, \"PULO BELEN\"],\n [1175040002, 1175040, \"PULO KEDEP\"],\n [1175040003, 1175040, \"SUKA MAJU\"],\n [1175040004, 1175040, \"GUNUNG BAKTI\"],\n [1175040005, 1175040, \"JAMBI\"],\n [1175040006, 1175040, \"SINGGERSING\"],\n [1175040007, 1175040, \"CIPAR PARI\"],\n [1175040008, 1175040, \"NAMO BUAYA\"],\n [1175040009, 1175040, \"CIPAR PARI TIMUR\"],\n [1175040010, 1175040, \"LAE SIMOLAP\"],\n [1175040011, 1175040, \"DARUL MAKMUR\"],\n [1175040012, 1175040, \"PASIR BELO\"],\n [1175040013, 1175040, \"BAWAN\"],\n [1175040014, 1175040, \"SIGRUN\"],\n [1175040015, 1175040, \"LAE LANGGE\"],\n [1175040016, 1175040, \"JABI-JABI\"],\n [1175040017, 1175040, \"BUNGA TANJUNG\"],\n [1175040018, 1175040, \"JABI-JABI BARAT\"],\n [1175040019, 1175040, \"BATU NAPAL\"],\n [1175050001, 1175050, \"SEPANG\"],\n [1175050002, 1175050, \"LONGKIB\"],\n [1175050003, 1175050, \"PANJI\"],\n [1175050004, 1175050, \"DARUL AMAN\"],\n [1175050005, 1175050, \"BUKIT ALIM\"],\n [1175050006, 1175050, \"RANTAU PANJANG\"],\n [1175050007, 1175050, \"SIKERABANG\"],\n [1175050008, 1175050, \"BANGUN SARI\"],\n [1175050009, 1175050, \"LAE SAGA\"],\n [1175050010, 1175050, \"DARUSSALAM\"],\n [1201060015, 1201060, \"TETE GOENAAI\"],\n [1201060016, 1201060, \"LAOWO HILIMBARUZO\"],\n [1201060017, 1201060, \"HILILAWAE\"],\n [1201060018, 1201060, \"TUHEWAEBU\"],\n [1201060023, 1201060, \"SISOBAHILI IRAONOHURA\"],\n [1201060024, 1201060, \"HILIMOASIO\"],\n [1201060025, 1201060, \"OLADANO\"],\n [1201060026, 1201060, \"AHEDANO\"],\n [1201060027, 1201060, \"HILINAA TAFUO\"],\n [1201060028, 1201060, \"HILIONOZEGA\"],\n [1201060029, 1201060, \"MONDRALI\"],\n [1201060036, 1201060, \"AWONI LAUSO\"],\n [1201060037, 1201060, \"BOBOZIOLI LOLOANAA\"],\n [1201060038, 1201060, \"TETEHOSI\"],\n [1201060039, 1201060, \"SAIWAHILI HILIADULO\"],\n [1201060040, 1201060, \"MALIWAA\"],\n [1201060041, 1201060, \"BIOUTI\"],\n [1201060042, 1201060, \"BOZIHONA\"],\n [1201060043, 1201060, \"HILIMOASIO DUA\"],\n [1201060044, 1201060, \"HILIADULO\"],\n [1201060045, 1201060, \"ORAHILI ZUZUNDRAO\"],\n [1201060046, 1201060, \"TIGA SERANGKAI MALIWAA\"],\n [1201060047, 1201060, \"HILIGOGOWAYA MALIWAA\"],\n [1201060048, 1201060, \"LAIRA\"],\n [1201060049, 1201060, \"OTALUA\"],\n [1201060050, 1201060, \"BARUZO\"],\n [1201060051, 1201060, \"SANDRUTA\"],\n [1201060052, 1201060, \"BIOUTI TIMUR\"],\n [1201061001, 1201061, \"SIOFA BANUA\"],\n [1201061002, 1201061, \"SIFAOROASI ULUHOU\"],\n [1201061003, 1201061, \"GAZAMANU\"],\n [1201061004, 1201061, \"HILIGANOITA\"],\n [1201061005, 1201061, \"SISARAHILI BAWOLATO\"],\n [1201061006, 1201061, \"DAHANA\"],\n [1201061007, 1201061, \"HILIHORU\"],\n [1201061008, 1201061, \"HILIALAWA\"],\n [1201061009, 1201061, \"HILIWAROKHA\"],\n [1201061010, 1201061, \"HILIFAOSI\"],\n [1201061011, 1201061, \"SITOLUBANUA\"],\n [1201061012, 1201061, \"ORAHILI\"],\n [1201061013, 1201061, \"SIOFAEWALI\"],\n [1201061014, 1201061, \"SOHOYA\"],\n [1201061015, 1201061, \"TAGAULE\"],\n [1201061016, 1201061, \"BOTOHAENGA\"],\n [1201061017, 1201061, \"SINDRONDRO\"],\n [1201061018, 1201061, \"HILIHAO CUGALA\"],\n [1201061019, 1201061, \"SIOFAEWALI SELATAN\"],\n [1201061020, 1201061, \"LAGASIMAHE\"],\n [1201061021, 1201061, \"ORAHUA\"],\n [1201061022, 1201061, \"HOU\"],\n [1201061023, 1201061, \"BANUA SIBOHOU SILIMA EWALI\"],\n [1201061024, 1201061, \"BALALE TOBAA\"],\n [1201061025, 1201061, \"ORAHUA FAONDRATO\"],\n [1201062001, 1201062, \"ORAHILI\"],\n [1201062002, 1201062, \"HILIMBOWO\"],\n [1201062003, 1201062, \"FATODANO\"],\n [1201062004, 1201062, \"FAHANDRONA\"],\n [1201062005, 1201062, \"HILIBADALU\"],\n [1201062006, 1201062, \"HOLI\"],\n [1201062007, 1201062, \"SISOBAHILI ULUGAWO\"],\n [1201062008, 1201062, \"HILIWETOGELA\"],\n [1201062009, 1201062, \"LAWA-LAWA LUO\"],\n [1201062010, 1201062, \"SIFAOROASI ULUGAWO\"],\n [1201062011, 1201062, \"ONODALINGA\"],\n [1201062012, 1201062, \"MOHILI\"],\n [1201062013, 1201062, \"HILIGAFOA\"],\n [1201062014, 1201062, \"SISARAHILI SOROMAASI\"],\n [1201070006, 1201070, \"HILIOTALUA\"],\n [1201070008, 1201070, \"AKHELAUME\"],\n [1201070012, 1201070, \"TULOMBAHO SALOO\"],\n [1201070013, 1201070, \"OLINDRAWA SISARAHILI\"],\n [1201070014, 1201070, \"LASELA\"],\n [1201070016, 1201070, \"HILISEBUA\"],\n [1201070017, 1201070, \"SOMI\"],\n [1201070018, 1201070, \"SIRETE\"],\n [1201070019, 1201070, \"HILIWETO GIDO\"],\n [1201070020, 1201070, \"LOLOANAA GIDO\"],\n [1201070022, 1201070, \"SISOBAHILI\"],\n [1201070023, 1201070, \"LAHEMO\"],\n [1201070024, 1201070, \"LADEA\"],\n [1201070027, 1201070, \"UMBU\"],\n [1201070028, 1201070, \"SAEWE\"],\n [1201070029, 1201070, \"LOLOZASAI\"],\n [1201070030, 1201070, \"LASARA IDANOI\"],\n [1201070031, 1201070, \"LADEA ORAHUA\"],\n [1201070032, 1201070, \"NIFOLOO LAURU\"],\n [1201070033, 1201070, \"SOMI BOTOGOO\"],\n [1201070034, 1201070, \"HILIZOI\"],\n [1201071001, 1201071, \"TUHEMBUASI\"],\n [1201071002, 1201071, \"HILIBADALU\"],\n [1201071003, 1201071, \"LAURI\"],\n [1201071004, 1201071, \"HILIMBANA\"],\n [1201071005, 1201071, \"SAETAGARAMBA\"],\n [1201071006, 1201071, \"SOGAEADU\"],\n [1201071007, 1201071, \"BARUZO\"],\n [1201071008, 1201071, \"TULUMBAHO\"],\n [1201071009, 1201071, \"SIHAREO SOGAEADU\"],\n [1201071010, 1201071, \"WEA-WEA\"],\n [1201071011, 1201071, \"SISARAHILI SOGEADU\"],\n [1201081001, 1201081, \"BALODANO\"],\n [1201081002, 1201081, \"LEWUOGURU II\"],\n [1201081003, 1201081, \"SISARAHILI MA U\"],\n [1201081004, 1201081, \"SIHAREO III\"],\n [1201081005, 1201081, \"DEKHA\"],\n [1201081006, 1201081, \"LASARA SIWALUBANUA\"],\n [1201081007, 1201081, \"TUHEMBERUA\"],\n [1201081008, 1201081, \"ATUALUO\"],\n [1201081009, 1201081, \"LEWA - LEWA\"],\n [1201081010, 1201081, \"SIHAREO III BAWOSALOO BERUA\"],\n [1201081011, 1201081, \"SIHAREO III HILIBADALU\"],\n [1201082001, 1201082, \"SISOBAWINO I\"],\n [1201082002, 1201082, \"LEWUOMBANUA\"],\n [1201082003, 1201082, \"IODANO\"],\n [1201082004, 1201082, \"H U N O\"],\n [1201082005, 1201082, \"LEWUOGURU I\"],\n [1201082006, 1201082, \"SISARATANDRAWA\"],\n [1201082007, 1201082, \"SOMOLO-MOLO\"],\n [1201082008, 1201082, \"SIFAOROASI\"],\n [1201082009, 1201082, \"HILIGODU SOMOLO-MOLO\"],\n [1201082010, 1201082, \"HILIMBORODANO\"],\n [1201082011, 1201082, \"SOEWALI\"],\n [1201130020, 1201130, \"ONOZITOLI DULU\"],\n [1201130021, 1201130, \"SINARIKHI\"],\n [1201130022, 1201130, \"OMBOLATA SALOO\"],\n [1201130023, 1201130, \"SISOBALAURU\"],\n [1201130024, 1201130, \"TUHEGAFOA II\"],\n [1201130025, 1201130, \"ONONAMOLO I BOTOMUZOI\"],\n [1201130026, 1201130, \"FADORO LAURU\"],\n [1201130027, 1201130, \"D I M A\"],\n [1201130028, 1201130, \"MAZINGO TANOSEO\"],\n [1201130029, 1201130, \"SISOBAHILI I TANOSEO\"],\n [1201130030, 1201130, \"HILIGODU TANOSEO\"],\n [1201130031, 1201130, \"HILIDUHO\"],\n [1201130032, 1201130, \"LASARA TANOSEO\"],\n [1201130033, 1201130, \"ONOWAEMBO HILIGARA\"],\n [1201130034, 1201130, \"SILIMABANUA\"],\n [1201130035, 1201130, \"OMBOLATA SARAHILI\"],\n [1201131001, 1201131, \"FADORO HUNOGOA\"],\n [1201131002, 1201131, \"LOLOFAOSO LALAI\"],\n [1201131003, 1201131, \"FULOLO LALAI\"],\n [1201131004, 1201131, \"LALAI I / II\"],\n [1201131005, 1201131, \"LAWA LAWA\"],\n [1201131006, 1201131, \"LOLOWUA\"],\n [1201131007, 1201131, \"DAHADANO BOTOMBAWO\"],\n [1201131008, 1201131, \"FADORO LALAI\"],\n [1201131009, 1201131, \"LOLOWUA HILIWARASI\"],\n [1201131010, 1201131, \"HILIZIA LAURU\"],\n [1201131011, 1201131, \"LOLO FAOSO\"],\n [1201131012, 1201131, \"ONOMBONGI\"],\n [1201131013, 1201131, \"ORAHILI IDANOI\"],\n [1201131014, 1201131, \"AWELA\"],\n [1201131015, 1201131, \"EHOSAKHOZI\"],\n [1201132001, 1201132, \"ONONAMOLO TALAFU\"],\n [1201132002, 1201132, \"HILIGODU BOTOMUZOI\"],\n [1201132003, 1201132, \"LASARA BOTOMUZOI\"],\n [1201132004, 1201132, \"SIMANAERE BOTOMUZOI\"],\n [1201132005, 1201132, \"HILIWAELE II\"],\n [1201132006, 1201132, \"HILIHAMBAWA BOTOMUZOI\"],\n [1201132007, 1201132, \"HILIWAELE I\"],\n [1201132008, 1201132, \"HILIMBOWO BOTOMUZOI\"],\n [1201132009, 1201132, \"TUHEGAFOA I\"],\n [1201132010, 1201132, \"BALOHILI BOTOMUZOI\"],\n [1201132011, 1201132, \"LOLOANAA\"],\n [1201132012, 1201132, \"FULOLO BOTOMUZOI\"],\n [1201132013, 1201132, \"TETEHOSI BOTOMUZOI\"],\n [1201132014, 1201132, \"MOHILI BERUA BOTOMUZOI\"],\n [1201132015, 1201132, \"SISOBAHILI DOLA\"],\n [1201132016, 1201132, \"TALAFU\"],\n [1201132017, 1201132, \"BANUA SIBOHOU BOTOMUZOI\"],\n [1201132018, 1201132, \"OLANORI\"],\n [1202010001, 1202010, \"PULAU TAMANG\"],\n [1202010002, 1202010, \"PASAR BATAHAN\"],\n [1202010003, 1202010, \"BATAHAN I\"],\n [1202010004, 1202010, \"BANJAR AUR\"],\n [1202010005, 1202010, \"KAMPUNG KAPAS\"],\n [1202010006, 1202010, \"BATUSONDAT\"],\n [1202010007, 1202010, \"BINTUNGAN BEJANGKAR\"],\n [1202010010, 1202010, \"KUBANGAN TOMPEK\"],\n [1202010013, 1202010, \"PASAR BARU BATAHAN\"],\n [1202010014, 1202010, \"KUALA BATAHAN\"],\n [1202010015, 1202010, \"SARI KENANGA\"],\n [1202010016, 1202010, \"MUARA PERTEMUAN\"],\n [1202010019, 1202010, \"BATAHAN II\"],\n [1202010020, 1202010, \"BATAHAN III\"],\n [1202010021, 1202010, \"BATAHAN IV\"],\n [1202010022, 1202010, \"KAMPUNG KAPAS I\"],\n [1202010024, 1202010, \"SINUNUKAN VI\"],\n [1202010027, 1202010, \"KUBANGAN PANDAN SARI\"],\n [1202011001, 1202011, \"SINUNUKAN IV\"],\n [1202011002, 1202011, \"SINUNUKAN II\"],\n [1202011003, 1202011, \"SINUNUKAN I CENTRAL\"],\n [1202011004, 1202011, \"SINUNUKAN III\"],\n [1202011005, 1202011, \"BANJAR AUR UTARA\"],\n [1202011006, 1202011, \"BINTUNGAN BEJANGKAR BARU\"],\n [1202011007, 1202011, \"KAMPUNG KAPAS II\"],\n [1202011008, 1202011, \"PASIR PUTIH\"],\n [1202011009, 1202011, \"SUKA DAMAI\"],\n [1202011010, 1202011, \"WIDO DAREN\"],\n [1202011011, 1202011, \"WONO SARI\"],\n [1202011012, 1202011, \"SINUNUKAN I\"],\n [1202011013, 1202011, \"SIDOMAKMUR\"],\n [1202011014, 1202011, \"AIRAPA\"],\n [1202020010, 1202020, \"AEK NABARA\"],\n [1202020027, 1202020, \"AMPUNG SIALA\"],\n [1202020028, 1202020, \"MUARA PARLAMPUNGAN\"],\n [1202020029, 1202020, \"BANJAR MALAYU\"],\n [1202020030, 1202020, \"MUARA SOMA\"],\n [1202020031, 1202020, \"AMPUNG PADANG\"],\n [1202020032, 1202020, \"SIPOGU\"],\n [1202020033, 1202020, \"TOMBANG KALUANG\"],\n [1202020034, 1202020, \"BANGKELANG\"],\n [1202020035, 1202020, \"AEK NANGALI\"],\n [1202020036, 1202020, \"RAO-RAO\"],\n [1202020037, 1202020, \"AEK GUO\"],\n [1202020038, 1202020, \"TARLOLA\"],\n [1202020039, 1202020, \"AMPUNG JULU\"],\n [1202020040, 1202020, \"SOPO TINJAK\"],\n [1202020041, 1202020, \"BATU MADINDING\"],\n [1202020042, 1202020, \"RANTOBI\"],\n [1202020043, 1202020, \"HADANGKAHAN\"],\n [1202020044, 1202020, \"AEK MANGGIS\"],\n [1202020045, 1202020, \"GUO BATU\"],\n [1202020046, 1202020, \"SIMANGUNTONG\"],\n [1202020047, 1202020, \"AEK HOLBUNG\"],\n [1202020048, 1202020, \"HATUPANGAN\"],\n [1202020049, 1202020, \"BULU SOMA\"],\n [1202020050, 1202020, \"JAMBUR BARU\"],\n [1202020051, 1202020, \"LUBUK BONDAR PANJANG\"],\n [1202020052, 1202020, \"TOR NAINCAT\"],\n [1202020053, 1202020, \"AEK BARU JAE\"],\n [1202020054, 1202020, \"AEK BARU JULU\"],\n [1202020055, 1202020, \"HUTA LOBU\"],\n [1202020056, 1202020, \"LUBUK SAMBOA\"],\n [1202021001, 1202021, \"TAPUS\"],\n [1202021002, 1202021, \"SIMPANG DURIAN\"],\n [1202021014, 1202021, \"SIMPANG BAJOLE\"],\n [1202021015, 1202021, \"BANDAR LIMABUNG\"],\n [1202021016, 1202021, \"AEK MANYURUK\"],\n [1202021017, 1202021, \"SIMPANG DUKU\"],\n [1202021018, 1202021, \"SIMPANG KOJE\"],\n [1202021019, 1202021, \"PANGKALAN\"],\n [1202021020, 1202021, \"LANCAT\"],\n [1202021021, 1202021, \"SIKUMBU\"],\n [1202021022, 1202021, \"AEK GARINGGING\"],\n [1202021023, 1202021, \"PERK. SIMPANG GAMBIR\"],\n [1202021024, 1202021, \"SIMPANG GAMBIR\"],\n [1202021025, 1202021, \"LOBUNG\"],\n [1202021027, 1202021, \"KAMPUNG BARU\"],\n [1202021029, 1202021, \"BONCA BAYUON\"],\n [1202021030, 1202021, \"DALAN LIDANG\"],\n [1202021031, 1202021, \"PARBATASAN\"],\n [1202021032, 1202021, \"TANGSI ATAS\"],\n [1202022001, 1202022, \"SAMPURAN\"],\n [1202022002, 1202022, \"TANDIKEK\"],\n [1202022003, 1202022, \"GONTING\"],\n [1202022004, 1202022, \"BANGUN SAROHA\"],\n [1202022005, 1202022, \"SIMANINGGIR\"],\n [1202022006, 1202022, \"BANJAR MAGA\"],\n [1202022007, 1202022, \"RANTO NALINJANG\"],\n [1202022008, 1202022, \"SIMPANG TALAP\"],\n [1202022009, 1202022, \"MANISAK\"],\n [1202022010, 1202022, \"HUTA RAJA\"],\n [1202022011, 1202022, \"MUARA BANGKO\"],\n [1202022012, 1202022, \"HUTA BARINGIN\"],\n [1202022013, 1202022, \"RANTO PANJANG\"],\n [1202022014, 1202022, \"DUA SEPAKAT\"],\n [1202022015, 1202022, \"HUTA NAULI\"],\n [1202022016, 1202022, \"PADANGSILOJONGAN\"],\n [1202022017, 1202022, \"LUBUK KANCAH\"],\n [1202022018, 1202022, \"GUNUNG GODANG\"],\n [1202030004, 1202030, \"TOBANG\"],\n [1202030005, 1202030, \"BOTUNG\"],\n [1202030010, 1202030, \"MUARA BOTUNG\"],\n [1202030014, 1202030, \"HUTARIMBARU SM\"],\n [1202030015, 1202030, \"HUTA PUNGKUT JULU\"],\n [1202030016, 1202030, \"HUTA PUNGKUT TONGA\"],\n [1202030017, 1202030, \"USOR TOLANG\"],\n [1202030018, 1202030, \"HUTA PUNGKUT JAE\"],\n [1202030019, 1202030, \"TAMIANG\"],\n [1202030020, 1202030, \"PATIALO\"],\n [1202030021, 1202030, \"HUTA DANGKA\"],\n [1202030022, 1202030, \"MUARA PUNGKUT\"],\n [1202030023, 1202030, \"MANAMBIN\"],\n [1202030025, 1202030, \"PAGAR GUNUNG\"],\n [1202030026, 1202030, \"BATAHAN\"],\n [1202030027, 1202030, \"SIBIO-BIO\"],\n [1202030028, 1202030, \"UJUNG MARISI\"],\n [1202030029, 1202030, \"GUNUNG TUA MS\"],\n [1202030030, 1202030, \"PADANG BULAN\"],\n [1202030031, 1202030, \"MUARA SIAMBAK\"],\n [1202030032, 1202030, \"SIMANDOLAM\"],\n [1202030033, 1202030, \"MUARAPOTAN\"],\n [1202030035, 1202030, \"TOMBANG BUSTAK\"],\n [1202030036, 1202030, \"HUTA BARINGIN TB\"],\n [1202030037, 1202030, \"GADING BAIN\"],\n [1202030038, 1202030, \"SIMPANG TOLANG JULU\"],\n [1202030039, 1202030, \"HUTA PULI\"],\n [1202030040, 1202030, \"SOPO SORIK\"],\n [1202030045, 1202030, \"SIMPANG TOLANG JAE\"],\n [1202030046, 1202030, \"SAYUR MAINCAT\"],\n [1202030047, 1202030, \"PASAR KOTANOPAN\"],\n [1202030048, 1202030, \"SINGENGU JULU\"],\n [1202030049, 1202030, \"SINGENGU JAE\"],\n [1202030050, 1202030, \"HUTA PADANG SM\"],\n [1202030051, 1202030, \"GUNUNG TUA SM\"],\n [1202030052, 1202030, \"SABA DOLOK\"],\n [1202031001, 1202031, \"SIMPANG BANYAK JULU\"],\n [1202031002, 1202031, \"SIMPANG BANYAK JAE\"],\n [1202031003, 1202031, \"HABINCARAN\"],\n [1202031004, 1202031, \"HUTA PADANG UP\"],\n [1202031005, 1202031, \"HUTA GODANG\"],\n [1202031006, 1202031, \"ALAHAN KAE\"],\n [1202031007, 1202031, \"PATAHAJANG\"],\n [1202031008, 1202031, \"TOLANG\"],\n [1202031009, 1202031, \"HUTARIMBARU UP\"],\n [1202031010, 1202031, \"SIMPANG DUHU LOMBANG\"],\n [1202031011, 1202031, \"SIMPANG DUHU DOLOK\"],\n [1202031012, 1202031, \"SIMPANG PINING\"],\n [1202031013, 1202031, \"MUARA SALADI\"],\n [1202032001, 1202032, \"PASTAP JULU\"],\n [1202032002, 1202032, \"PASTAP\"],\n [1202032011, 1202032, \"LARU DOLOK\"],\n [1202032012, 1202032, \"HUTA TONGA AB\"],\n [1202032013, 1202032, \"MUARA MAIS\"],\n [1202032014, 1202032, \"PADANG SANGGAR\"],\n [1202032015, 1202032, \"ANGIN BARAT\"],\n [1202032016, 1202032, \"MUARA MAIS JAMBUR\"],\n [1202032017, 1202032, \"LARU BARINGIN\"],\n [1202032018, 1202032, \"LARU BOLAK\"],\n [1202032019, 1202032, \"PASAR LARU\"],\n [1202032020, 1202032, \"LARU LOMBANG\"],\n [1202032021, 1202032, \"TAMBANGAN JAE\"],\n [1202032022, 1202032, \"LUMBAN PASIR\"],\n [1202032023, 1202032, \"TAMBANGAN TONGA\"],\n [1202032024, 1202032, \"TAMBANGAN PASOMAN\"],\n [1202032025, 1202032, \"RAO-RAO DOLOK\"],\n [1202032026, 1202032, \"RAO-RAO LOMBANG\"],\n [1202032027, 1202032, \"PANJARINGAN\"],\n [1202032028, 1202032, \"SIMANGAMBAT TB\"],\n [1202033001, 1202033, \"PURBA BARU\"],\n [1202033002, 1202033, \"SIANTONA\"],\n [1202033003, 1202033, \"PURBA LAMO\"],\n [1202033004, 1202033, \"BANGUN PURBA\"],\n [1202033005, 1202033, \"AEK MARIAN MG\"],\n [1202033006, 1202033, \"PASAR MAGA\"],\n [1202033007, 1202033, \"MAGA DOLOK\"],\n [1202033008, 1202033, \"MAGA LOMBANG\"],\n [1202033009, 1202033, \"PANGKAT\"],\n [1202034001, 1202034, \"HUTA TINGGI\"],\n [1202034002, 1202034, \"HUTANAMALE\"],\n [1202034003, 1202034, \"HUTA BARINGIN\"],\n [1202034004, 1202034, \"SIBANGGOR JULU\"],\n [1202034005, 1202034, \"SIBANGGOR JAE\"],\n [1202034006, 1202034, \"PURBA JULU\"],\n [1202034007, 1202034, \"SIBANGGOR TONGA\"],\n [1202034008, 1202034, \"HUTA LOMBANG\"],\n [1202034009, 1202034, \"HUTA BARU\"],\n [1202034010, 1202034, \"HANDEL\"],\n [1202034011, 1202034, \"HUTA BARINGIN JULU\"],\n [1202040008, 1202040, \"RANJO BATU\"],\n [1202040009, 1202040, \"KAMPUNG PINANG\"],\n [1202040011, 1202040, \"SIMPANG MANDEPO\"],\n [1202040012, 1202040, \"BANDAR PANJANG\"],\n [1202040013, 1202040, \"PASAR MUARA SIPONGI\"],\n [1202040014, 1202040, \"SIBINAIL\"],\n [1202040015, 1202040, \"KOTO BARINGIN\"],\n [1202040016, 1202040, \"TANJUNG ALAI\"],\n [1202040017, 1202040, \"LIMAU MANIS\"],\n [1202040018, 1202040, \"BANDAR PANJANG TUO\"],\n [1202040019, 1202040, \"TAMIANG MUDO\"],\n [1202040020, 1202040, \"TANJUNG MEDAN\"],\n [1202040021, 1202040, \"AEK BOTUNG\"],\n [1202040022, 1202040, \"KOTO BORU\"],\n [1202040023, 1202040, \"MUARA KUMPULAN\"],\n [1202040024, 1202040, \"TANJUNG LARANGAN\"],\n [1202041001, 1202041, \"HUTA JULU\"],\n [1202041002, 1202041, \"HUTA PADANG\"],\n [1202041003, 1202041, \"HUTA TORAS\"],\n [1202041004, 1202041, \"PAKANTAN LOMBANG\"],\n [1202041005, 1202041, \"HUTA LANCAT\"],\n [1202041006, 1202041, \"PAKANTAN DOLOK\"],\n [1202041007, 1202041, \"SILOGUN\"],\n [1202041008, 1202041, \"HUTA GAMBIR\"],\n [1202050007, 1202050, \"AEK BANIR\"],\n [1202050018, 1202050, \"SIPAGA - PAGA\"],\n [1202050019, 1202050, \"PARBANGUNAN\"],\n [1202050028, 1202050, \"PIDOLI LOMBANG\"],\n [1202050029, 1202050, \"PIDOLI DOLOK\"],\n [1202050030, 1202050, \"DARUSSALAM\"],\n [1202050031, 1202050, \"SIOBON JULU\"],\n [1202050032, 1202050, \"KOTA SIANTAR\"],\n [1202050033, 1202050, \"PANYABUNGAN II\"],\n [1202050034, 1202050, \"PANYABUNGAN III\"],\n [1202050035, 1202050, \"PANYABUNGAN I\"],\n [1202050036, 1202050, \"PASAR HILIR\"],\n [1202050037, 1202050, \"PANYABUNGAN JULU\"],\n [1202050038, 1202050, \"PANYABUNGAN TONGA\"],\n [1202050039, 1202050, \"PANYABUNGAN JAE\"],\n [1202050040, 1202050, \"ADIAN JIOR\"],\n [1202050044, 1202050, \"GUNUNG MANAON\"],\n [1202050045, 1202050, \"KAYU JATI\"],\n [1202050046, 1202050, \"SIGALAPANG JULU\"],\n [1202050047, 1202050, \"KAMPUNG PADANG\"],\n [1202050048, 1202050, \"IPAR BONDAR\"],\n [1202050049, 1202050, \"GUNUNG TUA JAE\"],\n [1202050050, 1202050, \"MANYABAR\"],\n [1202050051, 1202050, \"SARAK MATUA\"],\n [1202050052, 1202050, \"GUNUNG BARANI\"],\n [1202050062, 1202050, \"SALAMBUE\"],\n [1202050063, 1202050, \"AEK MATA\"],\n [1202050064, 1202050, \"HUTA LOMBANG LUBIS\"],\n [1202050065, 1202050, \"PAGARAN TONGA\"],\n [1202050066, 1202050, \"SOPO BATU\"],\n [1202050067, 1202050, \"GUNUNG TUA JULU\"],\n [1202050068, 1202050, \"GUNUNG TUA TONGA\"],\n [1202050069, 1202050, \"LUMBAN PASIR\"],\n [1202050070, 1202050, \"DALAN LIDANG\"],\n [1202050071, 1202050, \"SIOBON JAE\"],\n [1202050072, 1202050, \"SIPOLU POLU\"],\n [1202050073, 1202050, \"SABA JAMBU\"],\n [1202050074, 1202050, \"PANGGORENGAN\"],\n [1202050075, 1202050, \"MANYABAR JAE\"],\n [1202051001, 1202051, \"HAYU RAJA\"],\n [1202051002, 1202051, \"KAYU LAUT\"],\n [1202051003, 1202051, \"TANO BATO\"],\n [1202051004, 1202051, \"ROBURAN LOMBANG\"],\n [1202051005, 1202051, \"ROBURAN DOLOK\"],\n [1202051006, 1202051, \"LUMBAN DOLOK\"],\n [1202051007, 1202051, \"HUTA RAJA\"],\n [1202051008, 1202051, \"HUTAIMBARU\"],\n [1202051009, 1202051, \"AEK NGALI\"],\n [1202051010, 1202051, \"HUTA JULU\"],\n [1202051011, 1202051, \"PAGARAN GALA-GALA\"],\n [1202052001, 1202052, \"LONGAT\"],\n [1202052002, 1202052, \"SIRAMBAS\"],\n [1202052003, 1202052, \"SABAJIOR\"],\n [1202052004, 1202052, \"HUTABARINGIN\"],\n [1202052005, 1202052, \"BATANG GADIS\"],\n [1202052006, 1202052, \"BARBARAN\"],\n [1202052007, 1202052, \"HUTA TONGA BARBARAN\"],\n [1202052008, 1202052, \"RUNDING\"],\n [1202052009, 1202052, \"BARBARAN JAE\"],\n [1202052010, 1202052, \"BATANG GADIS JAE\"],\n [1202053005, 1202053, \"BARINGIN JAYA\"],\n [1202053006, 1202053, \"SIMANONDONG\"],\n [1202053007, 1202053, \"RUMBIO\"],\n [1202053008, 1202053, \"MOMPANG JULU\"],\n [1202053009, 1202053, \"MOMPANG JAE\"],\n [1202053010, 1202053, \"HUTA DAMAI\"],\n [1202053011, 1202053, \"SUKA RAMAI\"],\n [1202053012, 1202053, \"JAMBUR PADANG MATINGGI\"],\n [1202053017, 1202053, \"SOPO SORIK\"],\n [1202053018, 1202053, \"TANJUNG MOMPANG\"],\n [1202053019, 1202053, \"TOR BANUA RAJA\"],\n [1202053020, 1202053, \"KAMPUNG BARU\"],\n [1202054001, 1202054, \"TEBING TINGGI\"],\n [1202054002, 1202054, \"HUTA RIMBARU\"],\n [1202054003, 1202054, \"GUNUNG BARINGIN\"],\n [1202054004, 1202054, \"TANJUNG\"],\n [1202054005, 1202054, \"AEK NABARA\"],\n [1202054006, 1202054, \"PAGUR\"],\n [1202054007, 1202054, \"RANTO NATAS\"],\n [1202054008, 1202054, \"PARDOMUAN\"],\n [1202054009, 1202054, \"SIRANGKAP\"],\n [1202054010, 1202054, \"HUTA TINGGI\"],\n [1202054011, 1202054, \"HUTA BANGUN\"],\n [1202054012, 1202054, \"PARMOMPANG\"],\n [1202054013, 1202054, \"TANJUNG JULU\"],\n [1202054014, 1202054, \"BANJAR LANCAT\"],\n [1202054015, 1202054, \"PADANG LARU\"],\n [1202055001, 1202055, \"HUTA BARGOT DOLOK\"],\n [1202055002, 1202055, \"HUTA BARGOT NAULI\"],\n [1202055003, 1202055, \"PASAR HUTA BARGOT\"],\n [1202055004, 1202055, \"BANGUN SEJATI\"],\n [1202055005, 1202055, \"HUTA BARGOT LOMBANG\"],\n [1202055006, 1202055, \"HUTA BARGOT SETIA\"],\n [1202055007, 1202055, \"MONDAN\"],\n [1202055008, 1202055, \"SAYUR MAINCAT\"],\n [1202055009, 1202055, \"SIMALAGI\"],\n [1202055010, 1202055, \"HUTARIMBARU\"],\n [1202055011, 1202055, \"KUMPULAN SETIA\"],\n [1202055012, 1202055, \"HUTANAINGKAN\"],\n [1202055013, 1202055, \"BINANGA\"],\n [1202055014, 1202055, \"SABA PADANG\"],\n [1202060001, 1202060, \"PARDAMEAN BARU\"],\n [1202060002, 1202060, \"PATILUBAN MUDIK\"],\n [1202060003, 1202060, \"KAMPUNG SAWAH\"],\n [1202060004, 1202060, \"PASAR V NATAL\"],\n [1202060005, 1202060, \"PASAR II NATAL\"],\n [1202060006, 1202060, \"PASAR I NATAL\"],\n [1202060007, 1202060, \"SETIA KARYA\"],\n [1202060008, 1202060, \"PATILUBAN HILIR\"],\n [1202060009, 1202060, \"TEGAL SARI\"],\n [1202060010, 1202060, \"PERKEBUNAN PATILUBAN\"],\n [1202060011, 1202060, \"SIKARA KARA I\"],\n [1202060012, 1202060, \"SIKARA KARA II\"],\n [1202060013, 1202060, \"PANGGAUTAN\"],\n [1202060014, 1202060, \"TALUK\"],\n [1202060015, 1202060, \"SIKARA KARA\"],\n [1202060016, 1202060, \"BUBURAN\"],\n [1202060017, 1202060, \"SIKARA KARA III\"],\n [1202060018, 1202060, \"BINTUAS\"],\n [1202060019, 1202060, \"SUNDUTAN TIGO\"],\n [1202060020, 1202060, \"SIKARA KARA IV\"],\n [1202060021, 1202060, \"BALIMBING\"],\n [1202060022, 1202060, \"PASAR III NATAL\"],\n [1202060023, 1202060, \"BONDAKASE\"],\n [1202060024, 1202060, \"TUNAS KARYA\"],\n [1202060025, 1202060, \"RUKUN JAYA\"],\n [1202060026, 1202060, \"SINUNUKAN V\"],\n [1202060027, 1202060, \"SUKA MAJU\"],\n [1202060028, 1202060, \"SASARAN\"],\n [1202060029, 1202060, \"PASAR VI NATAL\"],\n [1202060030, 1202060, \"KUN-KUN\"],\n [1202070001, 1202070, \"RANTAU PANJANG\"],\n [1202070002, 1202070, \"MANUNCANG\"],\n [1202070003, 1202070, \"LUBUK KAPUNDUNG\"],\n [1202070004, 1202070, \"HUTAIMBARU\"],\n [1202070005, 1202070, \"PANUNGGULAN\"],\n [1202070006, 1202070, \"TABUYUNG\"],\n [1202070007, 1202070, \"PASAR II SINGKUANG\"],\n [1202070008, 1202070, \"PASAR I SINGKUANG\"],\n [1202070009, 1202070, \"SIKAPAS\"],\n [1202070010, 1202070, \"BATU MUNDOM\"],\n [1202070011, 1202070, \"TAGILANG JULU\"],\n [1202070012, 1202070, \"SALI BARU\"],\n [1202070013, 1202070, \"SUKA MAJU\"],\n [1202070014, 1202070, \"LUBUK KAPUNDUNG II\"],\n [1202070015, 1202070, \"UPT TABUYUNG\"],\n [1202070016, 1202070, \"UPT SINGKUANG II\"],\n [1202070017, 1202070, \"UPT SINGKUANG I\"],\n [1202080010, 1202080, \"PINTU PADANG JULU\"],\n [1202080011, 1202080, \"HUTA BARINGIN\"],\n [1202080012, 1202080, \"PINTU PADANG JAE\"],\n [1202080013, 1202080, \"SINONOAN\"],\n [1202080014, 1202080, \"AEK MUAL\"],\n [1202080015, 1202080, \"LUMBAN DOLOK\"],\n [1202080016, 1202080, \"TANGGA BOSI I\"],\n [1202080017, 1202080, \"HUTA GODANG MUDA\"],\n [1202080020, 1202080, \"MUARA BATANG ANGKOLA\"],\n [1202080021, 1202080, \"HURABA I\"],\n [1202080022, 1202080, \"SIMANINGGIR\"],\n [1202080023, 1202080, \"SIABU\"],\n [1202080024, 1202080, \"BONAN DOLOK\"],\n [1202080025, 1202080, \"LUMBAN PINASA\"],\n [1202080026, 1202080, \"SIMANGAMBAT\"],\n [1202080027, 1202080, \"HUTA PULI\"],\n [1202080028, 1202080, \"HUTA RAJA\"],\n [1202080029, 1202080, \"SIBARUANG\"],\n [1202080030, 1202080, \"SIHEPENG\"],\n [1202080031, 1202080, \"TANJUNG SIALANG\"],\n [1202080032, 1202080, \"TANGGA BOSI II\"],\n [1202080033, 1202080, \"TANGGA BOSI III\"],\n [1202080034, 1202080, \"HURABA II\"],\n [1202080036, 1202080, \"SIHEPENG SADA\"],\n [1202080037, 1202080, \"SIHEPENG DUA\"],\n [1202080038, 1202080, \"SIHEPENG TOLU\"],\n [1202080039, 1202080, \"SIHEPENG OPAT\"],\n [1202080040, 1202080, \"SIHEPENG LIMA\"],\n [1202081006, 1202081, \"JANJI MATOGU\"],\n [1202081007, 1202081, \"MALINTANG JULU\"],\n [1202081008, 1202081, \"MALINTANG JAE\"],\n [1202081009, 1202081, \"SIDOJADI\"],\n [1202081010, 1202081, \"BANGE\"],\n [1202081011, 1202081, \"HUTA BANGUN\"],\n [1202081012, 1202081, \"PASAR BARU MALINTANG\"],\n [1202081013, 1202081, \"MALINTANG\"],\n [1202081014, 1202081, \"LAMBOU DARUL IHSAN\"],\n [1202081015, 1202081, \"BANGE NAULI\"],\n [1202081016, 1202081, \"HUTA BANGUN JAE\"],\n [1202082001, 1202082, \"BANUA RAKYAT\"],\n [1202082002, 1202082, \"HUMBANG I\"],\n [1202082003, 1202082, \"SAYUR MATUA\"],\n [1202082004, 1202082, \"TARUTUNG PANJANG\"],\n [1202082005, 1202082, \"TAMBISKI\"],\n [1202082006, 1202082, \"SIMANOSOR\"],\n [1202082007, 1202082, \"TAMBISKI NAULI\"],\n [1203010056, 1203010, \"SORIK\"],\n [1203010057, 1203010, \"PADANG KAHOMBU\"],\n [1203010058, 1203010, \"HUTA PADANG\"],\n [1203010059, 1203010, \"SORI MADINGIN PP\"],\n [1203010061, 1203010, \"HURASE\"],\n [1203010069, 1203010, \"SIGULANG LOSUNG\"],\n [1203010075, 1203010, \"PASAR LAMA\"],\n [1203010076, 1203010, \"SIGALANGAN\"],\n [1203010079, 1203010, \"JANJI MANAON\"],\n [1203010081, 1203010, \"BARGOT TOPONG\"],\n [1203010083, 1203010, \"SIDADI II\"],\n [1203010084, 1203010, \"SIDADI I\"],\n [1203010087, 1203010, \"JANJI MAULI MT\"],\n [1203010088, 1203010, \"MUARA TAIS III\"],\n [1203010090, 1203010, \"PARGUMBANGAN\"],\n [1203010094, 1203010, \"PANGARIBUAN\"],\n [1203010099, 1203010, \"AEK NAULI\"],\n [1203010106, 1203010, \"MUARA TAIS I\"],\n [1203010107, 1203010, \"BINTUJU\"],\n [1203010108, 1203010, \"HUTA HOLBUNG\"],\n [1203010109, 1203010, \"MUARA TAIS II\"],\n [1203010110, 1203010, \"BASILAM BARU\"],\n [1203010111, 1203010, \"SIPANGKO\"],\n [1203010114, 1203010, \"BENTENG HURABA\"],\n [1203010115, 1203010, \"KELURAHAN PINTU PADANG I\"],\n [1203010116, 1203010, \"KELURAHAN PINTU PADANG II\"],\n [1203010117, 1203010, \"BANGUN PURBA\"],\n [1203010118, 1203010, \"SITAMPA\"],\n [1203010119, 1203010, \"PASIR MATOGU\"],\n [1203010120, 1203010, \"SIBULELE MUARA\"],\n [1203010121, 1203010, \"AEK GUNUNG\"],\n [1203010122, 1203010, \"SORIMANAON\"],\n [1203010123, 1203010, \"TATENGGER\"],\n [1203010124, 1203010, \"MUARA PURBA NAULI\"],\n [1203010125, 1203010, \"HUTA TONGA\"],\n [1203010126, 1203010, \"TAHALAK UJUNG GADING\"],\n [1203011031, 1203011, \"HUTA PARDOMUAN\"],\n [1203011032, 1203011, \"AEK BADAK JULU\"],\n [1203011033, 1203011, \"AEK BADAK JAE\"],\n [1203011038, 1203011, \"AEK LIBUNG\"],\n [1203011043, 1203011, \"BULU GADING\"],\n [1203011044, 1203011, \"BANGE\"],\n [1203011047, 1203011, \"TOLANG JAE\"],\n [1203011048, 1203011, \"MONDANG\"],\n [1203011049, 1203011, \"JANJI MAULI BARINGIN\"],\n [1203011050, 1203011, \"TOLANG JULU\"],\n [1203011051, 1203011, \"SIPANGE GODANG\"],\n [1203011052, 1203011, \"SIPANGE JULU\"],\n [1203011053, 1203011, \"SIALANG\"],\n [1203011058, 1203011, \"SOMANGGAL PARMONANGAN\"],\n [1203011059, 1203011, \"LUMBAN HUAYAN\"],\n [1203011060, 1203011, \"SAYUR MATINGGI\"],\n [1203011061, 1203011, \"SILAIYA\"],\n [1203011062, 1203011, \"SILAIYA TANJUNG LEUK\"],\n [1203011063, 1203011, \"SIPANGE SIUNJAM\"],\n [1203012001, 1203012, \"SIMANINGGIR\"],\n [1203012002, 1203012, \"KOTA TUA\"],\n [1203012003, 1203012, \"HAREAN\"],\n [1203012004, 1203012, \"LUMBAN RATUS\"],\n [1203012005, 1203012, \"SISOMA\"],\n [1203012006, 1203012, \"INGUL JAE\"],\n [1203012007, 1203012, \"LUMBAN JABI-JABI\"],\n [1203012008, 1203012, \"PURBATUA\"],\n [1203012009, 1203012, \"HUTARAJA\"],\n [1203012010, 1203012, \"PANABARI HUTA TONGA\"],\n [1203012011, 1203012, \"SITUMBA\"],\n [1203012012, 1203012, \"BATU HORPAK\"],\n [1203012013, 1203012, \"AEK KAHOMBU\"],\n [1203012014, 1203012, \"TANJUNG MEDAN\"],\n [1203012015, 1203012, \"AEK PARUPUK\"],\n [1203012016, 1203012, \"PANINDOAN\"],\n [1203012017, 1203012, \"AEK UNCIM\"],\n [1203070051, 1203070, \"PARGARUTAN JAE\"],\n [1203070054, 1203070, \"SIJUNGKANG\"],\n [1203070058, 1203070, \"HURABA\"],\n [1203070060, 1203070, \"HUTA GINJANG\"],\n [1203070067, 1203070, \"PARGARUTAN JULU\"],\n [1203070070, 1203070, \"PARGARUTAN TONGA\"],\n [1203070076, 1203070, \"PANOMPUAN JAE\"],\n [1203070080, 1203070, \"LANTOSAN ROGAS\"],\n [1203070094, 1203070, \"PASAR PARGARUTAN\"],\n [1203070095, 1203070, \"PARGARUTAN DOLOK\"],\n [1203070096, 1203070, \"PAL XI\"],\n [1203070097, 1203070, \"MARISI\"],\n [1203070098, 1203070, \"PANOMPUAN\"],\n [1203070099, 1203070, \"BATANG TURA SIRUMAMBE\"],\n [1203070100, 1203070, \"SANGGAPATI\"],\n [1203080001, 1203080, \"KELURAHAN PARDOMUAN\"],\n [1203080002, 1203080, \"SIHUIK KUIK\"],\n [1203080003, 1203080, \"AEK NATAS\"],\n [1203080004, 1203080, \"GUNUNG BARINGIN\"],\n [1203080005, 1203080, \"DOLOK GODANG\"],\n [1203080006, 1203080, \"KELURAHAN SIMARPINGGAN\"],\n [1203080007, 1203080, \"KELURAHAN TAPIAN NAULI\"],\n [1203080008, 1203080, \"TANDIHAT\"],\n [1203080009, 1203080, \"SIHOPUR\"],\n [1203080010, 1203080, \"PERK. SIMARPINGGAN\"],\n [1203080011, 1203080, \"SIAMPORIK DOLOK\"],\n [1203080012, 1203080, \"SIBONG BONG\"],\n [1203080013, 1203080, \"SIAMPORIK LOMBANG\"],\n [1203080014, 1203080, \"KELURAHAN NAPA\"],\n [1203080015, 1203080, \"PINTU PADANG\"],\n [1203080016, 1203080, \"SINYIOR\"],\n [1203080017, 1203080, \"SITUMBAGA\"],\n [1203090004, 1203090, \"SIUHOM\"],\n [1203090005, 1203090, \"SISUNDUNG\"],\n [1203090006, 1203090, \"PARSALAKAN\"],\n [1203090012, 1203090, \"SIALOGO\"],\n [1203090018, 1203090, \"LEMBAH LUBUK RAYA\"],\n [1203090019, 1203090, \"SITARA TOIT\"],\n [1203090020, 1203090, \"LOBU LAYAN SIGORDANG\"],\n [1203090021, 1203090, \"AEK NABARA\"],\n [1203090022, 1203090, \"SIBANGKUA\"],\n [1203090023, 1203090, \"SIGUMURU\"],\n [1203090024, 1203090, \"SITINJAK\"],\n [1203090025, 1203090, \"SIMATORKIS SISOMA\"],\n [1203090026, 1203090, \"PANOBASAN\"],\n [1203090027, 1203090, \"PANOBASAN LOMBANG\"],\n [1203091001, 1203091, \"MALOMBU\"],\n [1203091002, 1203091, \"RIANIATE\"],\n [1203091003, 1203091, \"SANGKUNUR\"],\n [1203091004, 1203091, \"TINDOAN LAUT\"],\n [1203091005, 1203091, \"SIMATANIARI\"],\n [1203091006, 1203091, \"BATU GODANG\"],\n [1203091007, 1203091, \"AEK PARDOMUAN\"],\n [1203091008, 1203091, \"BANDAR TARUTUNG\"],\n [1203091009, 1203091, \"PERKEBUNAN\"],\n [1203091010, 1203091, \"SIMATOHIR\"],\n [1203100001, 1203100, \"HAPESONG LAMA\"],\n [1203100002, 1203100, \"PERK HAPESONG\"],\n [1203100003, 1203100, \"PADANG LANCAT\"],\n [1203100009, 1203100, \"SIANGGUNAN\"],\n [1203100010, 1203100, \"HUTABARU\"],\n [1203100017, 1203100, \"SIPENGGENG\"],\n [1203100018, 1203100, \"HAPESONG BARU\"],\n [1203100019, 1203100, \"PERKEBUNAN SIGALA-GALA\"],\n [1203100025, 1203100, \"PERK BATANG TORU\"],\n [1203100026, 1203100, \"TELO\"],\n [1203100027, 1203100, \"WEK III BATANG TORU\"],\n [1203100028, 1203100, \"WEK II\"],\n [1203100029, 1203100, \"WEK I\"],\n [1203100035, 1203100, \"WEK IV BATANG TORU\"],\n [1203100036, 1203100, \"NAPA\"],\n [1203100037, 1203100, \"AEK PINING\"],\n [1203100038, 1203100, \"SUMURAN\"],\n [1203100058, 1203100, \"BATU HULA\"],\n [1203100061, 1203100, \"HUTA GODANG\"],\n [1203100062, 1203100, \"GAROGA\"],\n [1203100063, 1203100, \"BATU HORING\"],\n [1203100064, 1203100, \"AEK NGADOL NAULI\"],\n [1203100065, 1203100, \"SISIPA\"],\n [1203101031, 1203101, \"HURABA\"],\n [1203101041, 1203101, \"GUNUNG BINANGA\"],\n [1203101043, 1203101, \"MARANCAR GODANG\"],\n [1203101050, 1203101, \"SIMANINGGIR\"],\n [1203101051, 1203101, \"MARANCAR JULU\"],\n [1203101057, 1203101, \"HAU NATAS\"],\n [1203101066, 1203101, \"AEK NABARA\"],\n [1203101067, 1203101, \"GAPUK TUA\"],\n [1203101068, 1203101, \"PASAR SEMPURNA\"],\n [1203101069, 1203101, \"AEK SABAON\"],\n [1203101070, 1203101, \"SUGI\"],\n [1203101071, 1203101, \"TANJUNG DOLOK\"],\n [1203102001, 1203102, \"MUARA UPU\"],\n [1203102002, 1203102, \"BANDAR HAPINIS\"],\n [1203102003, 1203102, \"HUTA RAJA\"],\n [1203102004, 1203102, \"MUARA MANOMPAS\"],\n [1203102006, 1203102, \"PARDAMEAN\"],\n [1203102007, 1203102, \"TERAPUNG RAYA\"],\n [1203102008, 1203102, \"MUARA HUTA RAJA\"],\n [1203102009, 1203102, \"MUARA AMPOLU\"],\n [1203102010, 1203102, \"SIMARLELAN\"],\n [1203110005, 1203110, \"TOLANG\"],\n [1203110008, 1203110, \"JANJI MAULI\"],\n [1203110028, 1203110, \"BARINGIN\"],\n [1203110032, 1203110, \"PARAU SORAT\"],\n [1203110034, 1203110, \"SIALA GUNDI\"],\n [1203110036, 1203110, \"BARNANG KOLING\"],\n [1203110039, 1203110, \"PARGARUTAN\"],\n [1203110040, 1203110, \"PANAUNGAN\"],\n [1203110046, 1203110, \"PANGARIBUAN\"],\n [1203110055, 1203110, \"PADANG BUJUR\"],\n [1203110056, 1203110, \"SIMANINGGIR\"],\n [1203110057, 1203110, \"PARAN PADANG\"],\n [1203110059, 1203110, \"PASAR SIPIROK\"],\n [1203110062, 1203110, \"PANGURABAAN\"],\n [1203110066, 1203110, \"BAGAS LOMBANG\"],\n [1203110070, 1203110, \"PARAN JULU\"],\n [1203110071, 1203110, \"BULU MARIO\"],\n [1203110072, 1203110, \"BATU SATAIL\"],\n [1203110086, 1203110, \"RAMBA SIHASUR\"],\n [1203110093, 1203110, \"SIBADOAR\"],\n [1203110095, 1203110, \"HASANG MARSADA\"],\n [1203110097, 1203110, \"BUNGA BONDAR\"],\n [1203110099, 1203110, \"SAMPEAN\"],\n [1203110101, 1203110, \"SIALAMAN\"],\n [1203110102, 1203110, \"KILANG PAPAN\"],\n [1203110103, 1203110, \"SABA BATANG MIHA\"],\n [1203110104, 1203110, \"SITUMBA\"],\n [1203110105, 1203110, \"SITUMBA JULU\"],\n [1203110106, 1203110, \"BATANG TURA JULU\"],\n [1203110107, 1203110, \"BATANG TURA\"],\n [1203110108, 1203110, \"PARAN DOLOK MARDOMU\"],\n [1203110109, 1203110, \"SAROGODUNG\"],\n [1203110110, 1203110, \"DOLOK SORDANG\"],\n [1203110111, 1203110, \"DOLOK SORDANG JULU\"],\n [1203110112, 1203110, \"HUTA SUHUT\"],\n [1203110113, 1203110, \"SIPIROK GODANG\"],\n [1203110114, 1203110, \"AEK BATANG PAYA\"],\n [1203110115, 1203110, \"MARSADA\"],\n [1203110116, 1203110, \"LUAT LOMBANG\"],\n [1203110117, 1203110, \"PAHAE AEK SAGALA\"],\n [1203120031, 1203120, \"SIPOGU\"],\n [1203120032, 1203120, \"DALIHAN NATOLU\"],\n [1203120033, 1203120, \"PARDOMUAN\"],\n [1203120034, 1203120, \"ARSE NAULI\"],\n [1203120035, 1203120, \"PINAGAR\"],\n [1203120036, 1203120, \"NANGGAR JATI\"],\n [1203120037, 1203120, \"AEK HAMINJON\"],\n [1203120038, 1203120, \"NANGGAR JATI HUTA PADANG\"],\n [1203120039, 1203120, \"NATAMBANG RONCITAN\"],\n [1203120040, 1203120, \"LANCAT\"],\n [1203160115, 1203160, \"PINTU PADANG MANDALASENA\"],\n [1203160116, 1203160, \"SILANGKITANG TAMBISKI\"],\n [1203160117, 1203160, \"PARAU SORAT SITABO TABO\"],\n [1203160118, 1203160, \"SUNGE SIGIRING GIRING\"],\n [1203160119, 1203160, \"ULU MAMIS SITUNGGALING\"],\n [1203160120, 1203160, \"SIPAGIMBAR\"],\n [1203160121, 1203160, \"SIDAPDAP SIMANOSOR\"],\n [1203160122, 1203160, \"AEK SIMOTUNG\"],\n [1203160123, 1203160, \"SAUT BANUA SIMANOSOR\"],\n [1203160124, 1203160, \"BATANG PARSULUMAN\"],\n [1203160125, 1203160, \"DAMPARAN HAUNATAS\"],\n [1203160126, 1203160, \"SIMANGAMBAT\"],\n [1203160127, 1203160, \"SOMBA DEBATA PURBA\"],\n [1203160128, 1203160, \"PADANG MANDAILING GARUGUR\"],\n [1203161037, 1203161, \"TAPUS GODANG\"],\n [1203161045, 1203161, \"LOBUTAYAS\"],\n [1203161070, 1203161, \"SIGOLANG\"],\n [1203161071, 1203161, \"BIRU\"],\n [1203161080, 1203161, \"SIHULAMBU\"],\n [1203161091, 1203161, \"AEK URAT\"],\n [1203161092, 1203161, \"HUTA BARU\"],\n [1203161093, 1203161, \"AEK LATONG\"],\n [1203161094, 1203161, \"TAPUS SIPAGABU\"],\n [1203161095, 1203161, \"TOLANG\"],\n [1203161096, 1203161, \"SILANGKITANG\"],\n [1203161097, 1203161, \"GORAHUT\"],\n [1204010002, 1204010, \"PINANG SORI\"],\n [1204010003, 1204010, \"GUNUNG MARIJO\"],\n [1204010004, 1204010, \"SIHAPORAS\"],\n [1204010005, 1204010, \"SITONONG BANGUN\"],\n [1204010006, 1204010, \"TOGA BASIR\"],\n [1204010007, 1204010, \"PINANG BARU\"],\n [1204010008, 1204010, \"PARJALIHOTAN BARU\"],\n [1204010009, 1204010, \"DANAU PANDAN\"],\n [1204010010, 1204010, \"SORI NAULI\"],\n [1204010011, 1204010, \"ALBION PRANCIS\"],\n [1204011001, 1204011, \"SITARDAS\"],\n [1204011002, 1204011, \"JAGO-JAGO\"],\n [1204011003, 1204011, \"HUTABALANG\"],\n [1204011004, 1204011, \"LOPIAN\"],\n [1204011005, 1204011, \"AEK HORSIK\"],\n [1204011006, 1204011, \"KEBUN PISANG\"],\n [1204011007, 1204011, \"GUNUNG KELAMBU\"],\n [1204011008, 1204011, \"LUBUK AMPOLU\"],\n [1204011009, 1204011, \"PAGARAN HONAS\"],\n [1204020004, 1204020, \"MOMBANG BORU\"],\n [1204020005, 1204020, \"ANGGOLI\"],\n [1204020006, 1204020, \"SIBABANGUN\"],\n [1204020009, 1204020, \"SIMANOSOR\"],\n [1204020010, 1204020, \"MUARA SIBUNTUON\"],\n [1204020011, 1204020, \"SIBIO BIO\"],\n [1204020012, 1204020, \"HUTAGURGUR\"],\n [1204021001, 1204021, \"LUMUT\"],\n [1204021002, 1204021, \"LUMUT NAULI\"],\n [1204021003, 1204021, \"LUMUT MAJU\"],\n [1204021004, 1204021, \"AEK GAMBIR\"],\n [1204021005, 1204021, \"MASUNDUNG\"],\n [1204021006, 1204021, \"SIALOGO\"],\n [1204022001, 1204022, \"TEBING TINGGI\"],\n [1204022002, 1204022, \"PULO PAKAT II\"],\n [1204022003, 1204022, \"SIHAPAS\"],\n [1204022004, 1204022, \"PULO PAKAT\"],\n [1204022005, 1204022, \"JANJI MARIA\"],\n [1204022006, 1204022, \"SIHADATUON\"],\n [1204030001, 1204030, \"HAJORAN\"],\n [1204030010, 1204030, \"AEK TOLANG\"],\n [1204030011, 1204030, \"PANDAN\"],\n [1204030012, 1204030, \"SIBULUAN INDAH\"],\n [1204030013, 1204030, \"LUBUK TUKKO\"],\n [1204030015, 1204030, \"SIBULUAN NAULI\"],\n [1204030016, 1204030, \"AEK SITIO-TIO\"],\n [1204030017, 1204030, \"SIBULUAN RAYA\"],\n [1204030018, 1204030, \"KALANGAN\"],\n [1204030019, 1204030, \"PANDAN WANGI\"],\n [1204030020, 1204030, \"SIBULUAN TERPADU\"],\n [1204030021, 1204030, \"SITIO-TIO HILIR\"],\n [1204030022, 1204030, \"SIBULUAN BARU\"],\n [1204030023, 1204030, \"LUBUK TUKKO BARU\"],\n [1204030024, 1204030, \"SIHAPORAS NAULI\"],\n [1204030025, 1204030, \"PASAR BARU\"],\n [1204030026, 1204030, \"HAJORAN INDAH\"],\n [1204030027, 1204030, \"MUARA NIBUNG\"],\n [1204030028, 1204030, \"AEK GARUT\"],\n [1204030029, 1204030, \"BUDI LUHUR\"],\n [1204030030, 1204030, \"KALANGAN INDAH\"],\n [1204030031, 1204030, \"MANGGA DUA\"],\n [1204031001, 1204031, \"SIPANGE\"],\n [1204031002, 1204031, \"HUTANABOLON\"],\n [1204031003, 1204031, \"SIGIRING GIRING\"],\n [1204031004, 1204031, \"SAIT KALANGAN II\"],\n [1204031005, 1204031, \"AEK BONTAR\"],\n [1204031006, 1204031, \"TAPIAN NAULI/SAURMANGGITA\"],\n [1204031007, 1204031, \"BONALUMBAN\"],\n [1204031008, 1204031, \"TUKKA\"],\n [1204031009, 1204031, \"AEK TOLANG INDUK\"],\n [1204032001, 1204032, \"SIBULUAN NALAMBOK\"],\n [1204032002, 1204032, \"SIPAN\"],\n [1204032003, 1204032, \"SARUDIK\"],\n [1204032004, 1204032, \"PONDOK BATU\"],\n [1204032005, 1204032, \"PASIR BIDANG\"],\n [1204040001, 1204040, \"TAPIAN NAULI I\"],\n [1204040005, 1204040, \"MELA DOLOK\"],\n [1204040006, 1204040, \"ALOBAN\"],\n [1204040007, 1204040, \"TAPIAN NAULI III\"],\n [1204040008, 1204040, \"TAPIAN NAULI II\"],\n [1204040009, 1204040, \"TAPIAN NAULI IV\"],\n [1204040011, 1204040, \"MELA I\"],\n [1204040012, 1204040, \"MELA II\"],\n [1204040013, 1204040, \"BAIR\"],\n [1204041001, 1204041, \"BONAN DOLOK\"],\n [1204041002, 1204041, \"RAMPA\"],\n [1204041003, 1204041, \"MARDAME\"],\n [1204041004, 1204041, \"NAULI\"],\n [1204041005, 1204041, \"NAGA TIMBUL\"],\n [1204041006, 1204041, \"SIMANINGGIR\"],\n [1204050001, 1204050, \"UNTE MUNGKUR IV\"],\n [1204050003, 1204050, \"UNTE MUNGKUR III\"],\n [1204050004, 1204050, \"UNTE MUNGKUR II\"],\n [1204050006, 1204050, \"UNTE MUNGKUR I\"],\n [1204050007, 1204050, \"SATAHI NAULI\"],\n [1204050008, 1204050, \"HURLANG MUARA NAULI\"],\n [1204050009, 1204050, \"KOLANG NAULI\"],\n [1204050010, 1204050, \"PASAR ONAN HURLANG\"],\n [1204050011, 1204050, \"SIPAKPAHI AEK LOBU\"],\n [1204050012, 1204050, \"HUDOPA NAULI\"],\n [1204050013, 1204050, \"RAWA MAKMUR\"],\n [1204050014, 1204050, \"MAKARTI NAULI\"],\n [1204050015, 1204050, \"PARGARINGAN\"],\n [1204050016, 1204050, \"SIMARPINGGAN\"],\n [1204060002, 1204060, \"BOTOT\"],\n [1204060003, 1204060, \"SORKAM\"],\n [1204060004, 1204060, \"PARGARUTAN\"],\n [1204060005, 1204060, \"TARUTUNG BOLAK\"],\n [1204060006, 1204060, \"GONTING MAHE\"],\n [1204060009, 1204060, \"PARDAMEAN\"],\n [1204060010, 1204060, \"PELITA\"],\n [1204060011, 1204060, \"FAJAR\"],\n [1204060012, 1204060, \"PEARAJA\"],\n [1204060013, 1204060, \"NAI POS POS BARAT\"],\n [1204060021, 1204060, \"RIANIATE\"],\n [1204060023, 1204060, \"DOLOK PANTIS\"],\n [1204060024, 1204060, \"TELUK ROBAN\"],\n [1204060025, 1204060, \"SORKAM KIRI\"],\n [1204060026, 1204060, \"SORKAM TENGAH\"],\n [1204060027, 1204060, \"HITE URAT\"],\n [1204060028, 1204060, \"PAGARAN JULU\"],\n [1204060029, 1204060, \"PANANGGAHAN\"],\n [1204060030, 1204060, \"SIHAPAS\"],\n [1204060031, 1204060, \"NAULI\"],\n [1204060032, 1204060, \"MUARA NAULI\"],\n [1204061001, 1204061, \"MADUMA\"],\n [1204061002, 1204061, \"PAHIEME\"],\n [1204061003, 1204061, \"PASAR SORKAM\"],\n [1204061004, 1204061, \"SORKAM KANAN\"],\n [1204061005, 1204061, \"SIPEA PEA\"],\n [1204061006, 1204061, \"AEK RASO\"],\n [1204061007, 1204061, \"PASARIBU TOBING JAE\"],\n [1204061008, 1204061, \"PAHIEME II\"],\n [1204061009, 1204061, \"BINASI\"],\n [1204061010, 1204061, \"SIDIKALANG\"],\n [1204061011, 1204061, \"SORKAM KANAN\"],\n [1204061012, 1204061, \"MADANI\"],\n [1204062001, 1204062, \"SUGA-SUGA\"],\n [1204062002, 1204062, \"SUKA MAJU\"],\n [1204062003, 1204062, \"AEK NADUA\"],\n [1204062004, 1204062, \"PASARIBU TOBING\"],\n [1204062005, 1204062, \"MAKMUR\"],\n [1204062006, 1204062, \"SIMARGARAP\"],\n [1204062007, 1204062, \"SIDALING\"],\n [1204062008, 1204062, \"SIPAKPAHI\"],\n [1204062009, 1204062, \"PO SIMARGARAP\"],\n [1204070010, 1204070, \"BUKIT PATUPANGAN\"],\n [1204070011, 1204070, \"KEDAI GEDANG\"],\n [1204070012, 1204070, \"SIGAMBO GAMBO\"],\n [1204070013, 1204070, \"PADANG MASIANG\"],\n [1204070014, 1204070, \"KAMPUNG SOLOK\"],\n [1204070015, 1204070, \"PASAR BATU GERIGIS\"],\n [1204070016, 1204070, \"PASAR TERANDAM\"],\n [1204070017, 1204070, \"KINALI\"],\n [1204070018, 1204070, \"UJUNG BATU\"],\n [1204070019, 1204070, \"KAMPUNG MUDIK\"],\n [1204070020, 1204070, \"GABUNGAN HASANG\"],\n [1204070024, 1204070, \"AEK DAKKA\"],\n [1204070036, 1204070, \"BUNGO TANJUNG\"],\n [1204071001, 1204071, \"BARAMBANG\"],\n [1204071002, 1204071, \"SOSOR GADONG\"],\n [1204071003, 1204071, \"SIANTAR CA\"],\n [1204071004, 1204071, \"MUARA BOLAK\"],\n [1204071005, 1204071, \"SIANTAR DOLOK\"],\n [1204071006, 1204071, \"BARINGIN\"],\n [1204071007, 1204071, \"HUTA TOMBAK\"],\n [1204071008, 1204071, \"SIBINTANG\"],\n [1204071009, 1204071, \"UNTE BOANG\"],\n [1204072001, 1204072, \"LADANG TENGAH\"],\n [1204072002, 1204072, \"URATAN\"],\n [1204072003, 1204072, \"LOBU TUA\"],\n [1204072004, 1204072, \"BONDAR SIHUDON II\"],\n [1204072005, 1204072, \"BONDAR SIHUDON I\"],\n [1204072006, 1204072, \"RINA BOLAK\"],\n [1204072007, 1204072, \"SOSOR GONTING\"],\n [1204072008, 1204072, \"SIRAMI RAMIAN\"],\n [1204072009, 1204072, \"PANGARIBUAN\"],\n [1204072010, 1204072, \"SIJUNGKANG\"],\n [1204072011, 1204072, \"SOGAR\"],\n [1204072012, 1204072, \"SIGOLANG\"],\n [1204072013, 1204072, \"SITIRIS TIRIS\"],\n [1204072014, 1204072, \"SAWAH LAMO\"],\n [1204073001, 1204073, \"PANANGGAHAN\"],\n [1204073002, 1204073, \"PURBA TUA\"],\n [1204073003, 1204073, \"HUTAGINJANG\"],\n [1204073004, 1204073, \"SIHORBO\"],\n [1204073005, 1204073, \"PARIK SINOMBA\"],\n [1204073008, 1204073, \"SIHARBANGAN\"],\n [1204080008, 1204080, \"MANDUAMAS LAMA\"],\n [1204080009, 1204080, \"PASAR ONAN MANDUAMAS\"],\n [1204080011, 1204080, \"BINJOHARA\"],\n [1204080012, 1204080, \"PAGARAN NAULI\"],\n [1204080013, 1204080, \"SARMA NAULI\"],\n [1204080014, 1204080, \"SARAGIH\"],\n [1204080015, 1204080, \"TUMBA\"],\n [1204080016, 1204080, \"TUMBA JAE\"],\n [1204080017, 1204080, \"LAE MONONG\"],\n [1204080018, 1204080, \"MANDUAMAS BARU\"],\n [1204080019, 1204080, \"SARAGIH TIMUR\"],\n [1204080020, 1204080, \"SARAGIH BARAT\"],\n [1204080021, 1204080, \"BINJOHARA URUK\"],\n [1204080022, 1204080, \"BINJOHARA BARU\"],\n [1204080023, 1204080, \"TAMBAHAN NANJUR\"],\n [1204080024, 1204080, \"PARSIHOTANGAN\"],\n [1204080025, 1204080, \"TUMBA NAULI\"],\n [1204080026, 1204080, \"PERLUASAN\"],\n [1204080027, 1204080, \"MUARA TAPUS\"],\n [1204080028, 1204080, \"PAGARAN BARU\"],\n [1204081001, 1204081, \"SAMPANG MARUHUR\"],\n [1204081002, 1204081, \"SIORDANG\"],\n [1204081003, 1204081, \"PARDOMUAN\"],\n [1204081004, 1204081, \"SIMPANG III LAE BINGKE\"],\n [1204081005, 1204081, \"BAJAMAS\"],\n [1204081006, 1204081, \"MASNAULI\"],\n [1204081007, 1204081, \"SIGODUNG\"],\n [1204081008, 1204081, \"MUARA ORE\"],\n [1205030001, 1205030, \"MANALU PURBA\"],\n [1205030002, 1205030, \"MANALU DOLOK\"],\n [1205030003, 1205030, \"MANALU\"],\n [1205030004, 1205030, \"HUTA JULU\"],\n [1205030005, 1205030, \"AEK RAJA\"],\n [1205030006, 1205030, \"HUTA TINGGI\"],\n [1205030007, 1205030, \"LOBU SUNUT\"],\n [1205030008, 1205030, \"SISORDAK\"],\n [1205030009, 1205030, \"HUTATUA\"],\n [1205030010, 1205030, \"PERTENGAHAN\"],\n [1205030011, 1205030, \"HUTAJULU PARBALIK\"],\n [1205030012, 1205030, \"HORISAN RANGGITGIT\"],\n [1205030013, 1205030, \"PURBA DOLOK\"],\n [1205030014, 1205030, \"BATUARIMO\"],\n [1205040001, 1205040, \"PAGARAN LAMBUNG I\"],\n [1205040002, 1205040, \"SIBALANGA\"],\n [1205040003, 1205040, \"PAGARAN LAMBUNG II\"],\n [1205040004, 1205040, \"PAGARAN LAMBUNG III\"],\n [1205040005, 1205040, \"PAGARAN PISANG\"],\n [1205040006, 1205040, \"ADIANKOTING\"],\n [1205040007, 1205040, \"DOLOK NAULI\"],\n [1205040008, 1205040, \"BANUAJI IV\"],\n [1205040009, 1205040, \"BANUAJI I\"],\n [1205040010, 1205040, \"BANUAJI II\"],\n [1205040011, 1205040, \"PANSUR BATU\"],\n [1205040012, 1205040, \"PARDOMUAN NAULI\"],\n [1205040013, 1205040, \"SIANTAR NAI POSPOS\"],\n [1205040014, 1205040, \"PAGARAN LAMBUNG IV\"],\n [1205040015, 1205040, \"PANSUR BATU II\"],\n [1205040016, 1205040, \"PANSUR BATU I\"],\n [1205050001, 1205050, \"RURA JULU TORUAN\"],\n [1205050002, 1205050, \"RURA JULU DOLOK\"],\n [1205050003, 1205050, \"SIMANUNGKALIT\"],\n [1205050004, 1205050, \"HUTAURUK\"],\n [1205050005, 1205050, \"SITUMEANG HABINSARAN\"],\n [1205050006, 1205050, \"SITUMEANG HASUNDUTAN\"],\n [1205050007, 1205050, \"LOBUSINGKAM\"],\n [1205050008, 1205050, \"PAGAR BATU\"],\n [1205050009, 1205050, \"SIPAHUTAR\"],\n [1205050010, 1205050, \"HUTA RAJA\"],\n [1205050011, 1205050, \"TAPIAN NAULI\"],\n [1205050012, 1205050, \"HUTA RAJA HASUNDUTAN\"],\n [1205050013, 1205050, \"HUTA RAJA SIMANUNGKALIT\"],\n [1205050014, 1205050, \"HUTAURUK HASUNDUTAN\"],\n [1205060001, 1205060, \"SIANDOR ANDOR\"],\n [1205060002, 1205060, \"HUTAPEA BANUAREA\"],\n [1205060008, 1205060, \"PARBUBU PEA\"],\n [1205060009, 1205060, \"PARBUBU II\"],\n [1205060010, 1205060, \"PARBUBU DOLOK\"],\n [1205060011, 1205060, \"HUTA TORUAN VIII\"],\n [1205060012, 1205060, \"PARBUBU I\"],\n [1205060013, 1205060, \"HUTATORUAN I\"],\n [1205060019, 1205060, \"SOSUNGGULON\"],\n [1205060020, 1205060, \"PARBAJU TORUAN\"],\n [1205060021, 1205060, \"HAPOLTAHAN\"],\n [1205060022, 1205060, \"HUTA TORUAN IV\"],\n [1205060023, 1205060, \"AEK SIAN SIMUN\"],\n [1205060024, 1205060, \"HUTA TORUAN V\"],\n [1205060025, 1205060, \"HUTA TORUAN VI\"],\n [1205060026, 1205060, \"HUTA TORUAN XI\"],\n [1205060027, 1205060, \"HUTA TORUAN IX\"],\n [1205060028, 1205060, \"HUTA TORUAN X\"],\n [1205060029, 1205060, \"HUTA TORUAN VII\"],\n [1205060030, 1205060, \"PARTALI TORUAN\"],\n [1205060033, 1205060, \"PARBAJU TONGA\"],\n [1205060034, 1205060, \"SIMAMORA\"],\n [1205060035, 1205060, \"HUTAGALUNG SIWALUOMPU\"],\n [1205060036, 1205060, \"SIRAJA OLOAN\"],\n [1205060037, 1205060, \"HUTAURUK\"],\n [1205060038, 1205060, \"PARBAJU JULU\"],\n [1205060039, 1205060, \"PARTALI JULU\"],\n [1205060040, 1205060, \"SITAMPURUNG\"],\n [1205060041, 1205060, \"JAMBUR NAULI\"],\n [1205060042, 1205060, \"SIHUJUR\"],\n [1205060043, 1205060, \"HUTATORUAN III\"],\n [1205061001, 1205061, \"PANSUR NAPITU\"],\n [1205061002, 1205061, \"LOBUHOLE\"],\n [1205061003, 1205061, \"SITOMPUL\"],\n [1205061004, 1205061, \"SANGKARAN\"],\n [1205061005, 1205061, \"ENDA PORTIBI\"],\n [1205061006, 1205061, \"SI RAJA HUTAGALUNG\"],\n [1205061007, 1205061, \"LUMBAN SIAGIAN JAE\"],\n [1205061008, 1205061, \"LUMBAN SIAGIAN JULU\"],\n [1205061009, 1205061, \"SIMORANGKIR HABINSARAN\"],\n [1205061010, 1205061, \"SIMORANGKIR JULU\"],\n [1205061011, 1205061, \"SIMANAMPANG\"],\n [1205061012, 1205061, \"SIDAGAL\"],\n [1205070001, 1205070, \"PANGURDOTAN\"],\n [1205070002, 1205070, \"LUMBAN GAOL\"],\n [1205070003, 1205070, \"LUMBAN TONGA\"],\n [1205070004, 1205070, \"SITOLU AMA\"],\n [1205070005, 1205070, \"SIMANAMPANG\"],\n [1205070006, 1205070, \"LOBU PINING\"],\n [1205070007, 1205070, \"HUTA BARAT\"],\n [1205070008, 1205070, \"LUMBAN DOLOK\"],\n [1205070009, 1205070, \"SIMARDANGIANG\"],\n [1205070010, 1205070, \"SIBAGANDING\"],\n [1205070011, 1205070, \"LUMBAN GARAGA\"],\n [1205070012, 1205070, \"JANJI MATOGU\"],\n [1205070013, 1205070, \"LUMBAN JAEAN\"],\n [1205070014, 1205070, \"ONAN HASANG\"],\n [1205070015, 1205070, \"PANTIS\"],\n [1205070016, 1205070, \"LONTUNG DOLOK\"],\n [1205070017, 1205070, \"SIMATANIARI\"],\n [1205070018, 1205070, \"SIMASOM TORUAN\"],\n [1205070019, 1205070, \"SIMASOM\"],\n [1205080013, 1205080, \"SUKAMAJU\"],\n [1205080019, 1205080, \"SITOLU OMPU\"],\n [1205080020, 1205080, \"SIOPAT BAHAL\"],\n [1205080021, 1205080, \"PASAR SARULLA\"],\n [1205080022, 1205080, \"NAHORNOP MARSADA\"],\n [1205080023, 1205080, \"SETIA\"],\n [1205080025, 1205080, \"PARSAORAN SAMOSIR\"],\n [1205080026, 1205080, \"PARDOMUAN NAINGGOLAN\"],\n [1205080027, 1205080, \"PARSAORAN NAINGGOLAN\"],\n [1205080028, 1205080, \"PARDAMEAN NAINGGOLAN\"],\n [1205080029, 1205080, \"SIGURUNG GURUNG\"],\n [1205080030, 1205080, \"SILANGKITANG\"],\n [1205080031, 1205080, \"TORDOLOK NAULI\"],\n [1205081001, 1205081, \"BONANI DOLOK\"],\n [1205081002, 1205081, \"SELAMAT\"],\n [1205081003, 1205081, \"PURBATUA\"],\n [1205081004, 1205081, \"PARDOMUAN JANJI ANGKOLA\"],\n [1205081005, 1205081, \"PARSAORAN JANJI ANGKOLA\"],\n [1205081006, 1205081, \"JANJI NAULI\"],\n [1205081007, 1205081, \"SITOLU BAHAL\"],\n [1205081008, 1205081, \"ROBEAN\"],\n [1205081009, 1205081, \"HUTA NAGODANG\"],\n [1205081010, 1205081, \"SIDUA BAHAL\"],\n [1205081011, 1205081, \"SIBULAN BULAN\"],\n [1205082001, 1205082, \"SILOSUNG\"],\n [1205082002, 1205082, \"SIMANGUMBAN JAE\"],\n [1205082003, 1205082, \"DOLOK SANGGUL\"],\n [1205082004, 1205082, \"AEK NABARA\"],\n [1205082005, 1205082, \"SIMANGUMBAN JULU\"],\n [1205082006, 1205082, \"LOBU SIHIM\"],\n [1205082007, 1205082, \"DOLOK SAUT\"],\n [1205082008, 1205082, \"PARDOMUAN\"],\n [1205090001, 1205090, \"PARLOMBUAN\"],\n [1205090002, 1205090, \"LUMBAN SINAGA\"],\n [1205090003, 1205090, \"PANSUR NATOLU\"],\n [1205090004, 1205090, \"SILANTOM JULU\"],\n [1205090005, 1205090, \"SILANTOM TONGA\"],\n [1205090006, 1205090, \"RAHUT BOSI\"],\n [1205090007, 1205090, \"BATUNA DUA\"],\n [1205090008, 1205090, \"SAMPAGUL\"],\n [1205090009, 1205090, \"HARIANJA\"],\n [1205090010, 1205090, \"BATU MANUMPAK\"],\n [1205090011, 1205090, \"PARSI BARUNGAN\"],\n [1205090012, 1205090, \"PAKPAHAN\"],\n [1205090013, 1205090, \"NAJUMAMBE\"],\n [1205090014, 1205090, \"PURBATUA\"],\n [1205090015, 1205090, \"LUMBAN SORMIN\"],\n [1205090016, 1205090, \"SIBINGKE\"],\n [1205090017, 1205090, \"GODUNG BOROTAN\"],\n [1205090018, 1205090, \"PARRATUSAN\"],\n [1205090019, 1205090, \"SIGOTOM JULU\"],\n [1205090020, 1205090, \"PARSORMINAN I\"],\n [1205090021, 1205090, \"SILANTOM JAE\"],\n [1205090022, 1205090, \"PADANG PARSADAAN\"],\n [1205090023, 1205090, \"RAHUT BOSI ONAN\"],\n [1205090024, 1205090, \"HUTARAJA\"],\n [1205090025, 1205090, \"SIGOTOM TIMUR\"],\n [1205090026, 1205090, \"SIGOTOM DOLOK NAULI\"],\n [1205100001, 1205100, \"SIBAGANDING\"],\n [1205100002, 1205100, \"PADANG SIANDOMANG\"],\n [1205100003, 1205100, \"PARINSORAN PANGORIAN\"],\n [1205100004, 1205100, \"AEK TANGGA\"],\n [1205100005, 1205100, \"SIMPANG BOLON\"],\n [1205100006, 1205100, \"GAROGA SIBARGOT\"],\n [1205100007, 1205100, \"GONTING GAROGA\"],\n [1205100008, 1205100, \"SIBALANGA\"],\n [1205100009, 1205100, \"PARSOSORAN\"],\n [1205100010, 1205100, \"LONTUNG JAE I\"],\n [1205100011, 1205100, \"LONTUNG JAE II\"],\n [1205100012, 1205100, \"GONTING SALAK\"],\n [1205100013, 1205100, \"PARMANUHAN\"],\n [1205110001, 1205110, \"ONAN RUNGGU I\"],\n [1205110002, 1205110, \"SIPAHUTAR III\"],\n [1205110003, 1205110, \"SIABAL ABAL I\"],\n [1205110004, 1205110, \"SIABAL ABAL II\"],\n [1205110005, 1205110, \"AEK NAULI II\"],\n [1205110006, 1205110, \"AEK NAULI III\"],\n [1205110007, 1205110, \"AEK NAULI I\"],\n [1205110008, 1205110, \"SABUNGAN NIHUTA V\"],\n [1205110009, 1205110, \"SIABAL ABAL III\"],\n [1205110010, 1205110, \"SIPAHUTAR II\"],\n [1205110011, 1205110, \"SIPAHUTAR I\"],\n [1205110012, 1205110, \"ONAN RUNGGU III\"],\n [1205110013, 1205110, \"ONAN RUNGGU II\"],\n [1205110014, 1205110, \"ONAN RUNGGU IV\"],\n [1205110015, 1205110, \"SABUNGAN NIHUTA I\"],\n [1205110016, 1205110, \"SABUNGAN NIHUTA II\"],\n [1205110017, 1205110, \"SABUNGAN NIHUTA III\"],\n [1205110018, 1205110, \"SABUNGAN NIHUTA IV\"],\n [1205110019, 1205110, \"TAPIAN NAULI II\"],\n [1205110020, 1205110, \"TAPIAN NAULI III\"],\n [1205110021, 1205110, \"TAPIAN NAULI I\"],\n [1205110022, 1205110, \"SIABAL ABAL IV\"],\n [1205110023, 1205110, \"AEK NAULI IV\"],\n [1205110024, 1205110, \"SIABAL-ABAL VI\"],\n [1205110025, 1205110, \"SIABAL-ABAL V\"],\n [1205120001, 1205120, \"LUMBAN TONGA TONGA\"],\n [1205120002, 1205120, \"PANIARAN\"],\n [1205120003, 1205120, \"BAHAL BATU III\"],\n [1205120004, 1205120, \"BAHAL BATU II\"],\n [1205120005, 1205120, \"BAHAL BATU I\"],\n [1205120006, 1205120, \"SITABO-TABO\"],\n [1205120007, 1205120, \"SIBORONG-BORONG I\"],\n [1205120008, 1205120, \"SIARO\"],\n [1205120009, 1205120, \"SITAMPURUNG\"],\n [1205120010, 1205120, \"PASAR SIBORONG-BORONG\"],\n [1205120011, 1205120, \"POHAN TONGA\"],\n [1205120012, 1205120, \"LOBU SIREGAR II\"],\n [1205120013, 1205120, \"HUTABULU\"],\n [1205120014, 1205120, \"LOBU SIREGAR I\"],\n [1205120015, 1205120, \"POHAN JAE\"],\n [1205120016, 1205120, \"POHAN JULU\"],\n [1205120017, 1205120, \"PARIK SABUNGAN\"],\n [1205120018, 1205120, \"SIBORONG-BORONG II\"],\n [1205120019, 1205120, \"SIGUMBANG\"],\n [1205120020, 1205120, \"SITABOTABO TORUAN\"],\n [1205120021, 1205120, \"SILAIT-LAIT\"],\n [1205130001, 1205130, \"SIBARAGAS\"],\n [1205130002, 1205130, \"LUMBAN MOTUNG\"],\n [1205130003, 1205130, \"BANUA LUHU\"],\n [1205130004, 1205130, \"LUMBAN JULU\"],\n [1205130005, 1205130, \"LUBIS\"],\n [1205130006, 1205130, \"LUMBAN INA INA\"],\n [1205130007, 1205130, \"PAGARAN\"],\n [1205130008, 1205130, \"PARHORBOAN\"],\n [1205130009, 1205130, \"SIPULTAK\"],\n [1205130010, 1205130, \"DOLOK SARIBU\"],\n [1205130011, 1205130, \"LUMBAN SILINTONG\"],\n [1205130012, 1205130, \"SIMAMORA HASIBUAN\"],\n [1205130013, 1205130, \"SIPULTAK DOLOK\"],\n [1205130014, 1205130, \"HASIBUAN\"],\n [1205180007, 1205180, \"HUTA LONTUNG\"],\n [1205180008, 1205180, \"BARIBA NIAEK\"],\n [1205180009, 1205180, \"SILALI TORUAN\"],\n [1205180010, 1205180, \"HUTANA GODANG\"],\n [1205180011, 1205180, \"UNTE MUNGKUR\"],\n [1205180012, 1205180, \"BATU BINUMBUN\"],\n [1205180013, 1205180, \"SIMATUPANG\"],\n [1205180014, 1205180, \"ARITONANG\"],\n [1205180015, 1205180, \"DOLOK MARTUMBUR\"],\n [1205180016, 1205180, \"SITANGGOR\"],\n [1205180017, 1205180, \"HUTA GINJANG\"],\n [1205180018, 1205180, \"SILANDO\"],\n [1205180019, 1205180, \"PAPANDE\"],\n [1205180020, 1205180, \"SIBANDANG\"],\n [1205180021, 1205180, \"SAMPURAN\"],\n [1206030004, 1206030, \"AEK BOLON JULU\"],\n [1206030005, 1206030, \"AEK BOLON JAE\"],\n [1206030006, 1206030, \"SIBORUON\"],\n [1206030007, 1206030, \"HUTAGAOL PEATALUM\"],\n [1206030008, 1206030, \"BONAN DOLOK II\"],\n [1206030009, 1206030, \"HUTA NAMORA\"],\n [1206030010, 1206030, \"HUTA DAME\"],\n [1206030011, 1206030, \"BONAN DOLOK I\"],\n [1206030012, 1206030, \"BONAN DOLOK III\"],\n [1206030013, 1206030, \"SIBUNTUON\"],\n [1206030014, 1206030, \"LUMBAN GORAT\"],\n [1206030015, 1206030, \"SIANIPAR SIHAIL HAIL\"],\n [1206030016, 1206030, \"SILALAHI PAGAR BATU\"],\n [1206030017, 1206030, \"HINALANG BAGASAN\"],\n [1206030018, 1206030, \"SANGKAR NIHUTA\"],\n [1206030019, 1206030, \"PARDEDE ONAN\"],\n [1206030020, 1206030, \"NAPITUPULU BAGASAN\"],\n [1206030021, 1206030, \"BALIGE III\"],\n [1206030022, 1206030, \"BALIGE II\"],\n [1206030023, 1206030, \"PAINDOAN\"],\n [1206030024, 1206030, \"PARSURATAN\"],\n [1206030025, 1206030, \"HUTA BULU MEJAN\"],\n [1206030026, 1206030, \"SARIBURAJA JANJI MARIA\"],\n [1206030027, 1206030, \"BARU ARA\"],\n [1206030028, 1206030, \"MATIO\"],\n [1206030029, 1206030, \"LUMBAN PEA\"],\n [1206030030, 1206030, \"LUMBAN GAOL\"],\n [1206030031, 1206030, \"SIBOLA HOTANGSAS\"],\n [1206030032, 1206030, \"LUMBAN BUL BUL\"],\n [1206030033, 1206030, \"BALIGE I\"],\n [1206030034, 1206030, \"LUMBAN DOLOK\"],\n [1206030035, 1206030, \"LONGAT\"],\n [1206030037, 1206030, \"LUMBAN SILINTONG\"],\n [1206030038, 1206030, \"LUMBAN PEA TIMUR\"],\n [1206030039, 1206030, \"TAMBUNAN SUNGE\"],\n [1206031001, 1206031, \"TANGGA BATU BARAT\"],\n [1206031002, 1206031, \"TANGGA BATU TIMUR\"],\n [1206031003, 1206031, \"GURGUR AEK RAJA\"],\n [1206031004, 1206031, \"LINTONG NIHUTA\"],\n [1206031005, 1206031, \"TARA BUNGA\"],\n [1206031006, 1206031, \"M E A T\"],\n [1206040001, 1206040, \"HAUNATAS I\"],\n [1206040002, 1206040, \"SINTONG MARNIPI\"],\n [1206040003, 1206040, \"SIDULANG\"],\n [1206040004, 1206040, \"HAUNATAS II\"],\n [1206040005, 1206040, \"SIBARANI NASAMPULU\"],\n [1206040006, 1206040, \"SITANGKOLA\"],\n [1206040007, 1206040, \"SIBUEA\"],\n [1206040008, 1206040, \"SIMATIBUNG\"],\n [1206040009, 1206040, \"PARDOMUAN NAULI\"],\n [1206040010, 1206040, \"UJUNG TANDUK\"],\n [1206040011, 1206040, \"PINTU BOSI\"],\n [1206040012, 1206040, \"GASA RIBU\"],\n [1206040013, 1206040, \"PASAR LAGU BOTI\"],\n [1206040014, 1206040, \"ARUAN\"],\n [1206040015, 1206040, \"LUMBAN BAGASAN\"],\n [1206040016, 1206040, \"TINGGIR NIPASIR\"],\n [1206040017, 1206040, \"OMPU RAJA HUTAPEA\"],\n [1206040018, 1206040, \"SITOLUAMA\"],\n [1206040019, 1206040, \"PARDINGGARAN\"],\n [1206040020, 1206040, \"LUMBAN BINANGA\"],\n [1206040021, 1206040, \"SIRAJA GORAT\"],\n [1206040022, 1206040, \"OMPU RAJA HUTAPEA TIMUR\"],\n [1206040023, 1206040, \"OMPU RAJA HATULIAN\"],\n [1206050004, 1206050, \"LUMBAN RAU BARAT\"],\n [1206050005, 1206050, \"LUMBAN RAU SELATAN\"],\n [1206050009, 1206050, \"PARSOBURAN TENGAH\"],\n [1206050010, 1206050, \"PARSOBURAN BARAT\"],\n [1206050011, 1206050, \"LUMBAN BALIK\"],\n [1206050012, 1206050, \"LUMBAN PINASA\"],\n [1206050013, 1206050, \"PANAMPARAN\"],\n [1206050014, 1206050, \"LUMBAN RUHAP\"],\n [1206050015, 1206050, \"LUMBAN PEA\"],\n [1206050016, 1206050, \"HITETANO\"],\n [1206050018, 1206050, \"LOBU HOLE\"],\n [1206050019, 1206050, \"BATU NABOLON\"],\n [1206050020, 1206050, \"LUMBAN GAOL\"],\n [1206050021, 1206050, \"TORNAGODANG\"],\n [1206050022, 1206050, \"TAONMARISI\"],\n [1206050023, 1206050, \"PAGAR BATU\"],\n [1206050024, 1206050, \"SIBUNTUON\"],\n [1206050025, 1206050, \"AEK ULOK\"],\n [1206050026, 1206050, \"PANGUJUNGAN\"],\n [1206050027, 1206050, \"LUMBAN PINASA SAROHA\"],\n [1206050028, 1206050, \"LUMBAN LINTONG\"],\n [1206050029, 1206050, \"PARARUNGAN\"],\n [1206051001, 1206051, \"PANGURURAN\"],\n [1206051002, 1206051, \"PARDOMUAN NAULI\"],\n [1206051003, 1206051, \"LINTONG\"],\n [1206051004, 1206051, \"NATUMINGKA\"],\n [1206051005, 1206051, \"RIANIATE\"],\n [1206051006, 1206051, \"AEK UNSIN\"],\n [1206051007, 1206051, \"PURBA TUA\"],\n [1206051008, 1206051, \"JANJI MARIA\"],\n [1206051009, 1206051, \"PANGURURAN II\"],\n [1206051010, 1206051, \"PANGURURAN III\"],\n [1206051011, 1206051, \"RIGANJANG\"],\n [1206051012, 1206051, \"PASAR BORBOR\"],\n [1206051013, 1206051, \"LUMBAN SEWA\"],\n [1206051014, 1206051, \"HUTA GURGUR\"],\n [1206051015, 1206051, \"SIMARE\"],\n [1206052001, 1206052, \"LUMBAN RAU TENGAH\"],\n [1206052002, 1206052, \"LUMBAN RAU TIMUR\"],\n [1206052003, 1206052, \"LUMBAN RAU UTARA\"],\n [1206052004, 1206052, \"NAPAJORING\"],\n [1206052005, 1206052, \"SIPAGABU\"],\n [1206052006, 1206052, \"LIAT TONDUNG\"],\n [1206052007, 1206052, \"BATU MANUMPAK\"],\n [1206052008, 1206052, \"LUMBAN RAU TENGGARA\"],\n [1206052009, 1206052, \"CINTA DAMAI\"],\n [1206052010, 1206052, \"SIANTARASA\"],\n [1206060001, 1206060, \"PINTU BATU\"],\n [1206060002, 1206060, \"PARDOMUAN\"],\n [1206060003, 1206060, \"OMBUR\"],\n [1206060004, 1206060, \"PARSAMBILAN\"],\n [1206060005, 1206060, \"SIGODANG TUA\"],\n [1206060006, 1206060, \"SINTA DAME\"],\n [1206060007, 1206060, \"NATOLUTALI\"],\n [1206060008, 1206060, \"DALIHAN NATOLU\"],\n [1206060009, 1206060, \"HUTA GURGUR II\"],\n [1206060010, 1206060, \"HUTA GURGUR I\"],\n [1206060011, 1206060, \"SITORANG I\"],\n [1206060012, 1206060, \"HUTA NAMORA\"],\n [1206060021, 1206060, \"SILAEN\"],\n [1206060022, 1206060, \"LUMBAN DOLOK\"],\n [1206060023, 1206060, \"NAPITUPULU\"],\n [1206060024, 1206060, \"HUTAGAOL SIHUJUR\"],\n [1206060025, 1206060, \"SIBIDE BARAT\"],\n [1206060026, 1206060, \"SIBIDE\"],\n [1206060027, 1206060, \"MERANTI BARAT\"],\n [1206060028, 1206060, \"SIMANOBAK\"],\n [1206060029, 1206060, \"MARBULANG\"],\n [1206060030, 1206060, \"SIRINGKIRON\"],\n [1206060031, 1206060, \"PANINDII\"],\n [1206061001, 1206061, \"SIGUMPAR DANGSINA\"],\n [1206061002, 1206061, \"DOLOK JIOR\"],\n [1206061003, 1206061, \"SIGUMPAR\"],\n [1206061004, 1206061, \"SIGUMPAR JULU\"],\n [1206061005, 1206061, \"MAJU\"],\n [1206061006, 1206061, \"MARSANGAP\"],\n [1206061007, 1206061, \"NAULI\"],\n [1206061008, 1206061, \"SITUA-TUA\"],\n [1206061009, 1206061, \"SIGUMPAR BARAT\"],\n [1206061010, 1206061, \"BANUA HUTA\"],\n [1206070010, 1206070, \"PARPAREAN I\"],\n [1206070011, 1206070, \"PARPAREAN II\"],\n [1206070012, 1206070, \"PARPAREAN III\"],\n [1206070013, 1206070, \"PARPAREAN IV\"],\n [1206070014, 1206070, \"GALA GALA PANGKAILAN\"],\n [1206070026, 1206070, \"PASAR PORSEA\"],\n [1206070027, 1206070, \"PATANE III\"],\n [1206070028, 1206070, \"PATANE IV\"],\n [1206070029, 1206070, \"PATANE II\"],\n [1206070030, 1206070, \"PATANE I\"],\n [1206070032, 1206070, \"AMBORGANG\"],\n [1206070033, 1206070, \"NALELA\"],\n [1206070034, 1206070, \"SILAMOSIK I\"],\n [1206070037, 1206070, \"LUMBAN GURNING\"],\n [1206070038, 1206070, \"PATANE V\"],\n [1206070039, 1206070, \"RAUT BOSI\"],\n [1206070040, 1206070, \"SIMPANG SIGURAGURA\"],\n [1206071001, 1206071, \"AMBAR HALIM\"],\n [1206071002, 1206071, \"PINTU POHAN DOLOK\"],\n [1206071003, 1206071, \"PINTU POHAN PASAR\"],\n [1206071004, 1206071, \"HALADO\"],\n [1206071008, 1206071, \"MERANTI TIMUR\"],\n [1206071009, 1206071, \"MERANTI TENGAH\"],\n [1206071010, 1206071, \"MERANTI UTARA\"],\n [1206072001, 1206072, \"NARUMONDA V\"],\n [1206072002, 1206072, \"NARUMONDA VI\"],\n [1206072003, 1206072, \"NARUMONDA VII\"],\n [1206072004, 1206072, \"NARUMONDA VIII\"],\n [1206072005, 1206072, \"SIANTAR SITIOTIO\"],\n [1206072006, 1206072, \"NARUMONDA I\"],\n [1206072007, 1206072, \"NARUMONDA II\"],\n [1206072008, 1206072, \"NARUMONDA III\"],\n [1206072009, 1206072, \"NARUMONDA IV\"],\n [1206072010, 1206072, \"SIANTAR TONGA TONGA II\"],\n [1206072011, 1206072, \"SIANTAR DANGSINA\"],\n [1206072012, 1206072, \"SIANTAR TONGA TONGA I\"],\n [1206072013, 1206072, \"SIANTAR SIGORDANG\"],\n [1206072014, 1206072, \"SIANTAR TONGA TONGA III\"],\n [1206073001, 1206073, \"SIANTAR UTARA\"],\n [1206073002, 1206073, \"DOLOK NAULI\"],\n [1206073003, 1206073, \"JONGGI MANULUS\"],\n [1206073004, 1206073, \"BANJAR GANJANG\"],\n [1206073005, 1206073, \"PANGOMBUSAN\"],\n [1206073006, 1206073, \"LUMBAN SITORUS\"],\n [1206073007, 1206073, \"BIUS GU BARAT\"],\n [1206073008, 1206073, \"LUMBAN HUALA\"],\n [1206073009, 1206073, \"TANGGA BATU II\"],\n [1206073010, 1206073, \"TANGGA BATU I\"],\n [1206073011, 1206073, \"LUMBAN MANURUNG\"],\n [1206080018, 1206080, \"SIBARUANG\"],\n [1206080025, 1206080, \"JANGGA TORUAN\"],\n [1206080026, 1206080, \"JANGGA DOLOK\"],\n [1206080027, 1206080, \"HATINGGIAN\"],\n [1206080028, 1206080, \"LINTONG JULU\"],\n [1206080029, 1206080, \"PASAR LUMBAN JULU\"],\n [1206080030, 1206080, \"SIONGGANG UTARA\"],\n [1206080031, 1206080, \"SIONGGANG TENGAH\"],\n [1206080032, 1206080, \"SIONGGANG SELATAN\"],\n [1206080033, 1206080, \"HUTANAMORA\"],\n [1206080034, 1206080, \"JONGGI NIHUTA\"],\n [1206080035, 1206080, \"AEK NATOLU JAYA\"],\n [1206081001, 1206081, \"SIREGAR AEK NALAS\"],\n [1206081002, 1206081, \"SIGAOL BARAT\"],\n [1206081003, 1206081, \"SIGAOL TIMUR\"],\n [1206081004, 1206081, \"MAROM\"],\n [1206081005, 1206081, \"SIBUNTUON\"],\n [1206081006, 1206081, \"DOLOK SARIBU JANJI MATOGU\"],\n [1206081007, 1206081, \"PARTOR JANJI MATOGU\"],\n [1206081008, 1206081, \"PARBAGASAN JANJI MATOGU\"],\n [1206081009, 1206081, \"PARTORUAN JANJI MATOGU\"],\n [1206081010, 1206081, \"PARHABINSARAN JANJI MATOGU\"],\n [1206081011, 1206081, \"LUMBAN BINANGA\"],\n [1206081012, 1206081, \"LUMBAN HOLBUNG LUMBAN NABOLON\"],\n [1206081013, 1206081, \"LUMBAN NABOLON\"],\n [1206081015, 1206081, \"DOLOK NAGODANG\"],\n [1206081016, 1206081, \"PARIK\"],\n [1206081017, 1206081, \"DOLOK SARIBU LUMBAN NABOLON\"],\n [1206081018, 1206081, \"SAMPUARA\"],\n [1206082001, 1206082, \"SIRUNGKUNGON\"],\n [1206082002, 1206082, \"PARSAORAN SIBISA\"],\n [1206082003, 1206082, \"PARDAMEAN SIBISA\"],\n [1206082004, 1206082, \"SIGAPITON\"],\n [1206082005, 1206082, \"HORSIK\"],\n [1206082006, 1206082, \"MOTUNG\"],\n [1206082007, 1206082, \"PARSAORAN AJIBATA\"],\n [1206082008, 1206082, \"PARDOMUAN AJIBATA\"],\n [1206082009, 1206082, \"PARDAMEAN AJIBATA\"],\n [1206082010, 1206082, \"PARDOMUAN MOTUNG\"],\n [1206083001, 1206083, \"SIBADIHON\"],\n [1206083002, 1206083, \"NAGA TIMBUL\"],\n [1206083003, 1206083, \"HARUNGGUAN\"],\n [1206083004, 1206083, \"LUMBAN LOBU\"],\n [1206083005, 1206083, \"SINAR SABUNGAN\"],\n [1206083006, 1206083, \"SIHIONG\"],\n [1206083008, 1206083, \"SILAMOSIK II\"],\n [1206083011, 1206083, \"NAGA TIMBUL TIMUR\"],\n [1206083012, 1206083, \"LUMBAN SANGKALAN\"],\n [1206083013, 1206083, \"PARTORUAN LUMBAN LOBU\"],\n [1206083014, 1206083, \"PARDOLOK LUMBAN LOBU\"],\n [1206083015, 1206083, \"SILOMBU\"],\n [1207050001, 1207050, \"TANJUNG SIRAM\"],\n [1207050002, 1207050, \"S SATU AEK NABARA\"],\n [1207050003, 1207050, \"KAMPUNG DALAM\"],\n [1207050004, 1207050, \"LINGGA TIGA\"],\n [1207050005, 1207050, \"BANDAR TINGGI\"],\n [1207050006, 1207050, \"S TIGA AEK NABARA\"],\n [1207050007, 1207050, \"S EMPAT AEK NABARA\"],\n [1207050008, 1207050, \"S LIMA AEK NABARA\"],\n [1207050009, 1207050, \"S ENAM AEK NABARA\"],\n [1207050010, 1207050, \"N DELAPAN AEK NABARA\"],\n [1207050011, 1207050, \"N LIMA AEK NABARA\"],\n [1207050012, 1207050, \"S DUA AEK NABARA\"],\n [1207050013, 1207050, \"N TIGA AEK NABARA\"],\n [1207050014, 1207050, \"N DUA AEK NABARA\"],\n [1207050015, 1207050, \"N EMPAT AEK NABARA\"],\n [1207050016, 1207050, \"PERBAUNGAN\"],\n [1207050017, 1207050, \"N TUJUH AEK NABARA\"],\n [1207050018, 1207050, \"MERANTI\"],\n [1207050019, 1207050, \"GUNUNG SELAMAT\"],\n [1207050020, 1207050, \"N ENAM AEK NABARA\"],\n [1207050021, 1207050, \"PEMATANG SELENG\"],\n [1207050022, 1207050, \"PONDOK BATU\"],\n [1207050023, 1207050, \"EMPLASMEN AEK NABARA\"],\n [1207050024, 1207050, \"N SATU AEK NABARA\"],\n [1207070001, 1207070, \"SIDORUKUN\"],\n [1207070002, 1207070, \"PERKEBUNAN PANGKATAN\"],\n [1207070003, 1207070, \"TEBING TINGGI PANGKATAN\"],\n [1207070004, 1207070, \"KAMPUNG PADANG\"],\n [1207070005, 1207070, \"TANJUNG HARAPAN\"],\n [1207070006, 1207070, \"PANGKATAN\"],\n [1207070007, 1207070, \"SENNAH\"],\n [1207080001, 1207080, \"SIBARGOT\"],\n [1207080002, 1207080, \"BANDAR KUMBUL\"],\n [1207080003, 1207080, \"TANJUNG MEDAN\"],\n [1207080004, 1207080, \"JANJI\"],\n [1207080005, 1207080, \"AFDELING I RANTAUPRAPAT\"],\n [1207080006, 1207080, \"AEK BURU SELATAN\"],\n [1207080007, 1207080, \"AFDELING II RANTAUPRAPAT\"],\n [1207080008, 1207080, \"KAMPUNG BARU\"],\n [1207080009, 1207080, \"TEBING LINGGAHARA\"],\n [1207080010, 1207080, \"TEBING LINGGAHARA BARU\"],\n [1207130001, 1207130, \"PERKEBUNAN SENNAH\"],\n [1207130002, 1207130, \"KAMPUNG BILAH\"],\n [1207130003, 1207130, \"PERKEBUNAN BILAH\"],\n [1207130004, 1207130, \"NEGERI LAMA\"],\n [1207130005, 1207130, \"NEGERI LAMA SEBERANG\"],\n [1207130006, 1207130, \"PERKEBUNAN NEGERI LAMA\"],\n [1207130007, 1207130, \"SIDOMULYO\"],\n [1207130008, 1207130, \"NEGERI BARU\"],\n [1207130009, 1207130, \"SEI TAMPANG\"],\n [1207130010, 1207130, \"SEI TAROLAT\"],\n [1207130011, 1207130, \"SEI KASIH\"],\n [1207130012, 1207130, \"TANJUNG HALOBAN\"],\n [1207130013, 1207130, \"SELAT BESAR\"],\n [1207140001, 1207140, \"SEI SENTOSA\"],\n [1207140002, 1207140, \"AJAMU\"],\n [1207140003, 1207140, \"MERANTI PAHAM\"],\n [1207140004, 1207140, \"TELUK SENTOSA\"],\n [1207140005, 1207140, \"CINTA MAKMUR\"],\n [1207140006, 1207140, \"TANJUNG SARANG ELANG\"],\n [1207140007, 1207140, \"SEI JAWI JAWI\"],\n [1207150001, 1207150, \"SEI SIARTI\"],\n [1207150002, 1207150, \"SELAT BETING\"],\n [1207150003, 1207150, \"SEI PELANCANG\"],\n [1207150004, 1207150, \"BAGAN BILAH\"],\n [1207150005, 1207150, \"SEI RAKYAT\"],\n [1207150006, 1207150, \"SEI NAHODARIS\"],\n [1207150007, 1207150, \"TELAGA SUKA\"],\n [1207150008, 1207150, \"LABUHAN BILIK\"],\n [1207150009, 1207150, \"SEI MERDEKA\"],\n [1207150010, 1207150, \"PASAR TIGA\"],\n [1207160001, 1207160, \"SEI PENGGANTUNGAN\"],\n [1207160002, 1207160, \"SEI LUMUT\"],\n [1207160003, 1207160, \"SEI TAWAR\"],\n [1207160004, 1207160, \"SEI SANGGUL\"],\n [1207160005, 1207160, \"SEI BEROMBANG\"],\n [1207160006, 1207160, \"SEI SAKAT\"],\n [1207160007, 1207160, \"SEI BARU\"],\n [1207160008, 1207160, \"WONOSARI\"],\n [1207210001, 1207210, \"LOBUSONA\"],\n [1207210002, 1207210, \"SIDOREJO\"],\n [1207210003, 1207210, \"SIGAMBAL\"],\n [1207210004, 1207210, \"DANOBALE\"],\n [1207210005, 1207210, \"PERDAMEAN\"],\n [1207210006, 1207210, \"UJUNG BANDAR\"],\n [1207210007, 1207210, \"BAKARAN BATU\"],\n [1207210008, 1207210, \"URUNG KOMPAS\"],\n [1207210009, 1207210, \"SIOLDENGAN\"],\n [1207220001, 1207220, \"SIRANDORUNG\"],\n [1207220002, 1207220, \"PADANG BULAN\"],\n [1207220003, 1207220, \"KARTINI\"],\n [1207220004, 1207220, \"RANTAUPRAPAT\"],\n [1207220005, 1207220, \"CENDANA\"],\n [1207220006, 1207220, \"BINA RAGA\"],\n [1207220007, 1207220, \"SIRINGO-RINGO\"],\n [1207220008, 1207220, \"AEK PAING\"],\n [1207220009, 1207220, \"PADANG MATINGGI\"],\n [1207220010, 1207220, \"PULO PADANG\"],\n [1208010001, 1208010, \"HUTA PADANG\"],\n [1208010002, 1208010, \"HUTA BAGASAN\"],\n [1208010003, 1208010, \"BANDAR PASIR MANDOGE\"],\n [1208010004, 1208010, \"SUKA MAKMUR\"],\n [1208010005, 1208010, \"SEI KOPAS\"],\n [1208010006, 1208010, \"SILAU JAWA\"],\n [1208010007, 1208010, \"SEI NADORAS\"],\n [1208010008, 1208010, \"TOMUAN HOLBUNG\"],\n [1208010009, 1208010, \"GOTTING SIDODADI\"],\n [1208020013, 1208020, \"BANDAR PULAU PEKAN\"],\n [1208020014, 1208020, \"PADANG PULAU\"],\n [1208020015, 1208020, \"PERKEBUNAN PADANG PULAU\"],\n [1208020016, 1208020, \"BUNTU MARAJA\"],\n [1208020017, 1208020, \"GONTING MALAHA\"],\n [1208020018, 1208020, \"PERKEBUNAN AEK TARUM\"],\n [1208020019, 1208020, \"GAJAH SAKTI\"],\n [1208020020, 1208020, \"GUNUNG BERKAT\"],\n [1208020021, 1208020, \"HUTA RAO\"],\n [1208020022, 1208020, \"AEK NAGALI\"],\n [1208021001, 1208021, \"TANGGA\"],\n [1208021002, 1208021, \"LOBU RAPPA\"],\n [1208021003, 1208021, \"MARJANJI ACEH\"],\n [1208021004, 1208021, \"AEK BAMBAN\"],\n [1208021005, 1208021, \"PERKEBUNAN BANDAR PULAU\"],\n [1208021006, 1208021, \"AEK SONGSONGAN\"],\n [1208021007, 1208021, \"PERKEBUNAN BANDAR SELAMAT\"],\n [1208021008, 1208021, \"MEKAR MARJANJI\"],\n [1208021009, 1208021, \"SITUNJAK\"],\n [1208022001, 1208022, \"PERKEBUNAN AEK NAGAGA\"],\n [1208022002, 1208022, \"RAHUNING\"],\n [1208022003, 1208022, \"PERKEBUNAN GUNUNG MELAYU\"],\n [1208022004, 1208022, \"GUNUNG MELAYU\"],\n [1208022005, 1208022, \"BATU ANAM\"],\n [1208022006, 1208022, \"RAHUNING I\"],\n [1208022007, 1208022, \"RAHUNING II\"],\n [1208030013, 1208030, \"BANGUN\"],\n [1208030014, 1208030, \"PERSATUAN\"],\n [1208030015, 1208030, \"PERKEBUNAN TUNGGUL 45\"],\n [1208030016, 1208030, \"ORIKA\"],\n [1208030017, 1208030, \"BARU\"],\n [1208030018, 1208030, \"MANIS\"],\n [1208030019, 1208030, \"PULAU RAKYAT PEKAN\"],\n [1208030020, 1208030, \"PULAU RAKYAT TUA\"],\n [1208030021, 1208030, \"SEI PIRING\"],\n [1208030022, 1208030, \"OFA/PADANG MAHONDANG\"],\n [1208030023, 1208030, \"PADANG MAHONDANG\"],\n [1208030024, 1208030, \"MEKAR SARI\"],\n [1208031007, 1208031, \"SENGON SARI\"],\n [1208031008, 1208031, \"LOBU JIUR\"],\n [1208031009, 1208031, \"AEK LOBA PEKAN\"],\n [1208031010, 1208031, \"AEK LOBA AFDELING I\"],\n [1208031011, 1208031, \"ALANG BONBON\"],\n [1208031012, 1208031, \"RAWA SARI\"],\n [1208031013, 1208031, \"AEK LOBA\"],\n [1208032001, 1208032, \"AEK BANGE\"],\n [1208032002, 1208032, \"LEDONG BARAT\"],\n [1208032003, 1208032, \"LEDONG TIMUR\"],\n [1208032004, 1208032, \"AEK KORSIK\"],\n [1208032005, 1208032, \"AEK LEDONG\"],\n [1208032006, 1208032, \"AEK NABUNTU\"],\n [1208032007, 1208032, \"PADANG SIPIROK\"],\n [1208040001, 1208040, \"PERBANGUNAN\"],\n [1208040002, 1208040, \"PERTAHANAN\"],\n [1208040003, 1208040, \"BANGUN BARU\"],\n [1208040005, 1208040, \"SEI PAHAM\"],\n [1208040006, 1208040, \"SEI KEPAYANG KANAN\"],\n [1208040007, 1208040, \"SEI KEPAYANG TENGAH\"],\n [1208041001, 1208041, \"SEI KEPAYANG KIRI\"],\n [1208041002, 1208041, \"SEI LENDIR\"],\n [1208041003, 1208041, \"SEI TUALANG PANDAU\"],\n [1208041004, 1208041, \"SEI SERINDAN\"],\n [1208041005, 1208041, \"SEI JAWI JAWI\"],\n [1208041006, 1208041, \"SEI NANGKA\"],\n [1208042001, 1208042, \"SEI LUNANG\"],\n [1208042002, 1208042, \"SEI PASIR\"],\n [1208042003, 1208042, \"SEI TEMPURUNG\"],\n [1208042004, 1208042, \"SARANG HELANG\"],\n [1208042005, 1208042, \"SEI SEMBILANG\"],\n [1208050001, 1208050, \"KAPIAS BATU VIII\"],\n [1208050002, 1208050, \"PEMATANG SUNGAI BARU\"],\n [1208050003, 1208050, \"SEI APUNG JAYA\"],\n [1208050004, 1208050, \"SUNGAI APUNG\"],\n [1208050005, 1208050, \"ASAHAN MATI\"],\n [1208050006, 1208050, \"BAGAN ASAHAN BARU\"],\n [1208050007, 1208050, \"BAGAN ASAHAN PEKAN\"],\n [1208050008, 1208050, \"BAGAN ASAHAN\"],\n [1208060006, 1208060, \"SILOMLOM\"],\n [1208060007, 1208060, \"PERKEBUNAN SUKARAJA\"],\n [1208060008, 1208060, \"SIMPANG EMPAT\"],\n [1208060009, 1208060, \"SEI DUA HULU\"],\n [1208060010, 1208060, \"PERKEBUNAN HESSA\"],\n [1208060011, 1208060, \"SUNGAI LAMA\"],\n [1208060012, 1208060, \"SIPAKU AREA\"],\n [1208060013, 1208060, \"ANJUNG GANJANG\"],\n [1208061001, 1208061, \"PULAU MARIA\"],\n [1208061002, 1208061, \"PULAU TANJUNG\"],\n [1208061003, 1208061, \"TELUK DALAM\"],\n [1208061004, 1208061, \"PERKEBUNAN TELUK DALAM\"],\n [1208061005, 1208061, \"AEK TELUK KIRI\"],\n [1208061006, 1208061, \"MEKAR TANJUNG\"],\n [1208070001, 1208070, \"PERKEBUNAN PULAHAN\"],\n [1208070002, 1208070, \"PERKEBUNAN AIR BATU III/IX\"],\n [1208070003, 1208070, \"SUNGAI ALIM ULU\"],\n [1208070004, 1208070, \"AIR TELUK HESSA\"],\n [1208070005, 1208070, \"PERKEBUNAN AIR BATU I/II\"],\n [1208070006, 1208070, \"PINANGGIRIPAN\"],\n [1208070007, 1208070, \"DANAU SIJABUT\"],\n [1208070008, 1208070, \"HESSA PERLOMPONGAN\"],\n [1208070009, 1208070, \"AIR GENTING\"],\n [1208070010, 1208070, \"HESSA AIR GENTING\"],\n [1208070011, 1208070, \"SIJABUT TERATAI\"],\n [1208070012, 1208070, \"PULAU PALE\"],\n [1208071001, 1208071, \"TANJUNG ALAM\"],\n [1208071002, 1208071, \"PERKEBUNAN SEI DADAP III/IV\"],\n [1208071003, 1208071, \"BAHUNG SIBATU-BATU\"],\n [1208071004, 1208071, \"SEI ALIM HASAK\"],\n [1208071005, 1208071, \"PERKEBUNAN SEI DADAP I/II\"],\n [1208071006, 1208071, \"SEI KAMAH II\"],\n [1208071007, 1208071, \"SEI KAMAH I\"],\n [1208071008, 1208071, \"TANJUNG ASRI\"],\n [1208071009, 1208071, \"SEI KAMAH BARU\"],\n [1208071010, 1208071, \"PASIRAN\"],\n [1208080001, 1208080, \"LESTARI\"],\n [1208080005, 1208080, \"BUNTU PANE\"],\n [1208080006, 1208080, \"AMBALUTU\"],\n [1208080008, 1208080, \"PRAPAT JANJI\"],\n [1208080012, 1208080, \"SEI SILAU TIMUR\"],\n [1208080013, 1208080, \"SIONGGANG\"],\n [1208080014, 1208080, \"MEKAR SARI\"],\n [1208080015, 1208080, \"PERKEBUNAN SEI SILAU\"],\n [1208080016, 1208080, \"KARYA AMBALUTU\"],\n [1208081001, 1208081, \"TELADAN\"],\n [1208081002, 1208081, \"SIDOMULYO\"],\n [1208081003, 1208081, \"BUTREA/PIASA ULU\"],\n [1208081004, 1208081, \"TERUSAN TENGAH\"],\n [1208081005, 1208081, \"SUMBER HARAPAN\"],\n [1208081006, 1208081, \"TINGGI RAJA\"],\n [1208081007, 1208081, \"PADANG SARI\"],\n [1208082001, 1208082, \"SEI SILAU TUA\"],\n [1208082002, 1208082, \"SEI SILAU BARAT\"],\n [1208082003, 1208082, \"SILAU MARAJA\"],\n [1208082004, 1208082, \"URUNG PANE\"],\n [1208082005, 1208082, \"BANGUN SARI\"],\n [1208090013, 1208090, \"SERDANG\"],\n [1208090014, 1208090, \"MERANTI\"],\n [1208090015, 1208090, \"SEI BELURU\"],\n [1208090016, 1208090, \"PERKEBUNAN SEI BALAI\"],\n [1208090020, 1208090, \"GAJAH\"],\n [1208090021, 1208090, \"AIR PUTIH\"],\n [1208090022, 1208090, \"SUKAJADI\"],\n [1208091001, 1208091, \"TAMAN SARI\"],\n [1208091002, 1208091, \"PERHUTAAN SILAU\"],\n [1208091003, 1208091, \"SUKADAMAI\"],\n [1208091004, 1208091, \"TANAH RAKYAT\"],\n [1208091005, 1208091, \"GEDANGAN\"],\n [1208091006, 1208091, \"SIDOMULYO\"],\n [1208091007, 1208091, \"PULO BANDRING\"],\n [1208091008, 1208091, \"SUKA MAKMUR\"],\n [1208091009, 1208091, \"SUKADAMAI BARAT\"],\n [1208091010, 1208091, \"BUNUT SEBERANG\"],\n [1208092001, 1208092, \"PONDOK BUNGUR\"],\n [1208092002, 1208092, \"RAWANG BARU\"],\n [1208092003, 1208092, \"RAWANG PASAR V\"],\n [1208092004, 1208092, \"RAWANG PASAR IV\"],\n [1208092005, 1208092, \"RAWANG LAMA\"],\n [1208092006, 1208092, \"PANCA ARGA\"],\n [1208092007, 1208092, \"RAWANG PASAR VI\"],\n [1208100001, 1208100, \"BINJAI SERBANGAN\"],\n [1208100002, 1208100, \"AIR JOMAN\"],\n [1208100003, 1208100, \"AIR JOMAN BARU\"],\n [1208100004, 1208100, \"PUNGGULAN\"],\n [1208100005, 1208100, \"PASAR LEMBU\"],\n [1208100007, 1208100, \"BANJAR\"],\n [1208100008, 1208100, \"SUBUR\"],\n [1208101001, 1208101, \"LUBUK PALAS\"],\n [1208101002, 1208101, \"SILO BARU\"],\n [1208101003, 1208101, \"SILO BONTO\"],\n [1208101004, 1208101, \"SILO LAMA\"],\n [1208101005, 1208101, \"BANGUN SARI\"],\n [1208160001, 1208160, \"SEI RENGGAS\"],\n [1208160002, 1208160, \"SENDANG SARI\"],\n [1208160003, 1208160, \"KISARAN BARAT\"],\n [1208160004, 1208160, \"TEGAL SARI\"],\n [1208160005, 1208160, \"TEBING KISARAN\"],\n [1208160006, 1208160, \"KISARAN KOTA\"],\n [1208160007, 1208160, \"KISARAN BARU\"],\n [1208160008, 1208160, \"MEKAR BARU\"],\n [1208160009, 1208160, \"SIDODADI\"],\n [1208160010, 1208160, \"DADI MULYO\"],\n [1208160011, 1208160, \"SIDOMUKTI\"],\n [1208160012, 1208160, \"BUNUT\"],\n [1208160013, 1208160, \"BUNUT BARAT\"],\n [1208170001, 1208170, \"SENTANG\"],\n [1208170002, 1208170, \"KEDAI LEDANG\"],\n [1208170003, 1208170, \"KISARAN NAGA\"],\n [1208170004, 1208170, \"TELADAN\"],\n [1208170005, 1208170, \"KISARAN TIMUR\"],\n [1208170006, 1208170, \"SELAWAN\"],\n [1208170007, 1208170, \"MUTIARA\"],\n [1208170008, 1208170, \"SI UMBUT BARU\"],\n [1208170009, 1208170, \"SIUMBUT - UMBUT\"],\n [1208170010, 1208170, \"KARANG ANYER\"],\n [1208170011, 1208170, \"GAMBIR BARU\"],\n [1208170012, 1208170, \"LESTARI\"],\n [1209010002, 1209010, \"SIBANGUN MERIAH\"],\n [1209010004, 1209010, \"SARIBU DOLOK\"],\n [1209010005, 1209010, \"PURBA SINOMBAH\"],\n [1209010006, 1209010, \"PURBA TUA\"],\n [1209010011, 1209010, \"PURBA TUA BARU\"],\n [1209010014, 1209010, \"SINAR BARU\"],\n [1209010015, 1209010, \"PURBA TUA ETEK\"],\n [1209011001, 1209011, \"UJUNG SARIBU\"],\n [1209011002, 1209011, \"SILIMAKUTA BARAT\"],\n [1209011003, 1209011, \"SIBORAS\"],\n [1209011004, 1209011, \"UJUNG MARIAH\"],\n [1209011005, 1209011, \"MARDINDING\"],\n [1209011006, 1209011, \"NAGA SARIBU\"],\n [1209011007, 1209011, \"SARIBUJANDI\"],\n [1209011008, 1209011, \"NAGA MARIAH\"],\n [1209011009, 1209011, \"BANDAR SARIBU\"],\n [1209011010, 1209011, \"NAGA BOSAR\"],\n [1209020002, 1209020, \"KINALANG\"],\n [1209020006, 1209020, \"TIGA RUNGGU\"],\n [1209020007, 1209020, \"PURBA TENGAH\"],\n [1209020008, 1209020, \"PEMATANG PURBA\"],\n [1209020009, 1209020, \"PURBA SIPINGGAN\"],\n [1209020010, 1209020, \"URUNG PURBA\"],\n [1209020011, 1209020, \"TANOH TINGGIR\"],\n [1209020012, 1209020, \"PURBA DOLOK\"],\n [1209020013, 1209020, \"SARIBU JANDI\"],\n [1209020014, 1209020, \"HUTARAJA\"],\n [1209020015, 1209020, \"NAGORI TONGAH\"],\n [1209020016, 1209020, \"URUNG PANE\"],\n [1209020017, 1209020, \"BUNGA SAMPANG\"],\n [1209020018, 1209020, \"BANDAR SAUHUR\"],\n [1209021001, 1209021, \"NAGORI SIHALPE\"],\n [1209021002, 1209021, \"PURBA HORISON\"],\n [1209021003, 1209021, \"PURBA PASIR\"],\n [1209021004, 1209021, \"HARANGGAOL\"],\n [1209021005, 1209021, \"NAGORI PURBA\"],\n [1209030001, 1209030, \"TIGARAS\"],\n [1209030002, 1209030, \"PARIK SABUNGAN\"],\n [1209030003, 1209030, \"SIBUNTUON\"],\n [1209030004, 1209030, \"DOLOK SARIBU\"],\n [1209030005, 1209030, \"SINAMAN LABAH\"],\n [1209030006, 1209030, \"BANGUN PANE\"],\n [1209030007, 1209030, \"BUTTU BAYU PANEI RAJA\"],\n [1209030008, 1209030, \"TOGU DOMU NAULI\"],\n [1209030009, 1209030, \"PARJALANGAN\"],\n [1209030010, 1209030, \"SILABAH JAYA\"],\n [1209030011, 1209030, \"SIRUBE-RUBE GUNUNG PURBA\"],\n [1209030012, 1209030, \"NAGORI BAYU\"],\n [1209030013, 1209030, \"SIHEMUN BARU\"],\n [1209030014, 1209030, \"TANJUNG SARIBU\"],\n [1209030015, 1209030, \"PARTUAH\"],\n [1209030016, 1209030, \"PAMATANG SINAMAN\"],\n [1209040007, 1209040, \"SIDAMANIK\"],\n [1209040008, 1209040, \"AMBARISAN\"],\n [1209040009, 1209040, \"SARIMATONDANG\"],\n [1209040010, 1209040, \"BAH BUTONG SATU\"],\n [1209040011, 1209040, \"BAH BUTONG DUA\"],\n [1209040012, 1209040, \"BAHAL GAJAH\"],\n [1209040013, 1209040, \"TIGA BOLON\"],\n [1209040014, 1209040, \"MANIK HATARAN\"],\n [1209040015, 1209040, \"MEKAR SIDAMANIK\"],\n [1209040016, 1209040, \"MANIK MARAJA\"],\n [1209040017, 1209040, \"BAH BIAK\"],\n [1209040018, 1209040, \"KEBUN SAYUR BAH BUTONG\"],\n [1209040019, 1209040, \"BIRONG ULU MANRIAH\"],\n [1209040020, 1209040, \"MANIK RAMBUNG\"],\n [1209040021, 1209040, \"BUKIT REJO\"],\n [1209041001, 1209041, \"SIPOLHA HORISAN\"],\n [1209041002, 1209041, \"PEMATANG TAMBUN RAYA\"],\n [1209041003, 1209041, \"SIHAPORAS\"],\n [1209041004, 1209041, \"JORLANG HULUAN\"],\n [1209041005, 1209041, \"BANDAR MANIK\"],\n [1209041006, 1209041, \"SAIT BUTTU SARIBU\"],\n [1209041007, 1209041, \"PEMATANG SIDAMANIK\"],\n [1209041008, 1209041, \"SARIMATTIN\"],\n [1209041009, 1209041, \"SIMANTIN\"],\n [1209041010, 1209041, \"GORAK\"],\n [1209050001, 1209050, \"SIPANGAN BOLON\"],\n [1209050002, 1209050, \"GIRSANG\"],\n [1209050003, 1209050, \"PARAPAT\"],\n [1209050004, 1209050, \"TIGA RAJA\"],\n [1209050005, 1209050, \"SIBAGANDING\"],\n [1209050006, 1209050, \"SIPANGAN BOLON MEKAR\"],\n [1209060006, 1209060, \"MEKAR MULIA\"],\n [1209060007, 1209060, \"PARDAMEAN ASIH\"],\n [1209060008, 1209060, \"MARUBUN JAYA\"],\n [1209060009, 1209060, \"TOTAP MAJAWA\"],\n [1209060010, 1209060, \"BALIMBINGAN\"],\n [1209060011, 1209060, \"BAH KISAT\"],\n [1209060012, 1209060, \"MALIGAS TONGAH\"],\n [1209060015, 1209060, \"PANAMBEAN MARJANJI\"],\n [1209060016, 1209060, \"TANJUNG PASIR\"],\n [1209060017, 1209060, \"MUARA MULIA\"],\n [1209060018, 1209060, \"BOSAR GALUGUR\"],\n [1209060019, 1209060, \"PEMATANG TANAH JAWA\"],\n [1209060020, 1209060, \"BAJA DOLOK\"],\n [1209060021, 1209060, \"BAH JAMBI II\"],\n [1209060022, 1209060, \"PAGAR JAMBI\"],\n [1209060023, 1209060, \"BAYU BAGASAN\"],\n [1209060024, 1209060, \"BALIJU\"],\n [1209060025, 1209060, \"BAH JAMBI III\"],\n [1209060026, 1209060, \"MARUBUN BAYU\"],\n [1209060027, 1209060, \"PARBALOGAN\"],\n [1209061001, 1209061, \"BOSAR NAULI\"],\n [1209061002, 1209061, \"TANGGA BATU\"],\n [1209061003, 1209061, \"BUNTU TURUNAN\"],\n [1209061004, 1209061, \"BUNTU BAYU\"],\n [1209061005, 1209061, \"SARIBU ASIH\"],\n [1209061006, 1209061, \"JAWA TONGAH\"],\n [1209061007, 1209061, \"TONDUHAN\"],\n [1209061008, 1209061, \"PARHUNDALIAN JAWADIPAR\"],\n [1209061009, 1209061, \"JAWA TONGAH II\"],\n [1209070001, 1209070, \"DOLOK PARMONANGAN\"],\n [1209070002, 1209070, \"NEGERI DOLOK\"],\n [1209070003, 1209070, \"GUNUNG MARIAH\"],\n [1209070004, 1209070, \"MARIHAT DOLOK\"],\n [1209070005, 1209070, \"MARIHAT RAJA\"],\n [1209070006, 1209070, \"TIGA DOLOK\"],\n [1209070007, 1209070, \"BANDAR DOLOK\"],\n [1209070008, 1209070, \"DOLOK TOMUAN\"],\n [1209070009, 1209070, \"UJUNG BONDAR\"],\n [1209070010, 1209070, \"SIATASAN\"],\n [1209070011, 1209070, \"PONDOK BULUH\"],\n [1209070012, 1209070, \"MARIHAT PONDOK\"],\n [1209070013, 1209070, \"MARIHAT MARSADA\"],\n [1209070014, 1209070, \"LUMBAN GORAT\"],\n [1209070015, 1209070, \"PALIANAOPAT\"],\n [1209080001, 1209080, \"JORLANG HATARAN\"],\n [1209080002, 1209080, \"SIBUNGA BUNGA\"],\n [1209080003, 1209080, \"DOLOK MARLAWAN\"],\n [1209080004, 1209080, \"KASINDIR\"],\n [1209080005, 1209080, \"TIGA BALATA\"],\n [1209080006, 1209080, \"PINANG RATUS\"],\n [1209080007, 1209080, \"BAH BIRONG ULU\"],\n [1209080008, 1209080, \"BAH SAMPURAN\"],\n [1209080009, 1209080, \"PANOMBEAN HUTA URUNG\"],\n [1209080010, 1209080, \"DIPAR HATARAN\"],\n [1209080011, 1209080, \"PARMONANGAN\"],\n [1209080012, 1209080, \"DOLOK PARRIASAN\"],\n [1209080013, 1209080, \"PAGAR PINANG\"],\n [1209090001, 1209090, \"SIMANTIN PANE DAME\"],\n [1209090002, 1209090, \"BANGUN RAKYAT\"],\n [1209090003, 1209090, \"SIMPANG RAYA\"],\n [1209090004, 1209090, \"SIBORNA\"],\n [1209090006, 1209090, \"JANGGIR LETO\"],\n [1209090007, 1209090, \"PANE TONGAH\"],\n [1209090008, 1209090, \"SIPOLDAS\"],\n [1209090009, 1209090, \"SIGODANG\"],\n [1209090014, 1209090, \"MEKAR SARI RAYA\"],\n [1209090015, 1209090, \"BAH BALON TONGAH\"],\n [1209090016, 1209090, \"SIGODANG BARAT\"],\n [1209090017, 1209090, \"SIMPANG RAYA DASMA\"],\n [1209090018, 1209090, \"BANGUN DAS MARIAH\"],\n [1209090019, 1209090, \"BANGUN SITOLUH BAH\"],\n [1209090020, 1209090, \"NAULI BARU\"],\n [1209090021, 1209090, \"BAHLIRAN SIBORNA\"],\n [1209090022, 1209090, \"RAWANG PARDOMUAN NAULI\"],\n [1209091001, 1209091, \"SIMPANG PANE\"],\n [1209091002, 1209091, \"MARJANDI\"],\n [1209091003, 1209091, \"PANOMBEAN\"],\n [1209091004, 1209091, \"NAGORI BOSAR\"],\n [1209091005, 1209091, \"TALUN KONDOT\"],\n [1209091006, 1209091, \"PEMATANG PANOMBEAN\"],\n [1209091007, 1209091, \"SIMBOLON TENGKOH\"],\n [1209091008, 1209091, \"PEMATANG PANE\"],\n [1209091009, 1209091, \"MARJANDI PISANG\"],\n [1209091010, 1209091, \"BANUH RAYA\"],\n [1209091011, 1209091, \"RUKUN MULYO\"],\n [1209100001, 1209100, \"DOLOG HULUAN\"],\n [1209100002, 1209100, \"RAYA USANG\"],\n [1209100003, 1209100, \"RAYA BAYU\"],\n [1209100004, 1209100, \"DALIG RAYA\"],\n [1209100005, 1209100, \"PEMATANG RAYA\"],\n [1209100006, 1209100, \"MEREK RAYA\"],\n [1209100007, 1209100, \"BAHAPAL RAYA\"],\n [1209100008, 1209100, \"SONDI RAYA\"],\n [1209100009, 1209100, \"BAH BOLON\"],\n [1209100010, 1209100, \"RAYA HULUAN\"],\n [1209100011, 1209100, \"SIPORKAS\"],\n [1209100012, 1209100, \"SILOU HULUAN\"],\n [1209100013, 1209100, \"SILOU BUTTU\"],\n [1209100014, 1209100, \"BONGURON KARIAHAN\"],\n [1209100015, 1209100, \"SIHUBU RAYA\"],\n [1209100016, 1209100, \"RAYA BOSI\"],\n [1209100017, 1209100, \"SIMBOU BARU\"],\n [1209100018, 1209100, \"BINTANG MARIAH\"],\n [1209100019, 1209100, \"LOKKUNG RAYA\"],\n [1209100020, 1209100, \"BARINGIN RAYA\"],\n [1209100021, 1209100, \"LIMAG RAYA\"],\n [1209100022, 1209100, \"DAME RAYA\"],\n [1209110001, 1209110, \"CINGKES\"],\n [1209110002, 1209110, \"PARIBUAN\"],\n [1209110003, 1209110, \"SARAN PADANG\"],\n [1209110004, 1209110, \"MARIAH DOLOK\"],\n [1209110005, 1209110, \"DOLOK MARIAH\"],\n [1209110006, 1209110, \"MARUBUN LOKKUNG\"],\n [1209110007, 1209110, \"BAWANG\"],\n [1209110008, 1209110, \"HUTA SAING\"],\n [1209110009, 1209110, \"TOGUR\"],\n [1209110010, 1209110, \"PERASMIAN\"],\n [1209110011, 1209110, \"TANJUNG PURBA\"],\n [1209110012, 1209110, \"UJUNG BAWANG\"],\n [1209110013, 1209110, \"SILAU MARAWAN\"],\n [1209110014, 1209110, \"BOSI SINOMBAH\"],\n [1209120001, 1209120, \"DOLOK SARIBU BANGUN\"],\n [1209120002, 1209120, \"SIMANABUN\"],\n [1209120003, 1209120, \"MARIAH BUTTU\"],\n [1209120004, 1209120, \"PARDOMUAN TONGAH\"],\n [1209120005, 1209120, \"DOLOK MARAWA\"],\n [1209120006, 1209120, \"NEGERI DOLOK\"],\n [1209120007, 1209120, \"BANDAR NAGORI\"],\n [1209120008, 1209120, \"BANDAR MARUHUR\"],\n [1209120009, 1209120, \"SILAU PARIBUAN\"],\n [1209120010, 1209120, \"SILAU DUNIA\"],\n [1209120011, 1209120, \"BUTTU BAYU\"],\n [1209120012, 1209120, \"NAGORI TANI\"],\n [1209120013, 1209120, \"BAH SARIMAH\"],\n [1209120014, 1209120, \"SINASIH\"],\n [1209120015, 1209120, \"DAMAKITANG\"],\n [1209120016, 1209120, \"PARDOMUAN BANDAR\"],\n [1209130001, 1209130, \"BAH TONANG\"],\n [1209130002, 1209130, \"SAMBOSAR RAYA\"],\n [1209130003, 1209130, \"BANGUN RAYA\"],\n [1209130004, 1209130, \"SINDAR RAYA\"],\n [1209130005, 1209130, \"AMBOROKAN PANE RAYA\"],\n [1209130006, 1209130, \"PANDUMAN\"],\n [1209130007, 1209130, \"BAH BULIAN\"],\n [1209130008, 1209130, \"DURIAN BAGGAL\"],\n [1209130009, 1209130, \"SORBA DOLOG\"],\n [1209130010, 1209130, \"PULI BUAH\"],\n [1209130011, 1209130, \"GUNUNG DATAS\"],\n [1209130012, 1209130, \"BANJARAN\"],\n [1209130013, 1209130, \"MARUBUN SIBORAS\"],\n [1209130014, 1209130, \"BANU RAYA\"],\n [1209140001, 1209140, \"DOLOK MARAJA\"],\n [1209140002, 1209140, \"SINAKSAK\"],\n [1209140003, 1209140, \"BATU SILANGIT\"],\n [1209140004, 1209140, \"DOLOK ULU\"],\n [1209140005, 1209140, \"NAGUR USANG\"],\n [1209140006, 1209140, \"NAGA DOLOK\"],\n [1209140007, 1209140, \"DOLOK KAHEAN\"],\n [1209140008, 1209140, \"PURBASARI\"],\n [1209140009, 1209140, \"PEMATANG DOLOK KAHEAN\"],\n [1209140010, 1209140, \"NEGERI BAYU MUSLIMIN\"],\n [1209140011, 1209140, \"DOLOK SIMBOLON\"],\n [1209150001, 1209150, \"SILENDUK\"],\n [1209150002, 1209150, \"BAH TOBU\"],\n [1209150003, 1209150, \"BANDAR SELAMAT\"],\n [1209150004, 1209150, \"DOLOK MERANGIR SATU\"],\n [1209150005, 1209150, \"DOLOK MERANGIR DUA\"],\n [1209150006, 1209150, \"SERBELAWAN\"],\n [1209150007, 1209150, \"DOLOK ILIR SATU\"],\n [1209150008, 1209150, \"DOLOK MAINU\"],\n [1209150009, 1209150, \"BAHUNG KAHEAN\"],\n [1209150010, 1209150, \"DOLOK ILIR DUA\"],\n [1209150011, 1209150, \"KAHEAN\"],\n [1209150012, 1209150, \"DOLOG TENERA\"],\n [1209150013, 1209150, \"DOLOK KATARAN\"],\n [1209150014, 1209150, \"PADANG MAINU\"],\n [1209150015, 1209150, \"BAHUNG HULUAN\"],\n [1209150016, 1209150, \"AMAN SARI\"],\n [1209160001, 1209160, \"SILAMPUYANG\"],\n [1209160002, 1209160, \"SILAU MANIK\"],\n [1209160003, 1209160, \"SILAU MALAHA\"],\n [1209160004, 1209160, \"MARIHAT BARIS\"],\n [1209160005, 1209160, \"SIANTAR ESTATE\"],\n [1209160006, 1209160, \"RAMBUNG MERAH\"],\n [1209160007, 1209160, \"KARANG BANGUN\"],\n [1209160008, 1209160, \"PEMATANG SIMALUNGUN\"],\n [1209160009, 1209160, \"DOLOK MARLAWAN\"],\n [1209160010, 1209160, \"PANTOAN MAJU\"],\n [1209160011, 1209160, \"SEJAHTERA\"],\n [1209160012, 1209160, \"SITALASARI\"],\n [1209160013, 1209160, \"LARAS DUA\"],\n [1209160014, 1209160, \"NUSA HARAPAN\"],\n [1209160015, 1209160, \"LESTARI INDAH\"],\n [1209160016, 1209160, \"DOLOK HATARAN\"],\n [1209160036, 1209160, \"PEMATANG SILAMPUYANG\"],\n [1209161001, 1209161, \"SENIO\"],\n [1209161002, 1209161, \"BANGUN\"],\n [1209161003, 1209161, \"PEMATANG ASILUM\"],\n [1209161004, 1209161, \"PEMATANG SAH KUDA\"],\n [1209161005, 1209161, \"MARIHAT BUKIT\"],\n [1209161006, 1209161, \"SAH KUDA BAYU\"],\n [1209161007, 1209161, \"BUKIT MARAJA\"],\n [1209161008, 1209161, \"PEMATANG GAJING\"],\n [1209161009, 1209161, \"DOLOK MALELA\"],\n [1209161010, 1209161, \"BANDAR SIANTAR\"],\n [1209161011, 1209161, \"SERAPUH\"],\n [1209161012, 1209161, \"SILAU MALELA\"],\n [1209161013, 1209161, \"SILULU\"],\n [1209161014, 1209161, \"MARGOMULYO\"],\n [1209161015, 1209161, \"NAGORI MALELA\"],\n [1209161016, 1209161, \"LINGGA\"],\n [1209162001, 1209162, \"KARANG SARI\"],\n [1209162002, 1209162, \"KARANG REJO\"],\n [1209162003, 1209162, \"KARANG ANYER\"],\n [1209162004, 1209162, \"SILAU BAYU\"],\n [1209162005, 1209162, \"HUTA DIPAR\"],\n [1209162006, 1209162, \"TUMORANG\"],\n [1209162007, 1209162, \"RABUHIT\"],\n [1209162008, 1209162, \"BANDAR MALELA\"],\n [1209162009, 1209162, \"GAJING\"],\n [1209170005, 1209170, \"MARIAH HOMBANG\"],\n [1209170006, 1209170, \"MARIHAT MAYANG\"],\n [1209170007, 1209170, \"JAWA BARU\"],\n [1209170008, 1209170, \"PULO BAYU\"],\n [1209170009, 1209170, \"HUTA BAYU\"],\n [1209170010, 1209170, \"SILAK KIDIR\"],\n [1209170011, 1209170, \"BOSAR BAYU\"],\n [1209170012, 1209170, \"MANCUK\"],\n [1209170015, 1209170, \"MALIGAS BAYU\"],\n [1209170016, 1209170, \"RAJA MALIGAS\"],\n [1209170017, 1209170, \"DOLOK SINUMBAH\"],\n [1209170018, 1209170, \"RAJA MALIGAS I\"],\n [1209170019, 1209170, \"BAHAL BATU\"],\n [1209170020, 1209170, \"POKAN BARU\"],\n [1209170021, 1209170, \"MANRAYAP BARU\"],\n [1209170022, 1209170, \"TALANG BAYU\"],\n [1209171001, 1209171, \"MARIAH JAMBI\"],\n [1209171002, 1209171, \"MOHO\"],\n [1209171003, 1209171, \"BAHALAT BAYU\"],\n [1209171004, 1209171, \"MEKAR BAHALAT\"],\n [1209171005, 1209171, \"TANJUNG MARAJA\"],\n [1209171006, 1209171, \"JAWA MARAJA\"],\n [1209171007, 1209171, \"BAH JOGA\"],\n [1209171008, 1209171, \"BAH JAMBI I\"],\n [1209180004, 1209180, \"PURBA GANDA\"],\n [1209180005, 1209180, \"KERASAAN II\"],\n [1209180006, 1209180, \"KERASAAN I\"],\n [1209180007, 1209180, \"PARDOMUAN NAULI\"],\n [1209180008, 1209180, \"MARIAH BANDAR\"],\n [1209180009, 1209180, \"TALUN MADEAR\"],\n [1209180010, 1209180, \"KANDANGAN\"],\n [1209180011, 1209180, \"PURWOSARI\"],\n [1209180012, 1209180, \"PEMATANG BANDAR\"],\n [1209180013, 1209180, \"BANDAR MANIS\"],\n [1209180014, 1209180, \"WONOREJO\"],\n [1209180015, 1209180, \"TALUN REJO\"],\n [1209180016, 1209180, \"PURWODADI\"],\n [1209181001, 1209181, \"L A R A S\"],\n [1209181002, 1209181, \"BAH GUNUNG\"],\n [1209181003, 1209181, \"BANDAR TONGAH\"],\n [1209181004, 1209181, \"DOLOK PARMONANGAN\"],\n [1209181005, 1209181, \"NAGA JAYA I\"],\n [1209181006, 1209181, \"NAGA JAYA II\"],\n [1209181007, 1209181, \"TANJUNG HATARAN\"],\n [1209181008, 1209181, \"BANDAR BETSY I\"],\n [1209181009, 1209181, \"BANDAR BETSY II\"],\n [1209181010, 1209181, \"NAGA SOPA\"],\n [1209190001, 1209190, \"PEMATANG KERASAAN\"],\n [1209190002, 1209190, \"PEMATANG KERASAAN REJO\"],\n [1209190003, 1209190, \"MARIHAT BANDAR\"],\n [1209190004, 1209190, \"TIMBAAN\"],\n [1209190005, 1209190, \"NAGORI BANDAR\"],\n [1209190006, 1209190, \"BANDAR RAKYAT\"],\n [1209190007, 1209190, \"BANDAR PULO\"],\n [1209190008, 1209190, \"BANDAR JAWA\"],\n [1209190009, 1209190, \"PERDAGANGAN I\"],\n [1209190010, 1209190, \"BAH LIAS\"],\n [1209190011, 1209190, \"PERDAGANGAN II\"],\n [1209190012, 1209190, \"PERLANAAN\"],\n [1209190013, 1209190, \"SIDO TANI\"],\n [1209190014, 1209190, \"SUGARANG BAYU\"],\n [1209190015, 1209190, \"PERDAGANGAN III\"],\n [1209190016, 1209190, \"LANDBOUW\"],\n [1209191001, 1209191, \"PANOMBEAN BARU\"],\n [1209191002, 1209191, \"LIAS BARU\"],\n [1209191003, 1209191, \"BANDAR SILOU\"],\n [1209191004, 1209191, \"BANDAR MASILAM\"],\n [1209191005, 1209191, \"GUNUNG SERAWAN\"],\n [1209191006, 1209191, \"BANDAR MASILAM II\"],\n [1209191007, 1209191, \"PARTIMBALAN\"],\n [1209191008, 1209191, \"BANDAR TINGGI\"],\n [1209191009, 1209191, \"BANDAR REJO\"],\n [1209191010, 1209191, \"BANDAR GUNUNG\"],\n [1209200001, 1209200, \"PARBUTARAN\"],\n [1209200002, 1209200, \"MAYANG\"],\n [1209200003, 1209200, \"DUSUN PENGKOLAN\"],\n [1209200004, 1209200, \"BOSAR MALIGAS\"],\n [1209200005, 1209200, \"BOLUK\"],\n [1209200006, 1209200, \"SEI MANGKEI\"],\n [1209200007, 1209200, \"GUNUNG BAYU\"],\n [1209200008, 1209200, \"TALUN SARAGIH\"],\n [1209200009, 1209200, \"MARIHAT TANJUNG\"],\n [1209200010, 1209200, \"MARIHAT BUTAR\"],\n [1209200011, 1209200, \"SEI TOROP\"],\n [1209200012, 1209200, \"ADIL MAKMUR\"],\n [1209200013, 1209200, \"TELADAN\"],\n [1209200014, 1209200, \"TEMPEL JAYA\"],\n [1209200015, 1209200, \"SIDOMULYO\"],\n [1209200016, 1209200, \"NANGGAR BAYU\"],\n [1209200017, 1209200, \"MEKAR REJO\"],\n [1209210001, 1209210, \"SORDANG BOLON\"],\n [1209210002, 1209210, \"SAYUR MATINGGI\"],\n [1209210003, 1209210, \"TARATAK NAGODANG\"],\n [1209210004, 1209210, \"HUTA PARIK\"],\n [1209210005, 1209210, \"UJUNG PADANG\"],\n [1209210006, 1209210, \"TINJOWAN\"],\n [1209210007, 1209210, \"DUSUN ULU\"],\n [1209210008, 1209210, \"TELUK LAPIAN\"],\n [1209210009, 1209210, \"TANJUNG RAPUAN\"],\n [1209210010, 1209210, \"PAGAR BOSI\"],\n [1209210011, 1209210, \"BANGUN SORDANG\"],\n [1209210012, 1209210, \"AEK GER GER\"],\n [1209210013, 1209210, \"PULO PITU MARIHAT\"],\n [1209210014, 1209210, \"SIRINGAN RINGAN\"],\n [1209210015, 1209210, \"RIAH NAPOSO\"],\n [1209210016, 1209210, \"SEI MERBAU\"],\n [1209210017, 1209210, \"KAMPUNG LALANG\"],\n [1209210018, 1209210, \"SORDANG BARU\"],\n [1209210019, 1209210, \"BANJAR HULU\"],\n [1209210020, 1209210, \"RAWA MASIN\"],\n [1210030002, 1210030, \"SIDIANGKAT\"],\n [1210030003, 1210030, \"BATANG BERUH\"],\n [1210030004, 1210030, \"BINTANG HULU\"],\n [1210030005, 1210030, \"KALANG SIMBARA\"],\n [1210030006, 1210030, \"BINTANG\"],\n [1210030007, 1210030, \"KALANG\"],\n [1210030008, 1210030, \"KOTA SIDIKALANG\"],\n [1210030009, 1210030, \"BELANG MALUM\"],\n [1210030010, 1210030, \"KUTA GAMBIR\"],\n [1210030011, 1210030, \"HUTA RAKJAT\"],\n [1210030012, 1210030, \"BINTANG MERSADA\"],\n [1210031001, 1210031, \"BERAMPU\"],\n [1210031002, 1210031, \"KARING\"],\n [1210031003, 1210031, \"BANJAR TOBA\"],\n [1210031004, 1210031, \"PASI\"],\n [1210031005, 1210031, \"SAMBALIANG\"],\n [1210032001, 1210032, \"SITINJO\"],\n [1210032003, 1210032, \"PANJI DABUTAR\"],\n [1210032012, 1210032, \"SITINJO I\"],\n [1210032013, 1210032, \"SITINJO II\"],\n [1210040001, 1210040, \"PARBULUAN II\"],\n [1210040002, 1210040, \"PARBULUAN I\"],\n [1210040003, 1210040, \"PARBULUAN V\"],\n [1210040004, 1210040, \"PARBULUAN III\"],\n [1210040005, 1210040, \"PARBULUAN IV\"],\n [1210040006, 1210040, \"PARBULUAN VI\"],\n [1210040007, 1210040, \"LAE HOLE\"],\n [1210040008, 1210040, \"B A N G U N\"],\n [1210040009, 1210040, \"LAE HOLE I\"],\n [1210040010, 1210040, \"LAE HOLE II\"],\n [1210040011, 1210040, \"BANGUN I\"],\n [1210050001, 1210050, \"PEGAGAN JULU V\"],\n [1210050002, 1210050, \"PEGAGAN JULU IV\"],\n [1210050003, 1210050, \"PEGAGAN JULU II\"],\n [1210050004, 1210050, \"PEGAGAN JULU I\"],\n [1210050005, 1210050, \"PEGAGAN JULU III\"],\n [1210050006, 1210050, \"PEGAGAN JULU VI\"],\n [1210050007, 1210050, \"PEGAGAN JULU VII\"],\n [1210050008, 1210050, \"PEGAGAN JULU VIII\"],\n [1210050009, 1210050, \"PEGAGAN JULU IX\"],\n [1210050010, 1210050, \"PEGAGAN JULU X\"],\n [1210050011, 1210050, \"TANJUNG BERINGIN\"],\n [1210050012, 1210050, \"DOLOK TOLONG\"],\n [1210050013, 1210050, \"KUTA GUGUNG\"],\n [1210050014, 1210050, \"PARGAMBIRAN\"],\n [1210050015, 1210050, \"PERJUANGAN\"],\n [1210050016, 1210050, \"SILEUH-LEUH PARSAORAN\"],\n [1210050017, 1210050, \"PANGGURUAN\"],\n [1210050018, 1210050, \"TANJUNG BERINGIN I\"],\n [1210050019, 1210050, \"BARISAN NAULI\"],\n [1210051001, 1210051, \"SILALAHI II\"],\n [1210051002, 1210051, \"SILALAHI I\"],\n [1210051003, 1210051, \"PAROPO\"],\n [1210051004, 1210051, \"SILALAHI III\"],\n [1210051005, 1210051, \"PAROPO I\"],\n [1210060001, 1210060, \"LAE RAMBONG\"],\n [1210060002, 1210060, \"LAE AMBAT\"],\n [1210060003, 1210060, \"LAE PANGINUMAN\"],\n [1210060004, 1210060, \"SUMBARI\"],\n [1210060005, 1210060, \"BAKAL GAJAH\"],\n [1210060006, 1210060, \"URUK BELIN\"],\n [1210060007, 1210060, \"SIBORAS\"],\n [1210060008, 1210060, \"BONIAN\"],\n [1210060009, 1210060, \"BONGKARAS\"],\n [1210060010, 1210060, \"TUNGTUNG BATU\"],\n [1210060011, 1210060, \"LONGKOTAN\"],\n [1210060012, 1210060, \"PARONGIL\"],\n [1210060013, 1210060, \"SIRATAH\"],\n [1210060014, 1210060, \"POLLING ANAK-ANAK\"],\n [1210060015, 1210060, \"PALIPI\"],\n [1210060016, 1210060, \"LAE PANGAROAN\"],\n [1210061001, 1210061, \"SUMBUL\"],\n [1210061002, 1210061, \"KENTARA\"],\n [1210061003, 1210061, \"LAE PARIRA\"],\n [1210061004, 1210061, \"BULU DURI\"],\n [1210061005, 1210061, \"SEMPUNG POLLING\"],\n [1210061006, 1210061, \"PANDIANGAN\"],\n [1210061007, 1210061, \"LUMBAN SIHITE\"],\n [1210061008, 1210061, \"LUMBAN TORUAN\"],\n [1210061009, 1210061, \"KABAN JULU\"],\n [1210070001, 1210070, \"SINAMPANG\"],\n [1210070002, 1210070, \"SIHORBO\"],\n [1210070003, 1210070, \"SOBAN\"],\n [1210070004, 1210070, \"ADIAN NANGKA\"],\n [1210070005, 1210070, \"BUNTU RAJA\"],\n [1210070006, 1210070, \"GOMIT\"],\n [1210070007, 1210070, \"JUMANTUANG\"],\n [1210070008, 1210070, \"JUMASIULOK\"],\n [1210070009, 1210070, \"JUMATEGUH\"],\n [1210070010, 1210070, \"SOSORLONTUNG\"],\n [1210070011, 1210070, \"HUTA IMBARU\"],\n [1210070012, 1210070, \"MAJU\"],\n [1210070013, 1210070, \"ADIAN GUPA\"],\n [1210080001, 1210080, \"TAMBAHAN\"],\n [1210080002, 1210080, \"KUTA TENGAH\"],\n [1210080003, 1210080, \"LAE NUAHA\"],\n [1210080004, 1210080, \"SUNGAI RAYA\"],\n [1210080005, 1210080, \"GUNUNG MERIAH\"],\n [1210080006, 1210080, \"SIGAMBIR GAMBIR\"],\n [1210080007, 1210080, \"SILUMBOYAH\"],\n [1210080008, 1210080, \"PANGARIBUAN\"],\n [1210080009, 1210080, \"TUALANG\"],\n [1210080010, 1210080, \"BAKAL JULU\"],\n [1210080011, 1210080, \"SIPOLTONG\"],\n [1210080012, 1210080, \"P A N D A N\"],\n [1210090001, 1210090, \"LAE ITAM\"],\n [1210090002, 1210090, \"PARDOMUAN\"],\n [1210090003, 1210090, \"JAMBUR INDONESIA\"],\n [1210090004, 1210090, \"SIMUNGUN\"],\n [1210090005, 1210090, \"J A N J I\"],\n [1210090006, 1210090, \"LAE MARKELANG\"],\n [1210090007, 1210090, \"LAE LUHUNG\"],\n [1210090008, 1210090, \"SOPO BUTAR\"],\n [1210090009, 1210090, \"LAE SERING\"],\n [1210090010, 1210090, \"LAE HAPORAS\"],\n [1210100001, 1210100, \"SUMBUL TENGAH\"],\n [1210100002, 1210100, \"UJUNG TERAN\"],\n [1210100003, 1210100, \"JUMA GERAT\"],\n [1210100004, 1210100, \"SARINTONU\"],\n [1210100005, 1210100, \"PALDING\"],\n [1210100006, 1210100, \"BERTUNGEN JULU\"],\n [1210100007, 1210100, \"SUKANDEBI\"],\n [1210100008, 1210100, \"LAU MOLGAP\"],\n [1210100009, 1210100, \"LAU PAKPAK\"],\n [1210100011, 1210100, \"LAU MIL\"],\n [1210100012, 1210100, \"LAU BAGOT\"],\n [1210100013, 1210100, \"TIGA LINGGA\"],\n [1210100014, 1210100, \"LAUSIREME\"],\n [1210100019, 1210100, \"PALDING JAYA\"],\n [1210101001, 1210101, \"BUKIT LAU KERSIK\"],\n [1210101002, 1210101, \"GUNUNG SITEMBER\"],\n [1210101003, 1210101, \"BATU GUNGUN\"],\n [1210101004, 1210101, \"GUNDALING\"],\n [1210101005, 1210101, \"RANTE BESI\"],\n [1210101006, 1210101, \"KENDIT LIANG\"],\n [1210101007, 1210101, \"LAU LEBAH\"],\n [1210101008, 1210101, \"TUPAK RAJA\"],\n [1210110001, 1210110, \"TANJUNG SALUKSUK\"],\n [1210110002, 1210110, \"SIMANDUMA\"],\n [1210110003, 1210110, \"BANDAR HUTA USANG\"],\n [1210110004, 1210110, \"LINGGA RAJA I\"],\n [1210110005, 1210110, \"ONAN LAMA\"],\n [1210110006, 1210110, \"BUKIT TINGGI\"],\n [1210110007, 1210110, \"LAKSA\"],\n [1210110008, 1210110, \"SIMARTUGAN\"],\n [1210110009, 1210110, \"PERIK MBUE\"],\n [1210110010, 1210110, \"LINGGA RAJA II\"],\n [1210110011, 1210110, \"BUKIT BARU\"],\n [1210110012, 1210110, \"MBINANGA\"],\n [1210110013, 1210110, \"KUTA USANG\"],\n [1210120001, 1210120, \"RENUN\"],\n [1210120002, 1210120, \"PASIR TENGAH\"],\n [1210120003, 1210120, \"PAMAH\"],\n [1210120004, 1210120, \"KUTA BULUH\"],\n [1210120005, 1210120, \"TANAH PINEM\"],\n [1210120006, 1210120, \"KEMPAWA\"],\n [1210120007, 1210120, \"KUTA GAMBER\"],\n [1210120008, 1210120, \"LAU PERIMBON\"],\n [1210120009, 1210120, \"HARAPAN\"],\n [1210120010, 1210120, \"GUNUNG TUA\"],\n [1210120011, 1210120, \"SUKA DAME\"],\n [1210120012, 1210120, \"LAU TAWAR\"],\n [1210120013, 1210120, \"MANGAN MOLIH\"],\n [1210120014, 1210120, \"LAU NJUHAR\"],\n [1210120015, 1210120, \"LIANG JERING\"],\n [1210120016, 1210120, \"ALUR SUBUR\"],\n [1210120017, 1210120, \"BALANDUA\"],\n [1210120018, 1210120, \"PASIR MBELANG\"],\n [1210120019, 1210120, \"SINAR PAGI\"],\n [1211010001, 1211010, \"LAU SOLU\"],\n [1211010002, 1211010, \"KUTA PENGKIH\"],\n [1211010003, 1211010, \"RIMO BUNGA\"],\n [1211010004, 1211010, \"LAU MULGAP\"],\n [1211010005, 1211010, \"TANJUNG PAMAH\"],\n [1211010006, 1211010, \"MARDINGDING\"],\n [1211010007, 1211010, \"LAU KASUMPAT\"],\n [1211010008, 1211010, \"BANDAR PURBA\"],\n [1211010009, 1211010, \"LAU PENGULU\"],\n [1211010010, 1211010, \"LAU PAKAM\"],\n [1211010011, 1211010, \"LAU GARUT\"],\n [1211010012, 1211010, \"BUKIT MAKMUR\"],\n [1211020001, 1211020, \"LAU PERANGGUNAN\"],\n [1211020002, 1211020, \"DURIN RUGUN\"],\n [1211020003, 1211020, \"KINANGKONG\"],\n [1211020004, 1211020, \"LAU PERADEP\"],\n [1211020005, 1211020, \"LAUBALENG\"],\n [1211020006, 1211020, \"TANJUNG GUNUNG\"],\n [1211020007, 1211020, \"KUTAMBELIN\"],\n [1211020008, 1211020, \"MARTELU\"],\n [1211020009, 1211020, \"LINGGA MUDA\"],\n [1211020010, 1211020, \"MBAL-MBAL PETARUM\"],\n [1211020011, 1211020, \"PERBULAN\"],\n [1211020012, 1211020, \"BULUH PANCUR\"],\n [1211020013, 1211020, \"RAMBAH TAMPU\"],\n [1211020014, 1211020, \"BATU RONGKAM\"],\n [1211020015, 1211020, \"PINTU ANGIN\"],\n [1211030001, 1211030, \"LAU KAPUR\"],\n [1211030002, 1211030, \"KEM KEM\"],\n [1211030003, 1211030, \"GUNUNG\"],\n [1211030004, 1211030, \"SIMPANG PERGENDANGEN\"],\n [1211030005, 1211030, \"PERGENDANGEN\"],\n [1211030006, 1211030, \"TIGABINANGA\"],\n [1211030007, 1211030, \"KUTA GALOH\"],\n [1211030008, 1211030, \"KUTA RAYA\"],\n [1211030009, 1211030, \"BUNGA BARU\"],\n [1211030010, 1211030, \"PERTUMBUKEN\"],\n [1211030011, 1211030, \"KUALA\"],\n [1211030012, 1211030, \"KUTA BUARA\"],\n [1211030013, 1211030, \"SIMOLAP\"],\n [1211030014, 1211030, \"KUTA BANGUN\"],\n [1211030015, 1211030, \"SUKAJULU\"],\n [1211030016, 1211030, \"KUTAMBARU PUNTI\"],\n [1211030017, 1211030, \"KUTA GERAT\"],\n [1211030018, 1211030, \"LIMANG\"],\n [1211030019, 1211030, \"PERBESI\"],\n [1211030020, 1211030, \"BATUMAMAK\"],\n [1211040001, 1211040, \"NAMOSURO\"],\n [1211040002, 1211040, \"JANDI\"],\n [1211040003, 1211040, \"NAGA\"],\n [1211040004, 1211040, \"KETAWAREN\"],\n [1211040005, 1211040, \"LAU KIDUPEN\"],\n [1211040006, 1211040, \"LAU LINGGA\"],\n [1211040007, 1211040, \"PERNANTIN\"],\n [1211040008, 1211040, \"BEKILANG\"],\n [1211040009, 1211040, \"BULUH PANCUR\"],\n [1211040010, 1211040, \"JUHAR TARIGAN\"],\n [1211040011, 1211040, \"JUHAR PERANGIN-ANGIN\"],\n [1211040012, 1211040, \"KIDUPEN\"],\n [1211040013, 1211040, \"PASAR BARU\"],\n [1211040014, 1211040, \"MBETUNG\"],\n [1211040015, 1211040, \"GUNUNG JUHAR\"],\n [1211040016, 1211040, \"JUHAR GINTING\"],\n [1211040017, 1211040, \"SIGENDERANG\"],\n [1211040018, 1211040, \"BATUMAMAK\"],\n [1211040019, 1211040, \"NAGERI\"],\n [1211040020, 1211040, \"SUGIHEN\"],\n [1211040021, 1211040, \"SUKABABO\"],\n [1211040022, 1211040, \"KUTAGUGUNG\"],\n [1211040023, 1211040, \"KERIAHEN\"],\n [1211040024, 1211040, \"KUTAMBELIN\"],\n [1211040025, 1211040, \"JUHAR GINTING SADANIOGA\"],\n [1211050001, 1211050, \"SARIMUNTE\"],\n [1211050002, 1211050, \"KUTAMBARU\"],\n [1211050003, 1211050, \"GUNUNG SARIBU\"],\n [1211050004, 1211050, \"KABANTUA\"],\n [1211050005, 1211050, \"GURUBENUA\"],\n [1211050006, 1211050, \"BARUNG KERSAP\"],\n [1211050007, 1211050, \"BIAK NAMPE\"],\n [1211050008, 1211050, \"TANJUNG BERINGIN\"],\n [1211050009, 1211050, \"PERTUMBUNGEN\"],\n [1211050010, 1211050, \"PARIMBALANG\"],\n [1211050011, 1211050, \"MUNTE\"],\n [1211050012, 1211050, \"GUNUNG MANUMPAK\"],\n [1211050013, 1211050, \"SELAKKAR\"],\n [1211050014, 1211050, \"SARINEMBAH\"],\n [1211050015, 1211050, \"SINGGAMANIK\"],\n [1211050016, 1211050, \"NAGERI\"],\n [1211050017, 1211050, \"KUTASUAH\"],\n [1211050018, 1211050, \"KINEPPEN\"],\n [1211050019, 1211050, \"BULUH NAMAN\"],\n [1211050020, 1211050, \"BANDAR MERIAH\"],\n [1211050021, 1211050, \"SUKARAME\"],\n [1211050022, 1211050, \"KUTAGERAT\"],\n [1211060001, 1211060, \"POLA TEBU\"],\n [1211060002, 1211060, \"GUNUNG MERIAH\"],\n [1211060003, 1211060, \"NEGERI JAHE\"],\n [1211060004, 1211060, \"BUAH RAYA\"],\n [1211060005, 1211060, \"BINTANG MERIAH\"],\n [1211060006, 1211060, \"SIABANG ABANG\"],\n [1211060007, 1211060, \"JINABUN\"],\n [1211060008, 1211060, \"KUTA BULUH\"],\n [1211060009, 1211060, \"LAU BULUH\"],\n [1211060010, 1211060, \"KUTA MALE\"],\n [1211060011, 1211060, \"UJUNG DELENG\"],\n [1211060012, 1211060, \"TANJUNG MERAHE\"],\n [1211060013, 1211060, \"LIANG MERDEKA\"],\n [1211060014, 1211060, \"RIH TENGAH\"],\n [1211060015, 1211060, \"MBURIDI\"],\n [1211060016, 1211060, \"KUTA BULUH GUGUNG\"],\n [1211070002, 1211070, \"BATUKARANG\"],\n [1211070003, 1211070, \"RIMOKAYU\"],\n [1211070004, 1211070, \"CIMBANG\"],\n [1211070005, 1211070, \"UJUNG PAYUNG\"],\n [1211070006, 1211070, \"PAYUNG\"],\n [1211070007, 1211070, \"SUKA MERIAH\"],\n [1211070008, 1211070, \"GURU KINAYAN\"],\n [1211070009, 1211070, \"SELANDI\"],\n [1211071001, 1211071, \"TANJUNG PULO\"],\n [1211071002, 1211071, \"TANJUNG MBELANG\"],\n [1211071003, 1211071, \"NARI GUNUNG DUA\"],\n [1211071004, 1211071, \"JANDI MERIAH\"],\n [1211071005, 1211071, \"SUKA TENDEL\"],\n [1211071006, 1211071, \"TANJUNG MERAWA\"],\n [1211071007, 1211071, \"TIGANDERKET\"],\n [1211071008, 1211071, \"PERBAJI\"],\n [1211071009, 1211071, \"TEMBURUN\"],\n [1211071010, 1211071, \"MARDINGDING\"],\n [1211071011, 1211071, \"KUTA MBARU\"],\n [1211071012, 1211071, \"SUSUK\"],\n [1211071013, 1211071, \"GUNUNG MERLAWAN\"],\n [1211071014, 1211071, \"NARI GUNUNG SATU\"],\n [1211071015, 1211071, \"KUTA GALUH\"],\n [1211071016, 1211071, \"PENAMPEN\"],\n [1211071017, 1211071, \"KUTA KEPAR\"],\n [1211080001, 1211080, \"BEGANDING\"],\n [1211080002, 1211080, \"SERUMBIA\"],\n [1211080003, 1211080, \"NANG BELAWAN\"],\n [1211080004, 1211080, \"LINGGA\"],\n [1211080005, 1211080, \"LINGGA JULU\"],\n [1211080006, 1211080, \"NDOKUM SIROGA\"],\n [1211080007, 1211080, \"SURBAKTI\"],\n [1211080008, 1211080, \"TIGA PANCUR\"],\n [1211080009, 1211080, \"BERASTEPU\"],\n [1211080010, 1211080, \"PINTU BESI\"],\n [1211080011, 1211080, \"JERAYA\"],\n [1211080012, 1211080, \"PERTEGUHEN\"],\n [1211080013, 1211080, \"KUTA TENGAH\"],\n [1211080014, 1211080, \"TORONG\"],\n [1211080015, 1211080, \"GAJAH\"],\n [1211080016, 1211080, \"BULAN BARU\"],\n [1211080021, 1211080, \"GAMBER\"],\n [1211081001, 1211081, \"KUTA GUGUNG\"],\n [1211081002, 1211081, \"SIGARANG GARANG\"],\n [1211081003, 1211081, \"BEKERAH\"],\n [1211081004, 1211081, \"SIMACEM\"],\n [1211081005, 1211081, \"SUKANALU\"],\n [1211081006, 1211081, \"KUTA TONGGAL\"],\n [1211081007, 1211081, \"SUKA NDEBI\"],\n [1211081008, 1211081, \"NAMAN\"],\n [1211081009, 1211081, \"SUKATEPU\"],\n [1211081010, 1211081, \"NDESKATI\"],\n [1211081011, 1211081, \"KUTA MBELIN\"],\n [1211081012, 1211081, \"GUNG PINTO\"],\n [1211081013, 1211081, \"KEBAYAKEN\"],\n [1211081014, 1211081, \"KUTA RAYAT\"],\n [1211082001, 1211082, \"DERAM\"],\n [1211082002, 1211082, \"UJUNG TERAN\"],\n [1211082003, 1211082, \"CINTA RAYAT\"],\n [1211082004, 1211082, \"SADA PERARIH\"],\n [1211082005, 1211082, \"SEMANGAT\"],\n [1211082006, 1211082, \"MERDEKA\"],\n [1211082007, 1211082, \"GONGSOL\"],\n [1211082008, 1211082, \"JARANGUDA\"],\n [1211082009, 1211082, \"SEMANGAT GUNUNG\"],\n [1211090001, 1211090, \"LAUSIMOMO\"],\n [1211090002, 1211090, \"KANDIBATA\"],\n [1211090003, 1211090, \"KACARIBU\"],\n [1211090004, 1211090, \"LAU CIMBA\"],\n [1211090005, 1211090, \"PADANG MAS\"],\n [1211090006, 1211090, \"GUNG LETO\"],\n [1211090007, 1211090, \"GUNG NEGERI\"],\n [1211090008, 1211090, \"SAMURA\"],\n [1211090009, 1211090, \"KETAREN\"],\n [1211090010, 1211090, \"KAMPUNG DALAM\"],\n [1211090011, 1211090, \"RUMAH KABANJAHE\"],\n [1211090012, 1211090, \"KABAN\"],\n [1211090013, 1211090, \"SUMBER MUFAKAT\"],\n [1211100001, 1211100, \"GURUSINGA\"],\n [1211100002, 1211100, \"R A Y A\"],\n [1211100003, 1211100, \"RUMAH BERASTAGI\"],\n [1211100004, 1211100, \"TAMBAK LAU MULGAP II\"],\n [1211100005, 1211100, \"GUNDALING II\"],\n [1211100006, 1211100, \"GUNDALING I\"],\n [1211100007, 1211100, \"TAMBAK LAU MULGAP I\"],\n [1211100008, 1211100, \"SEMPAJAYA\"],\n [1211100009, 1211100, \"D A U L U\"],\n [1211100010, 1211100, \"LAU GUMBA\"],\n [1211110001, 1211110, \"SUKAMAJU\"],\n [1211110002, 1211110, \"KUTA MBELIN\"],\n [1211110003, 1211110, \"SINGA\"],\n [1211110004, 1211110, \"KUBU SIMBELANG\"],\n [1211110005, 1211110, \"KACINAMBUN\"],\n [1211110006, 1211110, \"LAU RIMAN\"],\n [1211110007, 1211110, \"MANUK MULIA\"],\n [1211110008, 1211110, \"KUTA KEPAR\"],\n [1211110009, 1211110, \"BUNURAYA\"],\n [1211110010, 1211110, \"MULAWARI\"],\n [1211110011, 1211110, \"SUKA\"],\n [1211110012, 1211110, \"SUKADAME\"],\n [1211110013, 1211110, \"TIGAPANAH\"],\n [1211110014, 1211110, \"KUTA BALE\"],\n [1211110015, 1211110, \"SEBERAYA\"],\n [1211110016, 1211110, \"LEPAR SAMURA\"],\n [1211110017, 1211110, \"AJIMBELANG\"],\n [1211110018, 1211110, \"KUTAJULU\"],\n [1211110021, 1211110, \"BERTAH\"],\n [1211110023, 1211110, \"AJIBUHARA\"],\n [1211110024, 1211110, \"AJIJAHE\"],\n [1211110025, 1211110, \"AJIJULU\"],\n [1211110026, 1211110, \"SALIT\"],\n [1211110027, 1211110, \"SUKA MBAYAK\"],\n [1211110028, 1211110, \"SUKA SIPILIHEN\"],\n [1211110029, 1211110, \"LAMBAR\"],\n [1211111001, 1211111, \"KUBUCOLIA\"],\n [1211111002, 1211111, \"SAMPUN\"],\n [1211111003, 1211111, \"BUKIT\"],\n [1211111004, 1211111, \"SUGIHEN\"],\n [1211111005, 1211111, \"MELAS\"],\n [1211111006, 1211111, \"UJUNG SAMPUN\"],\n [1211111007, 1211111, \"DOLAT RAYAT\"],\n [1211120001, 1211120, \"KODON-KODON\"],\n [1211120002, 1211120, \"SIBOLANGIT\"],\n [1211120003, 1211120, \"TONGGING\"],\n [1211120004, 1211120, \"PENGAMBATEN\"],\n [1211120005, 1211120, \"NAGALINGGA\"],\n [1211120006, 1211120, \"PANCUR BATU\"],\n [1211120007, 1211120, \"PERTIBI TEMBE\"],\n [1211120008, 1211120, \"PERTIBI LAMA\"],\n [1211120009, 1211120, \"MEREK\"],\n [1211120010, 1211120, \"SITUNGGALING\"],\n [1211120011, 1211120, \"NEGERI TONGGING\"],\n [1211120012, 1211120, \"GARINGGING\"],\n [1211120013, 1211120, \"BANDAR TONGGING\"],\n [1211120014, 1211120, \"MULIA RAKYAT\"],\n [1211120015, 1211120, \"D O K A N\"],\n [1211120016, 1211120, \"REGAJI\"],\n [1211120017, 1211120, \"SUKAMANDI\"],\n [1211120018, 1211120, \"NAGARA\"],\n [1211120019, 1211120, \"AJINEMBAH\"],\n [1211130001, 1211130, \"RUMAMIS\"],\n [1211130002, 1211130, \"SEMANGAT\"],\n [1211130003, 1211130, \"SINAMAN\"],\n [1211130004, 1211130, \"TALIMBARU\"],\n [1211130005, 1211130, \"PERTUMBUKEN\"],\n [1211130006, 1211130, \"BULAN JULU\"],\n [1211130007, 1211130, \"BULAN JAHE\"],\n [1211130008, 1211130, \"SUKANALU\"],\n [1211130009, 1211130, \"SUKAJULU\"],\n [1211130010, 1211130, \"BARUSJAHE\"],\n [1211130011, 1211130, \"SERDANG\"],\n [1211130012, 1211130, \"PENAMPEN\"],\n [1211130013, 1211130, \"SARIMANIS\"],\n [1211130014, 1211130, \"TENGKIDIK\"],\n [1211130015, 1211130, \"PARIBUN\"],\n [1211130016, 1211130, \"PERSADANTA\"],\n [1211130017, 1211130, \"SIKAP\"],\n [1211130018, 1211130, \"TANJUNG BARUS\"],\n [1211130019, 1211130, \"BARUSJULU\"],\n [1212010001, 1212010, \"KUTA BAYU\"],\n [1212010002, 1212010, \"GUNUNG SINEMBAH\"],\n [1212010003, 1212010, \"GUNUNG PARIBUAN\"],\n [1212010004, 1212010, \"SIMEMPAR\"],\n [1212010005, 1212010, \"GUNUNG SERIBU\"],\n [1212010006, 1212010, \"KUTA TENGAH\"],\n [1212010007, 1212010, \"PEKAN GUNUNG MERIAH\"],\n [1212010008, 1212010, \"GUNUNG MERIAH\"],\n [1212010009, 1212010, \"BINTANG MERIAH\"],\n [1212010010, 1212010, \"UJUNG MERIAH\"],\n [1212010011, 1212010, \"MARJANJI PEMATANG\"],\n [1212010012, 1212010, \"MARJANJI TONGAH\"],\n [1212020001, 1212020, \"LIANG PEMATANG\"],\n [1212020002, 1212020, \"LIANG MUDA\"],\n [1212020003, 1212020, \"TANJUNG RAJA\"],\n [1212020004, 1212020, \"GUNUNG MANUMPAK B\"],\n [1212020005, 1212020, \"SIPINGGAN\"],\n [1212020006, 1212020, \"TANJUNG MUDA\"],\n [1212020007, 1212020, \"BAH BAH BUNTU\"],\n [1212020008, 1212020, \"KUTA MBELIN\"],\n [1212020009, 1212020, \"TANJUNG BAMPU\"],\n [1212020010, 1212020, \"TANJUNG TIMUR\"],\n [1212020011, 1212020, \"DURIN TINGGUNG\"],\n [1212020012, 1212020, \"RUMAH RIH\"],\n [1212020013, 1212020, \"SIBUNGA BUNGA HILIR\"],\n [1212020014, 1212020, \"GUNUNG MANUMPAK A\"],\n [1212020015, 1212020, \"DURIAN EMPAT MBELANG\"],\n [1212020016, 1212020, \"TIGA JUHAR\"],\n [1212020017, 1212020, \"RANGGITGIT\"],\n [1212020018, 1212020, \"RUMAH LENGO\"],\n [1212020019, 1212020, \"RUMAH SUMBUL\"],\n [1212020020, 1212020, \"TANAH GARA HULU\"],\n [1212030001, 1212030, \"BANDAR BARU\"],\n [1212030002, 1212030, \"SIKEBEN\"],\n [1212030003, 1212030, \"MARTELU\"],\n [1212030004, 1212030, \"BUKUM\"],\n [1212030005, 1212030, \"NEGRI GUGUNG\"],\n [1212030006, 1212030, \"CINTA RAKYAT\"],\n [1212030007, 1212030, \"KETANGKUHEN\"],\n [1212030008, 1212030, \"SUKA MAJU\"],\n [1212030009, 1212030, \"BULUH AWAR\"],\n [1212030010, 1212030, \"BATU LAYANG\"],\n [1212030011, 1212030, \"RUMAH PIL-PIL\"],\n [1212030012, 1212030, \"SUKA MAKMUR\"],\n [1212030013, 1212030, \"DURIN SERUGUN\"],\n [1212030014, 1212030, \"UJUNG DELENG\"],\n [1212030015, 1212030, \"TANJUNG BERINGIN\"],\n [1212030016, 1212030, \"TAMBUNEN\"],\n [1212030017, 1212030, \"PUANG AJA\"],\n [1212030018, 1212030, \"BETIMUS BARU\"],\n [1212030019, 1212030, \"RUMAH SUMBUL\"],\n [1212030020, 1212030, \"RUMAH KINANGKUNG SUKA PIRING\"],\n [1212030021, 1212030, \"SALA BULAN\"],\n [1212030022, 1212030, \"BENGKURUNG\"],\n [1212030023, 1212030, \"KUALA\"],\n [1212030024, 1212030, \"BATU MBELIN\"],\n [1212030025, 1212030, \"SIBOLANGIT\"],\n [1212030026, 1212030, \"SEMBAHE\"],\n [1212030027, 1212030, \"BUAH NABAR\"],\n [1212030028, 1212030, \"BINGKAWAN\"],\n [1212030029, 1212030, \"SAYUM SABAH\"],\n [1212030030, 1212030, \"RAMBUNG BARU\"],\n [1212040001, 1212040, \"SUKA MAKMUR\"],\n [1212040002, 1212040, \"PERPANDEN\"],\n [1212040003, 1212040, \"NAMO MIRIK\"],\n [1212040004, 1212040, \"SUKA DAME\"],\n [1212040005, 1212040, \"KWALA LAU BICIK\"],\n [1212040006, 1212040, \"PASAR X\"],\n [1212040007, 1212040, \"SAMPE CITA\"],\n [1212040008, 1212040, \"KUTALIMBARU\"],\n [1212040009, 1212040, \"SUKA RENDE\"],\n [1212040010, 1212040, \"LAU BAKERI\"],\n [1212040011, 1212040, \"SILEBO LEBO\"],\n [1212040012, 1212040, \"SAWIT REJO\"],\n [1212040013, 1212040, \"SEI MENCIRIM\"],\n [1212040014, 1212040, \"NAMO RUBE JULU\"],\n [1212050001, 1212050, \"BINTANG MERIAH\"],\n [1212050002, 1212050, \"SUGAU\"],\n [1212050003, 1212050, \"TIANG LAYAR\"],\n [1212050004, 1212050, \"SALAM TANI\"],\n [1212050005, 1212050, \"NAMO RIAM\"],\n [1212050006, 1212050, \"DURIN SIMBELANG A\"],\n [1212050007, 1212050, \"DURIN TUNGGAL\"],\n [1212050008, 1212050, \"PERTAMPILEN\"],\n [1212050009, 1212050, \"HULU\"],\n [1212050010, 1212050, \"NAMO SIMPUR\"],\n [1212050011, 1212050, \"NAMO BINTANG\"],\n [1212050012, 1212050, \"SIMALINGKAR A\"],\n [1212050013, 1212050, \"PERUMNAS SIMALINGKAR\"],\n [1212050014, 1212050, \"B A R U\"],\n [1212050015, 1212050, \"L A M A\"],\n [1212050016, 1212050, \"KAMPUNG TENGAH\"],\n [1212050017, 1212050, \"NAMORIH\"],\n [1212050018, 1212050, \"DURIAN JANGAK\"],\n [1212050019, 1212050, \"TUNTUNGAN II\"],\n [1212050020, 1212050, \"TUNTUNGAN I\"],\n [1212050021, 1212050, \"GUNUNG TINGGI\"],\n [1212050022, 1212050, \"SEI GELUGUR\"],\n [1212050023, 1212050, \"SUKA RAYA\"],\n [1212050024, 1212050, \"TANJUNG ANOM\"],\n [1212050025, 1212050, \"SEMBAHE BARU\"],\n [1212060001, 1212060, \"RIMO MUNGKUR\"],\n [1212060002, 1212060, \"NAMO BATANG\"],\n [1212060003, 1212060, \"BEKUKUL\"],\n [1212060004, 1212060, \"NAMO PINANG\"],\n [1212060005, 1212060, \"TANJUNG SELAMAT\"],\n [1212060006, 1212060, \"NAMO PAKAM\"],\n [1212060007, 1212060, \"SUKA MULIA HULU\"],\n [1212060008, 1212060, \"URUK GEDANG\"],\n [1212060009, 1212060, \"SUKA MULIA HILIR\"],\n [1212060010, 1212060, \"SILUE LUE\"],\n [1212060011, 1212060, \"LUBANG IDO\"],\n [1212060012, 1212060, \"RUMAH MBACANG\"],\n [1212060013, 1212060, \"RUMAH KEBEN\"],\n [1212060014, 1212060, \"TANGKAHAN\"],\n [1212060015, 1212060, \"CINTA RAKYAT\"],\n [1212060016, 1212060, \"GUNUNG BERITA\"],\n [1212060017, 1212060, \"NAMO RAMBE\"],\n [1212060018, 1212060, \"NAMO LANDUR\"],\n [1212060019, 1212060, \"NAMO MBARU\"],\n [1212060020, 1212060, \"SALANG TUNGIR\"],\n [1212060021, 1212060, \"GUNUNG KELAWAS\"],\n [1212060022, 1212060, \"BATU REJO\"],\n [1212060023, 1212060, \"BATU MBELIN\"],\n [1212060024, 1212060, \"KUTA TENGAH\"],\n [1212060025, 1212060, \"JATI KESUMA\"],\n [1212060026, 1212060, \"JABA\"],\n [1212060027, 1212060, \"TIMBANG LAWAN\"],\n [1212060028, 1212060, \"BATU GEMUK\"],\n [1212060029, 1212060, \"LAU MULGAP\"],\n [1212060030, 1212060, \"KUALA SIMEME\"],\n [1212060031, 1212060, \"KUTA TUALAH\"],\n [1212060032, 1212060, \"NAMO MBELIN\"],\n [1212060033, 1212060, \"SUDI REJO\"],\n [1212060034, 1212060, \"BATU PENJEMURAN\"],\n [1212060035, 1212060, \"UJUNG LABUHEN\"],\n [1212060036, 1212060, \"DELI TUA\"],\n [1212070001, 1212070, \"MARDINDING JULU\"],\n [1212070002, 1212070, \"PENEN\"],\n [1212070003, 1212070, \"PER RIA RIA\"],\n [1212070004, 1212070, \"SARI LABA JAHE\"],\n [1212070005, 1212070, \"BIRU BIRU\"],\n [1212070006, 1212070, \"KUALA DEKAH\"],\n [1212070007, 1212070, \"RUMAH GERAT\"],\n [1212070008, 1212070, \"TANJUNG SENA\"],\n [1212070009, 1212070, \"KUTA MULYO\"],\n [1212070010, 1212070, \"MBARUAI\"],\n [1212070011, 1212070, \"NAMO TUALANG\"],\n [1212070012, 1212070, \"KAMPUNG SELAMAT\"],\n [1212070013, 1212070, \"SIDODADI\"],\n [1212070014, 1212070, \"NAMO SURO BARU\"],\n [1212070015, 1212070, \"AJI BAHO\"],\n [1212070016, 1212070, \"CANDI REJO\"],\n [1212070017, 1212070, \"SIDOMULYO\"],\n [1212080001, 1212080, \"RAMBAI\"],\n [1212080002, 1212080, \"KUTA JURUNG\"],\n [1212080003, 1212080, \"PENUNGKIREN\"],\n [1212080004, 1212080, \"LAU RAKIT\"],\n [1212080005, 1212080, \"TALA PETA\"],\n [1212080006, 1212080, \"SIGUCI\"],\n [1212080007, 1212080, \"GUNUNG RINTIS\"],\n [1212080008, 1212080, \"LAU REMPAH\"],\n [1212080009, 1212080, \"JUMA TOMBAK\"],\n [1212080010, 1212080, \"NEGARA/BERINGIN\"],\n [1212080011, 1212080, \"TALUN KENAS\"],\n [1212080012, 1212080, \"SUMBUL\"],\n [1212080013, 1212080, \"LIMAU MUNGKUR\"],\n [1212080014, 1212080, \"TADUKAN RAGA\"],\n [1212080015, 1212080, \"LAU BARUS BARU\"],\n [1212090010, 1212090, \"MABAR\"],\n [1212090011, 1212090, \"SIBAGANDING\"],\n [1212090012, 1212090, \"BAH BALUA\"],\n [1212090013, 1212090, \"RUMAH DELENG\"],\n [1212090014, 1212090, \"BANDAR GUGUNG\"],\n [1212090015, 1212090, \"BANDAR MERIAH\"],\n [1212090016, 1212090, \"PERGURUAN\"],\n [1212090017, 1212090, \"BANGUN PURBA TENGAH\"],\n [1212090018, 1212090, \"DAMAK MALIHO\"],\n [1212090019, 1212090, \"SUKA LUWE\"],\n [1212090020, 1212090, \"URUNG GANJANG\"],\n [1212090021, 1212090, \"BANDAR KWALA\"],\n [1212090022, 1212090, \"MAROMBUN BARAT\"],\n [1212090023, 1212090, \"MAROMBUN UJUNG JAWI\"],\n [1212090024, 1212090, \"BAH PERAK\"],\n [1212090025, 1212090, \"BANGUN PURBA\"],\n [1212090026, 1212090, \"GREAHAN\"],\n [1212090027, 1212090, \"CIMAHE\"],\n [1212090028, 1212090, \"BATU GINGGING\"],\n [1212090029, 1212090, \"TANJUNG PURBA\"],\n [1212090030, 1212090, \"SIALANG\"],\n [1212090031, 1212090, \"BAGERPANG\"],\n [1212090032, 1212090, \"BATU RATA\"],\n [1212090033, 1212090, \"UJUNG RAMBE\"],\n [1212190001, 1212190, \"KAMPUNG PAKU\"],\n [1212190007, 1212190, \"BANDAR KWALA\"],\n [1212190008, 1212190, \"BARU TITI BESI\"],\n [1212190012, 1212190, \"PULAU TAGOR BARU\"],\n [1212190013, 1212190, \"GALANG BARAT\"],\n [1212190014, 1212190, \"KOTANGAN\"],\n [1212190015, 1212190, \"SUNGEI PUTIH\"],\n [1212190016, 1212190, \"PAYA KUDA\"],\n [1212190017, 1212190, \"KAMPUNG KELAPA SATU\"],\n [1212190018, 1212190, \"PISANG PALA\"],\n [1212190019, 1212190, \"PETUMBUKAN\"],\n [1212190020, 1212190, \"TANJUNG GUSTI\"],\n [1212190021, 1212190, \"SUNGAI KARANG\"],\n [1212190022, 1212190, \"KAMPUNG GALANG SUKA\"],\n [1212190023, 1212190, \"GALANG KOTA\"],\n [1212190024, 1212190, \"TIMBANG DELI\"],\n [1212190025, 1212190, \"JAHARUM A\"],\n [1212190026, 1212190, \"TANAH MERAH\"],\n [1212190027, 1212190, \"PERTANGGUHAN\"],\n [1212190028, 1212190, \"TANJUNG SIPORKIS\"],\n [1212190029, 1212190, \"BATU LOKONG\"],\n [1212190030, 1212190, \"NAGA REJO\"],\n [1212190031, 1212190, \"PAYA ITIK\"],\n [1212190032, 1212190, \"PAYA SAMPIR\"],\n [1212190033, 1212190, \"KAMPUNG JOHAR BARU\"],\n [1212190034, 1212190, \"KOTASAN\"],\n [1212190035, 1212190, \"JAHARUM B\"],\n [1212190036, 1212190, \"TANAH ABANG\"],\n [1212190037, 1212190, \"KRAMAT GAJAH\"],\n [1212200001, 1212200, \"MEDAN SINEMBAH\"],\n [1212200002, 1212200, \"BANDAR LABUHAN\"],\n [1212200003, 1212200, \"BANGUN REJO\"],\n [1212200004, 1212200, \"AEK PANCUR\"],\n [1212200005, 1212200, \"NAGA TIMBUL\"],\n [1212200006, 1212200, \"LENGAU SERPANG\"],\n [1212200007, 1212200, \"SEI MERAH\"],\n [1212200008, 1212200, \"DAGANG KERAWAN\"],\n [1212200009, 1212200, \"TANJUNG MORAWA PEKAN\"],\n [1212200010, 1212200, \"TANJUNG MORAWA A\"],\n [1212200011, 1212200, \"LIMAU MANIS\"],\n [1212200012, 1212200, \"UJUNG SERDANG\"],\n [1212200013, 1212200, \"BANGUN SARI\"],\n [1212200014, 1212200, \"BANGUN SARI BARU\"],\n [1212200015, 1212200, \"BUNTU BEDIMBAR\"],\n [1212200016, 1212200, \"TELAGA SARI\"],\n [1212200017, 1212200, \"DAGANG KELAMBIR\"],\n [1212200018, 1212200, \"TANJUNG MORAWA B\"],\n [1212200019, 1212200, \"TANJUNG BARU\"],\n [1212200020, 1212200, \"PUNDEN REJO\"],\n [1212200021, 1212200, \"TANJUNG MULIA\"],\n [1212200022, 1212200, \"PERDAMAIAN\"],\n [1212200023, 1212200, \"WONO SARI\"],\n [1212200024, 1212200, \"DALU 10 A\"],\n [1212200025, 1212200, \"DALU 10 B\"],\n [1212200026, 1212200, \"PENARA KEBUN\"],\n [1212210001, 1212210, \"PATUMBAK SATU\"],\n [1212210002, 1212210, \"LANTASAN BARU\"],\n [1212210003, 1212210, \"LANTASAN LAMA\"],\n [1212210004, 1212210, \"PATUMBAK DUA\"],\n [1212210005, 1212210, \"SIGARA GARA\"],\n [1212210006, 1212210, \"MARINDAL SATU\"],\n [1212210007, 1212210, \"PATUMBAK KAMPUNG\"],\n [1212210008, 1212210, \"MARINDAL DUA\"],\n [1212220001, 1212220, \"DELI TUA BARAT\"],\n [1212220002, 1212220, \"DELI TUA TIMUR\"],\n [1212220003, 1212220, \"DELI TUA\"],\n [1212220004, 1212220, \"MEKAR SARI\"],\n [1212220005, 1212220, \"KEDAI DURIAN\"],\n [1212220006, 1212220, \"SUKA MAKMUR\"],\n [1212230001, 1212230, \"TELAGA SARI\"],\n [1212230002, 1212230, \"SEI MENCIRIM\"],\n [1212230003, 1212230, \"SUKA MAJU\"],\n [1212230004, 1212230, \"SEI BERAS SEKATA\"],\n [1212230005, 1212230, \"TANJUNG SELAMAT\"],\n [1212230006, 1212230, \"SUNGGAL KANAN\"],\n [1212230007, 1212230, \"MEDAN KRIO\"],\n [1212230008, 1212230, \"PAYA GELI\"],\n [1212230009, 1212230, \"PUJI MULYO\"],\n [1212230010, 1212230, \"SEI SEMAYANG\"],\n [1212230011, 1212230, \"SUMBER MELATI DISKI\"],\n [1212230012, 1212230, \"SERBA JADI\"],\n [1212230013, 1212230, \"MULYOREJO\"],\n [1212230014, 1212230, \"KAMPUNG LALANG\"],\n [1212230015, 1212230, \"PURWODADI\"],\n [1212230016, 1212230, \"TANJUNG GUSTA\"],\n [1212230017, 1212230, \"HELVETIA\"],\n [1212240001, 1212240, \"TANDAM HULU DUA\"],\n [1212240002, 1212240, \"KAMPUNG TANDAM HULU SATU\"],\n [1212240003, 1212240, \"PAYA BAKUNG\"],\n [1212240004, 1212240, \"KLAMBIR LIMA KAMPUNG\"],\n [1212240005, 1212240, \"KLAMBIR LIMA KEBON\"],\n [1212240006, 1212240, \"KLUMPANG KEBON\"],\n [1212240007, 1212240, \"KLUMPANG KAMPUNG\"],\n [1212240008, 1212240, \"SIALANG MUDA\"],\n [1212240009, 1212240, \"BULU CINA\"],\n [1212240010, 1212240, \"TANDAM HILIR SATU\"],\n [1212240011, 1212240, \"TANDAM HILIR DUA\"],\n [1212240012, 1212240, \"KOTA DATAR\"],\n [1212240013, 1212240, \"KOTA RANTANG\"],\n [1212240014, 1212240, \"KAMPUNG LAMA\"],\n [1212240015, 1212240, \"KLAMBIR\"],\n [1212240016, 1212240, \"KAMPUNG SELEMAK\"],\n [1212240017, 1212240, \"HAMPARAN PERAK\"],\n [1212240018, 1212240, \"SUNGAI BAHARU\"],\n [1212240019, 1212240, \"PALUH MANAN\"],\n [1212240020, 1212240, \"PALUH KURAU\"],\n [1212250001, 1212250, \"HELVETIA\"],\n [1212250002, 1212250, \"MANUNGGAL\"],\n [1212250003, 1212250, \"PEMATANG JOHAR\"],\n [1212250004, 1212250, \"TELAGA TUJUH\"],\n [1212250005, 1212250, \"KARANG GADING\"],\n [1212260001, 1212260, \"AMPLAS\"],\n [1212260002, 1212260, \"KENANGAN\"],\n [1212260003, 1212260, \"TEMBUNG\"],\n [1212260004, 1212260, \"SUMBER REJO TIMUR\"],\n [1212260005, 1212260, \"SEI ROTAN\"],\n [1212260006, 1212260, \"BANDAR KLIPPA\"],\n [1212260007, 1212260, \"BANDAR KHALIPAH\"],\n [1212260008, 1212260, \"MEDAN ESTATE\"],\n [1212260009, 1212260, \"LAUT DENDANG\"],\n [1212260010, 1212260, \"SAMPALI\"],\n [1212260011, 1212260, \"BANDAR SETIA\"],\n [1212260012, 1212260, \"KOLAM\"],\n [1212260013, 1212260, \"SAENTIS\"],\n [1212260014, 1212260, \"CINTA RAKYAT\"],\n [1212260015, 1212260, \"CINTA DAMAI\"],\n [1212260016, 1212260, \"PEMATANG LALANG\"],\n [1212260017, 1212260, \"PERCUT\"],\n [1212260018, 1212260, \"TANJUNG REJO\"],\n [1212260019, 1212260, \"TANJUNG SELAMAT\"],\n [1212260020, 1212260, \"KENANGAN BARU\"],\n [1212270001, 1212270, \"SENA\"],\n [1212270002, 1212270, \"TUMPATAN NIBUNG\"],\n [1212270003, 1212270, \"BARU\"],\n [1212270004, 1212270, \"TANJUNG SARI\"],\n [1212270005, 1212270, \"BAKARAN BATU\"],\n [1212270006, 1212270, \"BINTANG MERIAH\"],\n [1212270007, 1212270, \"BATANG KUIS PEKAN\"],\n [1212270008, 1212270, \"PAYA GAMBAR\"],\n [1212270009, 1212270, \"SIDODADI\"],\n [1212270010, 1212270, \"SUGIHARJO\"],\n [1212270011, 1212270, \"MESJID\"],\n [1212280001, 1212280, \"SEI TUAN\"],\n [1212280002, 1212280, \"TENGAH\"],\n [1212280003, 1212280, \"KELAMBIR\"],\n [1212280004, 1212280, \"DURIAN\"],\n [1212280005, 1212280, \"KUBAH SENTANG\"],\n [1212280006, 1212280, \"PERKBUNAN RAMUNIA\"],\n [1212280007, 1212280, \"RAMUNIA DUA\"],\n [1212280008, 1212280, \"RAMUNIA SATU\"],\n [1212280009, 1212280, \"DENAI SARANG BURUNG\"],\n [1212280010, 1212280, \"DENAI LAMA\"],\n [1212280011, 1212280, \"BINJAI BAKUNG\"],\n [1212280012, 1212280, \"DENAI KUALA\"],\n [1212280013, 1212280, \"PALUH SIBAJI\"],\n [1212280014, 1212280, \"PANTAI LABU BARU\"],\n [1212280015, 1212280, \"PANTAI LABU PEKAN\"],\n [1212280016, 1212280, \"RUGEMUK\"],\n [1212280017, 1212280, \"PEMATANG BIARA\"],\n [1212280018, 1212280, \"RANTAU PANJANG\"],\n [1212280019, 1212280, \"BAGAN SERDANG\"],\n [1212290001, 1212290, \"TUMPATAN\"],\n [1212290002, 1212290, \"EMPLASMEN KUALA NAMU\"],\n [1212290003, 1212290, \"SIDODADI RAMUNIA\"],\n [1212290004, 1212290, \"PASAR LIMA KEBUN KELAPA\"],\n [1212290005, 1212290, \"ARAS KABU\"],\n [1212290006, 1212290, \"SERDANG\"],\n [1212290007, 1212290, \"SIDOURIP\"],\n [1212290008, 1212290, \"PASAR ENAM KUALA NAMU\"],\n [1212290009, 1212290, \"KARANG ANYAR\"],\n [1212290010, 1212290, \"BERINGIN\"],\n [1212290011, 1212290, \"SIDOARJO DUA RAMUNIA\"],\n [1212300001, 1212300, \"PALUH KEMIRI\"],\n [1212300002, 1212300, \"PETAPAHAN\"],\n [1212300003, 1212300, \"TANJUNG GARBUS SATU\"],\n [1212300004, 1212300, \"PAGAR MERBAU TIGA\"],\n [1212300005, 1212300, \"CEMARA\"],\n [1212300006, 1212300, \"PASAR MELINTANG\"],\n [1212300007, 1212300, \"PAGAR JATI\"],\n [1212300008, 1212300, \"SYAHMAD\"],\n [1212300009, 1212300, \"LUBUK PAKAM TIGA\"],\n [1212300010, 1212300, \"LUBUK PAKAM I/II\"],\n [1212300011, 1212300, \"LUBUK PAKAM PEKAN\"],\n [1212300012, 1212300, \"BAKARAN BATU\"],\n [1212300013, 1212300, \"SEKIP\"],\n [1212310001, 1212310, \"BANDAR DOLOK\"],\n [1212310002, 1212310, \"TANJUNG GARBUS II\"],\n [1212310003, 1212310, \"PERBARAKAN\"],\n [1212310004, 1212310, \"TANJUNG GARBUS KAMPUNG\"],\n [1212310005, 1212310, \"TANJUNG MULIA\"],\n [1212310006, 1212310, \"PURWODADI\"],\n [1212310007, 1212310, \"SUKAMULIA\"],\n [1212310008, 1212310, \"SIDODADI BATU DELAPAN\"],\n [1212310009, 1212310, \"JATI REJO\"],\n [1212310010, 1212310, \"SIDOARJO SATU JATIBARU\"],\n [1212310011, 1212310, \"SIDOARJO SATU PASAR MIRING\"],\n [1212310012, 1212310, \"PAGAR MERBAU I\"],\n [1212310013, 1212310, \"PAGAR MERBAU II\"],\n [1212310014, 1212310, \"SUMBEREJO\"],\n [1212310015, 1212310, \"SUKAMANDI HULU\"],\n [1212310016, 1212310, \"SUKAMANDI HILIR\"],\n [1213010001, 1213010, \"BATU JONG JONG\"],\n [1213010002, 1213010, \"LAU DAMAK\"],\n [1213010003, 1213010, \"TIMBANG LAWAN\"],\n [1213010004, 1213010, \"SAMPE RAYA\"],\n [1213010005, 1213010, \"BUKIT LAWANG\"],\n [1213010006, 1213010, \"PERKEBUNAN BUNGARA\"],\n [1213010007, 1213010, \"PEKAN BAHOROK\"],\n [1213010008, 1213010, \"EMPUS\"],\n [1213010009, 1213010, \"PERKEBUNAN TURANGI\"],\n [1213010010, 1213010, \"SIMPANG PULAU RAMBUNG\"],\n [1213010011, 1213010, \"SEMATAR\"],\n [1213010012, 1213010, \"PERKEBUNAN PULAU RAMBUNG\"],\n [1213010013, 1213010, \"SUKA RAKYAT\"],\n [1213010014, 1213010, \"TANJUNG LENGGANG\"],\n [1213010017, 1213010, \"PERKEBUNAN SEI MUSAM\"],\n [1213010018, 1213010, \"SEI MUSAM KENDIT\"],\n [1213010020, 1213010, \"TIMBANG JAYA\"],\n [1213010021, 1213010, \"MUSAM PEMBANGUNAN\"],\n [1213010023, 1213010, \"UJUNG BANDAR\"],\n [1213011001, 1213011, \"SUMBER JAYA\"],\n [1213011002, 1213011, \"PULAU SEMIKAT\"],\n [1213011003, 1213011, \"SEBERTUNG\"],\n [1213011004, 1213011, \"PERKEBUNAN AMAL TANI\"],\n [1213011005, 1213011, \"SIDOREJO\"],\n [1213011006, 1213011, \"GUNUNG TINGGI\"],\n [1213011007, 1213011, \"SERAPIT\"],\n [1213011008, 1213011, \"SUKAPULUNG\"],\n [1213011009, 1213011, \"TANJUNG KERIAHAN\"],\n [1213011010, 1213011, \"AMAN DAMAI\"],\n [1213020005, 1213020, \"UJUNG BANDAR\"],\n [1213020006, 1213020, \"PARANGGUAM\"],\n [1213020007, 1213020, \"PERKEBUNAN TAMBUNAN\"],\n [1213020008, 1213020, \"LAU TEPU\"],\n [1213020009, 1213020, \"PAMA TAMBUNAN\"],\n [1213020010, 1213020, \"PERKEBUNAN GLUGUR LANGKAT\"],\n [1213020015, 1213020, \"BANDAR TELU\"],\n [1213020016, 1213020, \"PERKEBUNAN TURANGI\"],\n [1213020017, 1213020, \"UJUNG TERAN\"],\n [1213020018, 1213020, \"MINTA KASIH\"],\n [1213020019, 1213020, \"TANJUNG LANGKAT\"],\n [1213020020, 1213020, \"NAMAN JAHE\"],\n [1213020021, 1213020, \"PERKEBUNAN TANJUNG KELILING\"],\n [1213020025, 1213020, \"PONCO WARNO\"],\n [1213020026, 1213020, \"ADIN TENGAH\"],\n [1213020027, 1213020, \"LAU LUGUR\"],\n [1213020028, 1213020, \"PANCUR IDO\"],\n [1213021001, 1213021, \"KAPERAS\"],\n [1213021002, 1213021, \"SULKAM\"],\n [1213021003, 1213021, \"RAMPAH\"],\n [1213021004, 1213021, \"NAMO TERAS\"],\n [1213021005, 1213021, \"KUTAMBARU\"],\n [1213021006, 1213021, \"PERKEBUNAN MARIKE\"],\n [1213021007, 1213021, \"KUTA GAJAH\"],\n [1213021008, 1213021, \"PERKEBUNAN NAMO TONGAN\"],\n [1213030001, 1213030, \"TELAGAH\"],\n [1213030002, 1213030, \"TANJUNG GUNUNG\"],\n [1213030003, 1213030, \"PEKAN SAWAH\"],\n [1213030004, 1213030, \"BELINTENG\"],\n [1213030005, 1213030, \"RUMAH GALUH\"],\n [1213030006, 1213030, \"SIMPANG KUTA BULUH\"],\n [1213030007, 1213030, \"GUNUNG AMBAT\"],\n [1213030008, 1213030, \"NAMU UKUR SELATAN\"],\n [1213030009, 1213030, \"NAMU UKUR UTARA\"],\n [1213030010, 1213030, \"DURIAN LINGGA\"],\n [1213030011, 1213030, \"PASAR VIII NAMO TRASI\"],\n [1213030012, 1213030, \"EMPLASMEN PASAR IV NAMO TRASI\"],\n [1213030013, 1213030, \"PASAR VI KWALA MENCIRIM\"],\n [1213030014, 1213030, \"PURWOBINANGUN\"],\n [1213030015, 1213030, \"EMPLASMEN KWALA MENCIRIM\"],\n [1213030016, 1213030, \"MEKAR JAYA\"],\n [1213040001, 1213040, \"GARUNGGANG\"],\n [1213040002, 1213040, \"PARIT BINDU\"],\n [1213040003, 1213040, \"BERUAM\"],\n [1213040004, 1213040, \"BESADI\"],\n [1213040005, 1213040, \"PERKEBUNAN BLANGKAHAN\"],\n [1213040006, 1213040, \"SEI PENJARA\"],\n [1213040007, 1213040, \"RAJA TENGAH\"],\n [1213040008, 1213040, \"NAMO MBELIN\"],\n [1213040009, 1213040, \"BEKIUNG\"],\n [1213040010, 1213040, \"BALAI KASIH\"],\n [1213040011, 1213040, \"DALAN NAMAN\"],\n [1213040012, 1213040, \"PEKAN KUALA\"],\n [1213040013, 1213040, \"PERKEBUNAN BEKIUN\"],\n [1213040017, 1213040, \"SUKA DAMAI\"],\n [1213040018, 1213040, \"SIDO MAKMUR\"],\n [1213040019, 1213040, \"BELA RAKYAT\"],\n [1213050001, 1213050, \"NAMBIKI\"],\n [1213050002, 1213050, \"TANJUNG MERAHE\"],\n [1213050003, 1213050, \"PADANG BRAHRANG\"],\n [1213050004, 1213050, \"LAU MULGAP\"],\n [1213050005, 1213050, \"KUTA PARIT\"],\n [1213050006, 1213050, \"PEKAN SELESAI\"],\n [1213050007, 1213050, \"BEKULAP\"],\n [1213050008, 1213050, \"PERHIASAN\"],\n [1213050009, 1213050, \"SELAYANG\"],\n [1213050010, 1213050, \"SEI LIMBAT\"],\n [1213050011, 1213050, \"MANCANG\"],\n [1213050012, 1213050, \"KUALA AIR HITAM\"],\n [1213050013, 1213050, \"PADANG CERMIN\"],\n [1213050014, 1213050, \"SELAYANG BARU\"],\n [1213060001, 1213060, \"TANJUNG JATI\"],\n [1213060002, 1213060, \"SIDOMULYO\"],\n [1213060003, 1213060, \"SENDANG REJO\"],\n [1213060004, 1213060, \"SAMBIREJO\"],\n [1213060005, 1213060, \"KWALA BEGUMIT\"],\n [1213060006, 1213060, \"PERDAMEAN\"],\n [1213060007, 1213060, \"SUKAMAKMUR\"],\n [1213070001, 1213070, \"BANYUMAS\"],\n [1213070002, 1213070, \"KWALA BINGAI\"],\n [1213070003, 1213070, \"SIDOMULYO\"],\n [1213070004, 1213070, \"PANTAI GEMI\"],\n [1213070005, 1213070, \"PERDAMAIAN\"],\n [1213070006, 1213070, \"STABAT BARU\"],\n [1213070007, 1213070, \"ARA CONDONG\"],\n [1213070008, 1213070, \"KWALA BEGUMIT\"],\n [1213070009, 1213070, \"MANGGA\"],\n [1213070010, 1213070, \"KARANGREJO\"],\n [1213070011, 1213070, \"DENDANG\"],\n [1213070012, 1213070, \"PAYA MABAR\"],\n [1213080001, 1213080, \"BESILAM BUKIT LEMBASA\"],\n [1213080002, 1213080, \"GERGAS\"],\n [1213080003, 1213080, \"BINGAI\"],\n [1213080004, 1213080, \"BUKIT MELINTANG\"],\n [1213080005, 1213080, \"KEBUN BALOK\"],\n [1213080006, 1213080, \"SUMBER MULYO\"],\n [1213080007, 1213080, \"GOHOR LAMA\"],\n [1213080008, 1213080, \"STABAT LAMA\"],\n [1213080009, 1213080, \"STABAT LAMA BARAT\"],\n [1213080010, 1213080, \"PERTUMBUKAN\"],\n [1213080011, 1213080, \"PAYA TUSAN\"],\n [1213080012, 1213080, \"MEKAR JAYA\"],\n [1213080013, 1213080, \"JENTERA STABAT\"],\n [1213080014, 1213080, \"STUNGKIT\"],\n [1213090001, 1213090, \"SEI MUSAM\"],\n [1213090002, 1213090, \"NAMU SIALANG\"],\n [1213090003, 1213090, \"SEI SERDANG\"],\n [1213090004, 1213090, \"SEI BAMBAN\"],\n [1213090005, 1213090, \"BATANG SERANGAN\"],\n [1213090006, 1213090, \"KUALA MUSAM\"],\n [1213090007, 1213090, \"KARYA JADI\"],\n [1213090008, 1213090, \"PALUH PAKEH BABUSALAM\"],\n [1213100001, 1213100, \"SEI LITUR TASIK\"],\n [1213100002, 1213100, \"SAWIT SEBERANG\"],\n [1213100003, 1213100, \"ALUR GADUNG\"],\n [1213100004, 1213100, \"SIMPANG 3 SAWIT SEBERANG\"],\n [1213100005, 1213100, \"SAWIT HULU\"],\n [1213100006, 1213100, \"MEKAR SAWIT\"],\n [1213100007, 1213100, \"ALUR MELATI\"],\n [1213110001, 1213110, \"SUKARAMAI\"],\n [1213110002, 1213110, \"TEBING TANJUNG SELAMAT\"],\n [1213110003, 1213110, \"TANJUNG PUTUS\"],\n [1213110004, 1213110, \"TANJUNG SELAMAT\"],\n [1213110005, 1213110, \"BESILAM\"],\n [1213110006, 1213110, \"PADANG TUALANG\"],\n [1213110007, 1213110, \"SERAPUH ABC\"],\n [1213110008, 1213110, \"KWALA BESILAM\"],\n [1213110009, 1213110, \"BULUH TELANG\"],\n [1213110010, 1213110, \"JATI SARI\"],\n [1213110011, 1213110, \"BANJAR RAYA\"],\n [1213110012, 1213110, \"BUKIT SARI\"],\n [1213120001, 1213120, \"PERKEBUNAN TANJUNG BERINGIN\"],\n [1213120002, 1213120, \"SUKAJADI\"],\n [1213120003, 1213120, \"BARU PASAR 8\"],\n [1213120004, 1213120, \"PAYA RENGAS\"],\n [1213120005, 1213120, \"HINAI KANAN\"],\n [1213120006, 1213120, \"SUKADAMAI\"],\n [1213120007, 1213120, \"KEBUN LADA\"],\n [1213120008, 1213120, \"TANJUNG MULIA\"],\n [1213120009, 1213120, \"MUKA PAYA\"],\n [1213120010, 1213120, \"CEMPA\"],\n [1213120011, 1213120, \"BATU MALENGGANG\"],\n [1213120012, 1213120, \"TAMARAN\"],\n [1213120013, 1213120, \"SUKA DAMAI TIMUR\"],\n [1213130001, 1213130, \"KEPALA SUNGAI\"],\n [1213130002, 1213130, \"PERKOTAAN\"],\n [1213130003, 1213130, \"TELUK\"],\n [1213130004, 1213130, \"CINTA RAJA\"],\n [1213130005, 1213130, \"TELAGA JERNIH\"],\n [1213130006, 1213130, \"KARANG GADING\"],\n [1213130007, 1213130, \"KWALA BESAR\"],\n [1213130008, 1213130, \"SELOTONG\"],\n [1213130009, 1213130, \"SECANGGANG\"],\n [1213130010, 1213130, \"TANJUNG IBUS\"],\n [1213130011, 1213130, \"HINAI KIRI\"],\n [1213130012, 1213130, \"KEBUN KELAPA\"],\n [1213130013, 1213130, \"SUNGAI ULAR\"],\n [1213130014, 1213130, \"JARING HALUS\"],\n [1213130015, 1213130, \"KARANG ANYAR\"],\n [1213130016, 1213130, \"PANTAI GADING\"],\n [1213130017, 1213130, \"SUKA MULIA\"],\n [1213140001, 1213140, \"SERAPUH ASLI\"],\n [1213140002, 1213140, \"PEMATANG TENGAH\"],\n [1213140003, 1213140, \"PAYA PERUPUK\"],\n [1213140004, 1213140, \"PEKAN TANJUNG PURA\"],\n [1213140005, 1213140, \"LALANG\"],\n [1213140006, 1213140, \"PANTAI CERMIN\"],\n [1213140007, 1213140, \"PEKUBUAN\"],\n [1213140008, 1213140, \"TELUK BAKUNG\"],\n [1213140009, 1213140, \"PEMATANG SERAI\"],\n [1213140010, 1213140, \"BAJA KUNING\"],\n [1213140011, 1213140, \"PULAU BANYAK\"],\n [1213140012, 1213140, \"PEMATANG CENGAL\"],\n [1213140013, 1213140, \"KWALA SERAPUH\"],\n [1213140014, 1213140, \"KWALA LANGKAT\"],\n [1213140015, 1213140, \"BUBUN\"],\n [1213140016, 1213140, \"TAPAK KUDA\"],\n [1213140017, 1213140, \"SUKAMAJU\"],\n [1213140018, 1213140, \"KARYA MAJU\"],\n [1213140019, 1213140, \"PEMATANG CENGAL BARAT\"],\n [1213150001, 1213150, \"PAYA BENGKUANG\"],\n [1213150002, 1213150, \"AIR HITAM\"],\n [1213150003, 1213150, \"PADANG LANGKAT\"],\n [1213150004, 1213150, \"PALUH MANIS\"],\n [1213150005, 1213150, \"PEKAN GEBANG\"],\n [1213150006, 1213150, \"DOGANG\"],\n [1213150007, 1213150, \"SANGGA LIMA PERKEBUNAN SERAPUH\"],\n [1213150008, 1213150, \"PASAR RAWA\"],\n [1213150009, 1213150, \"KWALA GEBANG\"],\n [1213150010, 1213150, \"BUKIT MENGKIRAI\"],\n [1213150011, 1213150, \"PASIRAN\"],\n [1213160001, 1213160, \"PELAWI UTARA\"],\n [1213160002, 1213160, \"SECURAI UTARA\"],\n [1213160003, 1213160, \"SECURAI SELATAN\"],\n [1213160004, 1213160, \"PELAWI SELATAN\"],\n [1213160005, 1213160, \"BRANDAN TIMUR BARU\"],\n [1213160006, 1213160, \"BRANDAN BARAT\"],\n [1213160007, 1213160, \"BRANDAN TIMUR\"],\n [1213160008, 1213160, \"TELUK MEKU\"],\n [1213170001, 1213170, \"HARAPAN JAYA\"],\n [1213170002, 1213170, \"TELAGA SAID\"],\n [1213170003, 1213170, \"LAMA BARU\"],\n [1213170004, 1213170, \"LAMA\"],\n [1213170005, 1213170, \"ALUR DUA\"],\n [1213170006, 1213170, \"PURAKA II\"],\n [1213170007, 1213170, \"ALUR DUA BARU\"],\n [1213170008, 1213170, \"PURAKA I PERTAMINA\"],\n [1213170009, 1213170, \"SEI BILAH BARAT\"],\n [1213170010, 1213170, \"SEI BILAH TIMUR\"],\n [1213170011, 1213170, \"MEKAR MAKMUR\"],\n [1213170012, 1213170, \"HARAPAN BARU\"],\n [1213170013, 1213170, \"HARAPAN MAJU\"],\n [1213170014, 1213170, \"HARAPAN MAKMUR\"],\n [1213180001, 1213180, \"TANGKAHAN DURIAN\"],\n [1213180002, 1213180, \"SEI TUALANG\"],\n [1213180003, 1213180, \"LUBUK KASIH\"],\n [1213180004, 1213180, \"PANGKALAN BATU\"],\n [1213180005, 1213180, \"PERLIS\"],\n [1213180006, 1213180, \"LUBUK KERTANG\"],\n [1213180007, 1213180, \"KELANTAN\"],\n [1213190001, 1213190, \"PIR ADB BESITANG\"],\n [1213190002, 1213190, \"SEKOCI\"],\n [1213190003, 1213190, \"BUKIT MAS\"],\n [1213190004, 1213190, \"HALABAN\"],\n [1213190005, 1213190, \"BUKIT SELAMAT\"],\n [1213190006, 1213190, \"PEKAN BESITANG\"],\n [1213190007, 1213190, \"KAMPUNG LAMA\"],\n [1213190008, 1213190, \"BUKIT KUBU\"],\n [1213190009, 1213190, \"SUKA JAYA\"],\n [1213200001, 1213200, \"PANGKALAN SIATA\"],\n [1213200002, 1213200, \"SUNGAI MERAN\"],\n [1213200003, 1213200, \"ALUR CEMPEDAK\"],\n [1213200004, 1213200, \"PAYA TAMPAK\"],\n [1213200005, 1213200, \"SUNGAI SIUR\"],\n [1213200006, 1213200, \"TANJUNG PASIR\"],\n [1213200007, 1213200, \"PINTU AIR\"],\n [1213200008, 1213200, \"BERAS BASAH\"],\n [1213200009, 1213200, \"BUKIT JENGKOL\"],\n [1213200010, 1213200, \"PULAU SEMBILAN\"],\n [1213200011, 1213200, \"PULAU KAMPAI\"],\n [1213201001, 1213201, \"SALAHAJI\"],\n [1213201002, 1213201, \"SERANG JAYA\"],\n [1213201003, 1213201, \"PEMATANG TENGAH\"],\n [1213201004, 1213201, \"PERKEBUNAN PERAPEN\"],\n [1213201005, 1213201, \"LIMAU MUNGKUR\"],\n [1213201006, 1213201, \"PERKEBUNAN DAMAR CONDONG\"],\n [1213201007, 1213201, \"DAMAR CONDONG\"],\n [1213201008, 1213201, \"SERANG JAYA HILIR\"],\n [1214010001, 1214010, \"DURU\"],\n [1214010002, 1214010, \"TUWASO\"],\n [1214010003, 1214010, \"HILIOROMAO\"],\n [1214010004, 1214010, \"EHO\"],\n [1214010005, 1214010, \"SIALEMA\"],\n [1214010006, 1214010, \"BAWONIFAOSO\"],\n [1214010007, 1214010, \"HILIANOMBASELA\"],\n [1214010008, 1214010, \"LUMBUI MELAYU\"],\n [1214010009, 1214010, \"HILIORUDUA TEBOLO\"],\n [1214010010, 1214010, \"TEBOLO MELAYU\"],\n [1214010016, 1214010, \"BARUYU SIBOHOU\"],\n [1214010017, 1214010, \"LUMBUI NIAS\"],\n [1214010018, 1214010, \"TANOMOKINO\"],\n [1214010019, 1214010, \"SEPAKAT\"],\n [1214010020, 1214010, \"HILIKANA\"],\n [1214010021, 1214010, \"BAWOOTANIO OMEGA\"],\n [1214010022, 1214010, \"HILINIFAESE\"],\n [1214011001, 1214011, \"MAKOLE\"],\n [1214011002, 1214011, \"JEKE\"],\n [1214011003, 1214011, \"SIFAURUASI\"],\n [1214011004, 1214011, \"SAERU MELAYU\"],\n [1214011005, 1214011, \"BAWOANALITA SAERU\"],\n [1214011006, 1214011, \"BAWO ORUDUA\"],\n [1214011007, 1214011, \"HALE BALUTA\"],\n [1214011008, 1214011, \"BAWO OFULOA\"],\n [1214011009, 1214011, \"BALUTA\"],\n [1214011010, 1214011, \"EHO BALUTA\"],\n [1214011011, 1214011, \"HILIGEHO SOGAWU\"],\n [1214011012, 1214011, \"HILIOMASIO\"],\n [1214020028, 1214020, \"SIFITU EWALI\"],\n [1214020029, 1214020, \"RAPA RAPA\"],\n [1214020030, 1214020, \"SINAURU\"],\n [1214020031, 1214020, \"SIOFA EWALI\"],\n [1214020032, 1214020, \"SIMALUAYA\"],\n [1214020033, 1214020, \"SILIMAEWALI\"],\n [1214020034, 1214020, \"SIDUAEWALI\"],\n [1214020035, 1214020, \"PASAR PULAU TELLO\"],\n [1214020036, 1214020, \"BARUYU LASARA\"],\n [1214020037, 1214020, \"HILIOTALUA\"],\n [1214020038, 1214020, \"HILIAMODULA\"],\n [1214020039, 1214020, \"BAWODOBARA\"],\n [1214020040, 1214020, \"BAWOAMAHELATO\"],\n [1214020041, 1214020, \"LOBOI\"],\n [1214020042, 1214020, \"BAWOOMASIO\"],\n [1214020043, 1214020, \"BALOGIA\"],\n [1214020045, 1214020, \"LASONDE\"],\n [1214020051, 1214020, \"KOTO\"],\n [1214020062, 1214020, \"SEBUASI\"],\n [1214020063, 1214020, \"SISARAHILI\"],\n [1214020064, 1214020, \"ONAYA\"],\n [1214020065, 1214020, \"ORAHILI\"],\n [1214021001, 1214021, \"MAHANG LABARA\"],\n [1214021002, 1214021, \"ADAM\"],\n [1214021003, 1214021, \"BAIS\"],\n [1214021004, 1214021, \"LAMBAK\"],\n [1214021005, 1214021, \"LABUAN RIMA\"],\n [1214021006, 1214021, \"LABUAN HIU\"],\n [1214021007, 1214021, \"LABUAN BAJAU\"],\n [1214021008, 1214021, \"LABARA\"],\n [1214021009, 1214021, \"BAIS BARU\"],\n [1214021010, 1214021, \"LABUAN RIMA BARU\"],\n [1214022001, 1214022, \"GONDIA\"],\n [1214022002, 1214022, \"MAUFA\"],\n [1214022003, 1214022, \"GOBO BARU\"],\n [1214022004, 1214022, \"GOBO\"],\n [1214022005, 1214022, \"SILINA\"],\n [1214022006, 1214022, \"SILINA BARU\"],\n [1214023001, 1214023, \"FUGE\"],\n [1214023003, 1214023, \"BAWOSITORA\"],\n [1214023004, 1214023, \"SIGESE\"],\n [1214023005, 1214023, \"BINTUANG\"],\n [1214023006, 1214023, \"HAYO\"],\n [1214023007, 1214023, \"SIBARANUN\"],\n [1214023008, 1214023, \"LUAHA IDANO PONO\"],\n [1214023009, 1214023, \"BAWOLAWINDA\"],\n [1214023010, 1214023, \"HILI JAMOROGOTANO\"],\n [1214024001, 1214024, \"WAWA\"],\n [1214024002, 1214024, \"TELUK LIMO\"],\n [1214024003, 1214024, \"BALE BALE\"],\n [1214024005, 1214024, \"MARIT BARU\"],\n [1214024006, 1214024, \"SILIMA BANUA MARIT\"],\n [1214024009, 1214024, \"MAJINO LORANG\"],\n [1214024010, 1214024, \"SIOFA BANUA LORANG\"],\n [1214024011, 1214024, \"LIMO BIANG\"],\n [1214024012, 1214024, \"ZIABIANG\"],\n [1214024013, 1214024, \"MEMONG\"],\n [1214024014, 1214024, \"AFORE\"],\n [1214024015, 1214024, \"BALE-BALE SIBOHOU\"],\n [1214030006, 1214030, \"HILIGEHO\"],\n [1214030007, 1214030, \"HILITOBARA\"],\n [1214030008, 1214030, \"PASAR TELUK DALAM\"],\n [1214030009, 1214030, \"BAWONIFAOSO\"],\n [1214030010, 1214030, \"BAWOZAUA\"],\n [1214030011, 1214030, \"HILIGANOWO\"],\n [1214030022, 1214030, \"BAWODOBARA\"],\n [1214030023, 1214030, \"BAWOLOWALANI\"],\n [1214030024, 1214030, \"HILISONDREKHA\"],\n [1214030025, 1214030, \"HILISAOOTONIHA\"],\n [1214030040, 1214030, \"HILIANAA\"],\n [1214030041, 1214030, \"HILIGANOWO SALOO\"],\n [1214030042, 1214030, \"HILIGANOWOSA'UA\"],\n [1214030043, 1214030, \"HILILAZA\"],\n [1214030044, 1214030, \"NANOWA\"],\n [1214031004, 1214031, \"BAWONAHONO\"],\n [1214031005, 1214031, \"HILIZIHONO\"],\n [1214031006, 1214031, \"BAWOMATALUO\"],\n [1214031007, 1214031, \"ORAHILI FAU\"],\n [1214031008, 1214031, \"LAHUSA FAU\"],\n [1214031009, 1214031, \"ONOHONDRO\"],\n [1214031010, 1214031, \"SIWALAWA\"],\n [1214031011, 1214031, \"HILINAWALO FAU\"],\n [1214031013, 1214031, \"HILIOFONALUO\"],\n [1214031016, 1214031, \"BAWOFANAYAMA\"],\n [1214031017, 1214031, \"ORAHILI GETO\"],\n [1214031018, 1214031, \"ORAHILI EHO\"],\n [1214031019, 1214031, \"HILISALAWA\"],\n [1214031020, 1214031, \"HILIKARAMAHA\"],\n [1214031021, 1214031, \"SILIWULAWA\"],\n [1214031022, 1214031, \"HILIFAROKHALAWA\"],\n [1214031023, 1214031, \"ETE BATU\"],\n [1214032001, 1214032, \"HILIAMAETALUO\"],\n [1214032002, 1214032, \"HILISATARO\"],\n [1214032003, 1214032, \"HILINAMONIHA\"],\n [1214032004, 1214032, \"BAWOGANOWO\"],\n [1214032005, 1214032, \"HILIALAWA\"],\n [1214032006, 1214032, \"HILINDRASONIHA\"],\n [1214032007, 1214032, \"HILISATARO RAYA\"]\n ];\n\n\n foreach ($subDistricts as $subDistrict) {\n $district = \\App\\District::where('code', $subDistrict[1])->first();\n \\Illuminate\\Support\\Facades\\DB::table('sub_districts')->insert(['code' => $subDistrict[0], 'sub_code' => $subDistrict[1], 'name' => $subDistrict[2], 'district_id' => $district ? $district->id : null]);\n }\n }", "private function parseOutput()\n {\n// $parsedOutput = explode(' ',$this->output);\n// $this->image = new Image($parsedOutput[0]);\n// $this->resolution = $parsedOutput[1];\n\n }", "function parseWorldometers() {\n $ch = curl_init(\"https://www.worldometers.info/coronavirus/country/us/\");\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $data = curl_exec($ch);\n curl_close($ch);\n\n $US_infected = \"\";\n $US_death = \"\";\n $US_recovered = \"\";\n\n $regex1 = \"/<h1>Coronavirus Cases:<\\/h1>.*?<div class=\\\"maincounter-number\\\">.*?<span style=\\\"color:#aaa\\\">(.*?)<\\/span>.*?<\\/div>.*?<\\/div>.*?<div id=\\\"maincounter-wrap\\\" style=\\\"margin-top:15px\\\">.*?<h1>Deaths:<\\/h1>/\";\n preg_match($regex1, $data, $output1);\n //print_r($output1);\n $US_infected = $output1[1];\n\n $regex2 = \"/<h1>Deaths:<\\/h1> <div class=\\\"maincounter-number\\\"> <span>(.*?)<\\/span> <\\/div><\\/div><div id=\\\"maincounter-wrap\\\" style=\\\"margin-top:15px;\\\"> <h1>Recovered:<\\/h1>/\";\n preg_match($regex2, $data, $output2);\n //print_r($output2);\n $US_death = $output2[1];\n\n $regex3 = \"/<h1>Recovered:<\\/h1> <div class=\\\"maincounter-number\\\" style=\\\"color:#8ACA2B \\\"> <span>(.*?)<\\/span> <\\/div><\\/div><div style=\\\"margin-top:50px;\\\"><\\/div><!-- START --><style>/\";\n preg_match($regex3, $data, $output3);\n//print_r($output3);\n $US_recovered = $output3[1];\n\n return Array(\n \"source_name\" => \"Worldometer.info\",\n \"source_url\" => \"https://www.worldometers.info/coronavirus/country/us/\",\n \"US_infected\" => fix($US_infected),\n \"US_death\" => fix($US_death),\n \"US_recovered\" => fix($US_recovered)\n );\n}", "public function is_scanning() {\r\n\t\t$this->refresh_status();\r\n\t\treturn $this->is_scanning;\r\n\t}", "function configLights($start_x, $end_x, $start_y, $end_y, $config, &$grid) {\n\tfor ($i = $start_x; $i <= $end_x; $i++) {\n\t\tfor ($j = $start_y; $j<= $end_y; $j++) {\n\t\t\t//echo \"$i, $j = \" . ($config == 'toggle'? ($grid[$i][$j] + 1) % 2 : $config) . \"\\n\";\n\t\t\t$current = $grid[$i . ',' . $j];\n\t\t\tif ($config === 0 && $current === 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$grid[$i . ',' . $j] += ($config === 'toggle') ? 2 : ($config === 0 ? -1 : 1);\n\t\t}\n\t}\n}", "function getCoordinatorDecoded() {\n $coord_field = $this->getProjectSetting('coordinator_field');\n //$coord_field_event = $this->getProjectSetting('coordinator_field_event');\n $coord_field_pid = $this->getProjectSetting('main_pid');\n //$coord_field_event_id = empty($coord_field_event) ? NULL : $this->getEventIdFromName($coord_field_pid,$coord_field_event);\n\n $params = array(\n 'project_id' => $coord_field_pid,\n 'fields' => array($coord_field),\n 'events' => $coord_field_event\n //'return_format' => 'json'\n );\n\n $results = REDCap::getData($params);\n //$results = json_decode($q, true);\n\n //get the decode for the coordinator field\n $dict = REDCap::getDataDictionary($coord_field_pid, 'array', false, $coord_field);\n\n $coord_string = $dict[$coord_field]['select_choices_or_calculations'];\n $coord_exploded = explode('|',$coord_string);\n foreach ($coord_exploded as $k => $v) {\n $e = explode(',', $v);\n\n $coord_decode[trim($e[0])] =$e[1];\n }\n\n $decoded = array();\n\n //$re = '/^(32113-)?(?\\'id\\'\\w*)/m';\n $re = '/^(?\\'grp\\'32113-|2151-)?(?\\'id\\'\\w*)/m';\n\n foreach ($results as $id => $event) {\n //STRONGD is prefixed, but IMPACT is not.\n //removed the prefix for id ('32113-')\n preg_match_all($re, $id, $matches, PREG_SET_ORDER, 0);\n\n //it turns out that IMPACT uses the whole ID and STRONGD cuts off prefix\n if (isset($matches[0]['grp']) && ($matches[0]['grp'] == '2151-')) {\n //it's IMPACT so use the whole ID\n $fixed_id = $id;\n } else {\n //its STRONGD so strip off the prefix\n\n $fixed_id = $matches[0]['id'];\n $this->emDebug($fixed_id, $id);\n //$decoded[$stripped_id] = $coord_decode[$event[$coord_field_event_id][$coord_field]];\n }\n $decoded[$fixed_id] = $coord_decode[(current($event))[$coord_field]];\n }\n\n //$this->emDebug($decoded); exit;\n return $decoded;\n\n\n }", "public function ZapDNDon($zapChannel);", "public function quickCellSurvey(): array\n {\n // $moni is a str;\n $recs = []; // strArr;\n // $llen is a int;\n // $mccs is a str;\n // $mcc is a int;\n // $mncs is a str;\n // $mnc is a int;\n // $lac is a int;\n // $cellId is a int;\n // $dbms is a str;\n // $dbm is a int;\n // $tads is a str;\n // $tad is a int;\n // $oper is a str;\n $res = []; // YCellRecordArr;\n\n $moni = $this->_AT('+CCED=0;#MONI=7;#MONI');\n $mccs = substr($moni, 7, 3);\n if (substr($mccs, 0, 1) == '0') {\n $mccs = substr($mccs, 1, 2);\n }\n if (substr($mccs, 0, 1) == '0') {\n $mccs = substr($mccs, 1, 1);\n }\n $mcc = intVal($mccs);\n $mncs = substr($moni, 11, 3);\n if (substr($mncs, 2, 1) == ',') {\n $mncs = substr($mncs, 0, 2);\n }\n if (substr($mncs, 0, 1) == '0') {\n $mncs = substr($mncs, 1, strlen($mncs)-1);\n }\n $mnc = intVal($mncs);\n $recs = explode('#', $moni);\n // process each line in turn\n while (sizeof($res) > 0) {\n array_pop($res);\n };\n foreach ($recs as $each) {\n $llen = strlen($each) - 2;\n if ($llen >= 44) {\n if (substr($each, 41, 3) == 'dbm') {\n $lac = hexdec(substr($each, 16, 4));\n $cellId = hexdec(substr($each, 23, 4));\n $dbms = substr($each, 37, 4);\n if (substr($dbms, 0, 1) == ' ') {\n $dbms = substr($dbms, 1, 3);\n }\n $dbm = intVal($dbms);\n if ($llen > 66) {\n $tads = substr($each, 54, 2);\n if (substr($tads, 0, 1) == ' ') {\n $tads = substr($tads, 1, 3);\n }\n $tad = intVal($tads);\n $oper = substr($each, 66, $llen-66);\n } else {\n $tad = -1;\n $oper = '';\n }\n if ($lac < 65535) {\n $res[] = new YCellRecord($mcc, $mnc, $lac, $cellId, $dbm, $tad, $oper);\n }\n }\n }\n }\n return $res;\n }", "function dumpGrid($exclude=array(),$cols,$rows,$width)\r\n {\r\n $pwidth=$this->_control->Width;\r\n $pheight=$this->_control->Height;\r\n\r\n $cwidth = round($pwidth / $cols,0);\r\n $cheight = round($pheight / $rows,0);\r\n\r\n $controls=array();\r\n reset($this->_control->controls->items);\r\n while (list($k,$v)=each($this->_control->controls->items))\r\n {\r\n $col=round($v->Left / $cwidth,0);\r\n $row=round($v->Top / $cheight,0);\r\n\r\n $controls[$col][$row]=$v;\r\n }\r\n\r\n echo \"<table width=\\\"$width\\\" height=\\\"$pheight\\\" border=\\\"0\\\" cellpadding=\\\"0\\\" cellspacing=\\\"0\\\">\\n\";\r\n for($y=0;$y<=$rows-1;$y++)\r\n {\r\n echo \"<tr>\\n\";\r\n for($x=0;$x<=$cols-1;$x++)\r\n {\r\n if (isset($controls[$x][$y]))\r\n {\r\n $v=$controls[$x][$y];\r\n if (is_object($v))\r\n {\r\n $v->AdjustToLayout=true;\r\n\r\n $cspan=\"\";\r\n $rspan=\"\";\r\n\r\n $cspan = round(($v->Width / $cwidth),0);\r\n if ($cspan > 1)\r\n {\r\n //for ($xx=$x+1;$xx<=$x+$cspan;$xx++) $controls[$xx][$y]=-1;\r\n }\r\n\r\n $rspan = round(($v->Height / $cheight),0);\r\n if ($rspan > 1)\r\n {\r\n //for ($yy=$y+1;$yy<=$y+$rspan;$yy++) $controls[$x][$yy]=-1;\r\n }\r\n\r\n\r\n for ($xx=$x;$xx<$x+$cspan;$xx++)\r\n {\r\n for ($yy=$y;$yy<$y+$rspan;$yy++)\r\n {\r\n $controls[$xx][$yy]=-1;\r\n }\r\n }\r\n\r\n\r\n if ($cspan>1) $cspan=\" colspan=\\\"$cspan\\\" \";\r\n else $cspan=\"\";\r\n\r\n if ($rspan>1) $rspan=\" rowspan=\\\"$rspan\\\" \";\r\n else $rspan=\"\";\r\n\r\n $pw=round((100*$v->Width)/$pwidth);\r\n $pw=\" width=\\\"$pw%\\\" \";\r\n\r\n $ph=round((100*$v->Height)/$pheight);\r\n $ph=\" height=\\\"$ph%\\\" \";\r\n\r\n echo \"<td valign=\\\"top\\\" $pw $ph $cspan $rspan>\\n\";\r\n echo \"<div id=\\\"\".$v->Name.\"_outer\\\" style=\\\"height:100%;width:100%;\\\">\\n\";\r\n $v->show();\r\n echo \"\\n</div>\\n\";\r\n echo \"\\n</td>\\n\";\r\n }\r\n }\r\n else\r\n {\r\n echo \"<td>&nbsp;\\n\";\r\n echo \"</td>\\n\";\r\n }\r\n }\r\n echo \"</tr>\\n\";\r\n }\r\n echo \"</table>\\n\";\r\n }", "protected function parse_dim($dimensions) { $fix = false;\n $crop = false;\n $vh = false;\n switch (substr($dimensions, -1)) {\n case '#':\n $crop = true;\n $dimensions = substr($dimensions, 0, (strlen($dimensions)-1));\n break;\n case '!':\n $fix = true;\n $dimensions = substr($dimensions, 0, (strlen($dimensions)-1));\n break;\n case '<':\n $vh = \"h\";\n $dimensions = substr($dimensions, 0, (strlen($dimensions)-1));\n break;\n case '>':\n $vh = \"v\";\n $dimensions = substr($dimensions, 0, (strlen($dimensions)-1));\n break;\n case '(':\n $crop = true;\n $vh = \"h\";\n $dimensions = substr($dimensions, 0, (strlen($dimensions)-1));\n break;\n case ')':\n $crop = true;\n $vh = \"v\";\n $dimensions = substr($dimensions, 0, (strlen($dimensions)-1));\n break;\n }\n $dim = explode(\"x\", $dimensions);\n $width = (isset($dim[0]) && $dim[0] != '') ? $dim[0] : 0;\n $height = (isset($dim[1]) && $dim[1] != '') ? $dim[1] : 0;\n return array($width, $height, $fix, $crop, $vh);\n }", "function spread_across_unused_lanes(&$chart) {\n // 1's in the mask mark lanes that will NOT be used.\n $mask = 0 + read_raceinfo('unused-lane-mask', 0);\n if ($mask == 0) {\n return $chart;\n }\n $wide = array();\n foreach ($chart as $narrow_heat) {\n $p = 0; // Physical lane index\n $wide_heat = array();\n foreach ($narrow_heat as $racer) {\n while (($mask & (1 << $p)) != 0) {\n $wide_heat[] = NULL;\n ++$p;\n }\n $wide_heat[] = $racer;\n ++$p;\n }\n $wide[] = $wide_heat;\n }\n return $wide;\n}", "function CUX9002($component) {\n if ($component['parent_device_interface'] == 'CUxD' && $component['visible'] == 'true' && isset($component['TEMPERATURE'])) {\n $datapoints = array();\n \n if(isset($component['TEMPERATURE'])) {\n $datapoints[] = '<span class=\"info\" data-id=\"' . $component['TEMPERATURE'] . '\" data-component=\"' . $component['component'] . '\" data-datapoint=\"TEMPERATURE\"></span>';\n }\n if(isset($component['HUMIDITY'])) {\n $datapoints[] = '<span class=\"info\" data-id=\"' . $component['HUMIDITY'] . '\" data-component=\"' . $component['component'] . '\" data-datapoint=\"HUMIDITY\"></span>';\n }\n if(isset($component['DEW_POINT'])) {\n $datapoints[] = '<span class=\"info\" data-id=\"' . $component['DEW_POINT'] . '\" data-component=\"' . $component['component'] . '\" data-datapoint=\"DEW_POINT\"></span>';\n }\n if(isset($component['ABS_HUMIDITY'])) {\n $datapoints[] = '<span class=\"info\" data-id=\"' . $component['ABS_HUMIDITY'] . '\" data-component=\"' . $component['component'] . '\" data-datapoint=\"ABS_HUMIDITY\"></span>';\n }\n if(isset($component['TEMP_MIN_24H'])) {\n $datapoints[] = '<span class=\"info\" data-id=\"' . $component['TEMP_MIN_24H'] . '\" data-component=\"' . $component['component'] . '\" data-datapoint=\"TEMP_MIN_24H\"></span>';\n }\n if(isset($component['TEMP_MAX_24H'])) {\n $datapoints[] = '<span class=\"info\" data-id=\"' . $component['TEMP_MAX_24H'] . '\" data-component=\"' . $component['component'] . '\" data-datapoint=\"TEMP_MAX_24H\"></span>';\n }\n if(isset($component['HUM_MIN_24H'])) {\n $datapoints[] = '<span class=\"info\" data-id=\"' . $component['HUM_MIN_24H'] . '\" data-component=\"' . $component['component'] . '\" data-datapoint=\"HUM_MIN_24H\"></span>';\n }\n if(isset($component['HUM_MAX_24H'])) {\n $datapoints[] = '<span class=\"info\" data-id=\"' . $component['HUM_MAX_24H'] . '\" data-component=\"' . $component['component'] . '\" data-datapoint=\"HUM_MAX_24H\"></span>';\n }\n \n return '<div class=\"hh\">'\n . '<div class=\"pull-left\"><img src=\"../assets/icons/' . $component[\"icon\"] . '\" class=\"icon\">' . $component['name'] . '</div>'\n . '<div class=\"pull-right\">'\n . implode('', $datapoints)\n . '</div>'\n . '<div class=\"clearfix\"></div>'\n . '</div>';\n }\n}", "private function pullCellNumber ($phoneNum, $state, $reportNum = 0){\n\n \n $splitPhone = \"\";\n $pulledNum = \"\";\n\n //Razdvajanje brojeva zavisno od toga kojim su znakom razdvojeni\n if (strpos($phoneNum,' ') !== false) {\n $splitPhone = explode(\" \", $phoneNum);\n } else if (strpos($phoneNum,',') !== false) {\n $splitPhone = explode(\",\", $phoneNum);\n } else if (strpos($phoneNum,';') !== false) {\n $splitPhone = explode(\";\", $phoneNum);\n } else if (strpos($phoneNum,'+') !== false) {\n $splitPhone = explode(\"+\", $phoneNum);\n } else {\n $splitPhone = Array($phoneNum);\n }\n\n foreach ($splitPhone as $brojevi) {\n\n $brojInt = preg_replace('/[^0-9]/', '', $brojevi);\n\n if (substr($brojInt, 0, 2) == \"00\"){\n $brojInt = substr($brojInt, 2); \n } \n\n foreach($this->_allowedArr[$state] as $area){\n\n $duzina = strlen($area);\n $cutPhone = substr($brojInt, 0, $duzina);\n\n if ($area == $cutPhone) {\n $pulledNum = $brojInt;\n\n break;\n }\n }\n }\n $pulledNum = preg_replace('/[^0-9]/', '', $pulledNum);\n $pulledNum = str_replace(' ', \"\", $pulledNum);\n\n return $pulledNum;\n }", "function extract_journey_times($dow, $hod) {\n $time_sql = \"SELECT source.stopid AS start, destination.stopid AS end, \"\n \t .\"AVG(EXTRACT(EPOCH FROM AGE(destination.estimatedtime, source.estimatedtime))) AS average_time \"\n\t .\"FROM batch_journey AS source, \"\n\t .\"batch_journey AS destination, \"\n\t .\"(SELECT DISTINCT a.stopid as x, b.stopid as y \"\n\t .\"FROM (route_reference NATURAL JOIN stop_reference) AS a, \"\n\t .\"(route_reference NATURAL JOIN stop_reference) AS b \"\n\t .\"WHERE a.linename = b.linename \"\n\t .\"AND a.directionid = b.directionid \"\n\t .\"AND (b.stopnumber - a.stopnumber) = 1) as connected_stops \"\n\t .\"WHERE source.uniqueid = destination.uniqueid \"\n\t .\"AND EXTRACT(DOW FROM source.estimatedtime) = $dow \"\n\t .\"AND EXTRACT(HOUR FROM source.estimatedtime) = $hod \"\n\t .\"AND x = source.stopid \"\n\t .\"AND y = destination.stopid \"\n\t .\"GROUP BY source.stopid, destination.stopid\";\n\n return $this->database->execute_sql($time_sql)->fetchAll(PDO::FETCH_ASSOC);\n }", "function initDraw($limitation)\r\n\t{\r\n\t\t$pairs = $this->_values; // liste des paires\r\n\t\t$nbPlaces = $this->_places; // nombre de paires\r\n\t\t$dimDraw = $this->_size; // dimension totale du tableau\r\n\t\t$nbByes = $this->_nbByes; // nombre de bye\r\n\t\t$posByes = $this->_bye; // Position des bye\r\n\t\t$posSeed = $this->_whereSeed[$dimDraw]; // Position des tds\r\n\r\n\t\t//---- Initialiser l'etat des paires ----\r\n\t\t// Pour chaque paire elaborer la plage initiale des places possibles\r\n\t\t// en fonction des tetes de serie designees\r\n\t\tfor($i=0; $i<$nbPlaces; $i++)\r\n\t\t{\r\n\t $pair = $pairs[$i];\r\n\t $plage = new plage();\r\n\t foreach ($this->_bye as $bye)\r\n\t $plage->removeValue($bye);\r\n\t switch ($pair['tds'])\r\n\t {\r\n\t \tcase WBS_TDS_1:\r\n\t \t\t$plage->addValue($posSeed[0]);\r\n\t \t\tbreak;\r\n\t \tcase WBS_TDS_2:\r\n\t \t\t$plage->addValue($posSeed[1]);\r\n\t \t\tbreak;\r\n\t \tcase WBS_TDS_3_4:\r\n\t \t\tfor($j=2;$j<4;$j++)\r\n\t \t\t$plage->addValue($posSeed[$j]);\r\n\t \t\tbreak;\r\n\t \tcase WBS_TDS_5_8:\r\n\t \t\tfor($j=4;$j<8;$j++)\r\n\t \t\t$plage->addValue($posSeed[$j]);\r\n\t \t\tbreak;\r\n\t \tcase WBS_TDS_9_16:\r\n\t \t\tfor($j=8;$j<16;$j++)\r\n\t \t\t$plage->addValue($posSeed[$j]);\r\n\t \t\tbreak;\r\n\t \tdefault:\r\n\t \t\t$plage->addInter(1, $dimDraw);\r\n\t \t\tbreak;\r\n\t }\r\n\t $pair['plages'][] = $plage;\r\n\t $sortCriteria[] = $pair['criteria'];\r\n\t $sortIntRank[] = $pair['intRank'];\r\n\t $sortNatRank[] = $pair['natRank'];\r\n\t $sortLevel[] = $pair['level'];\r\n\t $sortAverage[] = $pair['average'];\r\n\t $sortTds[] = $pair['tds'];\r\n\t $pair['place'] = 0;\r\n\t $pairs[$i] = $pair;\r\n\t if (isset($secondNb[$pair['secondCriteria']]))\r\n\t $secondNb[$pair['secondCriteria']]++;\r\n\t else\r\n\t $secondNb[$pair['secondCriteria']] = 1;\r\n\t if (isset($nb[$pair['criteria']]))\r\n\t $nb[$pair['criteria']]++;\r\n\t else\r\n\t $nb[$pair['criteria']] = 1;\r\n\t\t}\r\n\r\n\t\t//---- Classer la liste des paires ----\r\n\t\t// - les tds en premier\r\n\t\t// - $limitation paires par pays : $limitation=nombre de paires a separer\r\n\t\t// par pays ( en principe 2 ). Les tetes de serie sont prise en compte\r\n\t\t// - les paires les plus nombreuses dans le critere choisi:\r\n\t\t// - le classement des paires qui ont le meme critere\r\n\r\n\t\t// Pour chaque paire, calculer son index dans le critere\r\n\t\tarray_multisort($sortCriteria, $sortTds, $sortIntRank, $sortNatRank,\r\n\t\t$sortLevel, $sortAverage, $pairs);\r\n\r\n\t\t$sortTds = array();\r\n\t\t$sortCriteriaPos = array();\r\n\t\t$sortCriteriaIndex = array();\r\n\t\t$sortCriteriaNb = array();\r\n\t\tfor($i=0; $i<$nbPlaces; $i++)\r\n\t\t{\r\n\t $pair = $pairs[$i];\r\n\r\n\t if(isset($list[$pair['criteria']]))\r\n\t $list[$pair['criteria']]++;\r\n\t else\r\n\t $list[$pair['criteria']] = 1;\r\n\t $pair['criteriaIndex'] = $list[$pair['criteria']];\r\n\r\n\t if(isset($list2[$pair['secondCriteria']]))\r\n\t $list2[$pair['secondCriteria']]++;\r\n\t else\r\n\t $list2[$pair['secondCriteria']] = 1;\r\n\t $pair['secondCriteriaIndex'] = $list2[$pair['secondCriteria']];\r\n\r\n\t $pair['criteriaNb'] = $nb[$pair['criteria']];\r\n\t $pair['secondCriteriaNb'] = $secondNb[$pair['secondCriteria']];\r\n\t $pair['criteriaLimit'] = min($nb[$pair['criteria']], $this->_places/2);\r\n\t $pair['secondCriteriaLimit'] = min($secondNb[$pair['secondCriteria']], $this->_places/2);\r\n\t $sortTds[] = $pair['tds'];\r\n\t if ($pair['criteriaIndex'] > $limitation)\r\n\t $sortCriteriaLimit[] = $limitation;\r\n\t else\r\n\t $sortCriteriaLimit[] = $pair['criteriaIndex'];\r\n\t $sortCriteriaNb[] = $nb[$pair['criteria']]+$secondNb[$pair['secondCriteria']];\r\n\t $sortCriteriaIndex[] = $pair['criteriaIndex']+$pair['secondCriteriaIndex'];\r\n\t $pairs[$i] = $pair;\r\n\t\t}\r\n\t\tarray_multisort($sortTds, $sortCriteriaNb, SORT_DESC, $sortCriteriaLimit,\r\n\t\t$sortCriteriaIndex, $pairs);\r\n\t\t$this->pairs = $pairs;\r\n\t\tunset($list);\r\n\t\tunset($list2);\r\n\t\tunset($pairs);\r\n\t\tunset($sortTds);\r\n\t\tunset($sortIntRank);\r\n\t\tunset($sortNatRank);\r\n\t\tunset($sortAverage);\r\n\t\tunset($sortLevel);\r\n\t\tunset($sortCriteria);\r\n\t\tunset($sortCriteriaPos);\r\n\t\tunset($sortCriteriaIndex);\r\n\t\tunset($sortCriteriaNb);\r\n\t\treturn true;\r\n\t}", "function scrape() \n {\n\t\t$index = $this->curl_index();\n\t\t$check = preg_match('/id\\=\\\"\\_\\_VIEWSTATE\\\"\\svalue\\=\\\"([^\"]*)\"/', $index, $match); \n\t\tif ($check)\n\t\t{\n\t\t\t$vs = $match[1];\n\t\t\t$check = preg_match('/id\\=\\\"\\_\\_EVENTVALIDATION\\\"\\svalue\\=\\\"([^\"]*)\"/', $index, $match); \n\t\t\tif ($check)\n\t\t\t{\n\t\t\t\t$ev = $match[1];\n\t\t\t\t$search = '_'; // this search will return ALL \n\t\t\t\t$index = $this->curl_index($vs, $ev, $search);\n\t\t\t\t$flag = false;\n\t\t\t\t# need to handle paging here\n\t\t\t\tdo \n\t\t\t\t{\n\t\t\t\t\t# build booking_id array\n\t\t\t\t\t//echo $index;\n\t\t\t\t\t$check = preg_match_all('/btnNormal\\\"\\shref\\=\\\"(.*)\\\"/Uis', $index, $matches);\n\t\t\t\t\tif ( ! $check)\n\t\t\t\t\t\tbreak; // break paging loop\n\t\t\t\t\t$booking_ids = array();\n\t\t\t\t\tforeach($matches[1] as $match)\n\t\t\t\t\t{\n\t\t\t\t\t\t$booking_ids[] = preg_replace('/[^0-9]*/Uis', '', $match);\n\t\t\t\t\t}\n\t\t\t\t\tif (!empty($booking_ids))\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($booking_ids as $booking_id)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$details = $this->curl_details($booking_id);\n\t\t\t\t\t\t\t$extraction = $this->extraction($details, $booking_id);\n\t\t\t if ($extraction == 100) { $this->report->successful = ($this->report->successful + 1); $this->report->update(); }\n\t if ($extraction == 101) { $this->report->other = ($this->report->other + 1); $this->report->update(); }\n\t if ($extraction == 102) { $this->report->bad_images = ($this->report->bad_images + 1); $this->report->update(); }\n\t if ($extraction == 103) { $this->report->exists = ($this->report->exists + 1); $this->report->update(); }\n\t if ($extraction == 104) { $this->report->new_charges = ($this->report->new_charges + 1); $this->report->update(); }\n\t $this->report->total = ($this->report->total + 1); $this->report->update();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else { $flag = true; } // no more pages\n\t\t\t\t\t# need to page here\n\t\t\t\t\t$index = $this->curl_page($index);\n\t\t\t\t\tif($index == false) { $flag = true; }\n\t\t\t\t} while($flag == false);\n\t\t\t\t$this->report->failed = ($this->report->other + $this->report->bad_images + $this->report->exists + $this->report->new_charges);\n\t\t $this->report->finished = 1;\n\t\t $this->report->stop_time = time();\n\t\t $this->report->time_taken = ($this->report->stop_time - $this->report->start_time);\n\t\t $this->report->update();\n\t\t return true; \n\t\t\t} else { return false; } // no event validation found\n\t\t} else { return false; } // no viewstate found\n\t}", "protected abstract function do_down();", "function getStart($tab, $nbLigne, $nbChar){\n\n \n $z = 0;//check 0\n $u = 0;//check 1\n $add = 0;\n $err4 = \"Il manque un point de départ ou d'arrivée!\".PHP_EOL;\n\n $xd = 0;\n $yd = 0; //coord du point de départ\n\n $xa = 0;\n $ya = 0; //coord du point d'arrivée \n\n for ($j=0; $j<$nbLigne; $j++){ \n for ($i=0; $i<$nbChar; $i++){ \n \n if ($tab[$j][$i] === '0'){\n $z++;\n $z = $z++; // echo $z.' check 0'.PHP_EOL; \n //RECHERCHE DE COORDONNEES\n $xd = $i;// \n echo \"xd=\".($xd).\" \";\n $yd = $j;// \n echo \"yd=\".($yd).PHP_EOL;\n }\n if ($tab[$j][$i] === '1'){\n $u++;\n $u = $u++; // echo $u .' check 1'.PHP_EOL;\n //RECHERCHE DE COORDONNEES\n $xa = $i;//\n echo \"xa=\".($xa).\" \";\n $ya = $j;//\n echo \"ya=\".($ya).PHP_EOL; \n } \n }\n }\n\n if ($z === 1 && $u === 1){\n play($tab, $nbLigne, $nbChar, $xd, $yd, $xa, $ya); //echo \"the play can beggin\".PHP_EOL;\n }\n else\n exit($err4);\n}", "protected function scan_string($dlm, $loc = false)\n {\n $str = '';\n $inp = $this->data; // does not get modified during scan, \n // so this is the same as a reference\n $len = strlen($inp);\n \n // scanner vars\n $dol = false; // seen '$'\n $esc = false; // seen '\\'\n $hex = false; // seen \"\\x\" or \"\\X\"\n $end = -1; // end of slice/string\n $eos = false; // seen ending delimiter\n \n // hex-scanner vars\n $hex_chr = ''; // hex char 'x' or 'X'\n $hex_buf = ''; // hex buffer\n $hex_len = 0; // hex length\n \n // modifing line & coln directly would corrupt locations\n $line = $this->line;\n $coln = $this->coln;\n \n for ($idx = 0;;) { // <- used for concatenation\n for (; $idx < $len && !$eos; ++$idx) {\n $raw = $inp[$idx];\n $chr = $raw; // may get modified\n \n if ($esc) {\n switch ($chr) {\n case 'n': $chr = \"\\n\"; break; \n case 'r': $chr = \"\\r\"; break; \n case 't': $chr = \"\\t\"; break; \n case 'f': $chr = \"\\f\"; break; \n case 'v': $chr = \"\\v\"; break; \n case 'e': $chr = \"\\e\"; break;\n case '0': $chr = \"\\0\"; break; // TODO: remove?\n case 'x': \n case 'X':\n // start hex scanner\n $hex_chr = $chr;\n $hex_len = 0;\n $hex_buf = '';\n $hex = true; \n $chr = '';\n break;\n default: \n // unknown escape-sequence\n $str .= '\\\\';\n }\n \n $str .= $chr;\n $esc = false;\n } else {\n if ($hex) {\n // scan a hex-char\n if (ctype_xdigit($chr)) {\n $hex_buf .= $chr;\n \n if (++$hex_len === 2) {\n $str .= chr(hexdec($hex_buf));\n $hex = false;\n }\n } else {\n $str .= '\\\\';\n $str .= $hex_chr;\n $str .= $hex_buf;\n $str .= $chr;\n $hex = false;\n }\n } else {\n // handle non-escaped data\n if ($dol && $chr === '{') {\n /* start interpolation */\n $eos = false;\n $end = $idx;\n break;\n }\n \n if ($dol) {\n $str .= '$';\n $dol = false;\n }\n \n switch ($chr) {\n case '$': $dol = true; break;\n case '\\\\': $esc = true; break;\n case $dlm: \n $eos = true; \n $end = $idx + 1; \n break;\n default:\n $str .= $chr;\n }\n }\n }\n \n if ($raw === \"\\n\") {\n $line += 1;\n $coln = 1;\n } else\n $coln += 1;\n }\n \n // break if concatenation is not possible\n if (!$eos || $dlm !== '\"' || $end + 1 >= $len)\n break;\n \n // skip whitespace between strings\n $tl = $line;\n $tc = $coln;\n \n for (; $idx < $len && ctype_space($inp[$idx]); ++$idx)\n if ($inp[$idx] === \"\\n\") {\n $tl += 1;\n $tc = 1;\n } else\n $tc += 1;\n \n // if the next char is a \" -> start concatenation\n if ($idx >= $len || $inp[$idx] !== '\"')\n break;\n \n $idx += 1;\n $eos = false;\n \n $line = $tl;\n $coln = $tc;\n }\n \n $this->data = substr($this->data, $end);\n \n if ($eos) {\n // don't change state if we're waiting for a '}'\n if ($this->subbc === 0)\n // pop state\n if ($this->subst === 4 && !empty($this->subsk)) {\n $prev = array_pop($this->subsk);\n $this->subst = 2;\n $this->subbc = $prev[0];\n $this->subqt = $prev[1]; \n $this->sublc = $prev[2]; \n } else\n $this->subst = 0;\n } else { \n // push state\n if ($this->subst === 2) {\n array_push($this->subsk, [\n $this->subbc,\n $this->subqt,\n $this->sublc\n ]);\n }\n \n $this->subst = 1;\n $this->subbc = 0;\n $this->subqt = $dlm;\n $this->sublc = $this->loc();\n }\n \n $tok = $this->token(T_STRING, $str, $loc);\n \n $this->line = $line;\n $this->coln = $coln;\n \n return $tok;\n }", "public function run()\n {\n $data = [\n [1,1,1,0,30],\n [2,1,1,1,34],\n [3,1,1,2,38],\n [4,1,1,3,42],\n [5,1,1,4,45],\n [6,1,1,5,49],\n [7,1,1,6,53],\n [8,1,1,7,57],\n [9,1,1,8,61],\n [10,1,1,9,65],\n [11,1,1,10,68],\n [12,1,1,11,72],\n [13,1,1,12,76],\n [14,1,1,13,80],\n [15,1,1,14,84],\n [16,1,1,15,88],\n [17,1,2,0,33],\n [18,1,2,1,36],\n [19,1,2,2,39],\n [20,1,2,3,42],\n [21,1,2,4,45],\n [22,1,2,5,48],\n [23,1,2,6,51],\n [24,1,2,7,54],\n [25,1,2,8,57],\n [26,1,2,9,60],\n [27,1,2,10,63],\n [28,1,2,11,66],\n [29,1,2,12,69],\n [30,1,2,13,71],\n [31,1,2,14,74],\n [32,1,2,15,77],\n [33,1,2,16,80],\n [34,1,2,17,83],\n [35,1,2,18,86],\n [36,1,2,19,89],\n [37,1,2,20,92],\n [38,1,2,21,95],\n [39,1,2,22,98],\n [40,1,2,23,101],\n [41,1,2,24,104],\n [42,1,2,25,107],\n [43,1,2,26,110],\n [44,1,2,27,113],\n [45,1,2,28,116],\n [46,1,2,29,119],\n [47,1,2,30,121],\n [48,1,2,31,124],\n [49,1,2,32,127],\n [50,1,2,33,130],\n [51,1,2,34,133],\n [52,1,2,35,136],\n [53,1,2,36,139],\n [54,1,2,37,142],\n [55,1,2,38,145],\n [56,1,2,39,148],\n [57,1,2,40,151],\n [58,1,2,41,154],\n [59,1,2,42,157],\n [60,1,2,43,160],\n [61,1,2,44,163],\n [62,1,2,45,166],\n [63,1,2,46,169],\n [64,1,2,47,171],\n [65,1,2,48,174],\n [66,1,2,49,177],\n [67,1,2,50,180],\n [68,1,2,51,183],\n [69,1,2,52,186],\n [70,1,2,53,189],\n [71,1,2,54,192],\n [72,1,2,55,195],\n [73,1,2,56,198],\n [74,1,2,57,201],\n [75,1,2,58,204],\n [76,1,2,59,207],\n [77,1,2,60,210],\n [78,1,3,7,30],\n [79,1,3,8,32],\n [80,1,3,9,34],\n [81,1,3,10,36],\n [82,1,3,11,39],\n [83,1,3,12,41],\n [84,1,3,13,43],\n [85,1,3,14,45],\n [86,1,3,15,48],\n [87,1,3,16,50],\n [88,1,3,17,52],\n [89,1,3,18,55],\n [90,1,3,19,57],\n [91,1,3,20,59],\n [92,1,3,21,61],\n [93,1,3,22,64],\n [94,1,3,23,66],\n [95,1,3,24,68],\n [96,1,3,25,70],\n [97,1,3,26,73],\n [98,1,3,27,75],\n [99,1,3,28,77],\n [100,1,3,29,80],\n [101,1,3,30,82],\n [102,1,4,7,31],\n [103,1,4,8,34],\n [104,1,4,9,37],\n [105,1,4,10,39],\n [106,1,4,11,42],\n [107,1,4,12,44],\n [108,1,4,13,47],\n [109,1,4,14,50],\n [110,1,4,15,52],\n [111,1,4,16,55],\n [112,1,4,17,58],\n [113,1,4,18,60],\n [114,1,4,19,63],\n [115,1,4,20,66],\n [116,1,4,21,68],\n [117,1,4,22,71],\n [118,1,4,23,73],\n [119,1,4,24,76],\n [120,1,4,25,79],\n [121,1,4,26,81],\n [122,1,4,27,84],\n [123,1,4,28,87],\n [124,1,4,29,89],\n [125,1,4,30,92],\n [126,1,4,31,94],\n [127,1,4,32,97],\n [128,1,5,11,31],\n [129,1,5,12,33],\n [130,1,5,13,35],\n [131,1,5,14,37],\n [132,1,5,15,39],\n [133,1,5,16,41],\n [134,1,5,17,43],\n [135,1,5,18,46],\n [136,1,5,19,48],\n [137,1,5,20,50],\n [138,1,5,21,52],\n [139,1,5,22,54],\n [140,1,5,23,56],\n [141,1,5,24,58],\n [142,1,5,25,60],\n [143,1,5,26,63],\n [144,1,5,27,65],\n [145,1,5,28,67],\n [146,1,5,29,69],\n [147,1,5,30,71],\n [148,1,5,31,73],\n [149,1,5,32,75],\n [150,1,5,33,77],\n [151,1,5,34,80],\n [152,1,5,35,82],\n [153,1,5,36,84],\n [154,1,5,37,86],\n [155,1,5,38,88],\n [156,1,5,39,90],\n [157,1,5,40,92],\n [158,1,5,41,94],\n [159,1,5,42,97],\n [160,1,5,43,99],\n [161,1,5,44,101],\n [162,1,5,45,103],\n [163,1,5,46,105],\n [164,1,5,47,107],\n [165,1,5,48,109],\n [166,1,5,49,111],\n [167,1,5,50,114],\n [168,1,5,51,116],\n [169,1,5,52,118],\n [170,1,5,53,120],\n [171,1,5,54,122],\n [172,1,5,55,124],\n [173,1,5,56,126],\n [174,1,5,57,129],\n [175,1,6,12,31],\n [176,1,6,13,33],\n [177,1,6,14,36],\n [178,1,6,15,38],\n [179,1,6,16,40],\n [180,1,6,17,42],\n [181,1,6,18,44],\n [182,1,6,19,46],\n [183,1,6,20,48],\n [184,1,6,21,50],\n [185,1,6,22,52],\n [186,1,6,23,54],\n [187,1,6,24,56],\n [188,1,6,25,58],\n [189,1,6,26,60],\n [190,1,6,27,62],\n [191,1,6,28,64],\n [192,1,6,29,66],\n [193,1,6,30,68],\n [194,1,6,31,70],\n [195,1,6,32,72],\n [196,1,6,33,74],\n [197,1,6,34,76],\n [198,1,6,35,78],\n [199,1,6,36,80],\n [200,1,6,37,82],\n [201,1,6,38,84],\n [202,1,6,39,88],\n [203,1,6,40,89],\n [204,1,6,41,91],\n [205,1,6,42,93],\n [206,1,6,43,95],\n [207,1,6,44,97],\n [208,1,6,45,99],\n [209,1,6,46,101],\n [210,1,6,47,103],\n [211,1,6,48,105],\n [212,1,6,49,107],\n [213,1,6,50,109],\n [214,1,6,51,111],\n [215,1,6,52,113],\n [216,1,6,53,115],\n [217,1,6,54,117],\n [218,1,6,55,119],\n [219,1,6,56,121],\n [220,1,6,57,123],\n [221,1,6,58,125],\n [222,1,6,59,127],\n [223,1,6,60,129],\n [224,1,7,15,30],\n [225,1,7,16,33],\n [226,1,7,17,35],\n [227,1,7,18,37],\n [228,1,7,19,40],\n [229,1,7,20,42],\n [230,1,7,21,44],\n [231,1,7,22,47],\n [232,1,7,23,49],\n [233,1,7,24,51],\n [234,1,7,25,54],\n [235,1,7,26,56],\n [236,1,7,27,58],\n [237,1,7,28,61],\n [238,1,7,29,63],\n [239,1,7,30,65],\n [240,1,7,31,68],\n [241,1,7,32,70],\n [242,1,7,33,72],\n [243,1,7,34,75],\n [244,1,7,35,77],\n [245,1,7,36,79],\n [246,1,7,37,82],\n [247,1,7,38,84],\n [248,1,7,39,86],\n [249,1,7,40,89],\n [250,1,7,41,91],\n [251,1,7,42,93],\n [252,1,7,43,96],\n [253,1,7,44,98],\n [254,1,7,45,100],\n [255,1,7,46,103],\n [256,1,7,47,105],\n [257,1,7,48,107],\n [258,1,7,49,110],\n [259,1,7,50,112],\n [260,1,8,16,30],\n [261,1,8,17,33],\n [262,1,8,18,35],\n [263,1,8,19,38],\n [264,1,8,20,40],\n [265,1,8,21,42],\n [266,1,8,22,45],\n [267,1,8,23,47],\n [268,1,8,24,50],\n [269,1,8,25,52],\n [270,1,8,26,55],\n [271,1,8,27,57],\n [272,1,8,28,60],\n [273,1,8,29,62],\n [274,1,8,30,64],\n [275,1,8,31,67],\n [276,1,8,32,69],\n [277,1,8,33,72],\n [278,1,8,34,74],\n [279,1,8,35,77],\n [280,1,8,36,79],\n [281,1,8,37,81],\n [282,1,8,38,84],\n [283,1,8,39,86],\n [284,1,8,40,89],\n [285,1,8,41,91],\n [286,1,8,42,94],\n [287,1,8,43,96],\n [288,1,8,44,99],\n [289,1,8,45,101],\n [290,1,8,46,103],\n [291,1,8,47,106],\n [292,1,8,48,108],\n [293,1,8,49,111],\n [294,1,8,50,113],\n [295,1,8,51,116],\n [296,1,8,52,118],\n [297,1,8,53,120],\n [298,1,8,54,123],\n [299,1,8,55,125],\n [300,1,8,56,128],\n [301,1,9,4,33],\n [302,1,9,5,36],\n [303,1,9,6,39],\n [304,1,9,7,43],\n [305,1,9,8,46],\n [306,1,9,9,49],\n [307,1,9,10,53],\n [308,1,9,11,56],\n [309,1,9,12,59],\n [310,1,9,13,63],\n [311,1,9,14,66],\n [312,1,9,15,69],\n [313,1,9,16,73],\n [314,1,9,17,76],\n [315,1,9,18,79],\n [316,1,9,19,83],\n [317,1,9,20,86],\n [318,1,9,21,89],\n [319,1,9,22,93],\n [320,1,9,23,96],\n [321,1,9,24,99],\n [322,1,9,25,103],\n [323,1,9,26,106],\n [324,1,9,27,109],\n [325,1,9,28,113],\n [326,1,9,29,116],\n [327,1,9,30,119],\n [328,1,9,31,123],\n [329,1,9,32,126],\n [330,1,9,33,129],\n [331,1,9,34,133],\n [332,1,9,35,136],\n [333,1,9,36,139],\n [334,1,9,37,143],\n [335,1,9,38,146],\n [336,1,9,39,149],\n [337,1,9,40,153],\n [338,1,10,18,30],\n [339,1,10,19,32],\n [340,1,10,20,34],\n [341,1,10,21,36],\n [342,1,10,22,38],\n [343,1,10,23,40],\n [344,1,10,24,42],\n [345,1,10,25,44],\n [346,1,10,26,46],\n [347,1,10,27,48],\n [348,1,10,28,50],\n [349,1,10,29,52],\n [350,1,10,30,54],\n [351,1,10,31,56],\n [352,1,10,32,58],\n [353,1,10,33,60],\n [354,1,10,34,62],\n [355,1,10,35,64],\n [356,1,10,36,66],\n [357,1,10,37,68],\n [358,1,10,38,70],\n [359,1,10,39,72],\n [360,1,10,40,74],\n [361,1,10,41,76],\n [362,1,10,42,78],\n [363,1,10,43,80],\n [364,1,10,44,82],\n [365,1,10,45,84],\n [366,1,10,46,86],\n [367,1,10,47,88],\n [368,1,10,48,90],\n [369,1,11,18,31],\n [370,1,11,19,32],\n [371,1,11,20,34],\n [372,1,11,21,36],\n [373,1,11,22,37],\n [374,1,11,23,39],\n [375,1,11,24,41],\n [376,1,11,25,42],\n [377,1,11,26,44],\n [378,1,11,27,46],\n [379,1,11,28,47],\n [380,1,11,29,49],\n [381,1,11,30,51],\n [382,1,11,31,53],\n [383,1,11,32,54],\n [384,1,11,33,56],\n [385,1,11,34,58],\n [386,1,11,35,59],\n [387,1,11,36,61],\n [388,1,11,37,63],\n [389,1,11,38,64],\n [390,1,11,39,66],\n [391,1,11,40,68],\n [392,1,11,41,69],\n [393,1,11,42,71],\n [394,1,11,43,73],\n [395,1,11,44,75],\n [396,1,11,45,76],\n [397,1,11,46,78],\n [398,1,11,47,80],\n [399,1,11,48,81],\n [400,1,11,49,83],\n [401,1,11,50,85],\n [402,1,11,51,86],\n [403,1,11,52,88],\n [404,1,11,53,90],\n [405,1,11,54,92],\n [406,1,11,55,93],\n [407,1,11,56,95],\n [408,1,11,57,97],\n [409,1,11,58,98],\n [410,1,11,59,100],\n [411,1,11,60,102],\n [412,1,11,61,103],\n [413,1,11,62,105],\n [414,1,11,63,107],\n [415,1,11,64,108],\n [416,1,11,65,110],\n [417,1,11,66,112],\n [418,1,11,67,114],\n [419,1,11,68,115],\n [420,1,11,69,117],\n [421,1,11,70,119],\n [422,1,11,71,120],\n [423,1,12,14,31],\n [424,1,12,15,33],\n [425,1,12,16,36],\n [426,1,12,17,38],\n [427,1,12,18,41],\n [428,1,12,19,43],\n [429,1,12,20,46],\n [430,1,12,21,48],\n [431,1,12,22,51],\n [432,1,12,23,53],\n [433,1,12,24,56],\n [434,1,12,25,58],\n [435,1,12,26,61],\n [436,1,12,27,63],\n [437,1,12,28,66],\n [438,1,12,29,68],\n [439,1,12,30,71],\n [440,1,12,31,73],\n [441,1,12,32,76],\n [442,1,12,33,78],\n [443,1,12,34,81],\n [444,1,12,35,83],\n [445,1,12,36,86],\n [446,1,12,37,88],\n [447,1,12,38,91],\n [448,1,12,39,93],\n [449,1,12,40,96],\n [450,1,12,41,98],\n [451,1,12,42,101],\n [452,1,12,43,103],\n [453,1,12,44,106],\n [454,1,12,45,108],\n [455,1,12,46,111],\n [456,1,13,11,31],\n [457,1,13,12,32],\n [458,1,13,13,33],\n [459,1,13,14,35],\n [460,1,13,15,36],\n [461,1,13,16,37],\n [462,1,13,17,39],\n [463,1,13,18,40],\n [464,1,13,19,41],\n [465,1,13,20,43],\n [466,1,13,21,44],\n [467,1,13,22,45],\n [468,1,13,23,47],\n [469,1,13,24,48],\n [470,1,13,25,49],\n [471,1,13,26,51],\n [472,1,13,27,52],\n [473,1,13,28,53],\n [474,1,13,29,54],\n [475,1,13,30,56],\n [476,1,13,31,57],\n [477,1,13,32,58],\n [478,1,13,33,60],\n [479,1,13,34,61],\n [480,1,13,35,62],\n [481,1,13,36,64],\n [482,1,13,37,65],\n [483,1,13,38,66],\n [484,1,13,39,68],\n [485,1,13,40,69],\n [486,1,13,41,70],\n [487,1,13,42,72],\n [488,1,13,43,73],\n [489,1,13,44,74],\n [490,1,13,45,76],\n [491,1,13,46,77],\n [492,1,13,47,78],\n [493,1,13,48,79],\n [494,1,13,49,81],\n [495,1,13,50,82],\n [496,1,13,51,83],\n [497,1,13,52,85],\n [498,1,13,53,86],\n [499,1,13,54,87],\n [500,1,13,55,89],\n [501,1,13,56,90],\n [502,1,13,57,91],\n [503,1,13,58,93],\n [504,1,13,59,94],\n [505,1,13,60,95],\n [506,1,13,61,97],\n [507,1,13,62,98],\n [508,1,13,63,99],\n [509,1,13,64,101],\n [510,1,13,65,102],\n [511,1,13,66,103],\n [512,1,13,67,104],\n [513,1,13,68,106],\n [514,1,13,69,107],\n [515,2,1,0,30],\n [516,2,1,1,31],\n [517,2,1,2,36],\n [518,2,1,3,40],\n [519,2,1,4,45],\n [520,2,1,5,50],\n [521,2,1,6,54],\n [522,2,1,7,59],\n [523,2,1,8,63],\n [524,2,1,9,68],\n [525,2,1,10,72],\n [526,2,1,11,77],\n [527,2,1,12,81],\n [528,2,1,13,86],\n [529,2,1,14,90],\n [530,2,1,15,95],\n [531,2,2,0,34],\n [532,2,2,1,37],\n [533,2,2,2,41],\n [534,2,2,3,44],\n [535,2,2,4,47],\n [536,2,2,5,50],\n [537,2,2,6,54],\n [538,2,2,7,57],\n [539,2,2,8,60],\n [540,2,2,9,63],\n [541,2,2,10,66],\n [542,2,2,11,70],\n [543,2,2,12,73],\n [544,2,2,13,76],\n [545,2,2,14,79],\n [546,2,2,15,83],\n [547,2,2,16,86],\n [548,2,2,17,89],\n [549,2,2,18,92],\n [550,2,2,19,95],\n [551,2,2,20,99],\n [552,2,2,21,102],\n [553,2,2,22,105],\n [554,2,2,23,108],\n [555,2,2,24,112],\n [556,2,2,25,115],\n [557,2,2,26,118],\n [558,2,2,27,121],\n [559,2,2,28,125],\n [560,2,2,29,128],\n [561,2,2,30,131],\n [562,2,2,31,134],\n [563,2,2,32,137],\n [564,2,2,33,141],\n [565,2,2,34,144],\n [566,2,2,35,147],\n [567,2,2,36,150],\n [568,2,2,37,154],\n [569,2,2,38,157],\n [570,2,2,39,160],\n [571,2,2,40,163],\n [572,2,2,41,166],\n [573,2,2,42,170],\n [574,2,2,43,173],\n [575,2,2,44,176],\n [576,2,2,45,179],\n [577,2,2,46,183],\n [578,2,2,47,186],\n [579,2,2,48,189],\n [580,2,2,49,192],\n [581,2,2,50,195],\n [582,2,2,51,199],\n [583,2,2,52,202],\n [584,2,2,53,205],\n [585,2,2,54,208],\n [586,2,2,55,212],\n [587,2,2,56,215],\n [588,2,2,57,218],\n [589,2,2,58,221],\n [590,2,2,59,225],\n [591,2,2,60,228],\n [592,2,3,7,30],\n [593,2,3,8,33],\n [594,2,3,9,35],\n [595,2,3,10,37],\n [596,2,3,11,40],\n [597,2,3,12,42],\n [598,2,3,13,44],\n [599,2,3,14,47],\n [600,2,3,15,49],\n [601,2,3,16,51],\n [602,2,3,17,53],\n [603,2,3,18,56],\n [604,2,3,19,58],\n [605,2,3,20,60],\n [606,2,3,21,63],\n [607,2,3,22,65],\n [608,2,3,23,67],\n [609,2,3,24,70],\n [610,2,3,25,72],\n [611,2,3,26,74],\n [612,2,3,27,77],\n [613,2,3,28,79],\n [614,2,3,29,81],\n [615,2,3,30,84],\n [616,2,4,7,30],\n [617,2,4,8,32],\n [618,2,4,9,35],\n [619,2,4,10,37],\n [620,2,4,11,40],\n [621,2,4,12,42],\n [622,2,4,13,45],\n [623,2,4,14,47],\n [624,2,4,15,50],\n [625,2,4,16,52],\n [626,2,4,17,54],\n [627,2,4,18,57],\n [628,2,4,19,59],\n [629,2,4,20,62],\n [630,2,4,21,64],\n [631,2,4,22,67],\n [632,2,4,23,69],\n [633,2,4,24,71],\n [634,2,4,25,74],\n [635,2,4,26,76],\n [636,2,4,27,79],\n [637,2,4,28,81],\n [638,2,4,29,84],\n [639,2,4,30,86],\n [640,2,4,31,89],\n [641,2,4,32,91],\n [642,2,5,13,31],\n [643,2,5,14,33],\n [644,2,5,15,35],\n [645,2,5,16,37],\n [646,2,5,17,39],\n [647,2,5,18,41],\n [648,2,5,19,43],\n [649,2,5,20,45],\n [650,2,5,21,47],\n [651,2,5,22,49],\n [652,2,5,23,51],\n [653,2,5,24,53],\n [654,2,5,25,55],\n [655,2,5,26,57],\n [656,2,5,27,59],\n [657,2,5,28,61],\n [658,2,5,29,63],\n [659,2,5,30,66],\n [660,2,5,31,68],\n [661,2,5,32,70],\n [662,2,5,33,72],\n [663,2,5,34,74],\n [664,2,5,35,76],\n [665,2,5,36,78],\n [666,2,5,37,80],\n [667,2,5,38,82],\n [668,2,5,39,84],\n [669,2,5,40,86],\n [670,2,5,41,88],\n [671,2,5,42,90],\n [672,2,5,43,92],\n [673,2,5,44,94],\n [674,2,5,45,96],\n [675,2,5,46,98],\n [676,2,5,47,100],\n [677,2,5,48,102],\n [678,2,5,49,104],\n [679,2,5,50,106],\n [680,2,5,51,108],\n [681,2,5,52,110],\n [682,2,5,53,112],\n [683,2,5,54,114],\n [684,2,5,55,117],\n [685,2,5,56,119],\n [686,2,5,57,121],\n [687,2,6,12,30],\n [688,2,6,13,32],\n [689,2,6,14,34],\n [690,2,6,15,36],\n [691,2,6,16,38],\n [692,2,6,17,40],\n [693,2,6,18,42],\n [694,2,6,19,44],\n [695,2,6,20,46],\n [696,2,6,21,48],\n [697,2,6,22,50],\n [698,2,6,23,52],\n [699,2,6,24,54],\n [700,2,6,25,56],\n [701,2,6,26,58],\n [702,2,6,27,60],\n [703,2,6,28,62],\n [704,2,6,29,64],\n [705,2,6,30,67],\n [706,2,6,31,69],\n [707,2,6,32,71],\n [708,2,6,33,73],\n [709,2,6,34,75],\n [710,2,6,35,77],\n [711,2,6,36,79],\n [712,2,6,37,81],\n [713,2,6,38,83],\n [714,2,6,39,85],\n [715,2,6,40,87],\n [716,2,6,41,89],\n [717,2,6,42,91],\n [718,2,6,43,93],\n [719,2,6,44,95],\n [720,2,6,45,97],\n [721,2,6,46,99],\n [722,2,6,47,101],\n [723,2,6,48,103],\n [724,2,6,49,105],\n [725,2,6,50,107],\n [726,2,6,51,109],\n [727,2,6,52,111],\n [728,2,6,53,113],\n [729,2,6,54,116],\n [730,2,6,55,118],\n [731,2,6,56,120],\n [732,2,6,57,122],\n [733,2,6,58,124],\n [734,2,6,59,126],\n [735,2,6,60,128],\n [736,2,7,14,30],\n [737,2,7,15,32],\n [738,2,7,16,35],\n [739,2,7,17,37],\n [740,2,7,18,39],\n [741,2,7,19,42],\n [742,2,7,20,44],\n [743,2,7,21,46],\n [744,2,7,22,49],\n [745,2,7,23,51],\n [746,2,7,24,54],\n [747,2,7,25,56],\n [748,2,7,26,58],\n [749,2,7,27,61],\n [750,2,7,28,63],\n [751,2,7,29,65],\n [752,2,7,30,68],\n [753,2,7,31,70],\n [754,2,7,32,73],\n [755,2,7,33,75],\n [756,2,7,34,77],\n [757,2,7,35,80],\n [758,2,7,36,82],\n [759,2,7,37,85],\n [760,2,7,38,87],\n [761,2,7,39,89],\n [762,2,7,40,92],\n [763,2,7,41,94],\n [764,2,7,42,96],\n [765,2,7,43,99],\n [766,2,7,44,101],\n [767,2,7,45,104],\n [768,2,7,46,106],\n [769,2,7,47,108],\n [770,2,7,48,111],\n [771,2,7,49,113],\n [772,2,7,50,115],\n [773,2,8,0,132],\n [774,2,8,1,129],\n [775,2,8,2,126],\n [776,2,8,3,124],\n [777,2,8,4,121],\n [778,2,8,5,118],\n [779,2,8,6,116],\n [780,2,8,7,113],\n [781,2,8,8,110],\n [782,2,8,9,108],\n [783,2,8,10,105],\n [784,2,8,11,102],\n [785,2,8,12,99],\n [786,2,8,13,97],\n [787,2,8,14,94],\n [788,2,8,15,91],\n [789,2,8,16,89],\n [790,2,8,17,86],\n [791,2,8,18,83],\n [792,2,8,19,81],\n [793,2,8,20,78],\n [794,2,8,21,75],\n [795,2,8,22,72],\n [796,2,8,23,70],\n [797,2,8,24,67],\n [798,2,8,25,64],\n [799,2,8,26,62],\n [800,2,8,27,59],\n [801,2,8,28,56],\n [802,2,8,29,54],\n [803,2,8,30,51],\n [804,2,8,31,48],\n [805,2,8,32,45],\n [806,2,8,33,43],\n [807,2,8,34,40],\n [808,2,8,35,37],\n [809,2,8,36,35],\n [810,2,8,37,32],\n [811,2,9,4,32],\n [812,2,9,5,35],\n [813,2,9,6,38],\n [814,2,9,7,42],\n [815,2,9,8,45],\n [816,2,9,9,48],\n [817,2,9,10,51],\n [818,2,9,11,55],\n [819,2,9,12,58],\n [820,2,9,13,61],\n [821,2,9,14,64],\n [822,2,9,15,67],\n [823,2,9,16,71],\n [824,2,9,17,74],\n [825,2,9,18,77],\n [826,2,9,19,80],\n [827,2,9,20,84],\n [828,2,9,21,87],\n [829,2,9,22,90],\n [830,2,9,23,93],\n [831,2,9,24,96],\n [832,2,9,25,100],\n [833,2,9,26,103],\n [834,2,9,27,106],\n [835,2,9,28,109],\n [836,2,9,29,113],\n [837,2,9,30,116],\n [838,2,9,31,119],\n [839,2,9,32,122],\n [840,2,9,33,125],\n [841,2,9,34,129],\n [842,2,9,35,132],\n [843,2,9,36,135],\n [844,2,9,37,138],\n [845,2,9,38,142],\n [846,2,9,39,145],\n [847,2,9,40,148],\n [848,2,10,19,31],\n [849,2,10,20,33],\n [850,2,10,21,35],\n [851,2,10,22,37],\n [852,2,10,23,39],\n [853,2,10,24,41],\n [854,2,10,25,43],\n [855,2,10,26,45],\n [856,2,10,27,47],\n [857,2,10,28,49],\n [858,2,10,29,51],\n [859,2,10,30,53],\n [860,2,10,31,55],\n [861,2,10,32,57],\n [862,2,10,33,59],\n [863,2,10,34,61],\n [864,2,10,35,63],\n [865,2,10,36,65],\n [866,2,10,37,67],\n [867,2,10,38,69],\n [868,2,10,39,71],\n [869,2,10,40,73],\n [870,2,10,41,75],\n [871,2,10,42,77],\n [872,2,10,43,79],\n [873,2,10,44,81],\n [874,2,10,45,83],\n [875,2,10,46,85],\n [876,2,10,47,87],\n [877,2,11,17,30],\n [878,2,11,18,32],\n [879,2,11,19,34],\n [880,2,11,20,35],\n [881,2,11,21,37],\n [882,2,11,22,39],\n [883,2,11,23,41],\n [884,2,11,24,42],\n [885,2,11,25,44],\n [886,2,11,26,46],\n [887,2,11,27,47],\n [888,2,11,28,49],\n [889,2,11,29,51],\n [890,2,11,30,52],\n [891,2,11,31,54],\n [892,2,11,32,56],\n [893,2,11,33,57],\n [894,2,11,34,59],\n [895,2,11,35,61],\n [896,2,11,36,63],\n [897,2,11,37,64],\n [898,2,11,38,66],\n [899,2,11,39,68],\n [900,2,11,40,69],\n [901,2,11,41,71],\n [902,2,11,42,73],\n [903,2,11,43,74],\n [904,2,11,44,76],\n [905,2,11,45,78],\n [906,2,11,46,79],\n [907,2,11,47,81],\n [908,2,11,48,83],\n [909,2,11,49,85],\n [910,2,11,50,86],\n [911,2,11,51,88],\n [912,2,11,52,90],\n [913,2,11,53,91],\n [914,2,11,54,93],\n [915,2,11,55,95],\n [916,2,11,56,96],\n [917,2,11,57,98],\n [918,2,11,58,100],\n [919,2,11,59,102],\n [920,2,11,60,103],\n [921,2,11,61,105],\n [922,2,11,62,107],\n [923,2,11,63,108],\n [924,2,11,64,110],\n [925,2,11,65,112],\n [926,2,11,66,113],\n [927,2,11,67,115],\n [928,2,11,68,117],\n [929,2,11,69,118],\n [930,2,11,70,120],\n [931,2,12,14,31],\n [932,2,12,15,34],\n [933,2,12,16,36],\n [934,2,12,17,39],\n [935,2,12,18,42],\n [936,2,12,19,44],\n [937,2,12,20,47],\n [938,2,12,21,50],\n [939,2,12,22,52],\n [940,2,12,23,55],\n [941,2,12,24,58],\n [942,2,12,25,61],\n [943,2,12,26,63],\n [944,2,12,27,66],\n [945,2,12,28,69],\n [946,2,12,29,71],\n [947,2,12,30,74],\n [948,2,12,31,77],\n [949,2,12,32,79],\n [950,2,12,33,82],\n [951,2,12,34,85],\n [952,2,12,35,88],\n [953,2,12,36,90],\n [954,2,12,37,93],\n [955,2,12,38,96],\n [956,2,12,39,98],\n [957,2,12,40,101],\n [958,2,12,41,104],\n [959,2,12,42,106],\n [960,2,12,43,109],\n [961,2,12,44,112],\n [962,2,12,45,115],\n [963,2,12,46,117],\n [964,2,13,11,30],\n [965,2,13,12,31],\n [966,2,13,13,32],\n [967,2,13,14,33],\n [968,2,13,15,35],\n [969,2,13,16,36],\n [970,2,13,17,37],\n [971,2,13,18,38],\n [972,2,13,19,40],\n [973,2,13,20,41],\n [974,2,13,21,42],\n [975,2,13,22,43],\n [976,2,13,23,45],\n [977,2,13,24,46],\n [978,2,13,25,47],\n [979,2,13,26,48],\n [980,2,13,27,50],\n [981,2,13,28,51],\n [982,2,13,29,52],\n [983,2,13,30,53],\n [984,2,13,31,54],\n [985,2,13,32,56],\n [986,2,13,33,57],\n [987,2,13,34,58],\n [988,2,13,35,59],\n [989,2,13,36,61],\n [990,2,13,37,62],\n [991,2,13,38,63],\n [992,2,13,39,64],\n [993,2,13,40,66],\n [994,2,13,41,67],\n [995,2,13,42,68],\n [996,2,13,43,69],\n [997,2,13,44,70],\n [998,2,13,45,72],\n [999,2,13,46,73],\n [1000,2,13,47,74],\n [1001,2,13,48,75],\n [1002,2,13,49,77],\n [1003,2,13,50,78],\n [1004,2,13,51,79],\n [1005,2,13,52,80],\n [1006,2,13,53,82],\n [1007,2,13,54,83],\n [1008,2,13,55,84],\n [1009,2,13,56,85],\n [1010,2,13,57,87],\n [1011,2,13,58,88],\n [1012,2,13,59,89],\n [1013,2,13,60,90],\n [1014,2,13,61,91],\n [1015,2,13,62,93],\n [1016,2,13,63,94],\n [1017,2,13,64,95],\n [1018,2,13,65,96],\n [1019,2,13,66,98],\n [1020,2,13,67,99],\n [1021,2,13,68,100],\n [1022,2,13,69,101],\n [1023,1,14,0,36],\n [1024,1,14,1,37],\n [1025,1,14,2,38],\n [1026,1,14,3,40],\n [1027,1,14,4,41],\n [1028,1,14,5,43],\n [1029,1,14,6,44],\n [1030,1,14,7,45],\n [1031,1,14,8,47],\n [1032,1,14,9,48],\n [1033,1,14,10,49],\n [1034,1,14,11,51],\n [1035,1,14,12,52],\n [1036,1,14,13,54],\n [1037,1,14,14,55],\n [1038,1,14,15,56],\n [1039,1,14,16,58],\n [1040,1,14,17,59],\n [1041,1,14,18,60],\n [1042,1,14,19,62],\n [1043,1,14,20,63],\n [1044,1,14,21,65],\n [1045,1,14,22,66],\n [1046,1,14,23,67],\n [1047,1,14,24,69],\n [1048,1,14,25,70],\n [1049,1,14,26,71],\n [1050,1,14,27,73],\n [1051,1,14,28,74],\n [1052,1,14,29,75],\n [1053,1,14,30,77],\n [1054,1,14,31,78],\n [1055,1,14,32,80],\n [1056,1,14,33,81],\n [1057,1,14,34,82],\n [1058,1,14,35,84],\n [1059,1,14,36,85],\n [1060,1,14,37,86],\n [1061,1,14,38,88],\n [1062,1,14,39,89],\n [1063,1,15,9,31],\n [1064,1,15,10,34],\n [1065,1,15,11,36],\n [1066,1,15,12,38],\n [1067,1,15,13,40],\n [1068,1,15,14,43],\n [1069,1,15,15,45],\n [1070,1,15,16,47],\n [1071,1,15,17,50],\n [1072,1,15,18,52],\n [1073,1,15,19,54],\n [1074,1,15,20,56],\n [1075,1,15,21,59],\n [1076,1,15,22,61],\n [1077,1,15,23,63],\n [1078,1,15,24,65],\n [1079,1,15,25,68],\n [1080,1,15,26,70],\n [1081,1,15,27,72],\n [1082,1,15,28,75],\n [1083,1,15,29,77],\n [1084,1,15,30,79],\n [1085,1,15,31,81],\n [1086,1,15,32,84],\n [1087,1,15,33,86],\n [1088,1,15,34,88],\n [1089,1,15,35,90],\n [1090,1,15,36,93],\n [1091,1,15,37,95],\n [1092,1,16,29,31],\n [1093,1,16,30,34],\n [1094,1,16,31,36],\n [1095,1,16,32,38],\n [1096,1,16,33,40],\n [1097,1,16,34,43],\n [1098,1,16,35,45],\n [1099,1,16,36,47],\n [1100,1,16,37,50],\n [1101,1,16,38,52],\n [1102,1,16,39,54],\n [1103,1,16,40,56],\n [1104,1,16,41,59],\n [1105,1,16,42,61],\n [1106,1,16,43,63],\n [1107,1,16,44,65],\n [1108,1,16,45,68],\n [1109,1,16,46,70],\n [1110,1,16,47,72],\n [1111,1,16,48,75],\n [1112,1,16,49,77],\n [1113,1,16,50,79],\n [1114,1,16,51,81],\n [1115,1,16,52,84],\n [1116,1,17,14,30],\n [1117,1,17,15,33],\n [1118,1,17,16,36],\n [1119,1,17,17,39],\n [1120,1,17,18,41],\n [1121,1,17,19,44],\n [1122,1,17,20,47],\n [1123,1,17,21,50],\n [1124,1,17,22,53],\n [1125,1,17,23,56],\n [1126,1,17,24,59],\n [1127,1,17,25,61],\n [1128,1,17,26,64],\n [1129,1,17,27,67],\n [1130,1,17,28,70],\n [1131,1,17,29,73],\n [1132,1,17,30,76],\n [1133,1,17,31,79],\n [1134,1,17,32,81],\n [1135,1,17,33,84],\n [1136,1,17,34,87],\n [1137,1,17,35,90],\n [1138,1,17,36,93],\n [1139,1,17,37,96],\n [1140,1,17,38,99],\n [1141,1,17,39,101],\n [1142,1,17,40,104],\n [1143,1,17,41,107],\n [1144,1,17,42,110],\n [1145,1,17,43,113],\n [1146,1,17,44,116],\n [1147,1,17,45,119],\n [1148,1,17,46,121],\n [1149,1,17,47,124],\n [1150,1,17,48,127],\n [1151,1,17,49,130],\n [1152,1,18,0,40],\n [1153,1,18,1,44],\n [1154,1,18,2,48],\n [1155,1,18,3,52],\n [1156,1,18,4,56],\n [1157,1,18,5,60],\n [1158,1,18,6,64],\n [1159,1,18,7,68],\n [1160,1,18,8,72],\n [1161,1,18,9,76],\n [1162,1,18,10,80],\n [1163,1,18,11,84],\n [1164,1,18,12,88],\n [1165,1,18,13,92],\n [1166,1,18,14,96],\n [1167,1,18,15,100],\n [1168,1,18,16,104],\n [1169,1,18,17,108],\n [1170,1,18,18,112],\n [1171,1,18,19,116],\n [1172,1,18,20,120],\n [1173,1,18,21,124],\n [1174,1,18,22,128],\n [1175,1,18,23,132],\n [1176,1,18,24,136],\n [1177,1,18,25,140],\n [1178,1,18,26,144],\n [1179,1,18,27,148],\n [1180,1,18,28,152],\n [1181,1,18,29,156],\n [1182,1,18,30,160],\n [1183,1,18,31,164],\n [1184,1,18,32,168],\n [1185,1,18,33,172],\n [1186,1,18,34,176],\n [1187,1,18,35,180],\n [1188,1,18,36,184],\n [1189,1,18,37,188],\n [1190,1,18,38,192],\n [1191,1,18,39,196],\n [1192,1,18,40,200],\n [1193,1,19,9,33],\n [1194,1,19,10,36],\n [1195,1,19,11,39],\n [1196,1,19,12,43],\n [1197,1,19,13,46],\n [1198,1,19,14,49],\n [1199,1,19,15,53],\n [1200,1,19,16,56],\n [1201,1,19,17,59],\n [1202,1,19,18,63],\n [1203,1,19,19,66],\n [1204,1,19,20,69],\n [1205,1,19,21,73],\n [1206,1,19,22,76],\n [1207,1,19,23,79],\n [1208,1,19,24,83],\n [1209,1,19,25,86],\n [1210,1,19,26,89],\n [1211,1,19,27,93],\n [1212,1,19,28,96],\n [1213,1,20,11,30],\n [1214,1,20,12,33],\n [1215,1,20,13,37],\n [1216,1,20,14,41],\n [1217,1,20,15,44],\n [1218,1,20,16,48],\n [1219,1,20,17,52],\n [1220,1,20,18,56],\n [1221,1,20,19,59],\n [1222,1,20,20,63],\n [1223,1,20,21,67],\n [1224,1,20,22,70],\n [1225,1,20,23,74],\n [1226,1,20,24,78],\n [1227,1,20,25,81],\n [1228,1,21,13,31],\n [1229,1,21,14,33],\n [1230,1,21,15,36],\n [1231,1,21,16,39],\n [1232,1,21,17,42],\n [1233,1,21,18,44],\n [1234,1,21,19,47],\n [1235,1,21,20,50],\n [1236,1,21,21,53],\n [1237,1,21,22,56],\n [1238,1,21,23,58],\n [1239,1,21,24,61],\n [1240,1,21,25,64],\n [1241,1,21,26,67],\n [1242,1,21,27,69],\n [1243,1,21,28,72],\n [1244,1,21,29,75],\n [1245,1,21,30,78],\n [1246,1,22,1,30],\n [1247,1,22,2,32],\n [1248,1,22,3,33],\n [1249,1,22,4,35],\n [1250,1,22,5,36],\n [1251,1,22,6,38],\n [1252,1,22,7,40],\n [1253,1,22,8,41],\n [1254,1,22,9,43],\n [1255,1,22,10,45],\n [1256,1,22,11,46],\n [1257,1,22,12,48],\n [1258,1,22,13,49],\n [1259,1,22,14,51],\n [1260,1,22,15,53],\n [1261,1,22,16,54],\n [1262,1,22,17,56],\n [1263,1,22,18,57],\n [1264,1,22,19,59],\n [1265,1,22,20,61],\n [1266,1,22,21,62],\n [1267,1,22,22,64],\n [1268,1,22,23,65],\n [1269,1,22,24,67],\n [1270,1,22,25,69],\n [1271,1,22,26,70],\n [1272,1,22,27,72],\n [1273,1,22,28,74],\n [1274,1,22,29,75],\n [1275,1,22,30,77],\n [1276,1,22,31,78],\n [1277,1,22,32,80],\n [1278,1,22,33,82],\n [1279,1,22,34,83],\n [1280,1,22,35,85],\n [1281,1,22,36,86],\n [1282,1,22,37,88],\n [1283,1,22,38,90],\n [1284,1,22,39,91],\n [1285,1,22,40,93],\n [1286,1,22,41,95],\n [1287,1,23,28,31],\n [1288,1,23,29,33],\n [1289,1,23,30,35],\n [1290,1,23,31,37],\n [1291,1,23,32,40],\n [1292,1,23,33,42],\n [1293,1,23,34,44],\n [1294,1,23,35,46],\n [1295,1,23,36,48],\n [1296,1,23,37,51],\n [1297,1,23,38,53],\n [1298,1,23,39,55],\n [1299,1,23,40,57],\n [1300,1,23,41,60],\n [1301,1,23,42,62],\n [1302,1,23,43,64],\n [1303,1,23,44,66],\n [1304,1,23,45,68],\n [1305,1,23,46,71],\n [1306,1,23,47,73],\n [1307,1,24,19,30],\n [1308,1,24,20,32],\n [1309,1,24,21,35],\n [1310,1,24,22,37],\n [1311,1,24,23,40],\n [1312,1,24,24,42],\n [1313,1,24,25,44],\n [1314,1,24,26,47],\n [1315,1,24,27,49],\n [1316,1,24,28,52],\n [1317,1,24,29,54],\n [1318,1,24,30,57],\n [1319,1,24,31,59],\n [1320,1,24,32,61],\n [1321,1,24,33,64],\n [1322,1,24,34,66],\n [1323,1,24,35,69],\n [1324,1,24,36,71],\n [1325,1,24,37,74],\n [1326,1,24,38,76],\n [1327,1,24,39,79],\n [1328,1,24,40,81],\n [1329,1,24,41,83],\n [1330,1,24,42,86],\n [1331,1,24,43,88],\n [1332,1,24,44,91],\n [1333,1,24,45,93],\n [1334,1,24,46,96],\n [1335,1,25,0,36],\n [1336,1,25,1,37],\n [1337,1,25,2,39],\n [1338,1,25,3,41],\n [1339,1,25,4,42],\n [1340,1,25,5,44],\n [1341,1,25,6,45],\n [1342,1,25,7,47],\n [1343,1,25,8,49],\n [1344,1,25,9,50],\n [1345,1,25,10,52],\n [1346,1,25,11,54],\n [1347,1,25,12,55],\n [1348,1,25,13,57],\n [1349,1,25,14,58],\n [1350,1,25,15,60],\n [1351,1,25,16,62],\n [1352,1,25,17,63],\n [1353,1,25,18,65],\n [1354,1,25,19,66],\n [1355,1,25,20,68],\n [1356,1,25,21,70],\n [1357,1,25,22,71],\n [1358,1,25,23,73],\n [1359,1,25,24,75],\n [1360,1,25,25,76],\n [1361,1,25,26,78],\n [1362,1,25,27,79],\n [1363,1,25,28,81],\n [1364,1,25,29,83],\n [1365,1,25,30,84],\n [1366,1,25,31,86],\n [1367,1,25,32,87],\n [1368,1,25,33,89],\n [1369,1,25,34,91],\n [1370,1,25,35,92],\n [1371,1,25,36,94],\n [1372,1,25,37,95],\n [1373,1,25,38,97],\n [1374,1,25,39,99],\n [1375,1,25,40,100],\n [1376,1,25,41,102],\n [1377,1,25,42,104],\n [1378,1,25,43,105],\n [1379,1,25,44,107],\n [1380,1,25,45,108],\n [1381,1,25,46,110],\n [1382,1,26,0,36],\n [1383,1,26,1,37],\n [1384,1,26,2,38],\n [1385,1,26,3,39],\n [1386,1,26,4,40],\n [1387,1,26,5,42],\n [1388,1,26,6,43],\n [1389,1,26,7,44],\n [1390,1,26,8,45],\n [1391,1,26,9,46],\n [1392,1,26,10,48],\n [1393,1,26,11,49],\n [1394,1,26,12,50],\n [1395,1,26,13,51],\n [1396,1,26,14,52],\n [1397,1,26,15,53],\n [1398,1,26,16,55],\n [1399,1,26,17,56],\n [1400,1,26,18,57],\n [1401,1,26,19,58],\n [1402,1,26,20,59],\n [1403,1,26,21,61],\n [1404,1,26,22,62],\n [1405,1,26,23,63],\n [1406,1,26,24,64],\n [1407,1,26,25,65],\n [1408,1,26,26,67],\n [1409,1,26,27,68],\n [1410,1,26,28,69],\n [1411,1,26,29,70],\n [1412,1,26,30,71],\n [1413,1,26,31,73],\n [1414,1,26,32,74],\n [1415,1,26,33,75],\n [1416,1,26,34,76],\n [1417,1,26,35,77],\n [1418,1,26,36,78],\n [1419,1,26,37,80],\n [1420,1,26,38,81],\n [1421,1,26,39,82],\n [1422,1,26,40,83],\n [1423,1,26,41,84],\n [1424,1,26,42,86],\n [1425,1,26,43,87],\n [1426,1,26,44,88],\n [1427,1,26,45,89],\n [1428,1,26,46,90],\n [1429,1,26,47,92],\n [1430,1,26,48,93],\n [1431,1,26,49,94],\n [1432,1,26,50,95],\n [1433,1,26,51,96],\n [1434,1,26,52,98],\n [1435,1,26,53,99],\n [1436,1,26,54,100],\n [1437,1,26,55,101],\n [1438,1,26,56,102],\n [1439,1,26,57,103],\n [1440,1,26,58,105],\n [1441,1,26,59,106],\n [1442,1,26,60,107],\n [1443,1,27,0,36],\n [1444,1,27,1,39],\n [1445,1,27,2,42],\n [1446,1,27,3,45],\n [1447,1,27,4,48],\n [1448,1,27,5,51],\n [1449,1,27,6,53],\n [1450,1,27,7,56],\n [1451,1,27,8,59],\n [1452,1,27,9,62],\n [1453,1,27,10,65],\n [1454,1,27,11,68],\n [1455,1,27,12,71],\n [1456,1,27,13,74],\n [1457,1,27,14,77],\n [1458,1,28,0,37],\n [1459,1,28,1,41],\n [1460,1,28,2,45],\n [1461,1,28,3,49],\n [1462,1,28,4,54],\n [1463,1,28,5,58],\n [1464,1,28,6,62],\n [1465,1,28,7,67],\n [1466,1,28,8,71],\n [1467,1,29,1,38],\n [1468,1,29,2,41],\n [1469,1,29,3,44],\n [1470,1,29,4,47],\n [1471,1,29,5,50],\n [1472,1,29,6,53],\n [1473,1,29,7,56],\n [1474,1,29,8,59],\n [1475,1,29,9,62],\n [1476,1,29,10,65],\n [1477,1,29,11,68],\n [1478,1,29,12,71],\n [1479,1,29,13,74],\n [1480,1,29,14,77],\n [1481,1,29,15,80],\n [1482,1,29,16,83],\n [1483,1,29,17,86],\n [1484,2,14,0,33],\n [1485,2,14,1,35],\n [1486,2,14,2,36],\n [1487,2,14,3,37],\n [1488,2,14,4,39],\n [1489,2,14,5,40],\n [1490,2,14,6,41],\n [1491,2,14,7,43],\n [1492,2,14,8,44],\n [1493,2,14,9,46],\n [1494,2,14,10,47],\n [1495,2,14,11,48],\n [1496,2,14,12,50],\n [1497,2,14,13,51],\n [1498,2,14,14,52],\n [1499,2,14,15,54],\n [1500,2,14,16,55],\n [1501,2,14,17,56],\n [1502,2,14,18,58],\n [1503,2,14,19,59],\n [1504,2,14,20,60],\n [1505,2,14,21,62],\n [1506,2,14,22,63],\n [1507,2,14,23,64],\n [1508,2,14,24,66],\n [1509,2,14,25,67],\n [1510,2,14,26,69],\n [1511,2,14,27,70],\n [1512,2,14,28,71],\n [1513,2,14,29,73],\n [1514,2,14,30,74],\n [1515,2,14,31,75],\n [1516,2,14,32,77],\n [1517,2,14,33,78],\n [1518,2,14,34,79],\n [1519,2,14,35,81],\n [1520,2,14,36,82],\n [1521,2,14,37,83],\n [1522,2,14,38,85],\n [1523,2,14,39,86],\n [1524,2,15,11,32],\n [1525,2,15,12,34],\n [1526,2,15,13,37],\n [1527,2,15,14,40],\n [1528,2,15,15,42],\n [1529,2,15,16,45],\n [1530,2,15,17,48],\n [1531,2,15,18,50],\n [1532,2,15,19,53],\n [1533,2,15,20,56],\n [1534,2,15,21,58],\n [1535,2,15,22,61],\n [1536,2,15,23,63],\n [1537,2,15,24,66],\n [1538,2,15,25,69],\n [1539,2,15,26,71],\n [1540,2,15,27,74],\n [1541,2,15,28,77],\n [1542,2,15,29,79],\n [1543,2,15,30,82],\n [1544,2,15,31,84],\n [1545,2,15,32,87],\n [1546,2,15,33,90],\n [1547,2,15,34,92],\n [1548,2,15,35,95],\n [1549,2,15,36,98],\n [1550,2,15,37,100],\n [1551,2,16,26,30],\n [1552,2,16,27,32],\n [1553,2,16,28,34],\n [1554,2,16,29,36],\n [1555,2,16,30,38],\n [1556,2,16,31,41],\n [1557,2,16,32,43],\n [1558,2,16,33,45],\n [1559,2,16,34,47],\n [1560,2,16,35,50],\n [1561,2,16,36,52],\n [1562,2,16,37,54],\n [1563,2,16,38,56],\n [1564,2,16,39,58],\n [1565,2,16,40,61],\n [1566,2,16,41,63],\n [1567,2,16,42,65],\n [1568,2,16,43,67],\n [1569,2,16,44,70],\n [1570,2,16,45,72],\n [1571,2,16,46,74],\n [1572,2,16,47,76],\n [1573,2,16,48,78],\n [1574,2,16,49,81],\n [1575,2,16,50,83],\n [1576,2,16,51,85],\n [1577,2,16,52,87],\n [1578,2,17,13,31],\n [1579,2,17,14,34],\n [1580,2,17,15,37],\n [1581,2,17,16,40],\n [1582,2,17,17,43],\n [1583,2,17,18,46],\n [1584,2,17,19,49],\n [1585,2,17,20,52],\n [1586,2,17,21,55],\n [1587,2,17,22,58],\n [1588,2,17,23,61],\n [1589,2,17,24,64],\n [1590,2,17,25,67],\n [1591,2,17,26,70],\n [1592,2,17,27,73],\n [1593,2,17,28,76],\n [1594,2,17,29,79],\n [1595,2,17,30,82],\n [1596,2,17,31,85],\n [1597,2,17,32,88],\n [1598,2,17,33,91],\n [1599,2,17,34,94],\n [1600,2,17,35,97],\n [1601,2,17,36,100],\n [1602,2,17,37,103],\n [1603,2,17,38,106],\n [1604,2,17,39,109],\n [1605,2,17,40,112],\n [1606,2,17,41,115],\n [1607,2,17,42,118],\n [1608,2,17,43,122],\n [1609,2,17,44,125],\n [1610,2,17,45,128],\n [1611,2,17,46,131],\n [1612,2,17,47,134],\n [1613,2,17,48,137],\n [1614,2,17,49,140],\n [1615,2,18,0,38],\n [1616,2,18,1,42],\n [1617,2,18,2,47],\n [1618,2,18,3,51],\n [1619,2,18,4,55],\n [1620,2,18,5,60],\n [1621,2,18,6,64],\n [1622,2,18,7,68],\n [1623,2,18,8,73],\n [1624,2,18,9,77],\n [1625,2,18,10,81],\n [1626,2,18,11,86],\n [1627,2,18,12,90],\n [1628,2,18,13,94],\n [1629,2,18,14,99],\n [1630,2,18,15,103],\n [1631,2,18,16,107],\n [1632,2,18,17,112],\n [1633,2,18,18,116],\n [1634,2,18,19,120],\n [1635,2,18,20,125],\n [1636,2,18,21,129],\n [1637,2,18,22,133],\n [1638,2,18,23,138],\n [1639,2,18,24,142],\n [1640,2,18,25,147],\n [1641,2,18,26,151],\n [1642,2,18,27,155],\n [1643,2,18,28,160],\n [1644,2,18,29,164],\n [1645,2,18,30,168],\n [1646,2,18,31,173],\n [1647,2,18,32,177],\n [1648,2,18,33,181],\n [1649,2,18,34,186],\n [1650,2,18,35,190],\n [1651,2,18,36,194],\n [1652,2,18,37,199],\n [1653,2,18,38,203],\n [1654,2,18,39,207],\n [1655,2,18,40,212],\n [1656,2,19,10,33],\n [1657,2,19,11,37],\n [1658,2,19,12,41],\n [1659,2,19,13,45],\n [1660,2,19,14,49],\n [1661,2,19,15,53],\n [1662,2,19,16,57],\n [1663,2,19,17,61],\n [1664,2,19,18,65],\n [1665,2,19,19,69],\n [1666,2,19,20,73],\n [1667,2,19,21,77],\n [1668,2,19,22,81],\n [1669,2,19,23,85],\n [1670,2,19,24,89],\n [1671,2,19,25,93],\n [1672,2,19,26,97],\n [1673,2,19,27,101],\n [1674,2,19,28,105],\n [1675,2,20,11,30],\n [1676,2,20,12,34],\n [1677,2,20,13,38],\n [1678,2,20,14,41],\n [1679,2,20,15,45],\n [1680,2,20,16,49],\n [1681,2,20,17,53],\n [1682,2,20,18,56],\n [1683,2,20,19,60],\n [1684,2,20,20,64],\n [1685,2,20,21,67],\n [1686,2,20,22,71],\n [1687,2,20,23,75],\n [1688,2,20,24,79],\n [1689,2,20,25,82],\n [1690,2,21,0,126],\n [1691,2,21,1,122],\n [1692,2,21,2,119],\n [1693,2,21,3,115],\n [1694,2,21,4,111],\n [1695,2,21,5,108],\n [1696,2,21,6,104],\n [1697,2,21,7,101],\n [1698,2,21,8,97],\n [1699,2,21,9,94],\n [1700,2,21,10,90],\n [1701,2,21,11,86],\n [1702,2,21,12,83],\n [1703,2,21,13,79],\n [1704,2,21,14,76],\n [1705,2,21,15,72],\n [1706,2,21,16,69],\n [1707,2,21,17,65],\n [1708,2,21,18,61],\n [1709,2,21,19,58],\n [1710,2,21,20,54],\n [1711,2,21,21,51],\n [1712,2,21,22,47],\n [1713,2,21,23,44],\n [1714,2,21,24,40],\n [1715,2,21,25,36],\n [1716,2,21,26,33],\n [1717,2,22,2,30],\n [1718,2,22,3,31],\n [1719,2,22,4,33],\n [1720,2,22,5,34],\n [1721,2,22,6,36],\n [1722,2,22,7,38],\n [1723,2,22,8,39],\n [1724,2,22,9,41],\n [1725,2,22,10,42],\n [1726,2,22,11,44],\n [1727,2,22,12,46],\n [1728,2,22,13,47],\n [1729,2,22,14,49],\n [1730,2,22,15,50],\n [1731,2,22,16,52],\n [1732,2,22,17,54],\n [1733,2,22,18,55],\n [1734,2,22,19,57],\n [1735,2,22,20,59],\n [1736,2,22,21,60],\n [1737,2,22,22,62],\n [1738,2,22,23,63],\n [1739,2,22,24,65],\n [1740,2,22,25,67],\n [1741,2,22,26,68],\n [1742,2,22,27,70],\n [1743,2,22,28,71],\n [1744,2,22,29,73],\n [1745,2,22,30,75],\n [1746,2,22,31,76],\n [1747,2,22,32,78],\n [1748,2,22,33,80],\n [1749,2,22,34,81],\n [1750,2,22,35,83],\n [1751,2,22,36,84],\n [1752,2,22,37,86],\n [1753,2,22,38,88],\n [1754,2,22,39,89],\n [1755,2,22,40,91],\n [1756,2,22,41,92],\n [1757,2,23,20,31],\n [1758,2,23,21,32],\n [1759,2,23,22,34],\n [1760,2,23,23,36],\n [1761,2,23,24,38],\n [1762,2,23,25,40],\n [1763,2,23,26,42],\n [1764,2,23,27,44],\n [1765,2,23,28,45],\n [1766,2,23,29,47],\n [1767,2,23,30,49],\n [1768,2,23,31,51],\n [1769,2,23,32,53],\n [1770,2,23,33,55],\n [1771,2,23,34,56],\n [1772,2,23,35,58],\n [1773,2,23,36,60],\n [1774,2,23,37,62],\n [1775,2,23,38,64],\n [1776,2,23,39,66],\n [1777,2,23,40,68],\n [1778,2,23,41,69],\n [1779,2,23,42,71],\n [1780,2,23,43,73],\n [1781,2,23,44,75],\n [1782,2,23,45,77],\n [1783,2,23,46,79],\n [1784,2,23,47,81],\n [1785,2,24,28,30],\n [1786,2,24,29,33],\n [1787,2,24,30,36],\n [1788,2,24,31,39],\n [1789,2,24,32,41],\n [1790,2,24,33,44],\n [1791,2,24,34,47],\n [1792,2,24,35,50],\n [1793,2,24,36,53],\n [1794,2,24,37,56],\n [1795,2,24,38,59],\n [1796,2,24,39,62],\n [1797,2,24,40,65],\n [1798,2,24,41,68],\n [1799,2,24,42,71],\n [1800,2,24,43,74],\n [1801,2,24,44,77],\n [1802,2,24,45,80],\n [1803,2,24,46,83],\n [1804,2,25,0,38],\n [1805,2,25,1,37],\n [1806,2,25,2,39],\n [1807,2,25,3,40],\n [1808,2,25,4,42],\n [1809,2,25,5,44],\n [1810,2,25,6,45],\n [1811,2,25,7,47],\n [1812,2,25,8,49],\n [1813,2,25,9,50],\n [1814,2,25,10,52],\n [1815,2,25,11,54],\n [1816,2,25,12,55],\n [1817,2,25,13,57],\n [1818,2,25,14,59],\n [1819,2,25,15,60],\n [1820,2,25,16,62],\n [1821,2,25,17,63],\n [1822,2,25,18,65],\n [1823,2,25,19,67],\n [1824,2,25,20,68],\n [1825,2,25,21,70],\n [1826,2,25,22,72],\n [1827,2,25,23,73],\n [1828,2,25,24,75],\n [1829,2,25,25,77],\n [1830,2,25,26,78],\n [1831,2,25,27,80],\n [1832,2,25,28,81],\n [1833,2,25,29,83],\n [1834,2,25,30,85],\n [1835,2,25,31,86],\n [1836,2,25,32,88],\n [1837,2,25,33,90],\n [1838,2,25,34,91],\n [1839,2,25,35,93],\n [1840,2,25,36,95],\n [1841,2,25,37,96],\n [1842,2,25,38,98],\n [1843,2,25,39,100],\n [1844,2,25,40,101],\n [1845,2,25,41,103],\n [1846,2,25,42,104],\n [1847,2,25,43,106],\n [1848,2,25,44,108],\n [1849,2,25,45,109],\n [1850,2,25,46,111],\n [1851,2,26,0,34],\n [1852,2,26,1,36],\n [1853,2,26,2,37],\n [1854,2,26,3,38],\n [1855,2,26,4,39],\n [1856,2,26,5,40],\n [1857,2,26,6,42],\n [1858,2,26,7,43],\n [1859,2,26,8,44],\n [1860,2,26,9,45],\n [1861,2,26,10,46],\n [1862,2,26,11,48],\n [1863,2,26,12,49],\n [1864,2,26,13,50],\n [1865,2,26,14,51],\n [1866,2,26,15,52],\n [1867,2,26,16,53],\n [1868,2,26,17,55],\n [1869,2,26,18,56],\n [1870,2,26,19,57],\n [1871,2,26,20,58],\n [1872,2,26,21,59],\n [1873,2,26,22,61],\n [1874,2,26,23,62],\n [1875,2,26,24,63],\n [1876,2,26,25,64],\n [1877,2,26,26,65],\n [1878,2,26,27,67],\n [1879,2,26,28,68],\n [1880,2,26,29,69],\n [1881,2,26,30,70],\n [1882,2,26,31,71],\n [1883,2,26,32,73],\n [1884,2,26,33,74],\n [1885,2,26,34,75],\n [1886,2,26,35,76],\n [1887,2,26,36,77],\n [1888,2,26,37,78],\n [1889,2,26,38,80],\n [1890,2,26,39,81],\n [1891,2,26,40,82],\n [1892,2,26,41,83],\n [1893,2,26,42,84],\n [1894,2,26,43,86],\n [1895,2,26,44,87],\n [1896,2,26,45,88],\n [1897,2,26,46,89],\n [1898,2,26,47,90],\n [1899,2,26,48,92],\n [1900,2,26,49,93],\n [1901,2,26,50,94],\n [1902,2,26,51,95],\n [1903,2,26,52,96],\n [1904,2,26,53,98],\n [1905,2,26,54,99],\n [1906,2,26,55,100],\n [1907,2,26,56,101],\n [1908,2,26,57,102],\n [1909,2,26,58,103],\n [1910,2,26,59,105],\n [1911,2,26,60,106],\n [1912,2,27,0,36],\n [1913,2,27,1,38],\n [1914,2,27,2,41],\n [1915,2,27,3,44],\n [1916,2,27,4,46],\n [1917,2,27,5,49],\n [1918,2,27,6,52],\n [1919,2,27,7,55],\n [1920,2,27,8,57],\n [1921,2,27,9,60],\n [1922,2,27,10,63],\n [1923,2,27,11,65],\n [1924,2,27,12,68],\n [1925,2,27,13,71],\n [1926,2,27,14,73],\n [1927,2,28,0,37],\n [1928,2,28,1,42],\n [1929,2,28,2,47],\n [1930,2,28,3,51],\n [1931,2,28,4,56],\n [1932,2,28,5,60],\n [1933,2,28,6,65],\n [1934,2,28,7,69],\n [1935,2,28,8,74],\n [1936,2,29,1,38],\n [1937,2,29,2,41],\n [1938,2,29,3,44],\n [1939,2,29,4,47],\n [1940,2,29,5,49],\n [1941,2,29,6,52],\n [1942,2,29,7,55],\n [1943,2,29,8,58],\n [1944,2,29,9,60],\n [1945,2,29,10,63],\n [1946,2,29,11,66],\n [1947,2,29,12,69],\n [1948,2,29,13,72],\n [1949,2,29,14,74],\n [1950,2,29,15,77],\n [1951,2,29,16,80],\n [1952,2,29,17,83],\n [1953,2,27,0,36],\n [1954,2,27,1,38],\n [1955,2,27,2,41],\n [1956,2,27,3,44],\n [1957,2,27,4,46],\n [1958,2,27,5,49],\n [1959,2,27,6,52],\n [1960,2,27,7,55],\n [1961,2,27,8,57],\n [1962,2,27,9,60],\n [1963,2,27,10,63],\n [1964,2,27,11,65],\n [1965,2,27,12,68],\n [1966,2,27,13,71],\n [1967,2,27,14,73],\n [1968,2,28,0,37],\n [1969,2,28,1,42],\n [1970,2,28,2,47],\n [1971,2,28,3,51],\n [1972,2,28,4,56],\n [1973,2,28,5,60],\n [1974,2,28,6,65],\n [1975,2,28,7,69],\n [1976,2,28,8,74],\n [1977,2,29,1,38],\n [1978,2,29,2,41],\n [1979,2,29,3,44],\n [1980,2,29,4,47],\n [1981,2,29,5,49],\n [1982,2,29,6,52],\n [1983,2,29,7,55],\n [1984,2,29,8,58],\n [1985,2,29,9,60],\n [1986,2,29,10,63],\n [1987,2,29,11,66],\n [1988,2,29,12,69],\n [1989,2,29,13,72],\n [1990,2,29,14,74],\n [1991,2,29,15,77],\n [1992,2,29,16,80],\n [1993,2,29,17,83],\n [1994,1,30,0,35],\n [1995,1,30,1,37],\n [1996,1,30,2,40],\n [1997,1,30,3,42],\n [1998,1,30,4,45],\n [1999,1,30,5,47],\n [2000,1,30,6,49],\n [2001,1,30,7,52],\n [2002,1,30,8,54],\n [2003,1,30,9,56],\n [2004,1,30,10,59],\n [2005,1,30,11,61],\n [2006,1,30,12,64],\n [2007,1,30,13,66],\n [2008,1,30,14,68],\n [2009,1,30,15,71],\n [2010,1,30,16,73],\n [2011,1,30,17,75],\n [2012,1,30,18,78],\n [2013,1,30,19,80],\n [2014,1,30,20,83],\n [2015,1,30,21,85],\n [2016,1,31,0,35],\n [2017,1,31,1,38],\n [2018,1,31,2,41],\n [2019,1,31,3,44],\n [2020,1,31,4,47],\n [2021,1,31,5,50],\n [2022,1,31,6,53],\n [2023,1,31,7,56],\n [2024,1,31,8,59],\n [2025,1,31,9,62],\n [2026,1,31,10,65],\n [2027,1,31,11,68],\n [2028,1,31,12,72],\n [2029,1,31,13,75],\n [2030,1,31,14,78],\n [2031,1,31,15,81],\n [2032,1,31,16,84],\n [2033,1,31,17,87],\n [2034,1,31,18,90],\n [2035,1,31,19,93],\n [2036,1,31,20,96],\n [2037,1,32,0,34],\n [2038,1,32,1,37],\n [2039,1,32,2,41],\n [2040,1,32,3,44],\n [2041,1,32,4,47],\n [2042,1,32,5,51],\n [2043,1,32,6,54],\n [2044,1,32,7,57],\n [2045,1,32,8,61],\n [2046,1,32,9,64],\n [2047,1,32,10,67],\n [2048,1,32,11,71],\n [2049,1,32,12,74],\n [2050,1,32,13,77],\n [2051,1,32,14,81],\n [2052,1,33,0,36],\n [2053,1,33,1,39],\n [2054,1,33,2,41],\n [2055,1,33,3,43],\n [2056,1,33,4,46],\n [2057,1,33,5,48],\n [2058,1,33,6,50],\n [2059,1,33,7,53],\n [2060,1,33,8,55],\n [2061,1,33,9,58],\n [2062,1,33,10,60],\n [2063,1,33,11,62],\n [2064,1,33,12,65],\n [2065,1,33,13,67],\n [2066,1,33,14,70],\n [2067,1,33,15,72],\n [2068,1,33,16,74],\n [2069,1,33,17,77],\n [2070,1,33,18,79],\n [2071,1,33,19,81],\n [2072,1,33,20,84],\n [2073,1,33,21,86],\n [2074,1,33,22,89],\n [2075,1,33,23,91],\n [2076,1,33,24,93],\n [2077,1,33,25,96],\n [2078,1,33,26,98],\n [2079,1,34,0,34],\n [2080,1,34,1,37],\n [2081,1,34,2,40],\n [2082,1,34,3,42],\n [2083,1,34,4,45],\n [2084,1,34,5,48],\n [2085,1,34,6,50],\n [2086,1,34,7,53],\n [2087,1,34,8,56],\n [2088,1,34,9,58],\n [2089,1,34,10,61],\n [2090,1,34,11,63],\n [2091,1,34,12,66],\n [2092,1,34,13,69],\n [2093,1,34,14,71],\n [2094,1,34,15,74],\n [2095,1,34,16,77],\n [2096,1,34,17,79],\n [2097,1,34,18,82],\n [2098,1,34,19,84],\n [2099,1,34,20,87],\n [2100,1,34,21,90],\n [2101,1,34,22,92],\n [2102,1,34,23,95],\n [2103,1,34,24,98],\n [2104,1,35,0,39],\n [2105,1,35,1,43],\n [2106,1,35,2,47],\n [2107,1,35,3,52],\n [2108,1,35,4,56],\n [2109,1,35,5,60],\n [2110,1,35,6,65],\n [2111,1,35,7,69],\n [2112,1,35,8,73],\n [2113,1,35,9,78],\n [2114,1,35,10,82],\n [2115,1,35,11,87],\n [2116,1,35,12,91],\n [2117,1,35,13,95],\n [2118,1,36,0,32],\n [2119,1,36,1,35],\n [2120,1,36,2,39],\n [2121,1,36,3,42],\n [2122,1,36,4,45],\n [2123,1,36,5,48],\n [2124,1,36,6,52],\n [2125,1,36,7,55],\n [2126,1,36,8,58],\n [2127,1,36,9,61],\n [2128,1,36,10,65],\n [2129,1,36,11,68],\n [2130,1,36,12,71],\n [2131,1,36,13,74],\n [2132,1,36,14,77],\n [2133,1,36,15,81],\n [2134,1,36,16,84],\n [2135,1,37,2,31],\n [2136,1,37,3,33],\n [2137,1,37,4,35],\n [2138,1,37,5,37],\n [2139,1,37,6,39],\n [2140,1,37,7,41],\n [2141,1,37,8,43],\n [2142,1,37,9,45],\n [2143,1,37,10,47],\n [2144,1,37,11,49],\n [2145,1,37,12,51],\n [2146,1,37,13,54],\n [2147,1,37,14,56],\n [2148,1,37,15,58],\n [2149,1,37,16,60],\n [2150,1,37,17,62],\n [2151,1,37,18,64],\n [2152,1,37,19,66],\n [2153,1,37,20,68],\n [2154,1,37,21,70],\n [2155,1,37,22,72],\n [2156,1,37,23,74],\n [2157,1,38,3,31],\n [2158,1,38,4,33],\n [2159,1,38,5,36],\n [2160,1,38,6,39],\n [2161,1,38,7,41],\n [2162,1,38,8,44],\n [2163,1,38,9,47],\n [2164,1,38,10,49],\n [2165,1,38,11,52],\n [2166,1,38,12,55],\n [2167,1,38,13,58],\n [2168,1,38,14,60],\n [2169,1,38,15,63],\n [2170,1,38,16,66],\n [2171,1,38,17,68],\n [2172,1,38,18,71],\n [2173,1,38,19,74],\n [2174,1,38,20,76],\n [2175,1,39,2,31],\n [2176,1,39,3,34],\n [2177,1,39,4,37],\n [2178,1,39,5,39],\n [2179,1,39,6,42],\n [2180,1,39,7,45],\n [2181,1,39,8,48],\n [2182,1,39,9,51],\n [2183,1,39,10,53],\n [2184,1,39,11,56],\n [2185,1,39,12,59],\n [2186,1,39,13,62],\n [2187,1,39,14,64],\n [2188,1,39,15,67],\n [2189,1,39,16,70],\n [2190,1,39,17,73],\n [2191,1,39,18,76],\n [2192,1,39,19,78],\n [2193,1,40,0,37],\n [2194,1,40,1,40],\n [2195,1,40,2,43],\n [2196,1,40,3,46],\n [2197,1,40,4,49],\n [2198,1,40,5,52],\n [2199,1,40,6,55],\n [2200,1,40,7,58],\n [2201,1,40,8,61],\n [2202,1,40,9,64],\n [2203,1,40,10,67],\n [2204,1,40,11,70],\n [2205,1,40,12,73],\n [2206,1,40,13,76],\n [2207,1,40,14,79],\n [2208,1,40,15,82],\n [2209,1,40,16,85],\n [2210,1,41,0,33],\n [2211,1,41,1,35],\n [2212,1,41,2,37],\n [2213,1,41,3,40],\n [2214,1,41,4,42],\n [2215,1,41,5,44],\n [2216,1,41,6,47],\n [2217,1,41,7,49],\n [2218,1,41,8,51],\n [2219,1,41,9,54],\n [2220,1,41,10,56],\n [2221,1,41,11,58],\n [2222,1,41,12,61],\n [2223,1,41,13,63],\n [2224,1,41,14,65],\n [2225,1,41,15,68],\n [2226,1,41,16,70],\n [2227,1,41,17,72],\n [2228,1,41,18,75],\n [2229,1,41,19,77],\n [2230,1,41,20,79],\n [2231,1,41,21,82],\n [2232,1,42,0,36],\n [2233,1,42,1,38],\n [2234,1,42,2,41],\n [2235,1,42,3,43],\n [2236,1,42,4,46],\n [2237,1,42,5,48],\n [2238,1,42,6,51],\n [2239,1,42,7,54],\n [2240,1,42,8,56],\n [2241,1,42,9,59],\n [2242,1,42,10,61],\n [2243,1,42,11,64],\n [2244,1,42,12,66],\n [2245,1,42,13,69],\n [2246,1,42,14,72],\n [2247,1,42,15,74],\n [2248,1,42,16,77],\n [2249,1,42,17,79],\n [2250,1,42,18,82],\n [2251,1,42,19,84],\n [2252,1,42,20,87],\n [2253,1,43,0,36],\n [2254,1,43,1,38],\n [2255,1,43,2,40],\n [2256,1,43,3,42],\n [2257,1,43,4,44],\n [2258,1,43,5,47],\n [2259,1,43,6,49],\n [2260,1,43,7,51],\n [2261,1,43,8,53],\n [2262,1,43,9,55],\n [2263,1,43,10,57],\n [2264,1,43,11,59],\n [2265,1,43,12,61],\n [2266,1,43,13,64],\n [2267,1,43,14,66],\n [2268,1,43,15,68],\n [2269,1,43,16,70],\n [2270,1,43,17,72],\n [2271,1,43,18,74],\n [2272,1,43,19,76],\n [2273,1,43,20,79],\n [2274,1,43,21,81],\n [2275,1,43,22,83],\n [2276,1,43,23,85],\n [2277,1,44,0,37],\n [2278,1,44,1,40],\n [2279,1,44,2,43],\n [2280,1,44,3,46],\n [2281,1,44,4,49],\n [2282,1,44,5,52],\n [2283,1,44,6,55],\n [2284,1,44,7,58],\n [2285,1,44,8,62],\n [2286,1,44,9,65],\n [2287,1,44,10,68],\n [2288,1,44,11,71],\n [2289,1,44,12,74],\n [2290,1,44,13,77],\n [2291,1,44,14,80],\n [2292,1,44,15,83],\n [2293,1,44,16,87],\n [2294,1,44,17,90],\n [2295,1,44,18,93],\n [2296,2,30,0,33],\n [2297,2,30,1,35],\n [2298,2,30,2,38],\n [2299,2,30,3,40],\n [2300,2,30,4,43],\n [2301,2,30,5,45],\n [2302,2,30,6,47],\n [2303,2,30,7,50],\n [2304,2,30,8,52],\n [2305,2,30,9,55],\n [2306,2,30,10,57],\n [2307,2,30,11,59],\n [2308,2,30,12,62],\n [2309,2,30,13,64],\n [2310,2,30,14,66],\n [2311,2,30,15,69],\n [2312,2,30,16,71],\n [2313,2,30,17,74],\n [2314,2,30,18,76],\n [2315,2,30,19,78],\n [2316,2,30,20,81],\n [2317,2,30,21,83],\n [2318,2,31,0,31],\n [2319,2,31,1,34],\n [2320,2,31,2,36],\n [2321,2,31,3,39],\n [2322,2,31,4,41],\n [2323,2,31,5,44],\n [2324,2,31,6,46],\n [2325,2,31,7,49],\n [2326,2,31,8,51],\n [2327,2,31,9,54],\n [2328,2,31,10,56],\n [2329,2,31,11,59],\n [2330,2,31,12,61],\n [2331,2,31,13,64],\n [2332,2,31,14,66],\n [2333,2,31,15,69],\n [2334,2,31,16,71],\n [2335,2,31,17,74],\n [2336,2,31,18,76],\n [2337,2,31,19,79],\n [2338,2,31,20,81],\n [2339,2,31,21,84],\n [2340,2,32,0,32],\n [2341,2,32,1,36],\n [2342,2,32,2,39],\n [2343,2,32,3,42],\n [2344,2,32,4,46],\n [2345,2,32,5,49],\n [2346,2,32,6,53],\n [2347,2,32,7,56],\n [2348,2,32,8,60],\n [2349,2,32,9,63],\n [2350,2,32,10,67],\n [2351,2,32,11,70],\n [2352,2,32,12,73],\n [2353,2,32,13,77],\n [2354,2,32,14,80],\n [2355,2,32,15,84],\n [2356,2,33,0,35],\n [2357,2,33,1,37],\n [2358,2,33,2,39],\n [2359,2,33,3,42],\n [2360,2,33,4,44],\n [2361,2,33,5,46],\n [2362,2,33,6,48],\n [2363,2,33,7,50],\n [2364,2,33,8,53],\n [2365,2,33,9,55],\n [2366,2,33,10,57],\n [2367,2,33,11,59],\n [2368,2,33,12,62],\n [2369,2,33,13,64],\n [2370,2,33,14,66],\n [2371,2,33,15,68],\n [2372,2,33,16,70],\n [2373,2,33,17,73],\n [2374,2,33,18,75],\n [2375,2,33,19,77],\n [2376,2,33,20,79],\n [2377,2,33,21,82],\n [2378,2,33,22,84],\n [2379,2,33,23,86],\n [2380,2,33,24,88],\n [2381,2,33,25,90],\n [2382,2,33,26,93],\n [2383,2,34,0,33],\n [2384,2,34,1,36],\n [2385,2,34,2,38],\n [2386,2,34,3,41],\n [2387,2,34,4,43],\n [2388,2,34,5,46],\n [2389,2,34,6,48],\n [2390,2,34,7,51],\n [2391,2,34,8,54],\n [2392,2,34,9,56],\n [2393,2,34,10,59],\n [2394,2,34,11,61],\n [2395,2,34,12,64],\n [2396,2,34,13,66],\n [2397,2,34,14,69],\n [2398,2,34,15,72],\n [2399,2,34,16,74],\n [2400,2,34,17,77],\n [2401,2,34,18,79],\n [2402,2,34,19,82],\n [2403,2,34,20,84],\n [2404,2,34,21,87],\n [2405,2,34,22,89],\n [2406,2,34,23,92],\n [2407,2,34,24,95],\n [2408,2,34,25,97],\n [2409,2,34,26,100],\n [2410,2,35,0,40],\n [2411,2,35,1,44],\n [2412,2,35,2,48],\n [2413,2,35,3,53],\n [2414,2,35,4,57],\n [2415,2,35,5,61],\n [2416,2,35,6,66],\n [2417,2,35,7,70],\n [2418,2,35,8,74],\n [2419,2,35,9,79],\n [2420,2,35,10,83],\n [2421,2,35,11,87],\n [2422,2,35,12,92],\n [2423,2,35,13,96],\n [2424,2,35,14,100],\n [2425,2,35,15,105],\n [2426,2,36,0,31],\n [2427,2,36,1,34],\n [2428,2,36,2,38],\n [2429,2,36,3,41],\n [2430,2,36,4,45],\n [2431,2,36,5,48],\n [2432,2,36,6,52],\n [2433,2,36,7,55],\n [2434,2,36,8,59],\n [2435,2,36,9,62],\n [2436,2,36,10,66],\n [2437,2,36,11,69],\n [2438,2,36,12,72],\n [2439,2,36,13,76],\n [2440,2,36,14,79],\n [2441,2,36,15,83],\n [2442,2,37,0,74],\n [2443,2,37,1,72],\n [2444,2,37,2,70],\n [2445,2,37,3,68],\n [2446,2,37,4,65],\n [2447,2,37,5,63],\n [2448,2,37,6,61],\n [2449,2,37,7,58],\n [2450,2,37,8,56],\n [2451,2,37,9,54],\n [2452,2,37,10,52],\n [2453,2,37,11,49],\n [2454,2,37,12,47],\n [2455,2,37,13,45],\n [2456,2,37,14,43],\n [2457,2,37,15,40],\n [2458,2,37,16,38],\n [2459,2,37,17,36],\n [2460,2,37,18,33],\n [2461,2,37,19,31],\n [2462,2,38,3,32],\n [2463,2,38,4,35],\n [2464,2,38,5,38],\n [2465,2,38,6,42],\n [2466,2,38,7,45],\n [2467,2,38,8,48],\n [2468,2,38,9,51],\n [2469,2,38,10,55],\n [2470,2,38,11,58],\n [2471,2,38,12,61],\n [2472,2,38,13,64],\n [2473,2,38,14,67],\n [2474,2,38,15,71],\n [2475,2,38,16,74],\n [2476,2,38,17,77],\n [2477,2,38,18,80],\n [2478,2,39,3,31],\n [2479,2,39,4,34],\n [2480,2,39,5,37],\n [2481,2,39,6,40],\n [2482,2,39,7,43],\n [2483,2,39,8,47],\n [2484,2,39,9,50],\n [2485,2,39,10,53],\n [2486,2,39,11,56],\n [2487,2,39,12,59],\n [2488,2,39,13,62],\n [2489,2,39,14,65],\n [2490,2,39,15,68],\n [2491,2,39,16,72],\n [2492,2,39,17,75],\n [2493,2,39,18,78],\n [2494,2,39,19,81],\n [2495,2,40,0,37],\n [2496,2,40,1,40],\n [2497,2,40,2,42],\n [2498,2,40,3,45],\n [2499,2,40,4,48],\n [2500,2,40,5,51],\n [2501,2,40,6,53],\n [2502,2,40,7,56],\n [2503,2,40,8,59],\n [2504,2,40,9,61],\n [2505,2,40,10,64],\n [2506,2,40,11,67],\n [2507,2,40,12,69],\n [2508,2,40,13,72],\n [2509,2,40,14,75],\n [2510,2,40,15,78],\n [2511,2,40,16,80],\n [2512,2,40,17,83],\n [2513,2,40,18,86],\n [2514,2,40,19,88],\n [2515,2,40,20,91],\n [2516,2,40,21,94],\n [2517,2,40,22,96],\n [2518,2,41,0,32],\n [2519,2,41,1,35],\n [2520,2,41,2,37],\n [2521,2,41,3,40],\n [2522,2,41,4,42],\n [2523,2,41,5,44],\n [2524,2,41,6,47],\n [2525,2,41,7,49],\n [2526,2,41,8,52],\n [2527,2,41,9,54],\n [2528,2,41,10,57],\n [2529,2,41,11,59],\n [2530,2,41,12,61],\n [2531,2,41,13,64],\n [2532,2,41,14,66],\n [2533,2,41,15,69],\n [2534,2,41,16,71],\n [2535,2,41,17,74],\n [2536,2,41,18,76],\n [2537,2,41,19,79],\n [2538,2,41,20,81],\n [2539,2,41,21,83],\n [2540,2,41,22,86],\n [2541,2,42,0,35],\n [2542,2,42,1,37],\n [2543,2,42,2,40],\n [2544,2,42,3,42],\n [2545,2,42,4,45],\n [2546,2,42,5,47],\n [2547,2,42,6,50],\n [2548,2,42,7,52],\n [2549,2,42,8,55],\n [2550,2,42,9,57],\n [2551,2,42,10,60],\n [2552,2,42,11,62],\n [2553,2,42,12,65],\n [2554,2,42,13,67],\n [2555,2,42,14,70],\n [2556,2,42,15,72],\n [2557,2,42,16,75],\n [2558,2,42,17,77],\n [2559,2,42,18,80],\n [2560,2,42,19,82],\n [2561,2,42,20,85],\n [2562,2,42,21,87],\n [2563,2,43,0,34],\n [2564,2,43,1,36],\n [2565,2,43,2,38],\n [2566,2,43,3,40],\n [2567,2,43,4,42],\n [2568,2,43,5,44],\n [2569,2,43,6,46],\n [2570,2,43,7,48],\n [2571,2,43,8,50],\n [2572,2,43,9,52],\n [2573,2,43,10,54],\n [2574,2,43,11,57],\n [2575,2,43,12,59],\n [2576,2,43,13,61],\n [2577,2,43,14,63],\n [2578,2,43,15,65],\n [2579,2,43,16,67],\n [2580,2,43,17,69],\n [2581,2,43,18,71],\n [2582,2,43,19,73],\n [2583,2,43,20,75],\n [2584,2,43,21,77],\n [2585,2,43,22,79],\n [2586,2,43,23,81],\n [2587,2,43,24,83],\n [2588,2,43,25,85],\n [2589,2,43,26,87],\n [2590,2,43,27,89],\n [2591,2,43,28,91],\n [2592,2,43,29,93],\n [2593,2,44,0,36],\n [2594,2,44,1,39],\n [2595,2,44,2,42],\n [2596,2,44,3,45],\n [2597,2,44,4,48],\n [2598,2,44,5,51],\n [2599,2,44,6,54],\n [2600,2,44,7,57],\n [2601,2,44,8,60],\n [2602,2,44,9,63],\n [2603,2,44,10,66],\n [2604,2,44,11,69],\n [2605,2,44,12,72],\n [2606,2,44,13,75],\n [2607,2,44,14,78],\n [2608,2,44,15,81],\n [2609,2,44,16,84],\n [2610,2,44,17,86],\n [2611,2,44,18,89],\n ];\n\n foreach ($data as $d) {\n $c = new Conversion();\n $c->sexo = $d[1];\n $c->escala = $d[2];\n $c->puntuacion_cruda = $d[3];\n $c->puntuacion_t = $d[4];\n $c->save();\n }\n }", "public function generator($a){\n $countr = 0;\n while($countr < 70)//random spread 50 holes on the wall\n {\n $random = range(0, 49);\n shuffle($random);\n $x = $random[0];\n $y = $random[1];\n if($x != 0&&$x != 49&&$y != 0&&$y != 49){\n $a[$y][$x] = 0;\n $countr++; \n }\n }\n \n $statistic = []; \n for($i = 0;$i <= 49;$i ++)\n {\n for($j = 0;$j <= 49;$j ++)\n {\n if($a[$i][$j] == 0){\n $cell = [$i,$j];\n $statistic[] = $cell;\n }\n }\n }\n \n for($i = 0;$i < count($statistic);$i ++)//make a holes spread like 'cross' pattern from 4 direction, which reach end or another road stop push down the wall\n {\n $tcell = $statistic[$i];\n $curri = $tcell[0];\n $currj = $tcell[1];\n \n //dig to up\n $curri--;\n while($curri >= 0){\n if($a[$curri][$currj] == 0)\n break;\n if($a[$curri][$currj - 1] == 0 || $a[$curri][$currj + 1] == 0){//left or right,\n $a[$curri][$currj] = 0;\n break;\n }\n $a[$curri][$currj] = 0;\n $curri--;\n }\n \n $curri = $tcell[0];\n $currj = $tcell[1];\n \n //dig to down\n $curri++;\n while($curri <= 49){\n if($a[$curri][$currj] == 0)\n break;\n if($a[$curri][$currj - 1] == 0 || $a[$curri][$currj + 1] == 0){\n $a[$curri][$currj] = 0;\n break;\n }\n $a[$curri][$currj] = 0; \n $curri++;\n }\n \n $curri = $tcell[0];\n $currj = $tcell[1];\n \n //dig to left\n $currj--;\n while($currj >= 0){\n if($a[$curri][$currj] == 0)\n break;\n if($a[$curri - 1][$currj] == 0 || $a[$curri + 1][$currj] == 0){\n $a[$curri][$currj] = 0;\n break;\n }\n $a[$curri][$currj] = 0; \n $currj--;\n }\n \n $curri = $tcell[0];\n $currj = $tcell[1];\n \n //dig to right\n $currj++;\n while($currj <= 49){\n if($a[$curri][$currj] == 0)\n break;\n if($a[$curri - 1][$currj] == 0 || $a[$curri + 1][$currj] == 0){\n $a[$curri][$currj] = 0;\n break;\n }\n $a[$curri][$currj] = 0;\n $currj++;\n }\n }\n return $a;\n }", "function parseWeather()\n\t{\n\t\tif(sizeof($this->racine->loc->dnam)>0)\n\t\t{\n\t\t$this->stationNom = $this->racine->loc->dnam;\n\t\t$this->stationLat = $this->racine->loc->lat;\n\t\t$this->stationLon = $this->racine->loc->lon;\n\t\t\n\t\t$this->dirVentDeg = $this->racine->cc->wind->d;\n\t\t$this->dirVentTxt = $this->racine->cc->wind->t;\n\t\t$this->vitVentKmh = $this->racine->cc->wind->s;\n\t\t$this->rafaleVent = $this->racine->cc->wind->gust;\n\t\t$this->vitVentUs = $this->racine->head->us;\n\t\t$this->vitVentMps = 1000*$this->vitVentKmh/3600.0;\n\t\t\n\t\t$this->pressionAt = $this->racine->cc->bar->r;\n\t\t$this->pressionUp = $this->racine->head->up;\n\t\t$evol = $this->racine->cc->bar->d;\n\t\tswitch($evol){\n\t\t\tcase 'rising':$this->pressEvol = \"en hausse\";break;\n\t\t\tdefault: $this->pressEvol = $evol;\n\t\t}\n\t\t\n\t\t$this->humidite = $this->racine->cc->hmid;\n\t\t$this->visibilite = $this->racine->cc->vis;\n\t\t\n\t\t$this->forceUVval = $this->racine->cc->uv->i;\n\t\t$this->forceUVtxt = $this->racine->cc->uv->t;\n\t\t\n\t\t$this->dewPoint = $this->racine->cc->dewp;\n\t\t\n\t\t$this->temperature = $this->racine->cc->tmp;\n\t\t\n\t\t$this->lastMesure = $this->racine->cc->lsup;\n\t\t\n\t\t$couvert = $this->racine->cc->t;\n\t\tswitch($couvert){\n\t\t\tcase 'Mostly Cloudy':$this->couverture = 'Nuages épars';break;\n\t\t\tcase 'Cloudy':$this->couverture = 'Quelques Nuages';break;\n\t\t\tdefault: $this->couverture = $couvert; break;\n\t\t}\n\t\t\n\t\t$phase = $this->racine->cc->moon->t;\n\t\tswitch($phase){\n\t\t\tcase 'Waxing Crescent':$this->phaseLune='1er croissant';break;\n\t\t\tdefault: $this->phaseLune=$phase;break;\n\t\t}\n\t }\n\t}", "function getMovesForMatch ()\r\n{\r\n\t//array of chess moves assuming a few things:\r\n\t/* \t- light/dark take turns \r\n\t\t- the moves are set up to take a piece and move it to another,\r\n\t\t\tso moving pawn e2 -> e4 would be stored as the first 2 elements in a multidimensional array.\r\n\t\t- there are many things that would need to be done to support algebraic chess notation, \r\n\t\t\tI didn't go into that here.\t\t\r\n\t\t\r\n\t*/\r\n\t$matchMoves = array();\r\n\t\r\n\t/*\r\n\t$matchMoves [0]['from'] = \"e2\";\r\n\t$matchMoves [0]['to'] \t= \"e4\";\r\n\t$matchMoves [1]['from'] = \"c7\";\r\n\t$matchMoves [1]['to']\t= \"c5\";\r\n\t\r\n\t$matchMoves [2]['from'] = \"g1\";\r\n\t$matchMoves\t[2]['to']\t= \"f3\";\r\n\t$matchMoves [3]['from'] = \"b8\";\r\n\t$matchMoves [3]['to']\t= \"c6\";\r\n\t\r\n\t//begin invalid off board examples\r\n\t$matchMoves [4]['from'] = \"c6\";\r\n\t$matchMoves [4]['to'] \t= \"c9\";\r\n\t\r\n\t$matchMoves [5]['from'] = \"c6\";\r\n\t$matchMoves [5]['to'] \t= \"c0\";\r\n\t\r\n\t$matchMoves [6]['from'] = \"c6\";\r\n\t$matchMoves [6]['to'] \t= \"z9\";\r\n\t*/\r\n\t//begin invalid examples for particular pieces\r\n\t\r\n\t//king =======================\r\n\t//bad move\r\n\t$matchMoves [7]['from'] = \"e8\";\r\n\t$matchMoves [7]['to'] \t= \"g7\";\r\n\t\r\n\t//bad move because pieces are in the way\r\n\t$matchMoves [8]['from'] = \"e8\";\r\n\t$matchMoves [8]['to'] \t= \"f7\";\r\n\t\r\n\t//rook =========================\r\n\t//bad move\r\n\t$matchMoves [9]['from'] = \"h8\";\r\n\t$matchMoves [9]['to'] \t= \"h5\";\r\n\t\r\n\t//move pawn first\r\n\t$matchMoves [10]['from'] = \"h7\";\r\n\t$matchMoves [10]['to'] \t = \"h6\";\t\r\n\t$matchMoves [11]['from'] = \"h6\";\r\n\t$matchMoves [11]['to'] \t = \"h5\";\r\n\t$matchMoves [12]['from'] = \"h5\";\r\n\t$matchMoves [12]['to'] \t = \"h4\";\r\n\t$matchMoves [13]['from'] = \"h8\";\r\n\t$matchMoves [13]['to'] \t = \"h5\";\r\n\t\r\n\t//bishop ========================\r\n\t//bad move\r\n\t$matchMoves [14]['from'] \t= \"c8\";\r\n\t$matchMoves [14]['to'] \t\t= \"b8\";\r\n\t\r\n\t//bad move because pieces are in the way\r\n\t$matchMoves [15]['from'] \t= \"c8\";\r\n\t$matchMoves [15]['to'] \t\t= \"c7\";\r\n\t\r\n\t//move pawn first\r\n\t$matchMoves [16]['from'] \t= \"b7\";\r\n\t$matchMoves [16]['to'] \t\t= \"b6\";\r\n\t$matchMoves [17]['from'] \t= \"c8\";\r\n\t$matchMoves [17]['to'] \t\t= \"a6\";\r\n\t\r\n\t//queen ==========================\r\n\t$matchMoves [18]['from'] \t= \"d8\";\r\n\t$matchMoves [18]['to'] \t\t= \"c8\";\r\n\t\r\n\t\t\r\n\t//setting up a check for between functions - rook\r\n\t$matchMoves [19]['from'] \t= \"f2\";\r\n\t$matchMoves [19]['to'] \t\t= \"f3\";\r\n\t$matchMoves [20]['from'] \t= \"f3\";\r\n\t$matchMoves [20]['to'] \t\t= \"f4\";\r\n\t$matchMoves [21]['from'] \t= \"f4\";\r\n\t$matchMoves [21]['to'] \t\t= \"f5\";\r\n\t\r\n\t$matchMoves [22]['from'] \t= \"h5\";\r\n\t$matchMoves [22]['to'] \t\t= \"e5\";\r\n\t\r\n\t//demonstrating capture move a pawn to capture\r\n\t$matchMoves [23]['from'] \t= \"f7\";\r\n\t$matchMoves [23]['to'] \t\t= \"f6\";\r\n\t$matchMoves [24]['from'] \t= \"g7\";\r\n\t$matchMoves [24]['to'] \t\t= \"g6\";\r\n\t$matchMoves [25]['from'] \t= \"f5\";\r\n\t$matchMoves [25]['to'] \t\t= \"g6\";\r\n\t\r\n\r\n\treturn ($matchMoves);\r\n}", "function getAccident($stepArray)\n{\n\n $queryRoad = null;\n\n// get the road name from stepArray and put into one string\n foreach ($stepArray as $step) {\n $road = $step->getRoadName();\n\n// $nRoad = \"ROAD_NAME%3D'\" . \"%25\" . $road . \"%25'%20or%20\";\n $nRoad = \"INITIAL_ROAD_NAME%3D'\".$road.\"'%20or%20ENDING_ROAD_NAME%3D'\".$road.\"'%20or%20\";\n\n $newRoad = str_replace(\" \", \"%20\", $nRoad);\n\n $queryRoad .= $newRoad;\n\n }\n //cut the end extra part\n $query = substr($queryRoad, 0, strlen($queryRoad) - 8);\n\n// form a url to get connect with DB\n\n\n $curlAccident = \"https://dsp-acer-believe.cloud.dreamfactory.com:443/rest/DigisoftDB/ACCIDENTS?filter=$query\";\n\n\n //use the getResult Function to get result\n $result = getResult($curlAccident);\n $array_result = json_decode($result);\n\n //get result into array\n $records = $array_result->record;\n $accident_array = array();\n\n foreach ($stepArray as $step) {\n\n foreach ($records as $record) {\n //if the roadname is equal description, execute\n if (stristr($record->INITIAL_ROAD_NAME, $step->getRoadName())||stristr($record->ENDING_ROAD_NAME, $step->getRoadName())) {\n //if the latitude and longtitude is in the middle of the startpoint and end point, put the accident into array\n if ($record->LATITUDE != min($step->getStartLocationLat(), $step->getEndLocationLat(), $record->LATITUDE) && $record->LATITUDE != max($step->getStartLocationLat(), $step->getEndLocationLat(), $record->LATITUDE) &&\n $record->LONGITUDE != min($step->getStartLocationLng(), $step->getEndLocationLng(), $record->LONGITUDE) && $record->LONGITUDE != max($step->getStartLocationLng(), $step->getEndLocationLng(), $record->LONGITUDE)\n ) {\n array_push($accident_array, $record);\n\n }\n\n }\n }\n }\n\n // $result = array(\"result\" => $accident_array);\n\n //return $result;\n return $accident_array;\n}", "public function get_cell_info() {\n $types = array();\n $cells = array();\n foreach ($this->get_unique_section('GridMap/Palette')->sections as $cell) {\n if (is_array($cell)) {\n $cell = end($cell);\n }\n /** @var \\Totengeist\\IVParser\\Section $cell */\n $path = explode('/', $cell->path);\n $name = $path[count($path)-1];\n // If the name is empty, the character is '/' and was exploded.\n if ($name == '') {\n $name = '/';\n }\n // If the cell is empty space, it contains no content.\n if (count($cell->content) == 0) {\n $types[$name] = array();\n } else {\n foreach ($cell->content as $key => $type) {\n if (in_array($key, static::$CELLS)) {\n $types[$name][] = $key;\n } elseif (in_array($key, static::$CELL_TYPES)) {\n $key = 'Storage ' . $type;\n $types[$name][] = $key;\n } else {\n $types[$name] = array();\n }\n }\n }\n }\n $typekeys = array_keys($types);\n $cell_width = strlen($typekeys[count($typekeys)-1])+1;\n\n foreach ($this->get_unique_section('GridMap/Cells')->content as $cellk => $cell) {\n for ($i = 0; $i < strlen($cell); $i += $cell_width) {\n $char = trim(substr($cell, $i, $cell_width));\n if (in_array($char, array_keys($types))) {\n foreach ($types[$char] as $type) {\n if (!isset($cells[$type])) {\n $cells[$type] = 1;\n } else {\n $cells[$type]++;\n }\n }\n }\n }\n }\n if (isset($cells['Habitation'])) {\n $cells['HabitationCapacity'] = (int) floor($cells['Habitation']/9);\n }\n\n return $cells;\n }", "private function findBigLMove()\n\t{\n\t\t$moves = array();\n\t\t\n\t\t// Top\n\t\ttry\n\t\t{\n\t\t\tif(\n\t\t\t\t$this->board[3][-1]->hasMarble &&\n\t\t\t\t$this->board[3][0]->hasMarble &&\n\t\t\t\t$this->board[3][1]->hasMarble\n\t\t\t)\n\t\t\t{\n\t\t\t\t// Left\n\t\t\t\tif(\t$this->board[2][-1]->hasMarble &&\n\t\t\t\t\t$this->board[1][-1]->hasMarble &&\n\t\t\t\t\t$this->board[0][-1]->hasMarble &&\n\t\t\t\t\t(\n\t\t\t\t\t\t($this->board[1][-2]->hasMarble && !$this->board[1][0]->hasMarble) ||\n\t\t\t\t\t\t(!$this->board[1][-2]->hasMarble && $this->board[1][0]->hasMarble)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\t$moves[0] = array();\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[1][-2]->hasMarble && !$this->board[1][0]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[0][] = array('right', 1, -2);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[0][] = array('left', 1, 0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$moves[0][] = array('down', 3, -1);\n\t\t\t\t\t$moves[0][] = array('left', 3, 1);\n\t\t\t\t\t$moves[0][] = array('up', 0, -1);\n\t\t\t\t\t$moves[0][] = array('down', 3, -1);\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[1][-2]->hasMarble && !$this->board[1][0]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[0][] = array('right', 1, -2);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[0][] = array('left', 1, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Right\n\t\t\t\tif(\t$this->board[2][1]->hasMarble &&\n\t\t\t\t\t$this->board[1][1]->hasMarble &&\n\t\t\t\t\t$this->board[0][1]->hasMarble &&\n\t\t\t\t\t(\n\t\t\t\t\t\t($this->board[1][2]->hasMarble && !$this->board[1][0]->hasMarble) ||\n\t\t\t\t\t\t(!$this->board[1][2]->hasMarble && $this->board[1][0]->hasMarble)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\t$moves[1] = array();\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[1][2]->hasMarble && !$this->board[1][0]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[1][] = array('left', 1, 2);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[1][] = array('right', 1, 0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$moves[1][] = array('down', 3, 1);\n\t\t\t\t\t$moves[1][] = array('right', 3, -1);\n\t\t\t\t\t$moves[1][] = array('up', 0, 1);\n\t\t\t\t\t$moves[1][] = array('down', 3, 1);\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[1][2]->hasMarble && !$this->board[1][0]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[1][] = array('left', 1, 2);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[1][] = array('right', 1, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e) {};\n\t\t\n\t\t\n\t\t// Down\n\t\ttry\n\t\t{\n\t\t\tif(\n\t\t\t\t$this->board[-3][-1]->hasMarble &&\n\t\t\t\t$this->board[-3][0]->hasMarble &&\n\t\t\t\t$this->board[-3][1]->hasMarble\n\t\t\t)\n\t\t\t{\n\t\t\t\t// Left\n\t\t\t\tif(\t$this->board[-2][-1]->hasMarble &&\n\t\t\t\t\t$this->board[-1][-1]->hasMarble &&\n\t\t\t\t\t$this->board[0][-1]->hasMarble &&\n\t\t\t\t\t(\n\t\t\t\t\t\t($this->board[-1][-2]->hasMarble && !$this->board[-1][0]->hasMarble) ||\n\t\t\t\t\t\t(!$this->board[-1][-2]->hasMarble && $this->board[-1][0]->hasMarble)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\t$moves[2] = array();\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[-1][-2]->hasMarble && !$this->board[-1][0]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[2][] = array('right', -1, -2);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[2][] = array('left', -1, 0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$moves[2][] = array('up', -3, -1);\n\t\t\t\t\t$moves[2][] = array('left', -3, 1);\n\t\t\t\t\t$moves[2][] = array('down', 0, -1);\n\t\t\t\t\t$moves[2][] = array('up', -3, -1);\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[-1][-2]->hasMarble && !$this->board[-1][0]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[2][] = array('right', -1, -2);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[2][] = array('left', -1, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Right\n\t\t\t\tif(\t$this->board[-2][1]->hasMarble &&\n\t\t\t\t\t$this->board[-1][1]->hasMarble &&\n\t\t\t\t\t$this->board[0][1]->hasMarble &&\n\t\t\t\t\t(\n\t\t\t\t\t\t($this->board[-1][2]->hasMarble && !$this->board[-1][0]->hasMarble) ||\n\t\t\t\t\t\t(!$this->board[-1][2]->hasMarble && $this->board[-1][0]->hasMarble)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\t$moves[3] = array();\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[-1][2]->hasMarble && !$this->board[-1][0]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[3][] = array('left', -1, 2);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[3][] = array('right', -1, 0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$moves[3][] = array('up', -3, 1);\n\t\t\t\t\t$moves[3][] = array('right', -3, -1);\n\t\t\t\t\t$moves[3][] = array('down', 0, 1);\n\t\t\t\t\t$moves[3][] = array('up', -3, 1);\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[-1][2]->hasMarble && !$this->board[-1][0]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[3][] = array('left', -1, 2);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[3][] = array('right', -1, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e) {};\n\t\t\n\t\t\n\t\t// Left\n\t\ttry\n\t\t{\n\t\t\tif(\n\t\t\t\t$this->board[1][-3]->hasMarble &&\n\t\t\t\t$this->board[0][-3]->hasMarble &&\n\t\t\t\t$this->board[-1][-3]->hasMarble\n\t\t\t)\n\t\t\t{\n\t\t\t\t// Up\n\t\t\t\tif(\t$this->board[1][-2]->hasMarble &&\n\t\t\t\t\t$this->board[1][-1]->hasMarble &&\n\t\t\t\t\t$this->board[1][0]->hasMarble &&\n\t\t\t\t\t(\n\t\t\t\t\t\t($this->board[2][-1]->hasMarble && !$this->board[0][-1]->hasMarble) ||\n\t\t\t\t\t\t(!$this->board[2][-1]->hasMarble && $this->board[0][-1]->hasMarble)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\t$moves[4] = array();\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[2][-1]->hasMarble && !$this->board[0][-1]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[4][] = array('down', 2, -1);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[4][] = array('up', 0, -1);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$moves[4][] = array('right', 1, -3);\n\t\t\t\t\t$moves[4][] = array('up', -1, -3);\n\t\t\t\t\t$moves[4][] = array('left', 1, 0);\n\t\t\t\t\t$moves[4][] = array('right', 1, -3);\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[2][-1]->hasMarble && !$this->board[0][-1]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[4][] = array('down', 2, -1);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[4][] = array('up', 0, -1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Down\n\t\t\t\tif(\t$this->board[-1][-2]->hasMarble &&\n\t\t\t\t\t$this->board[-1][-1]->hasMarble &&\n\t\t\t\t\t$this->board[-1][0]->hasMarble &&\n\t\t\t\t\t(\n\t\t\t\t\t\t($this->board[-2][-1]->hasMarble && !$this->board[0][-1]->hasMarble) ||\n\t\t\t\t\t\t(!$this->board[-2][-1]->hasMarble && $this->board[0][-1]->hasMarble)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\t$moves[5] = array();\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[-2][-1]->hasMarble && !$this->board[0][-1]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[5][] = array('up', -2, -1);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[5][] = array('down', 0, -1);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$moves[5][] = array('right', -1, -3);\n\t\t\t\t\t$moves[5][] = array('down', 1, -3);\n\t\t\t\t\t$moves[5][] = array('left', 1, 0);\n\t\t\t\t\t$moves[5][] = array('right', -1, -3);\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[-2][-1]->hasMarble && !$this->board[0][-1]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[5][] = array('up', 2, -1);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[5][] = array('down', 0, -1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e) {};\n\t\t\n\t\t\n\t\t// Right\n\t\ttry\n\t\t{\n\t\t\tif(\n\t\t\t\t$this->board[1][3]->hasMarble &&\n\t\t\t\t$this->board[0][3]->hasMarble &&\n\t\t\t\t$this->board[-1][3]->hasMarble\n\t\t\t)\n\t\t\t{\n\t\t\t\t// Up\n\t\t\t\tif(\t$this->board[1][2]->hasMarble &&\n\t\t\t\t\t$this->board[1][1]->hasMarble &&\n\t\t\t\t\t$this->board[1][0]->hasMarble &&\n\t\t\t\t\t(\n\t\t\t\t\t\t($this->board[2][1]->hasMarble && !$this->board[0][1]->hasMarble) ||\n\t\t\t\t\t\t(!$this->board[2][1]->hasMarble && $this->board[0][1]->hasMarble)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\t$moves[6] = array();\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[2][1]->hasMarble && !$this->board[0][1]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[6][] = array('down', 2, 1);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[6][] = array('up', 0, 1);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$moves[6][] = array('left', 1, 3);\n\t\t\t\t\t$moves[6][] = array('up', -1, 3);\n\t\t\t\t\t$moves[6][] = array('right', 1, 0);\n\t\t\t\t\t$moves[6][] = array('left', 1, 3);\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[2][1]->hasMarble && !$this->board[0][1]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[6][] = array('down', 2, 1);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[6][] = array('up', 0, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Down\n\t\t\t\tif(\t$this->board[-1][2]->hasMarble &&\n\t\t\t\t\t$this->board[-1][1]->hasMarble &&\n\t\t\t\t\t$this->board[-1][0]->hasMarble &&\n\t\t\t\t\t(\n\t\t\t\t\t\t($this->board[-2][1]->hasMarble && !$this->board[0][1]->hasMarble) ||\n\t\t\t\t\t\t(!$this->board[-2][1]->hasMarble && $this->board[0][1]->hasMarble)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\t$moves[7] = array();\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[-2][1]->hasMarble && !$this->board[0][1]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[7][] = array('up', -2, 1);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[7][] = array('down', 0, 1);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$moves[7][] = array('left', -1, 3);\n\t\t\t\t\t$moves[7][] = array('down', 1, 3);\n\t\t\t\t\t$moves[7][] = array('right', -1, 0);\n\t\t\t\t\t$moves[7][] = array('left', -1, 3);\n\t\t\t\t\t\n\t\t\t\t\tif($this->board[-2][1]->hasMarble && !$this->board[0][1]->hasMarble)\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[7][] = array('up', -2, 1);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$moves[7][] = array('down', 0, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e) {};\n\t\t\n\t\t\n\t\treturn $moves;\n\t}", "function origin_parse()\n\t\t{\n\t\t\t$text_data = $this->calendar->get_text_data();\n\t\t\t\n\t\t\t// loop through each text row and parse it into feilds\n\t\t\tforeach($text_data as $single_column)\n\t\t\t{\n\t\t\t\t$location = strpos($single_column->text_column, '\"');\n\t\t\t\t$single_column_part = substr($single_column->text_column, $location+1);\n\t\t\t\t$location_2 = strpos($single_column_part, '\"');\n\t\t\t\t$base_info = substr($single_column->text_column, $location+1, ($location_2 - ($location)));\n\t\t\t\t$single_column->text_column = substr($single_column->text_column, $location_2+2);\n\t\t\t\t\t\t\n\t\t\t\t$location = strpos($single_column->text_column, ',');\n\t\t\t\t$single_column_part = substr($single_column->text_column, $location+1);\n\t\t\t\t$location_2 = strpos($single_column_part, ',');\t\t\n\t\t\t\t$code = substr($single_column->text_column, $location+1, ($location_2 - ($location)));\n\t\t\t\t$single_column->text_column = substr($single_column->text_column, $location_2+1);\n\t\t\t\t\n\t\t\t\t$location = strpos($single_column->text_column, ',');\n\t\t\t\t$single_column_part = substr($single_column->text_column, $location+1);\n\t\t\t\t$location_2 = strpos($single_column_part, ',');\n\t\t\t\t$city = substr($single_column->text_column, $location+1, $location_2 - ($location));\n\t\t\t\t$single_column->text_column = substr($single_column->text_column, $location_2+1);\n\t\t\t\t\n\t\t\t\t$location = strpos($single_column->text_column, ',');\n\t\t\t\t$single_column_part = substr($single_column->text_column, $location+1);\n\t\t\t\t$location_2 = strpos($single_column_part, ',');\n\t\t\t\t$state_code = substr($single_column->text_column, $location+1, $location_2 - ($location));\n\t\t\t\t$single_column->text_column = substr($single_column->text_column, $location_2+1);\n\n\t\t\t\tif(strpos($single_column->text_column, ',y,') !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t$on_site = 1;\n\t\t\t\t\t$single_column->text_column = substr($single_column->text_column, 4);\n\t\t\t\t\t\n\t\t\t\t} else if(strpos($single_column->text_column, ',n') !== FALSE ) {\n\t\t\t\t\t\n\t\t\t\t\t$on_site = 0;\n\t\t\t\t\t$single_column->text_column = substr($single_column->text_column, 3);\n\t\t\t\t} else {\n\t\t\t\t\t$on_site = 1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$location = strpos($single_column->text_column, '\"');\n\t\t\t\t$single_column_part = substr($single_column->text_column, $location+1);\n\t\t\t\t$location_2 = strpos($single_column_part, '\"');\n\t\t\t\t$address = substr($single_column->text_column, $location+1, $location_2 - ($location));\n\t\t\t\t$single_column->text_column = substr($single_column->text_column, $location_2+3);\n\t\t\t\t\n\t\t\t\t$location_2 = strpos($single_column->text_column, ',\"');\n\t\t\t\t$phone_number = substr($single_column->text_column, 0, $location_2);\t\t\n\t\t\t\t$single_column->text_column = substr($single_column->text_column, $location_2);\n\t\t\t\t\n\t\t\t\t$location = strpos($single_column->text_column, ',\"');\n\t\t\t\t$single_column_part = substr($single_column->text_column, $location+2);\n\t\t\t\t$location_2 = strpos($single_column_part, '\"');\n\t\t\t\t$proper_data = substr($single_column->text_column, $location+2, $location_2 - ($location));\n\t\t\t\t$single_column->text_column = substr($single_column->text_column, $location_2+3);\n\t\t\t\t\t\t\t\t\n\t\t\t\t$location = strpos($single_column->text_column, ',');\n\t\t\t\t$single_column_part = substr($single_column->text_column, $location+1);\n\t\t\t\t$location_2 = strpos($single_column_part, ',');\n\t\t\t\t$start_time = substr($single_column->text_column, $location+1, $location_2 - ($location));\n\t\t\t\t$single_column->text_column = substr($single_column->text_column, $location_2+1);\n\n\t\t\t\t$location = strpos($single_column->text_column, ',');\n\t\t\t\t$single_column_part = substr($single_column->text_column, $location+1);\n\t\t\t\t$location_2 = strpos($single_column_part, ',');\n\t\t\t\t$end_time = substr($single_column->text_column, $location+1, $location_2 - ($location));\n\t\t\t\t$single_column->text_column = substr($single_column->text_column, $location_2+1);\n\t\t\t\t\n\t\t\t\t$location = strpos($single_column->text_column, ',');\n\t\t\t\t$single_column_part = substr($single_column->text_column, $location+1);\n\t\t\t\t$location_2 = strpos($single_column_part, ',');\n\t\t\t\t$course_code = substr($single_column->text_column, $location+1, $location_2 - ($location));\n\t\t\t\t$single_column->text_column = substr($single_column->text_column, $location_2+1);\n\t\t\t\t\n\t\t\t\t$location = strpos($single_column->text_column, ',');\n\t\t\t\t$single_column_part = substr($single_column->text_column, $location+1);\n\t\t\t\t$location_2 = strpos($single_column_part, ',');\n\t\t\t\t$instructor = substr($single_column->text_column, $location+1, $location_2 - ($location));\n\t\t\t\t$single_column->text_column = substr($single_column->text_column, $location_2+1);\n\t\t\t\t\n\t\t\t\t$location = strpos($single_column->text_column, ',');\n\t\t\t\t$single_column_part = substr($single_column->text_column, $location+1);\n\t\t\t\t$location_2 = strpos($single_column_part, ',');\t\t\t\t\n\t\t\t\t$course_cost = substr($single_column->text_column, $location+1, $location_2 - ($location));\n\t\t\t\t$single_column->text_column = substr($single_column->text_column, $location_2+1);\n\t\t\t\t\n\t\t\t\t$location = strpos($single_column->text_column, ',');\n\t\t\t\t$single_column_part = substr($single_column->text_column, $location+1);\n\t\t\t\t$location_2 = strpos($single_column_part, ',');\n\t\t\t\t$random_zero = substr($single_column->text_column, $location+1, $location_2 - ($location));\n\t\t\t\t$single_column->text_column = substr($single_column->text_column, $location_2+1);\n\t\t\t\t\t\t\t\n\t\t\t\t$description = substr($single_column->text_column, 2, (strlen($single_column->text_column) - 2));\n\t\n\t\t\t\t// setup the structure of a single new event parsed out as columns that have meaning\n\t\t\t\t$constructed_cal_row = array(\n\t\t\t\t\t'base_info' \t\t=> $base_info,\n\t\t\t\t\t'code'\t\t\t\t=> $code,\n\t\t\t\t\t'city' \t\t\t\t=> $city,\n\t\t\t\t\t'state_code'\t\t=> $state_code,\n\t\t\t\t\t'on_site'\t\t\t=> $on_site,\n\t\t\t\t\t'address'\t\t\t=> $address,\n\t\t\t\t\t'phone_number'\t\t=> $phone_number,\n\t\t\t\t\t'proper_data'\t\t=> $proper_data,\n\t\t\t\t\t'start_time'\t\t=> $start_time,\n\t\t\t\t\t'end_time'\t\t\t=> $end_time,\n\t\t\t\t\t'course_code'\t\t=> $course_code,\n\t\t\t\t\t'instructor'\t\t=> $instructor,\n\t\t\t\t\t'course_cost'\t\t=> $course_cost,\n\t\t\t\t\t'random_zero'\t\t=> $random_zero,\n\t\t\t\t\t'decsription'\t\t=> $description\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\t// add that row to something that we can use\n\t\t\t\t$this->calendar->insert_calendar($constructed_cal_row);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$this->test('Done!');\n\t\t}", "function allot()\n{\n\t$dist = rand(5,10);\n\t$dir = rand(0,7);\n\t\n\t$conn = connect();\n\t$query=\"SELECT row_tail,col_tail FROM map_res WHERE faction=\".$_SESSION[\"faction\"].\";\";\n\t$op = mysqli_query($conn,$query);\n\tif (mysqli_num_rows($op) != 1)\n\t{\n\t\t$x = \"\";\n\t\t$y = \"\";\n\t\t\n\t\tif ($_SESSION[\"faction\"] === \"1\")\n\t\t{\n\t\t\t$x = 25;\n\t\t\t$y = 50;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$x = 75;\n\t\t\t$y = 50;\n\t\t}\n\t\t\n\t\t$query=\"INSERT INTO map_res (faction,row_tail,col_tail) VALUES (\".$_SESSION[\"faction\"].\",\".$x.\",\".$y.\");\";\n\t\t$op=mysqli_query($conn,$query);\n\t\t//alert($query);\n\t\t$res[\"row\"] = $x;\n\t\t$res[\"col\"] = $y;\n\t\t//alert(var_dump($res));\n\t\treturn($res);\n\t}\n\t$op = mysqli_fetch_assoc($op);\n\t\n\tswitch($dir)\n\t{\n\t\tcase 0: //up\n\t\t\t$res_row = $op[\"row_tail\"] - $dist;\n\t\t\t$res_col = $op[\"col_tail\"];\n\t\tbreak;\n\t\t\n\t\tcase 1: //up-right\n\t\t\t$res_row = $op[\"row_tail\"] - floor($dist/1.4142);\n\t\t\t$res_col = $op[\"col_tail\"] + floor($dist/1.4142);\n\t\tbreak;\n\t\t\n\t\tcase 2: //right\n\t\t\t$res_row = $op[\"row_tail\"];\n\t\t\t$res_col = $op[\"col_tail\"] + floor($dist/1.4142);\n\t\tbreak;\n\t\t\n\t\tcase 3: //down-right\n\t\t\t$res_row = $op[\"row_tail\"] + floor($dist/1.4142);\n\t\t\t$res_col = $op[\"col_tail\"] + floor($dist/1.4142);\n\t\tbreak;\n\t\t\n\t\tcase 4: //down\n\t\t\t$res_row = $op[\"row_tail\"] + $dist;\n\t\t\t$res_col = $op[\"col_tail\"];\n\t\tbreak;\n\t\t\n\t\tcase 5: //down-left\n\t\t\t$res_row = $op[\"row_tail\"] + floor($dist/1.4142);\n\t\t\t$res_col = $op[\"col_tail\"] - floor($dist/1.4142);\n\t\tbreak;\n\t\t\n\t\tcase 6: //left\n\t\t\t$res_row = $op[\"row_tail\"];\n\t\t\t$res_col = $op[\"col_tail\"] - floor($dist/1.4142);\n\t\tbreak;\n\t\t\n\t\tcase 7: //up-left\n\t\t\t\n\t\t\t$res_row = $op[\"row_tail\"] + floor($dist/1.4142);\n\t\t\t$res_col = $op[\"col_tail\"] - floor($dist/1.4142);\n\t\tbreak;\n\t}\n\t\n\t$res=array();\n\t\n\tif ($res_row > 99 || $res_row < 0 || $res_col > 99 || $res_col < 0 || getSlot($res_row,$res_col)[\"occupied\"] !== \"0\" || getSlot($res_row,$res_col)[\"special\"] === \"3\" || getSlot($res_row,$res_col)[\"special\"] === \"4\")\n\t{\n\t\t//alert(\"$res_row , $res_col\");\n\t\treturn(false);\n\t}\n\telse\n\t{\n\t\t$res[\"row\"] = $res_row;\n\t\t$res[\"col\"] = $res_col;\n\t\t//alert(var_dump($res));\n\t\treturn($res);\n\t}\n\t\n\t//return($res);\n}", "function getAllDIDEndpoints() {\n\n $sql = \"SELECT\n trunk.id_trunk AS trunk_id,\n trunk.name AS trunk_name,\n dids.did_number AS did_number,\n dids.id_did AS id_did,\n users.user_id,\n CONCAT(users.first_name, ' ', users.last_name) AS user_name\n FROM\n ctn_dids_temp3 dids\n INNER JOIN ctn_trunks trunk ON dids.id_trunk = trunk.id_trunk\n INNER JOIN ctn_users_ctn_dids users_to_dids ON dids.id_did = users_to_dids.id_did\n INNER JOIN ctn_users users ON users.user_id = users_to_dids.user_id\";\n\n return $this->doQueryArray($sql);\n\n }", "public function getD() {}", "function analyze_nucleotide($row, $i)\n {\n $props = get_object_vars($row);\n\n $extreme_case = false;\n foreach ($props as $key => $value) {\n\n if (array_key_exists($key,$this->low_is_good)) {\n if ($value > $this->avg[$key]) {\n $extreme_case = true;\n break;\n }\n } else {\n if ($value < $this->avg[$key]) {\n $extreme_case = true;\n break;\n }\n\n }\n\n\n // high b values are bad, so we highlight them\n// $pos = strpos($key,'iso');\n// if ( $pos != false and $value > $this->avg[$key] ) {\n// $extreme_case = true;\n// break;\n// }\n// if ( array_key_exists($key,$this->avg) and $value < $this->avg[$key] ) {\n// $extreme_case = true;\n// break;\n// }\n }\n\n if ($extreme_case == true) {\n return array(\n $i,\n $this->make_checkbox($row->loop_id,$row->nt_ids),\n '<a class=\"pdb\">' . substr($row->nt_id,0,4) . '</a> ' . substr($row->nt_id,10),\n anchor_popup(site_url(array('motif/view/0.5',$row->motif_id)),$row->motif_id,array('width'=>'1000')),\n $this->make_label($row->sfcheck_correlation,'sfcheck_correlation'),\n $this->make_label($row->sfcheck_correlation_side_chain,'sfcheck_correlation_side_chain'),\n $this->make_label($row->sfcheck_real_space_R,'sfcheck_real_space_R'),\n $this->make_label($row->sfcheck_real_space_R_side_chain,'sfcheck_real_space_R_side_chain'),\n $this->make_label($row->sfcheck_connect,'sfcheck_connect'),\n $this->make_label($row->sfcheck_shift,'sfcheck_shift'),\n $this->make_label($row->sfcheck_shift_side_chain,'sfcheck_shift_side_chain'),\n $this->make_label($row->sfcheck_density_index_main_chain,'sfcheck_density_index_main_chain'),\n $this->make_label($row->sfcheck_density_index_side_chain,'sfcheck_density_index_side_chain'),\n $this->make_label($row->sfcheck_B_iso_main_chain,'sfcheck_B_iso_main_chain'),\n $this->make_label($row->sfcheck_B_iso_side_chain,'sfcheck_B_iso_side_chain'),\n $this->make_label($row->mapman_correlation,'mapman_correlation'),\n $this->make_label($row->mapman_real_space_R,'mapman_real_space_R'),\n $this->make_label($row->mapman_Biso_mean,'mapman_Biso_mean'),\n $this->make_label($row->mapman_occupancy_mean,'mapman_occupancy_mean')\n );\n } else {\n return array();\n }\n\n }", "function solve_one(string $input) : string\n{\n\n $seats = array_map('str_split', xplode_input($input));\n $limit = 4;\n while(true) {\n [$seats, $hasChanged, $occupied] = walk_matrix($seats, $limit, 'occupied_neighbors');\n if (!$hasChanged) {\n return sprintf(\"Occupied seats: %d\\n\", $occupied);\n }\n }\n}", "public function constructAllUp(){\n $this->freeSeating = true;\n $this->notSquared = false;\n $this->nbRows = 0;\n $this->nbSeatsPerRow = 0;\n $this->rowLabel = 1;\n $this->seatLabel = 1;\n }", "function getDemographicsDrillDownTableLocation($params)\n\t{\n\t\t$response = array();\n\t\t$company_id = !empty($params['companyId']) ? $params['companyId'] : (!empty($params['companyid']) ? $params['companyid'] : '');\n\t\t$campaign_ids = !empty($params['campaignId']) ? $params['campaignId'] : (!empty($params['campaignid']) ? $params['campaignid'] : '');\n\t\t\n\t\t$sort = !empty($params['sort']) ? $params['sort'] : '';\n\t\t$sort_order = !empty($params['sortOrder']) ? $params['sortOrder'] : (!empty($params['sortorder']) ? $params['sortorder'] : 'asc');\n\t\t\n\t\tif(empty($campaign_ids))\n\t\t{\n\t\t\t\n\t\t\t$arr_campaign_ids = array(-1);\n\t\t\t$rs = Database::mysqli_query(\"select id as campaign_id from items where manufacturer_id = '$company_id'\");\n\t\t\twhile($row = Database::mysqli_fetch_assoc($rs))\n\t\t\t\t$arr_campaign_ids[] = $row['campaign_id'];\n\t\t\t$campaign_ids = implode(',', $arr_campaign_ids);\n\t\t\t\n\t\t\t$where_clause_views = \" and iv.company_id = '$company_id'\";\n\t\t\t$where_clause_shares = \" and r.company_id = '$company_id'\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$where_clause_views = \" and iv.items_id in (\" . $campaign_ids. \")\";\n\t\t\t$where_clause_shares = \" and r.item_shared in (\" . $campaign_ids. \")\";\n\t\t}\n\t\t$where_clause_claims = \" and ui.item_id in (\" . $campaign_ids. \")\";\n\t\t\n\t\t\n\t\t// SQL to find the number of entrants\n\t\t\n\t\t$sql = \"select dma.dma_region, count(t2.user_id) as num_users from\n\t\t(\n\t\t\tselect distinct(t.user_id) as user_id from\n\t\t\t(select iv.user_id from items_views iv where iv.user_id > 0 $where_clause_views\n\t\t\tunion all \n\t\t\tselect ui.user_id from user_items ui where ui.user_id > 0 $where_clause_claims \n\t\t\tunion all \n\t\t\tselect r.user_id from referrals r where r.user_id > 0 $where_clause_shares\n\t\t\t) as t\n\t\t) as t2\n\t\tinner join users u on t2.user_id = u.id\n\t\tinner join fb_locations_dma_regions fb_dma on u.facebook_location_id = fb_dma.fb_location_id \n\t\tinner join cities_dma_regions dma on fb_dma.city_dma_region_id = dma.id\n\t\twhere u.is_test_account != 1\n\t\t group by dma.dma_region \";\n\t\t // error_log(\"SQL for finding num users in CSAPI::getDemographicsDrillDownTableLocation(): \" . $sql);\n\t\t$arr_location_users = array();\n\t\t$total_num_users = 0;\n\t\t$response['data'] = array(); // Data\n\t\t$rs = Database::mysqli_query($sql);\n\t\twhile($row = Database::mysqli_fetch_assoc($rs))\n\t\t{\n\t\t\t$dma_region = $row['dma_region'];\n\t\t\t$num_users = $row['num_users'] + 0;\n\t\t\t$arr_location_users[$dma_region] = $num_users;\n\t\t\t$total_num_users += $num_users;\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t\t$sql =\t\"select concat(`city`, ', ', `state_code`) as dma_region, sum(views) as views, sum(claims) as claims, sum(redeems) as redeems, sum(shares) as shares, sum(referrals) as referrals from\n\t\t(select dma.dma_region, dma.city, dma.state_code, count(iv.id) as views, 0 as claims, 0 as redeems, 0 as shares, 0 as referrals from items_views iv inner join users u on iv.user_id = u.id inner join fb_locations_dma_regions fb_dma on u.facebook_location_id = fb_dma.fb_location_id inner join cities_dma_regions dma on fb_dma.city_dma_region_id = dma.id where iv.user_id > 0 and u.is_test_account != 1 $where_clause_views group by dma.dma_region \n\t\tunion all \n\t\tselect dma.dma_region, dma.city, dma.state_code, 0 as views, count(ui.id) as claims, 0 as redeems, 0 as shares, 0 as referrals from user_items ui inner join users u on ui.user_id = u.id inner join fb_locations_dma_regions fb_dma on u.facebook_location_id = fb_dma.fb_location_id inner join cities_dma_regions dma on fb_dma.city_dma_region_id = dma.id where ui.date_claimed is not null and ui.user_id > 0 and u.is_test_account != 1 $where_clause_claims group by dma.dma_region\n\t\tunion all\n\t\tselect dma.dma_region, dma.city, dma.state_code, 0 as views, 0 as claims, count(ui.id) as redeems, 0 as shares, 0 as referrals from user_items ui inner join users u on ui.user_id = u.id inner join fb_locations_dma_regions fb_dma on u.facebook_location_id = fb_dma.fb_location_id inner join cities_dma_regions dma on fb_dma.city_dma_region_id = dma.id where ui.date_redeemed is not null and ui.user_id > 0 and u.is_test_account != 1 $where_clause_claims group by dma.dma_region\n\t\tunion all\n\t\tselect dma.dma_region, dma.city, dma.state_code, 0 as views, 0 as claims, 0 as redeems, count(r.id) as shares, 0 as referrals from referrals r inner join users u on r.user_id = u.id inner join fb_locations_dma_regions fb_dma on u.facebook_location_id = fb_dma.fb_location_id inner join cities_dma_regions dma on fb_dma.city_dma_region_id = dma.id where r.user_id > 0 and u.is_test_account != 1 $where_clause_shares group by dma.dma_region \n\t\tunion all \n\t\tselect dma.dma_region, dma.city, dma.state_code, 0 as views, 0 as claims, 0 as redeems, 0 as shares, count(ui.id) as referrals from user_items ui inner join users u on ui.user_id = u.id inner join fb_locations_dma_regions fb_dma on u.facebook_location_id = fb_dma.fb_location_id inner join cities_dma_regions dma on fb_dma.city_dma_region_id = dma.id where ui.referral_id is not null and ui.date_claimed is not null and ui.user_id > 0 and u.is_test_account != 1 $where_clause_claims group by dma.dma_region) as t\n\t\t group by dma_region\";\n\t\t// error_log(\"SQL in CSAPI::getDemographicsDrillDownTableLocation() : \" . $sql);\n\t\t\n\t\t$rs = Database::mysqli_query($sql);\n\t\t$dma_cities = array();\n\t\t\n\t\t$total_views\t= 0;\n\t\t$total_claims\t= 0;\n\t\t$total_redeems\t= 0;\n\t\t$total_shares\t= 0;\n\t\t$total_referrals = 0;\n\n\t\t\n\t\twhile($row = Database::mysqli_fetch_assoc($rs))\n\t\t{\n\t\t\t// $activity_count = $row['activity_count'] + 0;\n\t\t\t// $activity_type = $row['activity_type'];\n\t\t\t$dma_region = $row['dma_region'];\n\t\t\t// if(!isset($response[$age_range_name][$gender][$activity_type]))\n\t\t\t//\t$response[$age_range_name][$gender][$activity_type] = 0;\n\t\t\t//\t$response[$age_range_name][$gender][$activity_type] += $activity_count;\n\t\t\t\n\t\t\t$users = isset($arr_location_users[$dma_region]) ? $arr_location_users[$dma_region] : 0;\n\t\t\t$views = $row['views'] + 0;\n\t\t\t$claims = $row['claims'] + 0;\n\t\t\t$redeems = $row['redeems'] + 0;\n\t\t\t$shares = $row['shares'] + 0;\n\t\t\t$referrals = $row['referrals'] + 0;\n\t\t\t\n\t\t\t$total_views\t+= $views;\n\t\t\t$total_claims\t+= $claims;\n\t\t\t$total_redeems\t+= $redeems;\n\t\t\t$total_shares\t+= $shares;\n\t\t\t$total_referrals += $referrals;\n\t\t\t\n\t\t\t$tmp_data = array(\n\t\t\t\t'dma_region' => $dma_region,\n\t\t\t\t'users' => $users,\n\t\t\t\t'views' => $views,\n\t\t\t\t'claims' => $claims,\n\t\t\t\t'redeems' => $redeems,\n\t\t\t\t'shares' => $shares,\n\t\t\t\t'referrals' => $referrals,\n\t\t\t);\n\t\t\t\n\t\t\t$response['data'][] = $tmp_data;\n\t\t\t\n\t\t}\n\t\t\n\t\tforeach($response['data'] as $i => $tmp_data) \n\t\t{\n\t\t\t$response['data'][$i]['percent_users'] = !empty($total_num_users) ? round(($response['data'][$i]['users'] * 100) / $total_num_users, 1) : 0;\n\t\t\t$response['data'][$i]['percent_views'] = !empty($total_views) ? round(($response['data'][$i]['views'] * 100) / $total_views, 1) : 0;\n\t\t\t$response['data'][$i]['percent_claims'] = !empty($total_claims) ? round(($response['data'][$i]['claims'] * 100) / $total_claims, 1) : 0;\n\t\t\t$response['data'][$i]['percent_redeems'] = !empty($total_redeems) ? round(($response['data'][$i]['redeems'] * 100) / $total_redeems, 1) : 0;\n\t\t\t$response['data'][$i]['percent_shares'] = !empty($total_shares) ? round(($response['data'][$i]['shares'] * 100) / $total_shares, 1) : 0;\n\t\t\t$response['data'][$i]['percent_referrals'] = !empty($total_referrals) ? round(($response['data'][$i]['referrals'] * 100) / $total_referrals, 1) : 0;\n\t\t}\n\t\t\n\t\tif(!empty($sort))\n\t\t\tCommon::multiSortArrayByColumn($response['data'], $sort, $sort_order);\n\t\t\n\t\t$response['categories'] = array(\n\t\t\t\t'dma_region',\n\t\t\t\t'users',\n\t\t\t\t'views',\n\t\t\t\t'claims',\n\t\t\t\t'redeems',\n\t\t\t\t'shares',\n\t\t\t\t'referrals',\n\t\t\t\t'percent_users',\n\t\t\t\t'percent_views',\n\t\t\t\t'percent_claims',\n\t\t\t\t'percent_redeems',\n\t\t\t\t'percent_shares',\n\t\t\t\t'percent_referrals'\n\t\t);\n\t\t\n\t\t$response['settings'] = $params;\n\t\t/*\n\t\t$html = '<table role=\"grid\" style=\"width: 100%; margin-bottom: 0px;\">\n\t\t <thead>\n\t\t <tr>\n\t\t <th width=\"20%\">Market Area</th>\n\t\t <th width=\"10%\">Country</th>\n\t\t <th width=\"20%\">City</th>\n\t\t <th width=\"10%\">Users</th>\n\t\t <th width=\"10%\">Views</th>\n\t\t <th width=\"10%\">Claims</th>\n\t\t <th width=\"10%\">Shares</th>\n\t\t <th width=\"10%\">Redeems</th>\n\t \t</tr>\n\t\t </thead>\n\t\t <tbody>';\n\t\tforeach($response as $dma_region => $data)\n\t\t{\n\t\t\t$country = 'US'; // Hard coded for now\n\t\t\t$views =\t!empty($data['view']) ? $data['view'] : 0;\n\t\t\t$claims =\t!empty($data['claim']) ? $data['claim'] : 0;\n\t\t\t$redeems =\t!empty($data['redeem']) ? $data['redeem'] : 0;\n\t\t\t$shares =\t!empty($data['share']) ? $data['share'] : 0;\n\t\t\t$referrals = !empty($data['referral']) ? $data['referral'] : 0;\n\t\t\t\n\t\t\t$users = isset($arr_location_users[$dma_region]) ? $arr_location_users[$dma_region] : 0;\n\t\t\t$percent_users = round(($users * 100) / $total_num_users, 1);\n\t\t\t$percent_views = round(($views * 100) / $total_num_users, 1);\n\t\t\t$percent_claims = round(($claims * 100) / $total_num_users, 1);\n\t\t\t$percent_redeems = round(($redeems * 100) / $total_num_users, 1);\n\t\t\t$percent_shares = round(($shares * 100) / $total_num_users, 1);\n\t\t\t$percent_referrals = round(($referrals * 100) / $total_num_users, 1);\n\t\t\t\n\t\t\t$city = isset($dma_cities[$dma_region]) ? $dma_cities[$dma_region] : '';\n\n\t\t\t$html .= \"<tr>\n\t\t <td>$dma_region</td>\n\t\t <td>$country</td>\n\t\t <td>$city</td>\n\t\t <td>$users ($percent_users%)</td>\n\t\t <td>$views ($percent_views%)</td>\n\t\t <td>$claims ($percent_claims%)</td>\n\t\t <td>$shares ($percent_shares%)</td>\n\t\t <td>$redeems ($percent_redeems%)</td>\n\t\t </tr>\";\n\t\t}\n\t\t$html .= '</tbody>\n\t\t</table>';\n\t\t$response['html']=$html;\n\t\t*/\n\t\tDatabase::mysqli_free_result($rs);\n\n\t\treturn $response;\n\t}", "public function getDataScan()\n {\n return $this->data_scan;\n }", "public function onRead() {\n\t\tstart:\n\t\tif ($this->type === 'udp') {\n\t\t\t$this->onUdpPacket($this->read($this->highMark));\n\t\t}\n\t\tif ($this->state === self::STATE_ROOT) {\n\t\t\tif (false === ($hdr = $this->readExact(2))) {\n\t\t\t\treturn; // not enough data\n\t\t\t}\n\t\t\t$this->pctSize = Binary::bytes2int($hdr, true);\n\t\t\t$this->setWatermark($this->pctSize);\n\t\t\t$this->state = self::STATE_PACKET;\n\t\t}\n\t\tif ($this->state === self::STATE_PACKET) {\n\t\t\tif (false === ($pct = $this->readExact($this->pctSize))) {\n\t\t\t\treturn; // not enough data\n\t\t\t}\n\t\t\t$this->state = self::STATE_ROOT;\n\t\t\t$this->setWatermark(2);\n\t\t\t$this->onUdpPacket($pct);\n\t\t}\n\t\tgoto start;\n\t}", "private function tree_getRendered()\n {\n // Prompt the expired time to devlog\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'begin' );\n\n $arr_result = array();\n\n static $firstCallDrsTreeview = true;\n\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n // Get TS filter configuration\n //$conf_name = $this->conf_view['filter.'][$table . '.'][$field];\n $conf_array = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ];\n\n\n\n // Add first item\n // SWITCH display first item\n switch ( $conf_array[ 'first_item' ] )\n {\n case( true ):\n // Set hits\n $hitsField = $this->sql_filterFields[ $this->curr_tableField ][ 'hits' ];\n $sum_hits = ( int ) $this->hits_sum[ $this->curr_tableField ];\n $this->pObj->cObj->data[ $hitsField ] = $sum_hits;\n // Set hits\n // Render uid and value of the first item\n $first_item_uid = $conf_array[ 'first_item.' ][ 'option_value' ];\n $tsValue = $conf_array[ 'first_item.' ][ 'cObject' ];\n $tsConf = $conf_array[ 'first_item.' ][ 'cObject.' ];\n $first_item_value = $this->pObj->cObj->cObjGetSingle( $tsValue, $tsConf );\n // Render uid and value of the first item\n $tmpOneDim = array( 'uid' => $first_item_uid ) +\n array( 'value' => $first_item_value );\n if ( !empty( $this->tmpOneDim ) )\n {\n $tmpOneDim = $tmpOneDim +\n $this->tmpOneDim;\n }\n // Render uid and value of the first item\n break;\n case( false ):\n default:\n $tmpOneDim = $this->tmpOneDim;\n break;\n }\n // SWITCH display first item\n // Add first item\n // Move one dimensional array to an iterator\n $tmpArray = $this->pObj->objTyposcript->oneDim_to_tree( $tmpOneDim );\n $rcrsArrIter = new RecursiveArrayIterator( $tmpArray );\n $iterator = new RecursiveIteratorIterator( $rcrsArrIter );\n // Move one dimensional array to an iterator\n // HTML id\n $cObj_name = $conf_array[ 'treeview.' ][ 'html_id' ];\n $cObj_conf = $conf_array[ 'treeview.' ][ 'html_id.' ];\n $html_id = $this->pObj->cObj->cObjGetSingle( $cObj_name, $cObj_conf );\n // HTML id\n //////////////////////////////////////////////////////\n //\n // Loop values\n // Initial depth\n // SWITCH display first item\n switch ( $conf_array[ 'first_item' ] )\n {\n case( true ):\n $last_depth = -1;\n break;\n case( false ):\n default:\n $last_depth = 0;\n break;\n }\n // SWITCH display first item\n // Initial depth\n // LOOP\n $bool_firstLoop = true;\n $loops = 0;\n foreach ( $iterator as $key => $value )\n {\n // CONTINUE $key is the uid. Save the uid.\n if ( $key == 'uid' )\n {\n $curr_uid = $value;\n continue;\n }\n // CONTINUE $key is the uid. Save the uid.\n\n if ( $bool_firstLoop )\n {\n $first_item_uid = $curr_uid;\n }\n\n\n // CONTINUE ERROR $key isn't value\n if ( $key != 'value' )\n {\n echo 'ERROR: key != value.' . PHP_EOL . __METHOD__ . ' (Line: ' . __LINE__ . ')' . PHP_EOL;\n continue;\n }\n // CONTINUE ERROR $key isn't value\n // Render the value\n//$this->pObj->dev_var_dump( $value )\n $item = $this->get_filterItem( $curr_uid, $value );\n //$item = '<a href=\"leglis-bid/?tx_browser_pi1%5Btx_leglisbasis_sector.brc_text%5D=1657&cHash=579a339049d1ca24815eadf0cd53371d\">\n // Baugewerbe (132)\n // </a>';\n//$this->pObj->dev_var_dump( $item );\n // CONTINUE: item is empty\n if ( empty( $item ) )\n {\n // DRS\n if ( $firstCallDrsTreeview && ( $this->pObj->b_drs_filter || $this->pObj->b_drs_cObjData ) )\n {\n $prompt = 'No value: [' . $key . '] won\\'t displayed! Be aware: this log won\\'t displayed never again.';\n t3lib_div :: devlog( '[WARN/FILTER] ' . $prompt, $this->pObj->extKey, 2 );\n $prompt = 'Maybe TS configuration for [' . $key . '] is: display it only with a hit at least.';\n t3lib_div :: devlog( '[INFO/FILTER] ' . $prompt, $this->pObj->extKey, 0 );\n $prompt = 'There is a workaround: please take a look in the manual for ' . $this->pObj->prefixId . '.flag_treeview.';\n t3lib_div :: devlog( '[HELP/FILTER] ' . $prompt, $this->pObj->extKey, 1 );\n $firstCallDrsTreeview = false;\n }\n // DRS\n continue;\n }\n // CONTINUE: item is empty\n\n $loops++;\n\n // Vars\n $curr_depth = $iterator->getDepth();\n $indent = str_repeat( ' ', ( $iterator->getDepth() + 1 ) );\n // Vars\n // Render the start tag\n switch ( true )\n {\n case( $curr_depth > $last_depth ):\n // Start of sublevel\n $delta_depth = $curr_depth - $last_depth;\n $startTag = PHP_EOL .\n str_repeat\n (\n $this->htmlSpaceLeft . $indent . '<ul id=\"' . $html_id . '_ul_' . $curr_uid . '\">' . PHP_EOL .\n $this->htmlSpaceLeft . $indent . ' <li id=\"' . $html_id . '_li_' . $curr_uid . '\">', $delta_depth\n );\n $last_depth = $curr_depth;\n break;\n // Start of sublevel\n case( $curr_depth < $last_depth ):\n // Stop of sublevel\n $delta_depth = $last_depth - $curr_depth;\n $startTag = '</li>' . PHP_EOL .\n str_repeat\n (\n $this->htmlSpaceLeft . $indent . ' </ul>' . PHP_EOL .\n $this->htmlSpaceLeft . $indent . '</li>', $delta_depth\n ) .\n PHP_EOL .\n $this->htmlSpaceLeft . $indent . '<li id=\"' . $html_id . '_li_' . $curr_uid . '\">';\n $last_depth = $curr_depth;\n break;\n // Stop of sublevel\n default:\n $startTag = '</li>' . PHP_EOL .\n $this->htmlSpaceLeft . $indent . '<li id=\"' . $html_id . '_li_' . $curr_uid . '\">';\n break;\n }\n // Render the start tag\n // Result array\n $arr_result[ $curr_uid ] = $startTag . $item;\n\n $bool_firstLoop = false;\n }\n // LOOP\n // Loop values\n // Render the end tag of the last item\n $endTag = '</li>' .\n str_repeat\n (\n '</ul>' . PHP_EOL .\n $this->htmlSpaceLeft . $indent . '</li>', $curr_depth\n ) .\n PHP_EOL .\n $this->htmlSpaceLeft . $indent . '</ul>';\n $arr_result[ $curr_uid ] = $arr_result[ $curr_uid ] . $endTag . PHP_EOL .\n $this->htmlSpaceLeft . '</div>';\n // Render the end tag of the last item\n\n $arr_result[ $first_item_uid ] = $this->htmlSpaceLeft . '<div id=\"' . $html_id . '\">' . $arr_result[ $first_item_uid ];\n\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n\n // RETURN the result\n return $arr_result;\n }", "function part1() {\n $this->fabric = array_fill($this->minY, $this->spanY,\n array_fill($this->minX, $this->spanX, 0)\n );\n // Fill fabric with smaller areas:\n foreach ($this->areas as $a) {\n extract($a); // creates in scope: $id, $x, $y, $w, $h\n\n while ($w > 0) {\n while ($h > 0) {\n// echo \"($x,$y)\\n\";\n // Place area id in empty cell:\n if ($this->fabric[$y][$x] === 0) {\n $this->fabric[$y][$x] = $id;\n }\n // Place '@' where areas overlap:\n else if ($this->fabric[$y][$x] !== '@' && $this->fabric[$y][$x] !== 0) {\n $this->fabric[$y][$x] = '@';\n }\n $y++;\n $h--;\n }\n $y = $a['y'];\n $h = $a['h'];\n $x++;\n $w--;\n }\n }\n //$this->printGrid($fabric);\n $charCounts = $this->charCounter('@', $this->fabric);\n echo \"Overlap: $charCounts\\n\";\n }", "public function getDistinction() {\n $result = TingOpenformatMethods::parseFields($this->work, array('distinction'));\n return (is_array($result)) ? reset($result) : $result;\n }", "function outputled_gateway() {\n\t\tglobal $g;\n\t\tglobal $config;\n\t\t$a_gateways = return_gateways_array();\n\t\t$gateways_status = array();\n\t\t$gateways_status = return_gateways_status(true);\n\t\tforeach ($a_gateways as $gname => $gateway)\n\t\t{\n\t\t\tif ($gateways_status[$gname]['status'] != \"none\")\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t\treturn 1;\n\t}", "function get_tolerances($id, $oc, $dr){\n\n $url = \"http://calculus-logs.efi.internal/logs/\".$id.\".\".$oc.\"/\".$dr.\"/test_FieryPerfmon.txt\";\n $data = file_get_contents($url);\n\n if (empty($data)) {\n return \"BAD INPUT: \".$id.\"<br>\";\n }\n\n $rows = explode(\"\\n\", $data);\n $s = array();\n $temp = array();\n\n //Example output from \"test_FieryPerfmon.txt\"\n //PROCESS: \\Memory\\Available Bytes Tolerance -25\n foreach($rows as $row) {\n\n\t$arr = explode(\" \", trim($row) );\n if(count($arr) > 0){ \n\t if($arr[0] == \"PROCESS:\"){\n\t\t$loc = strpos($row, \"Tolerance\");\n\t\t$str = substr($row, 9, $loc - 10 );\n $s[] = $str;\n\t }\n\t}\n\n \n } \n \n return $s;\n}", "function virustotalscan_scan(&$attacharray)\r\n{\r\n\tglobal $mybb, $db, $lang;\t\r\n // daca cheia nu este definita sau daca atasamentele nu sunt verificate atunci nu se intampla nimic\r\n if ($mybb->settings['virustotalscan_setting_attach_enable'] && !empty($mybb->settings['virustotalscan_setting_key']))\r\n {\r\n // in acest moment fisierul a fost deja incarcat pe server\r\n // se construieste URL-ul catre atasamentul incarcat pe server\r\n $file = \".\".substr($mybb->settings['uploadspath'], 1).\"/\".$attacharray['attachname'];\r\n $key = $mybb->settings['virustotalscan_setting_key'];\r\n $scan = virustotalscan_scan_file($file, $key);\r\n // se intoarce ID scanarii din string-ul primit ca rezultat\r\n $scan_id = explode('-', $scan['scan_id']);\r\n $scan_id = $scan_id[0];\r\n $retrieve = virustotalscan_get_report($scan_id, $key);\r\n if ($retrieve && $retrieve['result'] == 1) \r\n {\r\n \t\t$lang->load('virustotalscan');\r\n $total = count($retrieve['report'][1]);\r\n $count_array = array_count_values($retrieve['report'][1]);\r\n // se sorteaza vectorul dupa valori in ordine descrescatoare\r\n arsort($count_array);\r\n // acum se alege prima valoare nenula a cheii din vector\r\n $virus = \"-\";\r\n foreach ($count_array as $key => $val) {\r\n if ($key != \"\") {\r\n // prima valoare gasita e numele virusului ce va fi afisat pe forum\r\n $virus = $key;\r\n // dupa ce se gaseste se iese din structura repetitiva\r\n break;\r\n }\r\n // daca nu se cauta mai departe\r\n }\r\n $percent = \"<font color=\\\"#D71A1A\\\">\".intval($total - $count_array['']).\"</font>/\".$total.\" (\".number_format(floatval(floatval($total - $count_array[''])/floatval($total))*100, 2).\"%)\";\r\n // informatie folosita pentru log-uri\r\n $data = $lang->sprintf($lang->virustotalscan_data, $attacharray['attachname'], $virus, $percent);\r\n // ce se va afisa pe ecranul userului\r\n $size = virustotalscan_get_size($attacharray['filesize']);\r\n\t\t\t$error_data = $lang->sprintf($lang->virustotalscan_error_data, $attacharray['attachname'], $size, $retrieve['report'][0], $virus, $percent, addslashes($retrieve['permalink']));\r\n\t\t\t// se sterge fisierul de pe disc! Astfel el nu va putea ajunge in baza de date!\r\n\t\t\t@unlink($mybb->settings['uploadspath'].\"/\".$attacharray['attachname']);\r\n // se insereaza un log in sistem\r\n $insert_array = array(\r\n 'uid' => intval($mybb->user['uid']),\r\n 'username' => $db->escape_string($mybb->user['username']),\r\n 'date' => TIME_NOW,\r\n 'data' => $db->escape_string($data)\r\n );\r\n // se insereaza in baza de date\r\n $db->insert_query('virustotalscan_log', $insert_array);\r\n // se trimite email ?\r\n\t\t\tif (!empty($mybb->settings['virustotalscan_setting_email']) && virustotalscan_valid_email($mybb->settings['virustotalscan_setting_email'])) {\r\n my_mail($mybb->settings['virustotalscan_setting_email'], $lang->virustotalscan_email_subject, $lang->sprintf($lang->virustotalscan_email_message, htmlspecialchars_uni($mybb->user['username']), my_date($mybb->settings['timeformat'], TIME_NOW), $data), $mybb->settings['bbname'], '', '', false, 'html');\r\n\t\t\t}\t\r\n\t\t\t// in fine se afiseaza eroare si pe ecranul utilizatorului\r\n\t\t\terror($lang->sprintf($lang->virustotalscan_error_infected, nl2br($error_data)));\r\n }\r\n else {\r\n // nu s-a depistat niciun virus\r\n }\r\n } else {\r\n // daca nu e definita o cheie publica atunci nu se intampla nimic\r\n // daca pluginul nu e activ nu se intampla iar nimic\r\n }\r\n}", "function get_traffic ()\n\t{\n\t\t$results['ranking'] = trim((string)$this->results->dmn->metrics->val->uv->ranking);\n\t\t\n\t\t/* $results['count'] = trim((string)$this->results->dmn->metrics->val->uv->count);\n\t\t$results['count_int'] = (int)implode('', explode(',', $results['count']));\n\t\t\n\t\t$results['link'] = trim((string)$this->results->dmn->metrics->link);\n\t\t$results['icon'] = trim((string)$this->results->dmn->metrics->icon); */\n\t\t$results['ranking'] = str_replace(\",\",\"\", $results['ranking']);\n\t\treturn($results);\n\t}", "function parseData($tagdata)\n\t{\n\t $tmpPos = stripos($tagdata, $this->tag);\n\t $tmpClass = array();\n\t \n\t // If no zeebras are found in the bushes, go away \n\t if($tmpPos === false){\n\t return $tagdata;\n\t }\n\t // Go catch them\n\t else {\n\t // If it's your first zeebra… shoot it!\n\t if($this->tagCount == 1 && $this->attrTips == 'yes')\n\t {\n\t array_push($tmpClass, $this->attrTipsClass[0]);\n\t }\n\t \n\t // If it's your last zeebra… finalize it.\n\t if($this->tagCount === $this->tagTotal && $this->attrTips == 'yes')\n\t {\n\t array_push($tmpClass, $this->attrTipsClass[1]);\n\t }\n\t \n\t // Get your zeebras in rows\n\t if(is_numeric($this->attrInterval))\n\t {\n\t $tmpInterval = ($this->tagCount%$this->attrInterval == 0) ? $this->attrInterval : ($this->tagCount%$this->attrInterval);\n\t array_push($tmpClass, str_replace(\"%\", $tmpInterval, $this->attrIntervalClass));\n\t }\n\t }\n\t \n\t // Kill the zeebra and get it replaced with our classes\n\t $tagdata = substr_replace($tagdata, implode(\" \", $tmpClass), $tmpPos, strlen($this->tag));\n\t \n\t // Hunt for other zeebras\n\t $this->tagCount++;\n\t return $this->parseData($tagdata);\n\t}", "public static function beam_destinations() { return ExpTimeMon::$beam_destinations; }", "public static function getPlacesByCode($drilldown) {\n\t\t$sql_substr = self::subSQLStrBuilder($drilldown,'code');\n\t\t$sql = \"SELECT * FROM Buildings WHERE \".$sql_substr.\" GROUP BY code ORDER BY code ASC\";\n\t $places = self::getPlaces($sql);\n\t\t$convertedPlaces = self::convertPlaces($places);\n\t\treturn $convertedPlaces;\n\t}", "function snmp_walk_parser($device, $oid, $oid_elements, $mib = NULL, $mibdir = NULL)\n{\n $data = snmp_walk($device, $oid, \"-Oqs\", $mib, $mibdir, FALSE);\n foreach (explode(\"\\n\", $data) as $text)\n {\n $ret = parse_oid($text);\n if (!empty($ret['value']))\n {\n // this seems retarded. need a way to just build this automatically.\n switch ($oid_elements)\n {\n case \"1\":\n $array[$ret['oid'][0]] = $ret['value'];\n break;\n case \"2\":\n $array[$ret['oid'][1]][$ret['oid'][0]] = $ret['value'];\n break;\n case \"3\":\n $array[$ret['oid'][1]][$ret['oid'][2]][$ret['oid'][0]] = $ret['value'];\n break;\n case \"4\":\n $array[$ret['oid'][1]][$ret['oid'][2]][$ret['oid'][3]][$ret['oid'][0]] = $ret['value'];\n break;\n }\n }\n }\n\n return $array;\n}", "function fiftyone_degrees_get_device_data($useragent) {\n global $_fiftyone_degrees_use_array_caching;\n global $_fiftyone_degrees_data_file;\n fiftyone_degrees_set_file_handle();\n\n $debug_info = array();\n $start_time = microtime(TRUE);\n\n $info = array();\n\n if ($_fiftyone_degrees_use_array_caching !== FALSE) {\n global $_fiftyone_degrees_cache;\n $_fiftyone_degrees_cache = array();\n }\n\n $headers = fiftyone_degrees_get_headers();\n\n $root_char_nodes = fiftyone_degrees_read_root_node_offsets($headers);\n $root_char_nodes_count = count($root_char_nodes);\n\n // Unpack creates a 1 based array. array merge converts to 0 based.\n $useragent_bytes = array_merge(unpack('C*', $useragent));\n\n $useragent_length = count($useragent_bytes);\n $current_position = min($useragent_length, $root_char_nodes_count) - 1;\n\n $matched_node_indexs = array();\n $debug_info['root_nodes_evaluated'] = 0;\n $debug_info['nodes_evaluated'] = 0;\n $debug_info['string_read'] = 0;\n $debug_info['signatures_read'] = 0;\n $debug_info['signatures_compared'] = 0;\n $debug_info['difference'] = 0;\n\n while ($current_position > 0) {\n $node = fiftyone_degrees_read_node(\n $root_char_nodes[$current_position],\n $headers);\n\n $debug_info['root_nodes_evaluated']++;\n $node = fiftyone_degrees_evaluate_node(\n $node,\n NULL,\n $useragent_bytes,\n $useragent_length,\n $debug_info,\n $headers);\n\n if ($node != NULL && $node['is_complete']) {\n // Add this node's index to the list for the match in the correct order.\n $index = fiftyone_degrees_integer_binary_search(\n $matched_node_indexs,\n $node['offset']);\n\n array_splice($matched_node_indexs, ~$index, 0, $node['offset']);\n // Check from the next character position to the left of this one.\n $current_position = $node['next_char_position'];\n }\n else {\n // No nodes matched at the character position.\n $current_position--;\n }\n }\n $timings = array();\n $timings['node_match_time'] = microtime(TRUE) - $start_time;\n $signatures_checked = count($matched_node_indexs);\n $info['SignaturesChecked'] = $signatures_checked;\n $method = '';\n $timings['signature_match_time'] = microtime(TRUE);\n $matched_signature = fiftyone_degrees_get_signature(\n $matched_node_indexs,\n $useragent_bytes,\n $method,\n $timings,\n $debug_info,\n $headers);\n\n if ($matched_signature != -1) {\n $best_signature = fiftyone_degrees_read_signature(\n $matched_signature,\n $headers);\n\n if (isset($lowest_score) == FALSE)\n $lowest_score = 0;\n }\n else {\n $lowest_score = PHP_INT_MAX;\n $best_signature = fiftyone_degrees_read_signature(0, $headers);\n $method = 'none';\n }\n\n $info['Method'] = $method;\n $timings['signature_match_time'] = microtime(TRUE) - $timings['signature_match_time'];\n $debug_info['signature_string'] = fiftyone_degrees_get_signature_string(\n $best_signature,\n $headers);\n\n $info['Confidence'] = $lowest_score;\n\n $profiles = array();\n $filled_components = array();\n\n $feature_detection_ids = fiftyone_degrees_get_feature_detection_profile_ids();\n foreach ($feature_detection_ids as $id) {\n $profile = fiftyone_degrees_get_profile_from_id($id, $headers);\n // Make sure only one profile for each component can be added.\n if ($profile != NULL &&\n !in_array($profile['component_id'], $filled_components)) {\n $filled_components[] = $profile['component_id'];\n $profiles[] = $profile;\n }\n }\n\n $timings['profile_fetch_time'] = microtime(TRUE);\n foreach ($best_signature['profile_indexs'] as $profile_offset) {\n $profile = fiftyone_degrees_read_profile($profile_offset, $headers);\n // Check if this profile's component has already been filled.\n if (!in_array($profile['component_id'], $filled_components)) {\n $filled_components[] = $profile['component_id'];\n $profiles[] = $profile;\n }\n }\n $timings['profile_fetch_time'] = microtime(TRUE) - $timings['profile_fetch_time'];\n\n $timings['property_fetch_time'] = microtime(TRUE);\n $_51d = fiftyone_degrees_get_property_data($profiles, $headers);\n $bandwidth = fiftyone_degrees_get_bandwidth_data();\n if ($bandwidth != NULL) {\n foreach ($bandwidth as $k => $v) {\n $_51d[$k] = $v;\n }\n }\n\n foreach ($info as $i_k => $i_v) {\n $_51d[$i_k] = $i_v;\n }\n $timings['property_fetch_time'] = microtime(TRUE) - $timings['property_fetch_time'];\n $end_time = microtime(TRUE);\n $duration = $end_time - $start_time;\n $_51d['Time'] = $end_time - $start_time;\n $_51d['debug_timings'] = $timings;\n $_51d['debug_info'] = $debug_info;\n\n global $_fiftyone_degrees_data_file_path;\n $_51d['DataFile'] = $_fiftyone_degrees_data_file_path;\n return $_51d;\n}", "function moveToRecycler($id,$table,$tableRecycler,$columnID,$con,$conRecycler){\r\n\r\n\r\n//inclusion this must be changed\r\ninclude_once \"../server.php\"; //for call the server\r\ninclude_once \"../htmlheadjquery.php\"; //for jquery animation blink, and css typing\r\ninclude_once \"../config.php\"; //for connecting into primary database\r\ninclude_once \"../configrecycler.php\"; //for connecting into secondary database\r\n\r\n\r\n echo \"<br>\";\r\n echo $id;\r\n echo \"<br>\";\r\n\r\n\r\n$sql=\"SELECT * FROM $table WHERE $columnID='$id'\";\r\n$query=mysqli_query($con,$sql);\r\n$data=mysqli_fetch_array($query);\r\n\r\n echo \"<b>Array From SQL Query</b><br>\";\r\n echo \"<p>\";\r\n print_r($data);\r\n echo \"</p>\";\r\n echo \"<br>\";\r\n /*\r\n hasilnya seperti ini\r\n $data = Array ( \r\n\r\n Array Keys Array Values\r\n\r\n [0] => COL6006599fe3a79 \r\n [ColorID] => COL6006599fe3a79 \r\n [1] => STY5ff0fb4bf050b \r\n [StyleID] => STY5ff0fb4bf050b \r\n [2] => Ebony \r\n [Color] => Ebony \r\n [3] => FCO5ffa3a9a4461f \r\n [FabricationID] => FCO5ffa3a9a4461f \r\n [4] => 4.92000 \r\n [FOB] => 4.92000 \r\n [5] => sketch_STY5ff0fb4bf050b_Ebony.png \r\n [ImageName] => sketch_STY5ff0fb4bf050b_Ebony.png \r\n [6] => 2021-01-19 11:26:00 \r\n [CreatedOn] => 2021-01-19 11:26:00 \r\n )\r\n */\r\n\r\n\r\n/*kalau kayak begini hasilnya bakalan double\r\n $forsequel=\"\";\r\n foreach ($data as $loopdata){\r\n $forsequel .= \"\".$loopdata.\", \";\r\n }\r\n $forsequel=substr($forsequel,0,-2);\r\n\r\n echo \"<br>\";\r\n echo $forsequel;\r\n echo \"<br>\";\r\n*/\r\n\r\n//jadi kita pakai array_unique() untuk remove duplicate data\r\n$dataUnique=array_unique($data);\r\n\r\n echo \"<b>Using array_unique() For Removing Duplicate </b><br>\";\r\n echo \"<p>\";\r\n print_r($dataUnique);\r\n echo \"</p>\";\r\n echo \"<br>\";\r\n /*\r\n hasilnya seperti ini\r\n $data = Array ( \r\n\r\n Array Keys Array Values\r\n\r\n [0] => COL6006599fe3a79 \r\n [1] => STY5ff0fb4bf050b \r\n [2] => Ebony \r\n [3] => FCO5ffa3a9a4461f \r\n [4] => 4.92000 \r\n [5] => sketch_STY5ff0fb4bf050b_Ebony.png \r\n [6] => 2021-01-19 11:26:00 \r\n )\r\n */\r\n\r\n//ini untuk retrieve value dari setiap array, dan digabungkan menjadi sebuah kalimat\r\n$forsequelUnique=\"\";\r\nforeach ($dataUnique as $loopdata){\r\n $forsequelUnique .= \"'\".$loopdata.\"', \"; //untuk membuat kalimat\r\n}\r\n$forsequelUnique=substr($forsequelUnique,0,-2); //untuk menghilangkan dua digit huruf terakhir pada kalimat\r\n\r\n echo \"<b>For making a sentence by extracting all the array values, then merge/concatenate them by using foreach .=</b><br>\";\r\n echo \"<p>\";\r\n echo $forsequelUnique;\r\n echo \"</p>\";\r\n echo \"<br>\";\r\n /*\r\n hasilnya seperti ini:\r\n COL6008aeadc99a1, STY5ff0fb8755e94, Yellow, FCO5ffa3aacbde08, 4.92000, noImage.png, 2021-01-21 05:29:01\r\n */\r\n\r\n$dataColumn2 = array_keys($dataUnique); //array key digunakan untuk mengambil key menjadi value\r\n echo \"<b>This is using array_keys() function to the previous data from array_unique() function </b><br>\";\r\n echo \"<p>\";\r\n print_r($dataColumn2);\r\n echo \"</p>\";\r\n echo \"<br>\";\r\n /*\r\n hasilnya seperti ini:\r\n Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 [6] => 6 )\r\n */\r\n\r\n$dataColumn = array_keys($data); //array key digunakan untuk mengambil key menjadi value\r\n echo \"<b>This is using array_keys() function to the first SQL data </b><br>\";\r\n echo \"<p>\";\r\n print_r($dataColumn);\r\n echo \"</p>\";\r\n echo \"<br>\";\r\n /*\r\n hasilnya seperti ini:\r\n Array ( [0] => 0 [1] => ColorID [2] => 1 [3] => StyleID [4] => 2 [5] => Color [6] => 3 [7] => FabricationID [8] => 4 [9] => FOB [10] => 5 [11] => ImageName [12] => 6 [13] => CreatedOn )\r\n */\r\n\r\n\r\n$dataColumnDiff = array_diff($dataColumn, $dataColumn2);\r\n echo \"<b>This is using array_diff from 2 above functions </b><br>\";\r\n echo \"<p>\";\r\n print_r($dataColumnDiff);\r\n echo \"</p>\";\r\n echo \"<br>\";\r\n /*\r\n hasilnya seperti ini:\r\n [1] => ColorID [3] => StyleID [5] => Color [7] => FabricationID [9] => FOB [11] => ImageName [13] => CreatedOn \r\n */\r\n\r\n\r\n$column = \"\"; \r\nforeach ($dataColumnDiff as $loopdata){\r\n$column .= \"\".$loopdata.\", \";\r\n}\r\n$column=substr($column,0,-2);\r\n echo \"<b>For making a sentence by extracting all the array values, then merge/concatenate them by using foreach .=</b><br>\";\r\n echo \"<p>\";\r\n echo $column;\r\n echo \"</p>\";\r\n echo \"<br>\";\r\n /*\r\n hasilnya seperti ini:\r\n ColorID, StyleID, Color, FabricationID, FOB, ImageName, CreatedOn\r\n */\r\n\r\n$sqlRecycler=\"INSERT INTO $tableRecycler ($column) VALUE ($forsequelUnique)\";\r\n$queryRecycler=mysqli_query($conRecycler,$sqlRecycler);\r\n\r\necho \"<p>\";\r\necho $sqlRecycler;\r\necho \"</p>\";\r\n\r\nheader( \"refresh:1.5; url=recyclerRedirect.php?id=\".$id.\"&table=\".$table.\"&columnID=\".$columnID.\"\" ); \r\n\r\n}", "public function vector_scan()\n\t{\n\t\t\n\t\t// Hostnames\n\t\t$vectors = $this->Vector->typeList('hostname', false, true);\n\t\t$this->out($this->Vector->shellOut());\n\t\t\n\t\t// add the new records\n\t\t$results = $this->Hostname->checkAddBlank(array_keys($vectors));\n\t\t$this->out($this->Hostname->shellOut());\n\t\t\n\t\t// Ip Addresses\n\t\t$vectors = $this->Vector->typeList('ipaddress', false, true);\n\t\t$this->out($this->Vector->shellOut());\n\t\t\n\t\t// add the new records\n\t\t$results = $this->Ipaddress->checkAddBlank(array_keys($vectors));\n\t\t$this->out($this->Ipaddress->shellOut());\n\t}", "function parsescan($arLines)\n {\n #no data in first two lines.skip them.\n array_shift($arLines);\n array_shift($arLines);\n\n $result = array();\n foreach($arLines as $key=>$line)\n {\n if(trim($line) == '')\n {\n continue;\n }\n\n $arMatches = array();\n $temp = array();\n if (!preg_match($this->channelreg, $line, $arMatches))\n print \"channel not found\";\n\n $temp['channel']=$arMatches[0];\n\n $line = trim(substr($line,strlen($arMatches[0])));\n if (!preg_match($this->essidreg, $line, $arMatches))\n print \"essid not found\";\n\n $temp['essid']=trim($arMatches[0]);\n\n $line = trim(substr($line,strlen($arMatches[0])));\n if (!preg_match($this->macreg, $line, $arMatches))\n print \"mac not found\";\n\n $temp['mac']=$arMatches[0];\n\n $line = trim(substr($line,strlen($arMatches[0])));\n if (!preg_match($this->securityreg, $line, $arMatches))\n print \"security not found\";\n\n $temp['security']=$arMatches[0];\n\n $line = trim(substr($line,strlen($arMatches[0])));\n\n if (!preg_match($this->signalreg, $line, $arMatches))\n print \"signal not found\";\n\n $temp['signal']=$arMatches[0];\n\n array_push($result, $temp);\n\n print(\"\\n\");\n\n }\n return $result;\n }", "function dvdinsideData($dvd_id)\n{\n global $dvdinsideServer, $cache;\n global $CLIENTERROR;\n\n $data = array();\n $dvd_id = substr($dvd_id, 2);\n\n // Get mainpage\n $resp = httpClient($dvdinsideServer.'/db/details.php?id='.$dvd_id, 1);\n if (!$resp[success])\n {\n $CLIENTERROR .= $resp[error].\"\\n\";\n return $data;\n }\n\n\n // Cover URL\n if (preg_match(\"/<img src=\\\"(bild.php\\?id=$dvd_id.+?)\\\"/\",$resp[data],$ary)) \n {\n $data[coverurl] = $dvdinsideServer.\"/db/\".$ary[1];\n //http://www.dvdinside.de/db/bild.php?id=4167&type=ds&studio=20thCenturyFox\n }\n\n //Director\n preg_match(\"/Regie:.+?<a.*?>(.*?)<\\/a>/is\",$resp[data],$ary);\n $data[director] = trim($ary[1]);\n\n //Year\n preg_match(\"/ffentlichung.+?blue\\\">(.+?)<\\/b>/is\",$resp[data],$ary);\n $year = trim($ary[1]);\n if(!empty($year))\n {\n $data[year] = substr($year,6);\n }\n\n //Plot\n preg_match(\"/>Inhalt.+?gross2\\\">(.+?)<\\/td>/is\",$resp[data],$ary);\n $data[plot] = trim($ary[1]);\n\n\n //Runtime\n preg_match(\"/nge:.+?blue\\\">(.+?)<\\/b>/is\",$resp[data],$ary);\n $runtime= trim($ary[1]);\n if(!empty($runtime))$data[runtime] = $runtime;\n\n // Genere\n preg_match(\"/Genre:.+?<a.*?>(.*?)<\\/a>/is\",$resp[data],$ary);\n $data[genres] = trim($ary[1]);\n\n\t// NOT YET: Language\n // NO EXIST: Rating\n\n/* Laeuft. Aber die Schauspielerdaten sind von IMDB besser!\n\n // Actors\n preg_match(\"/>Schauspieler:<.+?<td class=\\\"gross2\\\">(.*?)<\\/td>/is\",$resp[data],$ary);\n //print \"<pre>\";print_r($ary);\n preg_match_all(\"/personen.php.+?>(.+?)<\\/a>/is\",$ary[1], $array_match);\n\n\tforeach($array_match[1] as $actor) {\n\t\t$actor = trim(strip_tags($actor));\n\t\tif (!$actor) continue;\n\t\n\t\t$data[cast][] = $actor;\n\t}\n*/\n\n\treturn $data;\n}", "private function parse()\n\t{\n\t\t// parse datagrids\n\t\tif(!empty($this->datagrids)) $this->tpl->assign('datagrids', $this->datagrids);\n\t}", "protected function scan_token()\n {\n $tok = null;\n \n // loop used to avoid recursion if tokens get skipped (comments)\n for (;;) {\n $m = null;\n \n // track new lines?\n if ($this->tnl === true) {\n // test of a new-line can be scanned\n if (preg_match('/^\\h*\\r?(\\n)/', $this->data, $m)) {\n $this->tnl = false;\n goto prd;\n }\n } \n \n if (!preg_match(self::$re, $this->data, $m)) {\n // the scanner-pattern could not match anything\n // in this state we can not produce tokens (anymore)\n $this->eof = true;\n $this->adjust_line_coln_beg($this->data, 0);\n \n Logger::error_at($this->loc(), 'invalid input near: %s [...]',\n strtr(substr($this->data, 0, 10), [ \"\\n\" => '\\\\n' ]));\n \n return $this->scan_eof();\n }\n \n // start scan\n prd:\n \n // \"raw\" and \"sub\" matched data\n // raw: can contain whitespace at the beginning\n // sub: the relevant data\n list ($raw, $sub) = $m;\n $len = strlen($raw);\n \n // remove match from data\n $this->data = substr($this->data, $len);\n \n // get correct starting line/coln\n $this->adjust_line_coln_beg($raw, $len);\n \n // save start line/coln\n $pos = new Position($this->line, $this->coln);\n \n // comments\n if (preg_match('/^(?:[#]|\\/[*\\/])/', $sub)) {\n // update end line/coln\n $this->adjust_line_coln_end($sub, 0);\n \n // handle <eof> if the comment was at the end of our input\n if ($this->ends()) \n return $this->scan_eof();\n \n continue; // continue otherwise\n }\n \n $str = null;\n if (preg_match('/^([cor])?([\"\\'])/', $sub, $str)) {\n if ($str[1] === 'r') {\n // raw string\n $tok = $this->token(T_STRING, substr($sub, 2, -1));\n // update end line/coln\n $this->adjust_line_coln_end($sub, 0);\n } else \n // flag === '' (none) \n // flag === 'c' (constant / constant-expression)\n // flag === 'o' (object [instance of class `Str`] - unused atm)\n // start advanced string-scanner\n $tok = $this->scan_string($str[2]);\n \n $tok->flag = $str[1];\n $tok->delim = $str[2];\n } else {\n // update end line/coln\n $this->adjust_line_coln_end($sub, 0);\n \n // analyze match\n $tok = $this->analyze($sub);\n assert($tok !== null);\n \n if ($tok->type === T_SEMI)\n $tok->implicit = false;\n // track new lines if the current token was a '@'\n elseif ($tok->type === T_AT)\n $this->tnl = true;\n elseif ($tok->type === T_END) {\n // the __end__ marker behaves just like real-eof\n $end = $tok;\n \n // produce one more ';'\n $tok = $this->token(T_SEMI, ';', false);\n $tok->implicit = true;\n \n $end->raw = $raw;\n $end->loc = new Location($this->file, $pos);\n \n // push the end-token onto the queue\n $this->end = $end;\n }\n }\n \n break;\n }\n \n assert($tok !== null);\n \n $tok->raw = $raw;\n $tok->loc = new Location($this->file, $pos);\n return $tok;\n }", "private function scrape_udp($infohashes, $host, $port, $announce)\n {\n list($socket, $transaction_id, $connection_id) = $this->prepare_udp($host, $port);\n\n if (true === $announce) {\n $response = $this->udp_announce($socket, $infohashes, $connection_id);\n $keys = 'Nleechers/Nseeders';\n $start = 12;\n $end = 16;\n $offset = 20;\n } else {\n $response = $this->udp_scrape($socket, $infohashes, $connection_id, $transaction_id, $host, $port);\n $keys = 'Nseeders/Ncompleted/Nleechers';\n $start = 8;\n $end = $offset = 12;\n }\n\n return $this->udp_scrape_data($response, $infohashes, $host, $keys, $start, $end, $offset);\n }", "function snmp_walk_parser2($device, $oid, $oid_elements, $mib = NULL, $mibdir = NULL)\n{\n $data = snmp_walk($device, $oid, \"-Oqs\", $mib, $mibdir, FALSE);\n foreach (explode(\"\\n\", $data) as $text)\n {\n $ret = parse_oid2($text);\n if (!empty($ret['value']))\n {\n // this seems retarded. need a way to just build this automatically.\n switch ($oid_elements)\n {\n case \"1\":\n $array[$ret['oid'][0]] = $ret['value'];\n break;\n case \"2\":\n $array[$ret['oid'][1]][$ret['oid'][0]] = $ret['value'];\n break;\n case \"3\":\n $array[$ret['oid'][1]][$ret['oid'][2]][$ret['oid'][0]] = $ret['value'];\n break;\n case \"4\":\n $array[$ret['oid'][1]][$ret['oid'][2]][$ret['oid'][3]][$ret['oid'][0]] = $ret['value'];\n break;\n }\n }\n }\n return $array;\n}", "function getInd4Num($repNum, $site, $intervalLength, $startDate, $endDate) {\n $drugList = getInd4DrugList($intervalLength);\n return fetchFirstColumn(dbQuery(\"\nSELECT STRAIGHT_JOIN DISTINCT patientID \nFROM v_drugTable \nWHERE sitecode = '$site'\n AND drugID IN ($drugList)\n AND visitdate BETWEEN '$startDate' AND '$endDate'\n\" . ($repNum == \"530\" ? \"\nUNION\nSELECT DISTINCT e.patientID\nFROM encValid e, otherPrescriptions o\nWHERE e.patientID = o.patientID\n AND e.siteCode = o.siteCode\n AND e.visitDateDd = o.visitDateDd\n AND e.visitDateMm = o.visitDateMm\n AND e.visitDateYy = o.visitDateYy\n AND e.seqNum = o.seqNum\n AND e.siteCode = '$site'\n AND LOWER(o.drug) LIKE '%dapson%'\n AND e.visitDate BETWEEN '$startDate' AND '$endDate'\n\" : \"\")));\n}", "function read_all_units($db, $serial, $instruction)\r\n{\r\n\tglobal\t$TABLE_M_UNITS;\r\n\tglobal\t$FIELD_UNIT, $FIELD_UNIT_VERSION, $FIELD_ONLINE;\r\n\tglobal\t$a_unit, $a_temp, $a_kwhtotal, $a_kwhdisplay, $a_current;\r\n\r\n\t$sql = \"SELECT $FIELD_UNIT,$FIELD_UNIT_VERSION FROM $TABLE_M_UNITS\";\r\n\tif (!($mysql_result = mysql_query($sql))) { print(mysql_error($db) .\"\\n\"); return; }\r\n\r\n\t$i = 0;\r\n\twhile ($row = mysql_fetch_array($mysql_result))\r\n\t{\r\n\t\t$unit = $row[0];\r\n\t\t$a_unit[$i] = $unit;\r\n\r\n//\t\tprint \"$unit\\t\";\r\n\t\t\r\n\t\t$addrh = ($unit >> 8) & 255;\r\n\t\t$addrl = $unit & 255;\r\n\r\n\t\t$result = send_message($serial, 93, $addrh, $addrl, 0, 0, \"\");\t\t\t\t\t// read databuffer\r\n\t\t\r\n\t\tif ($result >= 0)\r\n\t\t{\r\n\t\t\tif ($instruction == 90)\t\t\t\t\t\t\t\t\t\t\t\t\t\t// temperature\r\n\t\t\t{\r\n\t\t\t\t$a_temp[$i] = ($result & 255);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$number = 0;\r\n\t\t\t\tfor ($j = 5; $j >= 0; $j--)\r\n\t\t\t\t\t$number = ($number * 10) + (($result >> (4 * $j)) & 15);\r\n\t\t\t\t\t\r\n\t\t\t\tswitch ($instruction)\r\n\t\t\t\t{\r\n\t\t\t\t\tcase 56:\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// KWh total\r\n\t\t\t\t\t\t$a_kwhtotal[$i] = $number;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 143:\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// KWh display\r\n\t\t\t\t\t\t$a_kwhdisplay[$i] = $number;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 68:\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// current\r\n\t\t\t\t\t\t$a_current[$i] = $number / 10000;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$online = \"Y\";\r\n\t\t\t//print \"ok\\n\";\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tswitch ($instruction)\r\n\t\t\t{\r\n\t\t\t\tcase 90:\t$a_temp[$i] = 0;\t\tbreak;\r\n\t\t\t\tcase 56:\t$a_kwhtotal[$i] = 0;\tbreak;\r\n\t\t\t\tcase 143:\t$a_kwhdisplay[$i] = 0;\tbreak;\r\n\t\t\t\tcase 68:\t$a_current[$i] = 0;\t\tbreak;\r\n\t\t\t}\r\n\t\t\t$online = \"N\";\r\n\t\t\t//print \"missing\\n\";\r\n\t\t}\r\n\r\n\t\t// update online status of this unit\r\n\t\t$sql = \"UPDATE $TABLE_M_UNITS SET $FIELD_ONLINE='$online' WHERE $FIELD_UNIT=$unit\";\r\n\t\tif (!mysql_query($sql)) print(mysql_error($db) .\"\\n\");\r\n\t\t\r\n\t\t$i++;\r\n\t}\r\n\tmysql_free_result($mysql_result);\r\n\t\r\n\t//print(\"\\n\");\r\n}", "public function run()\n {\n foreach ($this->data() as $value) {\n DiameterRange::create($value);\n }\n }", "public static function calcWorkDowntime($horaup, $horadown, $tempInds)\n {\n $ini_exp = 510; // inicio\n $fim_exp = 1050; // fim\n $total_exp = $fim_exp - $ini_exp;\n\n //separando data de hora\n $horacaiu = explode(' ', $horadown);\n $horavoltou = explode(' ', $horaup);\n\n //separando data, mes, ano\n $datacaiu = explode(\"-\", $horacaiu[0]);\n $datavoltou = explode(\"-\", $horavoltou[0]);\n\n // fragmentando horas, min, 00:00:0seg\n $horacaiuH = explode(\":\", $horacaiu[1]);\n $horavoltouH = explode(\":\", $horavoltou[1]);\n $tempIndsH = explode(\":\", $tempInds);\n\n // pegando o valor de horas e multiplicando por 60 pra converter em minutos\n $horacaiuMin = $horacaiuH[0] * 60;\n $horavoltouMin = $horavoltouH[0] * 60;\n $tempIndsMin = $tempIndsH[0] * 60;\n\n // somando o a conversão em minutos com os minutos restantes da hora\n $totalminC = $horacaiuMin + $horacaiuH[1];\n $totalminV = $horavoltouMin + $horavoltouH[1];\n $totaltempindsMIN = $tempIndsMin + $tempIndsH[1];\n\n //intervalo entre um exediente e outro\n $intervalo = 840; // são 14:00:00\n if ($totaltempindsMIN < 1440) {\n if ($totalminC >= $ini_exp and $totalminC <= $fim_exp) { // O bloco abaixo é executado quando o link cai durante o expediente.\n if ($totalminV >= $ini_exp and $totalminV <= $fim_exp) { // O bloco abaixo é executado quando o link volta durante o expediente.\n if ($totaltempindsMIN >= $intervalo) { // o bloco abaixo é executado quando o link cai durante o expediente e volta durante o expediente do outro dia\n $subtempo = $totaltempindsMIN - $intervalo;\n $conv_hora = floor($subtempo / 60);\n $resto = $subtempo % 60;\n $total = $conv_hora . ':' . $resto . ':00';\n return $total;\n } else { // esse bloco é executado quando o link cai durante o expediente e volta durante o mesmo expediente\n $subtempo = $totalminV - $totalminC;\n $conv_hora = floor($subtempo / 60);\n $resto = $subtempo % 60;\n $total = $conv_hora . ':' . $resto . ':00';\n return $total;\n }\n } else { // o bloco abaixo é executado quando o link cai durante o expediente e volta fora o expediente\n $totalminV = $fim_exp;\n $subtempo = $totalminV - $totalminC;\n $conv_hora = floor($subtempo / 60);\n $resto = $subtempo % 60;\n $total = $conv_hora . ':' . $resto . ':00';\n return $total;\n }\n } else { // esse bloco é executado quando o link cai fora do exediente\n if ($totalminV >= $ini_exp and $totalminV < $fim_exp) { // esse bloco é executado quando o link cai fora do expediente e volta durante o expediente\n $totalminC = $ini_exp;\n $subtempo = $totalminV - $totalminC;\n $conv_hora = floor($subtempo / 60);\n $resto = $subtempo % 60;\n $total = $conv_hora . ':' . $resto . ':00';\n return $total;\n } else { // esse bloco é executado quando o link cai fora do expediente e volta fora do expediente\n if ($totalminC >= $fim_exp and $totalminV <= $ini_exp) {\n $total = '00:00:00';\n return $total;\n } else {\n if ($totalminC > 360 and $totalminV < 480) {\n $total = '00:00:00';\n return $total;\n } else {\n $total = '9:00:00';\n return $total;\n }\n }\n }\n }\n } else { // esse bloco é executado quando o tempo de indisponibilidade é maior que 24 horas.\n $quebraDC = explode(\"-\", $horacaiu[0]);\n list($anoC, $mesC, $diaC) = $quebraDC;\n $quebraDV = explode(\" \", $horaup);\n list($dataV, $horaV) = $quebraDV;\n $datasp = explode(\"-\", $dataV);\n list($anoV, $mesV, $diaV) = $datasp;\n\n //converte para segundos\n $segC = mktime(00, 00, 00, $mesC, $diaC, $anoC);\n $segV = mktime(00, 00, 00, $mesV, $diaV, $anoV);\n $dif = $segV - $segC;\n $totaldias = (int) floor($dif / (60 * 60 * 24));\n\n if ($totaldias == 2) {\n $totaldias = $totaldias - 1;\n } else {\n if ($totaldias == 1) {\n $total = \"9:00:00\";\n return $total;\n return;\n } else {\n $totaldias = $totaldias - 2;\n }\n }\n\n $totaldias = $totaldias * $total_exp;\n $pri_dia = $totalminC <= $ini_exp ? $pri_dia = $total_exp : $pri_dia = $fim_exp - $totalminC;\n $ult_dia = $totalminV >= $fim_exp ? $ult_dia = $total_exp : $ult_dia = $totalminV - $ini_exp;\n $totalmin = $totaldias + $pri_dia + $ult_dia;\n $coverteHora = floor($totalmin / 60);\n $pegaresto = $totalmin % 60;\n $total = $coverteHora . ':' . $pegaresto . ':00';\n\n return $total;\n }\n }" ]
[ "0.5899118", "0.56649816", "0.4798595", "0.47244754", "0.46880904", "0.44520092", "0.44377184", "0.4396466", "0.4352825", "0.43178967", "0.4293009", "0.42834938", "0.42795387", "0.42675465", "0.42646158", "0.4247529", "0.42226622", "0.41896406", "0.41839698", "0.41805312", "0.41794956", "0.41782758", "0.41424805", "0.41176647", "0.4080732", "0.40792006", "0.40697154", "0.4064492", "0.40586406", "0.4016376", "0.40118054", "0.40077406", "0.4001467", "0.39907598", "0.39789557", "0.39620185", "0.39545983", "0.3927743", "0.3924816", "0.39241418", "0.39225748", "0.39155355", "0.39070666", "0.3905682", "0.38770413", "0.38550666", "0.38536477", "0.38533622", "0.38533267", "0.3850568", "0.3846582", "0.38441014", "0.38373733", "0.38353953", "0.3831196", "0.3821489", "0.38210827", "0.38017377", "0.37988704", "0.37975556", "0.37934768", "0.37907216", "0.37898034", "0.37858376", "0.37812978", "0.3775767", "0.37621284", "0.37555096", "0.37553698", "0.3749449", "0.37470362", "0.37454212", "0.3744669", "0.3740524", "0.3735709", "0.3734801", "0.37338695", "0.3733087", "0.3732331", "0.37289983", "0.37279862", "0.37275276", "0.37270606", "0.37270567", "0.3726686", "0.37215397", "0.3717961", "0.37161565", "0.37142807", "0.37140957", "0.37122476", "0.37068132", "0.37047902", "0.37032807", "0.36969864", "0.3696912", "0.36968353", "0.3695061", "0.36935812", "0.36934453" ]
0.66016585
0
Parse control towers file
function getDscanTower($key) { /*$csv = explode("\n", file_get_contents("controltowers.csv")); foreach($csv as $ct) { $ct = str_getcsv($ct, ",", "\"", "\\"); $m['id'] = $ct[0]; $m['igbName'] = $ct[1]; $m['typeName'] = $ct[2]; $cts[$m['typeName']] = $m; }*/ //Connect MySQL /*include("config.php"); $db = new PDO('mysql:host='.$mysql_host.';dbname='.$mysql_db.';charset=utf8', $mysql_user, $mysql_pass); //Check if scan exists $st = $db->prepare("SELECT * FROM dscanScans WHERE `key`=:key LIMIT 1"); $st->bindValue(":key", $key, PDO::PARAM_STR); $st->execute(); $rows = $st->fetchAll(PDO::FETCH_ASSOC); if(count($rows) < 1) { //No scan found return null; } //Get objects for scan $id = $rows[0]['id']; $st = $db->prepare("SELECT type, distance FROM dscanObjects WHERE scan=:scan AND distance >= 0"); $st->bindValue(":scan", $id, PDO::PARAM_STR); $st->execute(); $rows = $st->fetchAll(PDO::FETCH_ASSOC); //Search objects for tower $found = false; foreach($rows as $row) { if(array_search($row['type'], array_keys($cts)) !== false) { $type = $row['type']; $found = true; } }*/ if(true) { $dscan = file_get_contents("scans/".$key); //echo $dscan; return parseDscanTower($dscan); } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function parse()\n {\n $lines = file($this->filename);\n\n // skip get worker info\n $offset = 0;\n while (isset($lines[$offset])) {\n $line = $lines[$offset];\n\n if (preg_match('/(?:\\[0m\\t)(\\[.*\\])\\s*({.*})(?:[\\r\\n]*)$/', $line, $matches)) {\n $ctx = json_decode($matches[2], true);\n if (isset($ctx['receive'])) {\n $this->in[] = [$matches[1], $matches[2]];\n $offset++;\n continue;\n }\n\n $this->out[] = [$matches[1], $matches[2]];\n }\n\n $offset++;\n }\n }", "function ctlparser($wft_file) {\n\t\t\t## the xml-file musst be specified on constuction\n\t\t\t## used to include form different locations\n\t\t\t$this->xml_file = $wft_file;\n }", "public function ParseInput() {\n\t\t$actState = self::S_START;\n\t\t$actClass = \"\";\n\t\t$accessModifier = \"private\";\n\t\t$actMethod = \"\";\n\t\t$type = NULL; // Method | atribut type\n\n\t\twhile (!$this->isEOF()) {\n\t\t\t// Zacatek konecneho automatu\n\t\t\tif ($actState == self::S_START) {\n\t\t\t\t$to = $this->whiteSpace;\n\t\t\t\t$this->ReadTo($to);\n\n\t\t\t\t$actState = self::S_CLASS_NAME;\n\t\t\t}\n\t\t\t// Nacteni nazvu tridy\n\t\t\telse if ($actState == self::S_CLASS_NAME) {\n\t\t\t\t$to = array(\"{\", \":\");\n\t\t\t\t$data = $this->ReadTo($to);\n\t\t\t\t$data = preg_replace('/\\s+/', '', $data);\n\n\t\t\t\t// Pridany nazev tridy do objektu\n\t\t\t\t$this->model[$data] = new TemplateClass($data, $this->conflicts);\n\n\t\t\t\t$actClass = $data;\n\t\t\t\t$this->dataTypes[] = $data;\n\t\t\t\t$this->dataTypes[] = \"~\".$data;\n\t\t\t\tif ($this->GetPreviousChar() == \":\")\n\t\t\t\t\t$actState = self::S_INHERITANCE;\n\t\t\t\telse\n\t\t\t\t\t$actState = self::S_BODY;\n\t\t\t}\n\t\t\t// Nacteni trid, ze kterych se dedi\n\t\t\telse if ($actState == self::S_INHERITANCE) {\n\t\t\t\t$to = array(\",\", \"{\");\n\t\t\t\t$data = $this->ReadTo($to);\n\t\t\t\t$data = preg_split('/\\s+/', $data, NULL, PREG_SPLIT_NO_EMPTY);\n\n\t\t\t\t// Ulozeni informaci o tride, ze ktere se dedi\n\t\t\t\t// Osetreni pokud se dedi z nezname tridy\n\t\t\t\tif (count($data) == 2) {\n\t\t\t\t\tif (!array_key_exists($data[1], $this->model))\n\t\t\t\t\t\tthrow new customException(\"Input file error\", self::E_UNKNOWN);\n\n\t\t\t\t\t$this->model[$data[1]]->addChild($actClass);\n\t\t\t\t\t$this->model[$actClass]->CopyClass($this->model[$data[1]], $data[0]);\n\t\t\t\t\t$this->model[$actClass]->AddParentClass($data[0], $data[1]);\n\t\t\t\t} else {\n\t\t\t\t\tif (!array_key_exists($data[0], $this->model))\n\t\t\t\t\t\tthrow new customException(\"Input file error\", self::E_UNKNOWN);\n\n\t\t\t\t\t$this->model[$data[0]]->addChild($actClass);\n\t\t\t\t\t$this->model[$actClass]->CopyClass($this->model[$data[0]], \"private\");\n\t\t\t\t\t$this->model[$actClass]->AddParentClass(\"private\", $data[0]);\n\t\t\t\t}\n\n\t\t\t\tif ($this->GetPreviousChar() == \",\")\n\t\t\t\t\t$actState = self::S_INHERITANCE;\n\t\t\t\telse\n\t\t\t\t\t$actState = self::S_BODY;\n\t\t\t}\n\t\t\t// Nacitavani tela tridy\n\t\t\telse if ($actState == self::S_BODY) {\n\t\t\t\t$this->RemoveWhiteSpace(); // Odstraneni bilych znaku pred ctenim\n\t\t\t\t$data = \"\";\n\t\t\t\t$search = false;\n\n\t\t\t\t// Kontrola na klicove slova\n\t\t\t\t// private|public|protected OR using OR static|virtual OR int,float...\n\t\t\t\twhile (true) {\n\t\t\t\t\t$char = $this->ReadChar();\n\t\t\t\t\t$data .= $char;\n\n\t\t\t\t\t// Pokud je prazdne telo, preskoci se na konec tridy.\n\t\t\t\t\tif ($char == \"}\") {\n\t\t\t\t\t\t$actState = self::S_END_BODY_CLASS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// Using\n\t\t\t\t\telse if ($data == \"using\") {\n\t\t\t\t\t\t$actState = self::S_USING_CLASS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// Modifikatory pristupu - public|private|protected\n\t\t\t\t\telse if (in_array($data, $this->accessModifiers)) {\n\t\t\t\t\t\t$actState = self::S_ACCESS_MODIFIERS;\n\t\t\t\t\t\t$search = true;\n\t\t\t\t\t}\n\t\t\t\t\t// Typ metody\n\t\t\t\t\telse if (in_array($data, $this->methodType)) {\n\t\t\t\t\t\t$actState = self::S_METHOD_TYPE;\n\t\t\t\t\t\t$search = true;\n\t\t\t\t\t}\n\t\t\t\t\t// Datove typy\n\t\t\t\t\telse if (in_array($data, $this->dataTypes)) {\n\t\t\t\t\t\t$actState = self::S_DATA_TYPE_AND_NAME;\n\t\t\t\t\t\t$search = true;\n\t\t\t\t\t} else if ($char == \";\")\n\t\t\t\t\t\tthrow new customException(\"Input file error.\", self::E_UNKNOWN);\n\n\t\t\t\t\t// Posun ukazatele v souboru na stav pred zacatkem nacitavani\n\t\t\t\t\tif ($search) {\n\t\t\t\t\t\t$this->ReturnCharToFile(strlen($data));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Zpracovani konce tridy\n\t\t\telse if ($actState == self::S_END_BODY_CLASS) {\n\t\t\t\t$to = array(\";\");\n\t\t\t\t$this->ReadTo($to);\n\n\t\t\t\tif ($this->GetPreviousChar() == \";\")\n\t\t\t\t\t$actState = self::S_START;\n\n\t\t\t\tif ($this->model[$actClass]->CheckClass())\n\t\t\t\t\t$this->conflictClass[] = $actClass;\n\n\t\t\t\t$accessModifier = \"private\";\n\t\t\t}\n\t\t\t// Zpracovani modifikatoru pristupu\n\t\t\telse if ($actState == self::S_ACCESS_MODIFIERS) {\n\t\t\t\t$to = array(\":\");\n\t\t\t\t$data = $this->ReadTo($to);\n\n\t\t\t\t$accessModifier = $data;\n\t\t\t\t$actState = self::S_BODY;\n\t\t\t}\n\t\t\t// Zpracovani typu metody|atributu - virtual|static\n\t\t\telse if ($actState == self::S_METHOD_TYPE) {\n\t\t\t\t$to = $this->whiteSpace;\n\t\t\t\t$type = $this->ReadTo($to);\n\n\t\t\t\t$actState = self::S_BODY;\n\t\t\t}\n\t\t\t// Zpracovani datoveho typu a nazvu promenne/metody\n\t\t\telse if ($actState == self::S_DATA_TYPE_AND_NAME) {\n\t\t\t\t$to = array(\";\", \"(\");\n\t\t\t\t$data = $this->parseMethodArg($this->ReadTo($to));\n\n\t\t\t\tif ($this->GetPreviousChar() == \"(\") {\n\t\t\t\t\t$this->model[$actClass]->addClassMethod($accessModifier, $type, $data[0], $data[1]);\n\t\t\t\t\t$actState = self::S_METHOD_ARGV;\n\t\t\t\t} else {\n\t\t\t\t\t$this->model[$actClass]->addAttributeClass($accessModifier, $type, $data[0], $data[1]);\n\t\t\t\t\t$actState = self::S_BODY;\n\t\t\t\t}\n\t\t\t\t$actMethod = $data[1];\n\t\t\t\t$type = NULL;\n\t\t\t}\n\t\t\t// Prechod do zpristupneni metody|atributu\n\t\t\telse if ($actState == self::S_USING_CLASS) {\n\t\t\t\t$to = array(\";\");\n\t\t\t\t$data = $this->ReadTo($to);\n\t\t\t\t$data = str_replace(\"::\", \" \", $data);\n\t\t\t\t$data = preg_split('/\\s+/', $data, NULL, PREG_SPLIT_NO_EMPTY);\n\n\t\t\t\t$this->model[$actClass]->addUsing($this->model[$data[0]], $data[1], $accessModifier);\n\n\t\t\t\t$actState = self::S_BODY;\n\t\t\t}\n\t\t\t// Zpracovani argumentu metody\n\t\t\telse if ($actState == self::S_METHOD_ARGV) {\n\t\t\t\t$to = array(\",\", \")\");\n\n\t\t\t\t$data =$this->parseMethodArg($this->ReadTo($to));\n\n\t\t\t\t$this->model[$actClass]->addMethodArg($actMethod, $data[0], $data[1]);\n\n\t\t\t\tif ($this->GetPreviousChar() == \",\" && count($data) != 0)\n\t\t\t\t\t$actState = self::S_METHOD_ARGV;\n\t\t\t\telse\n\t\t\t\t\t$actState = self::S_ABSTRACT_METHOD;\n\t\t\t}\n\t\t\t// Zpracovani abstraktni metody\n\t\t\telse if ($actState == self::S_ABSTRACT_METHOD) {\n\t\t\t\t$to = array(\";\", \"}\");\n\t\t\t\t$data = $this->ReadTo($to);\n\t\t\t\t$data = preg_replace('/\\s+/', '', $data);\n\n\t\t\t\tif ($data == \"=0\")\n\t\t\t\t\t$this->model[$actClass]->setVirtualPure();\n\n\t\t\t\t$actState = self::S_BODY;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$actState = self::S_BODY;\n\t\t}\n\t}", "public function parse()// : void\n\t{\n\t\tforeach( $this -> options[ 'command' ] as $command => $params )\n\t\t{\n\t\t\t//- Parsing -//\n\t\t\t$result = null;\n\t\t\tpreg_match_all(\n\t\t\t\t$params[ 'regex' ], \n\t\t\t\t$this -> text, \n\t\t\t\t$result, \n\t\t\t\tPREG_PATTERN_ORDER\n\t\t\t);\n\n\t\t\t//- Set result -//\n\t\t\t$this -> value[ $command ] = array();\n\t\t\t$this -> errors[ $command ] = array();\n\t\t\tforeach( $params[ 'value' ] as $key => $index )\n\t\t\t{\n\t\t\t\tif( !isset( $result[ $index ][ 0 ] ) )\n\t\t\t\t{\n\t\t\t\t\t$this -> errors[ $command ][ $key ] = \"Command not valid\";//TODO: change\n\t\t\t\t\t\n\t\t\t\t\t$this -> valid = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//- Set value -//\n\t\t\t\t$this -> value[ $command ][ $key ] = $result[ $index ][ 0 ];\n\t\t\t}\t\t\t\n\t\t}\n\t}", "public function parse()\n {\n $this->data = parse_ini_file($this->fileName);\n }", "public function formatSwitch(){\r\n\t\tforeach($this->template as $k=>$v){\r\n\t\t\tif(preg_match('/{\\s+switch \\$'.'(\\w+)'.' case (\\w+)}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'{\\' near '.$matches[1].' in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{switch \\$'.'(\\w+)'.' case (\\w+)\\s+}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'}\\' near '.$matches[2].' in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{\\s+switch @key case (\\w+)}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'{\\' near @key in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{switch @key case (\\w+)\\s+}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'}\\' near @key in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{\\s+switch @value case (\\w+)}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'{\\' near @value in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(preg_match('/{switch \\$key case (\\w+)}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = '@key format error: Please use @key instead of $key near $key in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{switch \\$value case (\\w+)}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = '@value format error: Please use @value instead of $value near $value in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(preg_match('/{switch @value case (\\w+)\\s+}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'}\\' near @value in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{\\s+case (\\w+)}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'{\\' near '.$matches[1].' in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{case (\\w+)\\s+}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'}\\' near '.$matches[1].' in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{switch \\$'.'(\\w+)'.' case (\\w+)}/', $v, $matches)){\r\n\t\t\t\tif(!preg_match('/{\\/switch}/', implode('\\n', $this->template))){\r\n\t\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The switch tag is not close near '.$matches[1].' in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private function parse()\n {\n $handle = fopen($this->filepath, 'r');\n if(! $handle) throw new \\Exception(\"Can't read file $this->filepath\");\n\n $plugin = null;\n\n while(($line = fgets($handle)) !== false) {\n\n /* Remove next line character from end of line */\n $line = str_replace(PHP_EOL, '', $line);\n\n /* Skip comments and empty lines */\n if(starts_with($line, '#') || trim($line) === '') continue;\n\n /* Find description setting */\n else if(starts_with($line, 'description')) $this->parseDescription($line);\n\n /* Find help setting */\n else if(starts_with($line, 'help')) $this->parseHelp($line);\n\n /* Capture commands */\n else if(starts_with_whitespace($line)) $plugin->parseCommand($line);\n\n /* Start plugin capture */\n else {\n $plugin = $this->parseCurrentPlugin($line);\n }\n }\n\n fclose($handle);\n\n /* Set state as parsed */\n $this->isParsed = true;\n }", "public function parse()\n {\n $contents = file_get_contents($this->uploadPath);\n if ($contents === false)\n {\n throw new Exception(\"SYSTEM: Can't read temp file\");\n }\n\n $comments = array();\n $css = array();\n $fontFamilies = array();\n $colors = array();\n\n // store and remove comments - found this regex on official CSS 2.1 spec page\n preg_match_all('|\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\/|',$contents, $comments, PREG_SET_ORDER);\n $contents = preg_replace('|\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\/|','',$contents);\n\n // strip newlines\n $contents = preg_replace('/\\n/','',$contents);\n\n // can't take credit for this regex, found on stackexchange\n preg_match_all('/([^{]+)\\s*\\{\\s*([^}]+)\\s*}/',$contents, $css, PREG_SET_ORDER);\n\n // also can't take credit for this regex\n preg_match_all('/font-family\\s*?:.*?(;|(?=\"\"|\\'|;))/',$contents, $fontFamilies, PREG_SET_ORDER);\n\n // a couple more random data points\n preg_match_all('/color\\s*?:.*?(;|(?=\"\"|\\'|;))/',$contents, $colors, PREG_SET_ORDER);\n\n\n $this->parsedData['comments'] = $comments;\n $this->parsedData['css'] = $css;\n $this->parsedData['font_families'] = $fontFamilies;\n $this->parsedData['colors'] = $colors;\n\n }", "protected function _parseTemplate() {}", "public function render_control_templates()\n {\n }", "protected function parse() {}", "public function parse($file);", "public function parse($file);", "public function build_controls()\n\t{\n\t\t$this->add_control( 'title', [\n\t\t\t'label' => __( 'Title' )\n\t\t] );\n\t\t$this->add_control( 'content', [\n\t\t\t'label' => __( 'Content' ),\n\t\t\t'type' => 'textarea'\n\t\t] );\n\t\t$this->add_control( 'link_url', [\n\t\t\t'label' => __( 'URL' )\n\t\t] );\n\t\t$this->add_control( 'link_text', [\n\t\t\t'label' => __( 'Link Text' )\n\t\t] );\n\t\t$this->add_control( 'link_target', [\n\t\t\t'label' => __( 'Open link in a new window/tab' ),\n\t\t\t'type' => 'checkbox',\n\t\t\t'value' => '1'\n\t\t] );\n\t}", "function controls()\n\t{\n\t}", "public function output_widget_control_templates()\n {\n }", "public static function parse() {\n if (\\CMS::$_vars[3] == 'submit') {\n switch (\\CMS::$_vars[2]) {\n case 'add':\n self::add_submit();\n break;\n \n case 'edit':\n self::edit_submit();\n break;\n }\n }\n\n\n /* Page Content Handlers */\n switch (\\CMS::$_vars[2]) {\n case 'add':\n self::$_pagemode = 'add';\n self::add();\n break;\n \n case 'edit':\n self::$_pagemode = 'edit';\n self::edit();\n break;\n \n case 'confirmdelete':\n self::$_pagemode = 'confirmdelete';\n self::confirmdelete();\n break;\n \n case 'delete':\n self::$_pagemode = 'delete';\n self::delete();\n break;\n \n \n case 'list':\n self::$_pagemode = 'listall';\n self::listall();\n break;\n \n default:\n self::$_pagemode = 'listall';\n self::listall(); \n }\n\n if (self::$_status) {\n \\Html::set('{status}', self::$_status);\n }else{\n \\Html::set('{status}', '');\n }\n }", "public function loadControl($path){\n\t\t\t//echo $paht;\n\t\t\t$control = Configuration::getParameter(\"TEMPLATE_FOLDER_PATH\") . $path;\n\t\t\t$userControl = file_get_contents($control, \"r\");\n\t\t\t$domDocument = str_get_html($userControl);\n\t\t\t$userControl = self::parsePage($domDocument);\n\t\t\treturn $userControl; \n\t\t}", "public function BuildControls() {\n\n $this->EncType= $this->GetOption('EncType');\n\n // convert array of arrays into array of objects\n foreach($this->Controls as $Name=>&$Control) {\n // skip already builded controls\n if (is_object($Control)) {\n continue;\n }\n // find classname\n if (!isset($Control['Type'])) {\n $Control += array('Type'=>'text', 'Attributes'=>array('UNKNOWNTYPE'=>'YES'));\n }\n if (strpos($Control['Type'], '\\\\') === false) { // short name, ex.: \"select\"\n $Type= ucfirst($Control['Type']);\n $Class= '\\\\Accent\\\\Form\\\\Control\\\\'.$Type.'Control';\n } else { // it is fully qualified class name\n $Class= $Control['Type'];\n }\n if (!class_exists($Class)) {\n $this->Error('Class \"'.$Class.'\" not found.');\n $Class= '\\\\Accent\\\\Form\\\\Control\\\\TextControl'; // fallback to any primitive control\n }\n // copy this array into $Options and append few more items\n // and append common options to allow usage of services\n $Options= $Control + array(\n 'Name'=> $Name,\n 'Form'=> $this,\n 'Book'=> $this->GetOption('Book')\n ) + $this->GetCommonOptions();\n $Control= new $Class($Options);\n // switch to multipart encoding if any control require that\n if ($Control->GetMultipartEncoding()) {\n $this->EncType= 'multipart/form-data';\n }\n }\n $this->Builded= true;\n }", "public function getControlSpec()\n {\n return $this->control_spec;\n }", "public function controls()\n {\n }", "public function prepare_controls()\n {\n }", "function parse(&$reader, &$ctxt)\r\n\t{\r\n\t\t$parser =& new PhaseParser($reader, $ctxt);\r\n\t\t$output = '';\r\n\t\t\r\n\t\t// NOTE: this method provides an easy way to setup the tag libraries\r\n\t\t$parser->loadTagLibraries();\r\n\r\n\t\twhile ($reader->hasMoreInput())\r\n\t\t{\r\n\t\t\t$output .= $parser->parseElements();\r\n\t\t}\r\n\r\n\t\t// tack on the tag functions, wrapping them in the namespace\r\n\t\t// for this phase context\r\n\t\tif (count($parser->tagFunctions))\r\n\t\t{\r\n\t\t\t$output .= \r\n\t\t\t'<?php' . \"\\n\" .\r\n\t\t\t'class ' . $parser->namespace . ' {' . \"\\n\" .\r\n\t\t\timplode(\"\\n\", array_reverse($parser->tagFunctions)) . \"\\n\" .\r\n\t\t\t'}' . \"\\n\" .\r\n\t\t\t'?>' . \"\\n\";\t\r\n\t\t}\r\n\r\n\t\t// merge sections where php tags have become adjacent (no need for them)\r\n\t\t$output = preg_replace('; *\\?><\\?php *;', ' ', $output);\r\n\r\n\t\treturn $output;\r\n\t}", "private function ParseFile() {\r\n\t\t$this->ini_array = parse_ini_file($this->$results_file, true); //Load the results into a array //\r\n\t}", "private function parse_pack( $file )\n\t\t{\n\t\t\t$lines = file( $file );\n\n\t\t\tforeach( $lines as $line )\n\t\t\t{\n\t\t\t\t$parts = explode( \"\\t\", $line );\n\n\t\t\t\t// Clean up the data once now\n\t\t\t\tforeach( $parts as &$part )\n\t\t\t\t\t$part = trim( $part );\n\n\t\t\t\t// Pull out the data\n\t\t\t\tswitch( strtolower( $parts[0] ) )\n\t\t\t\t{\n\t\t\t\t\tcase \"header-datacol\":\n\t\t\t\t\tcase \"header-coord\":\n\t\t\t\t\tcase \"header-parent map\":\n\t\t\t\t\tcase \"header-map\":\n\t\t\t\t\tcase \"header-map info\":\n\t\t\t\t\tcase \"header-transects\":\n\t\t\t\t\t\t$idx = $this->parse_header_col( $parts );\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"datacol\":\n\t\t\t\t\t /* Format:\n\t\t\t\t\t \t\t\t0\t\t\t\t\t1\t\t\t\t2\t\t\t 3\t\t\t\t\t\t4\t\t\t\t\t\t\t5\t\t\t\t\t 6\t\t\t\t7\n\t\t\t\t\t\t\tDATACOL -- NAME -- LON -- LAT -- DEFAULT ON/OFF -- MIN-AGE -- MAX-AGE -- NOTE\n\t\t\t\t\t\t*/\n\t\t\t\t\t\t/*$tmp = array();\n\n\t\t\t\t\t\t$tmp[\"name\"]\t\t= $parts[1];\n\t\t\t\t\t\t$tmp[\"lon\"] \t\t= $parts[2];\n\t\t\t\t\t\t$tmp[\"lat\"]\t\t= $parts[3];\n\t\t\t\t\t\t$tmp[\"default\"]\t\t= $parts[4];\n\t\t\t\t\t\t$tmp[\"min\"]\t\t= $parts[5];\n\t\t\t\t\t\t$tmp[\"max\"]\t\t= $parts[6];\n\t\t\t\t\t\t$tmp[\"note\"]\t\t= $parts[7];*/\n\n\t\t\t\t\t\t$has = array(\"name\", \"lon\", \"lat\", \"default on/off\", \"min-age\", \"max-age\", \"note\");\n\t\t\t\t\t\t$tmp = $this->get_col_vals( $has, $idx, $parts );\n\t\t\t\t\t\t$tmp[\"default\"] = ( $tmp[\"default_on/off\"] == \"on\" ? true : false );\n\t\t\t\t\t\t$tmp[\"type\"] = \"datacol\";\n\n\t\t\t\t\t\t$this->datacols[] = $tmp;\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"coord\":\n\t\t\t\t\t\t/* Format:\n\t\t\t\t\t\t\t\t0\t\t\t\t\t\t\t1\t\t\t\t\t\t\t\t\t2\t\t\t\t\t\t\t\t\t3\t\t\t\t\t\t\t\t\t4\t\t\t\t\t\t\t\t\t\t5\n\t\t\t\t\t\t\tCOORD -- COORDINATE TYPE -- UPPER LEFT LON -- UPPER LEFT LAT -- LOWER RIGHT LON -- LOWER RIGHT LAT\t\n\t\t\t\t\t\t\t 0 1 2 3 4 5\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tOORD -- COORDINATE TYPE -- CENTER LAT -- CENTER LON -- HEIGHT -- SCALE \n\t\t\t\t\t\t*/\n\t\t\t\t\t\t/*$tmp = array();\n\n\t\t\t\t\t\t$tmp[\"type\"]\t\t\t\t\t\t= $parts[1];\n\t\t\t\t\t\t$tmp[\"upper_left_lon\"]\t= $parts[2];\n\t\t\t\t\t\t$tmp[\"upper_left_lat\"]\t= $parts[3];\n\t\t\t\t\t\t$tmp[\"lower_right_lon\"]\t= $parts[4];\n\t\t\t\t\t\t$tmp[\"lower_right_lat\"]\t= $parts[5];*/\n\n\t\t\t\t\t\t$has = array(\"coordinate type\", \"center lat\", \"center lon\", \"height\", \"scale\");\n\t\t\t\t\t\t$tmp = $this->get_col_vals( $has, $idx, $parts, true );\n\t\t\t\t\t\t$coord = \"vertical\";\n\n\t\t\t\t\t\tif($tmp === false) {\n\t\t\t\t\t\t\t$has = array(\"coordinate type\", \"upper left lon\", \"upper left lat\", \"lower right lon\", \"lower right lat\");\n\t\t\t\t\t\t\t$tmp = $this->get_col_vals( $has, $idx, $parts );\n\t\t\t\t\t\t\t$coord = \"rectangluar\";\n\t\t\t\t\t\t} \n\n\t\t\t\t\t\t$tmp[\"coord\"] = $coord;\n\n\t\t\t\t\t\t$this->coordinate = $tmp;\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"parent map\":\n\t\t\t\t\t\t/* Format:\n\t\t\t\t\t\t\t\t\t0\t\t\t\t\t\t\t\t1\t\t\t\t\t\t\t\t2\t\t\t\t\t\t\t\t\t\t3\t\t\t\t\t\t\t\t\t4\t\t\t\t\t\t\t\t\t5\t\t\t\t\t\t\t\t6\n\t\t\t\t\t\t\tPARENT MAP -- PARENT NAME -- COORDINATE TYPE -- UPPER LEFT LON -- UPPER LEFT LAT -- LOWER RIGHT LON -- LOWER RIGHT LAT\n\t\t\t\t\t\t*/\n\t\t\t\t\t\t/*$tmp = array();\n\n\t\t\t\t\t\t$tmp[\"parent_name\"]\t\t\t= $parts[1];\n\t\t\t\t\t\t$tmp[\"coordinate_type\"]\t= $parts[2];\n\t\t\t\t\t\t$tmp[\"upper_left_lon\"]\t=\t$parts[3];\n\t\t\t\t\t\t$tmp[\"upper_left_lat\"]\t= $parts[4];\n\t\t\t\t\t\t$tmp[\"lower_right_lon\"]\t= $parts[5];\n\t\t\t\t\t\t$tmp[\"lower_right_lat\"] = $parts[6];*/\n\n\t\t\t\t\t\t$has = array(\"parent name\", \"coordinate type\", \"upper left lon\", \"upper left lat\", \"lower right lon\", \"lower right lat\");\n\t\t\t\t\t\t$tmp = $this->get_col_vals( $has, $idx, $parts );\n\n\t\t\t\t\t\t$this->parent_map = $tmp;\n\t\t\t\t\tbreak;\n\n\t\t\t \t\tcase \"map info\":\n\t\t\t\t\t\t/* Format:\n\t\t\t\t\t\t\t\t\t0\t\t\t\t\t1\t\t\t\t\t\t2\t\t\t\t3\n\t\t\t\t\t\t\tMAP INFO -- MAP NAME -- IMAGE -- NOTE \n\t\t\t\t\t\t*/\n\t\t\t\t\t\t/*$tmp = array();\n\n\t\t\t\t\t\t$tmp[\"map_name\"] \t= $parts[1];\n\t\t\t\t\t\t$tmp[\"image\"] \t\t= $parts[2];\n\t\t\t\t\t\t$tmp[\"note\"]\t\t\t= $parts[3];*/\n\n\t\t\t\t\t\t$has = array(\"map name\", \"image\", \"note\");\n\t\t\t\t\t\t$tmp = $this->get_col_vals( $has, $idx, $parts );\n\n\t\t\t\t\t\t$this->map_info = $tmp;\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"default ages\":\n\t\t\t\t\t\t/* Format:\n\t\t\t\t\t\t\t\t\t\t0\t\t\t\t\t\t1\t\t\t\t\t\t2\t\t\t\t\t\t\t\t3\n\t\t\t\t\t\t\tDEFAULT AGES -- TOP AGE -- BASE AGE -- VERTICAL SCALE\n\t\t\t\t\t\t*/\n\t\t\t\t\t\t/*$tmp = array();\n\n\t\t\t\t\t\t$tmp[\"top_age\"] \t\t\t\t= $parts[1];\n\t\t\t\t\t\t$tmp[\"base_age\"]\t \t\t\t= $parts[2];\n\t\t\t\t\t\t$tmp[\"vertical_scale\"]\t= $parts[3];*/\n\n\t\t\t\t\t\t$has = array(\"top age\", \"base age\", \"vertical scale\");\n\t\t\t\t\t\t$tmp = $this->get_col_vals( $has, $idx, $parts );\n\n\t\t\t\t\t\t$this->default_age = $tmp;\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"map-version\":\n\t\t\t\t\t\t/* Format:\n\t\t\t\t\t\t\t\t\t0\t\t\t\t\t\t\t1\n\t\t\t\t\t\t\tMAP-VERSION -- VERSION\n\t\t\t\t\t\t*/\n\n\t\t\t\t\t\t$this->version = $parts[1];\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"transect\":\n\t\t\t\t\t\t/* Format:\n\t\t\t\t\t\t\t\t\t\t 0\t\t\t\t\t\t 1\t\t\t 2\t\t\t\t\t3 4\n\t\t\t\t\t\t\tHEADER TRANSECTS -- NAME -- STARTLOC -- ENDLOC -- NOTE\n\t\t\t\t\t\t*/\n\t\t\t\t\t\t$has = array(\"name\", \"startloc\", \"endloc\", \"note\");\n\t\t\t\t\t\t$tmp = $this->get_col_vals( $has, $idx, $parts );\n\n\t\t\t\t\t\t$start = $end = false;\n\t\t\t\t\t\tforeach( $this->datacols as $col ) {\n\t\t\t\t\t\t\t\tif($col[\"name\"] == $tmp[\"startloc\"]) {\n\t\t\t\t\t\t\t\t\t$start = $col;\n\t\t\t\t\t\t\t\t} else if ($col[\"name\"] == $tmp[\"endloc\"]) {\n\t\t\t\t\t\t\t\t\t$end = $col;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(!$start || !$end) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($start[\"min\"] < $end[\"min\"])\n\t\t\t\t\t\t\t$tmp[\"min\"] = $start[\"min\"];\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$tmp[\"min\"] = $end[\"min\" ];\n\n\t\t\t\t\t\tif($start[\"max\"] > $end[\"max\"])\n\t\t\t\t\t\t\t$tmp[\"max\"] = $start[\"max\"];\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$tmp[\"max\"] = $end[\"max\" ];\n\n\t\t\t\t\t\tif($start[\"default_on/off\"] || $end[\"default_on/off\"])\n\t\t\t\t\t\t\t$tmp[\"default_on/off\"] = true;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$tmp[\"default_on/off\"] = false;\n\n\t\t\t\t\t\t$tmp[\"type\"] = \"transect\";\n\n\t\t\t\t\t\t$this->datacols[] = $tmp;\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// Skip the line\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "protected function parseSteps()\r\n {\r\n $this->_steps = $this->_parseSteps($this->steps);\r\n $this->_stepLabels = array_flip($this->_steps);\r\n $this->_steps = $this->_steps;\r\n }", "private static function _parse()\n {\n $data = array();\n $data['tab-label'] = $_POST['tab-label'];\n $data['title-disabled'] = (bool) @$_POST['title-disabled'];\n $data['languages'] = $_POST['languages'];\n \n $data['languages'] = $_POST['languages'] ? explode(',',$_POST['languages']) : array(); \n $data['info'] = trim($_POST['info']); \n\t\t\n\t\t\n $data['required-width-comparator'] = $_POST['required-width-comparator']; \n $data['required-width'] = $_POST['required-width']; //do not cast to int\n\t\t$data['required-width-ranges'] = $_POST['required-width-ranges'] ? array_map('self::_explodeRangeRow', explode(';', $_POST['required-width-ranges'])) : array(); //twice explode\n\n\n\t\t$data['required-height-comparator'] = $_POST['required-height-comparator']; \n $data['required-height'] = $_POST['required-height']; //do not cast to int\n\t\t$data['required-height-ranges'] = $_POST['required-height-ranges'] ? array_map('self::_explodeRangeRow', explode(';', $_POST['required-height-ranges'])) : array(); //twice explode\n\n \n $data['fields'] = array();\n \n for ($i=0; isset($_POST['field-'.$i.'-type']); $i++) {\n $field = array();\n \n $field['label'] = $_POST['field-'.$i.'-label'];\n $field['type'] = $_POST['field-'.$i.'-type'];\n $field['required'] = (bool)@$_POST['field-'.$i.'-required'];\n \n if ($field['type'] == 'select')\n $field['options'] = preg_replace('/\\s\\s+/', ',', $_POST['field-'.$i.'-options']);\n \n $data['fields'][] = $field;\n } \n\n $data['thumbnails'] = array();\n \n //thumbs\n for ($i=0; $i <= 1; $i++) {\n $thumb = array();\n\n $thumb['enabled'] = (bool) @$_POST['thumb-'.$i.'-enabled'];\n $thumb['required'] = (bool) @$_POST['thumb-'.$i.'-required'];\n $thumb['label'] = @$_POST['thumb-'.$i.'-label'];\n $thumb['width'] = @$_POST['thumb-'.$i.'-width'];\n $thumb['height'] = @$_POST['thumb-'.$i.'-height'];\n $thumb['auto-crop'] = @$_POST['thumb-'.$i.'-auto-crop'];\n \n $data['thumbnails'][] = $thumb;\n }\n\n return $data;\n }", "public function setupControl()\n\t{\n\t\t$this->addText('referenceNumber', 'Reference number:');\n\t\t$this->addSelect('priority', 'Priority:', PriorityEnum::getOptions());\n\t\t$this->addTextArea('symptoms', 'Symptoms:', 40, 8)\n\t\t\t->addRule(Form::FILLED, 'Symptoms are required.');\n\t\t$this->addText('problemOwner', 'Problem owner:');\n\t\t$this->addSelect('status', 'State:', array(\n\t\t\tOperationProblem::STATUS_NEW => 'new',\n\t\t\tOperationProblem::STATUS_INVESTIGATED => 'investigated',\n\t\t\tOperationProblem::STATUS_RESOLVED => 'resolved',\n\t\t\tOperationProblem::STATUS_CLOSED => 'closed'\n\t\t));\n\n\t\t$this->addSelect('category', 'Category:', array('' => $this->noCategoryText) + $this->getCategoriesOptions());\n\n\t\t$this->addTextArea('onEventRaw', 'onEvent:');\n\n\t\t$this->addSubmit('save', 'Save problem');\n\n\t\t$this->onValidate[] = $this->onValidateForm;\n\t}", "private function parseCharDefinitions($file) {\n\t\t$lines = array_map('trim', file($file));\n\t\tforeach ($lines as $line) {\n\t\t\tif ($line != '') {\n\t\t\t\tlist($class, $chars) = explode(\"\\t\", $line);\n\t\t\t\t$arr = preg_split('/\\s/u', $chars, -1,\n\t\t\t\t\t\t\t\t\tPREG_SPLIT_NO_EMPTY);\n\t\t\t\t$this->classes[$class] = $arr;\n\t\t\t}\n\t\t}\n\t}", "private function compilar_metadatos_generales_puntos_control()\n\t{\n\t\t$this->manejador_interface->mensaje('Puntos de control', false);\n\t\tforeach( toba_info_editores::get_puntos_control() as $punto_control ) {\n\t\t\t$nombre_clase = 'toba_mc_gene__pcontrol_' . $punto_control['pto_control'];\n\t\t\t$archivo = $this->get_dir_generales_compilados() . '/'. $nombre_clase .'.php';\n\t\t\t$clase = new toba_clase_datos( $nombre_clase );\n\t\t\t//Cabecera\n\t\t\t$datos['cabecera'] = $punto_control;\n\t\t\t$datos['parametros'] = toba_proyecto_db::punto_control_parametros( $this->get_id(), $punto_control['pto_control'] );\n\t\t\t$datos['controles'] = toba_proyecto_db::punto_control_controles( $this->get_id(), $punto_control['pto_control'] );\n\t\t\t//Guardo el archivo\n\t\t\t$clase->agregar_metodo_datos('get_info', $datos );\n\t\t\t$clase->guardar( $archivo );\n\t\t\t$this->manejador_interface->progreso_avanzar();\n\t\t}\n\t\t$this->manejador_interface->progreso_fin();\n\t}", "public function parse(): void\n {\n $compression = $this->file->readShort();\n $this->parseImageData($compression);\n }", "function parseFile ($this_filename)\n{\n // returns $num_defines\n global $file_data;\n global $defines;\n\n $fh = fopen ($this_filename, \"rb\");\n\n $file_data ['handle'] = $fh;\n $file_data ['filename'] = $this_filename;\n $file_data ['line'] = 0;\n $file_data ['eof'] = 0;\n $file_data ['len'] = 0;\n $file_data ['idx'] = 0;\n $file_data ['last'] = 0;\n\n // Create the state table\n\n // read the define portion\n $state [0] = array ( 'string' => \"define('\",\n 'eatall' => 0,\n 'data' => '',\n 'sidx' => 0);\n\n // save all data upto the apostrophe\n $state [1] = array ( 'string' => \"'\",\n 'eatall' => 1,\n 'data' => '',\n 'sidx' => 0);\n\n // read till the comma\n $state [2] = array ( 'string' => \",\",\n 'eatall' => 0,\n 'data' => '',\n 'sidx' => 0);\n\n // State's 3 and 4 are too complex to anaylze in the normal way\n //\n // In state 3 we will read until we find the first non-whitespace\n //\n // In state 4 we will read and eat until we find an unquoted, unescaped\n // close paren.\n //\n // Then we will determine what to do about the quotes and such\n //\n\n // read till the first non-whitespace\n $state [3] = array ( 'string' => \"\",\n 'eatall' => 0,\n 'data' => '',\n 'sidx' => 0);\n\n // eat until we find a close paren\n $state [4] = array ( 'string' => \"\",\n 'eatall' => 1,\n 'data' => '',\n 'sidx' => 0);\n\n // After state's 3 and 4 we need to find the closing semi colon\n\n // read till the semicolon\n $state [5] = array ( 'string' => \";\",\n 'eatall' => 0,\n 'data' => '',\n 'sidx' => 0);\n\n $the_state = 0;\n $num_defines = 0;\n\n // keep reading characters till we reach the end of file\n\n while ($file_data ['eof'] == 0)\n {\n // get the next character\n\n getChar ();\n\n $cc = $file_data ['current'];\n $cc1 = $file_data ['last'];\n\n // we ignore white space, unless we are in the eatall states\n\n if (!isset($eatall) && ($cc == ' ' || $cc == '\\t'))\n {\n continue;\n }\n\n $idx = $state [$the_state]['sidx'];\n $schar = substr ($state [$the_state]['string'], $idx, 1);\n $eatall = $state [$the_state]['eatall'];\n \n // a special case when state is 3 and 4\n // in state 3 we read until we find a non-whitespace\n\n if ($the_state == 3)\n {\n if (strcmp ($cc, \" \") &&\n strcmp ($cc, \"\\t\"))\n {\n // ok when we get to a non-white space let's\n // transition to state 4\n\n $state [$the_state]['sidx'] = 0;\n $the_state ++;\n\n $in_quote = 0;\n $quote_type = \"'\";\n $dequoted = 0;\n\n if (!strcmp ($cc, \"'\") ||\n !strcmp ($cc, '\"'))\n {\n $in_quote = 1;\n $quote_type = $cc;\n }\n\n // put this character into the new state data\n\n $state[$the_state]['data'] = $cc;\n }\n\n continue;\n }\n\n // in state 4 we eat until we find an unquoted, unescaped\n // paren\n\n if ($the_state == 4)\n {\n if ($cc == ')' &&\n $cc1 != '\\\\' &&\n $in_quote == 0)\n {\n // we have completed state 4\n // call process_data to determine if we should\n // remove the starting and ending quotes if they\n // exist\n\n $state [$the_state]['data'] = process_data (\n $state [$the_state]['data']);\n\n $state [$the_state]['sidx'] = 0;\n\n $the_state++;\n\n continue;\n }\n\n // ok we need to check our quote status\n\n if ($in_quote == 1 &&\n !strcmp ($cc, $quote_type) &&\n strcmp ($cc1, \"\\\\\")) // make sure not escaped\n {\n // ok we have been dequoted\n\n $dequote = 1;\n $in_quote = 0;\n\n // if we pass an eol, append a newline\n\n if ($file_data ['eol'] == 1)\n $state [$the_state]['data'] .= \"\\n\";\n\n // save the quote\n\n $state [$the_state]['data'] .= $cc;\n\n continue;\n }\n\n // ok are we being quoted\n\n if ($in_quote == 0 &&\n (!strcmp ($cc, '\"') ||\n !strcmp ($cc, \"'\") ||\n !strcmp ($cc, '('))) // consider nonquoted, nonescaped\n // interior parens as quotes\n {\n // ok we are quoted again\n\n $in_quote = 1;\n $quote_type = $cc;\n\n // if we are quoted by parens, change the quote type \n // to be the close paren, to make the if statement\n // easier\n\n if (!strcmp ($cc, '('))\n $quote_type = ')';\n }\n\n // if we pass an eol, append a newline\n\n if ($file_data ['eol'] == 1)\n {\n $state [$the_state]['data'] .= \"\\n\";\n }\n\n // eat the character\n $state [$the_state]['data'] .= $cc;\n continue;\n }\n\n // normal states are here\n\n // eatall == 1, means we eat all characters till the one\n // in we are looking for, otherwise we skip characters till\n // we find the character\n\n if ($eatall == 0)\n {\n // ok we failed to finish the state machine,\n // we will restart the state machine\n\n if (strcmp ($cc, $schar))\n {\n // reset the states\n for ($i = 0; $i < 7; ++$i)\n {\n $state [$i]['sidx'] = 0;\n $state [$i]['data'] = '';\n }\n\n $the_state = 0;\n\n continue;\n }\n }\n else\n {\n if (strcmp ($cc, $schar) ||\n !strcmp ($cc1, '\\\\'))\n {\n // ok we eatall till we find our char\n\n if ($file_data ['eol'] == 1)\n $state [$the_state]['data'] .= \"\\n\";\n $state [$the_state]['data'] .= $cc;\n\n continue;\n }\n }\n\n // ok advance the state\n\n $len = strlen ($state [$the_state]['string']);\n $sidx = $state [$the_state]['sidx'];\n $sidx ++;\n $state [$the_state]['sidx'] = $sidx;\n\n // only use this code on a non eatall\n\n if ($eatall == 0)\n {\n if ($file_data ['eol'] == 1)\n $state [$the_state]['data'] .= \"\\n\";\n $state [$the_state]['data'] .= $cc;\n }\n\n // special case when we find the d in define\n\n if ($the_state == 0 && $sidx == 1)\n {\n // we have found the first character\n //\n // I want to store the starting and ending line numbers\n // so that when we rebuild the file, it will make the\n // assembly much easier.\n //\n\n $start_line = $file_data ['line'];\n }\n\n // check to see if we can advance the state\n\n if ($sidx >= $len)\n {\n // advance the state\n\n $state [$the_state]['sidx'] = 0;\n $the_state ++;\n\n if ($the_state == 6)\n {\n // bingo we have found a complete define statement\n\n $end_line = $file_data ['line'];\n\n // before aeembly, we need to see if we can handle this data\n \n if ( preg_match( \"/'\\s*.\\s*\\w+\\s*.\\s*'/\", $state[4]['data'], $pattern_match) ) $data_disable = true;\n else $data_disable = false;\n \n // ok assemble an array\n\n $this_define =\n array (\n 'name' => $state [1]['data'],\n 'data' => $state [4]['data'],\n 'start_line' => $start_line,\n 'end_line' => $end_line,\n 'disable' => $data_disable);\n\n // now save this\n\n $defines [$num_defines] = $this_define;\n $num_defines++;\n\n // reset the states\n for ($i = 0; $i < 7; ++$i)\n {\n $state [$i]['sidx'] = 0;\n $state [$i]['data'] = '';\n }\n\n $the_state = 0;\n }\n }\n }\n // ok we are done with the file\n\n fclose ($file_data ['handle']);\n\n /**********************************************/\n $fh = fopen ($this_filename, \"rb\");\n\n $file_data ['handle'] = $fh;\n $file_data ['filename'] = $this_filename;\n $file_data ['line'] = 0;\n $file_data ['eof'] = 0;\n $file_data ['len'] = 0;\n $file_data ['idx'] = 0;\n $file_data ['last'] = 0;\n\n // Create the state table\n\n // read the define portion\n $state [0] = array ( 'string' => \"define(\\\"\",\n 'eatall' => 0,\n 'data' => '',\n 'sidx' => 0);\n\n // save all data upto the apostrophe\n $state [1] = array ( 'string' => \"\\\"\",\n 'eatall' => 1,\n 'data' => '',\n 'sidx' => 0);\n\n // read till the comma\n $state [2] = array ( 'string' => \",\",\n 'eatall' => 0,\n 'data' => '',\n 'sidx' => 0);\n\n // State's 3 and 4 are too complex to anaylze in the normal way\n //\n // In state 3 we will read until we find the first non-whitespace\n //\n // In state 4 we will read and eat until we find an unquoted, unescaped\n // close paren.\n //\n // Then we will determine what to do about the quotes and such\n //\n\n // read till the first non-whitespace\n $state [3] = array ( 'string' => \"\",\n 'eatall' => 0,\n 'data' => '',\n 'sidx' => 0);\n\n // eat until we find a close paren\n $state [4] = array ( 'string' => \"\",\n 'eatall' => 1,\n 'data' => '',\n 'sidx' => 0);\n\n // After state's 3 and 4 we need to find the closing semi colon\n\n // read till the semicolon\n $state [5] = array ( 'string' => \";\",\n 'eatall' => 0,\n 'data' => '',\n 'sidx' => 0);\n\n $the_state = 0;\n //$num_defines = 0;\n\n // keep reading characters till we reach the end of file\n\n while ($file_data ['eof'] == 0)\n {\n // get the next character\n\n getChar ();\n\n $cc = $file_data ['current'];\n $cc1 = $file_data ['last'];\n\n // we ignore white space, unless we are in the eatall states\n\n if (!isset($eatall) && ($cc == ' ' || $cc == '\\t'))\n {\n continue;\n }\n\n $idx = $state [$the_state]['sidx'];\n $schar = substr ($state [$the_state]['string'], $idx, 1);\n $eatall = $state [$the_state]['eatall'];\n \n // a special case when state is 3 and 4\n // in state 3 we read until we find a non-whitespace\n\n if ($the_state == 3)\n {\n if (strcmp ($cc, \" \") &&\n strcmp ($cc, \"\\t\"))\n {\n // ok when we get to a non-white space let's\n // transition to state 4\n\n $state [$the_state]['sidx'] = 0;\n $the_state ++;\n\n $in_quote = 0;\n $quote_type = \"\\\"\";\n $dequoted = 0;\n\n if (!strcmp ($cc, \"'\") ||\n !strcmp ($cc, '\"'))\n {\n $in_quote = 1;\n $quote_type = $cc;\n }\n\n // put this character into the new state data\n\n $state[$the_state]['data'] = $cc;\n }\n\n continue;\n }\n\n // in state 4 we eat until we find an unquoted, unescaped\n // paren\n\n if ($the_state == 4)\n {\n if ($cc == ')' &&\n $cc1 != '\\\\' &&\n $in_quote == 0)\n {\n // we have completed state 4\n // call process_data to determine if we should\n // remove the starting and ending quotes if they\n // exist\n\n $state [$the_state]['data'] = process_data (\n $state [$the_state]['data']);\n\n $state [$the_state]['sidx'] = 0;\n\n $the_state++;\n\n continue;\n }\n\n // ok we need to check our quote status\n\n if ($in_quote == 1 &&\n !strcmp ($cc, $quote_type) &&\n strcmp ($cc1, \"\\\\\")) // make sure not escaped\n {\n // ok we have been dequoted\n\n $dequote = 1;\n $in_quote = 0;\n\n // if we pass an eol, append a newline\n\n if ($file_data ['eol'] == 1)\n $state [$the_state]['data'] .= \"\\n\";\n\n // save the quote\n\n $state [$the_state]['data'] .= $cc;\n\n continue;\n }\n\n // ok are we being quoted\n\n if ($in_quote == 0 &&\n (!strcmp ($cc, '\"') ||\n !strcmp ($cc, \"'\") ||\n !strcmp ($cc, '('))) // consider nonquoted, nonescaped\n // interior parens as quotes\n {\n // ok we are quoted again\n\n $in_quote = 1;\n $quote_type = $cc;\n\n // if we are quoted by parens, change the quote type \n // to be the close paren, to make the if statement\n // easier\n\n if (!strcmp ($cc, '('))\n $quote_type = ')';\n }\n\n // if we pass an eol, append a newline\n\n if ($file_data ['eol'] == 1)\n {\n $state [$the_state]['data'] .= \"\\n\";\n }\n\n // eat the character\n $state [$the_state]['data'] .= $cc;\n continue;\n }\n\n // normal states are here\n\n // eatall == 1, means we eat all characters till the one\n // in we are looking for, otherwise we skip characters till\n // we find the character\n\n if ($eatall == 0)\n {\n // ok we failed to finish the state machine,\n // we will restart the state machine\n\n if (strcmp ($cc, $schar))\n {\n // reset the states\n for ($i = 0; $i < 7; ++$i)\n {\n $state [$i]['sidx'] = 0;\n $state [$i]['data'] = '';\n }\n\n $the_state = 0;\n\n continue;\n }\n }\n else\n {\n if (strcmp ($cc, $schar) ||\n !strcmp ($cc1, '\\\\'))\n {\n // ok we eatall till we find our char\n\n if ($file_data ['eol'] == 1)\n $state [$the_state]['data'] .= \"\\n\";\n $state [$the_state]['data'] .= $cc;\n\n continue;\n }\n }\n\n // ok advance the state\n\n $len = strlen ($state [$the_state]['string']);\n $sidx = $state [$the_state]['sidx'];\n $sidx ++;\n $state [$the_state]['sidx'] = $sidx;\n\n // only use this code on a non eatall\n\n if ($eatall == 0)\n {\n if ($file_data ['eol'] == 1)\n $state [$the_state]['data'] .= \"\\n\";\n $state [$the_state]['data'] .= $cc;\n }\n\n // special case when we find the d in define\n\n if ($the_state == 0 && $sidx == 1)\n {\n // we have found the first character\n //\n // I want to store the starting and ending line numbers\n // so that when we rebuild the file, it will make the\n // assembly much easier.\n //\n\n $start_line = $file_data ['line'];\n }\n\n // check to see if we can advance the state\n\n if ($sidx >= $len)\n {\n // advance the state\n\n $state [$the_state]['sidx'] = 0;\n $the_state ++;\n\n if ($the_state == 6)\n {\n // bingo we have found a complete define statement\n\n $end_line = $file_data ['line'];\n\n // before aeembly, we need to see if we can handle this data\n \n if ( preg_match( \"/'\\s*.\\s*\\w+\\s*.\\s*'/\", $state[4]['data'], $pattern_match) ) $data_disable = true;\n else $data_disable = false;\n \n // ok assemble an array\n\n $this_define =\n array (\n 'name' => $state [1]['data'],\n 'data' => $state [4]['data'],\n 'start_line' => $start_line,\n 'end_line' => $end_line,\n 'disable' => $data_disable);\n\n // now save this\n\n $defines [$num_defines] = $this_define;\n $num_defines++;\n\n // reset the states\n for ($i = 0; $i < 7; ++$i)\n {\n $state [$i]['sidx'] = 0;\n $state [$i]['data'] = '';\n }\n\n $the_state = 0;\n }\n }\n }\n // ok we are done with the file\n\n fclose ($file_data ['handle']);\n /**********************************************/\n\n return $num_defines;\n}", "protected function ParseCSSFile()\n {\n $this->_stylelist=$this->BuildStyleList($this->FileName, $this->_inclstandard, $this->_inclid, $this->_incsubstyle);\n }", "protected function parse(): void\n {\n $parseOptions = true;\n $this->parsed = $this->getTokens();\n \n while (null !== $token = array_shift($this->parsed)) {\n if ($parseOptions && '--' == $token) {\n $parseOptions = false;\n } elseif ($parseOptions && 0 === strpos($token, '--')) {\n $this->parseLongOption($token);\n } elseif ($parseOptions && '-' === $token[0] && '-' !== $token) {\n $this->parseShortOption($token);\n }\n }\n }", "protected function parseFile() {\n $this->title = $this->val(\"title\");\n $this->originalTitle = $this->val(\"originaltitle\");\n $this->sortTitle = $this->val(\"sorttitle\");\n $this->set = $this->val(\"set\");\n $this->rating = $this->val(\"rating\");\n $this->year = $this->val(\"year\");\n $this->top250 = $this->val(\"top250\");\n $this->votes = $this->val(\"votes\");\n $this->outline = $this->val(\"outline\");\n $this->plot = $this->val(\"plot\");\n $this->tagline = $this->val(\"tagline\");\n $this->runtime = $this->val(\"runtime\");\n $this->thumb = $this->val(\"thumb\");\n $this->mpaa = $this->val(\"mpaa\");\n $this->playCount = $this->val(\"playcount\");\n $this->id = $this->val(\"id\");\n $this->filenameAndPath = $this->val(\"filenameandpath\");\n $this->trailer = $this->val(\"trailer\");\n $this->genres = [];\n $genreNodeList = $this->doc->getElementsByTagName(\"genre\");\n foreach ($genreNodeList as $genre) {\n $this->genres[] = $genre->nodeValue;\n }\n $this->tags = [];\n $tagNodeList = $this->doc->getElementsByTagName(\"tag\");\n foreach ($tagNodeList as $tag) {\n $this->tags[] = $tag->nodeValue;\n }\n $this->credits = $this->val(\"credits\");\n\n //create the skeleton fileinfo object\n $this->fileInfo = (object) [];\n $this->fileInfo->streamDetails = (object) [];\n $this->fileInfo->streamDetails->video = (object) [];\n $this->fileInfo->streamDetails->video->codec = null;\n $this->fileInfo->streamDetails->video->aspect = null;\n $this->fileInfo->streamDetails->video->width = null;\n $this->fileInfo->streamDetails->video->height = null;\n $this->fileInfo->streamDetails->audio = [];\n $this->fileInfo->streamDetails->subtitle = (object) [];\n $this->fileInfo->streamDetails->subtitle->language = null;\n\n\n\n $infoNode = $this->doc->getElementsByTagName(\"fileinfo\")->item(0);\n if ($infoNode !== null) {\n $streamDetailsNode = $infoNode->getElementsByTagName(\"streamdetails\")->item(0);\n if ($streamDetailsNode !== null) {\n $videoNode = $streamDetailsNode->getElementsByTagName(\"video\")->item(0);\n if ($videoNode !== null) {\n $this->fileInfo->streamDetails->video = (object) [];\n $this->fileInfo->streamDetails->video->codec = $this->val(\"codec\", $videoNode);\n $this->fileInfo->streamDetails->video->aspect = $this->val(\"aspect\", $videoNode);\n $this->fileInfo->streamDetails->video->width = $this->val(\"width\", $videoNode);\n $this->fileInfo->streamDetails->video->height = $this->val(\"height\", $videoNode);\n }\n $audioNodes = $streamDetailsNode->getElementsByTagName(\"audio\");\n if ($audioNodes !== null) {\n foreach ($audioNodes as $audioNode) {\n $codec = $this->val(\"codec\", $audioNode);\n $language = $this->val(\"language\", $audioNode);\n $channels = $this->val(\"channels\", $audioNode);\n $audio = (object) [];\n $audio->codec = $codec;\n $audio->language = $language;\n $audio->channels = $channels;\n $this->fileInfo->streamDetails->audio[] = $audio;\n }\n }\n $subtitleNode = $streamDetailsNode->getElementsByTagName(\"subtitle\")->item(0);\n if ($subtitleNode !== null) {\n $this->fileInfo->streamDetails->subtitle->language = $this->val(\"language\", $subtitleNode);\n }\n }\n }\n\n $this->directors = [];\n $directorNodes = $this->doc->getElementsByTagName(\"director\");\n foreach ($directorNodes as $directorNode) {\n $this->directors[] = $directorNode->nodeValue;\n }\n\n $this->actors = [];\n $actorNodeList = $this->doc->getElementsByTagName(\"actor\");\n foreach ($actorNodeList as $actorNode) {\n $actor = (object) [];\n $nameItem = $actorNode->getElementsByTagName(\"name\")->item(0);\n $actor->name = $nameItem != null ? $nameItem->nodeValue : \"\";\n $roleItem = $actorNode->getElementsByTagName(\"role\")->item(0);\n $actor->role = $roleItem != null ? $roleItem->nodeValue : \"\";\n //if we have either an actor name or role, add this actor\n if ($actor->name != \"\" || $actor->role != \"\") {\n $this->actors[] = $actor;\n }\n }\n //if made it to here, all is good. return true\n return true;\n }", "public static function handle() {\n\t\t\n\t\tif(!static::$multiline) {\n\t\t\t$node = nodes\\Tag::new_from_parser(static::$parser);\n\t\t\tstatic::parse_start($node);\n\t\t\t\n\t\t\tif(static::$multiline) {\n\t\t\t\tstatic::$parser->force_handler(get_called_class());\n\t\t\t\tstatic::$parser->expect_indent(Parser::EXPECT_MORE);\n\t\t\t}\n\t\t} else {\n\t\t\t$node = static::$parser->context();\n\t\t\t$node->content .= ' ' . static::$parser->content();\n\t\t\t\n\t\t\tswitch(static::$multiline) {\n\t\t\t\tcase self::MULTILINE_HTML_ATTRIBUTES:\n\t\t\t\t\tstatic::$multiline = false;\n\t\t\t\t\tstatic::parse_html_attributes($node);\n\t\t\t\tbreak;\n\t\t\t\tcase self::MULTILINE_RUBY_ATTRIBUTES:\n\t\t\t\t\tstatic::$multiline = false;\n\t\t\t\t\tstatic::parse_ruby_attributes($node);\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$node->exception('Sanity error: unknown multiline modifier');\n\t\t\t}\n\t\t\t\n\t\t\tif(static::$multiline)\n\t\t\t static::$parser->force_handler(get_called_class());\n\t\t}\n\t\t\n\t}", "public function getControls();", "public function getTokenParsers();", "protected function _parseOptions ($data) {\n $mode = 0;\n $section = '';\n $values = array ();\n\n # Character classes\n $letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $digits = '0123456789';\n $sectionchar = $letters . $digits . '_-.';\n $separatorchar = $sectionchar;\n\n # Convert Mac and MS-DOS line-feeds into Unix line-feeds. This\n # simplifies code below.\n $data = preg_replace ('/\\r\\n|\\r/', \"\\n\", $data);\n\n # Read line of data into buffer\n $i = 0;\n $n = strlen ($data);\n $done = false;\n while (!$done) {\n\n # Peek next character\n if ($i < $n) {\n $c = substr ($data, $i, 1);\n } else {\n $c = 'EOF';\n }\n\n # Deal with line\n switch ($mode) {\n case 0:\n # Initial mode\n switch ($c) {\n case ' ':\n case \"\\n\":\n case \"\\t\":\n # Ignore white space\n $i += strspn ($data, \" \\n\\t\", $i);\n break;\n\n case '[':\n # Start of section name\n $mode = 100;\n break;\n\n case '#':\n case '/':\n # Comment\n $len = $this->_getComment ($data, $i);\n if ($len > 0) {\n # Valid comment\n $i += $len;\n } else {\n # Not a comment\n $mode = 999;\n }\n break;\n\n case 'EOF':\n # Normal end of file\n $done = true;\n break;\n\n case ';':\n # Ignore\n $i++;\n break;\n\n default:\n if (strpos ($letters, $c) !== false) {\n # Option name\n $mode = 200;\n } else {\n # Invalid character\n $mode = 999;\n }\n }\n break;\n\n case 100:\n # Start of section name\n $i++;\n $section = '';\n $mode = 101;\n break;\n\n case 101:\n # Section name continued\n switch ($c) {\n case ']':\n # End of section name\n $mode = 0;\n $i++;\n break;\n\n case 'EOF':\n # Unexpected end of file\n $mode = 998;\n break;\n\n default:\n $len = strspn ($data, $sectionchar, $i);\n if ($len > 0) {\n # Character in section name\n $section .= substr ($data, $i, $len);\n $i += $len;\n } else {\n # Invalid character\n $mode = 999;\n }\n }\n break;\n\n case 200:\n # Start of option name\n $key = '';\n $value = '';\n $mode = 201;\n /*FALLTHROUGH*/\n\n case 201:\n # Option name continued\n switch ($c) {\n case ':':\n case '=':\n # Start of value\n $i++;\n $mode = 300;\n break;\n\n case ' ':\n case \"\\t\":\n # End of option name\n $mode = 202;\n break;\n\n case '#':\n case '/':\n # Comment\n $len = $this->_getComment ($data, $i);\n if ($len > 0) {\n # Valid comment\n $i += $len;\n } else {\n # Not a comment\n $mode = 999;\n }\n break;\n\n case \"\\n\":\n # Option name does not end in colon\n $mode = 999;\n break;\n\n case 'EOF':\n # Unexpected end of file\n $mode = 998;\n break;\n\n default:\n $len = strspn ($data, $letters . $digits, $i);\n if ($len > 0) {\n # Option name\n $key .= substr ($data, $i, $len);\n $i += $len;\n } else {\n # Invalid character\n $mode = 999;\n }\n }\n break;\n\n case 202:\n # Space after option name\n switch ($c) {\n case ':':\n case '=':\n # Start of value\n $i++;\n $mode = 300;\n break;\n\n case ' ':\n case \"\\t\":\n # Ignore white space\n $i += strspn ($data, \" \\t\", $i);\n break;\n\n case '#':\n case '/':\n # Comment\n $len = $this->_getComment ($data, $i);\n if ($len > 0) {\n # Valid comment\n $i += $len;\n } else {\n # Not a comment\n $mode = 999;\n }\n break;\n\n case \"\\n\":\n # Option name does not end in colon\n $mode = 999;\n break;\n\n case 'EOF':\n # Unexpected end of file\n $mode = 998;\n break;\n\n default:\n # Invalid character\n $mode = 999;\n }\n break;\n\n case 300:\n # Space before option value\n switch ($c) {\n case ' ':\n case \"\\t\":\n # Ignore white space before value\n $i += strspn ($data, \" \\t\", $i);\n break;\n\n case ';':\n case \"\\n\":\n # Line feed means no value\n $i++;\n /*FALLTHROUGH*/\n\n case 'EOF':\n # No value provided\n $mode = 398;\n break;\n\n case '\"':\n # Start of quoted string\n $i++;\n $mode = 320;\n break;\n\n case '<':\n # Start of multiline-data\n $i++;\n $mode = 330;\n break;\n\n case '#':\n case '/':\n # Comment\n $len = $this->_getComment ($data, $i);\n if ($len > 0) {\n # Valid comment\n $i += $len;\n } else {\n # Not a comment\n $mode = 999;\n }\n break;\n\n default:\n # Start of unquoted string\n $mode = 310;\n }\n break;\n\n case 310:\n # Start of unquoted string\n switch ($c) {\n case ';':\n case \"\\n\":\n # Linefeed ends value\n $i++;\n /*FALLTHROUGH*/\n\n case 'EOF':\n # EOF ends value\n $mode = 398;\n break;\n\n case ' ':\n case \"\\t\":\n # Space ends value\n $i++;\n $mode = 312;\n break;\n\n case '#':\n case '/':\n # Comment\n $len = $this->_getComment ($data, $i);\n if ($len > 0) {\n # Valid comment\n $i += $len;\n } else {\n # Slash in value\n $value .= $c;\n $i++;\n }\n break;\n\n default:\n # Regular characters within unqouted string\n $len = strcspn ($data, \" \\t\\n/#;\", $i);\n if ($len > 0) {\n $value .= substr ($data, $i, $len);\n $i += $len;\n } else {\n # Invalid character\n $mode = 999;\n }\n }\n break;\n\n case 312:\n # Space after unquoted value\n switch ($c) {\n case ' ':\n case \"\\t\":\n # Ignore excess white space\n $i++;\n break;\n\n case ';':\n case \"\\n\":\n # End of value\n $i++;\n /*FALLTHROUGH*/\n\n case 'EOF':\n # End of value\n $mode = 399;\n break;\n\n case '#':\n case '/':\n # Comment\n $len = $this->_getComment ($data, $i);\n if ($len > 0) {\n # Valid comment\n $i += $len;\n } else {\n # Not a comment\n $mode = 999;\n }\n break;\n\n default:\n # Invalid character\n $mode = 999;\n }\n break;\n\n case 320:\n # Inside quoted string\n switch ($c) {\n case 'EOF':\n # Missing close quote\n $mode = 998;\n break;\n\n case '\\\\':\n # Escape character\n $i++;\n $mode = 322;\n break;\n\n case '\"':\n # End of quoted string\n $i++;\n $mode = 323;\n break;\n\n default:\n # Regular characters inside string\n $len = strcspn ($data, '\\\\\"', $i);\n if ($len > 0) {\n $value .= substr ($data, $i, $len);\n $i += $len;\n } else {\n # Invalid character\n $mode = 999;\n }\n }\n break;\n\n case 322:\n # Escaped character inside quoted string\n switch ($c) {\n case 'EOF':\n # Backslash at the end of file\n $mode = 998;\n break;\n\n default:\n # Escaped character\n $value .= $c;\n $i++;\n $mode = 320;\n }\n break;\n\n case 323:\n # Space after quoted value\n switch ($c) {\n case ' ':\n case \"\\t\":\n # Ignore excess white space after quoted value\n $i++;\n break;\n\n case ';':\n case \"\\n\":\n # End of value\n $i++;\n /*FALLTHROUGH*/\n\n case 'EOF':\n # End of value\n $mode = 399;\n break;\n\n case '#':\n case '/':\n # Comment\n $len = $this->_getComment ($data, $i);\n if ($len > 0) {\n # Valid comment\n $i += $len;\n } else {\n # Not a comment\n $mode = 999;\n }\n break;\n\n default:\n # Invalid character\n $mode = 999;\n }\n break;\n\n case 330:\n # Start of multi-line value\n switch ($c) {\n case '<':\n # Ignore any number of less than signs. That is,\n # sequences <EOF, <<<EOF and <<<<<<EOF all begin\n # multi-line value alike.\n $i++;\n break;\n\n case ' ':\n case \"\\t\":\n case \"\\n\":\n # Missing separator string\n $mode = 999;\n break;\n\n case 'EOF':\n # Missing separator string\n $mode = 998;\n break;\n\n default:\n # Any other character starts separator string\n $separator = '';\n $mode = 331;\n }\n break;\n\n case 331:\n # Separator string\n switch ($c) {\n case ' ':\n case \"\\t\":\n # Space ends separator\n $mode = 332;\n break;\n\n case \"\\n\":\n # Line-feed starts the value\n $i++;\n $mode = 333;\n break;\n\n case 'EOF':\n # Unterminated value\n $mode = 998;\n break;\n\n default:\n # Collect separator string\n $len = strspn ($data, $separatorchar, $i);\n if ($len > 0) {\n $separator .= substr ($data, $i, $len);\n $i += $len;\n } else {\n # Invalid character\n $mode = 999;\n }\n }\n break;\n\n case 332:\n # Space after separator string\n switch ($c) {\n case ' ':\n case \"\\t\":\n # Ignore spaces\n $i += strspn ($data, \" \\t\", $i);\n break;\n\n case \"\\n\":\n # Line-feed starts the multi-line value\n $i++;\n $mode = 333;\n break;\n\n case 'EOF':\n # Unterminated string\n $mode = 998;\n break;\n\n default:\n # Invalid character\n $mode = 999;\n }\n break;\n\n case 333:\n # Inside multi-line value\n $pos = strpos ($data, \"\\n$separator\", $i - 1);\n if ($pos !== false) {\n\n # Compute length of value\n $len = $pos - $i;\n if ($len > 0) {\n\n # Extract value up until the possible separator\n $value .= substr ($data, $i, $len);\n $i += $len;\n\n }\n\n # Remember starting position of possible separator\n $separatorpos = $i;\n\n # Skip separator\n if (substr ($data, $i, 1) == \"\\n\") {\n $i++;\n }\n $i += strlen ($separator);\n\n # Continue parsing after separator\n $mode = 334;\n\n } else {\n\n # Unterminated string\n $mode = 998;\n\n }\n break;\n\n case 334:\n # White space after possible separator\n switch ($c) {\n case ';':\n case \"\\n\":\n # End of row\n $i++;\n /*FALLTHROUGH*/\n\n case 'EOF':\n # Store value as string\n $mode = 399;\n break;\n\n case ' ':\n case \"\\t\":\n # Ignore excess white space\n $i += strspn ($data, \" \\t\", $i);\n break;\n\n case '#':\n case '/':\n # Skip comments\n $len = $this->_getComment ($data, $i);\n if ($len > 0) {\n # Valid comment\n $i += $len;\n break;\n }\n /*FALLTHROUGH*/\n\n default:\n # Text follows separator so the separator was\n # fake. Store separator as value and continue\n # looking for real separator.\n $i = $separatorpos;\n if (substr ($data, $i, 1) == \"\\n\") {\n $value .= \"\\n\";\n $i++;\n }\n $len = strlen ($separator);\n $value .= substr ($data, $i, $len);\n $i += $len;\n $mode = 333;\n }\n break;\n\n case 398:\n # Convert value to proper data type and store\n $value = $this->_convertValue ($value);\n /*FALLTHROUGH*/\n\n case 399:\n # Store value as is\n if ($section != '' && $section != 'global') {\n\n # Store in named section\n $key = $section . '.' . $key;\n\n } else {\n\n # Store in global section\n $key = \"global.$key\";\n\n }\n $values[$key] = $value;\n $mode = 0;\n break;\n\n case 998:\n throw new Exception ('Unexpected EOF');\n\n case 999:\n $str = substr ($data, $i, 15);\n throw new Exception (\"Parse error near $str\");\n\n default:\n throw new Exception (\"Invalid mode $mode\");\n }\n }\n return $values;\n }", "public function compile()\r\n\t{\r\n\t\t$this->writeToTemplate(($this->picker != 'unit') ? ($this->multiple) ? deserialize($this->Value->multiField) : $this->Value->textField : deserialize($this->Value->inputUnit));\t\r\n\t}", "protected function _register_controls()\n {\n $this->tab_content();\n $this->tab_style();\n }", "private function buildControls(array $row)\n\t{\n\t\t\t\t\t\t\tif (count($this->controls) > 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\techo '<td class=\"tbl-controls\">';\n\t\t\t\t\t\t\t\t\tforeach ($this->controls as $ctl)\n\t\t\t\t\t\t\t\t\t\techo $this->parseVariables($row, $ctl);\n\t\t\t\t\t\t\t\t\techo '</td>';\n}\n}", "protected function _register_controls() {\n\n\t\t$this->start_controls_section(\n\t\t\t'content_section',\n\t\t\t[\n\t\t\t\t'label' => __( 'Content', 'portfolio-elementor' ),\n\t\t\t\t'tab' => \\Elementor\\Controls_Manager::TAB_CONTENT,\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Counter Number\n\t\t$this->add_control(\n\t\t\t'portfolio_counter_number',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Counter Number', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'label_block' => true,\n\t\t\t\t'default' => esc_html__( 'Enter Counter Number' , 'portfolio-elementor' ),\n\t\t\t]\n\t\t);\n\n\t\t// Counter Title\n\t\t$this->add_control(\n\t\t\t'portfolio_counter_title',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Title', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'label_block' => true,\n\t\t\t\t'default' => esc_html__( 'Enter Counter Title' , 'portfolio-elementor' ),\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->end_controls_section();\n\t\t// end of the Content tab section\n\t\t\n\t\t// start of the Style tab section\n\t\t$this->start_controls_section(\n\t\t\t'style_section',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Content Style', 'portfolio-elementor' ),\n\t\t\t\t'tab' => \\Elementor\\Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->start_controls_tabs(\n\t\t\t'style_tabs'\n\t\t);\n\t\t\n\t\t// start everything related to Normal state here\n\t\t$this->start_controls_tab(\n\t\t\t'style_normal_tab',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Normal', 'portfolio-elementor' ),\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Counter Box Options\n\t\t$this->add_control(\n\t\t\t'portfolio_counter_box_options',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Counter Box', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Counter Box Background Color\n\t\t$this->add_control(\n\t\t\t'portfolio_counter_box_background',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Background-Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#f7f7f7',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .counter-box' => 'background: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Counter Box Border\n\t\t$this->add_control(\n\t\t\t'portfolio_counter_box_border',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Border', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#eee',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .counter-box' => 'border: 8px solid {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t// Counter Number Options\n\t\t$this->add_control(\n\t\t\t'portfolio_counter_number_options',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Counter Number', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\n\t\t// Counter Number Color\n\t\t$this->add_control(\n\t\t\t'portfolio_counter_number_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Number Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '232332',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .counter-box h3' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Counter Number Typography\n\t\t$this->add_group_control(\n\t\t\t\\Elementor\\Group_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'portfolio_counter_number_typography',\n\t\t\t\t'label' => esc_html__( 'Typography', 'portfolio-elementor' ),\n\t\t\t\t'scheme' => \\Elementor\\Scheme_Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .counter-box h3',\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Counter Title Options\n\t\t$this->add_control(\n\t\t\t'portfolio_counter_title_options',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Counter Title', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Counter Title Color\n\t\t$this->add_control(\n\t\t\t'portfolio_counter_title_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#232332',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .counter-box h6' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Counter Title Typography\n\t\t$this->add_group_control(\n\t\t\t\\Elementor\\Group_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'portfolio_counter_title_typography',\n\t\t\t\t'label' => esc_html__( 'Typography', 'portfolio-elementor' ),\n\t\t\t\t'scheme' => \\Elementor\\Scheme_Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .counter-box h6',\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->end_controls_tab();\n\t\t// end everything related to Normal state here\n\n\t\t// start everything related to Hover state here\n\t\t$this->start_controls_tab(\n\t\t\t'style_hover_tab',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Hover', 'portfolio-elementor' ),\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->end_controls_tab();\n\t\t// end everything related to Hover state here\n\n\t\t$this->end_controls_tabs();\n\n\t\t$this->end_controls_section();\n\t\t// end of the Style tab section\n\n\t}", "abstract public function parseRules();", "public function checkControls($html){\n\t\t\t$regex = \"<TAG:\"; $controls = spliti($regex, $html); $method; $stringWithControls = \"\";\n\t\t\t$a_method; $methodString;\n\t\t\tif(count($controls)>1) {\n\t\t\t\tfor ($x = 0; $x < count($controls); $x++) {\n\t\t\t\t\t$a_method = spliti(\"/>\", $controls[$x]);\n\t\t\t\t\tif(count($a_method)>1) {\n\t\t\t\t\t\t$methodString = spliti(\"\\(\", $a_method[0]);\n\t\t\t\t\t\t$method = $methodString[0];\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif(trim($method) !== \"\");\n\t\t\t\t\t\t\t\t$stringWithControls .= call_user_func(trim($a_method[0])) . $a_method[1];\n\t\t\t\t\t\t} catch(Exception $error){}\n\t\t\t\t\t} else \n\t\t\t\t\t\t$stringWithControls .= $controls[$x];\n\t\t\t\t}\n\t\t\t} else \n\t\t\t\t$stringWithControls = $html;\n\t\t\treturn $stringWithControls;\n\t\t}", "private function process_raw_shortcode()\n\t{\n\t // GENERAL DETAILS\n\t $this->length \t= strlen($this->raw);\n\t $this->end\t= $this->start + $this->length;\n\n\t // KEY & VALUE\n\t $key_val_pair \t= explode('::', $this->raw);\n\n\t // check to see if both key and value have been given\n\t if (sizeof($key_val_pair) > 1)\n\t {\n\t\t $this->key = $key_val_pair[0];\n\t\t $this->value = $key_val_pair[1];\t\n\t }else{\n\t\t $http = strpos($this->raw, 'http');\n\n\t\t if($http === false){\n\t\t\t $this->key = 'internal';\n\t\t }else{\n\t\t\t $this->key = 'external';\n\t\t }\n\t\t $this->value = $this->raw;\n\t }\n\t}", "protected function _register_controls() {\n\t}", "protected function _register_controls_parent() {\n $this->start_controls_section(\n 'custom_css_section',\n [\n 'label' => __('Custom CSS', 'unifato_addons'),\n 'tab' => \\Elementor\\Controls_Manager::TAB_CONTENT,\n ]\n );\n\n\n\t\t$this->add_control(\n\t\t\t'custom_css',\n\t\t\t[\n\t\t\t\t'label' => __( 'Custom CSS', 'unifato_addons' ),\n 'description' => __('Use <span style=\"color: red\">[SELECTOR]</span> to target selector. <br/><br/> <i>Example:</i> <br /><pre style=\"font-style: normal\">[SELECTOR] a {<br /> color: red;<br />}</pre>', 'unifato_addons'),\n 'default' => '',\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::CODE,\n\t\t\t\t'language' => 'css',\n\t\t\t\t'rows' => 20,\n\t\t\t]\n\t\t);\n\n $this->end_controls_section();\n\n $this->start_controls_section(\n 'additional_style_section',\n [\n 'label' => __('Additional Style', 'unifato_addons'),\n 'tab' => \\Elementor\\Controls_Manager::TAB_CONTENT,\n ]\n );\n\n $this->add_control(\n 'white_skin',\n [\n 'label' => __('White Skin?', 'unifato_addons'),\n 'type' => \\Elementor\\Controls_Manager::SWITCHER,\n 'label_on' => __( 'Yes', 'unifato_addons' ),\n 'label_off' => __( 'No', 'unifato_addons' ),\n 'return_value' => 'text-white',\n 'default' => 'no',\n 'dynamic' => [\n 'active' => true\n ],\n 'prefix_class' => '',\n ]\n );\n\n $this->end_controls_section();\n }", "public function parseNavigationControlPage($controlPage)\n {\n global $ID;\n\n // fetch the instructions of the control page\n $instructions = p_cached_instructions(wikiFN($controlPage), false, $controlPage);\n if (!$instructions) return [];\n\n // prepare some vars\n $max = count($instructions);\n $pre = true;\n $lvl = 0;\n $parents = array();\n $page = '';\n $cnt = 0;\n\n // build a lookup table\n $list = [];\n for ($i = 0; $i < $max; $i++) {\n if ($instructions[$i][0] == 'listu_open') {\n $pre = false;\n $lvl++;\n if ($page) array_push($parents, $page);\n } elseif ($instructions[$i][0] == 'listu_close') {\n $lvl--;\n array_pop($parents);\n } elseif ($pre || $lvl == 0) {\n unset($instructions[$i]);\n } elseif ($instructions[$i][0] == 'listitem_close') {\n $cnt++;\n } elseif ($instructions[$i][0] == 'internallink') {\n $foo = true;\n $page = $instructions[$i][1][0];\n resolve_pageid(getNS($ID), $page, $foo); // resolve relative to sidebar ID\n $list[$page] = array(\n 'parents' => $parents,\n 'page' => $page,\n 'title' => $instructions[$i][1][1],\n 'lvl' => $lvl,\n );\n } elseif ($instructions[$i][0] == 'externallink') {\n $url = $instructions[$i][1][0];\n $list['_' . $page] = array(\n 'parents' => $parents,\n 'page' => $url,\n 'title' => $instructions[$i][1][1],\n 'lvl' => $lvl,\n );\n }\n }\n return $list;\n }", "public function parse()\n {\n }", "public function parse()\n {\n }", "public function parse()\n {\n }", "public function parse()\n {\n }", "protected function _getParser() {}", "protected function get_controls()\n\t{\n\t\treturn array\n\t\t(\n\t\t\tself::CONTROL_PERMISSION => Module::PERMISSION_CREATE,\n\t\t\tself::CONTROL_RECORD => true,\n\t\t\tself::CONTROL_OWNERSHIP => true,\n\t\t\tself::CONTROL_FORM => true\n\t\t)\n\n\t\t+ parent::get_controls();\n\t}", "private static function buildControlCharacters()\n {\n for ($i = 0; $i <= 19; ++$i) {\n if ($i != 9 && $i != 10 && $i != 13) {\n $find = '_x' . sprintf('%04s', strtoupper(dechex($i))) . '_';\n $replace = chr($i);\n self::$controlCharacters[$find] = $replace;\n }\n }\n }", "public static function parse()\n {\n if (PHP_SAPI != 'cli') {\n throw new \\RuntimeException('PhpInfoCliParser can only run in command line environment.');\n }\n\n ob_start();\n phpinfo();\n $buf = ob_get_contents();\n ob_end_clean();\n\n $lines = explode(\"\\n\", $buf);\n $lines = array_slice($lines, 3);\n\n $parses = []; //type: blank, value, title, text, hr\n\n foreach ($lines as $row) {\n $li = count($parses) - 1;\n $lii = $li - 1;\n $pre = isset($parses[$li]) ? $parses[$li][0] : 'blank';\n\n if (trim($row) == '') {\n if ($pre == 'blank') {\n //连续多个空行则忽略,最多只保留一个空行\n $parses[$lii]['j'] = 1; //对上一个内容标记已跳过一个空行,主要用于多段内容连接时保持分段\n continue;\n } else {\n $parses[] = ['blank'];\n }\n } elseif (substr($row, 0, 1) != ' ' && strpos($row, ' => ') !== false) {\n $values = explode(' => ', $row, 3);\n\n //remove break line of values.\n if ($pre == 'blank' && isset($parses[$lii]) && $parses[$lii][0] == 'value' && substr($row, 0, 10) != 'Directive ') {\n array_pop($parses);\n }\n\n $values = array_map(function($v) {\n if ($v == 'no value') {\n return \"<i>$v</i>\";\n } else {\n return $v;\n }\n }, $values);\n\n $parses[] = array_merge(['value'], $values);\n } elseif ($pre == 'value') {\n //紧跟在值后的文本其实是上一个值的换行内容\n $parses[$li][count($parses[$li])-1] .= \"\\n$row\";\n } elseif ($pre == 'blank' && strlen($row) < 29) {\n //一些特殊的标题设为 h1 等级\n $level = ($row == 'Configuration' || $row == 'PHP Credits') ? 1 : 2;\n $parses[] = ['title', $row, $level];\n } elseif (preg_match('/^_+$/', trim($row))) { //多个连续的下划线是 hr\n $parses[] = ['hr'];\n } elseif (preg_match('/^\\s{15,}/', $row)) { //开头连续多个空格的文本其实是表头单行标题,这里只作 h3,因为处理有点麻烦\n $parses[] = ['title', trim($row), 3];\n } else {\n //将每行开头的连续空格替换为可显示空格,否则开头的空格会不显示(无缩进)\n if (preg_match('/^(\\s+)/', $row, $matchs)) {\n $row = str_replace(' ', '&nbsp;', $matchs[1]).ltrim($row);\n }\n if ($pre == 'text') {\n $parses[$li][1] .= \"<br/>$row\";\n } elseif ($pre == 'blank' && isset($parses[$lii]) && $parses[$lii][0] == 'text') {\n //对于 文本,空行,文本 的情况,这些文本实际要作为多个段落连接到一格中\n if (!is_array($parses[$lii][1])) {\n $parses[$lii][1] = [str_replace('<br/>', '', $parses[$lii][1])];\n $parses[$lii][1][] = $row;\n } elseif (isset($parses[$lii]['j'])) {\n //在已经是多个段落的文本中,如果上一次跳过了一个换行,则开始分段\n //主要处理“PHP License”中有多个段落,每具段落又使用换行的方式输出的问题\n $parses[$lii][1][] = $row;\n unset($parses[$lii]['j']);\n } else {\n //在已经是多个段落的文本中连续文本换行将作为单行字符串连在一起\n $parses[$lii][1][count($parses[$lii][1])-1] .= $row;\n }\n } else {\n $parses[] = ['text', $row];\n }\n }\n }\n\n return $parses;\n }", "protected function parseWindowList() {\n $windowList = new WindowList($this->file);\n $this->windows = $windowList->windows;\n }", "protected function _register_controls() {\n /*-----------------------------------------------------------------------------------*/\n /* Content TAB\n /*-----------------------------------------------------------------------------------*/\n $this->start_controls_section(\n 'title_section',\n array(\n 'label' => __('APR Heading', 'apr-core' ),\n )\n );\n /* Heading 1*/\n $this->add_control(\n 'title',\n array(\n 'label' => __( 'Title', 'apr-core' ),\n 'type' => Controls_Manager::TEXTAREA,\n 'dynamic' => array(\n 'active' => true\n ),\n 'placeholder' => __( 'Enter your title', 'apr-core' ),\n 'default' => __( 'Enter your title', 'apr-core' ),\n 'label_block' => true,\n )\n );\n $this->add_control(\n 'heading_size',\n array(\n 'label' => __( 'HTML Tag', 'apr-core' ),\n 'type' => Controls_Manager::SELECT,\n 'options' => array(\n 'h1' => __( 'H1', 'apr-core' ),\n 'h2' => __( 'H2', 'apr-core' ),\n 'h3' => __( 'H3', 'apr-core' ),\n 'h4' => __( 'H4', 'apr-core' ),\n 'h5' => __( 'H5', 'apr-core' ),\n 'p' => __( 'p', 'apr-core' ),\n ),\n 'default' => 'h3',\n )\n );\n $this->add_control(\n 'link',\n [\n 'label' => __( 'Link', 'elementor' ),\n 'type' => Controls_Manager::URL,\n 'dynamic' => [\n 'active' => true,\n ],\n 'default' => [\n 'url' => '',\n ],\n 'separator' => 'before',\n ]\n );\n $this->add_responsive_control(\n 'alignment',\n array(\n 'label' => __('Alignment', 'apr-core'),\n 'type' => Controls_Manager::CHOOSE,\n 'default' => 'left',\n 'options' => array(\n 'left' => array(\n 'title' => __( 'Left', 'apr-core' ),\n 'icon' => 'fa fa-align-left',\n ),\n 'center' => array(\n 'title' => __( 'Center', 'apr-core' ),\n 'icon' => 'fa fa-align-center',\n ),\n 'right' => array(\n 'title' => __( 'Right', 'apr-core' ),\n 'icon' => 'fa fa-align-right',\n )\n ),\n )\n );\n $this->add_control(\n 'description',\n array(\n 'label' => __( 'Description', 'apr-core' ),\n 'type' => Controls_Manager::TEXTAREA,\n 'dynamic' => array(\n 'active' \t=> true\n ),\n )\n );\n $this->add_control(\n 'description_position',\n [\n 'label' => __( 'Description Position', 'apr-core' ),\n 'type' => Controls_Manager::SELECT,\n 'default' => 'bottom',\n 'options' => [\n 'aside' => __( 'Aside', 'apr-core' ),\n 'bottom' => __( 'Bottom', 'apr-core' ),\n ],\n ]\n );\n $this->add_control(\n 'list_divider',\n [\n 'label' => __( 'Divider', 'apr-core' ),\n 'type' => Controls_Manager::SWITCHER,\n 'default' => 'no',\n 'separator' => 'before',\n ]\n );\n\n $this->add_control(\n 'divider_position',\n [\n 'label' => __( 'Position', 'apr-core' ),\n 'type' => Controls_Manager::SELECT,\n 'options' => [\n 'top' => __( 'Top', 'apr-core' ),\n 'bottom' => __( 'Bottom', 'apr-core' )\n ],\n 'default' => 'bottom',\n 'condition' => [\n 'list_divider' => 'yes',\n ]\n ]\n );\n\n $this->add_control(\n 'divider_color',\n [\n 'label' => __( 'Color', 'apr-core' ),\n 'type' => Controls_Manager::COLOR,\n 'default' => '',\n 'scheme' => [\n 'type' => Scheme_Color::get_type(),\n 'value' => Scheme_Color::COLOR_3,\n ],\n 'condition' => [\n 'list_divider' => 'yes',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-title:before' => 'background-color: {{VALUE}};',\n ],\n ]\n );\n $this->add_control(\n 'divider_color_hover',\n [\n 'label' => __( 'Color Hover', 'apr-core' ),\n 'type' => Controls_Manager::COLOR,\n 'default' => '',\n 'scheme' => [\n 'type' => Scheme_Color::get_type(),\n 'value' => Scheme_Color::COLOR_3,\n ],\n 'condition' => [\n 'list_divider' => 'yes',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-title:hover:before' => 'background-color: {{VALUE}};',\n ],\n ]\n );\n $this->add_responsive_control(\n 'divider_top',\n [\n 'label' => __( 'Top Space', 'apr-core' ),\n 'type' => Controls_Manager::SLIDER,\n 'default' => [\n 'size' => '',\n 'unit' => 'px',\n ],\n 'range' => [\n 'px' => [\n 'min' => 0,\n 'max' => 1000,\n ],\n ],\n 'size_units' => [ 'px' ],\n 'condition' => [\n 'list_divider' => 'yes',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-title:before' => 'top: {{SIZE}}{{UNIT}};',\n ],\n ]\n );\n\n $this->add_responsive_control(\n 'divider_left',\n [\n 'label' => __( 'Left Space', 'apr-core' ),\n 'type' => Controls_Manager::SLIDER,\n 'default' => [\n 'size' => '',\n 'unit' => 'px',\n ],\n 'range' => [\n 'px' => [\n 'min' => 0,\n 'max' => 1000,\n ],\n ],\n 'size_units' => [ 'px' ],\n 'condition' => [\n 'list_divider' => 'yes',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-title:before' => 'left: {{SIZE}}{{UNIT}};',\n ],\n ]\n );\n\n $this->add_responsive_control(\n 'divider_weight',\n [\n 'label' => __( 'Height', 'apr-core' ),\n 'type' => Controls_Manager::SLIDER,\n 'default' => [\n 'size' => 1,\n 'unit' => 'px',\n ],\n 'range' => [\n 'px' => [\n 'min' => 0,\n 'max' => 1000,\n ],\n '%' => [\n 'min' => 0,\n 'max' => 100,\n ],\n ],\n 'size_units' => [ '%', 'px' ],\n 'condition' => [\n 'list_divider' => 'yes',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-title:before' => 'height: {{SIZE}}{{UNIT}};',\n ],\n ]\n );\n\n $this->add_responsive_control(\n 'divider_width',\n [\n 'label' => __( 'Width', 'apr-core' ),\n 'type' => Controls_Manager::SLIDER,\n 'condition' => [\n 'list_divider' => 'yes',\n ],\n 'default' => [\n 'size' => 100,\n 'unit' => 'px',\n ],\n 'range' => [\n 'px' => [\n 'min' => 0,\n 'max' => 1000,\n ],\n '%' => [\n 'min' => 0,\n 'max' => 100,\n ],\n ],\n 'size_units' => [ '%', 'px' ],\n 'selectors' => [\n '{{WRAPPER}} .heading-title:before' => 'width: {{SIZE}}{{UNIT}};',\n ],\n ]\n );\n \n $this->end_controls_section();\n /*-----------------------------------------------------------------------------------*/\n /* Style TAB\n /*-----------------------------------------------------------------------------------*/\n $this->start_controls_section(\n 'title_style_section',\n array(\n 'label' => __( 'Color', 'apr-core' ),\n 'tab' => Controls_Manager::TAB_STYLE,\n )\n );\n $this->add_control(\n 'title_color',\n [\n 'label' => __( 'Title Color', 'apr-core' ),\n 'type' => Controls_Manager::COLOR,\n 'scheme' => [\n 'type' => Scheme_Color::get_type(),\n 'value' => Scheme_Color::COLOR_1,\n ],\n 'selectors' => [\n // Stronger selector to avoid section style from overwriting\n '{{WRAPPER}} .heading-modern .heading-title,\n {{WRAPPER}} .heading-modern .heading-title a' => 'color: {{VALUE}};',\n ],\n ]\n );\n $this->add_control(\n 'desc_color',\n [\n 'label' \t=> __( 'Description color', 'apr-core' ),\n 'type' \t\t=> Controls_Manager::COLOR,\n 'scheme' \t=> [\n 'type' \t\t=> Scheme_Color::get_type(),\n 'value' \t=> Scheme_Color::COLOR_1,\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-modern .description' => 'color: {{VALUE}};',\n ],\n ]\n );\n $this->end_controls_section();\n $this->start_controls_section(\n 'desc_style',\n array(\n 'label' => __( 'Typography', 'apr-core' ),\n 'tab' => Controls_Manager::TAB_STYLE,\n )\n );\n\n $this->add_group_control(\n Group_Control_Typography::get_type(),\n [\n 'name' \t\t=> 'title_typo',\n 'label' \t=> __( 'Title', 'apr-core' ),\n 'selector' => '{{WRAPPER}} .heading-modern .heading-title',\n ]\n );\n $this->add_responsive_control(\n 'title_width',\n array(\n 'label' => __('Max width Title','apr-core' ),\n 'type' => Controls_Manager::SLIDER,\n 'size_units' => array('px','%'),\n 'range' => array(\n '%' => array(\n 'min' => 1,\n 'max' => 100,\n ),\n 'px' => array(\n 'min' => 1,\n 'max' => 1600,\n 'step' => 5\n )\n ),\n 'selectors' => array(\n '{{WRAPPER}} .heading-modern .heading-title' => 'max-width:{{SIZE}}{{UNIT}};'\n ),\n )\n );\n $this->add_group_control(\n Group_Control_Typography::get_type(),\n [\n 'name' \t\t=> 'desc_typo',\n 'label' \t=> __( 'Description', 'apr-core' ),\n 'scheme' => Scheme_Typography::TYPOGRAPHY_1,\n 'selector' \t=> '{{WRAPPER}} .heading-modern .description',\n ]\n );\n $this->add_responsive_control(\n 'desc_width',\n array(\n 'label' => __('Max width Description','apr-core' ),\n 'type' => Controls_Manager::SLIDER,\n 'size_units' => array('px','%'),\n 'range' => array(\n '%' => array(\n 'min' => 1,\n 'max' => 100,\n ),\n 'px' => array(\n 'min' => 1,\n 'max' => 1600,\n 'step' => 5\n )\n ),\n 'selectors' => array(\n '{{WRAPPER}} .heading-modern .description' => 'max-width:{{SIZE}}{{UNIT}};'\n ),\n )\n );\n $this->add_responsive_control(\n 'title_margin',\n array(\n 'label' => __( 'Margin Title', 'apr-core' ),\n 'type' => Controls_Manager::DIMENSIONS,\n 'size_units' => [ 'px', '%' ],\n 'allowed_dimensions' => 'vertical',\n 'placeholder' => [\n 'top' => '',\n 'right' => 'auto',\n 'bottom' => '',\n 'left' => 'auto',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-modern .heading-title' => 'margin-top: {{TOP}}{{UNIT}}; margin-bottom: {{BOTTOM}}{{UNIT}};',\n ],\n )\n );\n\n $this->add_responsive_control(\n 'title_padding',\n [\n 'label' => __( 'Padding Title', 'apr-core' ),\n 'type' => Controls_Manager::DIMENSIONS,\n 'size_units' => [ 'px', 'em', '%' ],\n 'selectors' => [\n '{{WRAPPER}} .heading-modern .heading-title' => 'padding:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'\n ],\n ]\n );\n $this->add_responsive_control(\n 'desc_margin',\n array(\n 'label' => __( 'Margin Description', 'apr-core' ),\n 'type' => Controls_Manager::DIMENSIONS,\n 'size_units' => [ 'px', '%' ],\n 'allowed_dimensions' => 'vertical',\n 'placeholder' => [\n 'top' => '',\n 'right' => 'auto',\n 'bottom' => '',\n 'left' => 'auto',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-modern .description' => 'margin-top: {{TOP}}{{UNIT}}; margin-bottom: {{BOTTOM}}{{UNIT}};',\n ],\n )\n );\n $this->add_responsive_control(\n 'description_padding',\n [\n 'label' => __( 'Padding Description', 'apr-core' ),\n 'type' => Controls_Manager::DIMENSIONS,\n 'size_units' => [ 'px', 'em', '%' ],\n 'selectors' => [\n '{{WRAPPER}} .heading-modern .description' => 'padding:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'\n ],\n ]\n );\n $this->add_control(\n 'title_color_hover',\n [\n 'label' => __( 'Title Color Hover', 'apr-core' ),\n 'type' => Controls_Manager::COLOR,\n 'scheme' => [\n 'type' => Scheme_Color::get_type(),\n 'value' => Scheme_Color::COLOR_1,\n ],\n 'selectors' => [\n // Stronger selector to avoid section style from overwriting\n '{{WRAPPER}} .heading-modern .heading-title:hover,\n {{WRAPPER}} .heading-modern .heading-title a:hover' => 'color: {{VALUE}};',\n ],\n ]\n );\n $this->add_control(\n 'desc_color_hover',\n [\n 'label' => __( 'Description Color Hover', 'apr-core' ),\n 'type' => Controls_Manager::COLOR,\n 'scheme' => [\n 'type' => Scheme_Color::get_type(),\n 'value' => Scheme_Color::COLOR_1,\n ],\n 'selectors' => [\n // Stronger selector to avoid section style from overwriting\n '{{WRAPPER}} .heading-modern .description:hover' => 'color: {{VALUE}};',\n ],\n ]\n );\n $this->end_controls_section();\n }", "public function testValid(): void\n {\n $validator = new ControlValidator();\n\n $this->assertTrue($validator->validate(\"\\n\\r\\t\")->isValid());\n }", "public function parse()\n {\n $this->initProps();\n $this->initParams();\n $this->load();\n }", "private function parseFunctions() {\r\n while( preg_match( \"/\" .$this->leftDelimiterF . \"include file=\\\"(.*)\\.(.*)\\\"\" . $this->rightDelimiterF . \"/isUe\", $this->template ) ) {\r\n $this->template = preg_replace( \"/\" . $this->leftDelimiterF . \"include file=\\\"(.*)\\.(.*)\\\"\" . $this->rightDelimiterF . \"/isUe\", \"file_get_contents(\\$this->templateDir.'\\\\1'.'.'.'\\\\2')\", $this->template );\r\n }\r\n $this->template = preg_replace( \"/\" .$this->leftDelimiterC .\"(.*)\" .$this->rightDelimiterC .\"/isUe\", \"\", $this->template );\r\n }", "public static function allCTL(){\n $names = array();\n foreach (self::glob_recursive(dirname(__FILE__).'/CTL/*.php') as $filename)\n {\n $name = \"Main\\\\\".str_replace(dirname(__FILE__).'/', \"\", $filename);\n $name = str_replace(\"/\", \"\\\\\", $name);\n $name = str_replace(\".php\", \"\", $name);\n $names[] = $name;\n }\n\n return $names;\n }", "protected function doCheck()\n {\n foreach ($this->controlTokens as $id) {\n while ($this->file->seekTokenId($id)) {\n $controlToken = $this->file->current();\n $name = $controlToken->getText();\n\n if ($this->file->seekTokenId(T_OPEN_CURLY)) {\n $curlyToken = $this->file->current();\n\n if (!$this->file->valid() || $controlToken->getLine() != $curlyToken->getLine()) {\n if ($controlToken->getLine() == $curlyToken->getLine() - 1) {\n $this->addViolation(\"Brace for `{$name}` statement on wrong line\", $curlyToken);\n } else {\n $this->addViolation(\"No brace for `{$name}` statement\", $controlToken);\n $this->file->seekToken($controlToken);\n }\n }\n } else {\n $this->addViolation(\"No brace for `{$name}` statement\", $controlToken);\n $this->file->seekToken($controlToken);\n }\n\n $this->file->next();\n }\n $this->file->rewind();\n }\n }", "public function staticParse($file)\n {\n $source = file_get_contents($file);\n if( preg_match_all( '/(?:abstract\\s+class|class|interface)\\s+(\\w+)/i' ,$source, $matches ) ) {\n var_dump( $matches ); \n }\n }", "public function getButtons() {\n return [\n 'StylesheetParser' => [\n 'label' => t('Parse a stylesheet for CSS classes.'),\n 'image' => drupal_get_path('module', 'ckeditor_stylesheetparser') . '/js/plugins/stylesheetparser/icons/hidpi/stylesheet.png',\n ],\n ];\n }", "private static function buildControlCharacters()\n {\n for ($i = 0; $i <= 31; ++$i) {\n if ($i != 9 && $i != 10 && $i != 13) {\n $find = '_x' . sprintf('%04s', strtoupper(dechex($i))) . '_';\n $replace = chr($i);\n self::$controlCharacters[$find] = $replace;\n }\n }\n }", "private function _Parsing($template)\n {\n // ДИРЕКТИВЫ\n // Literal\n preg_match_all(\"~{literal}(.+?){/literal}~si\", $template, $match);\n foreach ($match[0] as $key => $val)\n {\n $template = str_replace($val, \"<LITERAL{$key}LITERAL>\", $template);\n }\n\n // подключение шаблонов директивой инклуде {инклуде \"дирнаме/филенаме\"}\n $template = preg_replace_callback(self::PATTERN_INCLUDE, [$this, '_Parsing_Include'], $template);\n // парсинг языковых конструкций\n $template = preg_replace_callback(self::PATTERN_TRANSLATION1, [$this, '_Parsing_Translation1'], $template);\n $template = preg_replace_callback(self::PATTERN_TRANSLATION2, [$this, '_Parsing_Translation2'], $template);\n // парсинг плагинов\n $template = preg_replace_callback(self::PATTERN_PLUGIN, [$this, '_Parsing_Controller'], $template);\n //\n\n // Вырезаем служебные комментарии\n $template = preg_replace('~{#(.*?)#}~s', '', $template);\n\n //\tциклы и логика\n $template = preg_replace('~{((foreach|for|while|if|switch|case|default) .+?)}~si', '<' . '?php $1 { ?' . '>', $template);\n $template = preg_replace('~{(/|/foreach|/for|/while|/if|/switch|/case|/default)}~si', '<' . '?php } ?' . '>', $template);\n $template = preg_replace('~{else if (.+?)}~si', '<' . '?php } else if $1 { ?' . '>', $template);\n $template = preg_replace('~{else}~si', '<' . '?php } else { ?' . '>', $template);\n $template = preg_replace('~{(break|continue)}~si', '<' . '?php $1; ?' . '>', $template);\n //\tпеременные установка\n $template = preg_replace('~{set ([^}]{1,255})}~si', '<' . '?php $1; ?' . '>', $template);\n\n //\tпеременные вывод\n $template = preg_replace('~{(\\$[^}]{1,255})}~si', '<' . '?php echo $1; ?' . '>', $template);\n //\tфункции и константы\n $template = preg_replace('~{([a-z]{1}[^}]{0,150})}~si', '<' . '?php echo $1; ?' . '>', $template);\n\n // Literal\n foreach ($match[1] as $key => $val)\n {\n $template = str_replace(\"<LITERAL{$key}LITERAL>\", trim($val), $template);\n }\n\n // ////\tпеременные вывод\n // $template = preg_replace('~([^{]?){(\\$[^}]{1,255})}([^}]?)~si', '$1<' . '?php echo $2; ?' . '>$3', $template);\n // ////\tфункции и константы\n // $template = preg_replace('~([^{]?){([a-z]{1}[^}]{0,150})}([^}]?)~si', '$1<' . '?php echo $2; ?' . '>$3', $template);\n\n //\n return $template;\n }", "public function makeRules()\n {\n $this->rules = [];\n preg_match_all(\"/([.#a-z0-9-]*)\\s?({[^}]*})/i\", $this->contents(), $comands);\n foreach ($comands[1] as $k => $selector) {\n preg_match_all(\"/([a-z0-9-]*):([^;]*);/i\", $comands[2][$k], $declarations);\n $this->rules[$selector] = [];\n foreach ($declarations[1] as $i => $property) {\n $this->rules[$selector][$property] = $declarations[2][$i];\n }\n }\n }", "public function get_control_args() {\n\t\t$args = array(\n\t\t\t'label' => __( $this->label, 'styles' ),\n\t\t\t'section' => $this->group,\n\t\t\t'settings' => $this->setting,\n\t\t\t'priority' => $this->priority . $this->group_priority,\n\t\t);\n\t\treturn $args;\n\t}", "function parseDscanTower($dscan) {\n\t//Parse mods file\n\t$csv = explode(\"\\n\", file_get_contents(\"posmods.csv\"));\n\tforeach($csv as $mod) {\n\t\t$mod = str_getcsv($mod, \",\", \"\\\"\", \"\\\\\");\n\t\t$m['id'] = $mod[0];\n\t\t$m['igbName'] = $mod[1];\n\t\t$m['typeName'] = $mod[2];\n\t\t$mods[$m['typeName']] = $m;\n\t}\n\t\n\t//Parse control towers file\n\t$csv = explode(\"\\n\", file_get_contents(\"controltowers.csv\"));\n\tforeach($csv as $ct) {\n\t\t$ct = str_getcsv($ct, \",\", \"\\\"\", \"\\\\\");\n\t\t$m['id'] = $ct[0];\n\t\t$m['igbName'] = $ct[1];\n\t\t$m['typeName'] = $ct[2];\n\t\t$cts[$m['typeName']] = $m;\n\t}\n\t\n\t//Parse the dscan\n\t$pos = array();\n\t$ct = null;\n\t$rows = explode(\"\\n\", $dscan);\n\tforeach($rows as $row) {\n\t\t$cols = explode(\"\\t\", $row);\n\t\t\n\t\t//Check if it's on grid\n\t\tif(preg_match(\"/([0-9,]+) (km|m|AU)/\", $cols[2], $matches) == 1) {\n\t\t\t//Check if this module exists in our pos mod db\n\t\t\tif(array_search($cols[1], array_keys($mods)) != false) {\n\t\t\t\t//Add it to our pos\n\t\t\t\t$pos[] = $mods[$cols[1]];\n\t\t\t} else {\n\t\t\t\t//Check if it's a control tower\n\t\t\t\tif(array_search($cols[1], array_keys($cts)) != false) {\n\t\t\t\t\t//Check we don't already have one\n\t\t\t\t\tif($ct != null) {\n\t\t\t\t\t\tdie(\"Error, more than 1 control tower on scan\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$ct = $cts[$cols[1]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\t//Check if empty\n\tif($ct === null) {\n\t\treturn null;\n\t}\n\t\n\t//Generate URL\n\t$url = \"http://eve.1019.net/pos/index.php?ct=%%CT%%&mod=%%MODS%%&off=\";\n\t$modlist = \"\";\n\tforeach($pos as $mod) {\n\t\t$modlist .= $mod['id'];\n\t}\n\t$url = str_replace(\"%%CT%%\", $ct['id'], $url);\n\t$url = str_replace(\"%%MODS%%\", $modlist, $url);\n\treturn $url;\n}", "public function read_cwp_control_panel_page()\r\n {\r\n require_once CWP_PLUGIN_PATH . '/lib/view/cwp-control-panel/index.php';\r\n }", "protected function parse(): void\n {\n $lines = preg_split('/\\r\\n|\\r|\\n/', $this->content);\n\n foreach ($lines as $line) {\n if (mb_strlen(trim($line)) && ! (mb_strpos(trim($line), '#') === 0)) {\n [$key, $value] = explode('=', (string) $line);\n $this->variables[$key] = $this->formatValue($value);\n }\n }\n }", "public function parseFile(string $filename);", "public function parseLabels(): void;", "public function make_tranzactions(){\n $this->console_log = array();\n $file = fopen(\"tranz.txt\",'r') or die(\"Unable to open file!\");\n $line_number = 1;\n //skip first line\n $line = fgets($file);\n \n while(!feof($file)){\n $line = fgets($file);\n //ignore empty line\n if($line == \"\") continue;\n $code = $this->tranzaction_handler($line);\n $log = array();\n $log['line_number'] = $line_number;\n $log['line'] = $line;\n $log['code'] = $code;\n $this->console_log[$line_number] = $log;\n $line_number++;\n }\n fclose($file);\n }", "function buildForm()\r\n {\r\n $this->buildTabs();\r\n // tab caption\r\n $this->addElement('header', null,\r\n 'Progress2 Generator - Control Panel: save PHP/CSS code');\r\n\r\n $code[] =& $this->createElement('checkbox', 'P', null, 'PHP');\r\n $code[] =& $this->createElement('checkbox', 'C', null, 'CSS');\r\n $this->addGroup($code, 'phpcss', 'PHP and/or StyleSheet source code:');\r\n\r\n // Buttons of the wizard to do the job\r\n $this->buildButtons(array('next','apply'));\r\n }", "protected function _register_controls() {\n\n\t\t$this->start_controls_section(\n\t\t\t'section_style',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__( 'Style', 'woocommerce-builder-elementor' ),\n\t\t\t\t'tab' => \\Elementor\\Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\t\t\n\t\t$this->add_control(\n\t\t\t'wc_style_warning',\n\t\t\t[\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::RAW_HTML,\n\t\t\t\t'raw' => esc_html__( 'This is the preview mode of the builder, this widget may not show properly you should view the result in the Product Page and The style of this widget is often affected by your theme and plugins. If you experience any such issue, try to switch to a basic theme and deactivate related plugins.', 'woocommerce-builder-elementor' ),\n\t\t\t\t'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',\n\t\t\t]\n\t\t);\n\t\t\n\n\t\t$this->end_controls_section();\n\n\t}", "function getControl()\n\t{\n\t\treturn $this->control;\n\t}", "protected function getControlValidations()\n {\n return [\n 'threeds_v2_control_device_type' => [\n $this->threeds_v2_control_device_type => [\n ['threeds_v2_control_device_type' => DeviceTypes::getAll()]\n ]\n ],\n 'threeds_v2_control_challenge_window_size' => [\n $this->threeds_v2_control_challenge_window_size => [\n ['threeds_v2_control_challenge_window_size' => ChallengeWindowSizes::getAll()]\n ]\n ],\n 'threeds_v2_control_challenge_indicator' => [\n $this->threeds_v2_control_challenge_indicator => [\n ['threeds_v2_control_challenge_indicator' => ChallengeIndicators::getAll()]\n ]\n ]\n ];\n }", "function add_specific_settings_controls() {\n\n\t\t$this->add_control(\n\t\t\t'success_message',\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__( 'Success message', 'themeisle-companion' ),\n\t\t\t\t'default' => esc_html__( 'Your message has been sent!', 'themeisle-companion' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'error_message',\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__( 'Error message', 'themeisle-companion' ),\n\t\t\t\t'default' => esc_html__( 'Oops! I cannot send this email!', 'themeisle-companion' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'to_send_email',\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__( 'Send to', 'themeisle-companion' ),\n\t\t\t\t'default' => get_bloginfo( 'admin_email' ),\n\t\t\t\t'description' => esc_html__( 'Where should we send the email?', 'themeisle-companion' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'submit_label',\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__( 'Submit', 'themeisle-companion' ),\n\t\t\t\t'default' => esc_html__( 'Submit', 'themeisle-companion' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'align_submit',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Alignment', 'themeisle-companion' ),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'toggle' => false,\n\t\t\t\t'default' => 'left',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'left' => array(\n\t\t\t\t\t\t'title' => __( 'Left', 'themeisle-companion' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-left',\n\t\t\t\t\t),\n\t\t\t\t\t'center' => array(\n\t\t\t\t\t\t'title' => __( 'Center', 'themeisle-companion' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-center',\n\t\t\t\t\t),\n\t\t\t\t\t'right' => array(\n\t\t\t\t\t\t'title' => __( 'Right', 'themeisle-companion' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-right',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .content-form .submit-form' => 'text-align: {{VALUE}};',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t}", "public function parse_file($filename) {\r\n\t\tif (($handle = fopen($filename, \"r\")) !== FALSE) {\r\n $i = 0;\r\n $n = 0;\r\n $delimiter = \"\\t\";\r\n\r\n\t\t\t//Read file\r\n while(($data = fgetcsv($handle, 0, $delimiter)) !== FALSE) {\r\n $i++;\r\n //Ignore records that start with !\r\n if ( substr($data[0], 0, 1) !== \"!\" ){\r\n if($data[0] == \"TRNS\"){\r\n $this->flag_multi = TRUE;\r\n $n = $i;\r\n }\r\n //Check if the record is malformed\r\n if ( $this->is_malformed($data) == TRUE){\r\n $this->write_malformed($data, $i, $n);\r\n }else{\r\n if($this->header_type[$data[0]] == \"MULTI\"){\r\n //A multi-line record, where $data[0] will be either TRNS, SPL, or ENDTRNS.\r\n $this->write_multi($data);\r\n }else{\r\n //A single-line record, where $data[0] will be either VEND or CUST. \r\n $this->write_single($data);\r\n }\r\n }\r\n }\r\n //loop\r\n $this->prior_record = $data;\r\n }\r\n //End of loop. Add the four objects to an array\r\n $items = array($this->malformed, $this->CUST, $this->VEND, $this->TRNS);\r\n foreach($items as $item){\r\n if($item !== NULL){\r\n array_push($this->rtn_data, $item);\r\n } \r\n }\r\n return $this->rtn_data;\r\n }\r\n }", "public function getControlFields()\n {\n $fields = array();\n $query = 'response > record > marcRecord > controlfield';\n $controlFields = $this->domCrawler->filter($query)->each(function(Crawler $node) {\n return new ControlField($node);\n });\n\n\n return $controlFields;\n }", "private function parse_options()\n\t\t{\n\t\t\t$options = $this->options;\n\n\t\t\tforeach ( $options as $option ) {\n\n\t\t\t\tif ( $option[ 'type' ] == 'heading' ) {\n\t\t\t\t\t$tab_name = sanitize_title( $option[ 'name' ] );\n\t\t\t\t\t$this->tab_headers = array( $tab_name => $option[ 'name' ] );\n\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$option[ 'tab' ] = $tab_name;\n\t\t\t\t$tabs[ $tab_name ][ ] = $option;\n\n\t\t\t}\n\n\t\t\t$this->tabs = $tabs;\n\n\t\t\treturn $tabs;\n\t\t}", "protected function parse_upc()\n\t{\n\t\tparent::parse_upc();\n\n\t\t$this->man = self::parse_man($this->upc);\n\t\t$this->prod = self::parse_prod($this->upc);\n\t}", "function get_parse_ini($file)\n{\n if (!is_file($file))\n return false;\n\n $ini = file($file);\n\n // to hold the categories, and within them the entries\n $cats = array();\n\n foreach ($ini as $i) {\n if (@preg_match('/\\[(.+)\\]/', $i, $matches)) {\n $last = $matches[1];\n } elseif (@preg_match('/(.+)=(.+)/', $i, $matches)) {\n $cats[$last][trim($matches[1])] = trim($matches[2]);\n }\n }\n\n return $cats;\n\n}", "protected function _register_controls() { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore \n\n\t\t$this->register_general_content_controls();\n\n\t\t$this->register_count_content_controls();\n\n\t\t$this->register_helpful_information();\n\t}", "function pparse($handle)\n\t{\n\t\tif ( defined('DEBUG_TEMPLATE') && !$this->no_debug )\n\t\t{\n\t\t\techo '<!-- Start of : ' . $this->files[$handle] . ' :: ' . $handle . ' -->' . \"\\n\";\n\t\t}\n\t\tif ($filename = $this->_tpl_load($handle))\n\t\t{\n\t\t\tinclude($filename);\n\t\t}\n\t\telse\n\t\t{\n\t\t\teval(' ?>' . $this->compiled_code[$handle] . '<?php ');\n\t\t}\n\t\tif ( defined('DEBUG_TEMPLATE') && !$this->no_debug )\n\t\t{\n\t\t\techo '<!-- End of : ' . $this->files[$handle] . ' :: ' . $handle . ' -->' . \"\\n\";\n\t\t}\n\n\t\treturn true;\n\t}", "public function parse()\n\t{\n\t\t$this->parseGroups();\n\t\t$this->parseBadges();\n\t}", "public function parse()\n {\n // turn the url into an array by nodes\n $this->nodes = explode('/', $this->url);\n \n // slide the controller off the first element\n $this->controller = array_shift($this->nodes);\n\t // break the path apart into its segments\n\t // controller - params ( node will always be empty for restful urls )\n\t //@list( , $this->nodes ) = explode( '/', $this->url, 2 );\n\t\n\t // add params to the to the params array\n/*\n\t if ( !empty( $params ) ) {\n\t \n\t // break apart the params\n\t $params = explode( '/', $params );\n\t\n\t for ( $i = 0; $i < count( $params ); $i++ ) {\n\t $this->params[] = str_replace( KEYWORD_SEPARATOR, ' ', $params[$i]);\n\t }\n\t }\n*/\n \n \n }", "public function getControl()\n {\n return $this->control;\n }", "public function getControl()\n {\n return $this->control;\n }", "public function getControl()\n {\n return $this->control;\n }", "private function doctypeState() {\n $this->char++;\n $char = $this->char();\n\n if(preg_match('/^[\\t\\n\\x0b\\x0c ]$/', $char)) {\n $this->state = 'beforeDoctypeName';\n\n } else {\n $this->char--;\n $this->state = 'beforeDoctypeName';\n }\n }", "function parse_file($file) {\n\n // Fetch the contents of the specified file:\n $content = file_get_contents($file);\n // Split the content by line break:\n $lines = explode(\"\\n\",$content);\n // Define an array to tag every property on:\n $array = array();\n // Read all lines:\n foreach ($lines as $value) {\n // If the first character of the line isn't a # (comment character) continue, else ignore:\n if(substr($value,0,1) != \"#\"){\n // Split the line at \"=\" to fetch the property name and value.\n $lineSplit = explode(\"=\",$value);\n // Define the property name:\n $propName = $lineSplit[0];\n // Define the property value:\n $propValue = $lineSplit[1];\n // Get rid of whitespaces:\n $propValue = substr($propValue,0,strlen($propValue)-1);\n // Set the property in the array equal to it's value:\n $array[$propName] = $propValue;\n }\n }\n return $array;\n }", "function __construct(){\n $this->stdin = fopen('php://stdin', 'r');\n $this->commentsNumber = 0;\n do{\n $line = utf8_encode($this->readLine()); //mozna ne encode tady musim otestovat\n if(preg_match('/#/', $line)){\n $this->iterateComments();\n } \n $line = preg_replace('/\\s*/','', $line); \n }while($line == null && !feof($this->stdin));\n if(strtolower($line) != \".ippcode18\"){\n exit(21);\n }\n }", "function process()\n {\n // Check if we have a valid file pointer resource\n if (!$this->resource) return false;\n\n // Loop thru the lease file until the end is reached\n while (!feof($this->resource))\n {\n $read_line = fgets($this->resource, 4096);\n\n if (substr($read_line, 0, 1) != \"#\")\n {\n $tok = strtok($read_line, \" \");\n switch ($tok)\n {\n case \"lease\": // lease <ip> {\n unset($arr);\n $arr['ip'] = strtok(\" \");\n break;\n\n case \"starts\": // start\n strtok(\" \");\n $arr['time-start'] = strtok(\" \") . \" \" . strtok(\";\\n\");\n break;\n\n case \"ends\": // ends\n strtok(\" \");\n $arr['time-end'] = strtok(\" \") . \" \" . strtok(\";\\n\");\n break;\n\n case \"hardware\": // hardware\n $field = strtok(\" \");\n if ($field == \"ethernet\")\n {\n $arr['hardware-ethernet'] = strtolower(strtok(\";\\n\"));\n }\n break;\n\n case \"next\": // next binding state:\n $tok = strtok(\" \");\n if ($tok == \"binding\")\n {\n $tok = strtok(\" \");\n if ($tok == \"state\")\n $arr['next-binding-state'] = strtok(\";\\n\");\n }\n break;\n\n case \"binding\": // binding state:\n $tok = strtok(\" \");\n if ($tok == \"state\")\n {\n $arr['binding-state'] = strtok(\";\\n\");\n }\n break;\n\n case \"client-hostname\": // client-hostname\n $arr['client-hostname'] = strtok(\"\\\";\\n\");\n break;\n\n case \"uid\": // uid\n $arr['uid'] = str_replace('\"', \"\", strtok(\";\\n\"));\n break;\n\n case \"option\": // option { }\n $tok = strtok(\" \");\n if ($tok == \"agent.circuit-id\")\n {\n $arr['circuit-id'] = preg_replace('/\"(.*)\"\\n/', '${1}', strtok(\"\\n\"));\n $arr['circuit-id'] = preg_replace('/(;$|\\\")', '', $arr['circuit-id']);\n }\n\n if ($tok == \"agent.remote-id\")\n {\n $arr['remote-id'] = preg_replace('/\"(.*)\";\\n/', '${1}', strtok(\" \"));\n }\n break;\n\n case \"}\\n\": // }\n unset($arr);\n break;\n }\n\n if (isset($arr['ip']) &&\n isset($arr['time-start']) &&\n isset($arr['time-end']) &&\n isset($arr['hardware-ethernet']) &&\n isset($arr['next-binding-state']) &&\n isset($arr['binding-state']) &&\n isset($arr['client-hostname'])\n )\n {\n $this->rows[] = str_replace(\"\\n\", '', $arr);\n }\n }\n }\n\n return count($this->rows);\n }", "function get_control_order() {\n $this->control_order_by->OP_[option]->set(array_merge(array(\n '' => ''\n ), $this->caption_fields));\n return $this->control_order_by->get_tag();\n }", "public function parse()\n {\n $config = \\CB::getInstance()['pom'];\n $template = $this->tpl->getTemplate();\n $this->UID = 'v' . sha1(get_class(MVC\\Page::$current) . $template . serialize($this->vars) . \\CB::getSiteUniqueID());\n if (!empty($config['cacheEnabled']) && !$this->isExpired(true)) $this->pull(true);\n else\n {\n $ctx = $this->parseTemplate($this->prepareTemplate($template, $this->vars));\n $body = array_pop($ctx['controls']);\n if ($body)\n {\n if (!($body instanceof Body) || count($ctx['controls'])) throw new Core\\Exception($this, 'ERR_VIEW_5');\n $this->controls[$body->attr('id')] = $body;\n $this->commit();\n static::decodePHPTags($body, $ctx['marks']);\n $src = \\CB::url('framework-web') . '/js/jquery/jquery.min.js';\n if (empty($this->js['top'][$src])) $this->addJS(['src' => $src], null, true, -1000);\n $src = \\CB::url('framework-web') . '/js/cb.full.min.js?v=2';\n if (empty($this->js['top'][$src])) $this->addJS(['src' => $src], null, true, -999);\n }\n $this->tpl->setTemplate($ctx['html']);\n if (!empty($config['cacheEnabled'])) \n {\n $this->commit();\n $this->push(true);\n }\n }\n return $this;\n }", "function parse_tablumps($data) {\n\n\t$data = str_replace(dAmnPHP::$tablumps['a1'], dAmnPHP::$tablumps['a2'], $data);\n\t$data = preg_replace(dAmnPHP::$tablumps['b1'], dAmnPHP::$tablumps['b2'], $data);\n\treturn preg_replace(\"/<([^>]+) (width|height|title|alt)=\\\"\\\"([^>]*?)>/\", \"<\\\\1\\\\3>\", $data);\n\n}", "public function run()\n {\n $this->loadTextFile($this->text_file);\n }" ]
[ "0.5554736", "0.550059", "0.54831874", "0.54143053", "0.534366", "0.5239043", "0.51407844", "0.5087883", "0.49911216", "0.49535635", "0.48925078", "0.48884395", "0.48884395", "0.48597676", "0.4855945", "0.48250288", "0.4797216", "0.47674128", "0.47535378", "0.47491783", "0.47462186", "0.47379836", "0.47350258", "0.4732461", "0.47295153", "0.4723633", "0.47167233", "0.46979854", "0.46787897", "0.46697366", "0.4661188", "0.46222886", "0.46204013", "0.45946026", "0.4575292", "0.4562636", "0.45598805", "0.45573562", "0.45163986", "0.45139474", "0.4505205", "0.4503339", "0.44935513", "0.4491716", "0.4491594", "0.44884625", "0.44831726", "0.44825843", "0.44805193", "0.44742176", "0.44742176", "0.44731897", "0.44731483", "0.44682926", "0.44681865", "0.44604325", "0.4457748", "0.44487268", "0.4447418", "0.44465724", "0.44418314", "0.4441569", "0.444094", "0.4437662", "0.4430584", "0.44274956", "0.44221723", "0.44203177", "0.4418455", "0.441393", "0.4408113", "0.4396587", "0.4395267", "0.43950146", "0.43932244", "0.43931425", "0.438144", "0.43801123", "0.43792474", "0.43741944", "0.43646914", "0.4355502", "0.43553728", "0.43530032", "0.43522102", "0.4350978", "0.43464032", "0.4341713", "0.43413603", "0.43387827", "0.43377912", "0.43377912", "0.43377912", "0.43325892", "0.4326889", "0.43266258", "0.43235323", "0.43147686", "0.431142", "0.43107668", "0.43022013" ]
0.0
-1
Run the database seeds.
public function run() { $t1 = Tema::create(['name' =>'Tema 1 : Ingles I M1', 'urlVideo' => 'https://www.youtube.com/embed/dFJvNYdKGrA', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de inglés, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t2 = Tema::create(['name' =>'Tema 2 : Ingles I M1', 'urlVideo' => 'https://www.youtube.com/embed/dFJvNYdKGrA', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de inglés, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t3 = Tema::create(['name' =>'Tema 3 : Ingles I M1', 'urlVideo' => 'https://www.youtube.com/embed/dFJvNYdKGrA', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de inglés, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t1->modules()->sync(1); $t2->modules()->sync(1); $t3->modules()->sync(1); $t1 = Tema::create(['name' =>'Tema 1 : Ingles I M2', 'urlVideo' => 'https://www.youtube.com/embed/dFJvNYdKGrA', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de inglés, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t2 = Tema::create(['name' =>'Tema 2 : Ingles I M2', 'urlVideo' => 'https://www.youtube.com/embed/dFJvNYdKGrA', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de inglés, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t3 = Tema::create(['name' =>'Tema 3 : Ingles I M2', 'urlVideo' => 'https://www.youtube.com/embed/dFJvNYdKGrA', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de inglés, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t1->modules()->sync(2); $t2->modules()->sync(2); $t3->modules()->sync(2); $t1 = Tema::create(['name' =>'Tema 1 : Ingles II M1', 'urlVideo' => 'https://www.youtube.com/embed/ozpZ67NKgaI', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de inglés, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t2 = Tema::create(['name' =>'Tema 2 : Ingles II M1', 'urlVideo' => 'https://www.youtube.com/embed/ozpZ67NKgaI', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de inglés, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t3 = Tema::create(['name' =>'Tema 3 : Ingles II M1', 'urlVideo' => 'https://www.youtube.com/embed/ozpZ67NKgaI', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de inglés, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t1->modules()->sync(3); $t2->modules()->sync(3); $t3->modules()->sync(3); $t1 = Tema::create(['name' =>'Tema 1 : Ingles II M2', 'urlVideo' => 'https://www.youtube.com/embed/ozpZ67NKgaI', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de inglés, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t2 = Tema::create(['name' =>'Tema 2 : Ingles II M2', 'urlVideo' => 'https://www.youtube.com/embed/ozpZ67NKgaI', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de inglés, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t3 = Tema::create(['name' =>'Tema 3 : Ingles II M2', 'urlVideo' => 'https://www.youtube.com/embed/ozpZ67NKgaI', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de inglés, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t1->modules()->sync(4); $t2->modules()->sync(4); $t3->modules()->sync(4); $t1 = Tema::create(['name' =>'Tema 1 : Japones I M1', 'urlVideo' => 'https://www.youtube.com/embed/ozpZ67NKgaI', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t2 = Tema::create(['name' =>'Tema 2 : Japones I M1', 'urlVideo' => 'https://www.youtube.com/embed/ozpZ67NKgaI', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t3 = Tema::create(['name' =>'Tema 3 : Japones I M1', 'urlVideo' => 'https://www.youtube.com/embed/ozpZ67NKgaI', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t1->modules()->sync(5); $t2->modules()->sync(5); $t3->modules()->sync(5); $t1 = Tema::create(['name' =>'Tema 1 : Japones I M2', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t2 = Tema::create(['name' =>'Tema 2 : Japones I M2', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t3 = Tema::create(['name' =>'Tema 3 : Japones I M2', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t1->modules()->sync(6); $t2->modules()->sync(6); $t3->modules()->sync(6); $t1 = Tema::create(['name' =>'Tema 1 : Matematica I M1', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t2 = Tema::create(['name' =>'Tema 2 : Matematica I M1', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t3 = Tema::create(['name' =>'Tema 3 : Matematica I M1', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t1->modules()->sync(7); $t2->modules()->sync(7); $t3->modules()->sync(7); $t1 = Tema::create(['name' =>'Tema 1 : Matematica I M2', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t2 = Tema::create(['name' =>'Tema 2 : Matematica I M2', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t3 = Tema::create(['name' =>'Tema 3 : Matematica I M2', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t1->modules()->sync(8); $t2->modules()->sync(8); $t3->modules()->sync(8); $t1 = Tema::create(['name' =>'Tema 1 : Bioquimica I M1', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t2 = Tema::create(['name' =>'Tema 2 : Bioquimica I M1', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t3 = Tema::create(['name' =>'Tema 3 : Bioquimica I M1', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t1->modules()->sync(9); $t2->modules()->sync(9); $t3->modules()->sync(9); $t1 = Tema::create(['name' =>'Tema 1 : Bioquimica I M2', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t2 = Tema::create(['name' =>'Tema 2 : Bioquimica I M2', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t3 = Tema::create(['name' =>'Tema 3 : Bioquimica I M2', 'urlVideo' => 'https://www.youtube.com/embed/lE2OBs1Njak', 'urlMaterial' => 'https://www.curso-ingles.com/aprender/cursos/nivel-basico', 'texto'=>'El curso básico de Japones, está diseñado para los que están empezando. Al finalizar el curso, el estudiante tendrá una comprensión de los conceptos básicos de inglés y será capaz de formar construcciones y oraciones simples.',]); $t1->modules()->sync(10); $t2->modules()->sync(10); $t3->modules()->sync(10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => '[email protected]', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"[email protected]\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'[email protected]'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => '[email protected]',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => '[email protected]',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> '[email protected]',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = [email protected]\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => '[email protected]']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'[email protected]',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','[email protected]')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => '[email protected]']);\n\n factory(Category::class, 5)->create();\n }", "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => '[email protected]',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'[email protected]', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'[email protected]', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }", "public function run()\n {\n \t$roles = DB::table('roles')->pluck('id');\n \t$sexes = DB::table('sexes')->pluck('id');\n \t$faker = \\Faker\\Factory::create();\n\n \tforeach (range(1,20) as $item) {\n \t\tDB::table('users')->insert([\n \t\t\t'role_id' => $faker->randomElement($roles),\n \t\t\t'sex_id' => $faker->randomElement($sexes),\n \t\t\t'name' => $faker->firstName . ' ' . $faker->lastName,\n \t\t\t'dob' => $faker->date,\n \t\t\t'bio' => $faker->text,\n \t\t\t'created_at' => now(),\n \t\t\t'updated_at' => now()\n \t\t]);\n \t} \n }" ]
[ "0.80130625", "0.79795986", "0.79764974", "0.79524934", "0.7950615", "0.79505694", "0.7944086", "0.7941758", "0.7938509", "0.79364634", "0.79335415", "0.7891555", "0.78802574", "0.78790486", "0.7878107", "0.7875447", "0.78703815", "0.7869534", "0.7851931", "0.7850407", "0.7840015", "0.78331256", "0.7826906", "0.78172284", "0.7807776", "0.78024083", "0.78023773", "0.7799859", "0.77994525", "0.77955437", "0.7790015", "0.77884936", "0.7786196", "0.77790534", "0.7776279", "0.7765613", "0.7761798", "0.7760838", "0.7760613", "0.7760611", "0.7759328", "0.7757682", "0.775591", "0.7752759", "0.774942", "0.7748997", "0.7745014", "0.7728245", "0.7727775", "0.77277344", "0.7716621", "0.77139914", "0.7713781", "0.77135956", "0.7713254", "0.7711222", "0.7710622", "0.7710614", "0.77104497", "0.77100515", "0.770471", "0.77039754", "0.7703702", "0.770327", "0.7702392", "0.7700962", "0.7700507", "0.7698413", "0.76974845", "0.7697178", "0.7696662", "0.76933604", "0.76916313", "0.76898587", "0.7689098", "0.76864886", "0.76862013", "0.76860833", "0.7685714", "0.7683389", "0.76831365", "0.7679125", "0.76774627", "0.767677", "0.7676274", "0.76719916", "0.76704824", "0.76679665", "0.7667335", "0.7667264", "0.76645994", "0.7662546", "0.76618296", "0.7660438", "0.76583356", "0.76564723", "0.76530147", "0.7651929", "0.7651548", "0.7651444", "0.76511025" ]
0.0
-1
Denormalizes data back into an object of the given class.
public function denormalize($data, $class, $format = null, array $context = []) { $object = $this->extractObjectToPopulate($class, $context) ?? new $class(); isset($data['name']) && $object->setName($data['name']); isset($data['description']) && $object->setDescription($data['description']); isset($data['domain']) && $object->setDomain($this->serializer->denormalize($data['domain'], SettingDomain::class, $format, $context)); isset($data['type']) && $object->setType(new Type($data['type'])); isset($data['type_options']) && $object->setTypeOptions($data['type_options']); isset($data['data']) && $object->setDataValue($data['data']); isset($data['tags']) && $object->setTags(new ArrayCollection($this->serializer->denormalize($data['tags'], SettingTag::class . '[]', $format, $context))); isset($data['choices']) && $object->setChoices($data['choices']); return $object; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function denormalize($data, $class)\n\t{\n\t\treturn $this->getSerializer()->deserialize(json_encode($data), $class, 'json', $this->applyOptionsToContext(DeserializationContext::create()));\n\t}", "public function denormalize($data, $class, $format = null, array $context = [])\n {\n $reflection = new ReflectionClass($class);\n $instance = $reflection->newInstanceWithoutConstructor();\n\n foreach ($data as $key => $value) {\n $property = $reflection->getProperty($key);\n $property->setAccessible(true);\n $property->setValue($instance, $value);\n }\n\n return $instance;\n }", "public function denormalize($data, $normalizable)\n {\n $class = is_string($normalizable) ?\n $normalizable : (\n $normalizable instanceof \\ReflectionClass ?\n $normalizable->name :\n get_class($normalizable)\n )\n ;\n $reflection = isset(self::$reflectionPool[$class]) ?\n self::$reflectionPool[$class] :\n self::$reflectionPool[$class] = $normalizable instanceof \\ReflectionClass ?\n $normalizable :\n new \\ReflectionClass($class)\n ;\n\n $object = $normalizable;\n\n // Already got a denormalized object ?\n if (is_object($data) && is_a($data, $class)) {\n return $data;\n }\n\n // Got reflection ? so build a new object\n if (is_string($object) || $object instanceof \\ReflectionClass) {\n if (empty($data)) { // no data ? no worries !\n return $reflection->newInstance();\n }\n\n $arguments = array();\n\n // Construct with parameters ? we will try to hydrate arguments from their names\n if ($reflection->hasMethod('__construct')\n && count($parameters = $reflection->getMethod('__construct')->getParameters())\n ) {\n // String as items cases like \\DateTime\n if (!is_array($data)) {\n $arguments = array($data);\n unset($data);\n } else {\n // Hydrate constructor args from data keys\n foreach ($parameters as $parameter) {\n $argKey = $this->inflector->snakelize($parameter->getName());\n if (isset($data[$argKey])) {\n $arguments[] = $parameter->getClass() ?\n $this->normalize($data[$argKey], $parameter->getClass()) :\n $data[$argKey]\n ;\n unset($data[$argKey]);\n\n continue;\n }\n\n $arguments[] = $parameter->isOptional() ?\n $parameter->getDefaultValue() :\n null\n ;\n }\n }\n }\n\n $object = empty($arguments) ?\n $reflection->newInstance() :\n $reflection->newInstanceArgs($arguments);\n }\n\n // BAD !\n if ($object instanceof EntityCollection) {\n return $object->denormalize($data);\n }\n\n if (empty($data)) {\n return $object;\n }\n\n $write = \\Closure::bind(\n $this->createWrittingDelegate(),\n $object,\n get_class($object)\n );\n\n foreach ($data as $property => $value) {\n // Instanciate propertyPath before usage, to improve performance.\n if (!isset($this->propertiesPathPool[$property])) {\n $this->propertiesPathPool[$property] = new PropertyPath($property);\n }\n $propertyPath = $this->propertiesPathPool[$property];\n\n // simple case : access property\n if (!$reflection->hasMethod($setter = sprintf('set%s', ucfirst($property)))) {\n $write($propertyPath, $value, $this->propertyAccessor);\n continue;\n }\n\n // extract setter class from type hinting\n $reflectionMethod = $reflection->getMethod($setter);\n $parameters = $reflectionMethod->getParameters();\n $setParameter = $parameters[0];\n\n // scalar or array ?\n if (!$setParameter->getClass() || $setParameter->isArray()) {\n $write($propertyPath, $value, $this->propertyAccessor);\n\n continue;\n }\n\n // nullable object ?\n if (empty($value)) {\n if ($setParameter->allowsNull()) {\n $write($propertyPath, null, $this->propertyAccessor);\n }\n\n continue;\n }\n\n // callable ?\n if (is_callable($value)) {\n if ($setParameter->isCallable()) {\n $write($propertyPath, $value, $this->propertyAccessor);\n }\n }\n\n $write(\n $propertyPath,\n $this->denormalize($value, $setParameter->getClass()),\n $this->propertyAccessor\n );\n }\n\n return $object;\n }", "public function denormalize( $data, $class, $format = null, array $context = array() ) {\n\t\tif ( is_null( $data ) ) {\n\t\t\treturn null;\n\t\t}\n\n\t\t$this->format = $format;\n\t\t$this->context = $context;\n\n\t\t$data = new SafeArrayAccess( $data );\n\n\t\t$paymentData = new PaymentData();\n\t\t$paymentData->addCvnNumber( $this->denormalizeCvn( $data));\n\n\t\treturn $paymentData;\n\n\t}", "public function denormalize(array $data);", "abstract public function hydrate($data);", "public function denormalize($data, $className)\n {\n /** @var Activity $activity */\n $activity = $this->denormalizeActivity($data);\n\n /** @var ActivityStreamsEvent $object */\n $reflectionClass = new \\ReflectionClass($className);\n $object = $reflectionClass->newInstanceWithoutConstructor();\n $object->denormalize($activity);\n\n return $object;\n }", "public function denormalize($data, $class, $format = null, array $context = [])\n {\n $frpItem = new FranchisePoolItem();\n $frpItem->setItemId(intval(intval($data['id'])));\n $frpItem->setArtist(strip_tags($data['cell'][2]));\n $frpItem->setTitle(strip_tags($data['cell'][3]));\n $frpItem->addRelatedGenre(trim(strip_tags($data['cell'][4])));\n $frpItem->setReleaseDate(\\DateTime::createFromFormat('m/d/Y', $data['cell'][5]));\n $frpItem->setVideo(true);\n\n return $frpItem;\n }", "function data2Object($data) { \n\t\t\t$class_object = new getData($data); \n\t\t\treturn $class_object; \n\t\t}", "public function denormalize(DenormalizerInterface $denormalizer, $data, string $format = null, array $context = [])\n {\n }", "public function hydrate($data)\n\t{\n\t\tif (is_array($data))\n\t\t{\n\t\t\t//get our id back\n\t\t\t$this->id = $data['id'];\n\n\t\t\t//obviously we want to load our data.\n\t\t\t$this->data = $data['data'];\n\t\t}\n\t}", "public function hydrate(string $entityClass, array $data)\n {\n $hydrator = $this->getHydrator($entityClass);\n\n return $hydrator->hydrate($data);\n }", "public function denormalize($data, $class, $format = null, array $context = [])\n {\n if (is_string($data)) {\n return unserialize($data);\n } elseif (is_array($data) && isset($data['message'], $data['code'])) {\n try {\n $exception = new $class($data['message'], $data['code']);\n foreach (['file', 'line'] as $attribute) {\n if (isset($data[$attribute])) {\n $property = ReflectionManager::reflectProperty($class, $attribute);\n $property->setAccessible(true);\n $property->setValue($exception, $data[$attribute]);\n }\n }\n return $exception;\n } catch (\\ReflectionException $e) {\n return new \\RuntimeException(sprintf(\n 'Bad data %s: %s', $data['class'], $data['message']\n ), $data['code']);\n } catch (\\TypeError $e) {\n return new \\RuntimeException(sprintf(\n 'Uncaught data %s: %s', $data['class'], $data['message']\n ), $data['code']);\n }\n }\n\n return new \\RuntimeException('Bad data data: ' . json_encode($data));\n\n }", "public function convertToObject(\\SetaPDF_Core_Type_Raw $data) {}", "public function hydrate(array $data);", "public function hydrate($object, array $data);", "public function hydrate(string $className, array $data): EntityInterface;", "#[\\ReturnTypeWillChange]\n public function __unserialize($data)\n {\n }", "public static function convert_request_to_object( $class, $data, $returnArray=false )\n {\n $object = new $class();\n $keys = array_keys( $data );\n foreach( $keys as $key )\n {\n if ( property_exists( $class, $key ) )\n {\n $object->$key = trim( $data[$key] );\n }\n }\n if ( $returnArray )\n {\n return object_to_array( $object );\n }\n return $object;\n }", "public function transform($data)\n {\n $this->resolveFieldMapping($data, $this->field_map);\n return $data;\n }", "public function deserialize($data, $class, $format)\n\t{\n\t\treturn $this->get('swagger_server.model.model_serializer')->deserialize($data, $class, $format);\n\t}", "public static function hydrate($data)\n {\n return self::hydrateModelProperties(\n new self(),\n $data,\n array(),\n array()\n );\n }", "public function denormalize($data, $class, $format = null, array $context = array())\n {\n if (!isset($data['title']) && !isset($data['img'])) {\n throw new BadRequestHttpException('A jokepost must contain a title and an image.');\n }\n\n $jokepost = new JokePost();\n $jokepost->setTitle($data['title']);\n $jokepost->setImg($date['img']);\n\n return $jokepost;\n }", "public function scrubObject(object $data) : object;", "abstract public function hydrate(array $data, $options);", "public function supportsDenormalization($data, $type, $format = null, array $context = array());", "public function arrayToObject($data){\n\t\t$namespaceDAO = explode(\"\\\\\", get_class($this));\n\t\t$nameDAO = array_pop($namespaceDAO);\n\t\t$pos = strpos($nameDAO, \"DAO\");\n\t\t$class = \"\\\\Models\\\\Business\\\\\" . substr($nameDAO, 0,$pos);\n\t\t$setters = $this->getSettersFromClass($class);\n\t\t$object = new $class;\n\t\t$i = 0;\n\t\tforeach ($data as $key => $value) {\n\t\t\t$object->$setters[$i]($value);\n\t\t\t$i++;\n\t\t}\n\t\treturn $object;\n\t}", "public final function __fromArray($data)\n {\n foreach ($data as $k => $v)\n {\n if ($k!=self::CLASS_FIELD_KEY)\n {\n //codice pronto da usare per la trasformazione degli oggetti in cascata.\n /* \n //associazione tramite chiave esterna\n if (ActiveRecord::isValidArrayDO($v))\n {\n $this->{$k} = ActiveRecord::fromArray($v);\n }\n else\n if (is_array($v)) //associazione tramite tabella esterna\n {\n $result = array();\n foreach ($v as $nes_key => $nes_value)\n {\n $result[] = ActiveRecord::fromArray($nes_value);\n }\n $this->{$k} = $result;\n }\n else*/\n $this->{$k} = $v;\n }\n }\n }", "public function decode($class = null)\n {\n $data = $this->decodeStruct();\n return $this->mapper->unmap($data, $class);\n }", "private function resolveSourceMetadataForClass(\\stdClass $data, $class)\n {\n $metadata = $this->manager->getClassMetadata($class);\n $discriminatorValue = $metadata->getDiscriminatorValue();\n if ($metadata->getDiscriminatorField()) {\n $property = $metadata->getDiscriminatorField()['fieldName'];\n if (isset($data->$property)) {\n $discriminatorValue = $data->$property;\n }\n }\n\n $map = $metadata->getDiscriminatorMap();\n\n if (!array_key_exists($discriminatorValue, $map)) {\n throw MappingException::unknownDiscriminatorValue($discriminatorValue, $class);\n }\n\n $realClass = $map[$discriminatorValue];\n\n return $this->manager->getClassMetadata($realClass);\n }", "public static function hidrateModel($class, $data)\n {\n if ($data instanceof Model) {\n return $data;\n }\n\n if (!isset($data['pivot'])) {\n throw new \\Exception(\"The 'pivot' attribute in the {$class} is hidden\");\n }\n\n $model = new $class;\n $primaryKey = $model->getKeyName();\n\n $model->setAttribute($primaryKey, $data[$primaryKey])->setAttribute('name', $data['name']);\n $model->setRelation(\n 'pivot',\n MorphPivot::fromRawAttributes($model, $data['pivot'], 'pivot_table')\n );\n\n return $model;\n }", "public function hydrate($data){\n foreach ($data as $key => $value){\n $method = 'set'.ucfirst($key);\n \n if (method_exists($this, $method)){\n $this->$method($value);\n }\n }\n }", "abstract protected function unSerializeData();", "function _ctools_export_unpack_object($schema, $data, $object = 'stdClass') {\r\n if (is_string($object)) {\r\n if (class_exists($object)) {\r\n $object = new $object;\r\n }\r\n else {\r\n $object = new stdClass;\r\n }\r\n }\r\n\r\n // Go through our schema and build correlations.\r\n foreach ($schema['fields'] as $field => $info) {\r\n if (isset($data->$field)) {\r\n $object->$field = empty($info['serialize']) ? $data->$field : unserialize($data->$field);\r\n\t\t\t//$object->$field = $data->$field;\r\n }\r\n else {\r\n $object->$field = NULL;\r\n }\r\n }\r\n\r\n if (isset($schema['join'])) {\r\n foreach ($schema['join'] as $join_key => $join) {\r\n $join_schema = ctools_export_get_schema($join['table']);\r\n if (!empty($join['load'])) {\r\n foreach ($join['load'] as $field) {\r\n $info = $join_schema['fields'][$field];\r\n $object->$field = empty($info['serialize']) ? $data->$field : unserialize($data->$field);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return $object;\r\n}", "public function bsonUnserialize( array $data ): void {\n\t\t//get the called class name\n\t\t$calledClassFqn = typeHelpers::classNameToFqn( get_called_class() );\n\n\t\ttry {\n\t\t\t$rClass = new \\ReflectionClass( $calledClassFqn );\n\t\t}\n\t\tcatch( \\ReflectionException $e ) {\n\t\t\tthrow new databaseException( 'Failed to unserialize bson data for ' . $calledClassFqn, 500, $e );\n\t\t}\n\n\t\t$this->_meta = new _meta( $calledClassFqn );\n\n\t\t//get properties of the class and set their values to the data provided from the database\n\t\t$rProperties = $rClass->getProperties();\n\t\tforeach( $rProperties as $rProperty ) {\n\t\t\t$propertyName = $rProperty->getName();\n\n\t\t\t//if property is not meant to be unserialized, exclude it\n\t\t\t$attributes = $rProperty->getAttributes( excludeBsonUnserialize::class );\n\t\t\tif( count( $attributes )>0 ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$propertyType = null;\n\t\t\t$propertyTypeName = '';\n\n\t\t\tif( $rProperty->hasType() ) {\n\t\t\t\t$propertyType = $rProperty->getType();\n\n\t\t\t\tif( !( $propertyType instanceof \\ReflectionUnionType ) ) {\n\t\t\t\t\t$propertyTypeName = $propertyType->getName();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//if the property is an array, check if the doc comment defines the type\n\t\t\t$propertyIsTypedArray = false;\n\t\t\tif( $propertyTypeName=='array' ) {\n\t\t\t\t$arrayType = typeHelpers::getVarTypeFromDocComment( $rProperty->getDocComment() );\n\t\t\t\tif( $arrayType!='array' && $arrayType!='string' && $arrayType!='float' && $arrayType!='int' ) {\n\t\t\t\t\t$propertyIsTypedArray = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif( $propertyIsTypedArray ) {\n\t\t\t\tif( !isset( $data[ $propertyName ] ) ) {\n\t\t\t\t\tlog::info( 'MongoUnserialize', $calledClassFqn.'.'.$propertyName.' of type '.$propertyType.' set to default value' );\n\t\t\t\t\t$data[ $propertyName ] = $rProperty->getDefaultValue();\n\t\t\t\t}\n\t\t\t\tforeach( $data[ $propertyName ] as $key => $value ) {\n\t\t\t\t\tlog::info( 'MongoUnserialize', $calledClassFqn.'.'.$propertyName.' key '.$key.' of type '.$propertyType.' set' );\n\t\t\t\t\t$this->$propertyName[ $key ] = $this->bsonUnserializeDataItem( $rProperty, $propertyType, $arrayType, $value );\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif( !array_key_exists( $propertyName, $data ) ) {\n\t\t\t\t\tlog::info( 'MongoUnserialize', $calledClassFqn.'.'.$propertyName.' value not in provided data' );\n\t\t\t\t\t$value = null;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$value = $data[ $propertyName ];\n\t\t\t\t}\n\n\t\t\t\t//set the class property = the parsed value from the database\n\t\t\t\ttry {\n\t\t\t\t\tlog::info( 'MongoUnserialize', $calledClassFqn.'.'.$propertyName.' of type '.$propertyType.' set' );\n\t\t\t\t\t$this->$propertyName = $this->bsonUnserializeDataItem( $rProperty, $propertyType, $propertyTypeName, $value );\n\t\t\t\t}\n\t\t\t\tcatch( \\Exception|\\TypeError $e ) {\n\t\t\t\t\terror_log( $e );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//if this is a text search that has provided the score of the result via the _score field\n\t\tif( isset( $data[ '_score' ] ) ) {\n\t\t\t$this->_meta->score = round( $data[ '_score' ], 2 );\n\t\t}\n\n\t\tif( method_exists( $this, '_afterBsonUnserialize' ) ) {\n\t\t\t$this->_afterBsonUnserialize( $data );\n\t\t}\n\t}", "public function hydrate($data) {\r\n $this->orm->hydrate($data)->force_all_dirty();\r\n }", "public function convert($data)\n {\n if (is_object($data)) {\n $data = get_object_vars($data);\n }\n\n if (is_array($data)) {\n return array_map(__METHOD__, $data);\n } else {\n return $data;\n }\n }", "public function __unserialize(array $data): void\n {\n $this->__construct($data);\n }", "public function hydrate($data) {\n foreach ($data as $key => $value) {\n $method = 'set' . ucfirst($key);\n if(!isset($value)){\n $v = null;\n }else{\n $v = $value;\n }\n if (method_exists($this, $method)) {\n $this -> $method($v);\n }\n }\n\t}", "abstract public function Convert($data);", "public function cast($class, $object)\r\n {\r\n foreach ($object as $index => $value) \r\n {\r\n if (is_array($object[$index]) && $index == '0') \r\n {\r\n $this->cast($class, $object[$index]);\r\n } \r\n elseif (property_exists($class, $index)) \r\n {\r\n $this->$index = $value;\r\n }\r\n }\r\n return $this;\r\n }", "function typecast($old_object, $new_classname) {\r\n if(class_exists($new_classname)) {\r\n\r\n //echo \"OLD<br>\";\r\n //dataDump($old_object);\r\n\r\n $old_serialized_object = serialize($old_object);\r\n $n=explode(\":\",$old_serialized_object);\r\n $new_serialized_object = 'O:' . strlen($new_classname) . ':\"' . $new_classname . '\":' .$n[3].\":\". \r\n substr($old_serialized_object, strpos($old_serialized_object,\"{\"));\r\n\r\n //echo \"Casting OK $old_serialized_object<br>$new_serialized_object\";\r\n //echo \"NEW<br>\";\r\n //dataDump(unserialize($new_serialized_object));\r\n\r\n return unserialize($new_serialized_object);\r\n }\r\n else {\r\n debug(\"$new_classname no existe o no ha sido definida!!!!\",\"red\");\r\n return false;\r\n }\r\n}", "protected function normalize() {}", "public function hydrate($data)\n\t{\n\t\tforeach ($data as $attribut => $value)\n\t\t{\n\t\t\t$methode = 'set'.ucfirst($attribut);\n\t\t\tif (is_callable([$this, $methode]))\n\t\t\t{\n\t\t\t\t$this->$methode($value);\n\t\t\t}\n\t\t}\n\t}", "public function hydrate(array $data){ \n \tforeach ($data as $key => $value){\n \t\t$method = 'set'.ucfirst($key); \n \tif (method_exists($this, $method)){\n \t$this->$method($value);\n }\n }\n\t}", "public function hydrate($dataSet)\r\n {\r\n $this->id = $dataSet['id'];\r\n $this->nom = $dataSet['nom'];\r\n $this->archi = $dataSet['archi'];\r\n $this->version = $dataSet['version'];\r\n $this->ihm = $dataSet['ihm'];\r\n $this->visible = $dataSet['visible'];\r\n }", "public function toObject()\r\n\t{\r\n\t\treturn (object)$this->m_data;\r\n\t}", "protected function hydrate($data){\n\n foreach($data as $field => $value){\n\n //field = marque_id\n //fieldarray = ['marque','id']\n $fieldArray = explode(\"_\", $field);\n\n if(isset($fieldArray[1]) && $fieldArray[1] == \"id\"){\n $manName = ucfirst($fieldArray[0]).\"Manager\";\n require_once(\"./model/managers/\".$manName.\".php\");\n $man = new $manName();\n $value = $man->findOneById($value);\n }\n \n $method = \"set\".ucfirst($fieldArray[0]);\n if(method_exists($this, $method)){\n $this->$method($value);\n }\n\n }\n }", "public function __invoke($data) {\n return $this->transform($data);\n }", "protected function normalizeData($data){\n if (is_array($data)){\n $ret = array();\n foreach($data as $key => $value){\n if (is_array($value))\n $ret[$key] = $this->normalizeData($value);\n elseif(is_a($value,'CActiveRecord'))\n $ret[$key] = $value->attributes;\n else\n $ret[$key] = $value;\n }\n return $ret;\n }elseif(is_a($data, 'CActiveRecord')){\n return $data->attributes;\n }else\n return $data;\n }", "protected function hydrate()\n {\n $state = $this->_payload->state();\n foreach ($state as $key => $value) {\n $type = null;\n try {\n $type = optional((new \\ReflectionProperty($this, $key))->getType())->getName();\n } catch(\\Exception $e) {\n }\n if ($type) {\n $model_key = optional(new $type)->getKeyName();\n if (optional($value)[$model_key]) {\n $model = (new $type)->find(optional($value)[$model_key]);\n if ($model && ! is_null($value)) {\n $this->hydrate_model_attributes($model, (array) $value);\n $this->{$key} = $model;\n } else {\n $model = (new $type);\n $this->hydrate_model_attributes($model, (array) $value);\n $this->{$key} = $model;\n }\n } else {\n $model = (new $type);\n $this->hydrate_model_attributes($model, (array) $value);\n $this->{$key} = $model;\n }\n } else {\n $this->{$key} = $value;\n }\n }\n }", "public function convert( $data ) {\n\t\tif ( is_object($data) ) {\n\t\t\t$data = Helper::convert_wp_object($data);\n\t\t} else if ( is_array($data) ) {\n\t\t\t$func = __FUNCTION__;\n\t\t\tforeach ( $data as &$ele ) {\n\t\t\t\tif ( is_array($ele) ) {\n\t\t\t\t\t$ele = $this->$func($ele);\n\t\t\t\t} else if ( is_object($ele) ) {\n\t\t\t\t\t$ele = Helper::convert_wp_object($ele);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $data;\n\t}", "public function hydrate(array $data, $object)\n {\n foreach ($data as $key => $value) {\n\n $hydrateName = $this->hydrateName($key);\n\n if ($object->has($hydrateName)) {\n $method = 'set' . ucfirst($hydrateName);\n $value = $this->hydrateValue($hydrateName, $value, $data);\n $object->$method($value);\n }\n }\n\n return $object;\n }", "function TransformIntoStdClass($obj){\r\n $attrs = get_object_vars($obj);\r\n if($obj instanceof EntityModel){\r\n /*\r\n * remove attribute from EntityModel\r\n */\r\n unset($attrs['_attrib']);\r\n }\r\n \r\n $cls = new stdClass();\r\n \r\n foreach ($attrs as $key=>$value){\r\n $cls->$key = $value;\r\n }\r\n return $cls;\r\n}", "protected function hydrateModel($dataset)\n {\n $class = $this->metadata->getClass();\n\n return new $class($dataset);\n }", "public function normalize(): self;", "public function convert($data);", "protected function hydrate($dataSet)\r\n {\r\n $this->id = $dataSet['id'];\r\n $this->label = $dataSet['label'];\r\n $this->description = $dataSet['description'];\r\n $this->contenu = $dataSet['contenu'];\r\n }", "public function hydrate(array $data)\n {\n foreach ($data as $key => $value) {\n $method = 'set' . str_replace(\"_\", \"\", ucwords($key, \"_\"));\n if (method_exists($this, $method)) {\n $this->$method($value);\n }\n }\n }", "public function persist( $class, $data){\n\n \t$model = ( isset($data['id']) ) ? $class::find( $data['id'] ) : new $class ;\n\n\t $model->fill( $data );\n\n\t $model->save();\n\n\t return $model;\n }", "public function convert($data) {\r\n\t\tif(is_array($data) || is_object($data)) {\r\n\t\t\t$result = array();\r\n\t\t\tforeach ($data as $key => $value) {\r\n\t\t\t\t$result[$key] = $this->__convert($value);\r\n\t\t\t}\r\n\t\t\treturn $result;\r\n\t\t}\r\n\t\treturn $data;\r\n\t}", "abstract protected function to_single($res, $className);", "public function hydrate(array $data, $object)\n {\n if($object instanceof SportCategory) {\n $object->setId(isset($data['c_s_id'])? $data['c_s_id']: null);\n $object->setName(isset($data['c_s_name'])? $data['c_s_name']: null);\n $object->setKId( isset( $data['k_id'])? $data['k_id']: null );\n }\n\n return $object;\n }", "function drupal_unpack($obj, $field = 'data') {\n if ($obj->$field && $data = unserialize($obj->$field)) {\n foreach ($data as $key => $value) {\n if (!isset($obj->$key)) {\n $obj->$key = $value;\n }\n }\n }\n return $obj;\n}", "public static function hydrate($target, $data)\n\t{\n\t\tif (is_object($target)) {\n\t\t\treturn Obj::hydrate($target, $data);\n\t\t}\n\n\t\tif (is_array($target)) {\n\t\t\treturn Arr::hydrate($target, $data);\n\t\t}\n\n\t\tthrow new \\InvalidArgumentException(sprintf(\n\t\t\t\"Cannot hydrate variable of type '%s'.\", gettype($target)\n\t\t));\n\t}", "public function cast($entity, array $data, array $options = array()) {\n $model = $entity->model();\n foreach ($data as $key => $val) {\n if (!is_array($val)) {\n continue;\n }\n $data[$key] = $this->item($model, $val, array('class' => 'entity'));\n }\n return parent::cast($entity, $data, $options);\n }", "public function hydrate($dataSet)\r\n {\r\n $this->id = $dataSet['id'];\r\n $this->nomRole = $dataSet['nom_role'];\r\n $this->description = $dataSet['description'];\r\n }", "public function hydrate(array $data)\n {\n foreach ($data as $key => $value) {\n $method = 'set'.ucfirst($key);\n\n if (method_exists($this, $method)) {\n $this->$method($value);\n }\n }\n }", "public function __unserialize(array $data): void\n {\n $this->createFromArray($data);\n }", "private function dataConvert($array)\n {\n $result = false;\n if(count($array) && isset($array[0]) && is_array($array[0]))\n {\n $class = get_class($this);\n foreach($array as $arr)\n {\n $result[] = new $class((int) $arr[$this->primaryName]);\n }\n }\n else if(count($array))\n {\n $class = get_class($this);\n $result = new $class((int) $array[$this->primaryName]);\n }\n return $result;\n }", "private function _normalizeData($data)\n\t{\n\t\t$ret = array();\n\t\tforeach($data as $key=>$val)\n\t\t{\n\t\t\tif($val instanceof \\Framework\\Interfaces\\IModelDataType)\n\t\t\t\t$val = $this->_driver->convertModelDataTypeToNativeDataType($val);\n\t\t\telseif(is_array($val))\n\t\t\t\t$val = $this->_normalizeData($val);\n\n\t\t\t//Set value\n\t\t\t$ret[$key] = $val;\n\t\t}\n\n\t\treturn $ret;\n\t}", "protected function transform($data)\n {\n $fractalManager = new Manager();\n $manager = $this->applyIncludes($fractalManager);\n $this->resetIncldues();\n $manager->setSerializer(new ArraySerializer());\n\n return $manager->createData($data)->toArray();\n }", "protected function normalizeDataStruct($data){\n $this->modelName = $data['name'];\n $this->validators = isset($data['validators'])?$data['validators']:array();\n return $data['fields'];\n }", "public function normalizeData() : array;", "public function flushData()\n\t{\n\t\t$class = get_class($this);\n\t\tunset($this->_data[$class]);\n\t}", "protected function hydrate($dataSet)\r\n {\r\n $this->id = $dataSet['id'];\r\n $this->dateEnvoi = $dataSet['date_envoi'];\r\n $this->contenu = $dataSet['contenu'];\r\n $this->modele = $dataSet['modele_mail_id'];\r\n $this->destinataire = $dataSet['user_id'];\r\n }", "public function normalize()\n {\n }", "public function toEntity($array);", "public function toEntity($array);", "private function convertLdapObjectToModel($dataObject, $type = '', array $overrideKeys = [])\n {\n $dataArray = ($dataObject !== null) ? $dataObject->toArray() : [];\n $remappedArray = [];\n\n foreach ($dataArray as $key => $value) {\n if ($key && $key !== 'objectclass') {\n if (array_key_exists($key, $overrideKeys)) {\n $newKey = $overrideKeys[$key];\n } else {\n $newKey = preg_replace('/^libeo/', '', $key);\n $newKey = preg_replace('/^'.$type.'/', '', $newKey);\n }\n if (is_array($value) && count($value) === 1) {\n $value = $value[0];\n }\n $remappedArray[$newKey] = $value;\n }\n }\n \n return new GenericData($remappedArray);\n }", "protected function fromDatabase( $data )\n\t{\n\t\tforeach ( $data AS $field => $value ) \n\t\t{\t\n\t\t\tif ( isset( static::$schema[ $field ] ) )\n\t\t\t{\n\t\t\t\tif ( is_array( static::$schema[ $field ] ) )\n\t\t\t\t{\n\t\t\t\t\t$type = static::$schema[ $field ][ 'type' ];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$type = static::$schema[ $field ];\n\t\t\t\t}\n\t\n\t\t\t\t$this->data[ $field ] = $this->sanitize( $type, $value );\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->loaded = true;\n\t}", "function object_to_array($data)\r\n{\r\n if (is_array($data) || is_object($data))\r\n {\r\n $result = array();\r\n foreach ($data as $key => $value)\r\n {\r\n $result[$key] = object_to_array($value);\r\n }\r\n return $result;\r\n }\r\n return $data;\r\n}", "function _convert_to_entity($stdObject)\n {\n // Add name of the id_field to the entity, and convert\n // the ID to an integer\n $stdObject->id_field = $key = $this->object->get_primary_key_column();\n // Cast columns to their appropriate data type\n $this->cast_columns($stdObject);\n // Strip slashes\n $this->strip_slashes($stdObject);\n // Unserialize columns\n $this->unserialize_columns($stdObject);\n // Set defaults for this entity\n if (!$this->has_default_values($stdObject)) {\n $this->object->set_defaults($stdObject);\n $stdObject->__defaults_set = TRUE;\n }\n return $stdObject;\n }", "function _convert_to_table_data($entity)\n {\n $data = (array) $entity;\n foreach ($data as $key => $value) {\n if (is_array($value)) {\n $data[$key] = $this->object->serialize($value);\n }\n }\n return $data;\n }", "function _convert_entity_to_post($entity)\n {\n // Was a model passed instead of an entity?\n $post = $entity;\n if (!$entity instanceof stdClass) {\n $post = $entity->get_entity();\n }\n // Create the post content\n $post_content = clone $post;\n foreach ($this->object->_table_columns as $column) {\n unset($post_content->{$column});\n }\n unset($post->id_field);\n unset($post->post_content_filtered);\n unset($post->post_content);\n $post->post_content = $this->object->serialize($post_content);\n $post->post_content_filtered = $post->post_content;\n $post->post_type = $this->object->get_object_name();\n // Sometimes an entity can contain a data stored in an array or object\n // Those will be removed from the post, and serialized in the\n // post_content field\n foreach ($post as $key => $value) {\n if (in_array(strtolower(gettype($value)), array('object', 'array'))) {\n unset($post->{$key});\n }\n }\n // A post required a title\n if (!property_exists($post, 'post_title')) {\n $post->post_title = $this->object->get_post_title($post);\n }\n // A post also requires an excerpt\n if (!property_exists($post, 'post_excerpt')) {\n $post->post_excerpt = $this->object->get_post_excerpt($post);\n }\n return $post;\n }", "public function convertEntityToStorage($in);", "public function loadData($class, $data)\n {\n if (!$this->data_types->has($class)) {\n throw new \\Exception(sprintf('You must first define a datatatype for %s', $class));\n }\n\n $dataKeys = $this->data_types->get($class);\n\n if (!is_array($dataKeys)) {\n $dataKeys = [$dataKeys];\n }\n\n $updateCheck = [];\n\n foreach ($dataKeys as $dataKey) {\n if (!array_key_exists($dataKey, $data)) {\n throw new \\Exception(sprintf('You must provide a %s field in the data for datatatype for %s', $dataKey, $class));\n }\n $updateCheck[ $dataKey ] = $data[ $dataKey ];\n }\n\n return $class::updateOrCreate($updateCheck, $data);\n }", "public function hydrate(array $data, $object) \r\n\t{\r\n\t\tif (is_object($object) === false) {\r\n\t\t\tthrow new \\Exception(\"We expect object to be an actual object!\");\r\n\t\t}\r\n\t\t\r\n\t\t// Loop through the properties and values \r\n\t\tforeach ($data as $property=>$value) {\r\n\t\t\t// Check if the property exists in our mapping\r\n\t\t\tif (array_key_exists($property, $this->mapping) === true) {\r\n\t\t\t\t// Build the setter method from our property\r\n\t\t\t\t$setter = 'set'. ucfirst($this->mapping[$property]);\r\n\t\t\t\t\r\n\t\t\t\t// Set the value of the property\r\n\t\t\t\t$object->$setter($this->hydrateValue($this->mapping[$property], $value));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Now return our hydrated object\r\n\t\treturn $object;\r\n\t}", "#[ReturnTypeWillChange]\n public function __unserialize($data)\n {\n foreach ($data as $item) {\n $this->unshift($item);\n }\n }", "public function getNormalizedData()\n {\n return parent::getNormalizedData();\n }", "function toArrayObject($data)\n {\n if (is_object($data))\n $data = get_object_vars($data);\n\n if (is_array($data))\n return array_map(__FUNCTION__, $data);\n else\n return $data;\n }", "public function __invoke() {\n return (object) $this->data;\n }", "public function deserialize($data);", "function &upcastTo(&$targetObject) {\n\t\t// Make sure that target is really inheriting\n\t\t// from this class.\n\t\tassert(is_a($targetObject, get_class($this)));\n\n\t\t// Copy data from the source to the target.\n\t\t$targetObject->setAllData($this->getAllData());\n\n\t\t// Return the upcast object.\n\t\treturn $targetObject;\n\t}", "public function cast(stdClass $result) {\n\t\t\t$this->load($result);\n\t\t\t$this->user_ = new user_($result);\n\t\t\t$this->bike_ = new bike_($result);\n\t\t\t$this->brand_ = new brand_($result);\n\t\t}", "function array_to_object($data) {\n\treturn is_array($data) ? (object) array_map('array_to_object', $data) : $data;\n}", "public function normalize($node) {\n\t\tif (is_array($node)) {\n\t\t\t$node = array_values($node);\n\t\t\t$primary = 'id';\n\n\t\t\tif (!is_object($node[0])) {\n\t\t\t\t$node[0] = ClassRegistry::init($node[0]);\n\t\t\t}\n\n\t\t\t$node[0]->id = $node[1];\n\t\t\treturn $node[0];\n\t\t}\n\n\t\treturn $node;\n\t}", "public static function convertObject($d) {\r\n\t\tif (is_object($d)) {\r\n\t\t\t$d = get_object_vars($d);\r\n\t\t}\r\n\r\n\t\tif (is_array($d)) {\r\n\t\t\treturn array_map(__METHOD__, $d);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn $d;\r\n\t\t}\r\n\t}", "#[\\ReturnTypeWillChange]\n public function unserialize($data)\n {\n }", "function ctools_export_unpack_object($table, $data) {\r\n $schema = ctools_export_get_schema($table);\r\n return _ctools_export_unpack_object($schema, $data, $schema['export']['object']);\r\n}" ]
[ "0.78027046", "0.7109431", "0.6773258", "0.6768001", "0.65877765", "0.63577896", "0.63288087", "0.61879504", "0.60974884", "0.59490573", "0.59060067", "0.57958007", "0.57668996", "0.5762159", "0.56473464", "0.55819595", "0.55783325", "0.55634385", "0.5514949", "0.5510035", "0.55050856", "0.5501594", "0.54905224", "0.5477709", "0.54584706", "0.5457492", "0.5454338", "0.5451051", "0.5423782", "0.5419081", "0.5405667", "0.54033595", "0.5399715", "0.5390969", "0.5361249", "0.5358185", "0.5347476", "0.53376913", "0.53173155", "0.5314334", "0.52925706", "0.5291887", "0.5276848", "0.5262636", "0.5260602", "0.5242224", "0.52222264", "0.52202487", "0.52153844", "0.519476", "0.5194714", "0.518628", "0.5183973", "0.51817405", "0.5178875", "0.5131349", "0.5129057", "0.5122457", "0.5114342", "0.5106243", "0.5089042", "0.5087924", "0.50848526", "0.50733817", "0.5072516", "0.507238", "0.5069261", "0.5067894", "0.50665724", "0.5058485", "0.5045131", "0.5033349", "0.50329745", "0.501458", "0.5006752", "0.5005042", "0.49986959", "0.4996756", "0.4996756", "0.4989949", "0.4981268", "0.49807", "0.4956353", "0.49408662", "0.49376634", "0.493708", "0.4935199", "0.4931041", "0.49215093", "0.49143302", "0.4912355", "0.4906368", "0.49051535", "0.48953223", "0.48952776", "0.48930252", "0.48902836", "0.48883724", "0.4887507", "0.48850143" ]
0.6621054
4
Checks whether the given class is supported for denormalization by this normalizer.
public function supportsDenormalization($data, $type, $format = null) { return is_a($type, Setting::class, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function supports(string $class): bool;", "public function supportsClass($class)\n {\n return $class === 'Surfnet\\StepupMiddlewareClientBundle\\Identity\\Dto\\Identity';\n }", "public function supportsClass($class);", "public function supportsClass($class);", "public function supportsClass($class) {\n return $this->getEntityName() === $class || is_subclass_of($class, $this->getEntityName());\n }", "public function supportsClass($class)\n {\n return !\\in_array($class, $this->classBlacklist);\n }", "public function supportsClass($class)\n {\n return $this->getEntityName() === $class || is_subclass_of($class, $this->getEntityName());\n }", "public function supportsClass($class)\n {\n }", "public function supportsClass($class)\n {\n // TODO: Implement supportsClass() method.\n }", "public function supportsClass($class)\n {\n return $class === '\\Entity\\User\\User';\n }", "public function supports(string $entityClass): bool;", "public function supportsClass($class)\n {\n return $class === $this->class || is_subclass_of($class, $this->class);\n }", "final public function supportsClass($class)\n {\n return $class === User::class;\n }", "public static function isValidDataObject($class)\n {\n $class = strtolower(str_replace('-', '\\\\', $class));\n $list = self::getValidDataObjects();\n return isset($list[$class]);\n }", "public function supportsClass($class)\n {\n return $class === \"FData\\SecurityBundle\\User\\User\";\n }", "public function supportsClass($class)\n {\n return in_array($class, [\n User::class,\n ], true);\n }", "public function supportsClass($class)\n {\n return $class == George::class;\n }", "public function supportsClass($class)\n {\n return IQUser::class === $class;\n }", "public function supportsClass($class): bool\n {\n return User::class === $class;\n }", "protected function supportsClass($class)\n {\n foreach ($this->getSupportedClasses() as $supportedClass) {\n if ($supportedClass === $class || is_subclass_of($class, $supportedClass)) {\n return true;\n }\n }\n\n return false;\n }", "public function supportsClass($class)\n {\n return Account::class === $class;\n }", "public function supportsClass(string $class): bool\n\t{\n\t\treturn User::class === $class || is_subclass_of($class, User::class);\n\t}", "public function isClass() : bool\n {\n return $this->simple && !Validators::isBuiltinType($this->types[0]);\n }", "public function supportsNormalization($data, string $format = null)\n {\n return \\is_object($data) && Diagram::class === \\get_class($data);\n }", "public function supportsNormalization($data, $format = null)\n {\n return $data instanceof MbQuery;\n }", "final private function _isValidSuiteClass ($class) {\n\t\t$ref = new ReflectionClass($class);\n\t\tif ($class === $this->_baseClass or $ref->isSubclassOf($this->_baseClass)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function supportsDenormalization($data, $type, $format = null)\n {\n return class_exists($type) && is_a($type, \\Exception::class, true);\n }", "public function hasClass($class);", "public function supportsDenormalization($data, $type, $format = null)\n {\n return in_array(AbstractExplicitMessage::class, class_parents($type, true), true);\n }", "public function supportsNormalization($data, $format = null)\n {\n return false;\n }", "private function _checkClass()\n {\n if ($this->_useWithoutTypeCheck === true) {\n return true;\n }\n\n $resource = $this->_owApp->selectedResource;\n $rModel = $resource->getMemoryModel();\n\n // search with each expression using the preg matchtype\n foreach ($this->_types as $type) {\n if (isset($type['classUri'])) {\n $classUri = $type['classUri'];\n } else {\n continue;\n }\n if (\n $rModel->hasSPvalue(\n (string) $resource,\n EF_RDF_TYPE,\n $classUri\n )\n ) {\n return true;\n }\n }\n\n // type does not match to one of the expressions\n return false;\n }", "public function supportsNormalization($data, $format = NULL)\n {\n $entityRefl = new \\ReflectionClass($data);\n if($entityRefl->implementsInterface($this->supportedInterfaceOrClass)) {\n $query = $this->queryFactory->get('siren_mapper')\n ->condition('entityType', $data->getEntityTypeId())\n ->condition('bundleType', $data->bundle());\n $ids = $query->execute();\n if(empty($ids)) {\n return false;\n }\n }\n return in_array($format, $this->formats) && parent::supportsNormalization($data, $format);\n }", "public function isValid()\r\n {\r\n if (!retGet('class'))\r\n return false;\r\n\r\n if (!in_array(retGet('class'), $this->_available))\r\n return false;\r\n\r\n return true;\r\n }", "private function isEntitySupported(ClassMetadata $classMetadata)\n {\n return $this->getClassAnalyzer()->hasTrait($classMetadata->reflClass, 'Kairos\\ZohoInvoiceConnectorBundle\\Model\\Invoice\\InvoiceConnector', $this->isRecursive);\n }", "public function supportsDenormalization( $data, $type, $format = null ) {\n\t\tif ( $format == \"xml\" && $type == PaymentData::GetClassName()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function supportsClass($class)\n {\n return AccessToken::class === $class;\n }", "public function supportsNormalization( $data, $format = null ) {\n\t\tif ( $format == \"xml\" && $data instanceof PaymentData ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function supportsNormalization($data, $format = null)\n {\n return $data instanceof \\Exception;\n }", "public function supportsNormalization($data, $format = null)\n {\n return $data instanceof JokePost;\n }", "public function is_a($class)\n {\n return (bool)singleton('mwm')->is_instanceof($class, $this->owner);\n }", "public function hasEntityClass(): bool\n {\n return $this->hasDataItem('entity');\n }", "public function supportsClass($contextClass)\n {\n return (strpos($contextClass, self::CONTEXT_NAMESPACE) === 0);\n }", "protected function isEntity($class)\n {\n return Nishchay::getEntityCollection()->isExist($class);\n }", "public function supportsNormalization($data, $format = null)\n {\n return $data instanceof Mesures;\n }", "public function isEntitySupported(ClassMetadata $classMetadata)\n {\n return (isset($this->mapping[$classMetadata->getName()]));\n }", "public function is(string $class)\n {\n return is_a($this->value, $class, false);\n }", "protected function verifyIsDerivedClass($class)\n {\n $derived = true;\n\n if (is_string($class)) {\n if (!in_array(get_class($this), class_parents($class))) {\n $derived = false;\n }\n } else {\n if (!($class instanceof $this)) {\n $derived = false;\n }\n }\n\n if (!$derived) {\n // Grab the backtrace\n $backtrace = debug_backtrace();\n $last = $backtrace[1];\n\n // Emulate a PHP SPL/internal-style exception\n throw new UnexpectedValueException(\n $last['class'] .'::'. $last['function']\n .'() expects parameter to be a class name derived from '\n . get_class($this) .', \\''. $last['args'][0] .'\\' given'\n );\n }\n\n return $derived;\n }", "private function isVendor($class)\n {\n return $this->isInNamespace($class, self::LARAVEL_VENDOR_NAMESPACE)\n || $this->isInNamespace($class, self::LUMEN_VENDOR_NAMESPACE)\n || $this->isInNamespace($class, self::COLLISION_VENDOR_NAMESPACE);\n }", "public function shouldShow()\n {\n return $this->_checkClass();\n }", "private function supportData()\n {\n $dataClass = $this->type->getDataClass();\n\n return $this->data instanceof $dataClass || $dataClass === get_class($this->data);\n }", "public function isClassSupported($className)\n {\n $mappingConfig = $this->getMappingConfig();\n\n return array_key_exists($className, $mappingConfig);\n }", "public function supportsNormalization($data, $format = null)\n {\n return $data instanceof AbstractExplicitMessage;\n }", "public function is($class)\n {\n return $this->config instanceof $class;\n }", "public function hasClass(): bool;", "public function supportsDenormalization($data, string $type, string $format = null): bool\n {\n return \\in_array($type, [DateTime::class, \\DateTimeImmutable::class]);\n }", "public function isClass(): bool\n {\n return !is_null($this->namespaceParts);\n }", "public function is_not_a($class)\n {\n return !$this->is_a($class);\n }", "public function supportsClass($class)\r\n {\r\n @trigger_error('Using the UserManager as user provider is deprecated. Use FOS\\UserBundle\\Security\\UserProvider instead.', E_USER_DEPRECATED);\r\n\r\n return $class === $this->getClass();\r\n }", "public static function validateClass( $object ) {\n return is_object( $object ) &&\n in_array( \n get_class($object),\n ['UKMNorge\\Arrangement\\Program\\Hendelse']\n );\n }", "public function supportsNormalization($data, $format = null)\n {\n return 'json' === $format && $data instanceof \\Exception;\n }", "public function hasContextClass($class);", "public function isSupportedWrapper($wrapperClass);", "public function supportsNormalization($data, $format = null)\n {\n return $data instanceof Setting;\n }", "private function isHandled(TransformableSearchHandlerInterface $handler, string $class): bool\n {\n $implements = \\class_implements($class);\n $implements[] = $class;\n\n $handles = $handler->getHandledClasses();\n $intersect = \\array_intersect($implements, $handles);\n\n // If the supplied $class has any intersection of $implements, the handler\n // handles this class.\n return \\count($intersect) > 0;\n }", "protected static function check_parent_class( $class ) {\n\t\tif ( is_subclass_of( $class, 'ht_dms\\api\\internal\\actions\\action' ) ) {\n\t\t\treturn true;\n\n\t\t}\n\n\t}", "public function is(string $class): bool\n {\n return $this->name === $class;\n }", "protected static function isRegisteredClass($name, $class)\n {\n self::name($name);\n return in_array($class, self::$schemas[$name]->classes);\n }", "protected function isEmbeddedSubclass()\n {\n $index = $this->getIndex();\n return $index != \"\";\n }", "public function supportsDenormalization($data, $type, $format = null)\n {\n return $type === JokePost::class;\n }", "protected static function isEntityOfGivenClass($entityReference, $class) {\n \treturn is_a($entityReference, $class);\n }", "public function has(string $class)\n {\n return in_array(trim($class), $this->all());\n }", "public static function hasClass($class)\n\t{\n\t\treturn array_key_exists($class, self::$classes);\n\t}", "final protected function shouldExtendClass ($objectOrClass, $targetClass) {\n\t\t$arguments = func_get_args();\n\t\tarray_shift($arguments);\n\n\t\t// Test for wrong class\n\t\tforeach ($arguments as $argument) {\n\t\t\tif (!is_subclass_of($objectOrClass, $argument)) {\n\t\t\t\treturn $this->fail();\n\t\t\t}\n\t\t}\n\n\t\treturn $this->pass();\n\t}", "private function _hasMediaClass($class)\n {\n foreach($this->module->mediaClasses as $mediaClass)\n {\n if(strpos($mediaClass, $class) !== false)\n {\n return true;\n }\n }\n \n return false;\n }", "public function matchesClass(\\ReflectionClass $class)\n {\n return AutopilotManager::CLASS == $class->getName();\n }", "public function supportsNormalization($data, $format = null)\n {\n\n return $data instanceof Player;\n }", "public function hasClass($class) {\r\n\t\t\r\n\t\tforeach ($this as $node) {\r\n\t\t\t$node = $this->initListObject($node);\r\n\t\t\tif ($node->hasAttr('class') === false) return false;\r\n\t\t}\r\n\t\t\t\r\n\t\tforeach ($this as $node) \r\n\t\t\tif (preg_match(\"/$class/\", $node->attributes->getNamedItem('class')->value) == false) return false;\r\n\t\t\r\n\t\treturn true;\r\n\t}", "static function isAvailableUserClass($class) {\n return in_array($class, Users::getAvailableUserClasses());\n }", "public function hasExtraClass($class)\n {\n //split at white space\n $classes = preg_split('/\\s+/', $class ?? '');\n foreach ($classes as $class) {\n if (!isset($this->extraClasses[$class])) {\n return false;\n }\n }\n return true;\n }", "public function hasHandler(string $queryClass): bool;", "private function isClassExtendsBackendClass(\\ReflectionClass $class)\n {\n while ($parentClass = $class->getParentClass()) {\n if (AbstractAction::class === $parentClass->getName()) {\n return true;\n }\n $class = $parentClass;\n }\n return false;\n }", "protected function canInstantiate(ReflectionClass $class)\n {\n if (!$class->isInstantiable()) {\n return false;\n }\n\n $constructor = $class->getConstructor();\n\n return is_null($constructor) || 0 === $constructor->getNumberOfRequiredParameters();\n }", "public function supportsDenormalization($data, $type, $format = null, array $context = array());", "public function isinstanceof($class,$instance=null);", "public function isMapping($class) {\n $map = $this->classRegistry->getMap($class);\n \n return !empty($map);\n }", "final public function __isset($class) {\n\t\treturn $this->hasObject($class);\n\t}", "function macro_check_class(&$class)\n{\n $class = ltrim($class, '\\\\');\n\n return \\XLite\\Core\\Operator::isClassExists($class);\n}", "public function hasField(string $name, string $class=null): bool;", "public function testIsVendorClassReturnsFalseIfClassOfObjectIsNotLocatedInVendorDirectory()\n {\n $this->assertFalse(VendorResources::isVendorClass(new ContactType()));\n }", "public function hasObject($class) {\n\t\treturn (isset($this->_attached[$class]) || isset($this->_classes[$class]));\n\t}", "protected function checkStorageClass($class) {\n // Nothing to check by default.\n }", "public function validatePaymentClass()\n {\n /** @var Shopgate_Framework_Model_Payment_Abstract $paymentClass */\n $paymentClass = $this->getPaymentClass();\n\n if ($paymentClass instanceof Shopgate_Framework_Model_Payment_Interface) {\n if ($paymentClass && $paymentClass->isValid()) {\n return true;\n }\n }\n\n return false;\n }", "public static function class_exists(string $class): bool {\n $class = static::ref_classs_to_root($class);\n return class_exists($class);\n }", "public function validateClass($class, $definedClass)\n {\n try {\n $class = get_real_entity($class);\n } catch (Exception $e) {\n throw new Exception('Class \"'.$class.'\" (defined in class \"'.$definedClass.'\") does not exist.');\n }\n\n return true;\n }", "public function hasClass($class)\n {\n $classes = $this->get('class');\n\n return $classes && ((bool) preg_match('/(^| ){1}' . $class . '( |$){1}/i', $classes));\n }", "public function supportsNormalization($data, $format = null, array $context = [])\n {\n if (isset($context[self::ALREADY_CALLED])) {\n return false;\n }\n\n return $data instanceof User;\n }", "protected function isSupportedIdentifierType(string $class): bool\n {\n $manager = $this->registry->getManagerForClass($class);\n\n if (null === $manager) {\n throw new NotManageableEntityException($class);\n }\n\n $metadata = $manager->getClassMetadata($class);\n\n $identifier = $metadata->getIdentifierFieldNames();\n\n $type = $metadata->getTypeOfField($identifier[0]);\n\n return count($identifier) === 1 &&\n in_array($type instanceof Type ? $type->getName() : (string)$type, $this->supportedIdentifierTypes, true);\n }", "public function providesClass($class) {\n $this->cat->debug('Provides class:', $class);\n return FALSE;\n }", "public function applyGatewayClass($class = null)\n {\n if (!$class) {\n $class = $this->class_name;\n }\n\n if (!$class) {\n return false;\n }\n\n if (!$this->isClassExtendedWith($class)) {\n $this->extendClassWith($class);\n }\n\n $this->class_name = $class;\n $this->gateway_name = array_get($this->gatewayDetails(), 'name', 'Unknown');\n return true;\n }", "public function containsClass($class)\n {\n $class = is_object($class) ? get_class($class) : $class;\n foreach ($this->candidates as $candidate) {\n if ($candidate instanceof $class) {\n return true;\n }\n }\n\n return false;\n }" ]
[ "0.7067725", "0.68391454", "0.68352085", "0.68352085", "0.6832485", "0.68100876", "0.6792144", "0.6693328", "0.66887367", "0.6631851", "0.6619835", "0.6601852", "0.6514628", "0.6509171", "0.6471762", "0.6373527", "0.6365476", "0.634649", "0.62963945", "0.6233509", "0.6224172", "0.62168133", "0.621235", "0.61991996", "0.61689717", "0.61521685", "0.6113334", "0.60949093", "0.6090831", "0.60822684", "0.60810965", "0.6076066", "0.6064121", "0.60402226", "0.5998504", "0.59262866", "0.5887382", "0.58655834", "0.5850716", "0.582599", "0.58140665", "0.5784224", "0.578165", "0.57701534", "0.5744189", "0.5743556", "0.5737032", "0.56926566", "0.567867", "0.56664026", "0.5662363", "0.5662135", "0.5656948", "0.5653504", "0.56390893", "0.56352603", "0.5595628", "0.5591692", "0.5590911", "0.55758226", "0.5563404", "0.5547987", "0.5541517", "0.5538293", "0.5513139", "0.5507923", "0.55067194", "0.55043834", "0.5467298", "0.54441553", "0.54111075", "0.5406323", "0.53989094", "0.53896046", "0.53869355", "0.5376434", "0.53568107", "0.53499246", "0.5345868", "0.53400314", "0.5339234", "0.5312812", "0.5302226", "0.5288348", "0.5284598", "0.5281727", "0.52786314", "0.5275754", "0.5273784", "0.52026755", "0.5201226", "0.5177737", "0.5169434", "0.51611733", "0.5156016", "0.51547617", "0.5153692", "0.5126442", "0.5120575", "0.5117533" ]
0.54335725
70
Normalizes an object into a set of arrays/scalars.
public function normalize($object, $format = null, array $context = []) { return [ 'name' => $object->getName(), 'description' => $object->getDescription(), 'domain' => $this->serializer->normalize($object->getDomain(), $format, $context), 'type' => $object->getType()->getValue(), 'type_options' => $object->getTypeOptions(), 'data' => $object->getDataValue(), 'tags' => $this->serializer->normalize($object->getTags(), $format, $context), 'choices' => $object->getChoices(), ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function normalizeData() : array;", "function object_to_array( $input ) {\n\tif ( is_scalar( $input ) ) {\n\t\treturn $input;\n\t}\n\t\n\treturn array_map( '\\your\\space\\object_to_array', (array) $input );\n}", "public function denormalize(array $data);", "public function objectToArray($object): static;", "public function flatten(): Set;", "static function convert(){\n\t\tif(is_object($x) && method_exists($x, '__toArray')){\n\t\t\treturn $x->__toArray();\n\t\t}\n\t\treturn (array)$x;\n\t}", "function object_to_array($data)\r\n{\r\n if (is_array($data) || is_object($data))\r\n {\r\n $result = array();\r\n foreach ($data as $key => $value)\r\n {\r\n $result[$key] = object_to_array($value);\r\n }\r\n return $result;\r\n }\r\n return $data;\r\n}", "private function _normalizeData($data)\n\t{\n\t\t$ret = array();\n\t\tforeach($data as $key=>$val)\n\t\t{\n\t\t\tif($val instanceof \\Framework\\Interfaces\\IModelDataType)\n\t\t\t\t$val = $this->_driver->convertModelDataTypeToNativeDataType($val);\n\t\t\telseif(is_array($val))\n\t\t\t\t$val = $this->_normalizeData($val);\n\n\t\t\t//Set value\n\t\t\t$ret[$key] = $val;\n\t\t}\n\n\t\treturn $ret;\n\t}", "public function toArray(): 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 // Converts all objects into primitives.\n return $this->convertIntoPrimitiveValues($fields);\n }", "function toArray($object);", "public function intoArrays()\n {\n return self::arraysOf($this);\n }", "private function createArray()\n {\n $this->makeGroupBy()->makeSearch()->normalize();\n }", "function object_to_array($data) {\n\tif(is_array($data) || (is_object($data) && $data instanceof stdClass))\n\t\treturn array_map('object_to_array', (array) $data);\n\telse\n\t\treturn $data;\n}", "public function toArray() {\n $vars = get_object_vars($this);\n unset(\n $vars['rawdata'], \n $vars['inputFilter'],\n $vars['__initializer__'], \n $vars['__cloner__'], \n $vars['__isInitialized__']\n );\n foreach($vars as $key =>$val){\n if(is_object($val))\n $vars[$key] = $val->toArray();\n }\n return $vars;\n }", "function toArray();", "public function asVectors() : array\n {\n return array_map([Vector::class, 'quick'], $this->a);\n }", "function object_to_array2($object)\r\n{\r\n\tif (! is_object($object) AND ! is_array($object))\r\n\t{\r\n\t\treturn $object;\r\n\t}\r\n\tif (is_object($object))\r\n\t{\r\n\t\t$object = get_object_vars($object);\r\n\t}\r\n\treturn array_map('object_to_array2', $object);\r\n}", "public function objectToArray()\n {\n return get_object_vars($this);\n }", "public function toArray(): iterable;", "function toArray() ;", "function toArray() ;", "public function normalizeModelProducts() : array\n {\n\n // Init empty array\n $return = [];\n\n // Loop on every Model's products\n foreach ($this->getProducts() as $product) {\n\n // Store ProductSubresource in new $return index\n $return[] = $product->normalizeProductCollection(true, false, false, false);\n }\n\n return $return;\n }", "protected function normalize() {}", "function object_to_array($var) {\n $result = array();\n $references = array();\n\n // loop over elements/properties\n foreach ($var as $key => $value) {\n // recursively convert objects\n if (is_object($value) || is_array($value)) {\n // but prevent cycles\n if (!in_array($value, $references)) {\n $result[$key] = object_to_array($value);\n $references[] = $value;\n }\n } else {\n // simple values are untouched\n $result[$key] = $value;\n }\n }\n return $result;\n}", "protected static function object_to_array($data, $once=false){\n\n\t if (is_array($data) || is_object($data)){\n\n\t $result = array();\n\t foreach ($data as $key => &$value){\n\n\t \tif($once){\n\n\t \t\t$result[$key] = $value;\n\n\t \t}else{\n\n\t \t\t$result[$key] = static::object_to_array($value);\n\t \t}\n\n\t \tunset($key, $value);\n\t }\n\n\t return $result;\n\t }\n\n\t return $data;\n\t}", "function acf_unarray($val)\n{\n}", "private function sanitize_memberships_array( $object ) {\n $m = [ ];\n\n foreach ( $object as $o ) {\n if ( isset( $o->groupId ) ) {\n $m[] = $o->groupId;\n }\n }\n\n return $m;\n }", "public function normalize(): self;", "public function toArray()\n {\n return $this->transform();\n }", "function object_to_array($object)\n {\n if (is_object($object)) {\n $object = get_object_vars($object);\n }\n\n return is_array($object) ? array_map(__FUNCTION__, $object) : $object;\n }", "function objectToArray( $object )\n {\n if( !is_object( $object ) && !is_array( $object ) )\n return $object;\n if( is_object( $object ) )\n $object = get_object_vars( $object );\n return array_map( null, $object );\n }", "public function toArray(): array\n {\n return array_filter((array) get_object_vars($this), static function ($val) {\n return ! is_null($val);\n });\n }", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "abstract protected function _normalizeIterable($iterable);", "abstract protected function toArray();", "public function sanitize($data) {\n $sanitized = array();\n foreach ( $data as $key => $val ) {\n if ( !is_array($val) ) {\n if ( isset($this->_sanitizers[$key]) ) {\n $sanitized[$key] = Data::sanitize($val, $this->_sanitizers[$key]);\n }\n } else {\n foreach ( $val as $id => $obj ) {\n $sanitized[$key][$id] = $obj->sanitize();\n }\n }\n }\n return $sanitized;\n }", "public function toArray()\n {\n $vars = get_object_vars($this);\n $vars['type'] = $this->getType();\n\n $queries = array();\n foreach ($vars as $k => $v) {\n if ($v !== null) {\n $values = is_array($v) ? $v : array(':'=>$v);\n foreach ($values as $matcher=>$value) {\n $queries[] = $k . $matcher . $value;\n }\n }\n }\n return $queries;\n }", "public function limpaArrayIdsObjetosManipulados()\n {\n \t// limpando o array de ids de objetos manipulados\n \t$this->_arrayObjetosManipulados = array();\n }", "public function allFlattened(): array;", "abstract public function toArray();", "abstract public function toArray();", "abstract public function toArray();", "abstract public function toArray();", "abstract public function toArray();", "public function toArray(): array\n {\n $this->update();\n\n // Copied from DataObjectToArrayTrait. Do not modify here !!!\n $toArray = function($object) use (&$toArray) {\n $result = [];\n $vars = get_object_vars($object);\n foreach ($vars as $name => $value) {\n if ($name !== 'internalDataObjectData') {\n $reflectionProperty = new \\ReflectionProperty($object, $name);\n if ($reflectionProperty->isPublic()) {\n $result[$name] = null;\n }\n }\n }\n if (isset($object->internalDataObjectData)) {\n foreach ($object->internalDataObjectData as $name => $value) {\n $result[substr($name, 1)] = null;\n }\n }\n ksort($result);\n foreach ($result as $name => $null) {\n $value = $object instanceof \\ArrayAccess ? $object[$name] : (isset($object->$name) ? $object->$name : null);\n if (is_object($value)) {\n if (method_exists($value, 'toArray')) {\n $result[$name] = $value->toArray();\n } else {\n if ($value instanceof \\DateTime) {\n $result[$name] = $value->format('c');\n } else {\n $propertyVars = $toArray($value);\n foreach ($propertyVars as $propertyVarName => $propertyVarValue) {\n if (is_object($propertyVarValue)) {\n $propertyVars[$propertyVarName] = $toArray($propertyVarValue);\n }\n }\n $result[$name] = $propertyVars;\n }\n }\n } else {\n $result[$name] = $value;\n }\n }\n return $result;\n };\n\n $result = [];\n foreach ($this->data as $index => $object) {\n $object = $this->updateValueIfNeeded($this->data, $index);\n if (method_exists($object, 'toArray')) {\n $result[] = $object->toArray();\n } else {\n $result[] = $toArray($object);\n }\n }\n return $result;\n }", "public function toArray() {\n\t\treturn get_object_vars($this);\n\t}", "function objectIntoArray ($object,&$array) {\n $oarray = get_object_vars($object);\n while(list($key,$val)=each($oarray)) {\n $array[$key] = $val;\n }\n}", "function objectToArray ($object) {\n\n\t if(!is_object($object) && !is_array($object))\n\t return $object;\n\n\t return array_map('objectToArray', (array) $object);\n\t}", "public function normalize($object, $format = null, array $context = array())\n {\n $reflectionObject = new \\ReflectionObject($object);\n $reflectionMethods = $reflectionObject->getMethods(\\ReflectionMethod::IS_PUBLIC);\n\n $attributes = array();\n foreach ($reflectionMethods as $method) {\n if ($this->isGetMethod($method)) {\n $attributeName = lcfirst(substr($method->name, 3));//we sub the set or get\n\n if (in_array($attributeName, $this->ignoredAttributes)) {\n continue;\n }\n\n $attributeValue = $method->invoke($object);\n\n if (array_key_exists($attributeName, $this->callbacks)) {\n $attributeValue = call_user_func($this->callbacks[$attributeName], $attributeValue);\n }\n if (null !== $attributeValue && !is_scalar($attributeValue)) {\n if (get_class($attributeValue) == 'Doctrine\\ORM\\PersistentCollection') {\n //memorize the list of persistent collections\n $attributeValues = $attributeValue;\n\n $attributeValue = array();\n foreach ($attributeValues as $obj) {\n $attributeReflectionObject = new \\ReflectionObject($obj);\n\n $identifiers = $this->doctrine->getManager()->getMetadataFactory()->getMetadataFor($attributeReflectionObject->getName())->getIdentifier();\n //the ids to add\n $tempAttribute = array();\n\n foreach ($identifiers as $identifier) {\n $attribute = call_user_func(array($obj, 'get'.ucfirst($identifier)));\n //the attribute is itself an object\n if (is_object($attribute)) {\n //we look for the ids\n $attributeIdentifierReflectionObject = new \\ReflectionObject($attribute);\n $attributeIdentifiers = $this->doctrine->getManager()->getMetadataFactory()->getMetadataFor($attributeIdentifierReflectionObject->getName())->getIdentifier();\n\n foreach ($attributeIdentifiers as $index => $attributeIdentifier) {\n $attributeIdentifierAttribute = call_user_func(array($attribute, 'get'.ucfirst($attributeIdentifier)));//@todo use reflection to know the identifier\n //we add each of the ids\n $tempAttribute[$identifier] = $attributeIdentifierAttribute;\n }\n } else {\n //we memorise the array of ids\n $tempAttribute[$identifier] = $attribute;\n }\n }\n //we add the id to the array of the attribute\n $attributeValue[] = $tempAttribute;\n }\n } else {\n $attributeValue = $attributeValue->getId();//@todo use reflection to know the identifier\n }\n }\n $attributes[$attributeName] = $attributeValue;\n }\n }\n\n return $attributes;\n }", "public function toArray() {\n return get_object_vars($this);\n }", "public function toArray() {\n return get_object_vars($this);\n }", "private static function normalize($data)\n {\n $normalized = array();\n foreach ($data as $key => $value) {\n if (in_array($key, self::$documentInfoFields)) {\n $normalized['Info'][$key] = $value;\n } elseif (is_array($value)) {\n if (!isset($normalized[$key])) {\n $normalized[$key] = array();\n }\n $normalized[$key] = array_merge($normalized[$key], $value);\n }\n }\n return $normalized;\n }", "public function toArray() {\n return get_object_vars($this);\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 }", "public function toArray() {\n return get_object_vars($this);\n }", "public function toArray()\n {\n return get_object_vars($this);\n }", "public function getTransformedArray( ) {\n return \\IndustryTransformer::transform($this->prepareIndustryGreedyData());\n }", "public function toArray()\n {\n return get_object_vars($this);\n }", "public function toArray()\n {\n return get_object_vars($this);\n }", "public function toArray() {\n return get_object_vars($this);\n }", "public function normalize()\n {\n }", "function toArray() {\n\t\treturn get_object_vars($this);\n\t}" ]
[ "0.62830913", "0.5868058", "0.5777879", "0.5758749", "0.57163686", "0.5625029", "0.55953956", "0.55424833", "0.5529402", "0.5496353", "0.5470797", "0.546581", "0.5438795", "0.54367733", "0.5376255", "0.5370162", "0.5361158", "0.52978617", "0.5268635", "0.52582085", "0.52582085", "0.525253", "0.5230254", "0.52203614", "0.52171063", "0.52135015", "0.5186078", "0.51791304", "0.5175117", "0.515884", "0.515524", "0.51530635", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5133026", "0.5111866", "0.50971603", "0.5096437", "0.50904554", "0.50877273", "0.50874865", "0.50724304", "0.50724304", "0.50724304", "0.50724304", "0.50724304", "0.5067471", "0.50500005", "0.5039982", "0.5036703", "0.5034503", "0.5031142", "0.5031142", "0.5030028", "0.502865", "0.5021394", "0.5017153", "0.50157154", "0.5015672", "0.50098294", "0.50098294", "0.50065464", "0.5004053", "0.499249" ]
0.0
-1
Checks whether the given class is supported for normalization by this normalizer.
public function supportsNormalization($data, $format = null) { return $data instanceof Setting; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function supports(string $class): bool;", "public function supportsClass($class);", "public function supportsClass($class);", "public function supportsClass($class)\n {\n // TODO: Implement supportsClass() method.\n }", "public function supportsClass($class)\n {\n }", "public function supportsClass($class)\n {\n return !\\in_array($class, $this->classBlacklist);\n }", "public function supportsClass($class) {\n return $this->getEntityName() === $class || is_subclass_of($class, $this->getEntityName());\n }", "public function supportsClass($class)\n {\n return $this->getEntityName() === $class || is_subclass_of($class, $this->getEntityName());\n }", "public function supportsClass($class)\n {\n return $class === '\\Entity\\User\\User';\n }", "public function supportsClass($class)\n {\n return $class === $this->class || is_subclass_of($class, $this->class);\n }", "public function supportsClass($class)\n {\n return $class === \"FData\\SecurityBundle\\User\\User\";\n }", "final public function supportsClass($class)\n {\n return $class === User::class;\n }", "public function supportsClass($class)\n {\n return in_array($class, [\n User::class,\n ], true);\n }", "public function supportsClass($class)\n {\n return $class === 'Surfnet\\StepupMiddlewareClientBundle\\Identity\\Dto\\Identity';\n }", "protected function supportsClass($class)\n {\n foreach ($this->getSupportedClasses() as $supportedClass) {\n if ($supportedClass === $class || is_subclass_of($class, $supportedClass)) {\n return true;\n }\n }\n\n return false;\n }", "public function supportsClass($class): bool\n {\n return User::class === $class;\n }", "public function supportsClass($class)\n {\n return IQUser::class === $class;\n }", "public function supportsClass(string $class): bool\n\t{\n\t\treturn User::class === $class || is_subclass_of($class, User::class);\n\t}", "public function supports(string $entityClass): bool;", "public function supportsClass($class)\n {\n return Account::class === $class;\n }", "public function supportsClass($class)\n {\n return $class == George::class;\n }", "private function _checkClass()\n {\n if ($this->_useWithoutTypeCheck === true) {\n return true;\n }\n\n $resource = $this->_owApp->selectedResource;\n $rModel = $resource->getMemoryModel();\n\n // search with each expression using the preg matchtype\n foreach ($this->_types as $type) {\n if (isset($type['classUri'])) {\n $classUri = $type['classUri'];\n } else {\n continue;\n }\n if (\n $rModel->hasSPvalue(\n (string) $resource,\n EF_RDF_TYPE,\n $classUri\n )\n ) {\n return true;\n }\n }\n\n // type does not match to one of the expressions\n return false;\n }", "public function isValid()\r\n {\r\n if (!retGet('class'))\r\n return false;\r\n\r\n if (!in_array(retGet('class'), $this->_available))\r\n return false;\r\n\r\n return true;\r\n }", "public function supportsNormalization($data, $format = NULL)\n {\n $entityRefl = new \\ReflectionClass($data);\n if($entityRefl->implementsInterface($this->supportedInterfaceOrClass)) {\n $query = $this->queryFactory->get('siren_mapper')\n ->condition('entityType', $data->getEntityTypeId())\n ->condition('bundleType', $data->bundle());\n $ids = $query->execute();\n if(empty($ids)) {\n return false;\n }\n }\n return in_array($format, $this->formats) && parent::supportsNormalization($data, $format);\n }", "public function hasClass($class);", "final private function _isValidSuiteClass ($class) {\n\t\t$ref = new ReflectionClass($class);\n\t\tif ($class === $this->_baseClass or $ref->isSubclassOf($this->_baseClass)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function supportsNormalization($data, $format = null)\n {\n return false;\n }", "public function isClass() : bool\n {\n return $this->simple && !Validators::isBuiltinType($this->types[0]);\n }", "public function supportsNormalization($data, $format = null)\n {\n return $data instanceof MbQuery;\n }", "public function supportsNormalization($data, $format = null)\n {\n return $data instanceof Mesures;\n }", "public static function isValidDataObject($class)\n {\n $class = strtolower(str_replace('-', '\\\\', $class));\n $list = self::getValidDataObjects();\n return isset($list[$class]);\n }", "public function supportsClass($class)\n {\n return AccessToken::class === $class;\n }", "public function isClassSupported($className)\n {\n $mappingConfig = $this->getMappingConfig();\n\n return array_key_exists($className, $mappingConfig);\n }", "public function supportsClass($contextClass)\n {\n return (strpos($contextClass, self::CONTEXT_NAMESPACE) === 0);\n }", "public function supportsNormalization( $data, $format = null ) {\n\t\tif ( $format == \"xml\" && $data instanceof PaymentData ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function supportsClass($class)\r\n {\r\n @trigger_error('Using the UserManager as user provider is deprecated. Use FOS\\UserBundle\\Security\\UserProvider instead.', E_USER_DEPRECATED);\r\n\r\n return $class === $this->getClass();\r\n }", "public function supportsNormalization($data, $format = null)\n {\n return $data instanceof AbstractExplicitMessage;\n }", "public function supportsNormalization($data, $format = null)\n {\n return $data instanceof \\Exception;\n }", "public function supportsNormalization($data, string $format = null)\n {\n return \\is_object($data) && Diagram::class === \\get_class($data);\n }", "private function isEntitySupported(ClassMetadata $classMetadata)\n {\n return $this->getClassAnalyzer()->hasTrait($classMetadata->reflClass, 'Kairos\\ZohoInvoiceConnectorBundle\\Model\\Invoice\\InvoiceConnector', $this->isRecursive);\n }", "public function supportsNormalization($data, $format = null)\n {\n return $data instanceof JokePost;\n }", "static function isAvailableUserClass($class) {\n return in_array($class, Users::getAvailableUserClasses());\n }", "public function is_a($class)\n {\n return (bool)singleton('mwm')->is_instanceof($class, $this->owner);\n }", "public function hasClass(): bool;", "private function _hasMediaClass($class)\n {\n foreach($this->module->mediaClasses as $mediaClass)\n {\n if(strpos($mediaClass, $class) !== false)\n {\n return true;\n }\n }\n \n return false;\n }", "public function has(string $class)\n {\n return in_array(trim($class), $this->all());\n }", "public function isSupportedWrapper($wrapperClass);", "protected static function check_parent_class( $class ) {\n\t\tif ( is_subclass_of( $class, 'ht_dms\\api\\internal\\actions\\action' ) ) {\n\t\t\treturn true;\n\n\t\t}\n\n\t}", "protected static function isRegisteredClass($name, $class)\n {\n self::name($name);\n return in_array($class, self::$schemas[$name]->classes);\n }", "public function isEntitySupported(ClassMetadata $classMetadata)\n {\n return (isset($this->mapping[$classMetadata->getName()]));\n }", "protected function isEntity($class)\n {\n return Nishchay::getEntityCollection()->isExist($class);\n }", "public function isClass(): bool\n {\n return !is_null($this->namespaceParts);\n }", "public function supportsNormalization($data, $format = null)\n {\n\n return $data instanceof Player;\n }", "public static function hasClass($class)\n\t{\n\t\treturn array_key_exists($class, self::$classes);\n\t}", "public function hasContextClass($class);", "private function isVendor($class)\n {\n return $this->isInNamespace($class, self::LARAVEL_VENDOR_NAMESPACE)\n || $this->isInNamespace($class, self::LUMEN_VENDOR_NAMESPACE)\n || $this->isInNamespace($class, self::COLLISION_VENDOR_NAMESPACE);\n }", "public function supportsNormalization($data, $format = null)\n {\n return 'json' === $format && $data instanceof \\Exception;\n }", "public function handlesResourceClass(string $resourceClass): bool\n {\n return $resourceClass === $this->resourceClass;\n }", "public function matchesClass(\\ReflectionClass $class)\n {\n return AutopilotManager::CLASS == $class->getName();\n }", "private function isHandled(TransformableSearchHandlerInterface $handler, string $class): bool\n {\n $implements = \\class_implements($class);\n $implements[] = $class;\n\n $handles = $handler->getHandledClasses();\n $intersect = \\array_intersect($implements, $handles);\n\n // If the supplied $class has any intersection of $implements, the handler\n // handles this class.\n return \\count($intersect) > 0;\n }", "function macro_check_class(&$class)\n{\n $class = ltrim($class, '\\\\');\n\n return \\XLite\\Core\\Operator::isClassExists($class);\n}", "public function is(string $class)\n {\n return is_a($this->value, $class, false);\n }", "public function is(string $class): bool\n {\n return $this->name === $class;\n }", "public function hasEntityClass(): bool\n {\n return $this->hasDataItem('entity');\n }", "public function shouldShow()\n {\n return $this->_checkClass();\n }", "public function supports(string $resourceClass, string $operationName = null, array $context = []): bool\n {\n return Catalog::class === $resourceClass;\n }", "public function is($class)\n {\n return $this->config instanceof $class;\n }", "final protected function shouldExtendClass ($objectOrClass, $targetClass) {\n\t\t$arguments = func_get_args();\n\t\tarray_shift($arguments);\n\n\t\t// Test for wrong class\n\t\tforeach ($arguments as $argument) {\n\t\t\tif (!is_subclass_of($objectOrClass, $argument)) {\n\t\t\t\treturn $this->fail();\n\t\t\t}\n\t\t}\n\n\t\treturn $this->pass();\n\t}", "protected static function isEntityOfGivenClass($entityReference, $class) {\n \treturn is_a($entityReference, $class);\n }", "protected function verifyIsDerivedClass($class)\n {\n $derived = true;\n\n if (is_string($class)) {\n if (!in_array(get_class($this), class_parents($class))) {\n $derived = false;\n }\n } else {\n if (!($class instanceof $this)) {\n $derived = false;\n }\n }\n\n if (!$derived) {\n // Grab the backtrace\n $backtrace = debug_backtrace();\n $last = $backtrace[1];\n\n // Emulate a PHP SPL/internal-style exception\n throw new UnexpectedValueException(\n $last['class'] .'::'. $last['function']\n .'() expects parameter to be a class name derived from '\n . get_class($this) .', \\''. $last['args'][0] .'\\' given'\n );\n }\n\n return $derived;\n }", "protected function needResourceClass(): bool\n {\n return $this->resourceClass() !== null;\n }", "public static function validateClass( $object ) {\n return is_object( $object ) &&\n in_array( \n get_class($object),\n ['UKMNorge\\Arrangement\\Program\\Hendelse']\n );\n }", "public function hasExtraClass($class)\n {\n //split at white space\n $classes = preg_split('/\\s+/', $class ?? '');\n foreach ($classes as $class) {\n if (!isset($this->extraClasses[$class])) {\n return false;\n }\n }\n return true;\n }", "public static function class_exists(string $class): bool {\n $class = static::ref_classs_to_root($class);\n return class_exists($class);\n }", "public function hasClass($class)\n {\n $classes = $this->get('class');\n\n return $classes && ((bool) preg_match('/(^| ){1}' . $class . '( |$){1}/i', $classes));\n }", "public function supportsNormalization($data, $format = null, array $context = [])\n {\n if (isset($context[self::ALREADY_CALLED])) {\n return false;\n }\n\n return $data instanceof User;\n }", "protected function checkStorageClass($class) {\n // Nothing to check by default.\n }", "public function containsClass($class)\n {\n $class = is_object($class) ? get_class($class) : $class;\n foreach ($this->candidates as $candidate) {\n if ($candidate instanceof $class) {\n return true;\n }\n }\n\n return false;\n }", "public function applyGatewayClass($class = null)\n {\n if (!$class) {\n $class = $this->class_name;\n }\n\n if (!$class) {\n return false;\n }\n\n if (!$this->isClassExtendedWith($class)) {\n $this->extendClassWith($class);\n }\n\n $this->class_name = $class;\n $this->gateway_name = array_get($this->gatewayDetails(), 'name', 'Unknown');\n return true;\n }", "public function hasClass($class) {\r\n\t\t\r\n\t\tforeach ($this as $node) {\r\n\t\t\t$node = $this->initListObject($node);\r\n\t\t\tif ($node->hasAttr('class') === false) return false;\r\n\t\t}\r\n\t\t\t\r\n\t\tforeach ($this as $node) \r\n\t\t\tif (preg_match(\"/$class/\", $node->attributes->getNamedItem('class')->value) == false) return false;\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public function classExists( $class ) {\n\t\tWikimedia\\suppressWarnings();\n\t\t$exists = class_exists( $class );\n\t\tWikimedia\\restoreWarnings();\n\t\treturn $exists;\n\t}", "protected static function check_interface( $class ) {\n\n\t\tif ( ! class_exists( $class ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$interfaces = class_implements( $class, false );\n\n\t\tif ( in_array( 'ht_dms\\api\\internal\\actions\\action_interface', $interfaces ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t}", "public function hasClass($name);", "private function isClassExtendsBackendClass(\\ReflectionClass $class)\n {\n while ($parentClass = $class->getParentClass()) {\n if (AbstractAction::class === $parentClass->getName()) {\n return true;\n }\n $class = $parentClass;\n }\n return false;\n }", "public function validateClass($class, $definedClass)\n {\n try {\n $class = get_real_entity($class);\n } catch (Exception $e) {\n throw new Exception('Class \"'.$class.'\" (defined in class \"'.$definedClass.'\") does not exist.');\n }\n\n return true;\n }", "protected function canInstantiate(ReflectionClass $class)\n {\n if (!$class->isInstantiable()) {\n return false;\n }\n\n $constructor = $class->getConstructor();\n\n return is_null($constructor) || 0 === $constructor->getNumberOfRequiredParameters();\n }", "public function has_class_method() {\n\t\treturn ! empty( $this->get_class_method() );\n\t}", "public function has(string $class): bool\n {\n return in_array($class, $this->items);\n }", "public function hasHandler(string $queryClass): bool;", "public function hasImage($class)\n {\n return $this->images->where('class', $class)->count() > 0;\n }", "public static function hasInstaller\n\t(\n\t\t$class\t\t\t\t// <str> The class that you need to check if it has an installation process.\n\t,\t$classConfig = null\t// <mixed> The class config object, if already active.\n\t)\t\t\t\t\t\t// RETURNS <bool> TRUE if it has an installer, FALSE if not.\n\t\n\t// Classes_Meta::hasInstaller($class, [$classConfig]);\n\t{\n\t\t// Make sure the config class for the class exists\n\t\tif($classConfig == null)\n\t\t{\n\t\t\tif(!$classConfig = self::getConfig($class))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check if there is an install method\n\t\treturn method_exists($classConfig, \"install\") ? true : false;\n\t}", "protected function checkForValidImplementingClass()\n {\n $this->validateModel();\n $this->validateItemId();\n }", "public function providesClass($class) {\n $this->cat->debug('Provides class:', $class);\n return FALSE;\n }", "function isLoadableClass($type, $class) {\n\t\treturn App::import($type, $class);\n\t}", "public function check_validity($_classname);", "public function isNormalizerEnabled()\n {\n $this->initialize();\n return $this->normalizerEnabled;\n }", "public function valid()\n {\n\n if ($this->container['class_name'] === null) {\n return false;\n }\n return true;\n }", "public function supports(ParamConverter $configuration)\n {\n return $configuration->getClass() == TriangleRequestModel::class;\n }", "public function testSupportClass(): void\n {\n self::assertTrue($this->userRepository->supportsClass(User::class));\n self::assertFalse($this->userRepository->supportsClass(UserRepository::class));\n }", "protected function nodeMatchesClass(Node $node, $class)\n {\n // Validate all classes\n $classCandidates = $node->getAttribute('contextTypes'); // Classes this node could be\n if (empty($classCandidates)) {\n if (!$node->hasAttribute('scope')) {\n return false;\n }\n\n $scope = $node->getAttribute('scope');\n if (!$scope->isInClass()) {\n return false;\n }\n $distances = $scope->getClassReflection()->getClassHierarchyDistances();\n return array_key_exists($class, $distances);\n }\n\n // Check if any possible contexts are of the class type\n foreach ($classCandidates as $classCandidate) {\n if ($this->matchesClass($classCandidate, $class)) {\n return true;\n }\n }\n\n return false;\n }" ]
[ "0.7399976", "0.7162615", "0.7162615", "0.7065001", "0.705774", "0.70563465", "0.6999987", "0.69749", "0.69674444", "0.6914851", "0.6875374", "0.6862838", "0.6839856", "0.6740214", "0.6719258", "0.6713057", "0.670182", "0.66661537", "0.6634156", "0.6628556", "0.66116285", "0.6497768", "0.64896065", "0.63912594", "0.6383772", "0.63776445", "0.6321502", "0.6220888", "0.6175711", "0.61706644", "0.6159838", "0.61452883", "0.6118538", "0.6105003", "0.6054592", "0.6014262", "0.5981331", "0.59803426", "0.5966865", "0.59621584", "0.594502", "0.5934882", "0.5860161", "0.58518785", "0.5840322", "0.582852", "0.5787497", "0.57763827", "0.5775123", "0.57606953", "0.5745264", "0.574421", "0.5743374", "0.57416785", "0.5738856", "0.57236964", "0.5716693", "0.5702404", "0.57009244", "0.5692502", "0.5692164", "0.5668227", "0.56573296", "0.56315523", "0.5621586", "0.5605842", "0.5599891", "0.5596292", "0.55897415", "0.55781406", "0.55766946", "0.5565206", "0.55633605", "0.55506563", "0.55409294", "0.5527194", "0.55208606", "0.5517593", "0.55161947", "0.54774505", "0.5466951", "0.54411805", "0.541442", "0.54135704", "0.54050106", "0.54007107", "0.5398774", "0.5392333", "0.53922874", "0.5358997", "0.5339387", "0.5331471", "0.5324887", "0.53168714", "0.53120273", "0.5290142", "0.5278365", "0.52757424", "0.5264992", "0.5263176" ]
0.5641343
63
This function create an object Database, store it in the variable db and return it.
static function getDatabase() { if (!self::$db) { self::$db = new Database(); } return self::$db; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function get_db_object()\n {\n return new Database(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);\n }", "public static function obtenerint(){\n if (self::$db === null){\n \tself::$db = new self();\n }\n return self::$db;\n }", "protected function create()\n {\n $database = cbSQLConnect::connect('object');\n if (isset($database))\n {\n $fields = self::$db_fields;\n $data = array();\n foreach($fields as $key)\n {\n if ($this->{$key})\n {\n $data[$key] = $this->{$key};\n }\n else\n $data[$key] = NULL;\n\n }\n // return data\n $insert = $database->SQLInsert($data, \"place\"); // return true if sucess or false\n if ($insert)\n {\n return $insert;\n }\n else\n {\n return false;\n }\n }\n }", "public function createDB(){ \n $res = CouchNet::PUT($this->getUrl().\"/\"); \n return $this;\n }", "public function dbInstance();", "protected function createDatabaseStructure() {}", "function db(){\n\treturn Database::getInstance();\n}", "public function GetDbObject() {\n // Init object\n $plugin = new stdClass();\n // Set values\n $plugin->Name = $this->Name;\n $plugin->Version = $this->Version;\n $plugin->Author = $this->Author;\n $plugin->About = $this->About;\n $plugin->Root = $this->Root;\n $plugin->Identifier = $this->Identifier;\n \n // Return result\n return $plugin;\n }", "function createDb()\r\n {\r\n// $db = new Mysqli();\r\n $db = Mysqli::getInstance();\r\n return $db;\r\n }", "public function getDb();", "public function getDBobject(){\r\n return $this->db;\r\n }", "private function make_db() {\n ee()->load->dbforge();\n $fields = array(\n 'id' => array('type' => 'varchar', 'constraint' => '32'),\n 'access' => array('type' => 'integer', 'constraint' => '10', 'unsigned' => true),\n 'data' => array('type' => 'text')\n );\n ee()->dbforge->add_field($fields);\n ee()->dbforge->add_key('id', true);\n ee()->dbforge->create_table($this->table_name);\n\n return true;\n }", "public static function DB() {\n\n\t\t if (!isset(self::$instance)){\n\t\t \t//self::$db = new Model;\n\t\t \tself::$instance = new self;\n\t\t \t\n\t\t }\n\n\t\t return self::$instance;\n\t\t \n\n\t }", "static public function getDatabaseObject()\n {\n if (getenv(\"OPENSHIFT_MYSQL_DB_HOST\") === false) {\n $_host = \"localhost\";\n $_username = \"root\";\n $_password = \"mantis5c\";\n $_database = \"startbwtracker\";\n } else {\n $_host = getenv(\"OPENSHIFT_MYSQL_DB_HOST\");\n $_username = getenv(\"OPENSHIFT_MYSQL_DB_USERNAME\");\n $_password = getenv(\"OPENSHIFT_MYSQL_DB_PASSWORD\");\n $_database = \"startbwtracker\";\n }\n\n $db = new \\PDO(\n \"mysql:host=$_host;dbname=$_database;\", $_username, $_password\n );\n // set the PDO error mode to exception\n $db->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n\n return $db;\n }", "public static function init() {\n\t\tself::$_db = Storage::get('objects.database');\n\t}", "function getDatabase();", "public function database();", "protected function getDatabase() {}", "public function __construct(){\n $this->db = new Database;\n }", "function get_database() {\n $db = new Database();\n return ($db->connect());\n}", "public function __construct(){\n $this->db = new Database;\n }", "function getDatabase()\n{\n $db = new SQLite3(':memory:');\n $password = md5('password');\n $sql = \"CREATE TABLE users (id varchar(30) primary key, username text, password text);\";\n $sql .= \"INSERT INTO users VALUES ('id00001', 'jdoe', '$password');\";\n $sql .= \"INSERT INTO users VALUES ('id00002', 'jsmith', '$password');\";\n $created = $db->exec($sql);\n return $db;\n}", "function Sql_DB_Create($db=\"\")\n {\n $query=$this->DB_Create_Query($db);\n $this->DB_Query($query);\n }", "public function __construct() {\r\n $this->db = new Database;\r\n }", "public static function getInstance()\n {\n if(!isset(self::$_dbObjectInstance))\n {\n $className = get_class();\n self::$_dbObjectInstance = new $className;\n }\n\n return self::$_dbObjectInstance;\n }", "static function get_dbase($dbname){\n //\n //Test if there are databases already created so as to check if the requested \n //database is among them \n if(\\count(sql::$dbase)>0){\n //\n //Check if we have a ready dbase\n foreach (sql::$dbase as $key=>$value){\n //\n //\n if ($dbname===$key){\n //\n //We do, return it. \n return sql::$dbase[$dbname];\n }\n } \n }\n //\n //\n //create the database from first principle ie from the information schema \n sql::$dbase[$dbname] = new \\database($dbname);\n //\n //popilate the database with the entites\n sql::$dbase[$dbname]->export_structure();\n //\n //Set the dbase\n return sql::$dbase[$dbname];\n }", "function __construct(){\n\t\t\t$this->db = new Database();\n\t\t}", "public function getFromDB() {}", "public function conn(): DB\n {\n return new DB();\n }", "function open_database() {\n\t\n\tglobal $database, $zurich, $action;\n\t\n\tdb_open($database);\n \n\t$zurich = db_retrieve(\"Zurich\", \"objects\");\n\tif (!$zurich or $action == 'reset') {\n\t\t$zurich = new Zurich(); // the very first time, create a new object\n\t\t}\n\t\n\t$zurich->set_time();\n}", "public function getDatabase(): DatabaseInterface;", "function getDB($session_time=SESSION_TIME)\n{\n\tglobal $db_config;\n\treturn new DB(&$db_config, $session_time);\n}", "function createDatabase() {\n try {\n $pdoObject = new PDOObject();\n $pdoObject->createTables();\n $pdo = $pdoObject->getPDO();\n\n openFile($pdo);\n } catch (PDOException $e) {\n $e->getMessage();\n exit;\n } finally {\n unset($pdo);\n }\n}", "public static function createDatabaseInstance()\n {\n if (class_exists('TYPO3\\\\CMS\\\\Core\\\\Database\\\\ConnectionPool')) {\n $connection = GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Core\\\\Database\\\\ConnectionPool')\n ->getConnectionByName(ConnectionPool::DEFAULT_CONNECTION_NAME);\n\n return new Database($connection);\n }\n\n return new OldDatabase($GLOBALS['TYPO3_DB']);\n }", "public static function get_instance()\n {\n if (! is_null(self::$db)) {\n return self::$db;\n }\n self::$db = new DB();\n return self::$db;\n }", "private function openDb() {\n if(!$this->db) {\n $this->db = new Db();\n }\n }", "static public function getDatabase() {\n if (self::$_instance == NULL)\n self::$_instance = new Database();\n return self::$_instance;\n }", "static public function getDatabase() {\n if (self::$_instance == NULL)\n self::$_instance = new Database();\n return self::$_instance;\n }", "static function createObject () {\n $query = 'insert into '.Config::getTablePrifix().self::getTableName().' (';\n $feilds = self::getFeildNames();\n $query .= implode(',',$feilds);\n $query .= ') values(';\n foreach ($feilds as $feild) {\n if ($feild != current($feilds)) {\n $query .= ',';\n }\n $query .= '\\''.Database::escape(self::getFeildValue($feild)).'\\'';\n }\n $query .= ')';\n Database::query($query);\n // update the id feild value\n $lastInsertId = Database::queryAsObject('select max(id) as lastid from '.Config::getTablePrifix().self::getTableName());\n self::setFeildValue(self::getIdFeild(),$lastInsertId->lastid);\n return $this;\n }", "function AAtribut()\r\n{\r\n\r\n$this->database = new Database();\r\n\r\n}", "public function __construct()\n {\n $this->db = new Database;\n }", "public function __construct()\n {\n $this->db = new Database;\n }", "function cl_ing_ingreso_det() {\r\n\r\n $this->database = new Database();\r\n }", "abstract protected function initDB();", "public function getDatabase() {\n \t\n \t// Return our database object\n \treturn $this->oDatabase;\n }", "public static function createInstance($config) {\n\t\tif(self::$instance != null)\n\t\t\tthrow new Exception(\"cannot create instance, because it already exists one.\");\n\n\t\tself::$instance = new Database($config);\n\t\treturn self::$instance;\n }", "function createDB($db)\n{\n require_once 'Doctrine/lib/Doctrine.php';\n spl_autoload_register(array('Doctrine', 'autoload'));\n\n try {\n $db = Doctrine_Manager::connection(\"sqlite:///$db\");\n $path = '@include_path@/HTTP/Session2/Container/Doctrine';\n$path = '/Applications/xampp/htdocs/phpcvs/pear/HTTP_SESSION2/HTTP/Session2/Container/Doctrine';\n $sql = Doctrine::generateSqlFromModels($path);\n $db->execute($sql);\n } catch (Doctrine_Exception $e) {\n if (!strstr($e->getMessage(), 'already exists')) {\n die(\"createDB sql error: {$e->getMessage()} ({$e->getCode()})\");\n }\n }\n}", "function establish_connection() {\n\t \t\tself::$db = Registry()->db = SqlFactory::factory(Config()->DSN);\n\t \t\tself::$has_update_blob = method_exists(self::$db, 'UpdateBlob');\n\t\t\treturn self::$db;\n\t\t}", "function createObject()\n {\n $stmt = $this->mysqli->prepare(\"INSERT INTO object(`name`, `description`, `price`, `typeCoin`, `weight`, `volume`, `limitationStrength`,\n `limitationDex`, `limitationCons`, `limitationInt`, `limitationWis`,`typeObject`, `primal`)\n VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)\");\n $stmt->bind_param(\n \"ssisiiiiiiisi\",\n $this->name,\n $this->description,\n $this->price,\n $this->typeCoin,\n $this->weight,\n $this->volume,\n $this->limitationStrength,\n $this->limitationDex,\n $this->limitationCons,\n $this->limitationInt,\n $this->limitationWis,\n $this->typeObject,\n $this->primal\n );\n $stmt->execute();\n $this->id = $this->mysqli->insert_id;\n $stmt->close();\n }", "public static function connect()\n\t\t{\n\t\t\tif(is_null(self::$instance))\n\t\t\t{\n\t\t\t\tself::$instance = new db;\n\t\t\t}\n\t\t\treturn self::$instance;\n\t\t}", "public function __construct()\n {\n $this->db = new Database();\n }", "public function __construct()\n {\n $this->db = new Database();\n }", "public static function getInstance()\n\t{\n\t\tif (!is_object(self::$objInstance))\n\t\t{\n\t\t\tself::$objInstance = new CBDatabase();\n\t\t}\n\n\t\treturn self::$objInstance;\n\t}", "protected function _setupDb()\n {\n // First, delete the DB if it exists\n $this->_teardownDb();\n \n // Then, set up a clean new DB and return it\n list ($host, $port, $db) = $this->_getUrlParts();\n $db = trim($db, '/');\n \n return Sopha_Db::createDb($db, $host, $port);\n }", "function colores(){\n\n$this->database = new Database();\n\n}", "public function initStorage()\n {\n $dbMasterConfig = C(self::$dbKey);\n $this->storage = $this->getDbInstance($dbMasterConfig);\n $this->setTableName($dbMasterConfig);\n\n return $this->storage;\n }", "public function ormObject();", "function createDatabase() {\n $db = $this->db;\n\n $db->begin();\n // Create users table.\n // Username is unique and case insensitive.\n $db->exec(\n \"CREATE TABLE IF NOT EXISTS users (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n username TEXT NOT NULL UNIQUE COLLATE NOCASE,\n password TEXT NOT NULL)\");\n // Create pictures table.\n $db->exec(\n \"CREATE TABLE IF NOT EXISTS pictures (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n filename TEXT NOT NULL UNIQUE)\");\n $db->exec(\"CREATE INDEX picture_filename_idx ON pictures (FILENAME)\");\n // Create stories table.\n $db->exec(\n \"CREATE TABLE IF NOT EXISTS stories (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n title TEXT NOT NULL,\n authors TEXT NULL COLLATE NOCASE,\n short_title TEXT NOT NULL UNIQUE COLLATE NOCASE,\n picture_id INTEGER NOT NULL,\n post_date TEXT,\n created_by INTEGER NOT NULL,\n published INTEGER NOT NULL,\n CONSTRAINT FK_story_user_id\n FOREIGN KEY (created_by)\n REFERENCES users (id)\n ON DELETE NO ACTION\n ON UPDATE NO ACTION,\n CONSTRAINT FK_story_picture_id\n FOREIGN KEY (picture_id)\n REFERENCES pictures (id)\n ON DELETE CASCADE \n ON UPDATE CASCADE)\");\n //Create pages table.\n $db->exec(\n \"CREATE TABLE IF NOT EXISTS pages (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n description TEXT NULL,\n picture_id INTEGER NOT NULL,\n story_id INTEGER NULL,\n page_number INTEGER NULL, \n post_date TEXT,\n created_by INTEGER NOT NULL,\n published INTEGER NOT NULL,\n CONSTRAINT FK_page_user_id\n FOREIGN KEY (created_by)\n REFERENCES users (id)\n ON DELETE NO ACTION\n ON UPDATE NO ACTION,\n CONSTRAINT FK_page_picture_id\n FOREIGN KEY (picture_id)\n REFERENCES pictures (id)\n ON DELETE CASCADE \n ON UPDATE CASCADE)\");\n $db->commit();\n\n $db->exec(\n \"CREATE VIEW fullStory AS\n SELECT pictures.filename,\n stories.id as sid, stories.title, stories.short_title, stories.post_date as story_post_date, stories.created_by as story_uid, stories.published as story_published,\n stories.authors, pages.id as pgid, pages.description, pages.page_number, pages.post_date as page_post_date, pages.created_by as page_uid, pages.published as page_published\n FROM stories\n INNER JOIN pictures on stories.picture_id = pictures.id\n LEFT JOIN pages on stories.id = pages.story_id\"\n );\n }", "public function runDatabase():Create {\n\n # Get database from inputs\n $database = Arrays::filterByKey($this->inputs['application'], \"name\", \"database\");\n\n # Get database values\n $databaseValues = $database[array_key_first($database)]['value'] ?? [];\n\n # Check database values\n if(!empty($databaseValues))\n\n # Iteration of values\n foreach($databaseValues as $value)\n\n # Push setup in config of database\n Database::setupConfig($value);\n\n /* Vendor for Mongo DB */\n\n # Check if mongo set in current app\n if(in_array('mongodb', $databaseValues)){\n\n Composer::requirePackage(\"mongodb/mongodb\", true, false);\n\n }\n \n # Return instance\n return $this;\n\n }", "public static function get_instance() {\n \tif( !isset(self::$instance) ) {\n self::$instance = new Database();\n \t}\n\treturn self::$instance ;\n }", "public static function getInstance()\n {\n // If an instance doesn't exist create one, else return it\n if (!self::$db_instance) {\n self::$db_instance = new Database();\n }\n return self::$db_instance;\n }", "public function getDb()\n\t{\n\t\t$this->getPDO();\n\t\treturn $this->db;\n\t}", "private function initDatabase() {\n \n \n \n }", "function comicjet_db() {\n\treturn new Redis_DB();\n}", "public function __construct()\n\t\t{\n\t\t\t$this->_db = new Database();\n\t\t}", "function newDB(){\n //make connection with DB\n $db = new PDO('sqlite:/var/www/user.db');\n $db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);\n return $db;\n}", "public function createDatabase($database);", "function blightDB()\n{\n\tstatic $db;\n\tif (!isset($db))\n\t{\n\t\tif (false === ($db = gdo_db_instance('localhost', BLIGHT_USER, BLIGHT_PASS, BLIGHT_DB)))\n\t\t{\n\t\t\tdie('Cannot connect to db!');\n\t\t}\n\t\t$db->setVerbose(false);\n\t\t$db->setLogging(false);\n\t\t$db->setDieOnError(false);\n\t\t$db->setEMailOnError(false);\n\t}\n\treturn $db;\n}", "public function insertDatabase();", "public function __construct()\n\t{\n\t\t$this->db = new Database();\n\t}", "function db ( )\n{\n return $this->_db;\n}", "function openDatabase($testing=false) {\n $file_path = NULL;\n if ($testing) {\n $file_path = 'data/testing_database.db';\n unlink($file_path);\n } else {\n $file_path = 'data/database.db';\n }\n $db = new WebsiteDatabase($file_path);\n if(!$db){\n echo $db->lastErrorMsg();\n } else {\n //echo \"Opened database successfully\\n\";\n }\n\n $db->createTables();\n\n return $db;\n}", "public function Database() {\n\t\tglobal $database_dsn, $cache_dsn;\n\n\t\tif(substr($database_dsn, 0, 5) == \"mysql\") {\n\t\t\t$this->engine = new MySQL();\n\t\t}\n\t\telse if(substr($database_dsn, 0, 5) == \"pgsql\") {\n\t\t\t$this->engine = new PostgreSQL();\n\t\t}\n\t\telse if(substr($database_dsn, 0, 6) == \"sqlite\") {\n\t\t\t$this->engine = new SQLite();\n\t\t}\n\n\t\t$this->db = @NewADOConnection($database_dsn);\n\n\t\tif(isset($cache_dsn) && !empty($cache_dsn)) {\n\t\t\t$matches = array();\n\t\t\tpreg_match(\"#(memcache|apc)://(.*)#\", $cache_dsn, $matches);\n\t\t\tif($matches[1] == \"memcache\") {\n\t\t\t\t$this->cache = new MemcacheCache($matches[2]);\n\t\t\t}\n\t\t\telse if($matches[1] == \"apc\") {\n\t\t\t\t$this->cache = new APCCache($matches[2]);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$this->cache = new NoCache();\n\t\t}\n\n\t\tif($this->db) {\n\t\t\t$this->db->SetFetchMode(ADODB_FETCH_ASSOC);\n\t\t\t$this->engine->init($this->db);\n\t\t}\n\t\telse {\n\t\t\t$version = VERSION;\n\t\t\tprint \"\n\t\t\t<html>\n\t\t\t\t<head>\n\t\t\t\t\t<title>Internal error - Shimmie-$version</title>\n\t\t\t\t</head>\n\t\t\t\t<body>\n\t\t\t\t\tInternal error: Could not connect to database\n\t\t\t\t</body>\n\t\t\t</html>\n\t\t\t\";\n\t\t\texit;\n\t\t}\n\t}", "protected static function setupDb()\n\t{\n\t\tif (is_object(self::$db)) {\n\t\t\treturn self::$db;\n\t\t}\n\n\t\t$config = Config::getInstance();\n\t\t$driver = $config->getDatabaseDriver();\n\t\t$host = $config->getDatabaseHostname();\n\t\t$user = $config->getDatabaseUsername();\n\t\t$pass = $config->getDatabasePassword();\n\t\t$dbname = $config->getDatabaseName();\n\t\t$file = $config->getDatabaseFile();\n\n\t\ttry {\n\t\t\tswitch ($driver) {\n\t\t\t\tcase 'sqlite':\n\t\t\t\t\tself::$db = new PDO('sqlite:'.$file);\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\tcase 'mysql':\n\t\t\t\t\tself::$db = new PDO($driver.':dbname='.$dbname.';host='.$host,\n\t\t\t\t\t $user, $pass,array(PDO::ATTR_PERSISTENT => true));\n\t\t\t}\n\t\t\tself::$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t} catch (PDOException $e) {\n\t\t\tthrow new Exception(\"Kunde inte etablera anslutning till databasen. (\".\n\t\t\t $e->getMessage().')');\n\t\t}\n\t}", "private static function getDb() {\n \n if(self::$db === null) {\n $dsn = 'mysql:host=localhost;dbname=blog;charset=utf8' ;\n $login = 'root' ;\n $password = '' ;\n\t\t\tself::$db = new \\PDO($dsn, $login, $password,\n array (\\PDO::ATTR_ERRMODE => \\PDO::ERRMODE_EXCEPTION)) ;\n }\n return self::$db ;\n }", "protected function db()\n\t\t{\n\t\t\tif( !$this->_db ) {\n\t\t\t\t$this->_db = \\Kalibri::db()->getConnection( $this->connectName );\n\t\t\t}\n\n\t\t\treturn $this->_db;\n\t\t}", "public function database() {\n\t\t$this->_check();\n\t\t$d['title_for_layout'] = __(\"Database creation\");\n\t\t$this->set($d);\n\t}", "public static function getInstance()\n {\n if(!isset(self::$instance))\n {\n self::$instance = new Database();\n }\n return self::$instance;\n }", "public static function getDBO() {\n\t\t/*\n\t\t * Check for the required DB configuration parameters\n\t\t */\n\t\tif(!defined('ETH_CONF_DB_HOST')) {\n\t\t\tthrow new Exception('ETH_CONF_DB_HOST configuration not set');\n\t\t}\n\t\tif(!defined('ETH_CONF_DB_USERNAME')) {\n\t\t\tthrow new Exception('ETH_CONF_DB_USERNAME configuration not set');\n\t\t}\n\t\tif(!defined('ETH_CONF_DB_PASSWORD')) {\n\t\t\tthrow new Exception('ETH_CONF_DB_PASSWORD configuration not set');\n\t\t}\n\t\tif(!defined('ETH_CONF_DB_DBNAME')) {\n\t\t\tthrow new Exception('ETH_CONF_DB_DBNAME configuration not set');\n\t\t}\n\n\t\t$db = new mysqli(ETH_CONF_DB_HOST, ETH_CONF_DB_USERNAME,\n\t\t\t\tETH_CONF_DB_PASSWORD, ETH_CONF_DB_DBNAME);\n\t\t\t\t\n\t\tif($db->connect_error){\n\t\t\tthrow new Exception(\n\t\t\t\t\tsprintf('DB Connect Error %d: %s',\n\t\t\t\t\t\t\t$db->connect_errno, $db->connect_error));\n\t\t}\n\n\t\tself::$db = $db;\n\t\treturn self::$db;\n\t}", "public static function getInstance(){\r\n \tif(!isset(self::$instance)){\r\n \t\tself::$instance = new database();\r\n \t}\r\n \treturn self::$instance;\r\n }", "public static function getInstance(): Database\n {\n // S'il n'existe pas encore d'instance de Database en mémoire, en crée une\n if (!isset(self::$instance)) {\n self::$instance = new Database();\n }\n\n // Renvoyer l'unique instance de Database en mémoire\n return self::$instance;\n }", "function createDB() {\r\n\t\t\r\n\t\tif( $this->state != 1 ) return false;\r\n\t\t\r\n\t\tglobal $dbName;\r\n\t\t$r = mysql_query( \"CREATE DATABASE `$dbName` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;\" );\r\n\t\t$this->connect();\r\n\t\t\r\n\t\treturn $r;\r\n\t}", "public function __construct(){\n $this->db = new Base;\n }", "public static function getInstance(){\n\t\tif (!isset(self::$_instance)) {\n\t\t\tself::$_instance = new Database();\n\t\t}\n\t\treturn self::$_instance;\n\t}", "private function setupDatabase()\n {\n try {\n $db = new PDO(sprintf('mysql:host=%s;dbname=%s', $this->host, $this->dbName), $this->userName, $this->password);\n\n } catch (PDOException $e) {\n\n if (false != strpos($e->getMessage(), 'Unknown database')) {\n $db = new PDO(sprintf('mysql:host=%s', $this->host), $this->userName, $this->password);\n $db->exec(\"CREATE DATABASE IF NOT EXISTS `$this->dbName` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;\") or die(print_r($db->errorInfo(), true));\n\n } else {\n die('DB ERROR: ' . $e->getMessage());\n }\n\n $db = new PDO(sprintf('mysql:host=%s;dbname=%s', $this->host, $this->dbName), $this->userName, $this->password);\n }\n $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n return $db;\n }", "public static function getInstance()\n\t{\n\t\tif (is_null(self::$_instance)) // On regarde si une instance de a déjà été créée\n\t\t\tself::$_instance = new Database(); // Si non, on la créer\n\n\t\treturn self::$_instance;\n\t}", "public static function Instance()\n {\n static $database = null;\n if ($database === null) {\n $database = new Database();\n }\n return $database;\n }", "public function __construct(){\n $this->db = new SQLite3(':memory:');\n //create table in db if it does now exist\n $this->db->exec('CREATE TABLE IF NOT EXISTS storage (name STRING, value INT);');\n }", "public static function instance() {\n\t\t$classe = get_called_class();\n\t\t$table = str_replace(\"db_\", \"\", $classe);\n\t\t$instance = db::instance(db::table($table));\n\t\treturn $instance;\n\t}", "public static function & factory($db_name) {\n\t\tstatic $dbs = array();\n\n\t\t$return = null;\n\n\t\t//ensure one db object per db server\n\t\tif (isset($dbs[$db_name])) {\n\t\t\treturn $dbs[$db_name];\n\t\t}\n\n\t\t$dbconfig = Config::get('db.'. $db_name);\n\n\t\tif (isset($dbconfig['driver'])) {\n\t\t\t$driver_class = 'DB'. strtolower($dbconfig['driver']);\n\t\t\t$driver_path = PATH_DB . $driver_class .'.class.php';\n\n\t\t\t$dbs[$db_name] = $return = new $driver_class(\n\t\t\t\tisset($dbconfig['server']) ? $dbconfig['server'] : null,\n\t\t\t\tisset($dbconfig['username']) ? $dbconfig['username'] : null,\n\t\t\t\tisset($dbconfig['password']) ? $dbconfig['password'] : null,\n\t\t\t\tisset($dbconfig['database']) ? $dbconfig['database'] : null,\n\t\t\t\tisset($dbconfig['port']) ? $dbconfig['port'] : null,\n\t\t\t\tisset($dbconfig['socket']) ? $dbconfig['socket'] : null\n\t\t\t);\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException('Unable to initialize DB object, no config found for db: '. $db_name);\n\t\t}\n\n\t\tif (!$return || !$return instanceof DB) {\n\t\t\tthrow new Exception('Unable to instantiate DB object for - '. $db_name .': '. var_export($dbconfig, true));\n\t\t}\n\n\t\treturn $return;\n\t}", "protected function getDb()\n\t{\n\t\treturn (new League)->getConnection();\n\t}", "static function getDB()\n\t{\n\t\tif( self::$cached_db !== NULL )\n\t\t\treturn self::$cached_db;\n\t\ttry {\n\t\t\t// Regular direct access to existing database:\n\t\t\tself::$cached_db = new \\it\\icosaedro\\sql\\mysql\\Driver(array(\"localhost\", \"root\", \"\", \"icodb\"));\n\t\t}\n\t\tcatch(SQLException $e){\n\t\t\t// Try again checking and possibly creating the database:\n\t\t\tself::$cached_db = DBManagement::checkAll();\n\t\t}\n\t\treturn self::$cached_db;\n\t}", "public static function getInstance() {\n if(!isset(self::$instance)) {\n self::$instance = new Database();\n }\n return self::$instance;\n }", "public function __construct() {\n $this->dbName = new DataBase($this->db);\n }", "private static function initialize_db() {\n\t\tif ( ! defined( 'WP_CLI_SNAPSHOT_DB' ) ) {\n\t\t\tdefine( 'WP_CLI_SNAPSHOT_DB', Utils\\trailingslashit( WP_CLI_SNAPSHOT_DIR ) . 'wp_snapshot.db' );\n\t\t}\n\n\t\tif ( ! ( file_exists( WP_CLI_SNAPSHOT_DB ) ) ) {\n\t\t\tself::create_tables();\n\n\t\t\treturn;\n\t\t}\n\n\t\t// phpcs:ignore PHPCompatibility.Extensions.RemovedExtensions.sqliteRemoved -- False positive.\n\t\tself::$dbo = new \\SQLite3( WP_CLI_SNAPSHOT_DB );\n\t}", "function getDbInstance()\r\n{\r\n\treturn new MysqliDb(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME); \r\n}", "public function __construct(){\n $this->db = new Conect();//criando o objeto Conect\n $this->db = $this->db->Conn();//executando metodo e pondo em uma variavel\n}", "function create_database() \r\n {\r\n \t\t\t$this->tx_cbywebdav_devlog(1,\"create_database\",\"cby_webdav\",\"create_database\");\r\n\r\n // TODO\r\n return false;\r\n }", "function __construct(){\r\n\t\t$this->database = new Model;\r\n\t}", "public function getDatabase()\n\t{\n\t\tif (is_null($this->database))\n\t\t{\n\t\t\t$this->database = DatabaseDriver::getInstance(\n\t\t\t\tarray(\n\t\t\t\t\t'driver' => $this->config->get('dbtype'),\n\t\t\t\t\t'host' => $this->config->get('host'),\n\t\t\t\t\t'user' => $this->config->get('user'),\n\t\t\t\t\t'password' => $this->config->get('password'),\n\t\t\t\t\t'database' => $this->config->get('db'),\n\t\t\t\t\t'prefix' => $this->config->get('dbprefix')\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// @todo Decouple from Factory\n\t\t\tFactory::$database = $this->database;\n\t\t}\n\n\t\treturn $this->database;\n\t}" ]
[ "0.7501272", "0.74878854", "0.7277767", "0.72441274", "0.7083806", "0.6998411", "0.6989336", "0.6962153", "0.6916926", "0.69042194", "0.6877892", "0.68155783", "0.6784196", "0.6740734", "0.67010605", "0.6693122", "0.6683982", "0.6660153", "0.6643156", "0.66347504", "0.66084206", "0.6594221", "0.6569419", "0.65654683", "0.656225", "0.6542332", "0.6528345", "0.64925814", "0.64622355", "0.6459062", "0.64587975", "0.6446167", "0.644476", "0.6436451", "0.6433314", "0.64316416", "0.6430561", "0.6430561", "0.64192235", "0.64103615", "0.6400382", "0.6400382", "0.6396349", "0.6378956", "0.63593215", "0.635702", "0.63540316", "0.63453716", "0.6325297", "0.6318968", "0.631838", "0.631838", "0.63111794", "0.6308855", "0.6307385", "0.6304864", "0.629856", "0.6279855", "0.62739694", "0.62688285", "0.62669724", "0.6265968", "0.62606114", "0.62511104", "0.6250142", "0.6249897", "0.62487316", "0.62404305", "0.6235956", "0.6234247", "0.62289214", "0.6219438", "0.6218191", "0.6212979", "0.62111014", "0.6205365", "0.6194058", "0.61920124", "0.61671686", "0.6166373", "0.61590385", "0.6154856", "0.61535573", "0.6143392", "0.61428386", "0.614103", "0.6138426", "0.6135896", "0.6121045", "0.61195534", "0.61162066", "0.61132485", "0.6104038", "0.60960525", "0.6092491", "0.60924286", "0.6091884", "0.60903025", "0.6089775", "0.6087368" ]
0.6967801
7
This function create and returns an object Auth using an object Session, including an array of restriction messages.
static function getAuth() { return new Auth(Session::getInstance(), ["restriction_msg" => "Vous n'avez pas le droit d'accéder à cette page.", "restriction_msg_assembly" => "Vous n'avez pas le droit d'accéder à cette page si vous n'êtes pas connecté."]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _createSession(){\n return $this->_session = new Session();\n }", "function auth_create($id, $data = null)\n {\n $lc_auth = auth_prerequisite();\n $auth = auth_get();\n\n if (!$auth) {\n $session = is_object($data) ? $data : auth_getUserInfo($id);\n if (isset($session)) {\n $fieldRole = $lc_auth['fields']['role'];\n\n $session->sessId = session_id();\n $session->timestamp = time();\n $session->token = strtoupper(_randomCode(20));\n $session->permissions = auth_permissions($session->$fieldRole);\n\n auth_set($session);\n\n return $session;\n }\n } else {\n return $auth;\n }\n\n return false;\n }", "public static function Auth()\n\t{\n\t\treturn self::$auth = new Auth();\n\t}", "public function newSession();", "public static function getFromSession(){\n\t\t$user = new User();\n\t\t\n\t\tif(isset($_SESSION[User::SESSION]) && (int)$_SESSION[User::SESSION]['id_user'] > 0)\n\t\t{\n\t\t\t$user->setData($_SESSION[User::SESSION]);\n\t\t}\n\t\treturn $user;\n\t}", "public function getSession();", "public static function instance() {\n\t\tglobal $_SESSION;\n\t\t\n\t\tif (isset($_SESSION['puserauth'])) {\n\t\t\treturn unserialize($_SESSION['puserauth']);\n\t\t}\n\t\t$user = new PUserAuth();\n\t\t$user->store();\n\t\treturn $user;\n\t}", "public static function init()\n {\n $authentic = false;\n\n if (($memno = array_get($_SESSION, 'camra_auth_memno', ''))) {\n $authentic = true;\n }\n\n return new static($memno, $authentic);\n }", "public function getSession() {}", "protected function auth()\n {\n if ($this->auth === null)\n $this->auth = new AuthModel($this->db);\n return $this->auth;\n }", "public static function GetSessionAuthorization ();", "public function __construct()\n {\n $this->auth_model = new authModel();\n session();\n }", "protected function _initSession()\n\t{\n\t\t$sessionConfig = Zend_Registry::get('config')->session;\n \tZend_Session::setOptions($sessionConfig->toArray());\n\t\t$session = new Zend_Session_Namespace('crm', true);\n\t\treturn $session;\n\t}", "function auth(): Auth\n{\n return (new Auth);\n}", "abstract protected function getSession();", "public function newInstance()\n {\n return new Auth($this->segment);\n }", "public function createOAuthSession(&$session);", "function auth_get()\n{\n return session_get(auth_namespace(), true);\n}", "private function __construct() \n {\n \n\t\t$this->_storage = new Tg_Auth_Storage_Session();\n\t\t$this->_adapter = new Tg_Auth_Adapter_User();\n\t\t$this->_auth = Zend_Auth::getInstance();\n $this->_auth->setStorage($this->_storage);\n }", "public static function factory($config = array())\n\t{\n\t\treturn new Simple_Auth($config);\n\t}", "protected function getSessionUser()\n{\n\t$data = $this->app->getSession('pclib.user', $this->realm);\n\tif (!$data) return null;\n\n\tif ($data['sessionHash'] != $this->sessionHash($data)) {\n\t\t$this->log('AUTH_ERROR', 'Authentication failed - invalid session.', $data['ID']);\n\t\tthrow new AuthException(\"Authentication failed. Access denied.\");\n\t}\n\n\t$user = new AuthUser;\n\t$user->values = $data;\n\t$user->auth = $this;\n\treturn $user;\n}", "protected function get_model_obj(){ return new Session_Model(); }", "public static function factory($config = array())\n\t{\n\t\treturn new Auth($config);\n\t}", "function create() \n\t{\n\t\t//If this was called to destroy a session (only works after session started)\n\t\t$this->clear();\n\n\t\t//If there is a class to handle CRUD of the sessions\n\t\tif($this->session_database) \n\t\t{\n if (is_php('5.4'))\n {\n // -- User for php > 5.4 --\n session_set_save_handler($this, TRUE);\n }\n else\n {\n session_set_save_handler(\n array($this, 'open'),\n array($this, 'close'),\n array($this, 'read'),\n array($this, 'write'),\n array($this, 'destroy'),\n array($this, 'gc')\n );\n register_shutdown_function('session_write_close');\n }\n // Create connect to database\n $this->_conn = DbConnection::getInstance();\n\t\t}\n\n\t\t// Start the session!\n\t\tsession_start();\n\n\t\t//Check the session to make sure it is valid\n\t\tif(!$this->check())\n\t\t{\n\t\t\t//Destroy invalid session and create a new one\n\t\t\treturn $this->create();\n\t\t}\n\t}", "public static function getInstance()\n {\n $session = new Session();\n\n self::$instancia = $session;\n\n return $session;\n }", "function __construct(){\r\n if(isset($_SESSION['login']) && $_SESSION['login'] == 'true' && isset($_SESSION['username'])){\r\n $this->username = $_SESSION['username'];\r\n $this->login = $_SESSION['login'];\r\n $this->email = $_SESSION['email'];\r\n $this->credential = $_SESSION['credential'];\r\n $this->picture = $_SESSION['picture'];\r\n $this->academy = $_SESSION['fullname'];\r\n }\r\n }", "function getAuthParameters($params)\n{\n $authParameters = new AuthenticationParameters();\n $authParameters->Reseller = $params['Reseller'];\n $authParameters->Username = $params['Username'];\n $authParameters->Password = $params['Password'];\n\n return $authParameters;\n}", "public static function getInstance()\n {\n if (null === self::$auth) self::$auth = new self();\n return self::$auth;\n }", "public function getSession(): object\n {\n return SessionTrait::sessionFromGlobal();\n }", "public function createAuth($data)\n\t{\n\t\t$auth = $this->map($data);\n\t\t\n\t\t$auth->save();\n\n\t\treturn $auth;\n\t}", "public function userLoggedIn(){\r\n \n \t$user = new UserObject();\n \t\r\n \tif( isset ($_SESSION['id']) &&\r\n \t\tisset ($_SESSION['username']) &&\r\n \t\tisset ($_SESSION['profile_picture']) &&\r\n \t\tisset ($_SESSION['access_token'])){\r\n \t\t\t\r\n \t\t$user->id = $_SESSION['id'];\r\n \t\t$user->username = $_SESSION['username'];\r\n \t\t$user->profile_picture = $_SESSION['profile_picture'];\r\n \t\t$user->access_token = $_SESSION['access_token'];\r\n \t}\n \t\t\r\n \treturn $user;\r\n }", "public static function getInstance(){\n if(!self::$instance){\n self::$instance = new Auth();\n }\n \n return self::$instance;\n }", "public static function sessionData(): object {\n return Session::instance()->get(AccessControl::SESSION_AUTH_KEY);\n }", "public function generateSession()\n\t{\n\t\t$name = $_POST['name'];\n\t\t$password = $_POST['password'];\n\t\t//validación de Usuario con un name y password ya definido\n\t\t$this->validaUsuario($name,$password);\n\n\t\t//validacion de un Usuario a Nivel Base de Datos cargar la base de datos y en la clase de la conexion poner los datos de la base de datos\n\t\t//$this->validaUsuarioDB($name,$password);\n\n\n\t}", "public static function createFromGlobals()\n {\n $class = __CLASS__;\n\n \n //Modification for modouth flow TODO: extend request class and override createFromGlobals method\n //to handle params stored in session\n \n $OAUTH_PARAMS = array();\n \n $clientKey = 'modoauth-clientid';\n $resTypeKey = 'modoauth-responsetype';\n $stateKey = 'modoauth-state';\n \n if(isset($_SESSION['modoauth'])){\n $oauthParams = $_SESSION['modoauth'];\n $OAUTH_PARAMS = array(\n \"client_id\"=>$oauthParams[$clientKey],\n \"response_type\"=>$oauthParams[$resTypeKey],\n \"state\"=>$oauthParams[$stateKey]\n );\n }\n \n $request = new $class(array_merge($_GET,$OAUTH_PARAMS), $_POST, array(), $_COOKIE, $_FILES, $_SERVER);\n\n $contentType = $request->server('CONTENT_TYPE', '');\n $requestMethod = $request->server('REQUEST_METHOD', 'GET'); \n if (0 === strpos($contentType, 'application/x-www-form-urlencoded')\n && in_array(strtoupper($requestMethod), array('PUT', 'DELETE'))\n ) {\n parse_str($request->getContent(), $data);\n $request->request = $data;\n } elseif (0 === strpos($contentType, 'application/json')\n && in_array(strtoupper($requestMethod), array('POST', 'PUT', 'DELETE'))\n ) {\n $data = json_decode($request->getContent(), true);\n $request->request = $data;\n }\n \n return $request;\n }", "private function createSession()\n {\n session_regenerate_id(TRUE);\n $this->session = array();\n $this->session['legit'] = $this->sessionHash();\n $this->session['id'] = $this->userId;\n if (!$this->userId) {\n $this->voidCookie();\n }\n }", "public static function SetUpUserBySession ();", "private function get_session()\n\t\t{\n\t\t\t$auto = $this->use_token();\n\n\t\t\tglobal $user;\n\t\t\tif ($user)\n\t\t\t\treturn (object)['id' => $user->id, 'name' => $user->name, 'state' => $_SESSION['state']];\n\t\t\telse if ($auto)\n\t\t\t\treturn (object)['id' => $auto->id, 'name' => $auto->name, 'state' => $_SESSION['state']];\n\t\t\telse\n\t\t\t\treturn (object)['id' => null, 'name' => null, 'state' => 0];\n\t\t}", "function vtws_extendSession(){\n\t\tglobal $adb,$API_VERSION,$application_unique_key;\n\t\tif(isset($_SESSION[\"authenticated_user_id\"]) && $_SESSION[\"app_unique_key\"] == $application_unique_key){\n\t\t\t$userId = $_SESSION[\"authenticated_user_id\"];\n\t\t\t$sessionManager = new SessionManager();\n\t\t\t$sessionManager->set(\"authenticatedUserId\", $userId);\n\t\t\t$crmObject = VtigerWebserviceObject::fromName($adb,\"Users\");\n\t\t\t$userId = vtws_getId($crmObject->getEntityId(),$userId);\n\t\t\t$vtigerVersion = vtws_getVtigerVersion();\n\t\t\t$resp = array(\"sessionName\"=>$sessionManager->getSessionId(),\"userId\"=>$userId,\"version\"=>$API_VERSION,\"vtigerVersion\"=>$vtigerVersion);\n\t\t\treturn $resp;\n\t\t}else{\n\t\t\tthrow new WebServiceException(WebServiceErrorCode::$AUTHFAILURE,\"Authencation Failed\");\n\t\t}\n\t}", "public function __construct(){\t\t\t\t\t\t\n\t\t\tif(isset($_SESSION)) //Go through each $_SESSION variable and set it to a User-class variable\n\t\t\t\tforeach($_SESSION as $key => $value)\n\t\t\t\t\t$this->$key = $value;\n\t\t\t\n\t\t\t$this->mongoDB = new MongoFunctions(MONGO_DATABASE, 'localhost');\n\t\t\t\n\t\t\treturn $this;\n\t\t}", "public static function Create()\n\t{\n\t\t# create unique session identifier\n\t\t$key = self::generate_sid();\n\t\t\t\t\t\n\t\tself::setcookie($key);\n\t\tself::Store($key);\n\t\tself::$sid = $key;\n\t\t\n\t\t# Yes - try to retrieve the session from the DB\n\t\t$session = database()->start_query('sessions')\n\t\t\t->where(array('key' => self::$sid))\n\t\t\t->limit(1)\n\t\t\t\t->run()\n\t\t\t\t->row();\n\t\t\n\t\tself::$data = (object) $session;\n\t\tself::$data->_data = (unserialize(self::$data->_data) !== FALSE)? unserialize(self::$data->_data) : array();\n\t}", "public function portalSessions(): PortalSessions\n {\n return new PortalSessions();\n }", "public static function from_session() {\n\t\tif(isset($_SESSION['user-name'])) {\n\t\t\tglobal $con;\n\t\t\t$user_name = $_SESSION['user-name'];\n\t\t\t$prep = $con->prepare(\"\n\t\t\t\tSELECT user_id, user_is_admin FROM `users` \n\t\t\t\tWHERE user_name = ?\n\t\t\t\");\n\t\t\t$prep->bind_param(\"s\", $user_name);\n\t\t\t$prep->execute();\n\t\t\t$prep->bind_result($user_id, $is_admin);\n\t\t\tif($prep->fetch()) {\n\t\t\t\t$prep->close();\n\t\t\t\treturn new user($user_name, $user_id, $is_admin);\n\t\t\t} else {\n\t\t\t\t$prep->close();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function __construct() {\n $this->session = new Session();\n }", "public function create(&$session)\n\t{\n\t\t//TODO: Implement this service call.\n\t\treturn false;\t\n\t}", "function createSession($username)\n{\n $_SESSION[\"username\"] = $username;\n // Get user's roles\n require_once(\"model/users_possesses_roles.php\");\n $roles = getUserRoles($username);\n $_SESSION[\"roles\"] = $roles;\n}", "public function createContextSession();", "protected function getSession() {\n if (!$this->session) {\n $args = $this->getSiteSection('authentication');\n $args['DEBUG_MODE'] = $this->getSiteVar('DATA_DEBUG');\n $this->session = new Session($args);\n }\n \n return $this->session;\n }", "public function save() {\n FPCAuthentication_Result::startSession();\n $_SESSION[self::FPC_LOGIN_RESULT_KEY] = $this->toArray();\n return $this;\n }", "public static function getSession(){\n return \\Illuminate\\Auth\\Guard::getSession();\n }", "public function createToken(Session $session): Token {\n\n // Genero TokenID\n $tokenPart1 = md5($session->getLoginId());\n $tokenPart2 = md5(time());\n\n $tokenId = (substr($tokenPart1,0,strlen($tokenPart1)/2)) .\n (substr($tokenPart2, strlen($tokenPart2)/2, strlen($tokenPart2)/2));\n\n $check = $this->getORM()->find(Token::class, $tokenId);\n\n while ($check instanceof Token) {\n $tokenPart2 = md5(time());\n $tokenId = (substr($tokenPart1,0,strlen($tokenPart1)/2)) .\n (substr($tokenPart2, strlen($tokenPart2)/2, strlen($tokenPart2)/2));\n $check = $this->getORM()->find(Token::class, $tokenId);\n }\n\n $login = $this->getORM()->find(Login::class, $session->getLoginId());\n\n // Genero il JWT\n $session->setTokenId($tokenId);\n $jwt = $session->getJWT($this->privateKeyFile);\n\n\n $token = new Token();\n $token->setTokenId($tokenId)\n ->setData($jwt)\n ->setLogin($login)\n ->setCreationDate($session->getAccess())\n ->setExpireDate($session->getExpire());\n\n try {\n $this->getORM()->persist($token);\n $this->getORM()->flush();\n return $token;\n }catch( Exception $ex ){\n throw new Exception('Error during Token generation:' . $ex->getMessage());\n }\n }", "function createSession($id,$username,$password,$customer)\n {\n $client = getClient();\n $user = new stdClass();\n $user->id = $id;\n $user->username = $username;\n $user->password = $password;\n $user->customer = $customer;\n $createSession = new stdClass();\n $createSession->user = $user;\n $createSessionResponse = new stdClass();\n $createSessionResponse = $client->createSession($createSession);\n return $createSessionResponse->return;\n }", "public function init()\n {\n if (!isset ($this->user_id)) {\n $this->user_id = EVERYONE;\n }\n if (!isset ($_SESSION ['ZUIZZ'] ['AUTH'] ['uid'])) {\n $_SESSION ['ZUIZZ'] ['AUTH'] ['uid'] = EVERYONE;\n } else {\n $this->user_id = $_SESSION ['ZUIZZ'] ['AUTH'] ['uid'];\n }\n\n\n $_SESSION ['ZUIZZ'] ['PERM'] = array();\n\n // rechte die für everyone sind für alle\n // Userrechte (und auch public rechte holen) , diese werden explizit gestzt!!\n\n $q = ORM::for_table('org_permission_user')->where_raw(('user_id = ? or user_id = ?'), array($this->user_id, EVERYONE))->find_many();\n\n foreach ($q as $tmp_perm) {\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm'] = $tmp_perm->perm;\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm_b'] = $tmp_perm->perm_b;\n }\n\n $q = ORM::for_table('org_permission_org')->raw_query(\"SELECT\n tree_a.org_id, usr.org_id as target_org_id, tree_a.title, perm.feature_type, perm.feature_node_id, perm.perm, perm.perm_b\n FROM\n \" . ('org_permission_org') . \" perm\n INNER JOIN\n \" . ('org_tree') . \" tree_a ON perm.org_id = tree_a.org_id ,\n \" . ('org_tree') . \" tree_b\n INNER JOIN\n \" . ('org_user') . \" usr ON tree_b.org_id = usr.org_id\n WHERE\n usr.user_id = :user_id\n AND\n tree_a.lft >=tree_b.lft\n AND\n tree_a.rgt <= tree_b.rgt\n AND\n tree_a.tree_id = tree_b.tree_id\n ORDER\n by tree_a.lft ASC\", array('user_id' => $this->user_id))->find_many();\n // Org Pfad basierend der Org Unit der ein User angehört, die Rechte gehen von oben nach unten, ein recht auf eine hauptabteilung erhält auch die rechte der darunterliegenden Abteilungen\n foreach ($q as $tmp_perm) {\n // Wenn ein recht auf ein target_org_id (bewusst gesetztes recht auf ein Org element und nicht vererbt) wird genau dieses als das geltende recht genommen\n if ($tmp_perm->target_org_id == $tmp_perm->org_id) {\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm'] = $tmp_perm->perm;\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm_b'] = $tmp_perm->perm_b;\n } else {\n if (!isset ($_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm'])) {\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm'] = 0;\n }\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm'] |= $tmp_perm->perm;\n if (!isset ($_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm_b'])) {\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm_b'] = 0;\n }\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm_b'] |= $tmp_perm->perm_b;\n }\n }\n\n $q = ORM::for_table('org_user_functional_role')->raw_query(\"SELECT\n role.role_id, role.title, perm.feature_type, perm.feature_node_id, perm.perm, perm.perm_b\n FROM\n \" . ('org_user_functional_role') . \" usr\n INNER JOIN\n \" . ('org_functional_role') . \" role ON usr.functional_role_id = role.role_id\n LEFT JOIN\n \" . ('org_permission_role') . \" perm ON role.role_id = perm.role_id\n WHERE\n usr.org_user_id in (:user_id, :everyone) \", array('user_id' => $this->user_id, 'everyone' => EVERYONE))->find_many();\n\n // Rollenrechte basierend der Rollen des Users und Rollen des Users\n foreach ($q as $tmp_perm) {\n if (isset ($_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm'])) {\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm'] |= $tmp_perm->perm;\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm_b'] |= $tmp_perm->perm_b;\n } else {\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm'] = $tmp_perm->perm;\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm_b'] = $tmp_perm->perm_b;\n }\n // Rollen die der user übernimmt\n $_SESSION ['ZUIZZ'] ['PERM'] ['ROLE'] [$tmp_perm->role_id] = $tmp_perm->role_id;\n $_SESSION ['ZUIZZ'] ['PERM'] ['ROLENAMES'] [$tmp_perm->title] = $tmp_perm->role_id;\n }\n\n /*\n * Für jede Rolle der ein User angehört entsprechende ORG Units raussuchen und die Rechte von diesen Nodes her nach unten aufbauen (siehe org pfad basierend org weiter oben in diesem file)\n */\n if (isset ($_SESSION ['ZUIZZ'] ['PERM'] ['ROLE'])) {\n // ORG Units ermitteln\n $role = ORM::for_table('org_functional_role_org_tree')->where_in('functional_role_id', $_SESSION ['ZUIZZ'] ['PERM'] ['ROLE'])->find_many();\n foreach ($role as $val) {\n\n // Org Pfad basierend der Org Unit der ein User angehört, die Rechte gehen von oben nach unten, ein recht auf eine hauptabteilung erhält auch die rechte der darunterliegenden Abteilungen\n $q = ORM::for_table('org_permission_org')->raw_query(\"SELECT\n tree_a.org_id, tree_a.title, perm.feature_type, perm.feature_node_id, perm.perm, perm.perm_b\n FROM\n \" . ('org_permission_org') . \" perm\n INNER JOIN\n \" . ('org_tree') . \" tree_a ON perm.org_id = tree_a.org_id ,\n \" . ('org_tree') . \" tree_b\n WHERE\n tree_b.org_id =:org_id\n AND\n tree_a.lft >=tree_b.lft\n AND\n tree_a.rgt <= tree_b.rgt\n AND\n tree_a.tree_id = tree_b.tree_id\n ORDER\n by tree_a.lft ASC\", array('org_id' => $val->org_id))->find_many();\n foreach ($q as $tmp_perm) {\n\n // Wenn ein recht auf ein target_org_id (bewusst gesetztes recht auf ein Org element und nicht vererbt) wird genau dieses als das geltende recht genommen\n if ($val->org_id == $tmp_perm->org_id) {\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm'] = $tmp_perm->perm;\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm_b'] = $tmp_perm->perm_b;\n } else {\n if (!isset ($_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm'])) {\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm'] = 0;\n }\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm'] |= $tmp_perm->perm;\n if (!isset ($_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm_b'])) {\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm_b'] = 0;\n }\n $_SESSION ['ZUIZZ'] ['PERM'] [$tmp_perm->feature_type] [$tmp_perm->feature_node_id] ['perm_b'] |= $tmp_perm->perm_b;\n }\n }\n\n }\n }\n\n }", "public function ClassSession(){\n\t\trequire(SYS_PATH.\"system/Session.php\");\n\t\t$this->session = new Session;\n\t\tif($this->verifySession){\n\t\t\tif(!$this->session->verifySession()){\t\t\t\t\n\t\t\t\t$this->redirect(\"Login/Index\");\n\t\t\t}\n\t\t}\n\t}", "public function login(){\n\n if(isset($_POST)){\n \n /* identificar al usuario */\n /* consulta a la base de datos */\n $usuario = new Usuario();\n \n $usuario->setEmail($_POST[\"email\"]);\n $usuario->setPassword($_POST[\"password\"]);\n \n $identity = $usuario->login();\n \n\n if($identity && is_object($identity)){\n \n $_SESSION[\"identity\"]= $identity;\n\n if($identity->rol == \"admin\"){\n var_dump($identity->rol);\n\n $_SESSION[\"admin\"] = true;\n }\n }else{\n $_SESSION[\"error_login\"] = \"identificacion fallida\";\n }\n\n\n /* crear una sesion */\n \n }\n /* redireccion */\n header(\"Location:\".base_url);\n\n }", "protected function mockSession()\n {\n $session = new Session(new MockArraySessionStorage());\n $session->start();\n\n $beBag = new ArrayAttributeBag('_contao_be_attributes');\n $beBag->setName('contao_backend');\n\n $session->registerBag($beBag);\n\n $feBag = new ArrayAttributeBag('_contao_fe_attributes');\n $feBag->setName('contao_frontend');\n\n $session->registerBag($feBag);\n\n return $session;\n }", "public function getSession(){\n if ($this->_session instanceof Session) {\n return $this->_session;\n }\n return $this->_createSession();\n }", "function getSession($uName, $isCreate = null) {\n $sessionObj = new Session();\n $argv = func_get_args();\n if (count($argv) == 1) {\n Util::throwExceptionIfNullOrBlank($uName, \"User Name\");\n $objUtil = new Util($this->apiKey, $this->secretKey);\n try {\n\t\t\t $params = null;\n $headerParams = array();\n $queryParams = array();\n $signParams = $this->populateSignParams();\n $metaHeaders = $this->populateMetaHeaderParams();\n $headerParams = array_merge($signParams, $metaHeaders);\n $body = null;\n $body = '{\"app42\":{\"session\":{\"userName\":\"' . $uName . '\"}}}';\n\n $signParams['body'] = $body;\n $signature = urlencode($objUtil->sign($signParams)); //die();\n $headerParams['signature'] = $signature;\n $contentType = $this->content_type;\n $accept = $this->accept;\n $baseURL = $this->url;\n $baseURL = $baseURL;\n $response = RestClient::post($baseURL, $params, null, null, $contentType, $accept, $body, $headerParams);\n $sessionResponseObj = new SessionResponseBuilder();\n $sessionObj = $sessionResponseObj->buildResponse($response->getResponse());\n } catch (App42Exception $e) {\n throw $e;\n } catch (Exception $e) {\n throw new App42Exception($e);\n }\n return $sessionObj;\n } else {\n /**\n * Create User Session based on the isCreate boolean parameter. If isCreate\n * is true and there is an existing session for the user, the existing\n * session is returned. If there is no existing session for the user a new\n * one is created. If isCreate is false and there is an existing session,\n * the existing session is returned if there is no existing session new one\n * is not created\n *\n * @param uName\n * - UserName for which the session has to be created.\n * @param isCreate\n * - A boolean value for specifying if an existing session is not\n * there, should a new one is to be created or not.\n *\n * @return Session object containing the session id of the created session.\n * This id has to be used for storing or retrieving attributes.\n */\n Util::throwExceptionIfNullOrBlank($uName, \"User Name\");\n Util::throwExceptionIfNullOrBlank($isCreate, \"isCreate\");\n $encodedIsCreate = Util::encodeParams($isCreate);\n $objUtil = new Util($this->apiKey, $this->secretKey);\n try {\n\t\t\t $params = null;\n $headerParams = array();\n $queryParams = array();\n $signParams = $this->populateSignParams();\n $metaHeaders = $this->populateMetaHeaderParams();\n $headerParams = array_merge($signParams, $metaHeaders);\n $body = null;\n $body = '{\"app42\":{\"session\":{\"userName\":\"' . $uName . '\"}}}';\n $signParams['body'] = $body;\n $signature = urlencode($objUtil->sign($signParams)); //die();\n $headerParams['signature'] = $signature;\n $contentType = $this->content_type;\n $accept = $this->accept;\n $baseURL = $this->url;\n $baseURL = $baseURL . \"/\" . $encodedIsCreate;\n $response = RestClient::post($baseURL, $params, null, null, $contentType, $accept, $body, $headerParams);\n $sessionResponseObj = new SessionResponseBuilder();\n $sessionObj = $sessionResponseObj->buildResponse($response->getResponse());\n } catch (App42Exception $e) {\n throw $e;\n } catch (Exception $e) {\n throw new App42Exception($e);\n }\n return $sessionObj;\n }\n }", "static public function createSession()\n {\n global $prefs, $session;\n\n $session->remove('ingo');\n if ($session->exists('ingo', 'script_generate')) {\n return;\n }\n\n /* getBackend() and loadIngoScript() will both throw Exceptions, so\n * do these first as errors are fatal. */\n foreach (self::getBackend() as $key => $val) {\n if ($val) {\n $session->set('ingo', 'backend/' . $key, $val);\n }\n }\n\n $ingo_script = self::loadIngoScript();\n $session->set('ingo', 'script_generate', $ingo_script->generateAvailable());\n\n /* Disable categories as specified in preferences */\n $categories = array_flip(\n array_merge($ingo_script->availableActions(),\n $ingo_script->availableCategories()));\n if ($prefs->isLocked('blacklist')) {\n unset($categories[Ingo_Storage::ACTION_BLACKLIST]);\n }\n if ($prefs->isLocked('whitelist')) {\n unset($categories[Ingo_Storage::ACTION_WHITELIST]);\n }\n if ($prefs->isLocked('vacation')) {\n unset($categories[Ingo_Storage::ACTION_VACATION]);\n }\n if ($prefs->isLocked('forward')) {\n unset($categories[Ingo_Storage::ACTION_FORWARD]);\n }\n if ($prefs->isLocked('spam')) {\n unset($categories[Ingo_Storage::ACTION_SPAM]);\n }\n $categories = array_flip($categories);\n\n /* Set the list of categories this driver supports. */\n $session->set('ingo', 'script_categories', $categories);\n }", "public static function getInstance()\r\n {\r\n static $instance;\r\n if (!is_object($instance)) $instance = new Session();\r\n return $instance;\r\n }", "abstract protected function auth();", "public function login (){\n\n $dao = DAOFactory::getUsuarioDAO(); \n $GoogleID = $_POST['GoogleID']; \n $GoogleName = $_POST['GoogleName']; \n $GoogleImageURL = $_POST['GoogleImageURL']; \n $GoogleEmail = $_POST['GoogleEmail'];\n $usuario = $dao->queryByGoogle($GoogleID); \n if ($usuario == null){\n $usuario = new Usuario();\n $usuario->google = $GoogleID;\n $usuario->nombre = $GoogleName;\n $usuario->avatar = $GoogleImageURL;\n $usuario->correo = $GoogleEmail;\n print $dao->insert($usuario);\n $_SESSION[USUARIO] = serialize($usuario);\n //$usuario = unserialize($_SESSION[USUARIO]);\n } else {\n $_SESSION[USUARIO] = serialize($usuario);\n }\n }", "public function createSession()\n {\n session_start();\n }", "function login()\n\t{\n\t\t$GLOBALS['appshore']->session->createSession();\n\n\t\t$GLOBALS['appshore_data']['layout'] = 'auth';\n\t\t\n\t\t// define next action\n\t\t$result['action']['auth'] = 'login';\n\n\t\t// if a query_string was passed without being auth we keep it to deliver it later\n\t\tif( strpos( $_SERVER[\"QUERY_STRING\"], 'op=') !== false )\n\t\t\t$result['nextop'] = base64_encode($_SERVER[\"QUERY_STRING\"]);\n\t\t\t\n\t\treturn $result;\n\t}", "function createSession($array,$clear=true){\n\twith_session(function(&$sesion)use($array,$clear){\n\t\tunset($array['password'],$array['password_user'],$array['password_system']);\n\t\tif($clear) $usr=$array;\n\t\telse{\n\t\t\t$usr=$sesion['ws-tags']['ws-user'];\n\t\t\tforeach ($array as $key=>$value){\n\t\t\t\t$usr[$key]=$value;\n\t\t\t}\n\t\t}\n\t\t$usr['fullversion']=$sesion['ws-tags']['ws-user']['fullversion'];\n\t\t$usr['showPhotoGallery']=false;\n\t\tif($usr['profile_image_url'] && $usr['photo'] =='') $usr['photo']=$usr['profile_image_url'];\n\t\tif($usr['time']==''){//si esta vacio se captura el tiempo, para control de cache en el cliente\n\t\t\t$usr['time']=time();\n\t\t}\n\t\tif($usr['id']){\n\t\t\t$usr['smt']=$usr['time'].','.md5($usr['id'].md5($usr['time']));\n\t\t\t$usr['full_name']=$usr['name'].' '.$usr['last_name'];\n\t\t\t$usr['code']=md5($usr['id'].'_'.$usr['email'].'_'.$usr['id']);\n\t\t\tif(empty($usr['photo']))\n\t\t\t\t$usr['pic']='img/users/default.png';\n\t\t\telse\n\t\t\t\t$usr['pic']='img/users/'.$usr['code'].'/'.$usr['photo'];\n\t\t}\n\t\t$sesion['ws-tags']['ws-user']=$usr;\n\t\t//this variable indicates that photo gallery must be shown on page load\n\t\tif($_POST['lng']!=''){\n\t\t\t$sesion['ws-tags']['language']=$_POST['lng'];\n\t\t}elseif($usr['language']!=''){\n\t\t\t$sesion['ws-tags']['language']=$usr['language'];\n\t\t}elseif($_POST['lang']!=''){\n\t\t\t$sesion['ws-tags']['language']=$_POST['lang'];\n\t\t}\n\t});\n\tcreateSessionStore();\n\tifIsLogged();\n}", "protected function session()\n\t{\n\t\tif(!$this->_session)\n\t\t\t$this->_session = new Session ($this);\n\t\treturn $this->_session;\n\t}", "public static function getInstance(){\n\n if ( !isset(self::$instance)) {\n self::$instance = new self;\n }\n \n self::$instance->startSession();\n \n return self::$instance;\n }", "public function auth()\n {\n return $this->la->auth();\n }", "private static function getSession()\n {\n static $session;\n\n if (! $session) {\n $session = new \\Zend_Session_Namespace('mutil.' . __CLASS__ . '.session');\n }\n\n return $session;\n }", "public function auth()\n {\n return $this;\n }", "public static function instance($config = array())\n\t{\n\t\tstatic $instance;\n\n\t\t// Load the Auth instance\n\t\tempty($instance) and $instance = new Simple_Auth($config);\n\n\t\treturn $instance;\n\t}", "public function getAuth();", "public function getAuth();", "public function __construct()\n {\t\n @include(SHIN_Core::isConfigExists('auth.php'));\n\t\t\n $this->_config_mapper($auth);\n\t\t\n\t\tif($auth['keeping_logic'] == 'db')\n\t\t{\n\t\t\t// db style\n\t\t\tSHIN_Core::loadModel(array('sys_session_model', 'session_model'));\n\t\t\t$this->sessionModel = SHIN_Core::$_models['session_model']->get_instance();\n\t\t\t$this->sessionModel->init($this->sh_Options['sess_expiration']/60, $this->sh_Options['sess_time_to_update']/60);\n\t\t}\n\t\t\n\t\tConsole::logSpeed('SHIN_Auth begin work, Time taken to get to line: '.__FILE__.'::'.__LINE__);\n\t\tConsole::logMemory($this, 'SHIN_Auth. Size of class: ');\t\t \n }", "public function __construct() {\r\n\t\tif(!$this->isLoggedIn()) {\r\n\t\t\theader('location: ' . URL . 'authentication/index');\r\n\t\t\texit();\r\n\t\t}\r\n\t\t\r\n\t $this->loadModel($this->modelToLoad);\r\n\t $this->model->setAuth($_SESSION['ID'], $_SESSION['PASSWORD']);\r\n\t\t\r\n\t\tparent::__construct();\r\n\t}", "function DOPHP_OpenSession()\n{\n\n if (!@session_start()) return array(FALSE);\n if (!isset($_SESSION['handle'])) return array(FALSE);\n\n $vars = array();\n $vars[] = $_SESSION['handle'];\n $vars[] = $_SESSION['pass'];\n $vars[] = $_SESSION['name'];\n $vars[] = $_SESSION['email'];\n return array(TRUE, $vars);\n}", "public function create($params) {\n\t\treturn $this->academic_session->forceCreate($this->formatParams($params));\n\t}", "public function instantiate() {\n\n // Checking if a user session already exists.\n if ($this->session->userData('loggedIn') === true) {\n\n // Set the identity\n $this->setIdentity($this->session->userData('id'));\n\n // Set isGuest to false.\n $this->isGuest = false;\n }\n }", "public static function init () {\n // Check if instance was not set\n if (!isset(self::$instance)) {\n // Instantiate new session object and assign it to the instance\n self::$instance = new Session;\n }\n // Return the instance\n return self::$instance;\n }", "public static function auth()\n {\n return (new Authenticator(request()));\n }", "public static function fromSession(Session $session): self\n {\n return new self($session);\n }", "public function authentication()\n {\n $response = new RESTAPI_CLASS_Response();\n $headers = self::getRequestHeaders();\n if (!isset($headers['Authorization'])) {\n return $response->error(401, \"Token is not exist.\");\n }\n\n $auth = explode(' ', $headers['Authorization']);\n if ($model = RESTAPI_BOL_Service::getInstance()->checkToken($auth[1])) {\n $this->token = $auth[1];\n return $model;\n } else {\n return $response->error(401, \"Your access denied.\");\n }\n }", "public function login( )\n\t\t{\n\t\t\treturn $this->get_session();\n\t\t}", "public function getAuth($params)\n\t{\n\t\treturn $this->auth->where($params)->first();\n\t}", "private function get_auth() {\n\n\t\t$options = array ('trace' => true, 'style' => SOAP_RPC, 'use' => SOAP_ENCODED);\n\n\t\t$params = array();\n\t\t$params [\"credential\"][\"Type\"] = $this->type;\n\t\t$params [\"credential\"][\"Username\"] = $this->username;\n\t\t$encodedPassword = md5(mb_convert_encoding($this->password, 'utf-16le', 'utf-8'));\n\t\t$params [\"credential\"][\"Password\"] = $this->password;\n\t\t$params [\"credential\"][\"ApplicationId\"] = $this->api_key;\n\n\t\t$params [\"credential\"][\"IdentityId\"] = $this->identity;\n\n\t\t//$authentication = new SoapClient ( \"https://webservices.24sevenoffice.com/authenticate/authenticate.asmx?wsdl\", $options );\n\t\t$authentication = new SoapClient ( \"https://api.24sevenoffice.com/authenticate/v001/authenticate.asmx?wsdl\", $options );\n\n\t\t$login = true;\n\n\t\tif (!empty($_SESSION['ASP.NET_SessionId']))\n\t\t{\n\t\t \n\t\t $authentication->__setCookie(\"ASP.NET_SessionId\", $_SESSION['ASP.NET_SessionId']);\n\t\t try\n\t\t {\n\t\t $login = !($authentication->HasSession()->HasSessionResult);\n\t\t }\n\t\t catch ( SoapFault $fault ) \n\t\t {\n\t\t $login = true;\n\t\t }\n\n\t\t}\n\n\t\tif( $login )\n\t\t{\n\t\t\t\n\t\t $result = ($temp = $authentication->Login($params));\n\t\t // set the session id for next time we call this page\n\t\t $_SESSION['ASP.NET_SessionId'] = $result->LoginResult;\n\t\t // each seperate webservice need the cookie set\n\t\t $authentication->__setCookie(\"ASP.NET_SessionId\", $_SESSION['ASP.NET_SessionId']);\n\t\t // throw an error if the login is unsuccessful\n\n\t\t\t/*echo \"<pre>\";\n\t\t\tprint_r( $authentication );\n\t\t\techo \"</pre>\";*/\n\t\t\t\n\t\t if($authentication->HasSession()->HasSessionResult == false)\n\t\t throw new SoapFault(\"0\", \"Invalid credential information.\");\n\t\t}\n\n\t}", "public static function generate(){\n\t\treturn Session::put(Config::get('session/token_name'), md5(uniqid()));\t\t// Now we build the session class to utilis this method.\n\t}", "public function __construct()\n {\n $this->session = Kazinduzi::session();\n }", "public function getAuth() {\n if (!isset($this->authHelper)) {\n $this->authHelper = new AuthHelper($this->app);\n $this->authHelper->sessionPrefix = 'setup_auth_';\n $this->authHelper->cookiePrefix = 'setup_auth_';\n if (isset($this->lock['cpassword'])) {\n $this->lock['password'] = $this->authHelper->passwordHasher->hash($this->lock['cpassword']);\n unset($this->lock['cpassword']);\n if (!$this->lock->save()) {\n trigger_error(tr('Could not save lock file: %1', $this->p('user/lock.php')), E_USER_ERROR);\n }\n }\n $this->authHelper->userModel = new MaintenanceUserModel($this->lock);\n $this->authHelper->authentication = 'Form';\n }\n return $this->authHelper;\n }", "function session_create()\n\t{\n\t\t$this->data = array();\n\t\treturn true;\n\t}", "public function getAuthManager();", "public function __construct()\r\n {\r\n Session::checkSession();\r\n $message = array();\r\n parent::__construct();\r\n }", "public function login()\n {\n return ['Form' => $this->Form()];\n }", "public static function getInstance()\n {\n\n if (self::$_instance == null) {\n self::$_instance = new Session();\n }\n\n return self::$_instance;\n }", "function get_session()\n{\n static $session;\n if (!$session) {\n $session = new session_class();\n }\n return $session;\n}", "public function __construct()\n {\n // Construct session place\n if(!array_key_exists(self::SESSION_KEY, $_SESSION)) {\n $_SESSION[self::SESSION_KEY] = array();\n }\n }", "public static function getInstance(array $cfg = array()) {\r\n\t\tself::initCfg();\r\n\t\treturn factory::get('session_'.self::$cfg->use, $cfg);\r\n\t}", "public function autenticar($usr,$pwd) {\n $pwd=\"'\".$pwd.\"'\";\n $sql= 'SELECT * FROM empleados WHERE (\"idEmpleado\" = '.$usr.') AND (dni = '.$pwd.');';\n $empleado=\"\";\n $result = pg_query($sql);\n\n if ($result){\n $registro = pg_fetch_object($result);\n $empleado = $registro->nombres . \" \" . $registro->apellido;\n session_start(); //una vez que se que la persona que se quiere loguear es alguien autorizado inicio la sesion\n //cargo en la variable de sesion los datos de la persona que se loguea\n $_SESSION[\"idEmpleado\"]=$registro->idEmpleado;\n $_SESSION[\"dni\"]=$registro->dni;\n $_SESSION[\"fechaInicio\"]=$registro->fechaInicio;\n $_SESSION[\"nombres\"]=$registro->nombres;\n $_SESSION[\"apellido\"]=$registro->apellido;\n $_SESSION[\"i_lav\"]=$registro->i_lav;\n $_SESSION[\"f_lav\"]=$registro->f_lav;\n $_SESSION[\"i_s\"]=$registro->i_s;\n $_SESSION[\"f_s\"]=$registro->f_s;\n $_SESSION[\"i_d\"]=$registro->i_d;\n $_SESSION[\"f_d\"]=$registro->f_d;\n //$_SESSION[\"iex_lav\"]=$registro->iex_lav;\n //$_SESSION[\"fex_lav\"]=$registro->fex_lav;\n }\n return $empleado;\n }", "function sessionManager($id, $email, $pwd, $accessLevel, $userType){\n\t\t\t$sessionData = array('userID'=>$id,'email'=>$email, 'password'=>$pwd,'accessLevel'=>$accessLevel,'userType'=>$userType,'logged_in' => TRUE);\n\t\t\t$this->session->set_userdata($sessionData);\n\t\t}", "public function __construct()\n {\n $Auth = new auth(true);\n $this->userData = $Auth->CheckToken();\n // var_dump($Auth);\n }", "public function __construct()\n {\n // auth here\n }" ]
[ "0.62225264", "0.60264546", "0.5920102", "0.5856709", "0.5848983", "0.5824285", "0.5777055", "0.5714125", "0.56747884", "0.5668715", "0.56096697", "0.55935544", "0.55799484", "0.55781305", "0.5537685", "0.54991573", "0.5482576", "0.54744196", "0.5450374", "0.54438305", "0.54433745", "0.5429537", "0.5413858", "0.5409058", "0.5392993", "0.53666204", "0.5362979", "0.5357972", "0.5356408", "0.53497094", "0.53072846", "0.5303328", "0.529571", "0.52946764", "0.52938515", "0.5285602", "0.5264915", "0.524338", "0.522437", "0.5220376", "0.5216069", "0.52138853", "0.52132", "0.51575387", "0.51417077", "0.5123278", "0.5115597", "0.5088098", "0.50709224", "0.50635606", "0.5061716", "0.5055053", "0.5050508", "0.50421876", "0.50307983", "0.50276726", "0.5026732", "0.5026605", "0.5020005", "0.5012507", "0.5012133", "0.49976158", "0.49954838", "0.49882302", "0.4985652", "0.49821717", "0.49817005", "0.49809903", "0.49703595", "0.49574432", "0.49541992", "0.49410465", "0.49410465", "0.4933432", "0.49310637", "0.49288392", "0.49200672", "0.4917777", "0.49174875", "0.4916532", "0.49083504", "0.4896443", "0.48960957", "0.48957554", "0.4886325", "0.4884419", "0.48828", "0.48772845", "0.48759007", "0.4871236", "0.48617655", "0.48595282", "0.48589715", "0.4854347", "0.48525342", "0.48518294", "0.48489365", "0.48478714", "0.48468062", "0.48466054" ]
0.6871365
0
This function redirect the user to the page indicated by the variable file.
static function redirect($file) { header("location: $file"); exit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Redirect($file)\n{\n\techo '<script>';\n\techo 'location.href=\"'.$file.'\"';\n\techo '</script>';\n\texit();\n}", "function redirect($file) {\n $host = $_SERVER['HTTP_HOST'];\n $path = rtrim(dirname($_SERVER[\"PHP_SELF\"]), \"/\\\\\");\n header(\"Location: http://$host$path/$file\");\n exit;\n }", "function redirect ($page) {\n header (\"Location:\" . site_url ($page));\n }", "function redirect($scriptFile)\n\t{\n\t\techo \"<script language=\\\"javascript\\\">window.location.href='\" . $scriptFile . \"'</script>\";\n\t}", "public function redirect($page) {\n header('Location: ./' . $page);\n exit();\n }", "public static function set($target_file)\r\n\r\n {\r\n header('Location: index.php?page=display&filename=' .$target_file );\r\n \r\n }", "function redirectTo($page) {\n\t$host = $_SERVER['HTTP_HOST'];\n $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\\\');\n header(\"Location: http://$host$uri/$page\");\n ob_end_flush();\n exit;\n}", "public static function go(string $filename)\n\t{\n\t\theader(\"Location: \" . $filename);\n\t\texit;\n\t}", "function redirect($page) {\r\n header('location: ' . URL_ROOT, '/' . $page);\r\n}", "function forwardToPage($page) {\n\t\techo \"<script language=\\\"javascript\\\" type=\\\"text/javascript\\\">\n\t\t\tdocument.location.href = \\\"\".$page.\"\\\"</script>\";\n\t}", "function redirect($page)\n\t{\n\t\t$currentPage = basename($_SERVER['PHP_SELF']);\n\t\t// prevent redirecting away from graphs.php when $.post is accessing\n\t\tif ($currentPage == 'graphs.php' || $currentPage == 'verify.php')\n\t\t{\n\t\t\tif ($_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest')\n\t\t\t{\n\t\t\t\theader('Location: /fp2.0/');\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t\telse if ($currentPage != $page)\n\t\t{\n\t\t\tif ($page == 'index.php')\n\t\t\t\t$page = ''; // make sure index.php is not included so that the url is shorter\n\t\t\t\n\t\t\tif (!isLoggedIn())\n\t\t\t{\n\t\t\t\theader(\"Location: login.php\");\n\t\t\t\texit;\n\t\t\t}\n\t\t\telse if ($currentPage != 'monthlyReport.php' && $currentPage != 'settings.php')\n\t\t\t{\n\t\t\t\theader(\"Location: /fp2.0/\" . $page);\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t}", "function redirect_to_page($path = null) {\n header(\"location:\" . SITE_ADDR . $path);\n}", "function load( $page = 'limbo_login.php' ) {\n\n $url = 'http://' . $_SERVER[ 'HTTP_HOST' ] . dirname( $_SERVER[ 'PHP_SELF' ] ) ;\n \n $url = rtrim( $url, '/\\\\' ) ;\n \n $url .= '/' . $page ;\n\n header( \"Location: $url\" ) ;\n\n exit() ;\n\n}", "function RedirectPage($page_name) {\n\t\theader( sprintf('Location: %s', $page_name));\n\t\tdie(\"You don't belong here.\");\n\t}", "function redirect($page) {\n header(\"Location: \" . $_SERVER['REQUEST_SCHEME'] . \"://\" . $this->getDomain() . $page);\n die();\n }", "function redirectSomewhere($value) {\n\t\t$this->controller->redirect($value);\n\t}", "function redirectSomewhere($value) {\r\n\t\t$this->controller->redirect($value);\r\n\t}", "abstract protected function redirect();", "function redirect_user ($page) {\n \n // Start defining the URL...\n // URL is http:// plus the host name plus the current directory:\n $url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);\n \n // Remove any trailing slashes:\n $url = rtrim($url, '/\\\\');\n \n // Add the page:\n $url .= '/' . $page;\n \n // Redirect the user:\n header(\"Location: $url\");\n exit(); // Quit the script.\n}", "function loadFile($file) {\n if(file_exists($file)) {\n require_once($file);\n } else {\n redirect('Location:./?p=404', 'Error. Page does not exist.');\n }\n}", "function RedirectTo($newlocation){\n\t\theader('location:' . $newlocation);\n\t\texit();\n\t}", "function redirect($page)\n{\n\theader('Location: ' . $page);\n\tdie();\n}", "private function redirect(){\n\t\tredirect('browse/office_industrial');//default re-route\n\t}", "public static function redir($page){\n\t\theader(\"Location: $page\"); \n\t}", "function redirect_to( $path ) {\n\theader( 'Location: ' . SITE_URL . '/' . $path );\n\tdie();\n}", "public function redirect() {\n\n\t\t// @todo. How to handle https?\n\t\t$domain = 'http://'.$_SERVER['HTTP_HOST'];\n\t\t$data = $this->EE->shortee->get_url($domain,$this->EE->input->get('url',true));\n\n\t\tif(!$data) {\n\t\t\t$loc = $this->EE->config->item('site_url');\n\t\t} else {\n\t\t\t$loc = $data['url'];\n\t\t\t$this->EE->shortee->log_view($data['id'],$_SERVER['REMOTE_ADDR']);\n\t\t}\n\n\t\theader(\"Location: \".$loc, true, 302);\n\t\texit;\n\t}", "function redirect($page){\n\t\t$domen = strstr($_SERVER['REQUEST_URI'],\"index\", TRUE);\n\t\t$s = ((!empty($_SERVER['HTTPS'])) ? \"s\" : \"\");\n\t\theader(\"Location: http\".$s.\"://\".$_SERVER['SERVER_NAME'].$domen.$page);//\"index.php?page=login\" );\n\t}", "static function Redirect($filepath, $direct = false)\n\t\t{\n\t\t\t$url = \"\";\n\t\t\tif(!$direct)\n\t\t\t{\n\t\t\t$host = $_SERVER['HTTP_HOST'] ;\n\t\t\t$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\\\') ;\n\t\t\t\n\t\t\t$url = \"http://\".$host.$uri.\"/\".$filepath;\n\t\t\t//header($url) ;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t$url = $filepath;\n\t\t\t}\n\t\t\t\n\t\t\tif(!headers_sent()) \n\t\t\t{\n\t\t header('Location: '.$url);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t\tprintf(\"<script>window.location.replace('%s');</script>\", $url);\n\t\t }\n\t\t}", "function redirect_to($page)\n{\n header(\"Location: $page\");\n die();\n}", "function redirect(string $path) {\n header(\"Location: ${path}\");\n exit;\n }", "function JumpToPage($pagefile, $args = null)\n{\n global $config;\n $path = $config[\"BaseUrl\"] . $pagefile;\n if(isset($args))\n {\n $first = true;\n foreach($args as $key => $value)\n {\n if($first) { $path = $path . '?'; $first = false; }\n else {$path = $path. '&'; }\n $path = $path . $key . \"=\" . $value;\n }\n }\n \n header(\"Location: \" . $path);\n exit;\n}", "function redirect_to($url = 'index.php')\n\t{\n\t\t$redirect = 'location: ' . $url;\n\t\theader($redirect);\n\t\t\n\t\tdie(); /*halt the execution*/\n\t}", "function redirect_to($new_location) \n {\n header(\"Location: \" . $new_location);\n exit; \n }", "function redirect_to($new_location) {\n\t\theader(\"Location: \" . $new_location);\n\t\texit;\n\t}", "function load( $page = 'admin.php'){\n $url = 'http://' . $_SERVER[ 'HTTP_HOST' ] . dirname( $_SERVER[ 'PHP_SELF' ] ) ;\n\n $url = rtrim( $url, '/\\\\' ) ;\n $url .= '/' . $page ;\n \n # Execute redirect then quit.\n session_start();\n\n header( \"Location: $url\" ) ;\n\n exit() ;\n}", "function redirect_to($new_location) {\r\n\t\theader(\"Location: \" . $new_location);\r\n\t\texit;\r\n\t}", "function redirect(string $path)\n {\n header(\"Location: ${path}\");\n exit;\n }", "function redirect(string $path)\n {\n header(\"Location: ${path}\");\n exit;\n }", "public function redirecturl()\n\t\t\t{\n\t\t\t\tif($this->fields_arr['pcakey'])\n\t\t\t\t Redirect2URL($_SESSION['pcakey'][$this->fields_arr['pcakey']]);\n\t\t\t}", "abstract protected function redirectTo();", "function redirect ($url){\n\t header(\"Location: $url\");\n\t\texit;\n\t}", "function redirect_to($page = NULL) {\n if (page != NULL) {\n header(\"location:$page\");\n exit;\n }\n}", "function redirect($pagePath){\n\theader(\"Location: \" . $pagePath);\n\techo '<META HTTP-EQUIV=\"Refresh\" Content=\"0; URL='.$pagePath.'\">';\n\techo \"<script type='text/javascript'>window.location = '\".$pagePath.\"'</script>\";\n}", "function redirect($page){\n header('Location: ' . $page);\n die;\n}", "function redirect_to_action($action_name) {\n $page = Router::$page_name;\n header(\"location:\" . SITE_ADDR . $page . \"/\" . $action_name);\n}", "function client_redirect($url){\n\t\techo \"<script language=\\\"\\\">\";\n\t\techo \"window.location.href = \\\"\".$url.\"\\\"\";\n\t\techo \"</script>\";\n\t}", "function redirect_user($page)\n{\n $url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);\n $url = rtrim($url, '/\\\\');\n $url .= '/' . $page;\n // Redirect the user:\n header(\"Location: $url\");\n exit(); // Quit the script.\n}", "protected function redirect()\n\t{\n\t\theader('Location: /ru/marafon/');\n\t\texit;\n\t}", "function redirect_to($new_location) {\nheader(\"Location: \" . $new_location);\nexit;\n\t}", "function redirect($path)\n{\n header(\"Location:{$path}\");\n}", "function redirect($page, $params = NULL){\n\t$url = \"Location:index.php?page=\".$page;\n\tif($params){\n\t\t$url .= $params;\n\t}\n\theader($url);\n}", "function redirect($url) {\n\t\theader('Location: '.$url);\n\t\texit();\n\t}", "public function redirect();", "public function redirect();", "public function redirect();", "static function goToURL($url) {\n header('Location: ' . $url);\n }", "function url_redirect($to)\n{\n\theader(\"Location: $to\");\n}", "public function redirect($url){\r\n header(\"location:$url\");\r\n }", "protected function redirect($view) \n {\n $view = strtolower($view);\n\n header('Location: /' . $view );\n exit;\n }", "function load($page = 'admin_login.php')\n{\n # create a url\n $url = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);\n\n # tidy in case of trailing slashes, then add page\n $url = rtrim($url,'/\\\\');\n $url .= '/'.$page;\n\n # relocate and exit\n header(\"Location: $url\") ; \n exit() ;\n}", "function Redirect($module, $section = NULL, $category = NULL, $post = NULL, $comment = NULL, $page = NULL) {\n $url = CreateUrl($module, $section, $category, $post, $comment, $page);\n header('Location: '.$url);\n die();\n}", "public static function redirectTo($url) {\n header(\"Location: $url\");\n exit;\n }", "public function gotoSource(){\n if(!empty($this->website)){\n header(\"Location: \". $this->website);\n }\n else{\n header(\"Location: \". $this->getUri());\n }\n die();\n }", "function Redirect($url, $getvars = NULL)\r\n{\r\n\tsession_write_close();\r\n\t$redir = GetVar(\"cr\", $url);\r\n\tif (is_array($getvars)) $redir = MakeURI($url, $getvars);\r\n\theader(\"Location: $redir\");\r\n\tdie();\r\n}", "public function redirect($pageId)\n {\n header(\"Location:$pageId\");\n\t}", "function redirect($path)\n{\n header(\"Location: /{$path}\");\n}", "function redirect($path)\n{\n header(\"Location: /{$path}\");\n}", "function redirect($path)\n{\n header(\"Location: /{$path}\");\n}", "function redirect($url) {\n $url = get_path($url);\n header(\"location: $url\");\n exit();\n}", "function redirect($url) {\n header(\"location:$path\");\n}", "function redirect($path) {\n header(\"Location: \" . URL_ROOT . $path);\n}", "function redirect($path)\n\n{\n header(\"Location: /{$path}\");\n\n}", "function redirect($location){\n\theader(\"Location:{$location}\");\n}", "public static function redirect($url){\n\t if(is_file($url) OR is_dir($url)){\n\t header('Location: '.$url);\n\t exit(); \n\t }\n\t}", "function redirect()\n {\n global $wgOut;\n $wgOut->redirect( $this->getRedirectLink(), 302);\n }", "function redirect($url){\n\t\techo \"<script>\"\n\t\t.\"window.location.href='\".$url.\"'\"\n\t\t.\"</script>\";\n\t}", "public static function rendirect($url){\n\t \n\t\t header(\"Location: {$url}\");\n exit;\n\t}", "public function redirect($page = '')\n {\n // If not running under apache (ie test case), dont attempt to redirect\n if ( isset($_SERVER['HTTP_HOST']) )\n {\n $site_url = empty($this->config['site_url']) ? '//'.$_SERVER['HTTP_HOST'] : $this->config['site_url'];\n\n //header('Location: ' . $site_url . $page);\n header('Location: ' . $page);\n }\n }", "function page_redirect($location){\n\n\theader(\"Location: \" . $location);\n\texit();\n\n}", "function redirect() {\n if (!$this->programmed && !$this->request['rebuild'] && $this->destination) {\n if (drupal_installation_attempted()) {\n install_goto($this->destination['path']);\n }\n else {\n drupal_goto($this->destination['path'], $this->destination['options'], $this->destination['http_response_code']);\n }\n }\n }", "function redirect_to($location) {\n\t\theader(\"Location: \" . $location);\n\t\texit;\n\t}", "public static function redirect($url) {\n\t\t\techo \"<a href=\\\"./\".$url.\"\\\">Click here to continue.</a>\";\n\t\t\techo \"<script type=\\\"text/javascript\\\">\n\t\t\t<!--\n\t\t\twindow.location = \\\"./\".$url.\"\\\"\n\t\t\t//-->\n\t\t\t</script>\";\n\t\t}", "function redirect_to($new_location) {\n header(\"Location: \" . $new_location);\n exit;\n}", "function redirect_to($new_location) {\n\theader(\"Location: \" . $new_location);\nexit;\n}", "function redirect($location)\n{\n\theader(\"location:$location\");\n}", "public function redirect_to($string){\n\n\t\theader('Location:' .$string);\n\t}", "public function redirectAction()\n {\n $params = array('key' => $_GET['url']);\n $records = $this->getCollection(self::MONGO_COLLECTION)->find($params);\n\n if ($records->hasNext()) {\n $record = $records->getNext();\n $this->set('redirectTo', $record['target']);\n header('Location: ' . $record['target']);\n } else {\n $this->set('redirectTo', 'http://' . $_SERVER['SERVER_NAME']);\n header('Location: ' . 'http://' . $_SERVER['SERVER_NAME']);\n }\n }", "function external_redirect($url){\n header('Location:' . $url);\n //Detiene el flujo\n exit;\n }", "function redirect($pagina){\n header(\"location: $pagina\");\n exit();\n}", "protected function redirectToCurrentPage() {}", "public function redirect($url){\n header(\"Location: $url\");\n }", "static function redirect($url){\n header( 'Location: '.$url ) ;\n\n }", "public function redirectTo($link, $options=array())\n {\n $redirectTo = $link;\n header(\"Location: $redirectTo\");\n die();\n }", "function redirect() {\n\t\theader('Location:index.php');\n\t}", "function direct($url){\r\n echo \"<script> window.location = '$url'; </script>\";\r\n }", "function redirect_to( $location=NULL ){\n\t\tif($location != NULL){\n\t\t\theader(\"Location: {$location}\");\n\t\t\texit;\n\t\t}\n\t}", "function goToPage($page) {\n\t\t$this->link->setPage($page);\n\t\tResponse::sendRedirect($this->link->toString());\n\t}", "public function redirect_to($route){\n header('location: '.$route);\n exit();\n }", "function redirect($url=null)\n\t{\n\t\tif (is_null($url))\n\t\t\t$url = $_SERVER['PHP_SELF'];\n\t\theader(\"Location: $url\");\n\t\texit();\n\t}", "function redirect_to($to, $die = true) {\n \t$to = undo_htmlspecialchars($to);\n header('Location: ' . $to);\n if($die) {\n die();\n } // if\n }" ]
[ "0.69143265", "0.6794202", "0.6668645", "0.6615202", "0.6575547", "0.6524543", "0.64391494", "0.634676", "0.62784934", "0.62628347", "0.6244644", "0.6232029", "0.62046224", "0.617032", "0.6133014", "0.61052847", "0.610047", "0.6097736", "0.6088323", "0.6081365", "0.60718685", "0.6069019", "0.6066393", "0.60647714", "0.60376966", "0.6033468", "0.60288304", "0.6018808", "0.6015864", "0.6015607", "0.6013821", "0.60090023", "0.5981062", "0.5967018", "0.596153", "0.59580857", "0.59558415", "0.59558415", "0.59363896", "0.59254366", "0.59202003", "0.59200776", "0.59049314", "0.5895423", "0.58943194", "0.5889583", "0.5882263", "0.5879348", "0.58740556", "0.58702844", "0.5859076", "0.5847229", "0.5845941", "0.5845941", "0.5845941", "0.58345735", "0.58222264", "0.58195937", "0.58126026", "0.5811478", "0.58102834", "0.5802803", "0.58008534", "0.5794255", "0.5789273", "0.5781754", "0.5781754", "0.5781754", "0.5774687", "0.57702386", "0.576987", "0.5769567", "0.5769518", "0.57681066", "0.57632697", "0.57627445", "0.57611996", "0.5760877", "0.5759171", "0.57564163", "0.5755693", "0.57546896", "0.5754586", "0.5752942", "0.57517606", "0.57481796", "0.5747905", "0.5741726", "0.5733659", "0.572911", "0.5727472", "0.572027", "0.5713833", "0.57084674", "0.57061625", "0.57038045", "0.5687945", "0.5678698", "0.56785893", "0.5668074" ]
0.7128829
0
Returns the string with the given prefix removed, or the string itself if it doesn't start with the prefix.
function strip_prefix(string $string, string $prefix): string { if ('' === $prefix || !starts_with($string, $prefix)) { return $string; } /** @psalm-suppress MissingThrowsDocblock - $offset is within-bounds. */ return slice($string, length($prefix)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function strip_prefix(string $string, string $prefix, Encoding $encoding = Encoding::UTF_8): string\n{\n if ($prefix === $string) {\n return '';\n }\n\n if ('' === $prefix || '' === $string || !starts_with($string, $prefix, $encoding)) {\n return $string;\n }\n\n return slice($string, length($prefix, $encoding), null, $encoding);\n}", "public static function stripStart($str, $prefix) {\n\t\t$prefixLen = strlen($prefix);\n\t\tif (substr($str, 0, $prefixLen) === $prefix) {\n\t\t\treturn substr($str, $prefixLen);\n\t\t}\n\t\treturn $str;\n\t}", "protected final function stripPrefix ($string, $prefix) {\n\t\tif ($this->stringStartsWith($string, $prefix))\n\t\t{\n\t\t\treturn substr($string, strlen($prefix));\n\t\t}\n\t\treturn $string;\n\t}", "public static function removePrefix(string $str, string $prefix): string\n {\n $length = strlen($prefix);\n if (substr($str, 0, $length) === $prefix) { // if start from prefix\n return substr($str, $length);\n } else {\n return $str;\n }\n }", "public static function removePrefix($string, $prefix = null)\n {\n if (empty($prefix)) {\n $prefix = Yii::$app->controller->db->tablePrefix ?: null;\n }\n\n if (strpos($string, $prefix) === false) {\n return $string;\n }\n\n $position = strpos($string, $prefix) + strlen($prefix);\n\n return substr($string, $position);\n }", "protected function remove_prefix( $text, $prefix ) {\n\t\tif ( 0 === strpos( $text, $prefix ) ) {\n\t\t\t$text = substr( $text, strlen( $prefix ) );\n\t\t}\n\t\treturn $text;\n\t}", "private static function removePrefix(string $str, string $prefix): ?string\n {\n if (substr($str, 0, strlen($prefix)) == $prefix) {\n return substr($str, strlen($prefix));\n }\n\n return null;\n }", "function str_removeFromStart (string $str, string $needle) : string {\n\t$strLen = strlen($str);\n\t$needleLen = strlen($needle);\n\n\tif($strLen >= $needleLen and str_startsWith($str, $needle)){\n\t\treturn substr($str, $needleLen);\n\t}\n\treturn $str;\n}", "public static function stripPrefix(string $input): string\n {\n if (substr($input, 0, strlen(static::HEX_PREFIX)) == static::HEX_PREFIX) {\n $input = substr($input, strlen(static::HEX_PREFIX));\n }\n\n return $input;\n }", "public function unprefix($value);", "public function removeLeft($substring)\n {\n $stringy = static::create($this->str, $this->encoding);\n\n if ($stringy->startsWith($substring)) {\n $substringLength = UTF8::strlen($substring, $stringy->encoding);\n\n return $stringy->substr($substringLength);\n }\n\n return $stringy;\n }", "public static function removeStart(string $haystack, string $needle): string\n {\n return static::startsWith($haystack, $needle) ? substr($haystack, strlen($needle)) : $haystack;\n }", "public static function deletePrefix($prefix)\n {\n return self::pipeline(function ($pipe) use ($prefix) {\n $keys = self::keys($prefix);\n foreach ($keys as $key) {\n $pipe->del($key);\n }\n });\n }", "public function removePathPrefix($path)\n {\n return substr($path, strlen($this->getPathPrefix()));\n }", "function pkg_remove_prefix(&$pkg_name) {\n\tglobal $g;\n\n\tif (substr($pkg_name, 0, strlen(g_get('pkg_prefix'))) ==\n\t g_get('pkg_prefix')) {\n\t\t$pkg_name = substr($pkg_name, strlen(g_get('pkg_prefix')));\n\t}\n}", "public static function cleanPrefix($prefixString)\n {\n $prefixString = trim($prefixString);\n if (empty($prefixString)) {\n return null;\n }\n\n $result = preg_replace('/_*$/i', '', strtolower($prefixString)) . '_';\n\n if ($result == '_') {\n return null;\n }\n\n return $result;\n }", "private function getPathWithoutPrefix( $completePath, $prefix )\n {\n $prefixLength = strlen( $prefix );\n\n if ( strcmp( substr( $completePath, 0, $prefixLength ), $prefix ) == 0 )\n {\n $i = 0;\n // Check next character\n while ( $completePath[$i + $prefixLength] == \"/\" )\n {\n $i++;\n }\n\n $result = substr( $completePath, $prefixLength + $i );\n return $result;\n }\n else\n {\n // No match.\n return $completePath;\n }\n }", "private function removePrefix($path): string\n {\n $prefix = $this->application->pathPrefix();\n\n if (empty($prefix)) {\n return $path;\n }\n\n return str_replace($prefix, '', $path);\n }", "protected function stripPrefix(string $table): string {\n $len = strlen($this->px);\n if (strcasecmp(substr($table, 0, $len), $this->px) === 0) {\n $table = substr($table, $len);\n }\n return $table;\n }", "public static function remove_prefix_name(string $line, string $bo_sung = \"\")\n {\n $line = strtoupper($line);\n\n $line = str_replace(\"MSTR\" . $bo_sung, \"\", $line);\n $line = str_replace(\"MRS\" . $bo_sung, \"\", $line);\n $line = str_replace(\"MR\" . $bo_sung, \"\", $line);\n $line = str_replace(\"MS\" . $bo_sung, \"\", $line);\n $line = str_replace(\"MISS\" . $bo_sung, \"\", $line);\n return trim($line);\n }", "public function get_option_remove_prefix ( $option ) {\n\n if (strpos( $option, $this->settings_prefix . '_' ) === 0) {\n\n $option = substr($option, strlen($this->settings_prefix) + 1);\n }\n\n return $option;\n }", "public static function SetCutString($str, $prefix) {\n return substr($str, strlen($prefix), strlen($str));\n }", "public static function leftStrip($origin, $substring)\n {\n // Lang file common cases: reference string or comment\n if ($substring === ';' || $substring === '#') {\n return trim(mb_substr($origin, 1));\n }\n\n return trim(mb_substr($origin, mb_strlen($substring)));\n }", "public function clearByPrefix(string $prefix): bool;", "function ea_archive_title_remove_prefix( $title ) {\n\t$title_pieces = explode( ': ', $title );\n\tif( count( $title_pieces ) > 1 ) {\n\t\tunset( $title_pieces[0] );\n\t\t$title = join( ': ', $title_pieces );\n\t}\n\treturn $title;\n}", "public function forPrefix(): ?string\n {\n return null;\n }", "public static function getPrefix()\n\t\t{\n\t\t\treturn substr(self::get(), 0, 2);\n\t\t}", "private function removePrefixes($query) {\n $splittedQuery = explode(' ', $query);\n $words = array();\n for ($i = 0, $ii = count($splittedQuery); $i < $ii; $i++) {\n $words[] = $this->context->dictionary->stripPrefix($splittedQuery[$i]);\n }\n return join(' ', $words);\n }", "public function getPrefix()\n\t{\n\t\t\n\t\t$parsed = $this->getAsArray();\n\t\t\n\t\tif( ! empty($parsed) )\n\t\t{\n\t\t\tif( in_array($parsed[0], (array)$this->prefixes) )\n\t\t\t{\n\t\t\t\treturn $parsed[0];\n\t\t\t}\n\t\t}\n\t\t\n\t}", "function str_remove_first(string $needle, string $object)\n {\n return Str::removeFirst($needle, $object);\n }", "public function prefix($prefix = null)\n {\n if ($prefix === null) {\n return $this->_prefix;\n }\n\n if (is_string($prefix)) {\n $prefix = $prefix;\n }\n\n return $this->_prefix = $prefix;\n }", "public function getPrefix()\n {\n return $this->prefix ?? '';\n }", "public function getPrefix(): ?string\n {\n return $this->prefix ?? null;\n }", "public function testPrefixIfNotExistsWithoutIgnore()\n {\n $str = new Str($this->testString);\n $str2 = $str->prefix('the ', false, true);\n $this->assertTrue($str2->value === 'the ' . $this->testString);\n }", "public static function delete($prefix)\n {\n if (!is_string($prefix) or $prefix === null or $prefix === '') {\n throw new \\InvalidArgumentException(\n \"\\$prefix should be a string and cannot be null or empty\"\n );\n }\n\n $prefix = strtolower($prefix);\n self::namespaces(); // make sure, that self::$namespaces is initialized\n if (isset(self::$namespaces[$prefix])) {\n unset(self::$namespaces[$prefix]);\n }\n }", "public function prefix($prefix = null)\n {\n if ($prefix === null) {\n return $this->_prefix;\n }\n return $this->_prefix = $prefix;\n }", "public function getPrefix(): string\n {\n return (string) $this->prefix;\n }", "protected function getPrefix()\n {\n $prefix = '';\n return $prefix;\n }", "protected static function prefix(): string\n {\n return '';\n }", "function has_prefix($string, $prefix) {\n return substr($string, 0, strlen($prefix)) == $prefix;\n }", "public function remove($word)\n {\n return preg_replace('/-*(ku|mu|nya)$/', '', $word, 1);\n }", "public function getPrefix(): ? string\n {\n return $this->prefix;\n }", "public function getPrefix();", "public function getPrefix();", "public static function delete_by_prefix( $prefix = '' ) {\n\t\tif ( empty( $prefix ) ) {\n\t\t\treturn;\n\t\t}\n\t\t$base = static::get_upload_base();\n\n\t\tif ( is_dir( $base ) ) {\n\t\t\t$files = preg_grep( '~^' . $prefix . '.*\\.pdf$~', scandir( $base ) );\n\t\t\tforeach ( $files as $file_name ) {\n\t\t\t\tif ( file_exists( $base . $file_name ) ) {\n\t\t\t\t\t@unlink( $base . $file_name );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function testPrefixIfNotExists()\n {\n $str = new Str($this->testString);\n $str2 = $str->prefix('the ', true);\n $this->assertTrue($str2->value === 'the ' . $this->testString);\n }", "Public Function getPrefix() { Return $this->prefix; }", "public function testPrefixIfNotExistsWithIgnore()\n {\n $str = new Str($this->testString);\n $str2 = $str->prefix('the ', true, true);\n $this->assertFalse($str2->value === 'the ' . $this->testString);\n }", "public function stripUTF8BOMPrefix( $aString ) {\r\n $utf8BOM = chr( 239 ) . chr( 187 ) . chr( 191 ); // 0xEFBBBF\r\n $utf8BOMLen = 3;\r\n $workString = $aString; // Default\r\n $workStringLen = strlen( $workString );\r\n \r\n // check for boundary case(s)\r\n if ( $workStringLen < $utf8BOMLen ) {\r\n return $workString; // I.e., the default value as set up ^ (the specified string itself)\r\n }\r\n \r\n // determine whether the specified string has such a prefix\r\n $pos = strpos( $workString, $utf8BOM );\r\n \r\n // For Debug ONLY!!!\r\n //echo \"\\$pos = \" . ( ( $pos === false ) ? \"false\" : $pos ) . \"<br/><br/>\";\r\n \r\n // check whether the specified string indeed has such a prefix\r\n while ( ( $pos !== false ) && ( $pos == 0 ) ) {\r\n // strip it off\r\n if ( $workStringLen > $utf8BOMLen ) {\r\n $workString = substr( $workString, $utf8BOMLen );\r\n $workStringLen -= $utf8BOMLen;\r\n \r\n // For Debug ONLY!!!\r\n //echo \"\\$workString = \" . \"(\" . $workStringLen . \") \" . \"'\" . $workString . \"'\" . \"<br/><br/>\";\r\n \r\n } else {\r\n $workString = \"\";\r\n $workStringLen = 0;\r\n }\r\n \r\n // (re-)determine whether the specified string (still) has such a prefix\r\n $pos = strpos( $workString, $utf8BOM );\r\n }\r\n \r\n return $workString;\r\n }", "public function removePrefixFromPath()\n {\n $this->fileStructure->path = $this->getPathWithoutPrefix( $this->fileStructure->path, $this->prefix );\n $this->prefix = \"\";\n }", "public static function stringWithout($haystack, $needle)\n {\n if (!empty($haystack) && !empty($needle)) {\n if (strpos($haystack, $needle) !== false) {\n return str_replace($needle, '', $haystack);\n }\n }\n return $haystack;\n }", "public static function removeFirst($string = \"\", $sep = \".\", $notEmpty = false)\n {\n $subString = trim(strstr($string, $sep), $sep);\n if(empty($subString) && $notEmpty) return $string;\n\n return $subString;\n }", "function acf_remove_array_key_prefix($array, $prefix)\n{\n}", "static function start(string $s, string $prefix): string {\n if (self::startsWith($s, $prefix)) {\n return $s;\n }\n\n return $prefix.$s;\n }", "public function getPrefix() {}", "function trim_gml_prefix_if_exists($gml_id) {\n\t\t#Removes prefix 'GML_', 'gml_' or 'Gml_ if it exists'\n\t\t$mod_gml_id = $gml_id;\n\t\tif(substr($gml_id, 0, strlen('GML_')) == 'GML_') $mod_gml_id = substr($gml_id, strlen('GML_'));\n\t\tif(substr($gml_id, 0, strlen('gml_')) == 'gml_') $mod_gml_id = substr($gml_id, strlen('gml_'));\n\t\tif(substr($gml_id, 0, strlen('Gml_')) == 'Gml_') $mod_gml_id = substr($gml_id, strlen('Gml_'));\n\t\treturn $mod_gml_id;\n\t}", "public static function remove_left(\n string $str,\n string $substring,\n string $encoding = 'UTF-8'\n ): string {\n if (\n $substring\n &&\n \\strpos($str, $substring) === 0\n ) {\n if ($encoding === 'UTF-8') {\n return (string) \\mb_substr(\n $str,\n (int) \\mb_strlen($substring)\n );\n }\n\n $encoding = self::normalize_encoding($encoding, 'UTF-8');\n\n return (string) self::substr(\n $str,\n (int) self::strlen($substring, $encoding),\n null,\n $encoding\n );\n }\n\n return $str;\n }", "public function getPrefix()\n {\n return '';\n }", "function removeAllByPrefix ($s)\r\n\t{\r\n // not implemented for current cache\r\n return false;\r\n }", "public function getPrefix(): string\n {\n }", "abstract public function getPrefix(): string;", "public function getPrefix()\n\t{\n\t\treturn (strlen($this->prefix) > 0) ? $this->prefix.'_' : '';\n\t}", "function unprefix( $key, $strip_underscores = true ) {\n\n\treturn utils\\unprefix_meta_key( $key, '_wpmoly_', $strip_underscores );\n}", "function DelFirstSlash($str){\n $str = strval($str);\n if($str[0]==\"/\")\n return substr($str,1);\n else\n return $str;\n}", "public function assertStringStartsNotWith($prefix, $string, $message = null) {\n return $this->getScenario()->runStep(new \\Codeception\\Step\\Action('assertStringStartsNotWith', func_get_args()));\n }", "public function assertStringStartsNotWith($prefix, $string, $message = null) {\n return $this->getScenario()->runStep(new \\Codeception\\Step\\Action('assertStringStartsNotWith', func_get_args()));\n }", "public static function start(string $value, string $prefix): string\n {\n $quoted = preg_quote($prefix, '/');\n\n return $prefix . preg_replace('/^(?:' . $quoted . ')+/u', '', $value);\n }", "public function getPrefix(): string\n {\n return $this->prefix;\n }", "public function getPrefix() {\n return $this->sPrefix;\n }", "function removeIdPrefix($idArr, $prefix)\n\t{\n\t\t$newArr\t= array();\n\t\t$newEl\t= '';\n\t\t$pefLen = strlen($prefix);\n\t\t\n\t\tif(count($idArr) > 0)\n\t\t{\n\t\t\tforeach($idArr as $p)\n\t\t\t{\n\t\t\t\t$newEl\t = substr($p, $pefLen);\n\t\t\t\t$newArr[] = $newEl;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//return the array\n\t\treturn $newArr;\n\t}", "public function Clear ( $prefix, $sticky=false )\r\n\t{\r\n\t\t$this->_ns = $this->_cache->increment ( self::CACHE_PREFIX . '_NAMESPACE' );\r\n\t\t\r\n\t\tif ( $sticky )\r\n\t\t\t$this->_nss = $this->_cache->increment ( self::CACHE_PREFIX . '_NAMESPACE_STICKY' );\r\n\t\t\r\n\t\treturn $this->_ns;\r\n\t}", "public static function removeSuffix(string $value, string $suffix): string\n {\n return self::hasSuffix($value, $suffix) ? substr($value, 0, -\\strlen($suffix)) : $value;\n }", "function rm_koma($data) {\n\t$ret = substr($data, 0, -1);\n\n\treturn $ret;\n}", "public static function get($prefix)\n {\n if (!is_string($prefix) or $prefix === null) {\n throw new \\InvalidArgumentException(\n \"\\$prefix should be a string and cannot be null or empty\"\n );\n }\n\n if (preg_match('/\\W/', $prefix)) {\n throw new \\InvalidArgumentException(\n \"\\$prefix should only contain alpha-numeric characters\"\n );\n }\n\n $prefix = strtolower($prefix);\n $namespaces = self::namespaces();\n\n if (array_key_exists($prefix, $namespaces)) {\n return $namespaces[$prefix];\n } else {\n return null;\n }\n }", "function has_prefix($string, $prefix)\n {\n return substr($string, 0, strlen($prefix)) == $prefix;\n }", "function removeFirstChar($string)\n{\n $i = 0;\n $string = substr_replace($string, '', $i, 1);\n return $string;\n}", "public function testPrefix()\n {\n $str = new Str($this->testString);\n $str2 = $str->prefix('the ');\n $this->assertTrue($str2->value === 'the ' . $this->testString);\n }", "public function deleteAll($prefix = '');", "protected final function stripNamespace ($string, $namespace) {\n\t\treturn $this->stripPrefix($string, $namespace . '.');\n\t}", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "protected function getPath($prefix): string\n {\n $path = $this->backupFileService->getBackupFolder();\n\n if (!empty($prefix) && preg_match('/^[a-z0-9_\\\\-]{2,}$/i', $prefix)) {\n $path .= $prefix;\n } else {\n $path .= $this->createPrefix();\n }\n\n return $path;\n }", "protected function getUniqueString($prefix='str_')\n {\n return uniqid($prefix);\n }", "protected function getPrefix(): string\n\t{\n\t\treturn $this->arParams['PREFIX'] !== '' ? $this->arParams['PREFIX'] : $this->getDefaultPrefix();\n\t}", "private function removeDatePrefixes($string)\n {\n $string = str_replace($this->i8n('date-prefixes'), [], $string);\n return $string;\n }", "function stripWithDelimiters($string, $start, $end)\n{\n while (strpos($string, $start) !== false) {\n $section_to_remove = substr($string, strpos($string, $start));\n $section_to_remove = substr($section_to_remove, 0, strpos($section_to_remove, $end) + strlen($end));\n $string = str_replace($section_to_remove, '', $string);\n }\n return $string;\n}", "public function getPrefix()\n\t{\n\t\treturn $this->prefix;\n\t}", "public function getPrefix()\n\t{\n\t\treturn $this->prefix;\n\t}", "public function getPrefix()\n\t{\n\t\treturn $this->prefix;\n\t}", "public function getPrefix()\n\t{\n\t\treturn $this->prefix;\n\t}", "public static function removeLeadingSlash($path) {\n\t\tif (substr($path, 0, 1) == '/') {\n\t\t\treturn substr($path, 1);\n\t\t}\n\t\telse {\n\t\t\treturn $path;\t\n\t\t}\t\n\t}", "public function getPrefix()\n {\n return $this->action['prefix'] ?? null;\n }", "protected function getNameWithoutPrefix() {}", "public static function removeHexPrefix($str) {\n if (!self::hasHexPrefix($str)) {\n throw new \\InvalidArgumentException('String is not prefixed with \"0x\".');\n }\n return substr($str, 2);\n }" ]
[ "0.8110948", "0.8102732", "0.80515015", "0.796179", "0.7772836", "0.7643129", "0.70024735", "0.6863972", "0.6680536", "0.6601046", "0.65736556", "0.6561675", "0.65184146", "0.6487255", "0.6484459", "0.64826554", "0.6442965", "0.6424962", "0.63787746", "0.6302032", "0.6215819", "0.618898", "0.617687", "0.6104227", "0.60826254", "0.6014097", "0.5949866", "0.59354514", "0.59269303", "0.587387", "0.58712053", "0.58336544", "0.58062994", "0.5788943", "0.5772748", "0.57522595", "0.574759", "0.5737443", "0.5734596", "0.5714815", "0.56813335", "0.5660529", "0.5659698", "0.5659698", "0.56246185", "0.5605873", "0.5595342", "0.55849093", "0.5572122", "0.5562592", "0.55280703", "0.55273116", "0.54746276", "0.5473074", "0.5469639", "0.54606384", "0.54454416", "0.5444959", "0.54441786", "0.5434174", "0.54286015", "0.542432", "0.5423716", "0.5421126", "0.5410238", "0.5410238", "0.5408802", "0.54018664", "0.5374828", "0.5359283", "0.53488874", "0.5343543", "0.5329037", "0.5323721", "0.53160053", "0.52742654", "0.5248543", "0.52472794", "0.5239289", "0.5229705", "0.5229705", "0.5229705", "0.5229705", "0.5229705", "0.5229705", "0.5229705", "0.5229705", "0.5229536", "0.52261484", "0.5224794", "0.5216011", "0.5208083", "0.5202539", "0.5202539", "0.5202539", "0.5202539", "0.52021897", "0.51945084", "0.5193495", "0.5189911" ]
0.81293166
0
Create a new command instance.
public function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }", "public function createCommand()\r\n\t{\r\n\t\t$obj = new DbCommand($this,$this->dbms);\r\n\t\treturn $obj;\r\n\t}", "public function createCommand() {\n\t\treturn new UnboxedCommand( $this );\n\t}", "protected function createCommand($args) {\n $command = new Command();\n $command->id = ifseta($args, 'id');\n $command->name = ifseta($args, 'name');\n $command->url = ifseta($args, 'url');\n $command->description = ifseta($args, 'description');\n $command->uses = ifseta($args, 'uses');\n $command->creationDate = ifseta($args, 'creation_date');\n $command->lastUseDate = ifseta($args, 'last_use_date');\n $command->goldenEggDate = ifseta($args, 'golden_egg_date');\n return $command;\n }", "static public function create($cmd = null, $args = null)\n {\n return new self($cmd, $args);\n }", "public function createCommand($kernel, string $commandName = null, string $commandDescription = null): Command;", "public function makeCommand() \n {\n if($this->CrontabCommandObject === NULL)\n {\n $this->CrontabCommandObject = new \\root\\library\\Crontab\\CrontabCommand\\CrontabCommand();\n }\n \n return $this->CrontabCommandObject;\n }", "public function testInstantiation()\n {\n $command = new CreateRule('dummy name');\n }", "public function command(Command $command);", "public function __construct($command)\n {\n $this->command = $command;\n }", "public static function create(array $data)\n {\n $command = new static();\n $command->exchangeArray($data);\n return $command;\n }", "protected function getCreateCommand()\n {\n $command = new IndexCreateCommand();\n $command->setContainer($this->getContainer());\n\n return $command;\n }", "public function createCommand($string = '')\n {\n return $this->createStringable($string);\n }", "public function createCommand($type) {\r\n $command = $this->xml->createElement('command');\r\n $command->setAttribute('xsi:type', $type);\r\n $command->setAttribute('xmlns', '');\r\n $this->xmlSchema($command);\r\n return $command;\r\n }", "public function __construct()\n {\n // We will go ahead and set the name, description, and parameters on console\n // commands just to make things a little easier on the developer. This is\n // so they don't have to all be manually specified in the constructors.\n if (isset($this->signature)) {\n $this->configureUsingFluentDefinition();\n } else {\n parent::__construct($this->name);\n }\n\n // Once we have constructed the command, we'll set the description and other\n // related properties of the command. If a signature wasn't used to build\n // the command we'll set the arguments and the options on this command.\n $this->setDescription((string) $this->description);\n\n $this->setHelp((string) $this->help);\n\n $this->setHidden($this->isHidden());\n\n if (! isset($this->signature)) {\n $this->specifyParameters();\n }\n }", "public function make(string $name, PreprocessorInterface $preprocessor = null): CommandInterface;", "private function _getCommandByClassName($className)\n {\n return new $className;\n }", "public function newCommand($regex, $callable) {\n $cmd = new Command();\n $cmd->regex = $regex;\n $cmd->callable = $callable;\n return $this->addCommand($cmd);\n }", "public static function create($commandID, ...$args)\n {\n $arguments = func_get_args();\n\n return new static(array_shift($arguments), $arguments);\n }", "private function __construct($command = null)\n {\n $this->command = $command;\n }", "public static function factory(string $command, string $before = '', string $after = ''): self\n {\n return new self($command, $before, $after);\n }", "public function getCommand() {}", "protected function buildCommand()\n {\n $command = new Command(\\Tivie\\Command\\ESCAPE);\n $command\n ->chdir(realpath($this->repoDir))\n ->setCommand($this->gitDir)\n ->addArgument(new Argument('tag', null, null, false))\n ->addArgument(new Argument($this->tag, null, null, true));\n\n return $command;\n }", "public function testCanBeInstantiated()\n {\n $command = $this->createInstance();\n $this->assertInstanceOf('\\\\Dhii\\\\ShellInterop\\\\CommandInterface', $command, 'Command must be an interoperable command');\n $this->assertInstanceOf('\\\\Dhii\\\\ShellCommandInterop\\\\ConfigurableCommandInterface', $command, 'Command must be a configurable command');\n $this->assertInstanceOf('\\\\Dhii\\\\ShellCommandInterop\\\\MutableCommandInterface', $command, 'Command must be a mutable command');\n }", "public function getCommand();", "protected function createCommand($name, array $parameters = [])\n {\n return new Fluent(\n array_merge(\n compact('name'),\n $parameters)\n );\n }", "public function testCanPassCommandStringToConstructor()\n {\n $command = new Command('/bin/ls -l');\n\n $this->assertEquals('/bin/ls -l', $command->getExecCommand());\n }", "public function makeCommandInstanceByType(...$args): CommandInterface\n {\n $commandType = array_shift($args);\n\n switch ($commandType) {\n case self::PROGRAM_READ_MODEL_FETCH_ONE_COMMAND:\n return $this->makeFetchOneCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_FIND_COMMAND:\n return $this->makeFindCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_FIND_LITE_COMMAND:\n return $this->makeFindLiteCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_CREATE_TASK_COMMAND:\n return $this->makeItemCreateTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_CREATE_COMMAND:\n return $this->makeItemCreateCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_UPDATE_TASK_COMMAND:\n return $this->makeItemUpdateTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_UPDATE_COMMAND:\n return $this->makeItemUpdateCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_DELETE_TASK_COMMAND:\n return $this->makeItemDeleteTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_DELETE_COMMAND:\n return $this->makeItemDeleteCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_ADD_ID_COMMAND:\n return $this->makeItemAddIdCommand(...$args);\n\n default:\n throw new FactoryException(sprintf('Command bus for type `%s` not found!', (string) $commandType));\n }\n }", "public function __construct($cmd)\n {\n $this->cmd = $cmd;\n }", "public function getCommand()\n {\n }", "public function command($class)\n {\n $runnable = $this->resolveClass($class);\n\n if ( ! $runnable instanceof Command) {\n throw new InvalidArgumentException(get_class($runnable).' must be an instance of '.Command::class.'.');\n }\n\n $command = $runnable;\n\n if ($runnable instanceof Taggable) {\n $command = new Cached($command, $this);\n }\n\n if ($runnable instanceof Transactional) {\n $command = new Transaction($command, $this, $this->makeFromContainer(ConnectionInterface::class));\n }\n\n if ($runnable instanceof Eventable) {\n $command = new Evented($command, $this);\n }\n\n return $this->newBuilder($command);\n }", "protected function createCommandFactory(): CommandFactory\n {\n return new CommandFactory([\n 'CLOSE' => Command\\CLOSE::class,\n ]);\n }", "public static function register() {\n\n if ( !defined( 'WP_CLI' ) || !WP_CLI ) {\n return;\n }\n \n $instance = new static;\n if(empty( $instance->namespace )) {\n throw new \\Exception(\"Command namespace not defined\", 1);\n \n }\n\t\t\\WP_CLI::add_command( $instance->namespace, $instance, $instance->args ?? null );\n\t}", "public function addCommand($command);", "public function add(Command $command);", "abstract protected function getCommand();", "public function createCommand()\r\n\t{\r\n\t\t//start the string\r\n\t\t$command = '';\r\n\t\t\r\n\t\t//add the java command or the path to java\r\n\t\t$command .= $this->java_path;\r\n\t\t\r\n\t\t//add the class path\r\n\t\t$command .= ' -cp \"'. $this->stanford_path . $this->seperator . '*\" ';\r\n\t\t\r\n\t\t//add options\r\n\t\t$options = implode(' ', $this->java_options);\r\n\t\t$command .= '-'.$options;\r\n\t\t\r\n\t\t//add the call to the pipeline object\r\n\t\t$command .= ' edu.stanford.nlp.pipeline.StanfordCoreNLP ';\r\n\r\n\t\t//add the annotators\r\n\t\t$command .= '-annotators '. $this->listAnnotators();\r\n\t\t\r\n\t\t//add the input and output directors\r\n\t\t$command .= ' -file '. $this->tmp_file . ' -outputDirectory '. $this->tmp_path;\r\n\t\t\r\n\t\t//this is for testing purposes\r\n\t\t//$command .= ' -file '. $this->tmp_path .'\\\\nlp3F25.tmp' . ' -outputDirectory '. $this->tmp_path;\r\n\t\t\r\n\t\t//if using regexner add this to the command string\r\n\t\tif($this->annotators['regexner'] === true)\r\n\t\t{\r\n\t\t\t$command .=' -regexner.mapping '. $this->regexner_path . $this->seperator . $this->regexner_file;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn $command;\r\n\t}", "protected function createCommand(string $name, array $parameters = []): Fluent\n {\n return new Fluent(array_merge(compact('name'), $parameters));\n }", "public function __construct()\n {\n parent::__construct(static::NAME, static::VERSION);\n $this->add(new DefaultCommand());\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->command_name = config(\"custom-commands.command_name\");\n\n parent::__construct($this->signature = $this->command_name);\n\n $this->commands = (array) config(\"custom-commands.commands\");\n \n $this->table = config(\"custom-commands.table\");\n\n $this->row = config(\"custom-commands.row\");\n\n $this->changeEnv = (boolean) config(\"custom-commands.change_env\");\n\n }", "protected function createCommandFile()\n {\n $command_file_full_path = $this->command_dir_path . DIRECTORY_SEPARATOR . $this->arg->getCommandFileName();\n\n // Check if the command already exists\n if (file_exists($command_file_full_path)) {\n throw new Exception('Command already exists.');\n }\n\n // Create the file for the new command\n $command_file = fopen($command_file_full_path, 'w');\n\n // TODO: Create Script Generator to generate the PHP scripts for the new command.\n\n fclose($command_file);\n\n $this->console->getOutput()->println('File created at: ' . $command_file_full_path);\n $this->console->getOutput()->success('Command ' . $this->arg->getSignature() . ' created successfully.');\n }", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public static function create(InteropContainer $container)\n {\n $middleware = $container->get('cmd.middleware');\n return new CommandBusFactory($middleware);\n }", "private function createCli() {\n $this->cli = new Cli();\n $this->commands = $this->commandParser->getAllCommands();\n\n foreach ($this->commands as $command) {\n if ($command->isDefault()) {\n $this->cli->command(\"*\");\n foreach ($command->getOptions() as $option) {\n $this->cli->opt($option->getName(), $option->getDescription(), $option->isRequired(), $option->getType());\n }\n foreach ($command->getArguments() as $argument) {\n if (!$argument->isVariadic())\n $this->cli->arg($argument->getName(), $argument->getDescription(), $argument->isRequired());\n }\n }\n if ($command->getName() != \"\") {\n $this->cli->command($command->getName())->description($command->getDescription());\n foreach ($command->getOptions() as $option) {\n $this->cli->opt($option->getName(), $option->getDescription(), $option->isRequired(), $option->getType());\n }\n foreach ($command->getArguments() as $argument) {\n if (!$argument->isVariadic())\n $this->cli->arg($argument->getName(), $argument->getDescription(), $argument->isRequired());\n }\n }\n }\n\n\n }", "public function testInstantiation()\n {\n $this->assertInstanceOf('Contao\\ManagerBundle\\Command\\InstallWebDirCommand', $this->command);\n }", "public function command(string $command): self\n {\n $this->addCommands[] = $command;\n\n return $this;\n }", "public function create() {}", "protected function createProcess($cmd)\n {\n return new Process(explode(' ', $cmd));\n }", "public function create(){}", "protected function getCommandFactory(): Command\\Factory\n {\n return new Command\\RedisFactory();\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->commandData = new CommandData($this, CommandData::$COMMAND_TYPE_API);\n }", "public function testNewCommand() : void\n {\n $this->assertFalse($this->command->hasArguments());\n $this->assertEquals(\"\", $this->command->getArguments());\n }", "protected function createCommandBuilder()\n\t{\n\t\treturn new CSqliteCommandBuilder($this);\n\t}", "public function __construct($command, $config = [])\n {\n $this->command = $command;\n $this->_output = $this->getDefaultOutput();\n parent::__construct($config);\n }", "public function __construct(){\n\n global $argv;\n\n if(!isset($argv[1])){\n echo 'You must supply a command!' . PHP_EOL;\n exit;\n }//if\n\n $args = $argv;\n\n $scriptName = array_shift($args);\n $method = array_shift($args);\n\n $method = explode('-',$method);\n foreach($method as $k => $v){\n if($k != 0){\n $method[$k] = ucwords($v);\n }//if\n }//foreach\n\n $method = implode('',$method);\n\n $resolved = false;\n\n if(method_exists($this,$method)){\n call_user_func(Array($this,$method), $args);\n $resolved = true;\n }//if\n else {\n foreach(static::$extendedCommands as $commandClass){\n if(method_exists($commandClass,$method)){\n call_user_func(Array($commandClass,$method), $args);\n $resolved = true;\n break;\n }//if\n }//foreach\n }//el\n\n if(!$resolved){\n echo \"`{$method}` is not a valid CLI command!\";\n }//if\n\n echo PHP_EOL;\n exit;\n\n }", "public function forCommand($command)\n {\n $this->command = $command;\n $this->pipe = new NullPipe();\n $this->manager = new InteractiveProcessManager($this->userInteraction);\n\n return $this;\n }", "public function __construct()\n {\n parent::__construct('pwman', '0.1.0');\n\n $getCommand = new Get();\n $this->add($getCommand);\n\n $setCommand = new Set();\n $this->add($setCommand);\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }", "public function createCommand(?string $sql = null, array $params = []): Command;", "public function __construct($command = NULL, $name = NULL)\n {\n $args = func_get_args();\n\n switch ($command) {\n case self::CONSTR_CMD_POPULATE_SYNCED_ARRAY:\n case self::CONSTR_CMD_POP_FROM_ARR:\n case self::CONSTR_CMD_POP_FROM_OBJ:\n case self::CONSTR_CMD_POP_FROM_DB:\n case self::CONSTR_CMD_NEW:\n $this->setup_name = $name;\n\n # shift off known args\n array_shift($args);\n array_shift($args);\n break;\n }\n\n switch ($command) {\n case self::CONSTR_CMD_POP_FROM_ARR:\n $this->applyArray($args[0]);\n break;\n case self::CONSTR_CMD_POP_FROM_OBJ:\n break;\n case self::CONSTR_CMD_POP_FROM_DB:\n break;\n case self::CONSTR_CMD_POPULATE_SYNCED_ARRAY:\n $this->applyArray($args[0]);\n $this->setAllLoaded();\n break;\n default:\n throw new OrmInputException('Guessing not supported, please explicitly specify construction type');\n self::constructGuess($args);\n }\n\n $this->ensureObjectInDb();\n }", "public function generateCommands();", "protected function newInstanceCommand($commandClass)\n {\n $class = new ReflectionClass($commandClass);\n\n return $class->newInstanceArgs($this->resolveCommandParameters($class));\n }", "protected function buildCommand()\n {\n return $this->command;\n }", "public function makeItemCreateCommand(string $processUuid, array $item): ItemCreateCommand\n {\n $processUuid = ProcessUuid::fromNative($processUuid);\n $uuid = Uuid::fromNative(null);\n $item = Item::fromNative($item);\n\n return new ItemCreateCommand($processUuid, $uuid, $item);\n }", "public function __construct($commandName, $args = [], $description = '') {\n if (!$this->setName($commandName)) {\n $this->setName('--new-command');\n }\n $this->addArgs($args);\n\n if (!$this->setDescription($description)) {\n $this->setDescription('<NO DESCRIPTION>');\n }\n }", "public function getCommand($name, array $args = array())\n {\n return parent::getCommand($name, $args)\n ->setRequestSerializer(RequestSerializer::getInstance());\n }", "protected function buildCommand()\n {\n $command = new Command(\\Tivie\\Command\\DONT_ADD_SPACE_BEFORE_VALUE);\n $command\n ->chdir(realpath($this->repoDir))\n ->setCommand($this->gitDir)\n ->addArgument(new Argument('rev-parse'))\n ->addArgument(new Argument('HEAD'));\n\n return $command;\n }", "protected function instantiateCommand(Request $request, $args)\n {\n $command = new DeletePackageCustomerCommand($args);\n\n $requestBody = $request->getParsedBody();\n\n $this->setCommandFields($command, $requestBody);\n\n return $command;\n }", "public function createCommand($sql = null, $params = [])\n {\n $command = new Command([\n 'db' => $this,\n 'sql' => $sql,\n ]);\n\n return $command->bindValues($params);\n }", "protected function setCommand($value) {\n\t\t$this->_command = trim($value);\n\t\treturn $this;\n\t}", "public function setCommand($command)\n {\n $this->command = $command;\n\n return $this;\n }", "public function buildCommand()\n {\n return parent::buildCommand();\n }", "private function registerMakeModuleCommand()\n {\n $this->app->singleton('command.make.module', function($app) {\n return $app['Caffeinated\\Modules\\Console\\Generators\\MakeModuleCommand'];\n });\n\n $this->commands('command.make.module');\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->currentDirectory = getcwd();\n $this->baseIndentLevel = 0;\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\HelpCommand\", \"help\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\InitializePlanetCommand\", \"init\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PackAndPushUniToolCommand\", \"packpushuni\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PackLightPluginCommand\", \"packlightmap\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PushCommand\", \"push\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PushUniverseSnapshotCommand\", \"pushuni\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\UpdateSubscriberDependenciesCommand\", \"updsd\");\n\n }", "public function getCommand(string $command);", "protected function registerCommand(){\n\t\t$this->app->singleton('fakeid.command.setup', function ($app){\n\t\t\treturn new SetupCommand();\n\t\t});\n\n\t\t$this->commands('fakeid.command.setup');\n\t}", "public function addCommand($command, $args = [], $data = [])\n {\n $item = new ScreenCommand();\n $item->screen_id = $this->id;\n $item->command = $command;\n $item->arguments = $args;\n $item->fill($data);\n $item->save();\n\n return $item;\n }", "public function test_creating_command_from_container()\n {\n $now = new \\DateTime();\n $this->container->add('DateTime', $now);\n $command = 'Spekkionu\\DomainDispatcher\\Test\\Commands\\CommandWithConstructor';\n $result = $this->dispatcher->dispatch($command);\n $this->assertSame($now, $result);\n }", "protected function createProcess(): Process\n {\n $command = [\n $this->settings['executable']\n ];\n\n $command[] = $this->from;\n $command[] = $this->to;\n\n // Set the margins if needed.\n if ($this->settings['marginsType'] !== self::MARGIN_TYPE_NO_MARGINS) {\n $command[] = '--marginsType=' . $this->settings['marginsType'];\n }\n\n // If we need to proxy with node we just need to prepend the $command with `node`.\n if ($this->settings['proxyWithNode']) {\n array_unshift($command, 'node');\n }\n\n // If there's no graphical environment we need to prepend the $command with `xvfb-run\n // --auto-servernum`.\n if (! $this->settings['graphicalEnvironment']) {\n array_unshift($command, '--auto-servernum');\n array_unshift($command, 'xvfb-run');\n }\n\n return new Process($command);\n }", "private function registerCommand()\n {\n $this->app->singleton('command.shenma.push', function () {\n return new \\Larva\\Shenma\\Push\\Commands\\Push();\n });\n\n $this->app->singleton('command.shenma.push.retry', function () {\n return new \\Larva\\Shenma\\Push\\Commands\\PushRetry();\n });\n }", "public function __construct(string $command, string $before = '', string $after = '')\n {\n $this->command = $command;\n $this->before = $before;\n $this->after = $after;\n }", "public function generateCommand($singleCommandDefinition);", "public function create() {\n }", "public function create() {\n }", "public function create() {\r\n }", "public function create() {\n\n\t}", "private function getImportCommand()\n {\n return new IndexImportCommand(self::getContainer());\n }", "public function __construct($command)\n {\n $this->command = $command;\n\n $this->command->line('Installing Images: <info>✔</info>');\n }", "public function __construct()\n {\n self::$instance =& $this;\n\n $commanddir = Config::main('directory');\n $excludes = Config::main('exclude');\n\n if(is_null($commanddir))\n die('Could not find commands directory. It should be specified in the main config.');\n\n //The directory where commands reside should be relative\n //to the directory with the clip executable.\n $dir = realpath(__DIR__.\"/{$commanddir}\");\n\n $cmdfiles = scandir($dir);\n //Loop through each file in the commands directory\n foreach($cmdfiles as $file)\n {\n //Assume that each file uses the standard '.php' file extension.\n $command = substr($file, 0, -4);\n\n //Ignore the unnecessary directories as commands and anything that\n //has been marked for exclusion then attempt to include the valid ones.\n if($file !== '.' && $file !== '..' && array_search($command, $excludes) === false && include(\"{$dir}/{$file}\"))\n {\n if(class_exists($command, false))\n {\n $obj = new $command;\n //Only load commands that use the clip command interface\n if($obj instanceof Command)\n $this->commands[strtolower($command)] = $obj;\n }\n }\n }\n }", "public function __construct($action, $command = null) {\n parent::__construct($action, self::NAME);\n\n $fieldFactory = FieldFactory::getInstance();\n\n $commandField = $fieldFactory->createField(FieldFactory::TYPE_STRING, self::FIELD_COMMAND, $command);\n\n $this->addField($commandField);\n }", "public function createCommand($db = null, $action = 'get')\n {\n if ($db === null) {\n $db = Yii::$app->get(Connection::getDriverName());\n }\n $this->addAction($action);\n $commandConfig = $db->getQueryBuilder()->build($this);\n\n return $db->createCommand($commandConfig);\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();" ]
[ "0.8010746", "0.7333379", "0.72606754", "0.7164165", "0.716004", "0.7137585", "0.6748632", "0.67234164", "0.67178184", "0.6697025", "0.6677973", "0.66454077", "0.65622073", "0.65437883", "0.64838654", "0.64696646", "0.64292693", "0.6382209", "0.6378306", "0.63773245", "0.6315901", "0.6248427", "0.6241929", "0.6194334", "0.6081284", "0.6075819", "0.6069913", "0.60685146", "0.6055616", "0.6027874", "0.60132784", "0.60118896", "0.6011778", "0.5969603", "0.59618074", "0.5954538", "0.59404427", "0.59388787", "0.5929363", "0.5910562", "0.590651", "0.589658", "0.589658", "0.589658", "0.58692765", "0.58665586", "0.5866528", "0.58663124", "0.5852474", "0.5852405", "0.58442044", "0.58391577", "0.58154446", "0.58055794", "0.5795853", "0.5780188", "0.57653266", "0.57640004", "0.57584697", "0.575748", "0.5742612", "0.5739361", "0.5732979", "0.572247", "0.5701043", "0.5686879", "0.5685233", "0.56819254", "0.5675983", "0.56670785", "0.56606543", "0.5659307", "0.56567776", "0.56534046", "0.56343585", "0.56290466", "0.5626615", "0.56255764", "0.5608852", "0.5608026", "0.56063116", "0.56026554", "0.5599553", "0.5599351", "0.55640906", "0.55640906", "0.5561977", "0.5559745", "0.5555084", "0.5551485", "0.5544597", "0.55397296", "0.5529626", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908" ]
0.0
-1
Execute the console command.
public function handle() { $test = $this->argument('test'); $dir = config('speed-test.dir'); $className = ucfirst(\Str::camel($test)); $namespace = config('speed-test.namespace'); $class = class_entity($className) ->namespace($namespace); $class->method('speed1') ->line($this->option('line'))->doc(function ($doc) use ($className) { /** @var DocumentorEntity $doc */ $doc->tagCustom('times', $this->option('times')); $doc->description($this->option('description') ?: "{$className} Speed 1"); }); if (! is_dir($dir)) { mkdir($dir, 0777, 1); } file_put_contents( $dir.'/'.$className.'.php', $class->wrap('php') ); $this->info('Speed created!'); return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "public function handle()\n {\n //get us the Converter class instance and call the convert() method on it.\n $this->info(\n \\Aregsar\\Converter\\ConverterFacade::convert($this->argument(\"currency\"))\n );\n }", "public function handle()\n {\n $this->locale = $this->argument('locale');\n\n $this->loadGroupLines();\n\n $this->loadNameSpacedLines();\n\n $this->info('Complete');\n }", "public function handle()\n {\n $this->importUser($this->argument('username'));\n $this->call('ldap:show-user', $this->arguments());\n }", "public function handle() {\n $user = User::where('id', $this->argument('userId'))->first();\n $this->info($user->email);\n }", "public function handle()\n {\n $translations = collect(json_decode(file_get_contents('https://raw.githubusercontent.com/getbible/Bibles/master/translations.json')))->flatten();\n switch($this->argument('action')) {\n case 'fetch':\n $this->fetchBibles($translations);\n break;\n case 'convert':\n $this->convertBibles($translations);\n break;\n }\n }", "public function handle()\n {\n try {\n $evalstr = $this->evaluater->evaluate($this->argument('evalString'));\n $this->info($evalstr);\n } catch (ForbiddenSymbolsException $exception) {\n $this->error($exception->getMessage());\n } catch (IncorrectSymbolsException $exception) {\n $this->error($exception->getMessage());\n }\n }", "public function handle()\n {\n\n $settings = Setting::fetch();\n $id = $this->argument('id');\n $this->scrape_game_data($id);\n }", "public function handle()\n {\n // env('CALENDARINDEX_TOKEN', '6f2bd927201ba4b22bb57df08db0c517e51732de')\n $this->getData($this->argument('country'), $this->argument('region'));\n }", "public function handle()\n {\n $email = $this->argument('email');\n $name = $this->argument('name');\n\n $this->info(\"starting to generate users details\");\n\n }", "public function handle()\n {\n\t\t$this->info('Importing translations...');\n\n\t\t$this->manager->importTranslations(true);\n }", "public function handle()\n {\n $user = null;\n\n if ($email = $this->option(\"email\", false)) {\n $user = $this->findByEmail($email);\n }\n\n if ($id = $this->option(\"id\", false)) {\n $user = $this->findById($id);\n }\n\n if (empty($user)) {\n $this->warn(\"User no found\");\n }\n else {\n $this->setRoleToUser($user);\n }\n }", "public function handle()\n {\n $name = ucwords($this->argument('name'));\n $this->call('repository:contract', [ 'name' => $name ]);\n $this->call('repository:class', [ 'name' => $name, '--driver' => $this->option('driver') ]);\n }", "public function handle()\n\t{\n\t\t// Superuser\n\t\tif( ! $this->option('no-superuser'))\n\t\t\t$this->call('setup:superuser');\n\n\t\t// Countries\n\t\tif( ! $this->option('no-countries'))\n\t\t\t$this->call('setup:countries', ['country' => array_filter(explode(',', $this->option('countries')))]);\n\n\t\t// Languages\n\t\tif( ! $this->option('no-languages'))\n\t\t\t$this->call('setup:languages', ['language' => array_filter(explode(',', $this->option('languages')))]);\n\n\t\t// Currencies\n\t\tif( ! $this->option('no-currencies'))\n\t\t\t$this->call('setup:currencies', ['currency' => array_filter(explode(',', $this->option('currencies')))]);\n\n\t\t// Clear cache\n\t\t$this->call('cache:clear');\n\t}", "public function handle()\n\t{\n\t\t$name = $this->argument('name');\n\t\t\n\t\t$this->info(\"Searching eve api for {$name}\");\n\t\t$result = Corporation::searchEVEAPI($name);\n\n\t\t$this->info(\"results\");\n\t\tforeach($result as $corp)\n\t\t{\n\t\t\tprint $corp->name . \" \" . $corp->id . \"\\r\\n\";\n\t\t}\n\t}", "public function handle()\n {\n $user = $this->argument('user');\n $this->info('Display this on the screen, user ' . $user);\n return 0;\n }", "public function handle()\n {\n $this->userVectors->test($this->option('force'));\n }", "public function handle()\n {\n $mapping = $this->formatMappingName((string)$this->argument('mapping'));\n \n $model = $this->option('model') ? $this->formatModelName($this->option('model')) : null;\n \n $this->filesystem->put(\n $this->buildMappingFilePath($mapping),\n $this->buildMapping(\n $this->getDefaultStub(),\n $mapping,\n $model\n )\n );\n \n $this->composer->dumpAutoloads();\n }", "public function handle()\n {\n switch ($this->argument('type')) {\n case 'dns':\n $this->dnscheck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n case 'whois':\n $this->whoischeck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n }\n }", "public function handle()\n {\n $option = $this->argument('option');\n\n if (! in_array($option, ['expired', 'all'])) {\n return $this->error('Invalid option supplied to command...');\n }\n\n $this->comment('Beginning pruning process...');\n\n $this->comment($this->pruneDatabase($option) . ' deleted from database...');\n\n $this->comment($this->pruneFiles($option) . ' deleted from files...');\n\n $this->info('Nonces pruned successfully!');\n }", "public function handle()\n {\n $subscriptionUpdateService = new SubscriptionUpdateService();\n $subscriptionUpdateService->runUpdates();\n }", "public function handle()\n\t{\n\t\t\n\t\t$source_directory = $this->argument( 'source_directory' );\n\t\t$target_directory = $this->argument( 'target_directory' );\n\t\t$template = (string) $this->option( 'template' );\n\n\t\t$statik = new \\App\\Statik\\Statik;\n\n\t\t$statik->generateHTMLFiles( $this, $source_directory, $target_directory, $template ) && $this->info( \"\\e[1;32mDONE!\" );\n\n\t}", "public function handle()\n {\n if (!$this->argument('file')) {\n $this->info('Please specify file to call.');\n }\n\n $file = $this->argument('file');\n\n if (!$this->fileHandler->exists($file)) {\n $this->info('Wrong path or file not exist.');\n }\n\n $this->executeFile($file);\n }", "public function handle()\n {\n $user = $this->argument('user');\n $this->scanner->setUserName($user);\n $this->scanner->scanUser();\n }", "public function handle()\n {\n if ($this->argument('user')) {\n $userId = $this->argument('user');\n\n $this->info(\"Liquidate affiliate commission for user \" . $userId);\n\n $user = $this->userService->findById($userId);\n\n if ($user) {\n $this->walletService->liquidateUserBalance($user);\n } else {\n $this->error(\"User not found\");\n }\n\n $this->info(\"Done\");\n } else {\n $this->info(\"Liquidate all commissions\");\n\n $this->walletService->liquidateAllUsersBalance();\n\n $this->info(\"Done\");\n }\n }", "public function handle()\n {\n $action = $this->choice('what action do you have on mind', [\n 'add-relation', 'remove-columns', 'column-type', 'rename-column'\n ]);\n switch ($action) {\n case 'add-relation':\n $this->addRelation();\n break;\n\n case 'remove-columns':\n $this->removeColumns();\n break;\n case 'column-type':\n $this->columnType();\n break;\n case 'rename-column':\n $this->renameColumn();\n break;\n default:\n $this->error('Unsupported action requested...');\n }\n $this->info('Command executed successfully');\n }", "public function handle()\n {\n $arguments = $this->arguments();\n $storageDir = $arguments['storageDir'];\n $localStorageDir = $arguments['localStorageDir'];\n $url = $arguments['url'];\n $cmd = sprintf(\"./app/Console/Commands/ShellScripts/screen_shot.sh %s %s %s\", $storageDir, $localStorageDir, $url);\n\n while (true) {\n $result = shell_exec($cmd);\n print_r($result);\n sleep(3);\n }\n }", "public function handle()\n {\n $city = $this->argument('city');\n\n $weatherService = new CurrentWeatherService();\n try {\n $weather = $weatherService->getByCity($city);\n } catch (WeatherException $e) {\n $this->error($e->getMessage());\n return;\n }\n\n $this->info('Weather for city '.$city);\n dump($weather->toArray());\n }", "public function handle()\n {\n $this->getModels($this->argument('model'));\n $this->getLanguages($this->argument('locale'));\n $this->createMultiLanguageRecords();\n }", "public function handle()\n {\n $this->processOptions();\n\n echo json_encode( $this->dateTimeRange ) . \"\\n\";\n\n $this->dispatch( new ProcessNewActionsJob(\n $this->dateTimeRange ,\n str_random( 16 ),\n $this->option('runtime-threshold')\n ) );\n }", "public function handle()\n {\n $fightId = $this->argument('fight_id');\n $metricId = $this->argument('metric_id');\n //$strategyName = 'App\\\\'.$this->argument('metric_name');\n\n $metric = BossMetric::find($metricId);\n if ($metric === null) {\n $this->error(\"Error: no metric with id: $metricId found!\");\n return;\n }\n\n $fight = Fight::find($fightId);\n\n if ($fight === null) {\n $this->error(\"Error: no fight with id: $fightId found!\");\n return;\n }\n\n $strategy = $metric->getStrategy();\n $strategy->setFight($fight);\n $strategy->run();\n }", "public function handle()\n {\n\t\t$this->call('vendor:publish');\n\t\t$this->call('migrate');\n\t\t$this->call('db:seed');\n\t\t$this->call('factotum:storage');\n\t\t$this->call('factotum:storage');\n }", "public function handle()\n {\n $user_id = $this->argument('user') ?? null;\n\n if (is_null($user_id)) {\n $users = User::all();\n\n foreach ($users as $user) {\n $this->showUserBalance($user);\n }\n } else {\n $user = User::find($user_id);\n\n $this->showUserBalance($user);\n }\n }", "public function handle()\n {\n $this->capsuleService->getAll();\n $this->line('Command Worked');\n }", "public function handle()\n {\n $platform_wechat_id = $this->argument('id');\n $customer_id = $this->argument('customer_id');\n $this->info(\"Starting at \".date('Y-m-d H:i:s').\". Running initial for 【{$this->signature}】\");\n $this->getUserInfoList($platform_wechat_id,$customer_id);\n $this->info(\"End at \".date('Y-m-d H:i:s').\". over for 【{$this->signature}】\");\n }", "public function handle()\n {\n $this->publishAssets();\n $this->call('twill:flush-manifest');\n $this->call('view:clear');\n }", "public function handle()\n {\n \n $argument = $this->argument('data');\n \n $this->prepare( $argument );\n \n $this->make();\n \n $this->info( 'migration has been created : '. $this->fileName );\n \n }", "public function handle()\n {\n chdir(resource_path('assets/ts'));\n $path = $this->argument(\"path\");\n if(isset($path))\n {\n Logger::info('execute '.$path);\n Command::executeRaw('tsc', [\"-p\", $path]);\n }else\n Logger::info('execute tsc');\n Command::executeRaw('tsc');\n }", "public function handle()\n {\n $this->info('Starting date change command.');\n\n Word::where('language_id', 1)->update(array('created_at' => '1970-01-01 00:00:01'));\n Word::where('language_id', 2)->update(array('created_at' => '1970-01-01 00:00:01'));\n\n $this->info('Dates have been changed to 1970-01-01 00:00:01');\n }", "public function handle()\n {\n $this->info($this->slugger->encode($this->argument('id')));\n }", "public function handle()\n {\n $this->line(static::$logo);\n $this->line('Neat admin current version:' . Neat::version());\n\n $this->comment('');\n $this->comment('Available commands:');\n\n $this->listAvailableCommands();\n }", "public function handle()\n {\n $this->revisions->updateListFiles();\n }", "public function handle(): void\n {\n // Set argument\n $this->url = $this->argument(self::URL_ARGUMENT);\n\n // Handler takes care of computation\n (new CommandHandler($this))->compute();\n }", "public function handle()\n {\n try\n {\n $filename = $this->argument('filename');\n Excel::import(new ObjectsImport, $filename);\n\n $this->info('Data import is now completed');\n }\n catch(Exception $ex)\n {\n $this->error($ex->getMessage());\n }\n }", "public function handle() {\n $entity = $this->validateEntity($this->argument('entity'));\n $job = new DataProcessingJob($entity, str_random(16));\n $this->dispatch($job);\n }", "public function handle()\n {\n $isProductionMode = 'prod' == $this->argument('mode');\n\n if ($isProductionMode) {\n if (!$this->confirm('Are you sure to run in production mode? Running this command may cause critical issues?')) {\n exit(1);\n }\n }\n\n $this->_recalculate($isProductionMode);\n }", "public function handle()\n {\n if(!$this->verify()) {\n $rank = $this->createRankSuperAdmin();\n $user = $this->createUserSuperAdmin();\n $user->Ranks()->attach($rank);\n $this->line('Felicitaciones');\n } else {\n $this->error('No se puede ejecutar');\n }\n }", "public function handle()\n {\n // Get CLI Input\n $user_id = $this->option(\"uid\");\n\n // User Products\n ( new CommandManager() )->showUserProducts( $user_id );\n }", "public function handle()\n {\n $force = $this->option('force');\n\n if($this->option('without-bulk')){\n $this->withoutBulk = true;\n }\n\n if ($this->generateClass($force)){\n $this->info('Generating permissions for '.$this->modelBaseName.' finished');\n }\n }", "public function handle()\n {\n $tournaments = Tournament::all()->toArray();\n foreach ($tournaments as $tournament) {\n $slug = $this->tournamentRepoObj->generateSlug($tournament['name'].Carbon::createFromFormat('d/m/Y', $tournament['start_date'])->year,'');\n DB::table('tournaments')\n ->where('id', $tournament['id'])\n ->update([\n 'slug' => $slug\n ]);\n }\n $this->info('Script executed.');\n }", "public function handle()\n {\n $userId = $this->argument('user');\n\n /** @var User $user */\n $user = User::findOrFail($userId);\n\n // Get token.\n $info = (new Client())->auth();\n\n // Save to db.\n $user->access_token = $info['access_token'];\n $user->access_secret = $info['access_secret'];\n $user->save();\n\n $this->line(\"Saved access token and secret for user: {$user->email}\");\n }", "public function handle()\n {\n $m = new MemberFromText;\n $m->train();\n $id = $m->predict($this->argument('text'));\n dump(Miembro::find($id)->toArray());\n }", "public function handle()\n {\n $this->generator\n ->setConsole($this)\n ->run();\n }", "public function handle()\n {\n $this->createController();\n $this->createServiceDir();\n\n exit;\n $args = [\n '--provider' => TestProvider::class\n ];\n $className = $this->argument('className');\n if (!$className) {\n $className = 'MethodsList';\n }\n $className = ucwords($className);\n $this->call('vendor:publish', $args);\n $this->info('Display this on the screen ' . $className);\n }", "public function handle()\n {\n $this->createDirectories();\n\n $this->publishTests();\n\n $this->info('Authentication tests generated successfully.');\n }", "public function handle()\n {\n $this->setDbConnection(\n $this->input->getOption('database') ?: config('ghost-database.default_connection')\n );\n\n $native = $this->input->getOption('native-import') ?: config('ghost-database.use_native_importer');\n\n $snapshot = $this->import($native);\n\n $this->info(\"Snapshot `{$snapshot->name}` loaded!\");\n }", "public function handle()\n {\n $exec = $this->argument('exec');\n\n switch ($exec) {\n case 'download' :\n $this->download();\n break;\n\n case 'generate' :\n $this->generate();\n break;\n\n default :\n echo \"Choose 'download' or 'generate' for this command\";\n break;\n }\n }", "public function handle()\n {\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-admin.js', '--group' => 'admin']);\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-frontend.js', '--group' => 'frontend']);\n $this->call(TranslationsGenerateCommand::class);\n }", "public function handle()\n {\n $tenantName = $this->argument('tenant');\n\n $tenant = Tenant::where('name', $tenantName)->orWhere('subdomain', $tenantName)->first();\n\n if ($tenant) {\n $tenant->setActive();\n \\Artisan::call('tinker');\n } else {\n $this->error('Error: Tenant not found');\n }\n }", "public function handle()\n {\n try {\n if (!empty($userId = $this->argument('user'))) {\n $user = User::find($userId);\n } else {\n $user = User::inRandomOrder()->first();\n }\n\n if (empty($user)) {\n throw new \\Exception('User not found');\n }\n\n echo JWTAuth::fromUser($user);\n } catch (\\Exception $e) {\n echo $e->getMessage();\n }\n\n }", "public function handle()\n {\n $this->fetchAndSetToken();\n $imagesToDownload = $this->peekImages(WatchedApp::pluck('package_name'));\n $this->fetchImages($imagesToDownload);\n\n if ($this->option('dont-optimize')) {\n return;\n }\n\n $this->runOptimizeCommand();\n }", "public function handle()\n {\n $this->setCryptIVFromUrl($this->argument('url'));\n\n $participant = URLParser::parseByName('santa.index', $this->argument('url'))->participant;\n if($participant) {\n $draw = $participant->draw;\n } else {\n $draw = URLParser::parseByName('organizer.index', $this->argument('url'))->draw;\n }\n\n $this->table(\n ['ID', 'Name', 'Email'],\n $draw->participants()->get(['id', 'name', 'email'])->toArray()\n );\n }", "public function handle()\n {\n // if you are on the local environment\n if (!(app()->isLocal() || app()->runningUnitTests())) {\n $this->error('This command is only available on the local environment.');\n return;\n }\n\n $fqdn = $this->argument('fqdn');\n if ($tenant = Tenant::retrieveBy($fqdn)){\n $tenant->delete($fqdn);\n $this->info(\"Tenant {$fqdn} successfully deleted.\");\n }else {\n $this->error('This fqdn doesn\\'t exist.');\n }\n\n }", "public function handle()\n {\n $user_from = $this->option('from');\n $user_to = $this->option('to');\n $sum = $this->option('sum');\n\n CreateTransaction::dispatch($this->usersRepository->getByID($user_from), $this->usersRepository->getByID($user_to), $sum, true);\n $this->transactionsRepository->getAll()->each(function ($transaction){\n \tExecuteTransaction::dispatch($transaction);\n });\n }", "public function handle()\n {\n $this->warn('Starting Retrieve Data');\n\n PeopleService::retrieveData();\n\n $this->info('Retrieve Data Completed');\n }", "public function handle()\n {\n \n $period = $this->option('period');\n \n switch ($period) {\n\n case 'half_month':\n $this->info('Grabing Half Month Income...');\n $this->halfMonth();\n break;\n\n case 'monthly':\n $this->info('Grabing Monthly Income...');\n $this->monthly();\n break;\n \n default:\n $this->info('Grabing Daily Income...');\n $this->daily();\n break;\n\n }\n\n \n }", "public function handle()\n {\n $countryFiles = $this->getFiles();\n\n foreach ($countryFiles as $fileName) {\n $this->seed($fileName);\n }\n\n $this->info('End.');\n }", "public function fire()\n {\n $entityName = $this->argument('entityName');\n $startEntityId = $this->argument('startEntityId');\n $endEntityId = $this->argument('endEntityId');\n $depth = $this->argument('depth');\n\n $this->fixturePath = $this->option('outputPath');\n\n $this->info(\"Generating fixtures for $entityName in {$this->fixturePath}...\");\n \n $this->generateFixtures($entityName, $startEntityId, $endEntityId, $depth);\n }", "public function handle()\n {\n $check = PublishTraitsService::publishTraits();\n\n if ($check)\n {\n $this->info('All files have been published');\n }\n\n $this->info('Failed to publish');\n }", "public function handle()\n {\n $user = User::where('username', $this->argument('user'))\n ->orWhere('email', $this->argument('user'))\n ->first();\n\n if ($user != null) {\n $user->assign('admin');\n $this->line(\"{$user->email} was successfully made an admin.\");\n } else {\n $this->line(\"No user found where username or email is '{$this->argument('user')}'\");\n }\n }", "public function handle()\n {\n event( 'laraview:compile' );\n $this->checkForSelectedViewGeneration();\n\n app( RegisterBlueprint::class )\n ->console( $this )\n ->generate();\n }", "public function handle()\n {\n $project = Project::with(['team.admins', 'team.members'])->findOrFail($this->option('project-id'));\n $user = User::findOrFail($this->option('user-id'));\n if ($this->option('admin')) {\n $project->team->admins()->syncWithoutDetaching($user);\n } else {\n $project->team->members()->syncWithoutDetaching($user);\n }\n return Command::SUCCESS;\n }", "public function handle() {\n try {\n $this->roomService->loadRoomOccupations();\n Log::notice('untis:occupations executed successfully.');\n $this->line('Loaded room occupations from WebUntis.');\n } catch (Exception $e) {\n Log::error('Error loading room occupations.', ['exception' => $e]);\n $this->error('Error loading room occupations: ' . $e->getMessage());\n }\n }", "public function handle()\n {\n $this->loadIxList();\n $this->loadIxMembersList();\n $this->updateIxInfo();\n $this->updateIxMembersInfo();\n }", "public function handle()\n {\n $this->call('vendor:publish', [\n '--provider' => \"Qoraiche\\MailEclipse\\MailEclipseServiceProvider\",\n ]);\n }", "public function handle()\n\t{\n\t\tif ($this->option('dev')) {\n\t\t\tsystem('php '.base_path('.deploy/deploy-dev.php'));\n\t\t} else {\n\t\t\tsystem('php '.base_path('.deploy/deploy.php'));\n\t\t}\n\t}", "public function handle(Command $command);", "public function handle(Command $command);", "public function handle()\n {\n $date_from = $this->argument('date_from');\n\t\t$date_to = $this->argument('date_to');\n\t\tif(!$date_from) {\n\t\t\t$date_from = Carbon::today()->subDays(5);\n\t\t}\n\t\tif(!$date_to) {\n\t\t\t$date_to = Carbon::yesterday();\n\t\t}\n\t\tStats::computeMembers($this->argument('venue_id'), $date_from, $date_to);\n }", "public function handle()\n {\n switch ($this->argument('type')){\n case 'fih':\n $scrapper = new Scrappers\\FederationScrapper();\n $scrapper->get($this->option('level'));\n print $scrapper->message();\n break;\n }\n }", "public function handle()\n {\n Log::info(\"seed:dash Command is working fine!\");\n $this->info('Dashboard Database seeding completed successfully.');\n }", "public function handle()\n {\n $originalId = $this->argument('original_id');\n\n $status = true;\n if ($this->option('status') === 'false') {\n $status = false;\n }\n\n if ($video = Video::where('original_id', $originalId)->first()) {\n $video->dmca_claim = $status;\n $video->save();\n\n $this->info('Video\\'s dmca_claim set to: ' . json_encode($status));\n return ;\n }\n\n $this->error('No video found with original_id of: ' . $originalId);\n return;\n }", "public function handle()\n {\n $this->call('config:clear');\n\n $this->call('config:update');\n\n $this->info('Configuration cached successfully!');\n }", "public function handle()\n {\n //\n $modelName = $this->argument('model');\n $column = $this->argument('column');\n $this->generateMutation($modelName, $column);\n\n }", "public function handle()\n {\n $filePath = 'public/' . $this->argument('fileName');\n $count = $this->argument('count');\n \n $fileData = array_slice(file($filePath), 0, $count);\n $this->info(implode('', $fileData));\n }", "public function handle()\n {\n $email = $this->argument('email');\n\n Mail::to($email)->send(new SendMailable('Test Mail'));\n\n if (Mail::failures()) {\n $this->info('Email failed to send');\n } else {\n $this->info('Email successfully sent');\n }\n }", "public function handle()\n {\n $this->call('route:trans:clear');\n\n $this->cacheRoutesPerLocale();\n\n $this->info('Routes cached successfully for all locales!');\n }", "public function handle()\n {\n $this->info('Welcome to command for Bantenprov\\WilayahIndonesia package');\n }", "public function handle()\n {\n if($this->hasOption('no_dump') && $this->option('no_dump')){\n $this->composer_dump = false;\n }\n $this->readyDatas();\n $this->datas['startSymbol']='{{';\n $this->datas['endSymbol']='}}';\n $this->create();\n }", "public function handle()\n {\n $repository = new OglasiCrawlerRepository();\n $ads = $repository->getAds();\n $repository->saveAds($ads);\n\n echo 'Ads were successfully retrieved' . PHP_EOL;\n }", "public function handle()\n {\n $this->makeDir($this->basePath . $this->kebabPlural());\n\n $this->exportViews();\n\n $this->info('Resource views generated successfully.');\n }", "public function handle()\n {\n $movies = \\App\\Models\\Movie::whereNull('meta')->take(40)->orderBy('id')->get();\n $movies->each(function($movie){ sleep(1); $movie->getMeta(); });\n return Command::SUCCESS;\n }", "public function handle()\n {\n $this->packageGenerator->setConsole($this)\n ->setPackage($this->argument('package'))\n ->setType('shipping')\n ->setForce($this->option('force'))\n ->generate();\n }", "public function handle()\n {\n $message = $this->GenerateRandomUser($this->argument('count'));\n $this->info($message);\n }", "public function handle()\n {\n $host = Cache::get('executingHost', null);\n $this->info(\"Host: ${host}\");\n\n if ($host === null) {\n $this->info('実行するホストが選択されていません');\n return;\n }\n\n if (Schema::hasTable('companies') && Company::count() !== 0) {\n $this->info('マイグレーションが既に1回以上実行されています');\n return;\n }\n\n $should_execute = $host === $this->argument('executingHost');\n\n if ($should_execute) {\n Artisan::call('migrate:fresh', ['--seed' => true]);\n $this->info('マイグレーションが完了しました');\n\n Cache::forget('executingHost');\n } else {\n $this->info('別ホストにてマイグレーションが行われます');\n }\n }", "public function handle()\n {\n // Configuration...\n $this->callSilent('vendor:publish', ['--tag' => 'model-login-config']);\n\n // Migrations\n $this->callSilent('vendor:publish', ['--tag' => 'model-login-migrations']);\n\n $this->info('Model Login resources published.');\n }", "public function handle()\n {\n if ($this->validation()) {\n $money = $this->argument('money');\n Cache::increment('amount', $money);\n }\n }", "public function handle()\n {\n $this->info('Publishing stuff..');\n\n $this->publishFiles();\n\n $this->info('Setup complete. Enjoy!');\n }", "public function handle()\n {\n $this->publishConfig();\n $this->publishClassStub();\n $this->generateAndStoreKey();\n\n $this->info('Use the details below for your \"Lead delivery options\" in Google Ads.');\n $this->info('Webhook URL: ' . route('GoogleAdsLeadExtensionController@index'));\n $this->info('Key: ' . $this->generated_key);\n }", "public function handle()\n {\n $opts = $this->options();\n $args = $this->arguments();\n #print_r($opts);\n #print_r($args);\n\n # Redundant as argument validation handled by Laravel\n #\n if (!isset($args['destination'])) {\n printf(\"Usage: php artisan %s\\n\", $this->signature);\n exit(1);\n }\n\n # Default to normal message type\n #\n if (!isset($opts['type'])) {\n $opts['type'] = 'normal';\n }\n\n $uac = new UserApiController();\n\n if ($opts['type'] == 'normal') {\n if (!isset($opts['message'])) {\n printf(\"Usage: php artisan %s\\n\\n\", $this->signature);\n printf(\"ERROR: Message must be specified for type 'normal'\\n\");\n exit(1);\n }\n $result = $uac->sendSms(\n $args['destination'],\n $opts['message'],\n $opts['route']\n );\n }\n else if ($opts['type'] == 'otp') {\n $result = $uac->sendVerificationSms(\n $args['destination'],\n '<code>',\n '<name>',\n $opts['route'],\n '<appName>'\n );\n }\n\n if ($result === true) {\n printf(\"INFO: SMS message to %s sent successfully (%s)\\n\",\n $args['destination'], $opts['type']);\n }\n else {\n printf(\"INFO: SMS message to %s failed to send (%s)\\n\", \n $args['destination'], $opts['type']);\n printf(\"ERROR: %s\\n\", $result);\n }\n\n return;\n }" ]
[ "0.6469962", "0.6463639", "0.64271367", "0.635053", "0.63190264", "0.62747604", "0.6261977", "0.6261908", "0.6235821", "0.62248456", "0.62217945", "0.6214421", "0.6193356", "0.61916095", "0.6183878", "0.6177804", "0.61763877", "0.6172579", "0.61497146", "0.6148907", "0.61484164", "0.6146793", "0.6139144", "0.61347336", "0.6131662", "0.61164206", "0.61144686", "0.61109483", "0.61082935", "0.6105106", "0.6103338", "0.6102162", "0.61020017", "0.60962653", "0.6095482", "0.6091584", "0.60885274", "0.6083864", "0.6082142", "0.6077832", "0.60766655", "0.607472", "0.60739267", "0.607275", "0.60699606", "0.6069931", "0.6068753", "0.6067665", "0.6061175", "0.60599935", "0.6059836", "0.605693", "0.60499364", "0.60418284", "0.6039709", "0.6031963", "0.6031549", "0.6027515", "0.60255647", "0.60208166", "0.6018581", "0.60179937", "0.6014668", "0.60145515", "0.60141796", "0.6011772", "0.6008498", "0.6007883", "0.60072047", "0.6006732", "0.60039204", "0.6001778", "0.6000803", "0.59996396", "0.5999325", "0.5992452", "0.5987503", "0.5987503", "0.5987477", "0.5986996", "0.59853584", "0.5983282", "0.59804505", "0.5976757", "0.5976542", "0.5973796", "0.5969228", "0.5968169", "0.59655035", "0.59642595", "0.59635514", "0.59619296", "0.5960217", "0.5954439", "0.59528315", "0.59513766", "0.5947869", "0.59456027", "0.5945575", "0.5945031" ]
0.5955025
93
Displays a particular model.
public function actionView($id) { $this->render('view',array( 'model'=>$this->loadModel($id), )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionView() {\n $this->render('view', array(\n 'model' => $this->loadModel(),\n ));\n }", "public function actionView()\n {\n $this->render('view', array(\n 'model' => $this->loadModel(),\n ));\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\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\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 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\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}", "public function actionView()\n {\n $id = Yii::$app->user->id;\n return $this->render('view', [\n 'model' => $this->findModel($id),\n ]);\n }", "public function actionShow()\r\n\t{\r\n\t\t$this->render('show',array('model'=>$this->loadcontent()));\r\n\t}", "public function show()\n {\n return $this->model;\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 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 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 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)\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}", "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) {\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\t'model' => $this->loadModel ( $id )\n\t\t) );\n\t}", "public function actionView()\r\n {\r\n $this->_userAutehntication();\r\n /*\r\n * Check if id was submitted via GET method \r\n */\r\n if(!isset($_GET['id']))\r\n $this->_sendResponse(500, 'Error: Parameter <b>id</b> is missing' );\r\n\r\n switch($_GET['model'])\r\n {\r\n /* Find 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('Mode <b>view</b> is not implemented for model <b>%s</b>',$_GET['model']) );\r\n exit; \r\n }\r\n if(is_null($model)) {\r\n $this->_sendResponse(404, 'No Post found with id '.$_GET['id']);\r\n } else {\r\n $this->_sendResponse(200, $this->_getEncodedData($_GET['model'], $model->attributes));\r\n }\r\n }", "public function actionView($id)\r\n {\r\n $this->render('view', array(\r\n 'model' => $this->loadModel($id),\r\n ));\r\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)\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel($id),\n\t\t\t));\n\t}", "public function actionView($id)\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel($id),\n\t\t\t));\n\t}", "public function actionView($id)\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel($id),\n\t\t\t));\n\t}", "public function actionView($id)\n {\n return $this->render('view', [\n 'model' => $this->findModel($id),\n //'model' => $this->findModel(Yii::$app->user->id),\n ]);\n }", "public function actionView($id)\n\t{\n\n\t $this->render('view',array(\n\t\t\t'model'=>$this->loadModel($id),\n\t\t));\n\t}", "public function actionView($id)\n {\n $this->render('view', [\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\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)\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel($id),\n\t\t));\n\t}" ]
[ "0.75535107", "0.7553186", "0.7542682", "0.7540008", "0.74330246", "0.74330246", "0.74330246", "0.74330246", "0.74330246", "0.73394006", "0.7160726", "0.71322334", "0.70615447", "0.7022298", "0.6983485", "0.69753826", "0.6958109", "0.6945592", "0.69437367", "0.69437367", "0.69437367", "0.69437367", "0.69437367", "0.69437367", "0.69437367", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6918672", "0.6916909", "0.6910746", "0.69090086", "0.69004697", "0.688112", "0.688112", "0.688112", "0.6875093", "0.68739605", "0.6873016", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299", "0.6868299" ]
0.712746
12
Creates a new model. If creation is successful, the browser will be redirected to the 'view' page.
public function actionCreate() { $model=new MenuItems; $menu=Menu::model()->findAllByAttributes(array('deleted'=>0,'is_available'=>1)); if(isset($_POST['MenuItems'])) { $model->attributes=$_POST['MenuItems']; if($model->save()) $this->redirect(array('update','id'=>$model->id)); } $this->render('create',compact('model','menu')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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\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 {\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() {\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 {\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 {\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 {\n $model = new User();\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 User();\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 User();\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 User();\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 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 $model = new Foro();\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 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 {\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 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 $model = new $this->defaultModel;\n\n $isPjax = Yii::$app->request->isPjax;\n if (!$isPjax) {\n $this->performAjaxValidation($model);\n }\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n if ($isPjax) {\n return $this->actionAjaxModalNameList(['selected_id' => $model->id]);\n } else {\n return $this->redirect('index');\n } \n } else {\n if (Yii::$app->request->isAjax) {\n return $this->renderAjax('create', [\n 'model' => $model,\n 'isModal' => true,\n ]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n 'isModal' => false,\n ]);\n }\n }\n }", "public function actionCreate()\n {\n $model = new Users();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->uid]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $models = $this->loadModelsByPid();\n\n $this->performAjaxValidationTabular($models);\n\n $success = $this->doAction($models);\n $newPid = current($models)->pid;\n\n if($success)\n {\n if(isset($_POST['apply']))\n {\n $this->redirectAction($newPid);\n }\n $this->redirectAction();\n }\n\n if($success !== null && $newPid)\n {\n $this->redirectAction($newPid);\n }\n\n $this->render($this->view['create'], array(\n 'models' => $models,\n 'model' => reset($models),\n 'languages' => Language::getList(),\n ));\n }", "public function actionCreate()\n\t{\n\t\t$model = new Post;\n\t\tif ($model->load(Yii::$app->request->post()) && $model->save())\n\t\t{\n\t\t\treturn $this->redirect(['site/index']);\n\t\t}\n\t\t\n\t\techo $this->render('create', array(\n\t\t\t'model' => $model\n\t\t));\n\t}", "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 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 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 Photo();\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('create', [\n 'model' => $model,\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 $this->isCreateView = true;\n $modelClass = $this->_getModelClass();\n $model = new $modelClass;\n return $this->_renderView($model);\n }", "public function actionCreate()\n {\n $model = new JetShopDetails();\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 Orders();\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 Users();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->redirect([\"site/register\"]);\n /*$this->render('/site/register', [\n 'model' => $model,\n ]);*/\n }\n }", "public function actionCreate()\n {\n $model = new Major();\n\n if ($model->load(Yii::$app->request->post())) {\n if ($model->save()) {\n $this->success(Yii::t('flash', 'major.save_success'));\n } else {\n $this->error(Yii::t('flash', 'major.save_error'));\n }\n return $this->redirect(['index']);\n } \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 House();\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 $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 $this->layout = 'headbar';\n $model = new ContactOne();\n \n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n $dataProvider = new ActiveDataProvider([\n 'query' => ContactOne::find(),\n 'pagination' => [\n 'pageSize' => 20,\n ],\n ]);\n //return $this->redirect(['view', 'id' => $model->id]);\n\n return $this->render('view',[\n 'dataProvider' => $dataProvider,\n ]);\n\n\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 $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()\n {\n $model = new User();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n $user = User::findOne(['username' => $model->username ]) ;\n return $this->redirect(['site/view','id' => $user->id]);\n } else {\n return $this->render('knpr/create', [\n 'model' => $model,\n ]);\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 Book();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n \tif (Yii::$app->request->getIsAjax()) {\n \t\treturn $this->renderPartial('create', [\n \t\t\t'model' => $model,\n \t\t]);\n \t}\n \telse {\n\t return $this->render('create', [\n\t 'model' => $model,\n\t ]);\n \t}\n }\n }", "public function actionCreate()\n {\n $model = new Article();\n if(!empty($_GET['kind'])) $model->kind=$_GET['kind'];\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 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 $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 $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 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 $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 Student();\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\t{\n\t\t$model=new User;\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['User']))\n\t\t{\n\t\t\t$model->attributes=$_POST['User'];\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\t{\n\t\t$model=new User;\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['User']))\n\t\t{\n\t\t\t$model->attributes=$_POST['User'];\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 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 Customers();\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 Products();\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 Template();\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 $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 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 {\n $model = new Nomina();\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\t\t$model=new Comment;\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['Comment']))\n\t\t{\n $model->attributes=$_POST['Comment'];\n\t\t\n \n if($model->save()){\n $dataProvider=new CActiveDataProvider('Comment');\n\t\t\t$this->redirect(array('index'),array(\n 'dataProvider'=>$dataProvider,\n 'updated'=>'1',\n 'message'=>\"Comentario introducido\"\n ));\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 {\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 News();\n $author = Yii::$app->user->identity->username;\n\n if ($model->load(Yii::$app->request->post())){\n $model->setAuthor($author);\n if($model->save()){\n return $this->redirect('index');\n }\n }\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\t{\n\t\tif (isset(Yii::app()->user->isAdmin) && Yii::app()->user->isAdmin){\n\t\t\t$this->layout = \"admin\";\n\t\t}\n\t\t\n\t\t$model=new Articles;\n\t\tif(isset($_POST['Articles']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Articles'];\n\t\t\tif (isset(Yii::app()->user->isAdmin) && Yii::app()->user->isAdmin){\n\t\t\t\t$model->status = 0;\n\t\t\t}\n\t\t\t$model->user_id = Yii::app()->user->id;\n\t\t\tif($model->save())\n\t\t\t{\n\t\t\t\tif (Yii::app()->user->isAdmin){\n\t\t\t\t\t$this->redirect(array('admin')); //,'id'=>$model->id));\n\t\t\t\t}else{\n\t\t\t\t\t$this->redirect(array('list')); //,'id'=>$model->id));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t$this->render('create',array('model'=>$model));\n\t}", "public function actionCreate()\n {\n $model = new Uprawnienia();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'konto_id' => $model->konto_id, 'podkategoria_id' => $model->podkategoria_id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $model=new User('admin');\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if(isset($_POST['User']))\n {\n $model->attributes=$_POST['User'];\n if($model->save())\n $this->redirect(array('index'));\n }\n\n $this->render('create',array(\n 'model'=>$model,\n ));\n }", "public function actionCreate()\n {\n $model = new Contact();\n $model->user_id = $this->user->id;\n $model->scenario = 'form';\n\n if (Yii::$app->request->isPost && ($postData = Yii::$app->request->post()) && $model->load($postData)) {\n if ($model->save()) {\n return $this->redirect([\n 'view',\n 'id' => $model->id,\n ]);\n }\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate() {\n Login::UserAuth('Customers', 'Create');\n $model = new Customers;\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('create', array(\n 'model' => $model,\n ));\n }", "public function actionCreate()\n {\n $model = new Kareer();\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 Debtor();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\n //$locationModel = Location::find()->where(['location_id' => $model->location->id])->one();\n $locationModel = new Location();\n $locationModel->load(Yii::$app->request->post());\n $locationModel->save();\n $model->link('location', $locationModel);\n\n //$nameModel = Name::find()->where(['name_id' => $this->name->id])->one();\n $nameModel = new Name();\n $nameModel->load(Yii::$app->request->post());\n $nameModel->save();\n $model->link('name', $nameModel);\n\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n if (Yii::$app->request->isAjax) {\n return $this->renderAjax('create', [\n 'model' => $model,\n ]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }\n }", "public function actionCreate()\n {\n $model = new Persyaratan();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_persyaratan]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n\t{\n\t\t$model = new Route();\n\n\t\tif ($model->load(Yii::$app->request->post())) {\n\t\t\t$model->save();\n\t\t\treturn $this->redirect(['view', 'id' => $model->name]);\n\t\t} else {\n\t\t\treturn $this->render('create', [\n\t\t\t\t'model' => $model,\n\t\t\t]);\n\t\t}\n\t}", "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\t\t$model = new Building();\n\n\t\tif ( $model->load( Yii::$app->request->post() ) && $model->save() ) {\n\t\t\treturn $this->redirect( [ 'index', 'id' => $model->id ] );\n\t\t} else {\n\t\t\treturn $this->render( 'create', [\n\t\t\t\t'model' => $model,\n\t\t\t] );\n\t\t}\n\t}", "public function actionCreate() {\n\t\t$model = new Proyecto;\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['Proyecto'])) {\n\t\t\t$model -> attributes = $_POST['Proyecto'];\n\t\t\t$model -> Usuario_id = Yii::app() -> user -> id;\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('model' => $model, ));\n\t}", "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 {\n $model = new Programador();\n //Yii::$app->request->post() wrapper de Yii para obtener datos seguros enviados por POST\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 File();\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 Product();\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 Contact;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if(isset($_POST['Contact'])) {\n $model->attributes = $_POST['Contact'];\n if ($model->save()) {\n $this->redirect(array('view','id' => $model->id));\n }\n }\n\n $this->render('create', array(\n 'model' => $model,\n ));\n }", "public function actionCreate()\r\n {\r\n $this->_userAutehntication();\r\n\r\n switch($_GET['model'])\r\n {\r\n /*\r\n * Get an instance of the respective model\r\n */\r\n case 'posts': \r\n $model = new Post; \r\n break; \r\n default: \r\n $this->_sendResponse(501, sprintf('Mode <b>create</b> is not implemented for model <b>%s</b>',$_GET['model']) );\r\n exit; \r\n }\r\n /*\r\n * Assign POST values to attributes \r\n */ \r\n foreach($_POST as $var=>$value) {\r\n /*\r\n * Check if the model have this attribute\r\n */ \r\n if($model->hasAttribute($var)) {\r\n $model->$var = $value;\r\n } else {\r\n /* Error : model don't have this attribute */\r\n $this->_sendResponse(500, sprintf('Parameter <b>%s</b> is not allowed for model <b>%s</b>', $var, $_GET['model']) );\r\n }\r\n }\r\n /*\r\n * save the model\r\n */ \r\n if($model->save()) { \r\n $this->_sendResponse(200, $this->_getEncodedData($_GET['model'], $model->attributes) );\r\n } else {\r\n /*\r\n * Errors occurred\r\n */\r\n $message = \"<h1>Error</h1>\";\r\n $message .= sprintf(\"Couldn't create model <b>%s</b>\", $_GET['model']);\r\n $message .= \"<ul>\";\r\n foreach($model->errors as $attribute=>$attribute_errors) {\r\n $message .= \"<li>Attribute: $attribute</li>\";\r\n $message .= \"<ul>\";\r\n foreach($attribute_errors as $attr_error) {\r\n $message .= \"<li>$attr_error</li>\";\r\n } \r\n $message .= \"</ul>\";\r\n }\r\n $message .= \"</ul>\";\r\n $this->_sendResponse(500, $message );\r\n }\r\n\r\n var_dump($_REQUEST);\r\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 Trees();\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 Detallecarrito();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'codProducto' => $model->codProducto, 'idCarrito' => $model->idCarrito]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new EnglishNanorep();\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\t\t$model=new UserAddForm();\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['UserAddForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['UserAddForm'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->data->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 Slaves();\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 $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 MissionCarers;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['MissionCarers'])) {\n $model->attributes = $_POST['MissionCarers'];\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 = new StandartOne();\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('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 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 $model = new Producto();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_prodcto]);\n } else {\n return $this->render('create', [\n 'model' => $model,\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 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 $model = new Category();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['update', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function creating($model)\n\t{\n\t}", "public function actionCreate()\n {\n $model = new CourseSite();\n\n if ($model->load(Yii::$app->request->post())){\n if($model->createCourseSite($model->course)){\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 User('create');\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if(isset($_POST['User']))\n {\n $model->attributes=$_POST['User'];\n if($model->save())\n $this->redirect(array('/site/index'));\n }\n\n //Yii::app()->user->setFlash('success', Yii::t('user', '<strong>Congratulations!</strong> You have been successfully registered on our website! <a href=\"/\">Go to main page.</a>'));\n $this->render('create', compact('model'));\n }", "public function actionCreate() {\r\n\t\t$model = new Follow ();\r\n\t\t\r\n\t\tif ($model->load ( Yii::$app->request->post () ) && $model->save ()) {\r\n\t\t\treturn $this->redirect ( [ \r\n\t\t\t\t\t'view',\r\n\t\t\t\t\t'id' => $model->followID \r\n\t\t\t] );\r\n\t\t} else {\r\n\t\t\treturn $this->render ( 'create', [ \r\n\t\t\t\t\t'model' => $model \r\n\t\t\t] );\r\n\t\t}\r\n\t}", "public function actionCreate()\n {\n $model = new Content();\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 $model = new Peticiones();\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 Menu();\n\n if ($model->load(Yii::$app->request->post())) {\n if($model->validate()){\n $model->save(false);\n return $this->redirect(['index']);\n }\n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $model = new ApplicationPhoto();\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()\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 }" ]
[ "0.7960614", "0.789972", "0.7867814", "0.75926656", "0.7531548", "0.7484925", "0.7460855", "0.7460855", "0.7460855", "0.7460855", "0.74484086", "0.7440914", "0.7438662", "0.7430432", "0.74090374", "0.74079895", "0.7384322", "0.7376383", "0.73324466", "0.73323387", "0.7304489", "0.72653013", "0.7255173", "0.72460085", "0.72383684", "0.7219063", "0.7209785", "0.7206781", "0.7202229", "0.71983236", "0.71888006", "0.71791226", "0.7177453", "0.71762216", "0.7171196", "0.71711266", "0.7166635", "0.71653366", "0.715861", "0.71487087", "0.7143058", "0.71361613", "0.70921624", "0.7084503", "0.70791584", "0.7075829", "0.70672905", "0.70672905", "0.70665467", "0.70644325", "0.70628715", "0.7061911", "0.7060282", "0.705855", "0.7058361", "0.70581526", "0.70507544", "0.7036864", "0.702259", "0.7015725", "0.70126164", "0.7012401", "0.701125", "0.7009854", "0.7009602", "0.7008126", "0.69974595", "0.69923836", "0.69910735", "0.698697", "0.69844544", "0.69843364", "0.6967437", "0.6963801", "0.69471765", "0.6939066", "0.6938971", "0.6938658", "0.6936832", "0.6936749", "0.693654", "0.6935149", "0.69324917", "0.69323796", "0.69304967", "0.6926158", "0.69219524", "0.6919888", "0.691974", "0.6918608", "0.69168013", "0.6909854", "0.68989277", "0.6887816", "0.6882678", "0.68762326", "0.6871173", "0.6866072", "0.6859831", "0.6852269", "0.6851994" ]
0.0
-1
Updates a particular model. If update is successful, the browser will be redirected to the 'view' page.
public function actionUpdate($id) { $model=$this->loadModel($id,array('itemSizes','itemAddOns')); $menu=Menu::model()->findAllByAttributes(array('deleted'=>0,'is_available'=>1)); // Uncomment the following line if AJAX validation is needed // $this->performAjaxValidation($model); if(isset($_POST['MenuItems'])) { $model->attributes=$_POST['MenuItems']; if($model->save()) $this->redirect(array('update','id'=>$model->id)); } $this->render('update',compact('model','menu')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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\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)\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\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 {\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 {\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 $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()\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()\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) {\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\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->name]);\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}", "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 updating($model)\n\t{\n\t}", "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()))\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)\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}", "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\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)\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('update', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "public function actionUpdate($id) {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\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 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 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 $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 $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 $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->U_ID]);\n }\n\n return $this->render('update', [\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 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 $model = $this->findModel($id);\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 $model = $this->findModel($id);\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 $model = $this->findModel($id);\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 $model = $this->findModel($id);\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 $model = $this->findModel($id);\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 $model = $this->findModel($id);\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 {\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 {\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 } 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 } 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->name]);\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 } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n if ($model->load(Yii::$app->getRequest()->post(),'') && $model->save()) {\n return $this->redirect(['view', 'id' => $model->name]);\n }\n\n return $this->render('update', ['model' => $model]);\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 } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public\n 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 } else {\n return $this->render('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()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->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->save()) {\n return $this->redirect(['view', 'id' => (string)$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 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 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 $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\n return $this->render('update', [\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 return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('update', [\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 return $this->redirect(['view', 'id' => $model->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->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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $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()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }" ]
[ "0.7904043", "0.7712556", "0.76952547", "0.76012313", "0.7600377", "0.74885774", "0.7481266", "0.7476374", "0.7468706", "0.74600095", "0.7458755", "0.74575424", "0.74575424", "0.74572265", "0.7452297", "0.74470776", "0.74453735", "0.74400187", "0.7429605", "0.7417643", "0.74164397", "0.739928", "0.7394235", "0.73837763", "0.7378888", "0.73725766", "0.7361208", "0.7361208", "0.7361208", "0.7361208", "0.7361208", "0.7361208", "0.7361208", "0.7360595", "0.7345905", "0.7345905", "0.7335756", "0.733354", "0.7333276", "0.73300683", "0.7327931", "0.7327326", "0.7323338", "0.73193884", "0.73193884", "0.7317781", "0.7317781", "0.7317781", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854", "0.7313854" ]
0.0
-1
Returns the data model based on the primary key given in the GET variable. If the data model is not found, an HTTP exception will be raised.
public function loadModel($id,$rel=null){ if($rel) $model=MenuItems::model()->with($rel)->findByPk($id); else $model=MenuItems::model()->findByPk($id); if($model===null) throw new CHttpException(404,'The requested page does not exist.'); return $model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=Residencebaseinfo::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=LicenceApplication::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=emprestimo::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Dataset::model()->findByPk((int)$id);\n\t\tif($model===null)\n\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public static function Get($key) {\r\n\t\t$cls = get_called_class();\r\n\t\t$model = new $cls();\r\n\t\t$primary = $model->index('primary');\r\n\t\tif (is_null($primary)) {\r\n\t\t\tthrow new Exception(\"The schema for {$cls} does not identify a primary key\");\r\n\t\t}\r\n\t\tif (!is_array($key)) {\r\n\t\t\tif (count($primary['fields']) > 1) {\r\n\t\t\t\tthrow new Exception(\"The schema for {$cls} has more than one field in its primary key\");\r\n\t\t\t}\r\n\t\t\t$key = array(\r\n\t\t\t\t$primary['fields'][0] => $key\r\n\t\t\t);\r\n\t\t}\r\n\t\tforeach ($primary['fields'] as $field) {\r\n\t\t\tif (!isset($key[$field])) {\r\n\t\t\t\tthrow new Exception(\"No value provided for the {$field} field in the primary key for \" . get_called_class());\r\n\t\t\t}\r\n\t\t\t$model->where(\"{$field} = ?\", $key[$field]);\r\n\t\t}\r\n\t\t//$src = Dbi_Source::GetModelSource($model);\r\n\t\t$result = $model->select();\r\n\t\tif ($result->count()) {\r\n\t\t\tif ($result->count() > 1) {\r\n\t\t\t\tthrow new Exception(\"{$cls} returned multiple records for primary key {$id}\");\r\n\t\t\t}\r\n\t\t\t$record = $result[0];\r\n\t\t} else {\r\n\t\t\t$record = new Dbi_Record($model, null);\r\n\t\t\t$record->setArray($key, false);\r\n\t\t}\r\n\t\treturn $record;\r\n\t}", "public function loadModel() {\n if ($this->_model === null) {\n if (isset($_GET['id']))\n $this->_model = Project::model()->findbyPk($_GET['id']);\n if ($this->_model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n }\n return $this->_model;\n }", "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=DiasLetivos::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=Report::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=Invoice::model()->findByPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "public function loadModel() {\n if ($this->_model === null) {\n if (isset($_GET['id']))\n $this->_model = Alocacao::model()->findbyPk($_GET['id']);\n if ($this->_model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n }\n return $this->_model;\n }", "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}", "private function findModel($key)\n {\n if (null === $key) {\n throw new BadRequestHttpException('Key parameter is not defined in findModel method.');\n }\n\n $modelObject = $this->getNewModel();\n\n if (!method_exists($modelObject, 'findOne')) {\n $class = (new\\ReflectionClass($modelObject));\n throw new UnknownMethodException('Method findOne does not exists in ' . $class->getNamespaceName() . '\\\\' .\n $class->getShortName().' class.');\n }\n\n $result = call_user_func([\n $modelObject,\n 'findOne',\n ], $key);\n\n if ($result !== null) {\n return $result;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "public function loadModel($id)\n\t{\n\t\t$model=Information::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()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t{\n\t\t\t\t$condition='';\n\t\t\t\t$this->_model=Chat::model()->findByPk($_GET['id'], $condition);\n\t\t\t}\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "public function __get($key)\n\t{\n\t\t// See if we are requesting a foreign key\n\t\tif (isset($this->_data[$key.'_id']))\n\t\t{\n\t\t\tif (isset($this->_lazy[$key])) // See if we've lazy loaded it\n\t\t\t{\n\t\t\t\t$model = AutoModeler::factory($key);\n\t\t\t\t$model->process_load($this->_lazy[$key]);\n\t\t\t\t$model->process_load_state();\n\t\t\t\treturn $model;\n\t\t\t}\n\n\t\t\t// Get the row from the foreign table\n\t\t\treturn AutoModeler::factory($key, $this->_data[$key.'_id']);\n\t\t}\n\t\telse if (isset($this->_data[$key]))\n\t\t\treturn $this->_data[$key];\n\t}", "public function loadModel()\n {\n if ($this->_model === null) {\n if (isset($_GET['id'])) {\n if (Yii::app()->user->isGuest)\n //$condition='status='.Post::STATUS_PUBLISHED.' OR status='.Post::STATUS_ARCHIVED;\n $condition = '';\n else\n $condition = '';\n $this->_model = Object::model()->with(array('author','files'))->findByPk($_GET['id']);\n }\n if ($this->_model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n }\n return $this->_model;\n }", "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=RR_TipoHorario::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_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 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)\r\n\t{\r\n\t\t$model=Programa::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=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 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=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=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}", "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 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}", "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}", "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)\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\t\n\t\t$model=XhTitle::model()->findByPk($id);\n\t\t\n\t\tif($model===null)\n\t\t\t\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t\n\t\treturn $model;\n\t\n\t}", "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}", "public function loadModel($id)\n\t{\n\t\t$model=Results::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=Materia::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=Coordocs::model()->findByPk($id+0);\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=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)\n\t{\n\t\t$model=Quote3::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 = 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=DeedMaster::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=Ios::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=Study::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=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)\n\t{\n\t\t$model=Pooja::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=StudentDocument::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}", "public function loadModel($id)\n\t{\n\t\t$model=Persona::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 getModelByPrimaryKey($action = null, $keyValue = null)\n {\n $keyName = $this->model->getKeyName();\n\n if ($keyValue == '_') {\n if ($this->request()->has(\"data.primaryKey.{$keyName}\")) {\n $keyValue = $this->request()->input(\"data.primaryKey.{$keyName}\");\n } elseif ($this->request()->has(\"data.old.{$keyName}\")) {\n $keyValue = $this->request()->input(\"data.old.{$keyName}\");\n } elseif ($this->request()->has('data.items')) {\n $items = $this->request()->input('data.items');\n if (Arr::has($items, $keyName)) {\n $keyValue = Arr::get($items, $keyName);\n } else {\n $first = Arr::first($items);\n if (Arr::has($first, $keyName)) {\n $keyValue = Arr::get($first, $keyName);\n }\n }\n }\n }\n\n $data = [$keyName => $keyValue];\n\n $r = $this->validateData($data, null, 'primaryKey', $action, [$keyName => ['includeUniqueRules' => false]]);\n if ($r !== true) {\n return $r;\n }\n\n $modelClass = get_class($this->model);\n if ($model = $modelClass::find($data[$keyName])) {\n return $model;\n }\n\n return CrudJsonResponse::error(CrudHttpErrors::TARGET_DATA_MODEL_NOT_FOUND, null, [\n 'action' => 'primaryKey',\n 'parent_action' => $action,\n 'target' => $data,\n ]);\n }", "public function loadModel($id)\n\t{\n\t\t$model=Entry::model()->with('entryAnswers')->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()\n {\n if ($this->_model === null)\n {\n if (isset($_GET['id']))\n $this->_model = User::model()->findbyPk($_GET['id']);\n if ($this->_model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n }\n return $this->_model;\n }", "public function loadModel($id)\n\t{\n\t\t$model=ARTICULOS::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()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=User::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_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 $model = Package::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=Domain::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=ElBezQuests::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=Basic_definition::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=PPDokrekammedisM::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=Repository::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=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=Sale::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=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 loadModel($id)\n\t{\n\t\t$model=DProcessoDisciplinar::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=Stone::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=Store::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=PegawaiM::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=Solicitudes::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=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}", "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\t{\n\t\t$model=Pagosconceptos::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 abstract function find($primary_key, $model);", "public function loadModel($id)\n\t{\n\t\t$model=CerDoc::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=JobSummary::model()->findByPk($id);\n \n \n \n \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 = InfoSpares::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\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 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){\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 loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=Image::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=Image::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Pegawai::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=Customer::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=Cooperativepartner::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=Services::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=Gejala::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()\n\t{\n\t\tif( $this->_model===null )\n\t\t{\n\t\t\t$itemName = $this->getItemName();\n\t\t\t\n\t\t\tif( $itemName!==null )\n\t\t\t{\n\t\t\t\t$this->_model = $this->_authorizer->authManager->getAuthItem($itemName);\n\t\t\t\t$this->_model = $this->_authorizer->attachAuthItemBehavior($this->_model);\n\t\t\t}\n\n\t\t\tif( $this->_model===null )\n\t\t\t\tthrow new CHttpException(404, Rights::t('core', 'The requested page does not exist.'));\n\t\t}\n\n\t\treturn $this->_model;\n\t}", "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=Roomclosure::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=CollectionShop::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=Product::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=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\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\t{\n\t\t$model=Student::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,Yii::t('common','The requested page does not exist.'));\n\t\treturn $model;\n\t}", "protected function getModel($key)\n {\n\n if (isset($this->models[$key]))\n return $this->models[$key];\n else\n return null;\n\n }", "public function loadModel($id)\n\t{\n\t\t$model = Exam::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 = Carrer::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=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=Pedido::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=Pedido::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=Task::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 = Item::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=Question::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}" ]
[ "0.6996477", "0.6963233", "0.6856193", "0.6704138", "0.6648857", "0.6641502", "0.6635867", "0.6626205", "0.6623007", "0.66175824", "0.66135395", "0.6612504", "0.6558181", "0.65574646", "0.6542536", "0.6541095", "0.6534296", "0.65331244", "0.6527437", "0.65267116", "0.6522443", "0.64879304", "0.6485056", "0.6478685", "0.64770067", "0.644847", "0.6441299", "0.64374155", "0.64317816", "0.64313596", "0.6428823", "0.64288104", "0.6427044", "0.6426765", "0.64123267", "0.6412133", "0.64072937", "0.63948447", "0.63948447", "0.639207", "0.63920605", "0.6391316", "0.63863933", "0.63792247", "0.63779837", "0.63769305", "0.6375361", "0.6375098", "0.6372224", "0.63712597", "0.6370786", "0.63704747", "0.6370239", "0.6364749", "0.63633734", "0.6361709", "0.6360619", "0.6360411", "0.63589936", "0.6356885", "0.6354105", "0.6343862", "0.6335678", "0.63355213", "0.6332622", "0.63305813", "0.6329704", "0.6328517", "0.63278997", "0.63270485", "0.6322456", "0.63203", "0.63193387", "0.631748", "0.6314646", "0.6309444", "0.630892", "0.63079095", "0.63079095", "0.6307824", "0.6306923", "0.6304451", "0.6300813", "0.63003373", "0.63003206", "0.6296652", "0.62958294", "0.6294664", "0.6293868", "0.62913525", "0.6291299", "0.6289672", "0.628892", "0.628885", "0.628771", "0.6281713", "0.6280927", "0.6280927", "0.6279838", "0.62787414", "0.6276112" ]
0.0
-1
Performs the AJAX validation.
protected function performAjaxValidation($model) { if(isset($_POST['ajax']) && $_POST['ajax']==='menu-items-form') { echo CActiveForm::validate($model); Yii::app()->end(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajaxValidationAction()\n {\n if($this->_request->getPost('ajax_submit',false, Request::FILTER_INT))\n $result = 'ok_ajax';\n else\n $result = 'ok';\n $messages = array();\n\n if(!$this->validate())\n {\n $this->collectValidateErrors(); \n foreach($this->_view->getFormErrors() as $k => $v)\n {\n $messages['__data'.$k] = $v;\n }\n $result = 'error';\n }\n $tpl = '';\n if($result == 'error')\n {\n $tpl = $this->fetchElementTemplate('messages_summary');\n }\n $this->_view->sendJson( array('result'=>$result, 'messages'=>$messages, 'tpl'=>$tpl) );\n }", "public function ajaxValidation()\n {\n if (!Yii::$app->request->isPost)\n return;\n\n if (!Yii::$app->request->isAjax)\n return;\n\n //Bu, PJAX formalarda uchun kerak\n //shu holatda, postValidation ishlaydi\n if (Yii::$app->request->isPjax)\n return;\n\n if (!$this->load(Yii::$app->request->post())) {\n throw new NotFoundHttpException();\n }\n\n $response = Yii::$app->response;\n $response->format = Response::FORMAT_JSON;\n $result = ActiveForm::validate($this);\n if ($result !== null) {\n $response->data = $result;\n }\n\n Yii::$app->end();\n }", "protected function performAjaxValidation($model)\n\t{\n \n\t//\tif(isset($_REQUEST['ajax']) && $_REQUEST['ajax']==='admission-form')\n\t//\t{\n // echo \"Bismillah Hir Rahmanur Rahim\";\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t//\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n \n\t//\tif(isset($_REQUEST['ajax']) && $_REQUEST['ajax']==='admission-form')\n\t//\t{\n // echo \"Bismillah Hir Rahmanur Rahim\";\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t//\t}\n\t}", "public function validate()\n {\n // Tipo de validación\n $type = $this->request->get('type');\n $type = ($type == 'email') ? 'email' : 'username';\n \n Core::getService('account.validate')->$type($this->request->get('value'));\n $status = 'taken';\n \n if (Core_Error::isPassed())\n {\n $status = 'ok'; \n }\n \n $this->call(\"var obj = $('#\" . $this->request->get('obj') . \"'); signup.show_status(obj, '{$status}');\");\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='docingresados-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='entry-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='respuestas-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='departamento-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'listing-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='doheader-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='dodetail-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif (isset ( $_POST ['ajax'] ) && $_POST ['ajax'] === 'whitelist-form')\n\t\t{\n\t\t\techo CActiveForm::validate ( $model );\n\t\t\tYii::app ()->end ();\n\t\t}\n\t}", "public function ajax_email(){\n\t\t//loading the form validation library\n\t\t$this->load->library('form_validation');\n\t\t//validation rules\n\t\t$this->form_validation->set_rules('em', 'Email', 'valid_email');\n\t\t//check the validation throws any errors\n\t\tif ($this->form_validation->run() == FALSE)\n\t\t{\n\t\t\t//echoing the respond to the div that specified in the javascript\n\t\t\techo 'Invalid Email';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//echoing the respond to the div that specified in the javascript\n\t\t\techo 'Valid';\n\t\t}\n\t}", "public function performAjaxValidation($model)\r\n {\r\n if (isset($_POST['ajax']))\r\n Y::end(CActiveForm::validate($model));\r\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='request-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='pagosconceptos-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n {\n if(isset($_POST['ajax']) && $_POST['ajax']==='domain-form')\n {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='page-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='page-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='page-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model){\r\r\n\r\r\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='facturas-form'){\r\r\n\t\t\techo CActiveForm::validate($model);\r\r\n\t\t\tYii::app()->end();\r\r\n\t\t}\r\r\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='points-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'alocacao-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='donantes-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'consultor-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='announce-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='premium-ad-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'incoming-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='pedido-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='pedido-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='recargas-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'pago-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='residencebaseinfo-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='pago-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='pago-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'qircomentario-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='citas-reservada-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='talonario-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='materia-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'starGreetings-greeting-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "function admin_validate_data_ajax(){\n\t\t$this->layout = \"\";\n\t\t$this->autoRender = false;\n\t\tif($this->RequestHandler->isAjax()){\n\t\t\t$errors_msg = null;\n\t\t\t$data = $this->data;\n\t\t\tif(isset($this->data['Vendor']['id'])){\n\t\t\t\t$data['Vendor']['id'] = DECRYPT_DATA($data['Vendor']['id']);\n\t\t\t}\n\t\t\t\n\t\t\t$errors = $this->Vendor->validate_data($data);\n\t\t\t\n\t\t\tif ( is_array ($this->data) ){\n\t\t\t\tforeach ($this->data['Vendor'] as $key => $value ){\n\t\t\t\t\tif( array_key_exists ( $key, $errors) ){\n\t\t\t\t\t\tforeach ( $errors [ $key ] as $k => $v ){\n\t\t\t\t\t\t\t$errors_msg .= \"error|$key|$v\";\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$errors_msg .= \"ok|$key\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t \n\t\t\t}\n\t\t\techo $errors_msg;die();\n\t\t}\t\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='solicitudes-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'registration-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'inmueble-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='request-fuel-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='gejala-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='invoice-penjualan-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='stone-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'beneficiario-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n {\n if (isset($_POST['ajax']) && $_POST['ajax']==='nota-fiscal-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='Review-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='object-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='dias-letivos-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'live-in-mission-carers-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='posting-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='dprocesso-disciplinar-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_GET['layout'])){\n\t\t\t$this->layout = $_GET['layout'];\n\t\t}\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='users-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='indicadores-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='mentor-post-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "function clientContactValidateAction()\n\t{\n\t\tif($this->_request->isPost() && $_SERVER['HTTP_X_REQUESTED_WITH']=='XMLHttpRequest')\n\t\t{\n\t\t\t$request = $this->_request->getParams();\n\t\t\t$contact_email = $request['cemail'];\n\t\t\t$prev_email = $request['pemail'];\n\t\t\t$edit = $request['edit'];\n\t\t\t$client_obj = new Ep_User_Client();\n\t\t\techo $client_obj->checkContact($contact_email,$edit,$prev_email);\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='el-bez-quests-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='pedidos-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='spam-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='vacancies-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='estudiante-evaluacion-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='basic-definition-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='film-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='results-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='roomclosure-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'planos-alimentares-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function runValidate()\n {\n Validate::run($this->request);\n }", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'donneur-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "function admin_validate_edit_cms_ajax(){\r\r\n\t\t\r\r\n\t\t$this->layout = \"\";\r\r\n\t\t$this->autoRender = false;\r\r\n\t\tif($this->RequestHandler->isAjax()){\r\r\n\t\t\t$errors_msg = null;\r\r\n\t\t\tApp::import('Model','CmsPage');\r\r\n\t\t\t$this->CmsPage = new CmsPage();\r\r\n\t\t\t\r\r\n\t\t\t$data = $this->data;\r\r\n\t\t\tif(isset($data['CmsPage']['id'])){\r\r\n\t\t\t\t$data['CmsPage']['id'] = DECRYPT_DATA($data['CmsPage']['id']);\r\r\n\t\t\t}\r\r\n\t\t\t$errors = $this->CmsPage->valid_edit_cms($data);\r\r\n\t\t\tif ( is_array ( $this->data ) ){\r\r\n\t\t\t\tforeach ($this->data['CmsPage'] as $key => $value ){\r\r\n\t\t\t\t\tif( array_key_exists ( $key, $errors) ){\r\r\n\t\t\t\t\t\tforeach ( $errors [ $key ] as $k => $v ){\r\r\n\t\t\t\t\t\t\t$errors_msg .= \"error|$key|$v\";\r\r\n\t\t\t\t\t\t}\t\r\r\n\t\t\t\t\t}else {\r\r\n\t\t\t\t\t\t$errors_msg .= \"ok|$key\\n\";\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\techo $errors_msg;\r\r\n\t\t\tdie();\r\r\n\t\t}\t\r\r\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='providers-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "function ajax_validate_save_post()\n {\n }", "protected function performAjaxValidation($model) {\n //echo 'si cae';exit;\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'schedule-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model) {\n\t\tif (\n\t\t\tisset($_POST['ajax']) && \n\t\t\t$_POST['ajax']==='user-form'\n\t\t) {\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n\t\tif (isset($_POST['ajax']) && $_POST['ajax'] === 'zona-educativa-form') {\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax'] === 'classes-form') {\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='share-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='publisher-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'list-contact-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model) {\n\t\tif (isset($_POST['ajax']) && $_POST['ajax'] === 'terms-form') {\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='content-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'cotizador-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'nube-factura-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='purchase-header-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='penjaminpasien-m-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'unidad-resp-ticket-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'pid-approval-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'aviso-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='articulos-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='employee-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'fddemandreceipt-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='gzterimabahanmakan-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='contractor-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='campaign-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'recruit-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'carrer-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model) {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'plantel-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }", "protected function performAjaxValidation($model)\n\t{\n\t\tif(isset($_POST['ajax']) && $_POST['ajax']==='temples-form')\n\t\t{\n\t\t\techo CActiveForm::validate($model);\n\t\t\tYii::app()->end();\n\t\t}\n\t}" ]
[ "0.79766375", "0.7535804", "0.6860131", "0.6860131", "0.6833871", "0.6784885", "0.6775202", "0.67711323", "0.6764112", "0.6737663", "0.67355454", "0.6724824", "0.67199975", "0.6704958", "0.66932213", "0.6688998", "0.66856104", "0.6685253", "0.6685253", "0.6685253", "0.6684122", "0.66835374", "0.667292", "0.66677856", "0.66630244", "0.6655108", "0.66525847", "0.66509473", "0.6648977", "0.6648977", "0.66484463", "0.664732", "0.664309", "0.66414714", "0.66414714", "0.6641052", "0.6640937", "0.66408783", "0.66408616", "0.6637236", "0.66364473", "0.66305506", "0.6629554", "0.662805", "0.66273016", "0.66254425", "0.6623703", "0.6623457", "0.6622179", "0.6619359", "0.66117007", "0.66110605", "0.6610798", "0.6607507", "0.6606362", "0.660558", "0.6603507", "0.6601762", "0.6601645", "0.66008556", "0.6600299", "0.6599498", "0.6597717", "0.6597152", "0.65953803", "0.6594512", "0.6594301", "0.65940595", "0.6589112", "0.65874445", "0.6587396", "0.6586238", "0.6585987", "0.6585833", "0.65855193", "0.65854985", "0.65795213", "0.65791273", "0.6579109", "0.6577812", "0.65758437", "0.65751547", "0.6573167", "0.6572345", "0.6571965", "0.65713406", "0.6571003", "0.6570696", "0.6569799", "0.65693045", "0.65690905", "0.65669453", "0.65652615", "0.6564998", "0.6564873", "0.65645194", "0.6564518", "0.65632385", "0.65625596", "0.6561483", "0.65613127" ]
0.0
-1
Returns true if and only if $value meets the validation requirements If $value fails validation, then this method returns false, and getMessages() will return an array of messages that explain why the validation failed.
public function isValid($value, $context = null) { $value = (string)$value; if(is_array($context)) { if(isset($context['password']) && $value == $context['password'] ){ return true; } }elseif(is_string($context) && $value == $context ){ return true; }else{ $this->_error(self::NOT_MATCH); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validate($value)\n {\n if ($this->isOptional && is_null($value)) {\n return true;\n }\n\n if ($this->isArray) {\n return $this->validateArray($value);\n }\n\n if ($this->isFixedValues) {\n return $this->validateFixedValues($value);\n }\n\n return $this->validateValue($value);\n }", "public function validate(&$value){\n $required = (get::array_def($this->attributes, 'required', false) == 'required');\n $maxlength = get::array_def($this->attributes, 'maxlength', 0);\n $msglbl = get::array_def($this->attributes, 'msglbl', get::array_def($this->attributes, 'name', $this->getId()));\n \n if( $required && (!isset($value) || strlen(trim($value)) < 1) )\n return sprintf('\"%s\" is a required field.', $msglbl);\n \n if( $maxlength > 0 && strlen(trim($value)) > $maxlength )\n return sprintf('\"%s\" has to many characters - the max length is %s.', $msglbl, $maxlength);\n \n return true;\n }", "public function isValid($value)\n {\n $result = true;\n $this->_clearMessages();\n\n /** @var $validator \\Zend_Validate_Interface */\n foreach ($this->_validators as $element) {\n $validator = $element['instance'];\n if ($validator->isValid($value)) {\n continue;\n }\n $result = false;\n $this->_addMessages($validator->getMessages());\n if ($element['breakChainOnFailure']) {\n break;\n }\n }\n\n return $result;\n }", "public function check($value)\n {\n $checkResult = ['passed' => true, 'message' => \"has value '$value'\"];\n if ($this->nullable && $value === null) {\n $checkResult['passed'] = true;\n $checkResult['message'] = \"has value '$value'\";\n } elseif (!$this->nullable && $value === null) {\n $checkResult['passed'] = false;\n $checkResult['message'] = 'value is null';\n } elseif (!$this->checkIsBoolean($value)) {\n $checkResult['passed'] = false;\n $checkResult['message'] = \"value $value is not boolean\";\n }\n return $checkResult;\n }", "public function isValid($value) {\n\t\t$this->errors = array();\n\t\t\n\t\tif(is_null($value) || $value === '') {\n\t\t\treturn TRUE;\n\t\t}\n\t\n\t\t$this->addError('This value should be empty.', 1316198501);\n\t\treturn FALSE;\n\t}", "protected function isValid($value)\n {\n if ($value !== $this->options['expectedValue']) {\n $this->addError('The given value is expected to be %1$s.', 1361044943, [$this->options['expectedValue'] ? 'true' : 'false']);\n }\n }", "public function getIsValidValue($value)\r\n {\r\n return true;\r\n }", "public function isValid($value) {\n\n $validator = new Regex($this->options['pattern']);\n\n $valid = $validator->isValid($value);\n \n if(!$valid){\n $this->error($this->options['message']);\n }\n \n return $valid;\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_SUCCESS,self::VALUE_FAILURE,self::VALUE_WARNING,self::VALUE_PARTIALFAILURE));\n\t}", "protected function checkIsValid($value)\n\t{\n\t\tif (!$this->validators) {\n\t\t\treturn true;\n\t\t}\n\n\t\tforeach ($this->validators as $x) {\n\t\t\t$validator = $x[0];\n\t\t\t$break_on_invalid = $x[1];\n\n\t\t\tif (!$validator->isValid($value)) {\n\n\t\t\t\t$this->errors = array_merge($this->errors, $validator->getErrors());\n\t\t\t\t$this->errors_info = array_merge($this->errors_info, $validator->getErrorsInfo());\n\n\t\t\t\tif ($break_on_invalid) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!$this->errors) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function check($value)\n {\n $checkResult = ['passed' => true, 'message' => \"has value '$value'\"];\n if ($this->nullable && $value === null) {\n $checkResult['passed'] = true;\n $checkResult['message'] = \"has value '$value'\";\n } elseif (!$this->nullable && $value === null) {\n $checkResult['passed'] = false;\n $checkResult['message'] = 'value is null';\n } elseif (!is_string($value) ) {\n $checkResult['passed'] = false;\n $checkResult['message'] = \"value '$value' is not string\";\n } elseif ($this->min && strlen($value) < $this->min) {\n $checkResult['passed'] = false;\n $checkResult['message'] = \"string length of '$value' is less then minimum length $this->min\";\n } elseif ($this->max && strlen($value) > $this->max) {\n $checkResult['passed'] = false;\n $checkResult['message'] = \"string length of '$value' is greater then maximum length $this->max\";\n } elseif ($this->regex && preg_match($this->regex, $value) !== 1) {\n $checkResult['passed'] = false;\n $checkResult['message'] = \"string '$value' does not matches to pattern '$this->regex'\";\n } elseif (count($this->enum) > 0 && !in_array($value, $this->enum)) {\n $checkResult['passed'] = false;\n $enumAsString = implode(',', $this->enum);\n $checkResult['message'] = \"string '$value' is not in set of possible values '$enumAsString'\";\n }\n return $checkResult;\n }", "public function validate($value) {\n return TRUE;\n }", "public function validate($value)\n {\n if (null === $value) return false;\n if (empty($value)) return false;\n return true;\n }", "public function isValid($value)\n {\n $this->_setValue($value);\n\n if ($this->_assertValue !== $value) {\n $this->_error(self::ASSERT_FAILED_MSG);\n return false;\n }\n return true;\n }", "public function isValid($value)\r\n {\r\n return true;\r\n }", "public function check($value)\n {\n if ($value && !empty($value)) {\n return true;\n }\n $this->setError($this->message);\n return false;\n }", "public function isValid($value)\n {\n if (!$value) {\n $this->error(self::MISSING_VALUE);\n return false;\n }\n\n $response = $this->getService()->verify($value);\n\n if ($response->getStatus() === true) {\n return true;\n }\n\n $this->error(self::ERR_CAPTCHA);\n return false;\n }", "public function validate($value)\n {\n return $this->doValidate($value);\n }", "public static function isValid($value): bool;", "public function validate($value) {\n return $value == $this->filter($value) ? $value : Filter::ERR_INVALID;\n }", "public function Validate($value)\n\t{\n\t\ttry \n\t\t{\n\t\t\t$value = IValidator::GetInstance()->Validate($this->label, $value, $this->rules);\n\t\t\tif(!$this->HasRule('skip'))\n\t\t\t{\n\t\t\t\t$this->value = $value;\n\t\t\t}\n\t\t}\n\t\tcatch(ArgumentException $e)\n\t\t{\n\t\t\t//trace($e);\n\t\t\t$this->errors[] = $e->getMessage();\n\t\t}\n\t\t\n\t\t$this->status = $this->errors==null ? self::StatusValid : self::StatusError;\n\t\treturn $this->status == self::StatusValid;\n\t}", "public static function valueIsValid($_value)\n {\n return in_array($_value,array(MicrobiltEnumSeverity_Type::VALUE_ERROR,MicrobiltEnumSeverity_Type::VALUE_WARN,MicrobiltEnumSeverity_Type::VALUE_INFO));\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_NOTCOMPLETE,self::VALUE_COMPLETE));\n\t}", "public function isValid($value)\n {\n return $value === $this->getValue();\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }", "public function check($value): bool\n {\n $minSize = $this->parameter('min_size');\n $maxSize = $this->parameter('max_size');\n $allowedTypes = $this->parameter('allowed_types');\n\n if ($allowedTypes) {\n $or = $this->validation ? $this->validation->getTranslation('or') : 'or';\n $this->setParameterText('allowed_types', Helper::join(Helper::wraps($allowedTypes, \"'\"), ', ', \", {$or} \"));\n }\n\n // below is Required rule job\n if (!$value->isValid()) {\n return true;\n }\n\n if ($minSize) {\n $bytesMinSize = $this->getBytesSize($minSize);\n if ($value->getSize() < $bytesMinSize) {\n $this->setMessage('The :attribute file is too small, minimum size is :min_size');\n\n return false;\n }\n }\n\n if ($maxSize) {\n $bytesMaxSize = $this->getBytesSize($maxSize);\n if ($value->getSize() > $bytesMaxSize) {\n $this->setMessage('The :attribute file is too large, maximum size is :max_size');\n\n return false;\n }\n }\n\n if (!empty($allowedTypes)) {\n $guesser = new MimeTypeGuesser;\n $ext = $guesser->getExtension($value->getClientMimeType());\n unset($guesser);\n\n if (!in_array($ext, $allowedTypes)) {\n $this->setMessage('The :attribute file type must be :allowed_types');\n\n return false;\n }\n }\n\n return true;\n }", "public function validate($value)\n {\n\n $hasError = false;\n $results = array();\n foreach ($this->validators as $key => $validator) {\n if ($value != null) {\n $result = $validator->validate($value);\n $results[$key] = $result;\n if ($result->isValid() == false) {\n $hasError = true;\n }\n } else {\n if ($validator->isRequired() == true) {\n $hasError = true;\n }\n }\n }\n if ($hasError == false) {\n $result = $this->createResult(true, $this->messages['default']);\n } else {\n $result = $this->createResult(false, $this->messages['default']);\n }\n $result->setResults($results);\n\n return $result;\n\n }", "public function validate($value)\n\t{\n\t\treturn ($value === null);\n\t}", "public function isValid($value)\r\n\t{\r\n\t\t$this->value = $value;\r\n\t\t$this->valid = true;\r\n\r\n\t\tif ($value == $this->default) {\r\n\t\t\tif ($this->required) {\r\n\t\t\t\t$this->error_message = sprintf(t('element_required'), $this->getLabel());\r\n\t\t\t\t$this->valid = false;\r\n\t\t\t\treturn $this->valid;\r\n\t\t\t} else {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!isset($this->options[$value])) {\r\n\t\t\t$this->valid = false;\r\n\t\t}\r\n\r\n\t\treturn $this->valid;\r\n\t}", "public function isValid($value) {\n\t\t$result = TRUE;\n\n\t\t$captchaAdapter = $this->captchaAdapterFactory->getCaptchaAdapter($this->options['type']);\n\t\tif (!$captchaAdapter->isValid($value)) {\n\t\t\t$result = FALSE;\n\t\t\t$this->errors = $captchaAdapter->getErrors();\n\t\t}\n\n\t\treturn $result;\n\t}", "public function isValid($value);", "public function isValid($value);", "public function validate($value) {\n\t\t$isValid = false;\n\n\t\tif (is_scalar($value)) {\n\t\t\t$isValid = ($this->isValidCommonNotation($value)\n\t\t\t\t|| $this->isValidDotNotation($value)\n\t\t\t\t|| $this->isValidScientificNotation($value));\n\t\t}\n\n\t\tif (!$isValid) {\n\t\t\t$this->error($this->messageInvalid, $this->stringify($value));\n\t\t}\n\n\t\treturn $isValid;\n\t}", "public function validate ( $mValue )\n {\n return true;\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_NEGATIVEFEEDBACKRECEIVED,self::VALUE_UNPAIDITEMDISPUTE,self::VALUE_BADEMAILTEMPLATE,self::VALUE_CUSTOMCODE));\n\t}", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_CHECKING,self::VALUE_SAVINGS));\n\t}", "public static function isValidValue($value)\n {\n return in_array($value, self::getValues());\n }", "public function checkRequired($value,$messages) {\r\n if($value==\"\")\r\n return $messages;\r\n }", "public function validate( $value )\n\t{\n\t\treturn $value < $this->max;\n\t}", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_CREATED,self::VALUE_DROPPEDOFF,self::VALUE_INTRANSIT,self::VALUE_DELIVERED,self::VALUE_RETURNED,self::VALUE_CANCELED,self::VALUE_LABELPRINTED,self::VALUE_UNCONFIRMED,self::VALUE_UNKNOWN,self::VALUE_ERROR,self::VALUE_CUSTOMCODE));\n\t}", "abstract public function validate(\n $value\n ): bool;", "public function isValid($value)\n {\n $this->setValue($value);\n\n $typeIntegerValidator = new TypeIntegerValidator();\n\n if (!$typeIntegerValidator->isValid($value)) {\n $this->error(self::INVALID_TYPE);\n\n return false;\n }\n\n $options = [\n 'min' => 0,\n 'max' => PHP_INT_MAX,\n 'inclusive' => true,\n ];\n\n $betweenValidator = new BetweenValidator($options);\n\n if (!$betweenValidator->isValid($value)) {\n $this->error(self::INVALID_RANGE);\n\n return false;\n }\n\n return true;\n }", "public function validate($value): bool\n {\n if (!array_key_exists($this->password, $this->data)) {\n return false;\n }\n if ($this->data[$this->password] !== $value) {\n return false;\n }\n return true;\n }", "public function isValid($value)\n\t{\n\t\t/**\n\t\t * @var BaseService\n\t\t */\n if(is_array($value) && !empty($value)) {\n foreach($value as $item) {\n\t if(!preg_match($this->options['regex'], $item)) {\n\t\t $this->error(self::REGEX_FAIL);\n\t\t return false;\n\t }\n }\n } else {\n if(empty(trim($value))) {\n $this->error(self::ENTER_VALUE);\n return false;\n }\n }\n\n\t\treturn true;\n\t}", "public function validate($value)\n {\n $multi_select_enabled = $this->getField()->getOption('multiple', false);\n $allowed_options = $this->getField()->getOption('options', array());\n\n if ($multi_select_enabled) {\n if (!is_array($value) && !empty($value)) {\n return false;\n } elseif (is_array($value)) {\n foreach ($value as $option) {\n if (!$this->validateOptionValue($option)) {\n return false;\n }\n }\n }\n } else {\n if (!is_scalar($value)) {\n return false;\n } else {\n if (!$this->validateOptionValue($value)) {\n return false;\n }\n }\n }\n\n return true;\n }", "protected function isValidValue($value)\n {\n return (!(is_null($value) || empty($value)));\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_SUCCESS,self::VALUE_PENDING,self::VALUE_INVALIDURL,self::VALUE_INVALIDPROTOCOL,self::VALUE_INVALIDFILE,self::VALUE_SERVERDOWN,self::VALUE_IMAGENONEXISTENT,self::VALUE_IMAGEREADTIMEOUT,self::VALUE_INVALIDFILEFORMAT,self::VALUE_IMAGEPROCESSINGERROR,self::VALUE_CUSTOMCODE));\n\t}", "protected function isValid($value)\n {\n $token = $this->userTokenService->getToken($value, $this->options['tokenType']);\n\n if (!$token) {\n $this->addError(\n $this->translateErrorMessage(\n 'validator.userTokenValidator.expired',\n 'nl_auth'\n ),\n 1515975493\n );\n return false;\n }\n\n $findMethod = $this->options['findMethod'];\n\n $user = $this->frontendUserRepository->$findMethod($token['uid']);\n\n if (!$user) {\n $this->addError(\n $this->translateErrorMessage(\n 'validator.userTokenValidator.invalid',\n 'nl_auth'\n ),\n 1515975644\n );\n return false;\n }\n\n if ($this->options['hmacBy']) {\n $hmacProperty = ObjectAccess::getPropertyPath($user, $this->options['hmacBy']);\n\n if (!$this->hashService->validateHmac($hmacProperty, $token['hmac'])) {\n $this->addError(\n $this->translateErrorMessage(\n 'validator.userTokenValidator.expired',\n 'nl_auth'\n ),\n 1515975493\n );\n return false;\n }\n }\n\n return true;\n }", "public function run($value)\n {\n \t$this->_failed_index = null;\n\t\tforeach($this->_items as $index=>$validator)\n\t\t{\n\t\t\tif(FALSE === $validator->isValid($value))\n\t\t\t{\n\t\t\t\t$this->_failed_index = $index;\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\t\treturn TRUE;\n }", "function validate()\n {\n if ( $this->options['required'] && $this->value == '' )\n {\n $this->validationError = $this->label . ' is required!';\n fWarn::getInstance()->add('Validation failed for ' . $this->name . ', field is required.');\n return false;\n }\n if ( isset($this->regex) )\n {\n $return = preg_match($this->regex, $this->value);\n if ( !$return )\n $this->fDebug->add('Could not validate \"' . $this->value . '\" against \"' . $this->regex . '\"', 1);\n return $return;\n }\n return true;\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_ASKSELLERQUESTION,self::VALUE_RESPONSETOASQQUESTION,self::VALUE_CONTACTEBAYMEMBER,self::VALUE_CONTACTTRANSACTIONPARTNER,self::VALUE_RESPONSETOCONTACTEBAYMEMBER,self::VALUE_CONTACTEBAYMEMBERVIACOMMUNITYLINK,self::VALUE_CUSTOMCODE,self::VALUE_ALL,self::VALUE_CONTACTMYBIDDER,self::VALUE_CONTACTEBAYMEMBERVIAANONYMOUSEMAIL,self::VALUE_CLASSIFIEDSCONTACTSELLER,self::VALUE_CLASSIFIEDSBESTOFFER));\n\t}", "public static function isValueValid($value)\n {\n return in_array($value, self::getConstants());\n }", "public function isValueValid($value) {\n\t\treturn $value instanceof Type\\PropertyValueType || $value instanceof DataType\\TextType || $value instanceof DataType\\URLType;\n\t}", "function isValid() {\n return $this->validator ? $this->validator->isValid($this->value) : true;\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_INCHECKOUT,self::VALUE_PRECHECKOUT));\n\t}", "protected function checkValue() {\n if($this->required) {\n if($this->regularExpression) {\n if(preg_match($this->regularExpression, $this->value)) {\n $returnValue = TRUE;\n } else {\n $returnValue = FALSE;\n $this->error = TRUE;\n }\n } elseif($this->callBack) {\n if(call_user_func($this->callBack, $this->value)) {\n $returnValue = TRUE;\n } else {\n $returnValue = FALSE;\n $this->error = TRUE;\n }\n } elseif(!(bool)$this->value) {\n $returnValue = FALSE;\n } else {\n $returnValue = TRUE;\n }\n } else {\n $returnValue = TRUE;\n }\n\n return $returnValue;\n }", "protected function validateValue($value) {\n\n $isValid = false;\n if (is_null($value) || empty($value)) {\n $isValid = false;\n Yii::debug('Transferred token in null or empty', __METHOD__);\n } else {\n $response = $this->verifyCaptcha($value);\n if (!isset($response['success']) && isset($response['hostname'])) {\n if ($this->checkHost && $response['hostname'] !== Yii::$app->request->hostName) {\n throw new Exception('Invalid reCaptcha verify response.');\n }\n }\n if ($response['success'] === true) {\n $isValid = true;\n } else {\n if (isset($response['error-codes'])) {\n Yii::debug($response['error-codes'], __METHOD__);\n }\n }\n }\n\n // Flip the value where `null` should mean no validation errors\n return $isValid ? null : [$this->message, []];\n }", "public function isValid($value)\n {\n $this->_setValue($value);\n\n // tolerate empty values\n if (!isset($value)) {\n return true;\n }\n\n // ensure that only string values are valid.\n if (is_numeric($value)) {\n $value = (string) $value;\n }\n if (!is_string($value)) {\n $this->_error(static::INVALID_TYPE);\n return false;\n }\n\n // validate permitted characters, but do not complain about unset values\n if (preg_match(\"/[^a-z0-9_\\- ]/i\", $value)) {\n $this->_error(self::ILLEGAL_CHARACTERS);\n return false;\n }\n\n return true;\n }", "function validate()\n\t{\n\t\t$result = true;\n\t\tif ($this->required && !$this->value) { $result = false; }\n\n\t\tif (!$result) { $this->error = '*'; }\n\n\t\treturn $result;\n\t}", "protected function validateValue($value)\n {\n $number = preg_replace('/[^0-9]/', '', $value); // strip non numeric characters\n if (empty($this->typeValue) || empty($this->_cards) || empty($this->_cards[$this->typeValue])) {\n return [$this->invalidTypeMessage, ['number' => $number]];\n }\n if (!$this->validCard($number)) {\n return [$this->message, ['number' => $number]];\n }\n if ($this->validateHolder && !$this->isValidHolder()) {\n return [$this->invalidHolderMessage, ['holder' => $this->holderValue, 'holder']];\n }\n if ($this->validateExpiry && !$this->isValidExpiry()) {\n return [$this->invalidExpiryMessage, ['expiry' => $this->getExpiryDate()], ['expiryMonth', 'expiryYear']];\n }\n if ($this->validateCVV && !$this->isValidCVV()) {\n return [$this->invalidCVVMessage, ['cvv' => $this->cvvValue], 'cvv'];\n }\n return null;\n }", "public function isValid()\n {\n $value = $this->getValue();\n $skipValidation = false;\n $this->_errors = array();\n $valid = true;\n\n // Skip validation if the value is empty and the element is not required\n if (!$this->hasValidator('required')) {\n if (is_array($value)) {\n $skipValidation = true;\n foreach (array_values($value) as $av) {\n if ($av !== null && $av !== '') {\n $skipValidation = false;\n break;\n }\n }\n } elseif ($value === '' || $value === null) {\n $skipValidation = true;\n }\n }\n\n // Skip validation if the element is conditionally hidden\n if ($this->isConditionallyHidden()) {\n $skipValidation = true;\n }\n\n if (!$skipValidation) {\n $validators = $this->getValidators();\n foreach ($validators as $validator) {\n if ($validator->isValid($value)) {\n continue;\n } else {\n $errors = $validator->getMessages();\n $valid = false;\n }\n\n $this->_errors = array_merge($this->_errors, $errors);\n }\n\n $valid = apply_filters('iphorm_element_valid', $valid, $value, $this);\n $valid = apply_filters('iphorm_element_valid_' . $this->getName(), $valid, $value, $this);\n }\n\n return $valid;\n }", "private function assert($value): bool {\n\n //Assertion::notEmpty($value); // Must not be empty\n Assertion::minLength($value, self::MIN_LENGTH); // Must be at least 5 characters\n Assertion::maxLength($value, self::MAX_LENGTH); // Must be less than 10 characters\n Assertion::regex(self::FORMAT); // Must follow a format of alphanumeric characters or underscores\n return true;\n }", "public function validate($value) {\n\t\tif ($this->required && empty($value) && $value !== '0') {\n\t\t\tthrow new ValidationException(elgg_echo('validation:error:required'));\n\t\t}\n\n\t\tif (empty($value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ($this->type === 'email') {\n\t\t\t$email = new EmailValidator();\n\t\t\t$email->validate($value);\n\t\t}\n\n\t\tif ($this->type === 'url') {\n\t\t\t$email = new UrlValidator();\n\t\t\t$email->validate($value);\n\t\t}\n\n\t\t$length = new LengthValidator($this->minlength, $this->maxlength);\n\t\t$length->validate($value);\n\n\t\t$number = new NumberValidator($this->min, $this->max);\n\t\t$number->validate($value);\n\t}", "public function validate($value) {\n return preg_match($this->options[\"pattern\"], $value) ? $value : Filter::ERR_INVALID;\n }", "protected function applyValidators(string $value): bool\n {\n // first check whether form data is required\n // if not, then empty strings or null values are considered valid\n\n if(!$this->required && $value === '') {\n return true;\n }\n\n // handle a required checkbox separately\n\n if($this->required) {\n if ($this instanceof CheckboxElement) {\n if (!$this->getChecked()) {\n return false;\n }\n } else if ($value === '') {\n return false;\n }\n }\n\n // fail at the very first validator that does not validate\n\n foreach($this->validators as $validator) {\n\n if($validator instanceof \\Closure) {\n\n if(!$validator($value)) {\n return false;\n }\n }\n\n else if($validator instanceof ConstraintInterface) {\n\n if(!$validator->validate($value)) {\n return false;\n }\n }\n\n else if(!preg_match($validator, $value)) {\n return false;\n }\n }\n\n // assume validity when no previous validator failed\n\n return true;\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_RECEIVED,self::VALUE_INPROCESS,self::VALUE_PROCESSED,self::VALUE_CUSTOMCODE));\n\t}", "public static function validate($value);", "public function isValid($value) {\n return $this->in_array_r($value, $this->haystack);\n }", "public function isValid($value)\n {\n $regex = new Zend_Validate_Regex('/^.{3,50}$/');\n if (!$regex->isValid($value)) {\n $this->_error(null, $value);\n return false;\n }\n\n return true;\n }", "public function passes($attribute, $value):bool\n {\n //проверить что это массив уникальных значений\n if(!is_array($value)){\n $this->message = 'The field must be an array';\n return false;\n }\n //проверить массив на уникальность значений\n if(!($value === array_unique($value))){\n $this->message = 'The field must contain only unique values';\n return false;\n }\n //проверка на наличие неподдерживаемых элементов\n foreach($value as $m){\n if(array_search($m, config('senderman.supportedMessengers')) === false){\n $this->message = \"The field contains unsupported value: {$m}\";\n return false;\n }\n }\n\n return true;\n }", "private function isValidate($value)\n {\n phpFox::isUser(true);\n\n $strErr = \"\";\n if (empty($value['title']))\n $strErr .= Phpfox::getPhrase('musicsharing.please_enter_album_name') . '<br />';\n\n if (isset($_FILES['album_image']) && !empty($_FILES['album_image']['name']))\n {\n $image = $_FILES['album_image']['type'];\n\n if (!in_array($image, array(\"image/gif\", \"image/jpeg\", \"image/pjpeg\", \"image/png\")))\n {\n $strErr .= Phpfox::getPhrase('musicsharing.invalid_image_file_type');\n }\n }\n\n return $strErr;\n }", "static function isValid($value, $options)\r\n\t{\r\n\t\treturn static::validate($value, $options);\r\n\t}", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_VALID,self::VALUE_NOLONGERVALID,self::VALUE_CUSTOMCODE));\n\t}" ]
[ "0.75638735", "0.75633675", "0.7457137", "0.74505544", "0.74313146", "0.74132544", "0.7389179", "0.7376113", "0.73435354", "0.73382664", "0.7312271", "0.73101336", "0.73035663", "0.72895116", "0.72773695", "0.72668856", "0.7132854", "0.7115612", "0.71117413", "0.70788276", "0.7064848", "0.7051329", "0.7048658", "0.70435375", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.70255953", "0.7003521", "0.70024705", "0.70000196", "0.6982891", "0.69706744", "0.69565606", "0.69565606", "0.6943319", "0.69429076", "0.69377685", "0.6924664", "0.68652844", "0.68429905", "0.68337214", "0.6820802", "0.6812775", "0.679576", "0.6795034", "0.6794048", "0.67856663", "0.67623687", "0.6759025", "0.6755542", "0.675537", "0.67478365", "0.6747453", "0.6747009", "0.6742984", "0.6733792", "0.6732047", "0.67234325", "0.6706928", "0.67045975", "0.6704091", "0.6696448", "0.66890997", "0.6672935", "0.66493475", "0.6646173", "0.66354233", "0.6618701", "0.6608405", "0.66043913", "0.6596187", "0.6580516", "0.6576033", "0.65652966", "0.65600663" ]
0.0
-1
Display a listing of the resource.
public function index() { $clients = Client::orderBy('ref', 'asc')->with('family')->get(); $active = 'list'; $i = 1 ; return view('clients.index', compact('active', 'i', 'clients')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { $active = 'list'; $families = Family::orderBy('family', 'asc')->lists('family', 'id'); $families[0] = ' - '; return view('clients.create', compact('active', 'families')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(ClientsRequest $request) { $this->validate($request, ['ref' => 'required|alpha_num|unique:clients,ref']); Client::create($request->all()); return redirect(route('clients.index'))->with('success', 'Le nouveau client a bien été créé'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $client = Client::findOrFail($id); $active = 'list'; $forme = ['0' => 'Aucun', '1' => 'S.A.', '2' => 'S.P.R.L.', '3' => 'S.P.R.L.U.', '4' => 'S.C.', '5' => 'S.C.R.L.', '6' => 'Indépendant', '7' => 'Commerce', '8' => 'Cabinet', '9' => 'Administration', '10' => 'A.S.B.L.', '11' => 'Etude', '12' => 'Autre']; $families = Family::orderBy('family', 'asc')->lists('family', 'id'); $families[0] = ' - '; $modes = Mode::orderBy('mode', 'asc')->lists('mode', 'id'); $remises = Discount::orderBy('code', 'asc')->lists('code', 'id'); $remises[0] = ' - '; $deliveries = Client::find($id)->delivery()->get(); $contacts = Client::find($id)->contact()->get(); return view('clients.edit', compact('active', 'client', 'families', 'modes', 'forme', 'remises', 'deliveries', 'contacts')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.7855416", "0.769519", "0.72748375", "0.724256", "0.7173659", "0.7064689", "0.70549816", "0.6985127", "0.6949479", "0.69474626", "0.694228", "0.6929372", "0.6903047", "0.6899655", "0.6899655", "0.688039", "0.68649715", "0.68618995", "0.68586665", "0.68477386", "0.68366665", "0.6812782", "0.6807947", "0.68078786", "0.6803727", "0.6796845", "0.67935634", "0.67935634", "0.67894953", "0.67862976", "0.67815566", "0.6777874", "0.67700446", "0.6764179", "0.6747784", "0.6747784", "0.67476946", "0.6746584", "0.67417157", "0.67370653", "0.6727131", "0.6714694", "0.66953164", "0.6693583", "0.6690321", "0.66898996", "0.6689058", "0.66865313", "0.6684526", "0.66717213", "0.6670211", "0.6666833", "0.6666833", "0.66633433", "0.6663041", "0.6661699", "0.6658396", "0.6657984", "0.665473", "0.6644314", "0.66343915", "0.6633082", "0.6629606", "0.6629606", "0.6620677", "0.6620635", "0.66180485", "0.66171867", "0.6612161", "0.6610249", "0.660762", "0.6597593", "0.6596027", "0.6595597", "0.65925545", "0.65920216", "0.65896076", "0.65822965", "0.6581996", "0.65817595", "0.65770084", "0.65768373", "0.6575926", "0.65713066", "0.6569505", "0.656938", "0.65680295", "0.65636957", "0.65636957", "0.65624565", "0.65597314", "0.6559697", "0.65576696", "0.65573514", "0.65564495", "0.6556307", "0.655628", "0.65558994", "0.6549784", "0.6549675", "0.65461886" ]
0.0
-1
Update the specified resource in storage.
public function update($id, ClientsRequest $request) { $client = Client::findOrFail($id); $client->update($request->all()); return redirect(route('clients.edit', $id))->with('success', 'Le client a bien été mis à jour'); }
{ "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) { $client = Client::findOrFail($id); $client->delete(); return redirect(route('clients.index'))->with('success', 'Le client a bien été supprimé'); }
{ "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